]> git.saurik.com Git - wxWidgets.git/blob - configure
DnD is disabled automatically y configure for mingw32 without OLE headers
[wxWidgets.git] / configure
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
36
37
38
39
40
41
42
43 # Guess values for system-dependent variables and create Makefiles.
44 # Generated automatically using autoconf version 2.13
45 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
46 #
47 # This configure script is free software; the Free Software Foundation
48 # gives unlimited permission to copy, distribute and modify it.
49
50 # Defaults:
51 ac_help=
52 ac_default_prefix=/usr/local
53 # Any additions from configure.in:
54 ac_help="$ac_help
55 --enable-gui use GUI classes"
56 ac_help="$ac_help
57 --with-gtk use GTK+"
58 ac_help="$ac_help
59 --with-motif use Motif/Lesstif"
60 ac_help="$ac_help
61 --with-wine use WINE"
62 ac_help="$ac_help
63 --with-cygwin use Cygwin for MS-Windows"
64 ac_help="$ac_help
65 --with-mingw use GCC Minimal MS-Windows"
66 ac_help="$ac_help
67 --with-gtk-prefix=PFX Prefix where GTK is installed"
68 ac_help="$ac_help
69 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
70 ac_help="$ac_help
71 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
72 ac_help="$ac_help
73 --with-zlib use zlib for LZW compression"
74 ac_help="$ac_help
75 --with-libpng use libpng (PNG image format)"
76 ac_help="$ac_help
77 --with-libjpeg use libjpeg (JPEG file format)"
78 ac_help="$ac_help
79 --with-opengl use OpenGL (or Mesa)"
80 ac_help="$ac_help
81 --with-odbc use the IODBC and wxODBC classes"
82 ac_help="$ac_help
83 --enable-shared create shared library code"
84 ac_help="$ac_help
85 --enable-optimise create optimised code"
86 ac_help="$ac_help
87 --enable-debug same as debug_flag and debug_info"
88 ac_help="$ac_help
89 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
90 ac_help="$ac_help
91 --enable-debug_info create code with debugging information"
92 ac_help="$ac_help
93 --enable-debug_gdb create code with extra GDB debugging information"
94 ac_help="$ac_help
95 --enable-debug_cntxt use wxDebugContext"
96 ac_help="$ac_help
97 --enable-mem_tracing create code with memory tracing"
98 ac_help="$ac_help
99 --enable-profile create code with profiling information"
100 ac_help="$ac_help
101 --enable-no_rtti create code without RTTI information"
102 ac_help="$ac_help
103 --enable-no_exceptions create code without exceptions information"
104 ac_help="$ac_help
105 --enable-permissive compile code disregarding strict ANSI"
106 ac_help="$ac_help
107 --enable-no_deps create code without dependency information"
108 ac_help="$ac_help
109 --enable-intl use internationalization system"
110 ac_help="$ac_help
111 --enable-config use wxConfig (and derived) classes"
112 ac_help="$ac_help
113 --enable-sockets use socket/network classes"
114 ac_help="$ac_help
115 --enable-dialupman use dialup network classes"
116 ac_help="$ac_help
117 --enable-ipc use interprocess communication (wxSocket etc.)"
118 ac_help="$ac_help
119 --enable-apple_ieee use the Apple IEEE codec"
120 ac_help="$ac_help
121 --enable-timedate use date/time classes"
122 ac_help="$ac_help
123 --enable-wave use wxWave class"
124 ac_help="$ac_help
125 --enable-fraction use wxFraction class"
126 ac_help="$ac_help
127 --enable-dynlib use wxLibrary class for DLL loading"
128 ac_help="$ac_help
129 --enable-longlong use wxLongLong class"
130 ac_help="$ac_help
131 --enable-log use logging system"
132 ac_help="$ac_help
133 --enable-streams use wxStream etc classes"
134 ac_help="$ac_help
135 --enable-file use wxFile classes"
136 ac_help="$ac_help
137 --enable-textfile use wxTextFile classes"
138 ac_help="$ac_help
139 --enable-unicode compile wxString with Unicode support"
140 ac_help="$ac_help
141 --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
142 ac_help="$ac_help
143 --enable-wxprintfv use wxWindows implementation of vprintf()"
144 ac_help="$ac_help
145 --enable-joystick compile in joystick support (Linux only)"
146 ac_help="$ac_help
147 --enable-std_iostreams use standard C++ stream classes"
148 ac_help="$ac_help
149 --enable-fs_inet use virtual HTTP/FTP filesystems"
150 ac_help="$ac_help
151 --enable-fs_zip use virtual ZIP filesystems"
152 ac_help="$ac_help
153 --enable-zipstream use wxZipInputStream"
154 ac_help="$ac_help
155 --enable-threads use threads"
156 ac_help="$ac_help
157 --enable-serial use class serialization"
158 ac_help="$ac_help
159 --enable-docview use document view architecture"
160 ac_help="$ac_help
161 --enable-help use help (using external browser at present)"
162 ac_help="$ac_help
163 --enable-constraints use layout-constraints system"
164 ac_help="$ac_help
165 --enable-printarch use printing architecture"
166 ac_help="$ac_help
167 --enable-mdi use multiple document interface architecture"
168 ac_help="$ac_help
169 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
170 ac_help="$ac_help
171 --enable-prologio use Prolog IO library"
172 ac_help="$ac_help
173 --enable-resources use wxWindows resources"
174 ac_help="$ac_help
175 --enable-xresources use X resources for save (default for gtk+)"
176 ac_help="$ac_help
177 --enable-clipboard use wxClipboard classes"
178 ac_help="$ac_help
179 --enable-dnd use Drag'n'Drop classes"
180 ac_help="$ac_help
181 --enable-wxtree make wxTree library"
182 ac_help="$ac_help
183 --enable-controls use all usual controls"
184 ac_help="$ac_help
185 --enable-accel use accelerators"
186 ac_help="$ac_help
187 --enable-caret use wxCaret class"
188 ac_help="$ac_help
189 --enable-bmpbutton use wxBitmapButton class"
190 ac_help="$ac_help
191 --enable-checkbox use wxCheckBox class"
192 ac_help="$ac_help
193 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
194 ac_help="$ac_help
195 --enable-choice use wxChoice class"
196 ac_help="$ac_help
197 --enable-combobox use wxComboBox classes"
198 ac_help="$ac_help
199 --enable-gauge use wxGauge class"
200 ac_help="$ac_help
201 --enable-grid use wxGrid class"
202 ac_help="$ac_help
203 --enable-newgrid use new wxGrid class"
204 ac_help="$ac_help
205 --enable-imaglist use wxImageList class"
206 ac_help="$ac_help
207 --enable-listbox use wxListBox class"
208 ac_help="$ac_help
209 --enable-listctrl use wxListCtrl class"
210 ac_help="$ac_help
211 --enable-notebook use wxNotebook class"
212 ac_help="$ac_help
213 --enable-radiobox use wxRadioBox class"
214 ac_help="$ac_help
215 --enable-radiobtn use wxRadioButton class"
216 ac_help="$ac_help
217 --enable-sash use wxSashWindow class"
218 ac_help="$ac_help
219 --enable-scrollbar use wxScrollBar class and scrollable windows"
220 ac_help="$ac_help
221 --enable-slider use wxSlider class"
222 ac_help="$ac_help
223 --enable-spinbtn use wxSpinButton class"
224 ac_help="$ac_help
225 --enable-splitter use wxSplitterWindow class"
226 ac_help="$ac_help
227 --enable-statbmp use wxStaticBitmap class"
228 ac_help="$ac_help
229 --enable-statbox use wxStaticBox class"
230 ac_help="$ac_help
231 --enable-statline use wxStaticLine class"
232 ac_help="$ac_help
233 --enable-statusbar use wxStatusBar class"
234 ac_help="$ac_help
235 --enable-tabdialog use wxTabControl class"
236 ac_help="$ac_help
237 --enable-toolbar use wxToolBar class"
238 ac_help="$ac_help
239 --enable-treectrl use wxTreeCtrl class"
240 ac_help="$ac_help
241 --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
242 ac_help="$ac_help
243 --enable-dirdlg use wxDirDialog"
244 ac_help="$ac_help
245 --enable-textdlg use wxTextDialog"
246 ac_help="$ac_help
247 --enable-tipdlg use startup tips"
248 ac_help="$ac_help
249 --enable-progressdlg use wxProgressDialog"
250 ac_help="$ac_help
251 --enable-miniframe use wxMiniFrame class"
252 ac_help="$ac_help
253 --enable-html use wxHTML sub-library"
254 ac_help="$ac_help
255 --enable-tooltips use wxToolTip class"
256 ac_help="$ac_help
257 --enable-splines use spline drawing code"
258 ac_help="$ac_help
259 --enable-validators use wxValidator and derived classes"
260 ac_help="$ac_help
261 --enable-busyinfo use wxBusyInfo"
262 ac_help="$ac_help
263 --enable-gif use gif images (GIF file format)"
264 ac_help="$ac_help
265 --enable-pcx use pcx images (PCX file format)"
266 ac_help="$ac_help
267 --enable-pnm use pnm images (PNM file format)"
268 ac_help="$ac_help
269 --with-x use the X Window System"
270
271 # Initialize some variables set by options.
272 # The variables have the same names as the options, with
273 # dashes changed to underlines.
274 build=NONE
275 cache_file=./config.cache
276 exec_prefix=NONE
277 host=NONE
278 no_create=
279 nonopt=NONE
280 no_recursion=
281 prefix=NONE
282 program_prefix=NONE
283 program_suffix=NONE
284 program_transform_name=s,x,x,
285 silent=
286 site=
287 srcdir=
288 target=NONE
289 verbose=
290 x_includes=NONE
291 x_libraries=NONE
292 bindir='${exec_prefix}/bin'
293 sbindir='${exec_prefix}/sbin'
294 libexecdir='${exec_prefix}/libexec'
295 datadir='${prefix}/share'
296 sysconfdir='${prefix}/etc'
297 sharedstatedir='${prefix}/com'
298 localstatedir='${prefix}/var'
299 libdir='${exec_prefix}/lib'
300 includedir='${prefix}/include'
301 oldincludedir='/usr/include'
302 infodir='${prefix}/info'
303 mandir='${prefix}/man'
304
305 # Initialize some other variables.
306 subdirs=
307 MFLAGS= MAKEFLAGS=
308 SHELL=${CONFIG_SHELL-/bin/sh}
309 # Maximum number of lines to put in a shell here document.
310 ac_max_here_lines=12
311
312 ac_prev=
313 for ac_option
314 do
315
316 # If the previous option needs an argument, assign it.
317 if test -n "$ac_prev"; then
318 eval "$ac_prev=\$ac_option"
319 ac_prev=
320 continue
321 fi
322
323 case "$ac_option" in
324 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
325 *) ac_optarg= ;;
326 esac
327
328 # Accept the important Cygnus configure options, so we can diagnose typos.
329
330 case "$ac_option" in
331
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
335 bindir="$ac_optarg" ;;
336
337 -build | --build | --buil | --bui | --bu)
338 ac_prev=build ;;
339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
340 build="$ac_optarg" ;;
341
342 -cache-file | --cache-file | --cache-fil | --cache-fi \
343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344 ac_prev=cache_file ;;
345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
347 cache_file="$ac_optarg" ;;
348
349 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
350 ac_prev=datadir ;;
351 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
352 | --da=*)
353 datadir="$ac_optarg" ;;
354
355 -disable-* | --disable-*)
356 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
357 # Reject names that are not valid shell variable names.
358 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
359 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
360 fi
361 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
362 eval "enable_${ac_feature}=no" ;;
363
364 -enable-* | --enable-*)
365 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
368 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
369 fi
370 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
371 case "$ac_option" in
372 *=*) ;;
373 *) ac_optarg=yes ;;
374 esac
375 eval "enable_${ac_feature}='$ac_optarg'" ;;
376
377 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
378 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
379 | --exec | --exe | --ex)
380 ac_prev=exec_prefix ;;
381 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
382 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
383 | --exec=* | --exe=* | --ex=*)
384 exec_prefix="$ac_optarg" ;;
385
386 -gas | --gas | --ga | --g)
387 # Obsolete; use --with-gas.
388 with_gas=yes ;;
389
390 -help | --help | --hel | --he)
391 # Omit some internal or obsolete options to make the list less imposing.
392 # This message is too long to be a string in the A/UX 3.1 sh.
393 cat << EOF
394 Usage: configure [options] [host]
395 Options: [defaults in brackets after descriptions]
396 Configuration:
397 --cache-file=FILE cache test results in FILE
398 --help print this message
399 --no-create do not create output files
400 --quiet, --silent do not print \`checking...' messages
401 --version print the version of autoconf that created configure
402 Directory and file names:
403 --prefix=PREFIX install architecture-independent files in PREFIX
404 [$ac_default_prefix]
405 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
406 [same as prefix]
407 --bindir=DIR user executables in DIR [EPREFIX/bin]
408 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
409 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
410 --datadir=DIR read-only architecture-independent data in DIR
411 [PREFIX/share]
412 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
413 --sharedstatedir=DIR modifiable architecture-independent data in DIR
414 [PREFIX/com]
415 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
416 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
417 --includedir=DIR C header files in DIR [PREFIX/include]
418 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
419 --infodir=DIR info documentation in DIR [PREFIX/info]
420 --mandir=DIR man documentation in DIR [PREFIX/man]
421 --srcdir=DIR find the sources in DIR [configure dir or ..]
422 --program-prefix=PREFIX prepend PREFIX to installed program names
423 --program-suffix=SUFFIX append SUFFIX to installed program names
424 --program-transform-name=PROGRAM
425 run sed PROGRAM on installed program names
426 EOF
427 cat << EOF
428 Host type:
429 --build=BUILD configure for building on BUILD [BUILD=HOST]
430 --host=HOST configure for HOST [guessed]
431 --target=TARGET configure for TARGET [TARGET=HOST]
432 Features and packages:
433 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
434 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
435 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
436 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
437 --x-includes=DIR X include files are in DIR
438 --x-libraries=DIR X library files are in DIR
439 EOF
440 if test -n "$ac_help"; then
441 echo "--enable and --with options recognized:$ac_help"
442 fi
443 exit 0 ;;
444
445 -host | --host | --hos | --ho)
446 ac_prev=host ;;
447 -host=* | --host=* | --hos=* | --ho=*)
448 host="$ac_optarg" ;;
449
450 -includedir | --includedir | --includedi | --included | --include \
451 | --includ | --inclu | --incl | --inc)
452 ac_prev=includedir ;;
453 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
454 | --includ=* | --inclu=* | --incl=* | --inc=*)
455 includedir="$ac_optarg" ;;
456
457 -infodir | --infodir | --infodi | --infod | --info | --inf)
458 ac_prev=infodir ;;
459 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
460 infodir="$ac_optarg" ;;
461
462 -libdir | --libdir | --libdi | --libd)
463 ac_prev=libdir ;;
464 -libdir=* | --libdir=* | --libdi=* | --libd=*)
465 libdir="$ac_optarg" ;;
466
467 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
468 | --libexe | --libex | --libe)
469 ac_prev=libexecdir ;;
470 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
471 | --libexe=* | --libex=* | --libe=*)
472 libexecdir="$ac_optarg" ;;
473
474 -localstatedir | --localstatedir | --localstatedi | --localstated \
475 | --localstate | --localstat | --localsta | --localst \
476 | --locals | --local | --loca | --loc | --lo)
477 ac_prev=localstatedir ;;
478 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
479 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
480 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
481 localstatedir="$ac_optarg" ;;
482
483 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
484 ac_prev=mandir ;;
485 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
486 mandir="$ac_optarg" ;;
487
488 -nfp | --nfp | --nf)
489 # Obsolete; use --without-fp.
490 with_fp=no ;;
491
492 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
493 | --no-cr | --no-c)
494 no_create=yes ;;
495
496 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
497 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
498 no_recursion=yes ;;
499
500 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
501 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
502 | --oldin | --oldi | --old | --ol | --o)
503 ac_prev=oldincludedir ;;
504 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
505 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
506 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
507 oldincludedir="$ac_optarg" ;;
508
509 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
510 ac_prev=prefix ;;
511 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
512 prefix="$ac_optarg" ;;
513
514 -program-prefix | --program-prefix | --program-prefi | --program-pref \
515 | --program-pre | --program-pr | --program-p)
516 ac_prev=program_prefix ;;
517 -program-prefix=* | --program-prefix=* | --program-prefi=* \
518 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
519 program_prefix="$ac_optarg" ;;
520
521 -program-suffix | --program-suffix | --program-suffi | --program-suff \
522 | --program-suf | --program-su | --program-s)
523 ac_prev=program_suffix ;;
524 -program-suffix=* | --program-suffix=* | --program-suffi=* \
525 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
526 program_suffix="$ac_optarg" ;;
527
528 -program-transform-name | --program-transform-name \
529 | --program-transform-nam | --program-transform-na \
530 | --program-transform-n | --program-transform- \
531 | --program-transform | --program-transfor \
532 | --program-transfo | --program-transf \
533 | --program-trans | --program-tran \
534 | --progr-tra | --program-tr | --program-t)
535 ac_prev=program_transform_name ;;
536 -program-transform-name=* | --program-transform-name=* \
537 | --program-transform-nam=* | --program-transform-na=* \
538 | --program-transform-n=* | --program-transform-=* \
539 | --program-transform=* | --program-transfor=* \
540 | --program-transfo=* | --program-transf=* \
541 | --program-trans=* | --program-tran=* \
542 | --progr-tra=* | --program-tr=* | --program-t=*)
543 program_transform_name="$ac_optarg" ;;
544
545 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
546 | -silent | --silent | --silen | --sile | --sil)
547 silent=yes ;;
548
549 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
550 ac_prev=sbindir ;;
551 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
552 | --sbi=* | --sb=*)
553 sbindir="$ac_optarg" ;;
554
555 -sharedstatedir | --sharedstatedir | --sharedstatedi \
556 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
557 | --sharedst | --shareds | --shared | --share | --shar \
558 | --sha | --sh)
559 ac_prev=sharedstatedir ;;
560 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
561 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
562 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
563 | --sha=* | --sh=*)
564 sharedstatedir="$ac_optarg" ;;
565
566 -site | --site | --sit)
567 ac_prev=site ;;
568 -site=* | --site=* | --sit=*)
569 site="$ac_optarg" ;;
570
571 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
572 ac_prev=srcdir ;;
573 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
574 srcdir="$ac_optarg" ;;
575
576 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
577 | --syscon | --sysco | --sysc | --sys | --sy)
578 ac_prev=sysconfdir ;;
579 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
580 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
581 sysconfdir="$ac_optarg" ;;
582
583 -target | --target | --targe | --targ | --tar | --ta | --t)
584 ac_prev=target ;;
585 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
586 target="$ac_optarg" ;;
587
588 -v | -verbose | --verbose | --verbos | --verbo | --verb)
589 verbose=yes ;;
590
591 -version | --version | --versio | --versi | --vers)
592 echo "configure generated by autoconf version 2.13"
593 exit 0 ;;
594
595 -with-* | --with-*)
596 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
597 # Reject names that are not valid shell variable names.
598 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
599 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
600 fi
601 ac_package=`echo $ac_package| sed 's/-/_/g'`
602 case "$ac_option" in
603 *=*) ;;
604 *) ac_optarg=yes ;;
605 esac
606 eval "with_${ac_package}='$ac_optarg'" ;;
607
608 -without-* | --without-*)
609 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
610 # Reject names that are not valid shell variable names.
611 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
612 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
613 fi
614 ac_package=`echo $ac_package| sed 's/-/_/g'`
615 eval "with_${ac_package}=no" ;;
616
617 --x)
618 # Obsolete; use --with-x.
619 with_x=yes ;;
620
621 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
622 | --x-incl | --x-inc | --x-in | --x-i)
623 ac_prev=x_includes ;;
624 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
625 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
626 x_includes="$ac_optarg" ;;
627
628 -x-libraries | --x-libraries | --x-librarie | --x-librari \
629 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
630 ac_prev=x_libraries ;;
631 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
632 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
633 x_libraries="$ac_optarg" ;;
634
635 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
636 ;;
637
638 *)
639 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
640 echo "configure: warning: $ac_option: invalid host type" 1>&2
641 fi
642 if test "x$nonopt" != xNONE; then
643 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
644 fi
645 nonopt="$ac_option"
646 ;;
647
648 esac
649 done
650
651 if test -n "$ac_prev"; then
652 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
653 fi
654
655 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
656
657 # File descriptor usage:
658 # 0 standard input
659 # 1 file creation
660 # 2 errors and warnings
661 # 3 some systems may open it to /dev/tty
662 # 4 used on the Kubota Titan
663 # 6 checking for... messages and results
664 # 5 compiler messages saved in config.log
665 if test "$silent" = yes; then
666 exec 6>/dev/null
667 else
668 exec 6>&1
669 fi
670 exec 5>./config.log
671
672 echo "\
673 This file contains any messages produced by compilers while
674 running configure, to aid debugging if configure makes a mistake.
675 " 1>&5
676
677 # Strip out --no-create and --no-recursion so they do not pile up.
678 # Also quote any args containing shell metacharacters.
679 ac_configure_args=
680 for ac_arg
681 do
682 case "$ac_arg" in
683 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
684 | --no-cr | --no-c) ;;
685 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
686 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
687 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
688 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
689 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
690 esac
691 done
692
693 # NLS nuisances.
694 # Only set these to C if already set. These must not be set unconditionally
695 # because not all systems understand e.g. LANG=C (notably SCO).
696 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
697 # Non-C LC_CTYPE values break the ctype check.
698 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
699 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
700 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
701 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
702
703 # confdefs.h avoids OS command line length limits that DEFS can exceed.
704 rm -rf conftest* confdefs.h
705 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
706 echo > confdefs.h
707
708 # A filename unique to this package, relative to the directory that
709 # configure is in, which we can look for to find out if srcdir is correct.
710 ac_unique_file=wx-config.in
711
712 # Find the source files, if location was not specified.
713 if test -z "$srcdir"; then
714 ac_srcdir_defaulted=yes
715 # Try the directory containing this script, then its parent.
716 ac_prog=$0
717 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
718 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
719 srcdir=$ac_confdir
720 if test ! -r $srcdir/$ac_unique_file; then
721 srcdir=..
722 fi
723 else
724 ac_srcdir_defaulted=no
725 fi
726 if test ! -r $srcdir/$ac_unique_file; then
727 if test "$ac_srcdir_defaulted" = yes; then
728 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
729 else
730 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
731 fi
732 fi
733 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
734
735 # Prefer explicitly selected file to automatically selected ones.
736 if test -z "$CONFIG_SITE"; then
737 if test "x$prefix" != xNONE; then
738 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
739 else
740 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
741 fi
742 fi
743 for ac_site_file in $CONFIG_SITE; do
744 if test -r "$ac_site_file"; then
745 echo "loading site script $ac_site_file"
746 . "$ac_site_file"
747 fi
748 done
749
750 if test -r "$cache_file"; then
751 echo "loading cache $cache_file"
752 . $cache_file
753 else
754 echo "creating cache $cache_file"
755 > $cache_file
756 fi
757
758 ac_ext=c
759 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
760 ac_cpp='$CPP $CPPFLAGS'
761 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
762 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
763 cross_compiling=$ac_cv_prog_cc_cross
764
765 ac_exeext=
766 ac_objext=o
767 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
768 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
769 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
770 ac_n= ac_c='
771 ' ac_t=' '
772 else
773 ac_n=-n ac_c= ac_t=
774 fi
775 else
776 ac_n= ac_c='\c' ac_t=
777 fi
778
779
780
781 ac_aux_dir=
782 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
783 if test -f $ac_dir/install-sh; then
784 ac_aux_dir=$ac_dir
785 ac_install_sh="$ac_aux_dir/install-sh -c"
786 break
787 elif test -f $ac_dir/install.sh; then
788 ac_aux_dir=$ac_dir
789 ac_install_sh="$ac_aux_dir/install.sh -c"
790 break
791 fi
792 done
793 if test -z "$ac_aux_dir"; then
794 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
795 fi
796 ac_config_guess=$ac_aux_dir/config.guess
797 ac_config_sub=$ac_aux_dir/config.sub
798 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
799
800
801 # Do some error checking and defaulting for the host and target type.
802 # The inputs are:
803 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
804 #
805 # The rules are:
806 # 1. You are not allowed to specify --host, --target, and nonopt at the
807 # same time.
808 # 2. Host defaults to nonopt.
809 # 3. If nonopt is not specified, then host defaults to the current host,
810 # as determined by config.guess.
811 # 4. Target and build default to nonopt.
812 # 5. If nonopt is not specified, then target and build default to host.
813
814 # The aliases save the names the user supplied, while $host etc.
815 # will get canonicalized.
816 case $host---$target---$nonopt in
817 NONE---*---* | *---NONE---* | *---*---NONE) ;;
818 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
819 esac
820
821
822 # Make sure we can run config.sub.
823 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
824 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
825 fi
826
827 echo $ac_n "checking host system type""... $ac_c" 1>&6
828 echo "configure:829: checking host system type" >&5
829
830 host_alias=$host
831 case "$host_alias" in
832 NONE)
833 case $nonopt in
834 NONE)
835 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
836 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
837 fi ;;
838 *) host_alias=$nonopt ;;
839 esac ;;
840 esac
841
842 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
843 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
844 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
845 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
846 echo "$ac_t""$host" 1>&6
847
848 echo $ac_n "checking target system type""... $ac_c" 1>&6
849 echo "configure:850: checking target system type" >&5
850
851 target_alias=$target
852 case "$target_alias" in
853 NONE)
854 case $nonopt in
855 NONE) target_alias=$host_alias ;;
856 *) target_alias=$nonopt ;;
857 esac ;;
858 esac
859
860 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
861 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
862 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
863 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
864 echo "$ac_t""$target" 1>&6
865
866 echo $ac_n "checking build system type""... $ac_c" 1>&6
867 echo "configure:868: checking build system type" >&5
868
869 build_alias=$build
870 case "$build_alias" in
871 NONE)
872 case $nonopt in
873 NONE) build_alias=$host_alias ;;
874 *) build_alias=$nonopt ;;
875 esac ;;
876 esac
877
878 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
879 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
880 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
881 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
882 echo "$ac_t""$build" 1>&6
883
884 test "$host_alias" != "$target_alias" &&
885 test "$program_prefix$program_suffix$program_transform_name" = \
886 NONENONEs,x,x, &&
887 program_prefix=${target_alias}-
888
889
890
891 WX_MAJOR_VERSION_NUMBER=2
892 WX_MINOR_VERSION_NUMBER=1
893 WX_RELEASE_NUMBER=10
894
895 WX_INTERFACE_AGE=0
896 WX_BINARY_AGE=0
897
898 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
899
900 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
901 WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
902 WX_REVISION=$WX_INTERFACE_AGE
903 WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
904
905
906 USE_UNIX=1
907 USE_WIN32=0
908 USE_LINUX=
909 USE_SGI=
910 USE_HPUX=
911 USE_SYSV=
912 USE_SVR4=
913 USE_AIX=
914 USE_SUN=
915 USE_SOLARIS=
916 USE_SUNOS=
917 USE_ALPHA=
918 USE_OSF=
919 USE_BSD=
920 USE_FREEBSD=
921 USE_VMS=
922 USE_ULTRIX=
923 USE_CYGWIN=
924 USE_MINGW=
925 USE_DATA_GENERAL=
926
927 ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE"
928
929 DEFAULT_wxUSE_GTK=0
930 DEFAULT_wxUSE_MOTIF=0
931 DEFAULT_wxUSE_MSW=0
932 DEFAULT_wxUSE_WINE=0
933
934 DEFAULT_DEFAULT_wxUSE_GTK=0
935 DEFAULT_DEFAULT_wxUSE_MOTIF=0
936 DEFAULT_DEFAULT_wxUSE_MSW=0
937 DEFAULT_DEFAULT_wxUSE_WINE=0
938
939 case "${host}" in
940 *-hp-hpux* )
941 USE_HPUX=1
942 DEFAULT_DEFAULT_wxUSE_MOTIF=1
943 cat >> confdefs.h <<\EOF
944 #define __HPUX__ 1
945 EOF
946
947 ;;
948 *-*-linux* )
949 USE_LINUX=1
950 cat >> confdefs.h <<\EOF
951 #define __LINUX__ 1
952 EOF
953
954 TMP=`uname -m`
955 if test "x$TMP" = "xalpha"; then
956 USE_ALPHA=1
957 cat >> confdefs.h <<\EOF
958 #define __ALPHA__ 1
959 EOF
960
961 fi
962 DEFAULT_DEFAULT_wxUSE_GTK=1
963 ;;
964 *-*-irix5* | *-*-irix6* )
965 USE_SGI=1
966 USE_SVR4=1
967 cat >> confdefs.h <<\EOF
968 #define __SGI__ 1
969 EOF
970
971 cat >> confdefs.h <<\EOF
972 #define __SVR4__ 1
973 EOF
974
975 DEFAULT_DEFAULT_wxUSE_MOTIF=1
976 ;;
977 *-*-solaris2* )
978 USE_SUN=1
979 USE_SOLARIS=1
980 USE_SVR4=1
981 cat >> confdefs.h <<\EOF
982 #define __SUN__ 1
983 EOF
984
985 cat >> confdefs.h <<\EOF
986 #define __SOLARIS__ 1
987 EOF
988
989 cat >> confdefs.h <<\EOF
990 #define __SVR4__ 1
991 EOF
992
993 DEFAULT_DEFAULT_wxUSE_MOTIF=1
994 ;;
995 *-*-sunos4* )
996 USE_SUN=1
997 USE_SUNOS=1
998 USE_BSD=1
999 cat >> confdefs.h <<\EOF
1000 #define __SUN__ 1
1001 EOF
1002
1003 cat >> confdefs.h <<\EOF
1004 #define __SUNOS__ 1
1005 EOF
1006
1007 cat >> confdefs.h <<\EOF
1008 #define __BSD__ 1
1009 EOF
1010
1011 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1012 ;;
1013 *-*-freebsd* | *-*-netbsd*)
1014 USE_BSD=1
1015 USE_FREEBSD=1
1016 cat >> confdefs.h <<\EOF
1017 #define __FREEBSD__ 1
1018 EOF
1019
1020 cat >> confdefs.h <<\EOF
1021 #define __BSD__ 1
1022 EOF
1023
1024 DEFAULT_DEFAULT_wxUSE_GTK=1
1025 ;;
1026 *-*-osf* )
1027 USE_ALPHA=1
1028 USE_OSF=1
1029 cat >> confdefs.h <<\EOF
1030 #define __ALPHA__ 1
1031 EOF
1032
1033 cat >> confdefs.h <<\EOF
1034 #define __OSF__ 1
1035 EOF
1036
1037 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1038 ;;
1039 *-*-dgux5* )
1040 USE_ALPHA=1
1041 USE_SVR4=1
1042 cat >> confdefs.h <<\EOF
1043 #define __ALPHA__ 1
1044 EOF
1045
1046 cat >> confdefs.h <<\EOF
1047 #define __SVR4__ 1
1048 EOF
1049
1050 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1051 ;;
1052 *-*-sysv5* )
1053 USE_SYSV=1
1054 USE_SVR4=1
1055 cat >> confdefs.h <<\EOF
1056 #define __SYSV__ 1
1057 EOF
1058
1059 cat >> confdefs.h <<\EOF
1060 #define __SVR4__ 1
1061 EOF
1062
1063 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1064 ;;
1065 *-*-aix* )
1066 USE_AIX=1
1067 USE_SYSV=1
1068 USE_SVR4=1
1069 cat >> confdefs.h <<\EOF
1070 #define __AIX__ 1
1071 EOF
1072
1073 cat >> confdefs.h <<\EOF
1074 #define __SYSV__ 1
1075 EOF
1076
1077 cat >> confdefs.h <<\EOF
1078 #define __SVR4__ 1
1079 EOF
1080
1081 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1082 ;;
1083
1084 *-*-cygwin32* )
1085 USE_UNIX=0
1086 USE_WIN32=1
1087 cat >> confdefs.h <<\EOF
1088 #define __WIN32__ 1
1089 EOF
1090
1091 cat >> confdefs.h <<\EOF
1092 #define __WIN95__ 1
1093 EOF
1094
1095 cat >> confdefs.h <<\EOF
1096 #define __WINDOWS__ 1
1097 EOF
1098
1099 cat >> confdefs.h <<\EOF
1100 #define __GNUWIN32__ 1
1101 EOF
1102
1103 cat >> confdefs.h <<\EOF
1104 #define STRICT 1
1105 EOF
1106
1107 cat >> confdefs.h <<\EOF
1108 #define WINVER 0x0400
1109 EOF
1110
1111 DEFAULT_DEFAULT_wxUSE_MSW=1
1112 ;;
1113 *-*-mingw32* )
1114 USE_UNIX=0
1115 USE_WIN32=1
1116 cat >> confdefs.h <<\EOF
1117 #define __WIN32__ 1
1118 EOF
1119
1120 cat >> confdefs.h <<\EOF
1121 #define __WIN95__ 1
1122 EOF
1123
1124 cat >> confdefs.h <<\EOF
1125 #define __WINDOWS__ 1
1126 EOF
1127
1128 cat >> confdefs.h <<\EOF
1129 #define __GNUWIN32__ 1
1130 EOF
1131
1132 cat >> confdefs.h <<\EOF
1133 #define STRICT 1
1134 EOF
1135
1136 cat >> confdefs.h <<\EOF
1137 #define WINVER 0x0400
1138 EOF
1139
1140 DEFAULT_DEFAULT_wxUSE_MSW=1
1141 ;;
1142
1143 *-pc-os2_emx )
1144 cat >> confdefs.h <<\EOF
1145 #define __EMX__ 1
1146 EOF
1147
1148 ;;
1149
1150 *)
1151 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1152 esac
1153
1154 if test "$USE_UNIX" = 1 ; then
1155 wxUSE_UNIX=yes
1156 cat >> confdefs.h <<\EOF
1157 #define __UNIX__ 1
1158 EOF
1159
1160 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1161 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1162 fi
1163
1164 if test "$USE_LINUX" = 1; then
1165 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
1166 echo "configure:1167: checking for gettext in -lc" >&5
1167 ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1168 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1169 echo $ac_n "(cached) $ac_c" 1>&6
1170 else
1171 ac_save_LIBS="$LIBS"
1172 LIBS="-lc $LIBS"
1173 cat > conftest.$ac_ext <<EOF
1174 #line 1175 "configure"
1175 #include "confdefs.h"
1176 /* Override any gcc2 internal prototype to avoid an error. */
1177 /* We use char because int might match the return type of a gcc2
1178 builtin and then its argument prototype would still apply. */
1179 char gettext();
1180
1181 int main() {
1182 gettext()
1183 ; return 0; }
1184 EOF
1185 if { (eval echo configure:1186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1186 rm -rf conftest*
1187 eval "ac_cv_lib_$ac_lib_var=yes"
1188 else
1189 echo "configure: failed program was:" >&5
1190 cat conftest.$ac_ext >&5
1191 rm -rf conftest*
1192 eval "ac_cv_lib_$ac_lib_var=no"
1193 fi
1194 rm -f conftest*
1195 LIBS="$ac_save_LIBS"
1196
1197 fi
1198 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1199 echo "$ac_t""yes" 1>&6
1200 cat >> confdefs.h <<\EOF
1201 #define wxHAVE_GLIBC2 1
1202 EOF
1203
1204 else
1205 echo "$ac_t""no" 1>&6
1206 fi
1207
1208 fi
1209
1210
1211
1212
1213 wx_arg_cache_file="configarg.cache"
1214 echo "loading argument cache $wx_arg_cache_file"
1215 rm -f ${wx_arg_cache_file}.tmp
1216 touch ${wx_arg_cache_file}.tmp
1217 touch ${wx_arg_cache_file}
1218
1219
1220 DEBUG_CONFIGURE=0
1221 if test $DEBUG_CONFIGURE = 1; then
1222 DEFAULT_wxUSE_THREADS=yes
1223
1224 DEFAULT_wxUSE_SHARED=yes
1225 DEFAULT_wxUSE_OPTIMISE=yes
1226 DEFAULT_wxUSE_PROFILE=no
1227 DEFAULT_wxUSE_NO_DEPS=no
1228 DEFAULT_wxUSE_NO_RTTI=no
1229 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1230 DEFAULT_wxUSE_PERMISSIVE=no
1231 DEFAULT_wxUSE_DEBUG_FLAG=yes
1232 DEFAULT_wxUSE_DEBUG_INFO=yes
1233 DEFAULT_wxUSE_DEBUG_GDB=yes
1234 DEFAULT_wxUSE_MEM_TRACING=no
1235 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1236 DEFAULT_wxUSE_DMALLOC=no
1237 DEFAULT_wxUSE_APPLE_IEEE=no
1238
1239 DEFAULT_wxUSE_LOG=yes
1240
1241 DEFAULT_wxUSE_GUI=yes
1242
1243 DEFAULT_wxUSE_ZLIB=no
1244 DEFAULT_wxUSE_LIBPNG=no
1245 DEFAULT_wxUSE_LIBJPEG=no
1246 DEFAULT_wxUSE_ODBC=no
1247
1248 DEFAULT_wxUSE_STD_IOSTREAM=no
1249 DEFAULT_wxUSE_FILE=no
1250 DEFAULT_wxUSE_TEXTFILE=no
1251 DEFAULT_wxUSE_TIMEDATE=no
1252 DEFAULT_wxUSE_WAVE=no
1253 DEFAULT_wxUSE_INTL=no
1254 DEFAULT_wxUSE_CONFIG=no
1255 DEFAULT_wxUSE_STREAMS=no
1256 DEFAULT_wxUSE_SOCKETS=no
1257 DEFAULT_wxUSE_DIALUP_MANAGER=no
1258 DEFAULT_wxUSE_SERIAL=no
1259 DEFAULT_wxUSE_JOYSTICK=no
1260 DEFAULT_wxUSE_DYNLIB_CLASS=no
1261 DEFAULT_wxUSE_LONGLONG=no
1262
1263 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1264 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1265 DEFAULT_wxUSE_POSTSCRIPT=no
1266
1267 DEFAULT_wxUSE_X_RESOURCES=no
1268 DEFAULT_wxUSE_CLIPBOARD=no
1269 DEFAULT_wxUSE_TOOLTIPS=no
1270 DEFAULT_wxUSE_DRAG_AND_DROP=no
1271 DEFAULT_wxUSE_SPLINES=no
1272
1273 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1274 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1275 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1276
1277 DEFAULT_wxUSE_PROLOGIO=no
1278 DEFAULT_wxUSE_RESOURCES=no
1279 DEFAULT_wxUSE_CONSTRAINTS=no
1280 DEFAULT_wxUSE_IPC=no
1281 DEFAULT_wxUSE_HELP=no
1282 DEFAULT_wxUSE_WXTREE=no
1283 DEFAULT_wxUSE_METAFILE=no
1284
1285 DEFAULT_wxUSE_COMMONDLGS=no
1286 DEFAULT_wxUSE_DIRDLG=no
1287 DEFAULT_wxUSE_TEXTDLG=no
1288 DEFAULT_wxUSE_STARTUP_TIPS=no
1289 DEFAULT_wxUSE_PROGRESSDLG=no
1290 DEFAULT_wxUSE_MINIFRAME=no
1291 DEFAULT_wxUSE_HTML=no
1292 DEFAULT_wxUSE_FS_INET=no
1293 DEFAULT_wxUSE_FS_ZIP=no
1294 DEFAULT_wxUSE_BUSYINFO=no
1295 DEFAULT_wxUSE_ZIPSTREAM=no
1296 DEFAULT_wxUSE_VALIDATORS=yes
1297
1298 DEFAULT_wxUSE_ACCEL=no
1299 DEFAULT_wxUSE_CARET=no
1300 DEFAULT_wxUSE_BMPBUTTON=no
1301 DEFAULT_wxUSE_CHECKBOX=no
1302 DEFAULT_wxUSE_CHECKLST=no
1303 DEFAULT_wxUSE_CHOICE=yes
1304 DEFAULT_wxUSE_COMBOBOX=no
1305 DEFAULT_wxUSE_GAUGE=no
1306 DEFAULT_wxUSE_GRID=no
1307 DEFAULT_wxUSE_NEW_GRID=no
1308 DEFAULT_wxUSE_IMAGLIST=no
1309 DEFAULT_wxUSE_LISTBOX=no
1310 DEFAULT_wxUSE_LISTCTRL=no
1311 DEFAULT_wxUSE_NOTEBOOK=no
1312 DEFAULT_wxUSE_RADIOBOX=no
1313 DEFAULT_wxUSE_RADIOBTN=no
1314 DEFAULT_wxUSE_SASH=no
1315 DEFAULT_wxUSE_SCROLLBAR=no
1316 DEFAULT_wxUSE_SLIDER=no
1317 DEFAULT_wxUSE_SPINBTN=no
1318 DEFAULT_wxUSE_SPLITTER=no
1319 DEFAULT_wxUSE_STATBMP=no
1320 DEFAULT_wxUSE_STATBOX=no
1321 DEFAULT_wxUSE_STATLINE=no
1322 DEFAULT_wxUSE_STATUSBAR=yes
1323 DEFAULT_wxUSE_TABDIALOG=no
1324 DEFAULT_wxUSE_TOOLBAR=no
1325 DEFAULT_wxUSE_TREECTRL=no
1326
1327 DEFAULT_wxUSE_UNICODE=no
1328 DEFAULT_wxUSE_WCSRTOMBS=no
1329
1330 DEFAULT_wxUSE_GIF=no
1331 DEFAULT_wxUSE_PCX=no
1332 DEFAULT_wxUSE_PNM=no
1333 else
1334 DEFAULT_wxUSE_THREADS=yes
1335
1336 DEFAULT_wxUSE_SHARED=yes
1337 DEFAULT_wxUSE_OPTIMISE=yes
1338 DEFAULT_wxUSE_PROFILE=no
1339 DEFAULT_wxUSE_NO_DEPS=no
1340 DEFAULT_wxUSE_NO_RTTI=no
1341 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1342 DEFAULT_wxUSE_PERMISSIVE=no
1343 DEFAULT_wxUSE_DEBUG_FLAG=no
1344 DEFAULT_wxUSE_DEBUG_INFO=no
1345 DEFAULT_wxUSE_DEBUG_GDB=no
1346 DEFAULT_wxUSE_MEM_TRACING=no
1347 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1348 DEFAULT_wxUSE_DMALLOC=no
1349 DEFAULT_wxUSE_APPLE_IEEE=yes
1350
1351 DEFAULT_wxUSE_LOG=yes
1352
1353 DEFAULT_wxUSE_GUI=yes
1354
1355 DEFAULT_wxUSE_ZLIB=yes
1356 DEFAULT_wxUSE_LIBPNG=yes
1357 DEFAULT_wxUSE_LIBJPEG=yes
1358 DEFAULT_wxUSE_ODBC=yes
1359
1360 DEFAULT_wxUSE_STD_IOSTREAM=no
1361 DEFAULT_wxUSE_FILE=yes
1362 DEFAULT_wxUSE_TEXTFILE=yes
1363 DEFAULT_wxUSE_TIMEDATE=yes
1364 DEFAULT_wxUSE_WAVE=no
1365 DEFAULT_wxUSE_INTL=yes
1366 DEFAULT_wxUSE_CONFIG=yes
1367 DEFAULT_wxUSE_STREAMS=yes
1368 DEFAULT_wxUSE_SOCKETS=yes
1369 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1370 DEFAULT_wxUSE_SERIAL=yes
1371 DEFAULT_wxUSE_JOYSTICK=yes
1372 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1373 DEFAULT_wxUSE_LONGLONG=no
1374
1375 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1376 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1377 DEFAULT_wxUSE_POSTSCRIPT=yes
1378
1379 DEFAULT_wxUSE_X_RESOURCES=no
1380 DEFAULT_wxUSE_CLIPBOARD=yes
1381 DEFAULT_wxUSE_TOOLTIPS=yes
1382 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1383 DEFAULT_wxUSE_SPLINES=yes
1384
1385 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1386 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1387 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1388
1389 DEFAULT_wxUSE_PROLOGIO=yes
1390 DEFAULT_wxUSE_RESOURCES=yes
1391 DEFAULT_wxUSE_CONSTRAINTS=yes
1392 DEFAULT_wxUSE_IPC=yes
1393 DEFAULT_wxUSE_HELP=yes
1394 DEFAULT_wxUSE_WXTREE=yes
1395 DEFAULT_wxUSE_METAFILE=yes
1396
1397 DEFAULT_wxUSE_COMMONDLGS=yes
1398 DEFAULT_wxUSE_DIRDLG=yes
1399 DEFAULT_wxUSE_TEXTDLG=yes
1400 DEFAULT_wxUSE_STARTUP_TIPS=yes
1401 DEFAULT_wxUSE_PROGRESSDLG=yes
1402 DEFAULT_wxUSE_MINIFRAME=yes
1403 DEFAULT_wxUSE_HTML=yes
1404 DEFAULT_wxUSE_FS_INET=yes
1405 DEFAULT_wxUSE_FS_ZIP=yes
1406 DEFAULT_wxUSE_BUSYINFO=yes
1407 DEFAULT_wxUSE_ZIPSTREAM=yes
1408 DEFAULT_wxUSE_VALIDATORS=yes
1409
1410 DEFAULT_wxUSE_ACCEL=yes
1411 DEFAULT_wxUSE_CARET=yes
1412 DEFAULT_wxUSE_BMPBUTTON=yes
1413 DEFAULT_wxUSE_CHECKBOX=yes
1414 DEFAULT_wxUSE_CHECKLST=yes
1415 DEFAULT_wxUSE_CHOICE=yes
1416 DEFAULT_wxUSE_COMBOBOX=yes
1417 DEFAULT_wxUSE_GAUGE=yes
1418 DEFAULT_wxUSE_GRID=yes
1419 DEFAULT_wxUSE_NEW_GRID=yes
1420 DEFAULT_wxUSE_IMAGLIST=yes
1421 DEFAULT_wxUSE_LISTBOX=yes
1422 DEFAULT_wxUSE_LISTCTRL=yes
1423 DEFAULT_wxUSE_NOTEBOOK=yes
1424 DEFAULT_wxUSE_RADIOBOX=yes
1425 DEFAULT_wxUSE_RADIOBTN=yes
1426 DEFAULT_wxUSE_SASH=yes
1427 DEFAULT_wxUSE_SCROLLBAR=yes
1428 DEFAULT_wxUSE_SLIDER=yes
1429 DEFAULT_wxUSE_SPINBTN=yes
1430 DEFAULT_wxUSE_SPLITTER=yes
1431 DEFAULT_wxUSE_STATBMP=yes
1432 DEFAULT_wxUSE_STATBOX=yes
1433 DEFAULT_wxUSE_STATLINE=yes
1434 DEFAULT_wxUSE_STATUSBAR=yes
1435 DEFAULT_wxUSE_TABDIALOG=no
1436 DEFAULT_wxUSE_TOOLBAR=yes
1437 DEFAULT_wxUSE_TREECTRL=yes
1438
1439 DEFAULT_wxUSE_UNICODE=no
1440 DEFAULT_wxUSE_WCSRTOMBS=no
1441
1442 DEFAULT_wxUSE_GIF=yes
1443 DEFAULT_wxUSE_PCX=yes
1444 DEFAULT_wxUSE_PNM=yes
1445 fi
1446
1447
1448
1449 for toolkit in `echo $ALL_TOOLKITS`; do
1450 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1451 if test "x$LINE" != x ; then
1452 has_toolkit_in_cache=1
1453 eval "DEFAULT_$LINE"
1454 eval "CACHE_$toolkit=1"
1455 fi
1456 done
1457
1458
1459
1460 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
1461 echo "configure:1462: checking "for --enable-gui"" >&5
1462 no_cache=0
1463 # Check whether --enable-gui or --disable-gui was given.
1464 if test "${enable_gui+set}" = set; then
1465 enableval="$enable_gui"
1466
1467 if test "$enableval" = yes; then
1468 ac_cv_use_gui='wxUSE_GUI=yes'
1469 else
1470 ac_cv_use_gui='wxUSE_GUI=no'
1471 fi
1472
1473 else
1474
1475 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1476 if test "x$LINE" != x ; then
1477 eval "DEFAULT_$LINE"
1478 else
1479 no_cache=1
1480 fi
1481
1482 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1483
1484 fi
1485
1486
1487 eval "$ac_cv_use_gui"
1488 if test "$no_cache" != 1; then
1489 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1490 fi
1491
1492 if test "$wxUSE_GUI" = yes; then
1493 echo "$ac_t""yes" 1>&6
1494 else
1495 echo "$ac_t""no" 1>&6
1496 fi
1497
1498
1499 if test "$wxUSE_GUI" = "no"; then
1500 DEFAULT_wxUSE_ZLIB=no
1501 DEFAULT_wxUSE_LIBPNG=no
1502 DEFAULT_wxUSE_LIBJPEG=no
1503 DEFAULT_wxUSE_SOCKETS=no
1504 DEFAULT_wxUSE_JOYSTICK=no
1505 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1506 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1507 DEFAULT_wxUSE_POSTSCRIPT=no
1508 DEFAULT_wxUSE_X_RESOURCES=no
1509 DEFAULT_wxUSE_CLIPBOARD=no
1510 DEFAULT_wxUSE_TOOLTIPS=no
1511 DEFAULT_wxUSE_DRAG_AND_DROP=no
1512 DEFAULT_wxUSE_SPLINES=no
1513 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1514 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1515 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1516 DEFAULT_wxUSE_PROLOGIO=no
1517 DEFAULT_wxUSE_RESOURCES=no
1518 DEFAULT_wxUSE_CONSTRAINTS=no
1519 DEFAULT_wxUSE_IPC=no
1520 DEFAULT_wxUSE_HELP=no
1521 DEFAULT_wxUSE_WXTREE=no
1522 DEFAULT_wxUSE_METAFILE=no
1523 DEFAULT_wxUSE_COMMONDLGS=no
1524 DEFAULT_wxUSE_DIRDLG=no
1525 DEFAULT_wxUSE_TEXTDLG=no
1526 DEFAULT_wxUSE_STARTUP_TIPS=no
1527 DEFAULT_wxUSE_PROGRESSDLG=no
1528 DEFAULT_wxUSE_MINIFRAME=no
1529 DEFAULT_wxUSE_HTML=no
1530 DEFAULT_wxUSE_FS_INET=no
1531 DEFAULT_wxUSE_FS_ZIP=no
1532 DEFAULT_wxUSE_BUSYINFO=no
1533 DEFAULT_wxUSE_ZIPSTREAM=no
1534 DEFAULT_wxUSE_VALIDATORS=yes
1535 DEFAULT_wxUSE_ACCEL=no
1536 DEFAULT_wxUSE_CARET=no
1537 DEFAULT_wxUSE_BMPBUTTON=no
1538 DEFAULT_wxUSE_CHECKBOX=no
1539 DEFAULT_wxUSE_CHECKLST=no
1540 DEFAULT_wxUSE_CHOICE=yes
1541 DEFAULT_wxUSE_COMBOBOX=no
1542 DEFAULT_wxUSE_GAUGE=no
1543 DEFAULT_wxUSE_GRID=no
1544 DEFAULT_wxUSE_NEW_GRID=no
1545 DEFAULT_wxUSE_IMAGLIST=no
1546 DEFAULT_wxUSE_LISTBOX=no
1547 DEFAULT_wxUSE_LISTCTRL=no
1548 DEFAULT_wxUSE_NOTEBOOK=no
1549 DEFAULT_wxUSE_RADIOBOX=no
1550 DEFAULT_wxUSE_RADIOBTN=no
1551 DEFAULT_wxUSE_SASH=no
1552 DEFAULT_wxUSE_SCROLLBAR=no
1553 DEFAULT_wxUSE_SLIDER=no
1554 DEFAULT_wxUSE_SPINBTN=no
1555 DEFAULT_wxUSE_SPLITTER=no
1556 DEFAULT_wxUSE_STATBMP=no
1557 DEFAULT_wxUSE_STATBOX=no
1558 DEFAULT_wxUSE_STATLINE=no
1559 DEFAULT_wxUSE_STATUSBAR=yes
1560 DEFAULT_wxUSE_TABDIALOG=no
1561 DEFAULT_wxUSE_TOOLBAR=no
1562 DEFAULT_wxUSE_TREECTRL=no
1563 DEFAULT_wxUSE_GIF=no
1564 DEFAULT_wxUSE_PCX=no
1565 DEFAULT_wxUSE_PNM=no
1566 fi
1567
1568 # Check whether --with-gtk or --without-gtk was given.
1569 if test "${with_gtk+set}" = set; then
1570 withval="$with_gtk"
1571 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1572 fi
1573
1574 # Check whether --with-motif or --without-motif was given.
1575 if test "${with_motif+set}" = set; then
1576 withval="$with_motif"
1577 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1578 fi
1579
1580 # Check whether --with-wine or --without-wine was given.
1581 if test "${with_wine+set}" = set; then
1582 withval="$with_wine"
1583 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1584 fi
1585
1586 # Check whether --with-cygwin or --without-cygwin was given.
1587 if test "${with_cygwin+set}" = set; then
1588 withval="$with_cygwin"
1589 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1590 fi
1591
1592 # Check whether --with-mingw or --without-mingw was given.
1593 if test "${with_mingw+set}" = set; then
1594 withval="$with_mingw"
1595 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1596 fi
1597
1598
1599 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1600 if test "${with_gtk_prefix+set}" = set; then
1601 withval="$with_gtk_prefix"
1602 gtk_config_prefix="$withval"
1603 else
1604 gtk_config_prefix=""
1605 fi
1606
1607 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1608 if test "${with_gtk_exec_prefix+set}" = set; then
1609 withval="$with_gtk_exec_prefix"
1610 gtk_config_exec_prefix="$withval"
1611 else
1612 gtk_config_exec_prefix=""
1613 fi
1614
1615
1616
1617 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
1618 echo "configure:1619: checking "for --with-dmalloc"" >&5
1619 no_cache=0
1620 # Check whether --with-dmalloc or --without-dmalloc was given.
1621 if test "${with_dmalloc+set}" = set; then
1622 withval="$with_dmalloc"
1623
1624 if test "$withval" = yes; then
1625 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
1626 else
1627 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
1628 fi
1629
1630 else
1631
1632 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
1633 if test "x$LINE" != x ; then
1634 eval "DEFAULT_$LINE"
1635 else
1636 no_cache=1
1637 fi
1638
1639 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
1640
1641 fi
1642
1643
1644 eval "$ac_cv_use_dmalloc"
1645 if test "$no_cache" != 1; then
1646 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
1647 fi
1648
1649 if test "$wxUSE_DMALLOC" = yes; then
1650 echo "$ac_t""yes" 1>&6
1651 else
1652 echo "$ac_t""no" 1>&6
1653 fi
1654
1655
1656 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
1657 echo "configure:1658: checking "for --with-zlib"" >&5
1658 no_cache=0
1659 # Check whether --with-zlib or --without-zlib was given.
1660 if test "${with_zlib+set}" = set; then
1661 withval="$with_zlib"
1662
1663 if test "$withval" = yes; then
1664 ac_cv_use_zlib='wxUSE_ZLIB=yes'
1665 else
1666 ac_cv_use_zlib='wxUSE_ZLIB=no'
1667 fi
1668
1669 else
1670
1671 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
1672 if test "x$LINE" != x ; then
1673 eval "DEFAULT_$LINE"
1674 else
1675 no_cache=1
1676 fi
1677
1678 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
1679
1680 fi
1681
1682
1683 eval "$ac_cv_use_zlib"
1684 if test "$no_cache" != 1; then
1685 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
1686 fi
1687
1688 if test "$wxUSE_ZLIB" = yes; then
1689 echo "$ac_t""yes" 1>&6
1690 else
1691 echo "$ac_t""no" 1>&6
1692 fi
1693
1694
1695 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
1696 echo "configure:1697: checking "for --with-libpng"" >&5
1697 no_cache=0
1698 # Check whether --with-libpng or --without-libpng was given.
1699 if test "${with_libpng+set}" = set; then
1700 withval="$with_libpng"
1701
1702 if test "$withval" = yes; then
1703 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1704 else
1705 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1706 fi
1707
1708 else
1709
1710 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1711 if test "x$LINE" != x ; then
1712 eval "DEFAULT_$LINE"
1713 else
1714 no_cache=1
1715 fi
1716
1717 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1718
1719 fi
1720
1721
1722 eval "$ac_cv_use_libpng"
1723 if test "$no_cache" != 1; then
1724 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1725 fi
1726
1727 if test "$wxUSE_LIBPNG" = yes; then
1728 echo "$ac_t""yes" 1>&6
1729 else
1730 echo "$ac_t""no" 1>&6
1731 fi
1732
1733
1734 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
1735 echo "configure:1736: checking "for --with-libjpeg"" >&5
1736 no_cache=0
1737 # Check whether --with-libjpeg or --without-libjpeg was given.
1738 if test "${with_libjpeg+set}" = set; then
1739 withval="$with_libjpeg"
1740
1741 if test "$withval" = yes; then
1742 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1743 else
1744 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1745 fi
1746
1747 else
1748
1749 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1750 if test "x$LINE" != x ; then
1751 eval "DEFAULT_$LINE"
1752 else
1753 no_cache=1
1754 fi
1755
1756 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1757
1758 fi
1759
1760
1761 eval "$ac_cv_use_libjpeg"
1762 if test "$no_cache" != 1; then
1763 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1764 fi
1765
1766 if test "$wxUSE_LIBJPEG" = yes; then
1767 echo "$ac_t""yes" 1>&6
1768 else
1769 echo "$ac_t""no" 1>&6
1770 fi
1771
1772
1773 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
1774 echo "configure:1775: checking "for --with-opengl"" >&5
1775 no_cache=0
1776 # Check whether --with-opengl or --without-opengl was given.
1777 if test "${with_opengl+set}" = set; then
1778 withval="$with_opengl"
1779
1780 if test "$withval" = yes; then
1781 ac_cv_use_opengl='wxUSE_OPENGL=yes'
1782 else
1783 ac_cv_use_opengl='wxUSE_OPENGL=no'
1784 fi
1785
1786 else
1787
1788 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
1789 if test "x$LINE" != x ; then
1790 eval "DEFAULT_$LINE"
1791 else
1792 no_cache=1
1793 fi
1794
1795 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
1796
1797 fi
1798
1799
1800 eval "$ac_cv_use_opengl"
1801 if test "$no_cache" != 1; then
1802 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
1803 fi
1804
1805 if test "$wxUSE_OPENGL" = yes; then
1806 echo "$ac_t""yes" 1>&6
1807 else
1808 echo "$ac_t""no" 1>&6
1809 fi
1810
1811
1812 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
1813 echo "configure:1814: checking "for --with-odbc"" >&5
1814 no_cache=0
1815 # Check whether --with-odbc or --without-odbc was given.
1816 if test "${with_odbc+set}" = set; then
1817 withval="$with_odbc"
1818
1819 if test "$withval" = yes; then
1820 ac_cv_use_odbc='wxUSE_ODBC=yes'
1821 else
1822 ac_cv_use_odbc='wxUSE_ODBC=no'
1823 fi
1824
1825 else
1826
1827 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1828 if test "x$LINE" != x ; then
1829 eval "DEFAULT_$LINE"
1830 else
1831 no_cache=1
1832 fi
1833
1834 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1835
1836 fi
1837
1838
1839 eval "$ac_cv_use_odbc"
1840 if test "$no_cache" != 1; then
1841 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1842 fi
1843
1844 if test "$wxUSE_ODBC" = yes; then
1845 echo "$ac_t""yes" 1>&6
1846 else
1847 echo "$ac_t""no" 1>&6
1848 fi
1849
1850
1851
1852
1853
1854 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
1855 echo "configure:1856: checking "for --enable-shared"" >&5
1856 no_cache=0
1857 # Check whether --enable-shared or --disable-shared was given.
1858 if test "${enable_shared+set}" = set; then
1859 enableval="$enable_shared"
1860
1861 if test "$enableval" = yes; then
1862 ac_cv_use_shared='wxUSE_SHARED=yes'
1863 else
1864 ac_cv_use_shared='wxUSE_SHARED=no'
1865 fi
1866
1867 else
1868
1869 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
1870 if test "x$LINE" != x ; then
1871 eval "DEFAULT_$LINE"
1872 else
1873 no_cache=1
1874 fi
1875
1876 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
1877
1878 fi
1879
1880
1881 eval "$ac_cv_use_shared"
1882 if test "$no_cache" != 1; then
1883 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
1884 fi
1885
1886 if test "$wxUSE_SHARED" = yes; then
1887 echo "$ac_t""yes" 1>&6
1888 else
1889 echo "$ac_t""no" 1>&6
1890 fi
1891
1892
1893 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
1894 echo "configure:1895: checking "for --enable-optimise"" >&5
1895 no_cache=0
1896 # Check whether --enable-optimise or --disable-optimise was given.
1897 if test "${enable_optimise+set}" = set; then
1898 enableval="$enable_optimise"
1899
1900 if test "$enableval" = yes; then
1901 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
1902 else
1903 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
1904 fi
1905
1906 else
1907
1908 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
1909 if test "x$LINE" != x ; then
1910 eval "DEFAULT_$LINE"
1911 else
1912 no_cache=1
1913 fi
1914
1915 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
1916
1917 fi
1918
1919
1920 eval "$ac_cv_use_optimise"
1921 if test "$no_cache" != 1; then
1922 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
1923 fi
1924
1925 if test "$wxUSE_OPTIMISE" = yes; then
1926 echo "$ac_t""yes" 1>&6
1927 else
1928 echo "$ac_t""no" 1>&6
1929 fi
1930
1931
1932 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
1933 echo "configure:1934: checking "for --enable-debug"" >&5
1934 no_cache=0
1935 # Check whether --enable-debug or --disable-debug was given.
1936 if test "${enable_debug+set}" = set; then
1937 enableval="$enable_debug"
1938
1939 if test "$enableval" = yes; then
1940 ac_cv_use_debug='wxUSE_DEBUG=yes'
1941 else
1942 ac_cv_use_debug='wxUSE_DEBUG=no'
1943 fi
1944
1945 else
1946
1947 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
1948 if test "x$LINE" != x ; then
1949 eval "DEFAULT_$LINE"
1950 else
1951 no_cache=1
1952 fi
1953
1954 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
1955
1956 fi
1957
1958
1959 eval "$ac_cv_use_debug"
1960 if test "$no_cache" != 1; then
1961 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
1962 fi
1963
1964 if test "$wxUSE_DEBUG" = yes; then
1965 echo "$ac_t""yes" 1>&6
1966 else
1967 echo "$ac_t""no" 1>&6
1968 fi
1969
1970
1971 if test "$wxUSE_DEBUG" = "yes"; then
1972 DEFAULT_wxUSE_DEBUG_FLAG=yes
1973 DEFAULT_wxUSE_DEBUG_INFO=yes
1974 elif test "$wxUSE_DEBUG" = "no"; then
1975 DEFAULT_wxUSE_DEBUG_FLAG=no
1976 DEFAULT_wxUSE_DEBUG_INFO=no
1977 fi
1978
1979
1980 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
1981 echo "configure:1982: checking "for --enable-debug_flag"" >&5
1982 no_cache=0
1983 # Check whether --enable-debug_flag or --disable-debug_flag was given.
1984 if test "${enable_debug_flag+set}" = set; then
1985 enableval="$enable_debug_flag"
1986
1987 if test "$enableval" = yes; then
1988 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
1989 else
1990 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
1991 fi
1992
1993 else
1994
1995 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
1996 if test "x$LINE" != x ; then
1997 eval "DEFAULT_$LINE"
1998 else
1999 no_cache=1
2000 fi
2001
2002 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2003
2004 fi
2005
2006
2007 eval "$ac_cv_use_debug_flag"
2008 if test "$no_cache" != 1; then
2009 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2010 fi
2011
2012 if test "$wxUSE_DEBUG_FLAG" = yes; then
2013 echo "$ac_t""yes" 1>&6
2014 else
2015 echo "$ac_t""no" 1>&6
2016 fi
2017
2018
2019 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
2020 echo "configure:2021: checking "for --enable-debug_info"" >&5
2021 no_cache=0
2022 # Check whether --enable-debug_info or --disable-debug_info was given.
2023 if test "${enable_debug_info+set}" = set; then
2024 enableval="$enable_debug_info"
2025
2026 if test "$enableval" = yes; then
2027 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2028 else
2029 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2030 fi
2031
2032 else
2033
2034 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2035 if test "x$LINE" != x ; then
2036 eval "DEFAULT_$LINE"
2037 else
2038 no_cache=1
2039 fi
2040
2041 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2042
2043 fi
2044
2045
2046 eval "$ac_cv_use_debug_info"
2047 if test "$no_cache" != 1; then
2048 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2049 fi
2050
2051 if test "$wxUSE_DEBUG_INFO" = yes; then
2052 echo "$ac_t""yes" 1>&6
2053 else
2054 echo "$ac_t""no" 1>&6
2055 fi
2056
2057
2058 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
2059 echo "configure:2060: checking "for --enable-debug_gdb"" >&5
2060 no_cache=0
2061 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2062 if test "${enable_debug_gdb+set}" = set; then
2063 enableval="$enable_debug_gdb"
2064
2065 if test "$enableval" = yes; then
2066 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2067 else
2068 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2069 fi
2070
2071 else
2072
2073 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2074 if test "x$LINE" != x ; then
2075 eval "DEFAULT_$LINE"
2076 else
2077 no_cache=1
2078 fi
2079
2080 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2081
2082 fi
2083
2084
2085 eval "$ac_cv_use_debug_gdb"
2086 if test "$no_cache" != 1; then
2087 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2088 fi
2089
2090 if test "$wxUSE_DEBUG_GDB" = yes; then
2091 echo "$ac_t""yes" 1>&6
2092 else
2093 echo "$ac_t""no" 1>&6
2094 fi
2095
2096
2097 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
2098 echo "configure:2099: checking "for --enable-debug_cntxt"" >&5
2099 no_cache=0
2100 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2101 if test "${enable_debug_cntxt+set}" = set; then
2102 enableval="$enable_debug_cntxt"
2103
2104 if test "$enableval" = yes; then
2105 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2106 else
2107 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2108 fi
2109
2110 else
2111
2112 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2113 if test "x$LINE" != x ; then
2114 eval "DEFAULT_$LINE"
2115 else
2116 no_cache=1
2117 fi
2118
2119 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2120
2121 fi
2122
2123
2124 eval "$ac_cv_use_debug_cntxt"
2125 if test "$no_cache" != 1; then
2126 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2127 fi
2128
2129 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2130 echo "$ac_t""yes" 1>&6
2131 else
2132 echo "$ac_t""no" 1>&6
2133 fi
2134
2135
2136 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
2137 echo "configure:2138: checking "for --enable-mem_tracing"" >&5
2138 no_cache=0
2139 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2140 if test "${enable_mem_tracing+set}" = set; then
2141 enableval="$enable_mem_tracing"
2142
2143 if test "$enableval" = yes; then
2144 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2145 else
2146 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2147 fi
2148
2149 else
2150
2151 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2152 if test "x$LINE" != x ; then
2153 eval "DEFAULT_$LINE"
2154 else
2155 no_cache=1
2156 fi
2157
2158 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2159
2160 fi
2161
2162
2163 eval "$ac_cv_use_mem_tracing"
2164 if test "$no_cache" != 1; then
2165 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2166 fi
2167
2168 if test "$wxUSE_MEM_TRACING" = yes; then
2169 echo "$ac_t""yes" 1>&6
2170 else
2171 echo "$ac_t""no" 1>&6
2172 fi
2173
2174
2175 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
2176 echo "configure:2177: checking "for --enable-profile"" >&5
2177 no_cache=0
2178 # Check whether --enable-profile or --disable-profile was given.
2179 if test "${enable_profile+set}" = set; then
2180 enableval="$enable_profile"
2181
2182 if test "$enableval" = yes; then
2183 ac_cv_use_profile='wxUSE_PROFILE=yes'
2184 else
2185 ac_cv_use_profile='wxUSE_PROFILE=no'
2186 fi
2187
2188 else
2189
2190 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2191 if test "x$LINE" != x ; then
2192 eval "DEFAULT_$LINE"
2193 else
2194 no_cache=1
2195 fi
2196
2197 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2198
2199 fi
2200
2201
2202 eval "$ac_cv_use_profile"
2203 if test "$no_cache" != 1; then
2204 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2205 fi
2206
2207 if test "$wxUSE_PROFILE" = yes; then
2208 echo "$ac_t""yes" 1>&6
2209 else
2210 echo "$ac_t""no" 1>&6
2211 fi
2212
2213
2214 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
2215 echo "configure:2216: checking "for --enable-no_rtti"" >&5
2216 no_cache=0
2217 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2218 if test "${enable_no_rtti+set}" = set; then
2219 enableval="$enable_no_rtti"
2220
2221 if test "$enableval" = yes; then
2222 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2223 else
2224 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2225 fi
2226
2227 else
2228
2229 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2230 if test "x$LINE" != x ; then
2231 eval "DEFAULT_$LINE"
2232 else
2233 no_cache=1
2234 fi
2235
2236 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2237
2238 fi
2239
2240
2241 eval "$ac_cv_use_no_rtti"
2242 if test "$no_cache" != 1; then
2243 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2244 fi
2245
2246 if test "$wxUSE_NO_RTTI" = yes; then
2247 echo "$ac_t""yes" 1>&6
2248 else
2249 echo "$ac_t""no" 1>&6
2250 fi
2251
2252
2253 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
2254 echo "configure:2255: checking "for --enable-no_exceptions"" >&5
2255 no_cache=0
2256 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2257 if test "${enable_no_exceptions+set}" = set; then
2258 enableval="$enable_no_exceptions"
2259
2260 if test "$enableval" = yes; then
2261 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2262 else
2263 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2264 fi
2265
2266 else
2267
2268 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2269 if test "x$LINE" != x ; then
2270 eval "DEFAULT_$LINE"
2271 else
2272 no_cache=1
2273 fi
2274
2275 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2276
2277 fi
2278
2279
2280 eval "$ac_cv_use_no_exceptions"
2281 if test "$no_cache" != 1; then
2282 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2283 fi
2284
2285 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2286 echo "$ac_t""yes" 1>&6
2287 else
2288 echo "$ac_t""no" 1>&6
2289 fi
2290
2291
2292 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
2293 echo "configure:2294: checking "for --enable-permissive"" >&5
2294 no_cache=0
2295 # Check whether --enable-permissive or --disable-permissive was given.
2296 if test "${enable_permissive+set}" = set; then
2297 enableval="$enable_permissive"
2298
2299 if test "$enableval" = yes; then
2300 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2301 else
2302 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2303 fi
2304
2305 else
2306
2307 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2308 if test "x$LINE" != x ; then
2309 eval "DEFAULT_$LINE"
2310 else
2311 no_cache=1
2312 fi
2313
2314 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2315
2316 fi
2317
2318
2319 eval "$ac_cv_use_permissive"
2320 if test "$no_cache" != 1; then
2321 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2322 fi
2323
2324 if test "$wxUSE_PERMISSIVE" = yes; then
2325 echo "$ac_t""yes" 1>&6
2326 else
2327 echo "$ac_t""no" 1>&6
2328 fi
2329
2330
2331 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
2332 echo "configure:2333: checking "for --enable-no_deps"" >&5
2333 no_cache=0
2334 # Check whether --enable-no_deps or --disable-no_deps was given.
2335 if test "${enable_no_deps+set}" = set; then
2336 enableval="$enable_no_deps"
2337
2338 if test "$enableval" = yes; then
2339 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2340 else
2341 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2342 fi
2343
2344 else
2345
2346 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2347 if test "x$LINE" != x ; then
2348 eval "DEFAULT_$LINE"
2349 else
2350 no_cache=1
2351 fi
2352
2353 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2354
2355 fi
2356
2357
2358 eval "$ac_cv_use_no_deps"
2359 if test "$no_cache" != 1; then
2360 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2361 fi
2362
2363 if test "$wxUSE_NO_DEPS" = yes; then
2364 echo "$ac_t""yes" 1>&6
2365 else
2366 echo "$ac_t""no" 1>&6
2367 fi
2368
2369
2370
2371
2372 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
2373 echo "configure:2374: checking "for --enable-intl"" >&5
2374 no_cache=0
2375 # Check whether --enable-intl or --disable-intl was given.
2376 if test "${enable_intl+set}" = set; then
2377 enableval="$enable_intl"
2378
2379 if test "$enableval" = yes; then
2380 ac_cv_use_intl='wxUSE_INTL=yes'
2381 else
2382 ac_cv_use_intl='wxUSE_INTL=no'
2383 fi
2384
2385 else
2386
2387 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2388 if test "x$LINE" != x ; then
2389 eval "DEFAULT_$LINE"
2390 else
2391 no_cache=1
2392 fi
2393
2394 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2395
2396 fi
2397
2398
2399 eval "$ac_cv_use_intl"
2400 if test "$no_cache" != 1; then
2401 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2402 fi
2403
2404 if test "$wxUSE_INTL" = yes; then
2405 echo "$ac_t""yes" 1>&6
2406 else
2407 echo "$ac_t""no" 1>&6
2408 fi
2409
2410
2411 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
2412 echo "configure:2413: checking "for --enable-config"" >&5
2413 no_cache=0
2414 # Check whether --enable-config or --disable-config was given.
2415 if test "${enable_config+set}" = set; then
2416 enableval="$enable_config"
2417
2418 if test "$enableval" = yes; then
2419 ac_cv_use_config='wxUSE_CONFIG=yes'
2420 else
2421 ac_cv_use_config='wxUSE_CONFIG=no'
2422 fi
2423
2424 else
2425
2426 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2427 if test "x$LINE" != x ; then
2428 eval "DEFAULT_$LINE"
2429 else
2430 no_cache=1
2431 fi
2432
2433 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2434
2435 fi
2436
2437
2438 eval "$ac_cv_use_config"
2439 if test "$no_cache" != 1; then
2440 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2441 fi
2442
2443 if test "$wxUSE_CONFIG" = yes; then
2444 echo "$ac_t""yes" 1>&6
2445 else
2446 echo "$ac_t""no" 1>&6
2447 fi
2448
2449
2450 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
2451 echo "configure:2452: checking "for --enable-sockets"" >&5
2452 no_cache=0
2453 # Check whether --enable-sockets or --disable-sockets was given.
2454 if test "${enable_sockets+set}" = set; then
2455 enableval="$enable_sockets"
2456
2457 if test "$enableval" = yes; then
2458 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2459 else
2460 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2461 fi
2462
2463 else
2464
2465 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2466 if test "x$LINE" != x ; then
2467 eval "DEFAULT_$LINE"
2468 else
2469 no_cache=1
2470 fi
2471
2472 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2473
2474 fi
2475
2476
2477 eval "$ac_cv_use_sockets"
2478 if test "$no_cache" != 1; then
2479 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2480 fi
2481
2482 if test "$wxUSE_SOCKETS" = yes; then
2483 echo "$ac_t""yes" 1>&6
2484 else
2485 echo "$ac_t""no" 1>&6
2486 fi
2487
2488
2489 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
2490 echo "configure:2491: checking "for --enable-dialupman"" >&5
2491 no_cache=0
2492 # Check whether --enable-dialupman or --disable-dialupman was given.
2493 if test "${enable_dialupman+set}" = set; then
2494 enableval="$enable_dialupman"
2495
2496 if test "$enableval" = yes; then
2497 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
2498 else
2499 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
2500 fi
2501
2502 else
2503
2504 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
2505 if test "x$LINE" != x ; then
2506 eval "DEFAULT_$LINE"
2507 else
2508 no_cache=1
2509 fi
2510
2511 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
2512
2513 fi
2514
2515
2516 eval "$ac_cv_use_dialupman"
2517 if test "$no_cache" != 1; then
2518 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
2519 fi
2520
2521 if test "$wxUSE_DIALUP_MANAGER" = yes; then
2522 echo "$ac_t""yes" 1>&6
2523 else
2524 echo "$ac_t""no" 1>&6
2525 fi
2526
2527
2528 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
2529 echo "configure:2530: checking "for --enable-ipc"" >&5
2530 no_cache=0
2531 # Check whether --enable-ipc or --disable-ipc was given.
2532 if test "${enable_ipc+set}" = set; then
2533 enableval="$enable_ipc"
2534
2535 if test "$enableval" = yes; then
2536 ac_cv_use_ipc='wxUSE_IPC=yes'
2537 else
2538 ac_cv_use_ipc='wxUSE_IPC=no'
2539 fi
2540
2541 else
2542
2543 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2544 if test "x$LINE" != x ; then
2545 eval "DEFAULT_$LINE"
2546 else
2547 no_cache=1
2548 fi
2549
2550 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2551
2552 fi
2553
2554
2555 eval "$ac_cv_use_ipc"
2556 if test "$no_cache" != 1; then
2557 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2558 fi
2559
2560 if test "$wxUSE_IPC" = yes; then
2561 echo "$ac_t""yes" 1>&6
2562 else
2563 echo "$ac_t""no" 1>&6
2564 fi
2565
2566
2567 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
2568 echo "configure:2569: checking "for --enable-apple_ieee"" >&5
2569 no_cache=0
2570 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2571 if test "${enable_apple_ieee+set}" = set; then
2572 enableval="$enable_apple_ieee"
2573
2574 if test "$enableval" = yes; then
2575 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2576 else
2577 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2578 fi
2579
2580 else
2581
2582 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2583 if test "x$LINE" != x ; then
2584 eval "DEFAULT_$LINE"
2585 else
2586 no_cache=1
2587 fi
2588
2589 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2590
2591 fi
2592
2593
2594 eval "$ac_cv_use_apple_ieee"
2595 if test "$no_cache" != 1; then
2596 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2597 fi
2598
2599 if test "$wxUSE_APPLE_IEEE" = yes; then
2600 echo "$ac_t""yes" 1>&6
2601 else
2602 echo "$ac_t""no" 1>&6
2603 fi
2604
2605
2606 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
2607 echo "configure:2608: checking "for --enable-timedate"" >&5
2608 no_cache=0
2609 # Check whether --enable-timedate or --disable-timedate was given.
2610 if test "${enable_timedate+set}" = set; then
2611 enableval="$enable_timedate"
2612
2613 if test "$enableval" = yes; then
2614 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2615 else
2616 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2617 fi
2618
2619 else
2620
2621 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2622 if test "x$LINE" != x ; then
2623 eval "DEFAULT_$LINE"
2624 else
2625 no_cache=1
2626 fi
2627
2628 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2629
2630 fi
2631
2632
2633 eval "$ac_cv_use_timedate"
2634 if test "$no_cache" != 1; then
2635 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2636 fi
2637
2638 if test "$wxUSE_TIMEDATE" = yes; then
2639 echo "$ac_t""yes" 1>&6
2640 else
2641 echo "$ac_t""no" 1>&6
2642 fi
2643
2644
2645 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
2646 echo "configure:2647: checking "for --enable-wave"" >&5
2647 no_cache=0
2648 # Check whether --enable-wave or --disable-wave was given.
2649 if test "${enable_wave+set}" = set; then
2650 enableval="$enable_wave"
2651
2652 if test "$enableval" = yes; then
2653 ac_cv_use_wave='wxUSE_WAVE=yes'
2654 else
2655 ac_cv_use_wave='wxUSE_WAVE=no'
2656 fi
2657
2658 else
2659
2660 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2661 if test "x$LINE" != x ; then
2662 eval "DEFAULT_$LINE"
2663 else
2664 no_cache=1
2665 fi
2666
2667 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2668
2669 fi
2670
2671
2672 eval "$ac_cv_use_wave"
2673 if test "$no_cache" != 1; then
2674 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2675 fi
2676
2677 if test "$wxUSE_WAVE" = yes; then
2678 echo "$ac_t""yes" 1>&6
2679 else
2680 echo "$ac_t""no" 1>&6
2681 fi
2682
2683
2684 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
2685 echo "configure:2686: checking "for --enable-fraction"" >&5
2686 no_cache=0
2687 # Check whether --enable-fraction or --disable-fraction was given.
2688 if test "${enable_fraction+set}" = set; then
2689 enableval="$enable_fraction"
2690
2691 if test "$enableval" = yes; then
2692 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2693 else
2694 ac_cv_use_fraction='wxUSE_FRACTION=no'
2695 fi
2696
2697 else
2698
2699 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2700 if test "x$LINE" != x ; then
2701 eval "DEFAULT_$LINE"
2702 else
2703 no_cache=1
2704 fi
2705
2706 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2707
2708 fi
2709
2710
2711 eval "$ac_cv_use_fraction"
2712 if test "$no_cache" != 1; then
2713 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2714 fi
2715
2716 if test "$wxUSE_FRACTION" = yes; then
2717 echo "$ac_t""yes" 1>&6
2718 else
2719 echo "$ac_t""no" 1>&6
2720 fi
2721
2722
2723 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
2724 echo "configure:2725: checking "for --enable-dynlib"" >&5
2725 no_cache=0
2726 # Check whether --enable-dynlib or --disable-dynlib was given.
2727 if test "${enable_dynlib+set}" = set; then
2728 enableval="$enable_dynlib"
2729
2730 if test "$enableval" = yes; then
2731 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2732 else
2733 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2734 fi
2735
2736 else
2737
2738 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2739 if test "x$LINE" != x ; then
2740 eval "DEFAULT_$LINE"
2741 else
2742 no_cache=1
2743 fi
2744
2745 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2746
2747 fi
2748
2749
2750 eval "$ac_cv_use_dynlib"
2751 if test "$no_cache" != 1; then
2752 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2753 fi
2754
2755 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2756 echo "$ac_t""yes" 1>&6
2757 else
2758 echo "$ac_t""no" 1>&6
2759 fi
2760
2761
2762 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
2763 echo "configure:2764: checking "for --enable-longlong"" >&5
2764 no_cache=0
2765 # Check whether --enable-longlong or --disable-longlong was given.
2766 if test "${enable_longlong+set}" = set; then
2767 enableval="$enable_longlong"
2768
2769 if test "$enableval" = yes; then
2770 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2771 else
2772 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2773 fi
2774
2775 else
2776
2777 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2778 if test "x$LINE" != x ; then
2779 eval "DEFAULT_$LINE"
2780 else
2781 no_cache=1
2782 fi
2783
2784 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2785
2786 fi
2787
2788
2789 eval "$ac_cv_use_longlong"
2790 if test "$no_cache" != 1; then
2791 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2792 fi
2793
2794 if test "$wxUSE_LONGLONG" = yes; then
2795 echo "$ac_t""yes" 1>&6
2796 else
2797 echo "$ac_t""no" 1>&6
2798 fi
2799
2800
2801 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
2802 echo "configure:2803: checking "for --enable-log"" >&5
2803 no_cache=0
2804 # Check whether --enable-log or --disable-log was given.
2805 if test "${enable_log+set}" = set; then
2806 enableval="$enable_log"
2807
2808 if test "$enableval" = yes; then
2809 ac_cv_use_log='wxUSE_LOG=yes'
2810 else
2811 ac_cv_use_log='wxUSE_LOG=no'
2812 fi
2813
2814 else
2815
2816 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
2817 if test "x$LINE" != x ; then
2818 eval "DEFAULT_$LINE"
2819 else
2820 no_cache=1
2821 fi
2822
2823 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
2824
2825 fi
2826
2827
2828 eval "$ac_cv_use_log"
2829 if test "$no_cache" != 1; then
2830 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
2831 fi
2832
2833 if test "$wxUSE_LOG" = yes; then
2834 echo "$ac_t""yes" 1>&6
2835 else
2836 echo "$ac_t""no" 1>&6
2837 fi
2838
2839
2840 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
2841 echo "configure:2842: checking "for --enable-streams"" >&5
2842 no_cache=0
2843 # Check whether --enable-streams or --disable-streams was given.
2844 if test "${enable_streams+set}" = set; then
2845 enableval="$enable_streams"
2846
2847 if test "$enableval" = yes; then
2848 ac_cv_use_streams='wxUSE_STREAMS=yes'
2849 else
2850 ac_cv_use_streams='wxUSE_STREAMS=no'
2851 fi
2852
2853 else
2854
2855 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
2856 if test "x$LINE" != x ; then
2857 eval "DEFAULT_$LINE"
2858 else
2859 no_cache=1
2860 fi
2861
2862 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
2863
2864 fi
2865
2866
2867 eval "$ac_cv_use_streams"
2868 if test "$no_cache" != 1; then
2869 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
2870 fi
2871
2872 if test "$wxUSE_STREAMS" = yes; then
2873 echo "$ac_t""yes" 1>&6
2874 else
2875 echo "$ac_t""no" 1>&6
2876 fi
2877
2878
2879 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
2880 echo "configure:2881: checking "for --enable-file"" >&5
2881 no_cache=0
2882 # Check whether --enable-file or --disable-file was given.
2883 if test "${enable_file+set}" = set; then
2884 enableval="$enable_file"
2885
2886 if test "$enableval" = yes; then
2887 ac_cv_use_file='wxUSE_FILE=yes'
2888 else
2889 ac_cv_use_file='wxUSE_FILE=no'
2890 fi
2891
2892 else
2893
2894 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
2895 if test "x$LINE" != x ; then
2896 eval "DEFAULT_$LINE"
2897 else
2898 no_cache=1
2899 fi
2900
2901 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
2902
2903 fi
2904
2905
2906 eval "$ac_cv_use_file"
2907 if test "$no_cache" != 1; then
2908 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
2909 fi
2910
2911 if test "$wxUSE_FILE" = yes; then
2912 echo "$ac_t""yes" 1>&6
2913 else
2914 echo "$ac_t""no" 1>&6
2915 fi
2916
2917
2918 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
2919 echo "configure:2920: checking "for --enable-textfile"" >&5
2920 no_cache=0
2921 # Check whether --enable-textfile or --disable-textfile was given.
2922 if test "${enable_textfile+set}" = set; then
2923 enableval="$enable_textfile"
2924
2925 if test "$enableval" = yes; then
2926 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
2927 else
2928 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
2929 fi
2930
2931 else
2932
2933 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
2934 if test "x$LINE" != x ; then
2935 eval "DEFAULT_$LINE"
2936 else
2937 no_cache=1
2938 fi
2939
2940 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
2941
2942 fi
2943
2944
2945 eval "$ac_cv_use_textfile"
2946 if test "$no_cache" != 1; then
2947 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
2948 fi
2949
2950 if test "$wxUSE_TEXTFILE" = yes; then
2951 echo "$ac_t""yes" 1>&6
2952 else
2953 echo "$ac_t""no" 1>&6
2954 fi
2955
2956
2957 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
2958 echo "configure:2959: checking "for --enable-unicode"" >&5
2959 no_cache=0
2960 # Check whether --enable-unicode or --disable-unicode was given.
2961 if test "${enable_unicode+set}" = set; then
2962 enableval="$enable_unicode"
2963
2964 if test "$enableval" = yes; then
2965 ac_cv_use_unicode='wxUSE_UNICODE=yes'
2966 else
2967 ac_cv_use_unicode='wxUSE_UNICODE=no'
2968 fi
2969
2970 else
2971
2972 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
2973 if test "x$LINE" != x ; then
2974 eval "DEFAULT_$LINE"
2975 else
2976 no_cache=1
2977 fi
2978
2979 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
2980
2981 fi
2982
2983
2984 eval "$ac_cv_use_unicode"
2985 if test "$no_cache" != 1; then
2986 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
2987 fi
2988
2989 if test "$wxUSE_UNICODE" = yes; then
2990 echo "$ac_t""yes" 1>&6
2991 else
2992 echo "$ac_t""no" 1>&6
2993 fi
2994
2995
2996 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
2997 echo "configure:2998: checking "for --enable-wcsrtombs"" >&5
2998 no_cache=0
2999 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3000 if test "${enable_wcsrtombs+set}" = set; then
3001 enableval="$enable_wcsrtombs"
3002
3003 if test "$enableval" = yes; then
3004 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3005 else
3006 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3007 fi
3008
3009 else
3010
3011 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3012 if test "x$LINE" != x ; then
3013 eval "DEFAULT_$LINE"
3014 else
3015 no_cache=1
3016 fi
3017
3018 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3019
3020 fi
3021
3022
3023 eval "$ac_cv_use_wcsrtombs"
3024 if test "$no_cache" != 1; then
3025 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3026 fi
3027
3028 if test "$wxUSE_WCSRTOMBS" = yes; then
3029 echo "$ac_t""yes" 1>&6
3030 else
3031 echo "$ac_t""no" 1>&6
3032 fi
3033
3034
3035 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
3036 echo "configure:3037: checking "for --enable-wxprintfv"" >&5
3037 no_cache=0
3038 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3039 if test "${enable_wxprintfv+set}" = set; then
3040 enableval="$enable_wxprintfv"
3041
3042 if test "$enableval" = yes; then
3043 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3044 else
3045 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3046 fi
3047
3048 else
3049
3050 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3051 if test "x$LINE" != x ; then
3052 eval "DEFAULT_$LINE"
3053 else
3054 no_cache=1
3055 fi
3056
3057 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3058
3059 fi
3060
3061
3062 eval "$ac_cv_use_wxprintfv"
3063 if test "$no_cache" != 1; then
3064 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3065 fi
3066
3067 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3068 echo "$ac_t""yes" 1>&6
3069 else
3070 echo "$ac_t""no" 1>&6
3071 fi
3072
3073
3074 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
3075 echo "configure:3076: checking "for --enable-joystick"" >&5
3076 no_cache=0
3077 # Check whether --enable-joystick or --disable-joystick was given.
3078 if test "${enable_joystick+set}" = set; then
3079 enableval="$enable_joystick"
3080
3081 if test "$enableval" = yes; then
3082 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
3083 else
3084 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
3085 fi
3086
3087 else
3088
3089 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
3090 if test "x$LINE" != x ; then
3091 eval "DEFAULT_$LINE"
3092 else
3093 no_cache=1
3094 fi
3095
3096 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
3097
3098 fi
3099
3100
3101 eval "$ac_cv_use_joystick"
3102 if test "$no_cache" != 1; then
3103 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
3104 fi
3105
3106 if test "$wxUSE_JOYSTICK" = yes; then
3107 echo "$ac_t""yes" 1>&6
3108 else
3109 echo "$ac_t""no" 1>&6
3110 fi
3111
3112
3113 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
3114 echo "configure:3115: checking "for --enable-std_iostreams"" >&5
3115 no_cache=0
3116 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3117 if test "${enable_std_iostreams+set}" = set; then
3118 enableval="$enable_std_iostreams"
3119
3120 if test "$enableval" = yes; then
3121 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3122 else
3123 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3124 fi
3125
3126 else
3127
3128 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3129 if test "x$LINE" != x ; then
3130 eval "DEFAULT_$LINE"
3131 else
3132 no_cache=1
3133 fi
3134
3135 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3136
3137 fi
3138
3139
3140 eval "$ac_cv_use_std_iostreams"
3141 if test "$no_cache" != 1; then
3142 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3143 fi
3144
3145 if test "$wxUSE_STD_IOSTREAM" = yes; then
3146 echo "$ac_t""yes" 1>&6
3147 else
3148 echo "$ac_t""no" 1>&6
3149 fi
3150
3151
3152 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
3153 echo "configure:3154: checking "for --enable-fs_inet"" >&5
3154 no_cache=0
3155 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3156 if test "${enable_fs_inet+set}" = set; then
3157 enableval="$enable_fs_inet"
3158
3159 if test "$enableval" = yes; then
3160 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3161 else
3162 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3163 fi
3164
3165 else
3166
3167 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3168 if test "x$LINE" != x ; then
3169 eval "DEFAULT_$LINE"
3170 else
3171 no_cache=1
3172 fi
3173
3174 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3175
3176 fi
3177
3178
3179 eval "$ac_cv_use_fs_inet"
3180 if test "$no_cache" != 1; then
3181 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3182 fi
3183
3184 if test "$wxUSE_FS_INET" = yes; then
3185 echo "$ac_t""yes" 1>&6
3186 else
3187 echo "$ac_t""no" 1>&6
3188 fi
3189
3190
3191 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
3192 echo "configure:3193: checking "for --enable-fs_zip"" >&5
3193 no_cache=0
3194 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3195 if test "${enable_fs_zip+set}" = set; then
3196 enableval="$enable_fs_zip"
3197
3198 if test "$enableval" = yes; then
3199 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3200 else
3201 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3202 fi
3203
3204 else
3205
3206 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3207 if test "x$LINE" != x ; then
3208 eval "DEFAULT_$LINE"
3209 else
3210 no_cache=1
3211 fi
3212
3213 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3214
3215 fi
3216
3217
3218 eval "$ac_cv_use_fs_zip"
3219 if test "$no_cache" != 1; then
3220 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3221 fi
3222
3223 if test "$wxUSE_FS_ZIP" = yes; then
3224 echo "$ac_t""yes" 1>&6
3225 else
3226 echo "$ac_t""no" 1>&6
3227 fi
3228
3229
3230 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
3231 echo "configure:3232: checking "for --enable-zipstream"" >&5
3232 no_cache=0
3233 # Check whether --enable-zipstream or --disable-zipstream was given.
3234 if test "${enable_zipstream+set}" = set; then
3235 enableval="$enable_zipstream"
3236
3237 if test "$enableval" = yes; then
3238 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3239 else
3240 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3241 fi
3242
3243 else
3244
3245 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3246 if test "x$LINE" != x ; then
3247 eval "DEFAULT_$LINE"
3248 else
3249 no_cache=1
3250 fi
3251
3252 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3253
3254 fi
3255
3256
3257 eval "$ac_cv_use_zipstream"
3258 if test "$no_cache" != 1; then
3259 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3260 fi
3261
3262 if test "$wxUSE_ZIPSTREAM" = yes; then
3263 echo "$ac_t""yes" 1>&6
3264 else
3265 echo "$ac_t""no" 1>&6
3266 fi
3267
3268
3269
3270
3271 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
3272 echo "configure:3273: checking "for --enable-threads"" >&5
3273 no_cache=0
3274 # Check whether --enable-threads or --disable-threads was given.
3275 if test "${enable_threads+set}" = set; then
3276 enableval="$enable_threads"
3277
3278 if test "$enableval" = yes; then
3279 ac_cv_use_threads='wxUSE_THREADS=yes'
3280 else
3281 ac_cv_use_threads='wxUSE_THREADS=no'
3282 fi
3283
3284 else
3285
3286 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3287 if test "x$LINE" != x ; then
3288 eval "DEFAULT_$LINE"
3289 else
3290 no_cache=1
3291 fi
3292
3293 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3294
3295 fi
3296
3297
3298 eval "$ac_cv_use_threads"
3299 if test "$no_cache" != 1; then
3300 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3301 fi
3302
3303 if test "$wxUSE_THREADS" = yes; then
3304 echo "$ac_t""yes" 1>&6
3305 else
3306 echo "$ac_t""no" 1>&6
3307 fi
3308
3309
3310 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
3311 echo "configure:3312: checking "for --enable-serial"" >&5
3312 no_cache=0
3313 # Check whether --enable-serial or --disable-serial was given.
3314 if test "${enable_serial+set}" = set; then
3315 enableval="$enable_serial"
3316
3317 if test "$enableval" = yes; then
3318 ac_cv_use_serial='wxUSE_SERIAL=yes'
3319 else
3320 ac_cv_use_serial='wxUSE_SERIAL=no'
3321 fi
3322
3323 else
3324
3325 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3326 if test "x$LINE" != x ; then
3327 eval "DEFAULT_$LINE"
3328 else
3329 no_cache=1
3330 fi
3331
3332 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3333
3334 fi
3335
3336
3337 eval "$ac_cv_use_serial"
3338 if test "$no_cache" != 1; then
3339 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3340 fi
3341
3342 if test "$wxUSE_SERIAL" = yes; then
3343 echo "$ac_t""yes" 1>&6
3344 else
3345 echo "$ac_t""no" 1>&6
3346 fi
3347
3348
3349
3350
3351 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
3352 echo "configure:3353: checking "for --enable-docview"" >&5
3353 no_cache=0
3354 # Check whether --enable-docview or --disable-docview was given.
3355 if test "${enable_docview+set}" = set; then
3356 enableval="$enable_docview"
3357
3358 if test "$enableval" = yes; then
3359 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3360 else
3361 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3362 fi
3363
3364 else
3365
3366 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3367 if test "x$LINE" != x ; then
3368 eval "DEFAULT_$LINE"
3369 else
3370 no_cache=1
3371 fi
3372
3373 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3374
3375 fi
3376
3377
3378 eval "$ac_cv_use_docview"
3379 if test "$no_cache" != 1; then
3380 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3381 fi
3382
3383 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3384 echo "$ac_t""yes" 1>&6
3385 else
3386 echo "$ac_t""no" 1>&6
3387 fi
3388
3389
3390 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
3391 echo "configure:3392: checking "for --enable-help"" >&5
3392 no_cache=0
3393 # Check whether --enable-help or --disable-help was given.
3394 if test "${enable_help+set}" = set; then
3395 enableval="$enable_help"
3396
3397 if test "$enableval" = yes; then
3398 ac_cv_use_help='wxUSE_HELP=yes'
3399 else
3400 ac_cv_use_help='wxUSE_HELP=no'
3401 fi
3402
3403 else
3404
3405 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3406 if test "x$LINE" != x ; then
3407 eval "DEFAULT_$LINE"
3408 else
3409 no_cache=1
3410 fi
3411
3412 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3413
3414 fi
3415
3416
3417 eval "$ac_cv_use_help"
3418 if test "$no_cache" != 1; then
3419 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3420 fi
3421
3422 if test "$wxUSE_HELP" = yes; then
3423 echo "$ac_t""yes" 1>&6
3424 else
3425 echo "$ac_t""no" 1>&6
3426 fi
3427
3428
3429 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
3430 echo "configure:3431: checking "for --enable-constraints"" >&5
3431 no_cache=0
3432 # Check whether --enable-constraints or --disable-constraints was given.
3433 if test "${enable_constraints+set}" = set; then
3434 enableval="$enable_constraints"
3435
3436 if test "$enableval" = yes; then
3437 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3438 else
3439 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3440 fi
3441
3442 else
3443
3444 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3445 if test "x$LINE" != x ; then
3446 eval "DEFAULT_$LINE"
3447 else
3448 no_cache=1
3449 fi
3450
3451 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3452
3453 fi
3454
3455
3456 eval "$ac_cv_use_constraints"
3457 if test "$no_cache" != 1; then
3458 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3459 fi
3460
3461 if test "$wxUSE_CONSTRAINTS" = yes; then
3462 echo "$ac_t""yes" 1>&6
3463 else
3464 echo "$ac_t""no" 1>&6
3465 fi
3466
3467
3468 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
3469 echo "configure:3470: checking "for --enable-printarch"" >&5
3470 no_cache=0
3471 # Check whether --enable-printarch or --disable-printarch was given.
3472 if test "${enable_printarch+set}" = set; then
3473 enableval="$enable_printarch"
3474
3475 if test "$enableval" = yes; then
3476 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3477 else
3478 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3479 fi
3480
3481 else
3482
3483 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3484 if test "x$LINE" != x ; then
3485 eval "DEFAULT_$LINE"
3486 else
3487 no_cache=1
3488 fi
3489
3490 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3491
3492 fi
3493
3494
3495 eval "$ac_cv_use_printarch"
3496 if test "$no_cache" != 1; then
3497 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3498 fi
3499
3500 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3501 echo "$ac_t""yes" 1>&6
3502 else
3503 echo "$ac_t""no" 1>&6
3504 fi
3505
3506
3507 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
3508 echo "configure:3509: checking "for --enable-mdi"" >&5
3509 no_cache=0
3510 # Check whether --enable-mdi or --disable-mdi was given.
3511 if test "${enable_mdi+set}" = set; then
3512 enableval="$enable_mdi"
3513
3514 if test "$enableval" = yes; then
3515 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3516 else
3517 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3518 fi
3519
3520 else
3521
3522 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3523 if test "x$LINE" != x ; then
3524 eval "DEFAULT_$LINE"
3525 else
3526 no_cache=1
3527 fi
3528
3529 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3530
3531 fi
3532
3533
3534 eval "$ac_cv_use_mdi"
3535 if test "$no_cache" != 1; then
3536 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3537 fi
3538
3539 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3540 echo "$ac_t""yes" 1>&6
3541 else
3542 echo "$ac_t""no" 1>&6
3543 fi
3544
3545
3546
3547 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
3548 echo "configure:3549: checking "for --enable-postscript"" >&5
3549 no_cache=0
3550 # Check whether --enable-postscript or --disable-postscript was given.
3551 if test "${enable_postscript+set}" = set; then
3552 enableval="$enable_postscript"
3553
3554 if test "$enableval" = yes; then
3555 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3556 else
3557 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3558 fi
3559
3560 else
3561
3562 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3563 if test "x$LINE" != x ; then
3564 eval "DEFAULT_$LINE"
3565 else
3566 no_cache=1
3567 fi
3568
3569 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3570
3571 fi
3572
3573
3574 eval "$ac_cv_use_postscript"
3575 if test "$no_cache" != 1; then
3576 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3577 fi
3578
3579 if test "$wxUSE_POSTSCRIPT" = yes; then
3580 echo "$ac_t""yes" 1>&6
3581 else
3582 echo "$ac_t""no" 1>&6
3583 fi
3584
3585
3586
3587
3588 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
3589 echo "configure:3590: checking "for --enable-prologio"" >&5
3590 no_cache=0
3591 # Check whether --enable-prologio or --disable-prologio was given.
3592 if test "${enable_prologio+set}" = set; then
3593 enableval="$enable_prologio"
3594
3595 if test "$enableval" = yes; then
3596 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3597 else
3598 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3599 fi
3600
3601 else
3602
3603 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3604 if test "x$LINE" != x ; then
3605 eval "DEFAULT_$LINE"
3606 else
3607 no_cache=1
3608 fi
3609
3610 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3611
3612 fi
3613
3614
3615 eval "$ac_cv_use_prologio"
3616 if test "$no_cache" != 1; then
3617 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3618 fi
3619
3620 if test "$wxUSE_PROLOGIO" = yes; then
3621 echo "$ac_t""yes" 1>&6
3622 else
3623 echo "$ac_t""no" 1>&6
3624 fi
3625
3626
3627 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
3628 echo "configure:3629: checking "for --enable-resources"" >&5
3629 no_cache=0
3630 # Check whether --enable-resources or --disable-resources was given.
3631 if test "${enable_resources+set}" = set; then
3632 enableval="$enable_resources"
3633
3634 if test "$enableval" = yes; then
3635 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3636 else
3637 ac_cv_use_resources='wxUSE_RESOURCES=no'
3638 fi
3639
3640 else
3641
3642 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3643 if test "x$LINE" != x ; then
3644 eval "DEFAULT_$LINE"
3645 else
3646 no_cache=1
3647 fi
3648
3649 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3650
3651 fi
3652
3653
3654 eval "$ac_cv_use_resources"
3655 if test "$no_cache" != 1; then
3656 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3657 fi
3658
3659 if test "$wxUSE_RESOURCES" = yes; then
3660 echo "$ac_t""yes" 1>&6
3661 else
3662 echo "$ac_t""no" 1>&6
3663 fi
3664
3665
3666
3667 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
3668 echo "configure:3669: checking "for --enable-xresources"" >&5
3669 no_cache=0
3670 # Check whether --enable-xresources or --disable-xresources was given.
3671 if test "${enable_xresources+set}" = set; then
3672 enableval="$enable_xresources"
3673
3674 if test "$enableval" = yes; then
3675 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3676 else
3677 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3678 fi
3679
3680 else
3681
3682 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3683 if test "x$LINE" != x ; then
3684 eval "DEFAULT_$LINE"
3685 else
3686 no_cache=1
3687 fi
3688
3689 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3690
3691 fi
3692
3693
3694 eval "$ac_cv_use_xresources"
3695 if test "$no_cache" != 1; then
3696 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3697 fi
3698
3699 if test "$wxUSE_X_RESOURCES" = yes; then
3700 echo "$ac_t""yes" 1>&6
3701 else
3702 echo "$ac_t""no" 1>&6
3703 fi
3704
3705
3706
3707
3708 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
3709 echo "configure:3710: checking "for --enable-clipboard"" >&5
3710 no_cache=0
3711 # Check whether --enable-clipboard or --disable-clipboard was given.
3712 if test "${enable_clipboard+set}" = set; then
3713 enableval="$enable_clipboard"
3714
3715 if test "$enableval" = yes; then
3716 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3717 else
3718 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3719 fi
3720
3721 else
3722
3723 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3724 if test "x$LINE" != x ; then
3725 eval "DEFAULT_$LINE"
3726 else
3727 no_cache=1
3728 fi
3729
3730 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
3731
3732 fi
3733
3734
3735 eval "$ac_cv_use_clipboard"
3736 if test "$no_cache" != 1; then
3737 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
3738 fi
3739
3740 if test "$wxUSE_CLIPBOARD" = yes; then
3741 echo "$ac_t""yes" 1>&6
3742 else
3743 echo "$ac_t""no" 1>&6
3744 fi
3745
3746
3747 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
3748 echo "configure:3749: checking "for --enable-dnd"" >&5
3749 no_cache=0
3750 # Check whether --enable-dnd or --disable-dnd was given.
3751 if test "${enable_dnd+set}" = set; then
3752 enableval="$enable_dnd"
3753
3754 if test "$enableval" = yes; then
3755 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
3756 else
3757 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
3758 fi
3759
3760 else
3761
3762 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
3763 if test "x$LINE" != x ; then
3764 eval "DEFAULT_$LINE"
3765 else
3766 no_cache=1
3767 fi
3768
3769 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
3770
3771 fi
3772
3773
3774 eval "$ac_cv_use_dnd"
3775 if test "$no_cache" != 1; then
3776 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
3777 fi
3778
3779 if test "$wxUSE_DRAG_AND_DROP" = yes; then
3780 echo "$ac_t""yes" 1>&6
3781 else
3782 echo "$ac_t""no" 1>&6
3783 fi
3784
3785
3786
3787 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
3788 echo "configure:3789: checking "for --enable-wxtree"" >&5
3789 no_cache=0
3790 # Check whether --enable-wxtree or --disable-wxtree was given.
3791 if test "${enable_wxtree+set}" = set; then
3792 enableval="$enable_wxtree"
3793
3794 if test "$enableval" = yes; then
3795 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
3796 else
3797 ac_cv_use_wxtree='wxUSE_WXTREE=no'
3798 fi
3799
3800 else
3801
3802 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
3803 if test "x$LINE" != x ; then
3804 eval "DEFAULT_$LINE"
3805 else
3806 no_cache=1
3807 fi
3808
3809 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
3810
3811 fi
3812
3813
3814 eval "$ac_cv_use_wxtree"
3815 if test "$no_cache" != 1; then
3816 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
3817 fi
3818
3819 if test "$wxUSE_WXTREE" = yes; then
3820 echo "$ac_t""yes" 1>&6
3821 else
3822 echo "$ac_t""no" 1>&6
3823 fi
3824
3825
3826
3827
3828 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
3829 echo "configure:3830: checking "for --enable-controls"" >&5
3830 no_cache=0
3831 # Check whether --enable-controls or --disable-controls was given.
3832 if test "${enable_controls+set}" = set; then
3833 enableval="$enable_controls"
3834
3835 if test "$enableval" = yes; then
3836 ac_cv_use_controls='wxUSE_CONTROLS=yes'
3837 else
3838 ac_cv_use_controls='wxUSE_CONTROLS=no'
3839 fi
3840
3841 else
3842
3843 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
3844 if test "x$LINE" != x ; then
3845 eval "DEFAULT_$LINE"
3846 else
3847 no_cache=1
3848 fi
3849
3850 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
3851
3852 fi
3853
3854
3855 eval "$ac_cv_use_controls"
3856 if test "$no_cache" != 1; then
3857 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
3858 fi
3859
3860 if test "$wxUSE_CONTROLS" = yes; then
3861 echo "$ac_t""yes" 1>&6
3862 else
3863 echo "$ac_t""no" 1>&6
3864 fi
3865
3866
3867 if test "$wxUSE_CONTROLS" = "yes"; then
3868 DEFAULT_wxUSE_ACCEL=yes
3869 DEFAULT_wxUSE_CARET=yes
3870 DEFAULT_wxUSE_COMBOBOX=yes
3871 DEFAULT_wxUSE_BMPBUTTON=yes
3872 DEFAULT_wxUSE_CHECKBOX=yes
3873 DEFAULT_wxUSE_CHECKLISTBOX=yes
3874 DEFAULT_wxUSE_CHOICE=yes
3875 DEFAULT_wxUSE_GAUGE=yes
3876 DEFAULT_wxUSE_GRID=yes
3877 DEFAULT_wxUSE_NEW_GRID=yes
3878 DEFAULT_wxUSE_IMAGLIST=yes
3879 DEFAULT_wxUSE_LISTBOX=yes
3880 DEFAULT_wxUSE_LISTCTRL=yes
3881 DEFAULT_wxUSE_NOTEBOOK=yes
3882 DEFAULT_wxUSE_RADIOBOX=yes
3883 DEFAULT_wxUSE_RADIOBTN=yes
3884 DEFAULT_wxUSE_SASH=yes
3885 DEFAULT_wxUSE_SCROLLBAR=yes
3886 DEFAULT_wxUSE_SLIDER=yes
3887 DEFAULT_wxUSE_SPINBTN=yes
3888 DEFAULT_wxUSE_SPLITTER=yes
3889 DEFAULT_wxUSE_STATBMP=yes
3890 DEFAULT_wxUSE_STATBOX=yes
3891 DEFAULT_wxUSE_STATLINE=yes
3892 DEFAULT_wxUSE_STATUSBAR=yes
3893 DEFAULT_wxUSE_TAB_DIALOG=yes
3894 DEFAULT_wxUSE_TOOLBAR=yes
3895 DEFAULT_wxUSE_TOOLTIPS=yes
3896 DEFAULT_wxUSE_TREECTRL=yes
3897 elif test "$wxUSE_CONTROLS" = "no"; then
3898 DEFAULT_wxUSE_ACCEL=no
3899 DEFAULT_wxUSE_CARET=no
3900 DEFAULT_wxUSE_COMBOBOX=no
3901 DEFAULT_wxUSE_BMPBUTTON=no
3902 DEFAULT_wxUSE_CHECKBOX=no
3903 DEFAULT_wxUSE_CHECKLISTBOX=no
3904 DEFAULT_wxUSE_CHOICE=no
3905 DEFAULT_wxUSE_GAUGE=no
3906 DEFAULT_wxUSE_GRID=no
3907 DEFAULT_wxUSE_NEW_GRID=no
3908 DEFAULT_wxUSE_IMAGLIST=no
3909 DEFAULT_wxUSE_LISTBOX=no
3910 DEFAULT_wxUSE_LISTCTRL=no
3911 DEFAULT_wxUSE_NOTEBOOK=no
3912 DEFAULT_wxUSE_RADIOBOX=no
3913 DEFAULT_wxUSE_RADIOBTN=no
3914 DEFAULT_wxUSE_SASH=no
3915 DEFAULT_wxUSE_SCROLLBAR=no
3916 DEFAULT_wxUSE_SLIDER=no
3917 DEFAULT_wxUSE_SPINBTN=no
3918 DEFAULT_wxUSE_SPLITTER=no
3919 DEFAULT_wxUSE_STATBMP=no
3920 DEFAULT_wxUSE_STATBOX=no
3921 DEFAULT_wxUSE_STATLINE=no
3922 DEFAULT_wxUSE_STATUSBAR=no
3923 DEFAULT_wxUSE_TAB_DIALOG=no
3924 DEFAULT_wxUSE_TOOLBAR=no
3925 DEFAULT_wxUSE_TOOLTIPS=no
3926 DEFAULT_wxUSE_TREECTRL=no
3927 fi
3928
3929
3930 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
3931 echo "configure:3932: checking "for --enable-accel"" >&5
3932 no_cache=0
3933 # Check whether --enable-accel or --disable-accel was given.
3934 if test "${enable_accel+set}" = set; then
3935 enableval="$enable_accel"
3936
3937 if test "$enableval" = yes; then
3938 ac_cv_use_accel='wxUSE_ACCEL=yes'
3939 else
3940 ac_cv_use_accel='wxUSE_ACCEL=no'
3941 fi
3942
3943 else
3944
3945 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
3946 if test "x$LINE" != x ; then
3947 eval "DEFAULT_$LINE"
3948 else
3949 no_cache=1
3950 fi
3951
3952 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
3953
3954 fi
3955
3956
3957 eval "$ac_cv_use_accel"
3958 if test "$no_cache" != 1; then
3959 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
3960 fi
3961
3962 if test "$wxUSE_ACCEL" = yes; then
3963 echo "$ac_t""yes" 1>&6
3964 else
3965 echo "$ac_t""no" 1>&6
3966 fi
3967
3968
3969 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
3970 echo "configure:3971: checking "for --enable-caret"" >&5
3971 no_cache=0
3972 # Check whether --enable-caret or --disable-caret was given.
3973 if test "${enable_caret+set}" = set; then
3974 enableval="$enable_caret"
3975
3976 if test "$enableval" = yes; then
3977 ac_cv_use_caret='wxUSE_CARET=yes'
3978 else
3979 ac_cv_use_caret='wxUSE_CARET=no'
3980 fi
3981
3982 else
3983
3984 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
3985 if test "x$LINE" != x ; then
3986 eval "DEFAULT_$LINE"
3987 else
3988 no_cache=1
3989 fi
3990
3991 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
3992
3993 fi
3994
3995
3996 eval "$ac_cv_use_caret"
3997 if test "$no_cache" != 1; then
3998 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
3999 fi
4000
4001 if test "$wxUSE_CARET" = yes; then
4002 echo "$ac_t""yes" 1>&6
4003 else
4004 echo "$ac_t""no" 1>&6
4005 fi
4006
4007
4008 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
4009 echo "configure:4010: checking "for --enable-bmpbutton"" >&5
4010 no_cache=0
4011 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4012 if test "${enable_bmpbutton+set}" = set; then
4013 enableval="$enable_bmpbutton"
4014
4015 if test "$enableval" = yes; then
4016 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4017 else
4018 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4019 fi
4020
4021 else
4022
4023 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4024 if test "x$LINE" != x ; then
4025 eval "DEFAULT_$LINE"
4026 else
4027 no_cache=1
4028 fi
4029
4030 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4031
4032 fi
4033
4034
4035 eval "$ac_cv_use_bmpbutton"
4036 if test "$no_cache" != 1; then
4037 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4038 fi
4039
4040 if test "$wxUSE_BMPBUTTON" = yes; then
4041 echo "$ac_t""yes" 1>&6
4042 else
4043 echo "$ac_t""no" 1>&6
4044 fi
4045
4046
4047 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
4048 echo "configure:4049: checking "for --enable-checkbox"" >&5
4049 no_cache=0
4050 # Check whether --enable-checkbox or --disable-checkbox was given.
4051 if test "${enable_checkbox+set}" = set; then
4052 enableval="$enable_checkbox"
4053
4054 if test "$enableval" = yes; then
4055 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4056 else
4057 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4058 fi
4059
4060 else
4061
4062 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4063 if test "x$LINE" != x ; then
4064 eval "DEFAULT_$LINE"
4065 else
4066 no_cache=1
4067 fi
4068
4069 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4070
4071 fi
4072
4073
4074 eval "$ac_cv_use_checkbox"
4075 if test "$no_cache" != 1; then
4076 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4077 fi
4078
4079 if test "$wxUSE_CHECKBOX" = yes; then
4080 echo "$ac_t""yes" 1>&6
4081 else
4082 echo "$ac_t""no" 1>&6
4083 fi
4084
4085
4086 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
4087 echo "configure:4088: checking "for --enable-checklst"" >&5
4088 no_cache=0
4089 # Check whether --enable-checklst or --disable-checklst was given.
4090 if test "${enable_checklst+set}" = set; then
4091 enableval="$enable_checklst"
4092
4093 if test "$enableval" = yes; then
4094 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4095 else
4096 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4097 fi
4098
4099 else
4100
4101 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4102 if test "x$LINE" != x ; then
4103 eval "DEFAULT_$LINE"
4104 else
4105 no_cache=1
4106 fi
4107
4108 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4109
4110 fi
4111
4112
4113 eval "$ac_cv_use_checklst"
4114 if test "$no_cache" != 1; then
4115 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4116 fi
4117
4118 if test "$wxUSE_CHECKLST" = yes; then
4119 echo "$ac_t""yes" 1>&6
4120 else
4121 echo "$ac_t""no" 1>&6
4122 fi
4123
4124
4125 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
4126 echo "configure:4127: checking "for --enable-choice"" >&5
4127 no_cache=0
4128 # Check whether --enable-choice or --disable-choice was given.
4129 if test "${enable_choice+set}" = set; then
4130 enableval="$enable_choice"
4131
4132 if test "$enableval" = yes; then
4133 ac_cv_use_choice='wxUSE_CHOICE=yes'
4134 else
4135 ac_cv_use_choice='wxUSE_CHOICE=no'
4136 fi
4137
4138 else
4139
4140 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4141 if test "x$LINE" != x ; then
4142 eval "DEFAULT_$LINE"
4143 else
4144 no_cache=1
4145 fi
4146
4147 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4148
4149 fi
4150
4151
4152 eval "$ac_cv_use_choice"
4153 if test "$no_cache" != 1; then
4154 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4155 fi
4156
4157 if test "$wxUSE_CHOICE" = yes; then
4158 echo "$ac_t""yes" 1>&6
4159 else
4160 echo "$ac_t""no" 1>&6
4161 fi
4162
4163
4164 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
4165 echo "configure:4166: checking "for --enable-combobox"" >&5
4166 no_cache=0
4167 # Check whether --enable-combobox or --disable-combobox was given.
4168 if test "${enable_combobox+set}" = set; then
4169 enableval="$enable_combobox"
4170
4171 if test "$enableval" = yes; then
4172 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4173 else
4174 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4175 fi
4176
4177 else
4178
4179 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4180 if test "x$LINE" != x ; then
4181 eval "DEFAULT_$LINE"
4182 else
4183 no_cache=1
4184 fi
4185
4186 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4187
4188 fi
4189
4190
4191 eval "$ac_cv_use_combobox"
4192 if test "$no_cache" != 1; then
4193 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4194 fi
4195
4196 if test "$wxUSE_COMBOBOX" = yes; then
4197 echo "$ac_t""yes" 1>&6
4198 else
4199 echo "$ac_t""no" 1>&6
4200 fi
4201
4202
4203 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
4204 echo "configure:4205: checking "for --enable-gauge"" >&5
4205 no_cache=0
4206 # Check whether --enable-gauge or --disable-gauge was given.
4207 if test "${enable_gauge+set}" = set; then
4208 enableval="$enable_gauge"
4209
4210 if test "$enableval" = yes; then
4211 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4212 else
4213 ac_cv_use_gauge='wxUSE_GAUGE=no'
4214 fi
4215
4216 else
4217
4218 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4219 if test "x$LINE" != x ; then
4220 eval "DEFAULT_$LINE"
4221 else
4222 no_cache=1
4223 fi
4224
4225 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4226
4227 fi
4228
4229
4230 eval "$ac_cv_use_gauge"
4231 if test "$no_cache" != 1; then
4232 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4233 fi
4234
4235 if test "$wxUSE_GAUGE" = yes; then
4236 echo "$ac_t""yes" 1>&6
4237 else
4238 echo "$ac_t""no" 1>&6
4239 fi
4240
4241
4242 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
4243 echo "configure:4244: checking "for --enable-grid"" >&5
4244 no_cache=0
4245 # Check whether --enable-grid or --disable-grid was given.
4246 if test "${enable_grid+set}" = set; then
4247 enableval="$enable_grid"
4248
4249 if test "$enableval" = yes; then
4250 ac_cv_use_grid='wxUSE_GRID=yes'
4251 else
4252 ac_cv_use_grid='wxUSE_GRID=no'
4253 fi
4254
4255 else
4256
4257 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4258 if test "x$LINE" != x ; then
4259 eval "DEFAULT_$LINE"
4260 else
4261 no_cache=1
4262 fi
4263
4264 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4265
4266 fi
4267
4268
4269 eval "$ac_cv_use_grid"
4270 if test "$no_cache" != 1; then
4271 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4272 fi
4273
4274 if test "$wxUSE_GRID" = yes; then
4275 echo "$ac_t""yes" 1>&6
4276 else
4277 echo "$ac_t""no" 1>&6
4278 fi
4279
4280
4281 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
4282 echo "configure:4283: checking "for --enable-newgrid"" >&5
4283 no_cache=0
4284 # Check whether --enable-newgrid or --disable-newgrid was given.
4285 if test "${enable_newgrid+set}" = set; then
4286 enableval="$enable_newgrid"
4287
4288 if test "$enableval" = yes; then
4289 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4290 else
4291 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4292 fi
4293
4294 else
4295
4296 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4297 if test "x$LINE" != x ; then
4298 eval "DEFAULT_$LINE"
4299 else
4300 no_cache=1
4301 fi
4302
4303 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4304
4305 fi
4306
4307
4308 eval "$ac_cv_use_newgrid"
4309 if test "$no_cache" != 1; then
4310 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4311 fi
4312
4313 if test "$wxUSE_NEW_GRID" = yes; then
4314 echo "$ac_t""yes" 1>&6
4315 else
4316 echo "$ac_t""no" 1>&6
4317 fi
4318
4319
4320 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
4321 echo "configure:4322: checking "for --enable-imaglist"" >&5
4322 no_cache=0
4323 # Check whether --enable-imaglist or --disable-imaglist was given.
4324 if test "${enable_imaglist+set}" = set; then
4325 enableval="$enable_imaglist"
4326
4327 if test "$enableval" = yes; then
4328 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4329 else
4330 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4331 fi
4332
4333 else
4334
4335 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4336 if test "x$LINE" != x ; then
4337 eval "DEFAULT_$LINE"
4338 else
4339 no_cache=1
4340 fi
4341
4342 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4343
4344 fi
4345
4346
4347 eval "$ac_cv_use_imaglist"
4348 if test "$no_cache" != 1; then
4349 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4350 fi
4351
4352 if test "$wxUSE_IMAGLIST" = yes; then
4353 echo "$ac_t""yes" 1>&6
4354 else
4355 echo "$ac_t""no" 1>&6
4356 fi
4357
4358
4359 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
4360 echo "configure:4361: checking "for --enable-listbox"" >&5
4361 no_cache=0
4362 # Check whether --enable-listbox or --disable-listbox was given.
4363 if test "${enable_listbox+set}" = set; then
4364 enableval="$enable_listbox"
4365
4366 if test "$enableval" = yes; then
4367 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4368 else
4369 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4370 fi
4371
4372 else
4373
4374 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4375 if test "x$LINE" != x ; then
4376 eval "DEFAULT_$LINE"
4377 else
4378 no_cache=1
4379 fi
4380
4381 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4382
4383 fi
4384
4385
4386 eval "$ac_cv_use_listbox"
4387 if test "$no_cache" != 1; then
4388 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4389 fi
4390
4391 if test "$wxUSE_LISTBOX" = yes; then
4392 echo "$ac_t""yes" 1>&6
4393 else
4394 echo "$ac_t""no" 1>&6
4395 fi
4396
4397
4398 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
4399 echo "configure:4400: checking "for --enable-listctrl"" >&5
4400 no_cache=0
4401 # Check whether --enable-listctrl or --disable-listctrl was given.
4402 if test "${enable_listctrl+set}" = set; then
4403 enableval="$enable_listctrl"
4404
4405 if test "$enableval" = yes; then
4406 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4407 else
4408 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4409 fi
4410
4411 else
4412
4413 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4414 if test "x$LINE" != x ; then
4415 eval "DEFAULT_$LINE"
4416 else
4417 no_cache=1
4418 fi
4419
4420 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4421
4422 fi
4423
4424
4425 eval "$ac_cv_use_listctrl"
4426 if test "$no_cache" != 1; then
4427 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4428 fi
4429
4430 if test "$wxUSE_LISTCTRL" = yes; then
4431 echo "$ac_t""yes" 1>&6
4432 else
4433 echo "$ac_t""no" 1>&6
4434 fi
4435
4436
4437 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
4438 echo "configure:4439: checking "for --enable-notebook"" >&5
4439 no_cache=0
4440 # Check whether --enable-notebook or --disable-notebook was given.
4441 if test "${enable_notebook+set}" = set; then
4442 enableval="$enable_notebook"
4443
4444 if test "$enableval" = yes; then
4445 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4446 else
4447 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4448 fi
4449
4450 else
4451
4452 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4453 if test "x$LINE" != x ; then
4454 eval "DEFAULT_$LINE"
4455 else
4456 no_cache=1
4457 fi
4458
4459 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4460
4461 fi
4462
4463
4464 eval "$ac_cv_use_notebook"
4465 if test "$no_cache" != 1; then
4466 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4467 fi
4468
4469 if test "$wxUSE_NOTEBOOK" = yes; then
4470 echo "$ac_t""yes" 1>&6
4471 else
4472 echo "$ac_t""no" 1>&6
4473 fi
4474
4475
4476 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
4477 echo "configure:4478: checking "for --enable-radiobox"" >&5
4478 no_cache=0
4479 # Check whether --enable-radiobox or --disable-radiobox was given.
4480 if test "${enable_radiobox+set}" = set; then
4481 enableval="$enable_radiobox"
4482
4483 if test "$enableval" = yes; then
4484 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4485 else
4486 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4487 fi
4488
4489 else
4490
4491 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4492 if test "x$LINE" != x ; then
4493 eval "DEFAULT_$LINE"
4494 else
4495 no_cache=1
4496 fi
4497
4498 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4499
4500 fi
4501
4502
4503 eval "$ac_cv_use_radiobox"
4504 if test "$no_cache" != 1; then
4505 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4506 fi
4507
4508 if test "$wxUSE_RADIOBOX" = yes; then
4509 echo "$ac_t""yes" 1>&6
4510 else
4511 echo "$ac_t""no" 1>&6
4512 fi
4513
4514
4515 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
4516 echo "configure:4517: checking "for --enable-radiobtn"" >&5
4517 no_cache=0
4518 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4519 if test "${enable_radiobtn+set}" = set; then
4520 enableval="$enable_radiobtn"
4521
4522 if test "$enableval" = yes; then
4523 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4524 else
4525 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4526 fi
4527
4528 else
4529
4530 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4531 if test "x$LINE" != x ; then
4532 eval "DEFAULT_$LINE"
4533 else
4534 no_cache=1
4535 fi
4536
4537 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4538
4539 fi
4540
4541
4542 eval "$ac_cv_use_radiobtn"
4543 if test "$no_cache" != 1; then
4544 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4545 fi
4546
4547 if test "$wxUSE_RADIOBTN" = yes; then
4548 echo "$ac_t""yes" 1>&6
4549 else
4550 echo "$ac_t""no" 1>&6
4551 fi
4552
4553
4554 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
4555 echo "configure:4556: checking "for --enable-sash"" >&5
4556 no_cache=0
4557 # Check whether --enable-sash or --disable-sash was given.
4558 if test "${enable_sash+set}" = set; then
4559 enableval="$enable_sash"
4560
4561 if test "$enableval" = yes; then
4562 ac_cv_use_sash='wxUSE_SASH=yes'
4563 else
4564 ac_cv_use_sash='wxUSE_SASH=no'
4565 fi
4566
4567 else
4568
4569 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4570 if test "x$LINE" != x ; then
4571 eval "DEFAULT_$LINE"
4572 else
4573 no_cache=1
4574 fi
4575
4576 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4577
4578 fi
4579
4580
4581 eval "$ac_cv_use_sash"
4582 if test "$no_cache" != 1; then
4583 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4584 fi
4585
4586 if test "$wxUSE_SASH" = yes; then
4587 echo "$ac_t""yes" 1>&6
4588 else
4589 echo "$ac_t""no" 1>&6
4590 fi
4591
4592
4593 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
4594 echo "configure:4595: checking "for --enable-scrollbar"" >&5
4595 no_cache=0
4596 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4597 if test "${enable_scrollbar+set}" = set; then
4598 enableval="$enable_scrollbar"
4599
4600 if test "$enableval" = yes; then
4601 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4602 else
4603 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4604 fi
4605
4606 else
4607
4608 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4609 if test "x$LINE" != x ; then
4610 eval "DEFAULT_$LINE"
4611 else
4612 no_cache=1
4613 fi
4614
4615 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4616
4617 fi
4618
4619
4620 eval "$ac_cv_use_scrollbar"
4621 if test "$no_cache" != 1; then
4622 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4623 fi
4624
4625 if test "$wxUSE_SCROLLBAR" = yes; then
4626 echo "$ac_t""yes" 1>&6
4627 else
4628 echo "$ac_t""no" 1>&6
4629 fi
4630
4631
4632 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
4633 echo "configure:4634: checking "for --enable-slider"" >&5
4634 no_cache=0
4635 # Check whether --enable-slider or --disable-slider was given.
4636 if test "${enable_slider+set}" = set; then
4637 enableval="$enable_slider"
4638
4639 if test "$enableval" = yes; then
4640 ac_cv_use_slider='wxUSE_SLIDER=yes'
4641 else
4642 ac_cv_use_slider='wxUSE_SLIDER=no'
4643 fi
4644
4645 else
4646
4647 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4648 if test "x$LINE" != x ; then
4649 eval "DEFAULT_$LINE"
4650 else
4651 no_cache=1
4652 fi
4653
4654 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4655
4656 fi
4657
4658
4659 eval "$ac_cv_use_slider"
4660 if test "$no_cache" != 1; then
4661 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4662 fi
4663
4664 if test "$wxUSE_SLIDER" = yes; then
4665 echo "$ac_t""yes" 1>&6
4666 else
4667 echo "$ac_t""no" 1>&6
4668 fi
4669
4670
4671 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
4672 echo "configure:4673: checking "for --enable-spinbtn"" >&5
4673 no_cache=0
4674 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4675 if test "${enable_spinbtn+set}" = set; then
4676 enableval="$enable_spinbtn"
4677
4678 if test "$enableval" = yes; then
4679 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4680 else
4681 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4682 fi
4683
4684 else
4685
4686 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4687 if test "x$LINE" != x ; then
4688 eval "DEFAULT_$LINE"
4689 else
4690 no_cache=1
4691 fi
4692
4693 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4694
4695 fi
4696
4697
4698 eval "$ac_cv_use_spinbtn"
4699 if test "$no_cache" != 1; then
4700 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4701 fi
4702
4703 if test "$wxUSE_SPINBTN" = yes; then
4704 echo "$ac_t""yes" 1>&6
4705 else
4706 echo "$ac_t""no" 1>&6
4707 fi
4708
4709
4710 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
4711 echo "configure:4712: checking "for --enable-splitter"" >&5
4712 no_cache=0
4713 # Check whether --enable-splitter or --disable-splitter was given.
4714 if test "${enable_splitter+set}" = set; then
4715 enableval="$enable_splitter"
4716
4717 if test "$enableval" = yes; then
4718 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
4719 else
4720 ac_cv_use_splitter='wxUSE_SPLITTER=no'
4721 fi
4722
4723 else
4724
4725 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
4726 if test "x$LINE" != x ; then
4727 eval "DEFAULT_$LINE"
4728 else
4729 no_cache=1
4730 fi
4731
4732 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
4733
4734 fi
4735
4736
4737 eval "$ac_cv_use_splitter"
4738 if test "$no_cache" != 1; then
4739 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
4740 fi
4741
4742 if test "$wxUSE_SPLITTER" = yes; then
4743 echo "$ac_t""yes" 1>&6
4744 else
4745 echo "$ac_t""no" 1>&6
4746 fi
4747
4748
4749 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
4750 echo "configure:4751: checking "for --enable-statbmp"" >&5
4751 no_cache=0
4752 # Check whether --enable-statbmp or --disable-statbmp was given.
4753 if test "${enable_statbmp+set}" = set; then
4754 enableval="$enable_statbmp"
4755
4756 if test "$enableval" = yes; then
4757 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
4758 else
4759 ac_cv_use_statbmp='wxUSE_STATBMP=no'
4760 fi
4761
4762 else
4763
4764 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
4765 if test "x$LINE" != x ; then
4766 eval "DEFAULT_$LINE"
4767 else
4768 no_cache=1
4769 fi
4770
4771 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
4772
4773 fi
4774
4775
4776 eval "$ac_cv_use_statbmp"
4777 if test "$no_cache" != 1; then
4778 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
4779 fi
4780
4781 if test "$wxUSE_STATBMP" = yes; then
4782 echo "$ac_t""yes" 1>&6
4783 else
4784 echo "$ac_t""no" 1>&6
4785 fi
4786
4787
4788 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
4789 echo "configure:4790: checking "for --enable-statbox"" >&5
4790 no_cache=0
4791 # Check whether --enable-statbox or --disable-statbox was given.
4792 if test "${enable_statbox+set}" = set; then
4793 enableval="$enable_statbox"
4794
4795 if test "$enableval" = yes; then
4796 ac_cv_use_statbox='wxUSE_STATBOX=yes'
4797 else
4798 ac_cv_use_statbox='wxUSE_STATBOX=no'
4799 fi
4800
4801 else
4802
4803 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
4804 if test "x$LINE" != x ; then
4805 eval "DEFAULT_$LINE"
4806 else
4807 no_cache=1
4808 fi
4809
4810 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
4811
4812 fi
4813
4814
4815 eval "$ac_cv_use_statbox"
4816 if test "$no_cache" != 1; then
4817 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
4818 fi
4819
4820 if test "$wxUSE_STATBOX" = yes; then
4821 echo "$ac_t""yes" 1>&6
4822 else
4823 echo "$ac_t""no" 1>&6
4824 fi
4825
4826
4827 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
4828 echo "configure:4829: checking "for --enable-statline"" >&5
4829 no_cache=0
4830 # Check whether --enable-statline or --disable-statline was given.
4831 if test "${enable_statline+set}" = set; then
4832 enableval="$enable_statline"
4833
4834 if test "$enableval" = yes; then
4835 ac_cv_use_statline='wxUSE_STATLINE=yes'
4836 else
4837 ac_cv_use_statline='wxUSE_STATLINE=no'
4838 fi
4839
4840 else
4841
4842 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
4843 if test "x$LINE" != x ; then
4844 eval "DEFAULT_$LINE"
4845 else
4846 no_cache=1
4847 fi
4848
4849 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
4850
4851 fi
4852
4853
4854 eval "$ac_cv_use_statline"
4855 if test "$no_cache" != 1; then
4856 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
4857 fi
4858
4859 if test "$wxUSE_STATLINE" = yes; then
4860 echo "$ac_t""yes" 1>&6
4861 else
4862 echo "$ac_t""no" 1>&6
4863 fi
4864
4865
4866 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
4867 echo "configure:4868: checking "for --enable-statusbar"" >&5
4868 no_cache=0
4869 # Check whether --enable-statusbar or --disable-statusbar was given.
4870 if test "${enable_statusbar+set}" = set; then
4871 enableval="$enable_statusbar"
4872
4873 if test "$enableval" = yes; then
4874 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
4875 else
4876 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
4877 fi
4878
4879 else
4880
4881 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
4882 if test "x$LINE" != x ; then
4883 eval "DEFAULT_$LINE"
4884 else
4885 no_cache=1
4886 fi
4887
4888 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
4889
4890 fi
4891
4892
4893 eval "$ac_cv_use_statusbar"
4894 if test "$no_cache" != 1; then
4895 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
4896 fi
4897
4898 if test "$wxUSE_STATUSBAR" = yes; then
4899 echo "$ac_t""yes" 1>&6
4900 else
4901 echo "$ac_t""no" 1>&6
4902 fi
4903
4904
4905 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
4906 echo "configure:4907: checking "for --enable-tabdialog"" >&5
4907 no_cache=0
4908 # Check whether --enable-tabdialog or --disable-tabdialog was given.
4909 if test "${enable_tabdialog+set}" = set; then
4910 enableval="$enable_tabdialog"
4911
4912 if test "$enableval" = yes; then
4913 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
4914 else
4915 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
4916 fi
4917
4918 else
4919
4920 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
4921 if test "x$LINE" != x ; then
4922 eval "DEFAULT_$LINE"
4923 else
4924 no_cache=1
4925 fi
4926
4927 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
4928
4929 fi
4930
4931
4932 eval "$ac_cv_use_tabdialog"
4933 if test "$no_cache" != 1; then
4934 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
4935 fi
4936
4937 if test "$wxUSE_TABDIALOG" = yes; then
4938 echo "$ac_t""yes" 1>&6
4939 else
4940 echo "$ac_t""no" 1>&6
4941 fi
4942
4943
4944 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
4945 echo "configure:4946: checking "for --enable-toolbar"" >&5
4946 no_cache=0
4947 # Check whether --enable-toolbar or --disable-toolbar was given.
4948 if test "${enable_toolbar+set}" = set; then
4949 enableval="$enable_toolbar"
4950
4951 if test "$enableval" = yes; then
4952 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
4953 else
4954 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
4955 fi
4956
4957 else
4958
4959 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
4960 if test "x$LINE" != x ; then
4961 eval "DEFAULT_$LINE"
4962 else
4963 no_cache=1
4964 fi
4965
4966 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
4967
4968 fi
4969
4970
4971 eval "$ac_cv_use_toolbar"
4972 if test "$no_cache" != 1; then
4973 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
4974 fi
4975
4976 if test "$wxUSE_TOOLBAR" = yes; then
4977 echo "$ac_t""yes" 1>&6
4978 else
4979 echo "$ac_t""no" 1>&6
4980 fi
4981
4982
4983 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
4984 echo "configure:4985: checking "for --enable-treectrl"" >&5
4985 no_cache=0
4986 # Check whether --enable-treectrl or --disable-treectrl was given.
4987 if test "${enable_treectrl+set}" = set; then
4988 enableval="$enable_treectrl"
4989
4990 if test "$enableval" = yes; then
4991 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
4992 else
4993 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
4994 fi
4995
4996 else
4997
4998 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
4999 if test "x$LINE" != x ; then
5000 eval "DEFAULT_$LINE"
5001 else
5002 no_cache=1
5003 fi
5004
5005 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5006
5007 fi
5008
5009
5010 eval "$ac_cv_use_treectrl"
5011 if test "$no_cache" != 1; then
5012 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5013 fi
5014
5015 if test "$wxUSE_TREECTRL" = yes; then
5016 echo "$ac_t""yes" 1>&6
5017 else
5018 echo "$ac_t""no" 1>&6
5019 fi
5020
5021
5022
5023
5024 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
5025 echo "configure:5026: checking "for --enable-commondlg"" >&5
5026 no_cache=0
5027 # Check whether --enable-commondlg or --disable-commondlg was given.
5028 if test "${enable_commondlg+set}" = set; then
5029 enableval="$enable_commondlg"
5030
5031 if test "$enableval" = yes; then
5032 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5033 else
5034 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5035 fi
5036
5037 else
5038
5039 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5040 if test "x$LINE" != x ; then
5041 eval "DEFAULT_$LINE"
5042 else
5043 no_cache=1
5044 fi
5045
5046 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5047
5048 fi
5049
5050
5051 eval "$ac_cv_use_commondlg"
5052 if test "$no_cache" != 1; then
5053 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5054 fi
5055
5056 if test "$wxUSE_COMMONDLGS" = yes; then
5057 echo "$ac_t""yes" 1>&6
5058 else
5059 echo "$ac_t""no" 1>&6
5060 fi
5061
5062
5063 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
5064 echo "configure:5065: checking "for --enable-dirdlg"" >&5
5065 no_cache=0
5066 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5067 if test "${enable_dirdlg+set}" = set; then
5068 enableval="$enable_dirdlg"
5069
5070 if test "$enableval" = yes; then
5071 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5072 else
5073 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5074 fi
5075
5076 else
5077
5078 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5079 if test "x$LINE" != x ; then
5080 eval "DEFAULT_$LINE"
5081 else
5082 no_cache=1
5083 fi
5084
5085 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5086
5087 fi
5088
5089
5090 eval "$ac_cv_use_dirdlg"
5091 if test "$no_cache" != 1; then
5092 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5093 fi
5094
5095 if test "$wxUSE_DIRDLG" = yes; then
5096 echo "$ac_t""yes" 1>&6
5097 else
5098 echo "$ac_t""no" 1>&6
5099 fi
5100
5101
5102 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
5103 echo "configure:5104: checking "for --enable-textdlg"" >&5
5104 no_cache=0
5105 # Check whether --enable-textdlg or --disable-textdlg was given.
5106 if test "${enable_textdlg+set}" = set; then
5107 enableval="$enable_textdlg"
5108
5109 if test "$enableval" = yes; then
5110 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5111 else
5112 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5113 fi
5114
5115 else
5116
5117 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5118 if test "x$LINE" != x ; then
5119 eval "DEFAULT_$LINE"
5120 else
5121 no_cache=1
5122 fi
5123
5124 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5125
5126 fi
5127
5128
5129 eval "$ac_cv_use_textdlg"
5130 if test "$no_cache" != 1; then
5131 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5132 fi
5133
5134 if test "$wxUSE_TEXTDLG" = yes; then
5135 echo "$ac_t""yes" 1>&6
5136 else
5137 echo "$ac_t""no" 1>&6
5138 fi
5139
5140
5141 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
5142 echo "configure:5143: checking "for --enable-tipdlg"" >&5
5143 no_cache=0
5144 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5145 if test "${enable_tipdlg+set}" = set; then
5146 enableval="$enable_tipdlg"
5147
5148 if test "$enableval" = yes; then
5149 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5150 else
5151 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5152 fi
5153
5154 else
5155
5156 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5157 if test "x$LINE" != x ; then
5158 eval "DEFAULT_$LINE"
5159 else
5160 no_cache=1
5161 fi
5162
5163 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5164
5165 fi
5166
5167
5168 eval "$ac_cv_use_tipdlg"
5169 if test "$no_cache" != 1; then
5170 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5171 fi
5172
5173 if test "$wxUSE_STARTUP_TIPS" = yes; then
5174 echo "$ac_t""yes" 1>&6
5175 else
5176 echo "$ac_t""no" 1>&6
5177 fi
5178
5179
5180 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
5181 echo "configure:5182: checking "for --enable-progressdlg"" >&5
5182 no_cache=0
5183 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5184 if test "${enable_progressdlg+set}" = set; then
5185 enableval="$enable_progressdlg"
5186
5187 if test "$enableval" = yes; then
5188 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5189 else
5190 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5191 fi
5192
5193 else
5194
5195 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5196 if test "x$LINE" != x ; then
5197 eval "DEFAULT_$LINE"
5198 else
5199 no_cache=1
5200 fi
5201
5202 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5203
5204 fi
5205
5206
5207 eval "$ac_cv_use_progressdlg"
5208 if test "$no_cache" != 1; then
5209 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5210 fi
5211
5212 if test "$wxUSE_PROGRESSDLG" = yes; then
5213 echo "$ac_t""yes" 1>&6
5214 else
5215 echo "$ac_t""no" 1>&6
5216 fi
5217
5218
5219 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
5220 echo "configure:5221: checking "for --enable-miniframe"" >&5
5221 no_cache=0
5222 # Check whether --enable-miniframe or --disable-miniframe was given.
5223 if test "${enable_miniframe+set}" = set; then
5224 enableval="$enable_miniframe"
5225
5226 if test "$enableval" = yes; then
5227 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5228 else
5229 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5230 fi
5231
5232 else
5233
5234 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5235 if test "x$LINE" != x ; then
5236 eval "DEFAULT_$LINE"
5237 else
5238 no_cache=1
5239 fi
5240
5241 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5242
5243 fi
5244
5245
5246 eval "$ac_cv_use_miniframe"
5247 if test "$no_cache" != 1; then
5248 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5249 fi
5250
5251 if test "$wxUSE_MINIFRAME" = yes; then
5252 echo "$ac_t""yes" 1>&6
5253 else
5254 echo "$ac_t""no" 1>&6
5255 fi
5256
5257
5258 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
5259 echo "configure:5260: checking "for --enable-html"" >&5
5260 no_cache=0
5261 # Check whether --enable-html or --disable-html was given.
5262 if test "${enable_html+set}" = set; then
5263 enableval="$enable_html"
5264
5265 if test "$enableval" = yes; then
5266 ac_cv_use_html='wxUSE_HTML=yes'
5267 else
5268 ac_cv_use_html='wxUSE_HTML=no'
5269 fi
5270
5271 else
5272
5273 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5274 if test "x$LINE" != x ; then
5275 eval "DEFAULT_$LINE"
5276 else
5277 no_cache=1
5278 fi
5279
5280 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5281
5282 fi
5283
5284
5285 eval "$ac_cv_use_html"
5286 if test "$no_cache" != 1; then
5287 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5288 fi
5289
5290 if test "$wxUSE_HTML" = yes; then
5291 echo "$ac_t""yes" 1>&6
5292 else
5293 echo "$ac_t""no" 1>&6
5294 fi
5295
5296
5297 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
5298 echo "configure:5299: checking "for --enable-tooltips"" >&5
5299 no_cache=0
5300 # Check whether --enable-tooltips or --disable-tooltips was given.
5301 if test "${enable_tooltips+set}" = set; then
5302 enableval="$enable_tooltips"
5303
5304 if test "$enableval" = yes; then
5305 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5306 else
5307 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5308 fi
5309
5310 else
5311
5312 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5313 if test "x$LINE" != x ; then
5314 eval "DEFAULT_$LINE"
5315 else
5316 no_cache=1
5317 fi
5318
5319 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5320
5321 fi
5322
5323
5324 eval "$ac_cv_use_tooltips"
5325 if test "$no_cache" != 1; then
5326 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5327 fi
5328
5329 if test "$wxUSE_TOOLTIPS" = yes; then
5330 echo "$ac_t""yes" 1>&6
5331 else
5332 echo "$ac_t""no" 1>&6
5333 fi
5334
5335
5336 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
5337 echo "configure:5338: checking "for --enable-splines"" >&5
5338 no_cache=0
5339 # Check whether --enable-splines or --disable-splines was given.
5340 if test "${enable_splines+set}" = set; then
5341 enableval="$enable_splines"
5342
5343 if test "$enableval" = yes; then
5344 ac_cv_use_splines='wxUSE_SPLINES=yes'
5345 else
5346 ac_cv_use_splines='wxUSE_SPLINES=no'
5347 fi
5348
5349 else
5350
5351 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5352 if test "x$LINE" != x ; then
5353 eval "DEFAULT_$LINE"
5354 else
5355 no_cache=1
5356 fi
5357
5358 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5359
5360 fi
5361
5362
5363 eval "$ac_cv_use_splines"
5364 if test "$no_cache" != 1; then
5365 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5366 fi
5367
5368 if test "$wxUSE_SPLINES" = yes; then
5369 echo "$ac_t""yes" 1>&6
5370 else
5371 echo "$ac_t""no" 1>&6
5372 fi
5373
5374
5375 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
5376 echo "configure:5377: checking "for --enable-validators"" >&5
5377 no_cache=0
5378 # Check whether --enable-validators or --disable-validators was given.
5379 if test "${enable_validators+set}" = set; then
5380 enableval="$enable_validators"
5381
5382 if test "$enableval" = yes; then
5383 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5384 else
5385 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5386 fi
5387
5388 else
5389
5390 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5391 if test "x$LINE" != x ; then
5392 eval "DEFAULT_$LINE"
5393 else
5394 no_cache=1
5395 fi
5396
5397 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5398
5399 fi
5400
5401
5402 eval "$ac_cv_use_validators"
5403 if test "$no_cache" != 1; then
5404 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5405 fi
5406
5407 if test "$wxUSE_VALIDATORS" = yes; then
5408 echo "$ac_t""yes" 1>&6
5409 else
5410 echo "$ac_t""no" 1>&6
5411 fi
5412
5413
5414 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
5415 echo "configure:5416: checking "for --enable-busyinfo"" >&5
5416 no_cache=0
5417 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5418 if test "${enable_busyinfo+set}" = set; then
5419 enableval="$enable_busyinfo"
5420
5421 if test "$enableval" = yes; then
5422 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5423 else
5424 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5425 fi
5426
5427 else
5428
5429 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5430 if test "x$LINE" != x ; then
5431 eval "DEFAULT_$LINE"
5432 else
5433 no_cache=1
5434 fi
5435
5436 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5437
5438 fi
5439
5440
5441 eval "$ac_cv_use_busyinfo"
5442 if test "$no_cache" != 1; then
5443 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5444 fi
5445
5446 if test "$wxUSE_BUSYINFO" = yes; then
5447 echo "$ac_t""yes" 1>&6
5448 else
5449 echo "$ac_t""no" 1>&6
5450 fi
5451
5452
5453
5454
5455 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
5456 echo "configure:5457: checking "for --enable-gif"" >&5
5457 no_cache=0
5458 # Check whether --enable-gif or --disable-gif was given.
5459 if test "${enable_gif+set}" = set; then
5460 enableval="$enable_gif"
5461
5462 if test "$enableval" = yes; then
5463 ac_cv_use_gif='wxUSE_GIF=yes'
5464 else
5465 ac_cv_use_gif='wxUSE_GIF=no'
5466 fi
5467
5468 else
5469
5470 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5471 if test "x$LINE" != x ; then
5472 eval "DEFAULT_$LINE"
5473 else
5474 no_cache=1
5475 fi
5476
5477 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5478
5479 fi
5480
5481
5482 eval "$ac_cv_use_gif"
5483 if test "$no_cache" != 1; then
5484 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5485 fi
5486
5487 if test "$wxUSE_GIF" = yes; then
5488 echo "$ac_t""yes" 1>&6
5489 else
5490 echo "$ac_t""no" 1>&6
5491 fi
5492
5493
5494 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
5495 echo "configure:5496: checking "for --enable-pcx"" >&5
5496 no_cache=0
5497 # Check whether --enable-pcx or --disable-pcx was given.
5498 if test "${enable_pcx+set}" = set; then
5499 enableval="$enable_pcx"
5500
5501 if test "$enableval" = yes; then
5502 ac_cv_use_pcx='wxUSE_PCX=yes'
5503 else
5504 ac_cv_use_pcx='wxUSE_PCX=no'
5505 fi
5506
5507 else
5508
5509 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5510 if test "x$LINE" != x ; then
5511 eval "DEFAULT_$LINE"
5512 else
5513 no_cache=1
5514 fi
5515
5516 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5517
5518 fi
5519
5520
5521 eval "$ac_cv_use_pcx"
5522 if test "$no_cache" != 1; then
5523 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5524 fi
5525
5526 if test "$wxUSE_PCX" = yes; then
5527 echo "$ac_t""yes" 1>&6
5528 else
5529 echo "$ac_t""no" 1>&6
5530 fi
5531
5532
5533 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
5534 echo "configure:5535: checking "for --enable-pnm"" >&5
5535 no_cache=0
5536 # Check whether --enable-pnm or --disable-pnm was given.
5537 if test "${enable_pnm+set}" = set; then
5538 enableval="$enable_pnm"
5539
5540 if test "$enableval" = yes; then
5541 ac_cv_use_pnm='wxUSE_PNM=yes'
5542 else
5543 ac_cv_use_pnm='wxUSE_PNM=no'
5544 fi
5545
5546 else
5547
5548 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5549 if test "x$LINE" != x ; then
5550 eval "DEFAULT_$LINE"
5551 else
5552 no_cache=1
5553 fi
5554
5555 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
5556
5557 fi
5558
5559
5560 eval "$ac_cv_use_pnm"
5561 if test "$no_cache" != 1; then
5562 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
5563 fi
5564
5565 if test "$wxUSE_PNM" = yes; then
5566 echo "$ac_t""yes" 1>&6
5567 else
5568 echo "$ac_t""no" 1>&6
5569 fi
5570
5571
5572
5573 echo "saving argument cache $wx_arg_cache_file"
5574 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
5575
5576
5577
5578 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
5579 echo "configure:5580: checking for toolkit" >&5
5580
5581 if test "$wxUSE_GUI" = "yes"; then
5582
5583 if test "$TOOLKIT_GIVEN" = 1; then
5584 for toolkit in `echo $ALL_TOOLKITS`; do
5585 var=wxUSE_$toolkit
5586 eval "value=\$${var}"
5587 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
5588 done
5589 else
5590 for toolkit in `echo $ALL_TOOLKITS`; do
5591 if test "$has_toolkit_in_cache" != 1; then
5592 var=DEFAULT_DEFAULT_wxUSE_$toolkit
5593 else
5594 var=DEFAULT_wxUSE_$toolkit
5595 fi
5596 eval "wxUSE_$toolkit=\$${var}"
5597 done
5598 fi
5599
5600 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
5601
5602 case "$NUM_TOOLKITS" in
5603 1)
5604 ;;
5605 0)
5606 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
5607 ;;
5608 *)
5609 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
5610 esac
5611
5612 for toolkit in `echo $ALL_TOOLKITS`; do
5613 var=wxUSE_$toolkit
5614 eval "value=\$${var}"
5615 if test "x$value" != x; then
5616 cache_var=CACHE_$toolkit
5617 eval "cache=\$${cache_var}"
5618 if test "$cache" = 1; then
5619 echo "$var=$value" >> ${wx_arg_cache_file}
5620 fi
5621 if test "$value" = 1; then
5622 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
5623 fi
5624 fi
5625 done
5626
5627 else
5628 echo "$ac_t""base only" 1>&6
5629 fi
5630
5631
5632 cat > confcache <<\EOF
5633 # This file is a shell script that caches the results of configure
5634 # tests run on this system so they can be shared between configure
5635 # scripts and configure runs. It is not useful on other systems.
5636 # If it contains results you don't want to keep, you may remove or edit it.
5637 #
5638 # By default, configure uses ./config.cache as the cache file,
5639 # creating it if it does not exist already. You can give configure
5640 # the --cache-file=FILE option to use a different cache file; that is
5641 # what configure does when it calls configure scripts in
5642 # subdirectories, so they share the cache.
5643 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5644 # config.status only pays attention to the cache file if you give it the
5645 # --recheck option to rerun configure.
5646 #
5647 EOF
5648 # The following way of writing the cache mishandles newlines in values,
5649 # but we know of no workaround that is simple, portable, and efficient.
5650 # So, don't put newlines in cache variables' values.
5651 # Ultrix sh set writes to stderr and can't be redirected directly,
5652 # and sets the high bit in the cache file unless we assign to the vars.
5653 (set) 2>&1 |
5654 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5655 *ac_space=\ *)
5656 # `set' does not quote correctly, so add quotes (double-quote substitution
5657 # turns \\\\ into \\, and sed turns \\ into \).
5658 sed -n \
5659 -e "s/'/'\\\\''/g" \
5660 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5661 ;;
5662 *)
5663 # `set' quotes correctly as required by POSIX, so do not add quotes.
5664 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5665 ;;
5666 esac >> confcache
5667 if cmp -s $cache_file confcache; then
5668 :
5669 else
5670 if test -w $cache_file; then
5671 echo "updating cache $cache_file"
5672 cat confcache > $cache_file
5673 else
5674 echo "not updating unwritable cache $cache_file"
5675 fi
5676 fi
5677 rm -f confcache
5678
5679
5680 if eval "test $host != $build"; then
5681 if eval "test $host_alias != NONE"; then
5682 CC=$host_alias-gcc
5683 CXX=$host_alias-c++
5684 AR=$host_alias-ar
5685 RANLIB=$host_alias-ranlib
5686 DLLTOOL=$host_alias-dlltool
5687 LD=$host_alias-ld
5688 NM=$host_alias-nm
5689 STRIP=$host_alias-strip
5690 fi
5691 fi
5692
5693 # Extract the first word of "gcc", so it can be a program name with args.
5694 set dummy gcc; ac_word=$2
5695 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5696 echo "configure:5697: checking for $ac_word" >&5
5697 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5698 echo $ac_n "(cached) $ac_c" 1>&6
5699 else
5700 if test -n "$CC"; then
5701 ac_cv_prog_CC="$CC" # Let the user override the test.
5702 else
5703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5704 ac_dummy="$PATH"
5705 for ac_dir in $ac_dummy; do
5706 test -z "$ac_dir" && ac_dir=.
5707 if test -f $ac_dir/$ac_word; then
5708 ac_cv_prog_CC="gcc"
5709 break
5710 fi
5711 done
5712 IFS="$ac_save_ifs"
5713 fi
5714 fi
5715 CC="$ac_cv_prog_CC"
5716 if test -n "$CC"; then
5717 echo "$ac_t""$CC" 1>&6
5718 else
5719 echo "$ac_t""no" 1>&6
5720 fi
5721
5722 if test -z "$CC"; then
5723 # Extract the first word of "cc", so it can be a program name with args.
5724 set dummy cc; ac_word=$2
5725 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5726 echo "configure:5727: checking for $ac_word" >&5
5727 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5728 echo $ac_n "(cached) $ac_c" 1>&6
5729 else
5730 if test -n "$CC"; then
5731 ac_cv_prog_CC="$CC" # Let the user override the test.
5732 else
5733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5734 ac_prog_rejected=no
5735 ac_dummy="$PATH"
5736 for ac_dir in $ac_dummy; do
5737 test -z "$ac_dir" && ac_dir=.
5738 if test -f $ac_dir/$ac_word; then
5739 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
5740 ac_prog_rejected=yes
5741 continue
5742 fi
5743 ac_cv_prog_CC="cc"
5744 break
5745 fi
5746 done
5747 IFS="$ac_save_ifs"
5748 if test $ac_prog_rejected = yes; then
5749 # We found a bogon in the path, so make sure we never use it.
5750 set dummy $ac_cv_prog_CC
5751 shift
5752 if test $# -gt 0; then
5753 # We chose a different compiler from the bogus one.
5754 # However, it has the same basename, so the bogon will be chosen
5755 # first if we set CC to just the basename; use the full file name.
5756 shift
5757 set dummy "$ac_dir/$ac_word" "$@"
5758 shift
5759 ac_cv_prog_CC="$@"
5760 fi
5761 fi
5762 fi
5763 fi
5764 CC="$ac_cv_prog_CC"
5765 if test -n "$CC"; then
5766 echo "$ac_t""$CC" 1>&6
5767 else
5768 echo "$ac_t""no" 1>&6
5769 fi
5770
5771 if test -z "$CC"; then
5772 case "`uname -s`" in
5773 *win32* | *WIN32*)
5774 # Extract the first word of "cl", so it can be a program name with args.
5775 set dummy cl; ac_word=$2
5776 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5777 echo "configure:5778: checking for $ac_word" >&5
5778 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5779 echo $ac_n "(cached) $ac_c" 1>&6
5780 else
5781 if test -n "$CC"; then
5782 ac_cv_prog_CC="$CC" # Let the user override the test.
5783 else
5784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5785 ac_dummy="$PATH"
5786 for ac_dir in $ac_dummy; do
5787 test -z "$ac_dir" && ac_dir=.
5788 if test -f $ac_dir/$ac_word; then
5789 ac_cv_prog_CC="cl"
5790 break
5791 fi
5792 done
5793 IFS="$ac_save_ifs"
5794 fi
5795 fi
5796 CC="$ac_cv_prog_CC"
5797 if test -n "$CC"; then
5798 echo "$ac_t""$CC" 1>&6
5799 else
5800 echo "$ac_t""no" 1>&6
5801 fi
5802 ;;
5803 esac
5804 fi
5805 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
5806 fi
5807
5808 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
5809 echo "configure:5810: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
5810
5811 ac_ext=c
5812 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5813 ac_cpp='$CPP $CPPFLAGS'
5814 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5815 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5816 cross_compiling=$ac_cv_prog_cc_cross
5817
5818 cat > conftest.$ac_ext << EOF
5819
5820 #line 5821 "configure"
5821 #include "confdefs.h"
5822
5823 main(){return(0);}
5824 EOF
5825 if { (eval echo configure:5826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5826 ac_cv_prog_cc_works=yes
5827 # If we can't run a trivial program, we are probably using a cross compiler.
5828 if (./conftest; exit) 2>/dev/null; then
5829 ac_cv_prog_cc_cross=no
5830 else
5831 ac_cv_prog_cc_cross=yes
5832 fi
5833 else
5834 echo "configure: failed program was:" >&5
5835 cat conftest.$ac_ext >&5
5836 ac_cv_prog_cc_works=no
5837 fi
5838 rm -fr conftest*
5839 ac_ext=c
5840 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5841 ac_cpp='$CPP $CPPFLAGS'
5842 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5843 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5844 cross_compiling=$ac_cv_prog_cc_cross
5845
5846 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
5847 if test $ac_cv_prog_cc_works = no; then
5848 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
5849 fi
5850 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
5851 echo "configure:5852: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
5852 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
5853 cross_compiling=$ac_cv_prog_cc_cross
5854
5855 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
5856 echo "configure:5857: checking whether we are using GNU C" >&5
5857 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
5858 echo $ac_n "(cached) $ac_c" 1>&6
5859 else
5860 cat > conftest.c <<EOF
5861 #ifdef __GNUC__
5862 yes;
5863 #endif
5864 EOF
5865 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:5866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
5866 ac_cv_prog_gcc=yes
5867 else
5868 ac_cv_prog_gcc=no
5869 fi
5870 fi
5871
5872 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
5873
5874 if test $ac_cv_prog_gcc = yes; then
5875 GCC=yes
5876 else
5877 GCC=
5878 fi
5879
5880 ac_test_CFLAGS="${CFLAGS+set}"
5881 ac_save_CFLAGS="$CFLAGS"
5882 CFLAGS=
5883 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
5884 echo "configure:5885: checking whether ${CC-cc} accepts -g" >&5
5885 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
5886 echo $ac_n "(cached) $ac_c" 1>&6
5887 else
5888 echo 'void f(){}' > conftest.c
5889 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
5890 ac_cv_prog_cc_g=yes
5891 else
5892 ac_cv_prog_cc_g=no
5893 fi
5894 rm -f conftest*
5895
5896 fi
5897
5898 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
5899 if test "$ac_test_CFLAGS" = set; then
5900 CFLAGS="$ac_save_CFLAGS"
5901 elif test $ac_cv_prog_cc_g = yes; then
5902 if test "$GCC" = yes; then
5903 CFLAGS="-g -O2"
5904 else
5905 CFLAGS="-g"
5906 fi
5907 else
5908 if test "$GCC" = yes; then
5909 CFLAGS="-O2"
5910 else
5911 CFLAGS=
5912 fi
5913 fi
5914
5915
5916 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
5917
5918 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
5919 echo "configure:5920: checking how to run the C preprocessor" >&5
5920 # On Suns, sometimes $CPP names a directory.
5921 if test -n "$CPP" && test -d "$CPP"; then
5922 CPP=
5923 fi
5924 if test -z "$CPP"; then
5925 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
5926 echo $ac_n "(cached) $ac_c" 1>&6
5927 else
5928 # This must be in double quotes, not single quotes, because CPP may get
5929 # substituted into the Makefile and "${CC-cc}" will confuse make.
5930 CPP="${CC-cc} -E"
5931 # On the NeXT, cc -E runs the code through the compiler's parser,
5932 # not just through cpp.
5933 cat > conftest.$ac_ext <<EOF
5934 #line 5935 "configure"
5935 #include "confdefs.h"
5936 #include <assert.h>
5937 Syntax Error
5938 EOF
5939 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5940 { (eval echo configure:5941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5941 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5942 if test -z "$ac_err"; then
5943 :
5944 else
5945 echo "$ac_err" >&5
5946 echo "configure: failed program was:" >&5
5947 cat conftest.$ac_ext >&5
5948 rm -rf conftest*
5949 CPP="${CC-cc} -E -traditional-cpp"
5950 cat > conftest.$ac_ext <<EOF
5951 #line 5952 "configure"
5952 #include "confdefs.h"
5953 #include <assert.h>
5954 Syntax Error
5955 EOF
5956 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5957 { (eval echo configure:5958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5958 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5959 if test -z "$ac_err"; then
5960 :
5961 else
5962 echo "$ac_err" >&5
5963 echo "configure: failed program was:" >&5
5964 cat conftest.$ac_ext >&5
5965 rm -rf conftest*
5966 CPP="${CC-cc} -nologo -E"
5967 cat > conftest.$ac_ext <<EOF
5968 #line 5969 "configure"
5969 #include "confdefs.h"
5970 #include <assert.h>
5971 Syntax Error
5972 EOF
5973 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5974 { (eval echo configure:5975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5975 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5976 if test -z "$ac_err"; then
5977 :
5978 else
5979 echo "$ac_err" >&5
5980 echo "configure: failed program was:" >&5
5981 cat conftest.$ac_ext >&5
5982 rm -rf conftest*
5983 CPP=/lib/cpp
5984 fi
5985 rm -f conftest*
5986 fi
5987 rm -f conftest*
5988 fi
5989 rm -f conftest*
5990 ac_cv_prog_CPP="$CPP"
5991 fi
5992 CPP="$ac_cv_prog_CPP"
5993 else
5994 ac_cv_prog_CPP="$CPP"
5995 fi
5996 echo "$ac_t""$CPP" 1>&6
5997
5998
5999 if test $ac_cv_prog_gcc = yes; then
6000 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
6001 echo "configure:6002: checking whether ${CC-cc} needs -traditional" >&5
6002 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6003 echo $ac_n "(cached) $ac_c" 1>&6
6004 else
6005 ac_pattern="Autoconf.*'x'"
6006 cat > conftest.$ac_ext <<EOF
6007 #line 6008 "configure"
6008 #include "confdefs.h"
6009 #include <sgtty.h>
6010 Autoconf TIOCGETP
6011 EOF
6012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6013 egrep "$ac_pattern" >/dev/null 2>&1; then
6014 rm -rf conftest*
6015 ac_cv_prog_gcc_traditional=yes
6016 else
6017 rm -rf conftest*
6018 ac_cv_prog_gcc_traditional=no
6019 fi
6020 rm -f conftest*
6021
6022
6023 if test $ac_cv_prog_gcc_traditional = no; then
6024 cat > conftest.$ac_ext <<EOF
6025 #line 6026 "configure"
6026 #include "confdefs.h"
6027 #include <termio.h>
6028 Autoconf TCGETA
6029 EOF
6030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6031 egrep "$ac_pattern" >/dev/null 2>&1; then
6032 rm -rf conftest*
6033 ac_cv_prog_gcc_traditional=yes
6034 fi
6035 rm -f conftest*
6036
6037 fi
6038 fi
6039
6040 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6041 if test $ac_cv_prog_gcc_traditional = yes; then
6042 CC="$CC -traditional"
6043 fi
6044 fi
6045
6046
6047
6048 ac_ext=C
6049 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6050 ac_cpp='$CXXCPP $CPPFLAGS'
6051 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6052 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6053 cross_compiling=$ac_cv_prog_cxx_cross
6054
6055
6056 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6057 do
6058 # Extract the first word of "$ac_prog", so it can be a program name with args.
6059 set dummy $ac_prog; ac_word=$2
6060 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6061 echo "configure:6062: checking for $ac_word" >&5
6062 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6063 echo $ac_n "(cached) $ac_c" 1>&6
6064 else
6065 if test -n "$CXX"; then
6066 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6067 else
6068 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6069 ac_dummy="$PATH"
6070 for ac_dir in $ac_dummy; do
6071 test -z "$ac_dir" && ac_dir=.
6072 if test -f $ac_dir/$ac_word; then
6073 ac_cv_prog_CXX="$ac_prog"
6074 break
6075 fi
6076 done
6077 IFS="$ac_save_ifs"
6078 fi
6079 fi
6080 CXX="$ac_cv_prog_CXX"
6081 if test -n "$CXX"; then
6082 echo "$ac_t""$CXX" 1>&6
6083 else
6084 echo "$ac_t""no" 1>&6
6085 fi
6086
6087 test -n "$CXX" && break
6088 done
6089 test -n "$CXX" || CXX="gcc"
6090
6091
6092 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
6093 echo "configure:6094: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
6094
6095 ac_ext=C
6096 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6097 ac_cpp='$CXXCPP $CPPFLAGS'
6098 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6099 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6100 cross_compiling=$ac_cv_prog_cxx_cross
6101
6102 cat > conftest.$ac_ext << EOF
6103
6104 #line 6105 "configure"
6105 #include "confdefs.h"
6106
6107 int main(){return(0);}
6108 EOF
6109 if { (eval echo configure:6110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6110 ac_cv_prog_cxx_works=yes
6111 # If we can't run a trivial program, we are probably using a cross compiler.
6112 if (./conftest; exit) 2>/dev/null; then
6113 ac_cv_prog_cxx_cross=no
6114 else
6115 ac_cv_prog_cxx_cross=yes
6116 fi
6117 else
6118 echo "configure: failed program was:" >&5
6119 cat conftest.$ac_ext >&5
6120 ac_cv_prog_cxx_works=no
6121 fi
6122 rm -fr conftest*
6123 ac_ext=C
6124 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6125 ac_cpp='$CXXCPP $CPPFLAGS'
6126 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6127 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6128 cross_compiling=$ac_cv_prog_cxx_cross
6129
6130 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6131 if test $ac_cv_prog_cxx_works = no; then
6132 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6133 fi
6134 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
6135 echo "configure:6136: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
6136 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6137 cross_compiling=$ac_cv_prog_cxx_cross
6138
6139 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
6140 echo "configure:6141: checking whether we are using GNU C++" >&5
6141 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6142 echo $ac_n "(cached) $ac_c" 1>&6
6143 else
6144 cat > conftest.C <<EOF
6145 #ifdef __GNUC__
6146 yes;
6147 #endif
6148 EOF
6149 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
6150 ac_cv_prog_gxx=yes
6151 else
6152 ac_cv_prog_gxx=no
6153 fi
6154 fi
6155
6156 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6157
6158 if test $ac_cv_prog_gxx = yes; then
6159 GXX=yes
6160 else
6161 GXX=
6162 fi
6163
6164 ac_test_CXXFLAGS="${CXXFLAGS+set}"
6165 ac_save_CXXFLAGS="$CXXFLAGS"
6166 CXXFLAGS=
6167 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
6168 echo "configure:6169: checking whether ${CXX-g++} accepts -g" >&5
6169 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6170 echo $ac_n "(cached) $ac_c" 1>&6
6171 else
6172 echo 'void f(){}' > conftest.cc
6173 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6174 ac_cv_prog_cxx_g=yes
6175 else
6176 ac_cv_prog_cxx_g=no
6177 fi
6178 rm -f conftest*
6179
6180 fi
6181
6182 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6183 if test "$ac_test_CXXFLAGS" = set; then
6184 CXXFLAGS="$ac_save_CXXFLAGS"
6185 elif test $ac_cv_prog_cxx_g = yes; then
6186 if test "$GXX" = yes; then
6187 CXXFLAGS="-g -O2"
6188 else
6189 CXXFLAGS="-g"
6190 fi
6191 else
6192 if test "$GXX" = yes; then
6193 CXXFLAGS="-O2"
6194 else
6195 CXXFLAGS=
6196 fi
6197 fi
6198
6199
6200 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
6201 echo "configure:6202: checking how to run the C++ preprocessor" >&5
6202 if test -z "$CXXCPP"; then
6203 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6204 echo $ac_n "(cached) $ac_c" 1>&6
6205 else
6206 ac_ext=C
6207 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6208 ac_cpp='$CXXCPP $CPPFLAGS'
6209 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6210 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6211 cross_compiling=$ac_cv_prog_cxx_cross
6212 CXXCPP="${CXX-g++} -E"
6213 cat > conftest.$ac_ext <<EOF
6214 #line 6215 "configure"
6215 #include "confdefs.h"
6216 #include <stdlib.h>
6217 EOF
6218 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6219 { (eval echo configure:6220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6220 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6221 if test -z "$ac_err"; then
6222 :
6223 else
6224 echo "$ac_err" >&5
6225 echo "configure: failed program was:" >&5
6226 cat conftest.$ac_ext >&5
6227 rm -rf conftest*
6228 CXXCPP=/lib/cpp
6229 fi
6230 rm -f conftest*
6231 ac_cv_prog_CXXCPP="$CXXCPP"
6232 ac_ext=C
6233 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6234 ac_cpp='$CXXCPP $CPPFLAGS'
6235 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6236 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6237 cross_compiling=$ac_cv_prog_cxx_cross
6238 fi
6239 fi
6240 CXXCPP="$ac_cv_prog_CXXCPP"
6241 echo "$ac_t""$CXXCPP" 1>&6
6242
6243
6244 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6245
6246 ac_ext=c
6247 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6248 ac_cpp='$CPP $CPPFLAGS'
6249 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6250 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6251 cross_compiling=$ac_cv_prog_cc_cross
6252
6253
6254 # Extract the first word of "ranlib", so it can be a program name with args.
6255 set dummy ranlib; ac_word=$2
6256 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6257 echo "configure:6258: checking for $ac_word" >&5
6258 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6259 echo $ac_n "(cached) $ac_c" 1>&6
6260 else
6261 if test -n "$RANLIB"; then
6262 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6263 else
6264 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6265 ac_dummy="$PATH"
6266 for ac_dir in $ac_dummy; do
6267 test -z "$ac_dir" && ac_dir=.
6268 if test -f $ac_dir/$ac_word; then
6269 ac_cv_prog_RANLIB="ranlib"
6270 break
6271 fi
6272 done
6273 IFS="$ac_save_ifs"
6274 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6275 fi
6276 fi
6277 RANLIB="$ac_cv_prog_RANLIB"
6278 if test -n "$RANLIB"; then
6279 echo "$ac_t""$RANLIB" 1>&6
6280 else
6281 echo "$ac_t""no" 1>&6
6282 fi
6283
6284
6285 # Extract the first word of "ar", so it can be a program name with args.
6286 set dummy ar; ac_word=$2
6287 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6288 echo "configure:6289: checking for $ac_word" >&5
6289 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6290 echo $ac_n "(cached) $ac_c" 1>&6
6291 else
6292 if test -n "$AR"; then
6293 ac_cv_prog_AR="$AR" # Let the user override the test.
6294 else
6295 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6296 ac_dummy="$PATH"
6297 for ac_dir in $ac_dummy; do
6298 test -z "$ac_dir" && ac_dir=.
6299 if test -f $ac_dir/$ac_word; then
6300 ac_cv_prog_AR="ar"
6301 break
6302 fi
6303 done
6304 IFS="$ac_save_ifs"
6305 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6306 fi
6307 fi
6308 AR="$ac_cv_prog_AR"
6309 if test -n "$AR"; then
6310 echo "$ac_t""$AR" 1>&6
6311 else
6312 echo "$ac_t""no" 1>&6
6313 fi
6314
6315
6316 # Find a good install program. We prefer a C program (faster),
6317 # so one script is as good as another. But avoid the broken or
6318 # incompatible versions:
6319 # SysV /etc/install, /usr/sbin/install
6320 # SunOS /usr/etc/install
6321 # IRIX /sbin/install
6322 # AIX /bin/install
6323 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6324 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6325 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6326 # ./install, which can be erroneously created by make from ./install.sh.
6327 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
6328 echo "configure:6329: checking for a BSD compatible install" >&5
6329 if test -z "$INSTALL"; then
6330 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6331 echo $ac_n "(cached) $ac_c" 1>&6
6332 else
6333 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6334 for ac_dir in $PATH; do
6335 # Account for people who put trailing slashes in PATH elements.
6336 case "$ac_dir/" in
6337 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6338 *)
6339 # OSF1 and SCO ODT 3.0 have their own names for install.
6340 # Don't use installbsd from OSF since it installs stuff as root
6341 # by default.
6342 for ac_prog in ginstall scoinst install; do
6343 if test -f $ac_dir/$ac_prog; then
6344 if test $ac_prog = install &&
6345 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6346 # AIX install. It has an incompatible calling convention.
6347 :
6348 else
6349 ac_cv_path_install="$ac_dir/$ac_prog -c"
6350 break 2
6351 fi
6352 fi
6353 done
6354 ;;
6355 esac
6356 done
6357 IFS="$ac_save_IFS"
6358
6359 fi
6360 if test "${ac_cv_path_install+set}" = set; then
6361 INSTALL="$ac_cv_path_install"
6362 else
6363 # As a last resort, use the slow shell script. We don't cache a
6364 # path for INSTALL within a source directory, because that will
6365 # break other packages using the cache if that directory is
6366 # removed, or if the path is relative.
6367 INSTALL="$ac_install_sh"
6368 fi
6369 fi
6370 echo "$ac_t""$INSTALL" 1>&6
6371
6372 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6373 # It thinks the first close brace ends the variable substitution.
6374 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6375
6376 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6377
6378 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6379
6380
6381 # Extract the first word of "strip", so it can be a program name with args.
6382 set dummy strip; ac_word=$2
6383 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6384 echo "configure:6385: checking for $ac_word" >&5
6385 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6386 echo $ac_n "(cached) $ac_c" 1>&6
6387 else
6388 if test -n "$STRIP"; then
6389 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6390 else
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_STRIP="strip"
6397 break
6398 fi
6399 done
6400 IFS="$ac_save_ifs"
6401 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6402 fi
6403 fi
6404 STRIP="$ac_cv_prog_STRIP"
6405 if test -n "$STRIP"; then
6406 echo "$ac_t""$STRIP" 1>&6
6407 else
6408 echo "$ac_t""no" 1>&6
6409 fi
6410
6411
6412 echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
6413 echo "configure:6414: checking "make for VPATH support"" >&5
6414 cat - << EOF > confMake
6415 check : file
6416 cp \$? \$@
6417 cp \$? final_file
6418 EOF
6419
6420 if test ! -d sub ; then
6421 mkdir sub
6422 fi
6423 echo dummy > sub/file
6424 ${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null
6425 RESULT=$?
6426 rm -f sub/file check final_file confMake
6427 rmdir sub
6428 if test "$RESULT" = 0; then
6429 echo "$ac_t""yes" 1>&6
6430 else
6431 echo "$ac_t""no" 1>&6
6432 { echo "configure: error: You need a make-utility that is able to use the variable
6433 VPATH correctly.
6434 If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6435 fi
6436
6437 for ac_prog in 'bison -y' byacc
6438 do
6439 # Extract the first word of "$ac_prog", so it can be a program name with args.
6440 set dummy $ac_prog; ac_word=$2
6441 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6442 echo "configure:6443: checking for $ac_word" >&5
6443 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6444 echo $ac_n "(cached) $ac_c" 1>&6
6445 else
6446 if test -n "$YACC"; then
6447 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6448 else
6449 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6450 ac_dummy="$PATH"
6451 for ac_dir in $ac_dummy; do
6452 test -z "$ac_dir" && ac_dir=.
6453 if test -f $ac_dir/$ac_word; then
6454 ac_cv_prog_YACC="$ac_prog"
6455 break
6456 fi
6457 done
6458 IFS="$ac_save_ifs"
6459 fi
6460 fi
6461 YACC="$ac_cv_prog_YACC"
6462 if test -n "$YACC"; then
6463 echo "$ac_t""$YACC" 1>&6
6464 else
6465 echo "$ac_t""no" 1>&6
6466 fi
6467
6468 test -n "$YACC" && break
6469 done
6470 test -n "$YACC" || YACC="yacc"
6471
6472
6473 # Extract the first word of "flex", so it can be a program name with args.
6474 set dummy flex; ac_word=$2
6475 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6476 echo "configure:6477: checking for $ac_word" >&5
6477 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6478 echo $ac_n "(cached) $ac_c" 1>&6
6479 else
6480 if test -n "$LEX"; then
6481 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6482 else
6483 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6484 ac_dummy="$PATH"
6485 for ac_dir in $ac_dummy; do
6486 test -z "$ac_dir" && ac_dir=.
6487 if test -f $ac_dir/$ac_word; then
6488 ac_cv_prog_LEX="flex"
6489 break
6490 fi
6491 done
6492 IFS="$ac_save_ifs"
6493 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6494 fi
6495 fi
6496 LEX="$ac_cv_prog_LEX"
6497 if test -n "$LEX"; then
6498 echo "$ac_t""$LEX" 1>&6
6499 else
6500 echo "$ac_t""no" 1>&6
6501 fi
6502
6503 if test -z "$LEXLIB"
6504 then
6505 case "$LEX" in
6506 flex*) ac_lib=fl ;;
6507 *) ac_lib=l ;;
6508 esac
6509 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
6510 echo "configure:6511: checking for yywrap in -l$ac_lib" >&5
6511 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6512 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6513 echo $ac_n "(cached) $ac_c" 1>&6
6514 else
6515 ac_save_LIBS="$LIBS"
6516 LIBS="-l$ac_lib $LIBS"
6517 cat > conftest.$ac_ext <<EOF
6518 #line 6519 "configure"
6519 #include "confdefs.h"
6520 /* Override any gcc2 internal prototype to avoid an error. */
6521 /* We use char because int might match the return type of a gcc2
6522 builtin and then its argument prototype would still apply. */
6523 char yywrap();
6524
6525 int main() {
6526 yywrap()
6527 ; return 0; }
6528 EOF
6529 if { (eval echo configure:6530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6530 rm -rf conftest*
6531 eval "ac_cv_lib_$ac_lib_var=yes"
6532 else
6533 echo "configure: failed program was:" >&5
6534 cat conftest.$ac_ext >&5
6535 rm -rf conftest*
6536 eval "ac_cv_lib_$ac_lib_var=no"
6537 fi
6538 rm -f conftest*
6539 LIBS="$ac_save_LIBS"
6540
6541 fi
6542 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6543 echo "$ac_t""yes" 1>&6
6544 LEXLIB="-l$ac_lib"
6545 else
6546 echo "$ac_t""no" 1>&6
6547 fi
6548
6549 fi
6550
6551
6552 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
6553 echo "configure:6554: checking whether ln -s works" >&5
6554 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6555 echo $ac_n "(cached) $ac_c" 1>&6
6556 else
6557 rm -f conftestdata
6558 if ln -s X conftestdata 2>/dev/null
6559 then
6560 rm -f conftestdata
6561 ac_cv_prog_LN_S="ln -s"
6562 else
6563 ac_cv_prog_LN_S=ln
6564 fi
6565 fi
6566 LN_S="$ac_cv_prog_LN_S"
6567 if test "$ac_cv_prog_LN_S" = "ln -s"; then
6568 echo "$ac_t""yes" 1>&6
6569 else
6570 echo "$ac_t""no" 1>&6
6571 fi
6572
6573
6574
6575 SEARCH_INCLUDE="\
6576 /usr/Motif-1.2/include \
6577 /usr/Motif-2.1/include \
6578 \
6579 /usr/include/Motif1.2 \
6580 /opt/xpm/include/X11 \
6581 /opt/GBxpm/include/ \
6582 /opt/GBxpm/X11/include/ \
6583 \
6584 /usr/Motif1.2/include \
6585 /usr/dt/include \
6586 /usr/include/Xm \
6587 \
6588 /usr/X11R6/include \
6589 /usr/X11R5/include \
6590 /usr/X11R4/include \
6591 \
6592 /usr/X11R6/lib \
6593 /usr/X11R5/lib \
6594 /usr/X11R4/lib \
6595 \
6596 /usr/include/X11R6 \
6597 /usr/include/X11R5 \
6598 /usr/include/X11R4 \
6599 \
6600 /usr/local/X11R6/include \
6601 /usr/local/X11R5/include \
6602 /usr/local/X11R4/include \
6603 \
6604 /usr/local/include/X11R6 \
6605 /usr/local/include/X11R5 \
6606 /usr/local/include/X11R4 \
6607 \
6608 /usr/X11/include \
6609 /usr/include/X11 \
6610 /usr/local/X11/include \
6611 /usr/local/include/X11 \
6612 \
6613 /usr/X386/include \
6614 /usr/x386/include \
6615 /usr/XFree86/include/X11 \
6616 \
6617 /usr/include \
6618 /usr/local/include \
6619 \
6620 /usr/include/gtk \
6621 /usr/local/include/gtk \
6622 /usr/include/glib \
6623 /usr/local/include/glib \
6624 \
6625 /usr/include/qt \
6626 /usr/local/include/qt \
6627 \
6628 /usr/include/windows \
6629 /usr/include/wine \
6630 /usr/local/include/wine \
6631 \
6632 /usr/unsupported/include \
6633 /usr/athena/include \
6634 /usr/local/x11r5/include \
6635 /usr/lpp/Xamples/include \
6636 \
6637 /usr/openwin/include \
6638 /usr/openwin/share/include \
6639 "
6640
6641 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
6642
6643
6644 cat > confcache <<\EOF
6645 # This file is a shell script that caches the results of configure
6646 # tests run on this system so they can be shared between configure
6647 # scripts and configure runs. It is not useful on other systems.
6648 # If it contains results you don't want to keep, you may remove or edit it.
6649 #
6650 # By default, configure uses ./config.cache as the cache file,
6651 # creating it if it does not exist already. You can give configure
6652 # the --cache-file=FILE option to use a different cache file; that is
6653 # what configure does when it calls configure scripts in
6654 # subdirectories, so they share the cache.
6655 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6656 # config.status only pays attention to the cache file if you give it the
6657 # --recheck option to rerun configure.
6658 #
6659 EOF
6660 # The following way of writing the cache mishandles newlines in values,
6661 # but we know of no workaround that is simple, portable, and efficient.
6662 # So, don't put newlines in cache variables' values.
6663 # Ultrix sh set writes to stderr and can't be redirected directly,
6664 # and sets the high bit in the cache file unless we assign to the vars.
6665 (set) 2>&1 |
6666 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6667 *ac_space=\ *)
6668 # `set' does not quote correctly, so add quotes (double-quote substitution
6669 # turns \\\\ into \\, and sed turns \\ into \).
6670 sed -n \
6671 -e "s/'/'\\\\''/g" \
6672 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6673 ;;
6674 *)
6675 # `set' quotes correctly as required by POSIX, so do not add quotes.
6676 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6677 ;;
6678 esac >> confcache
6679 if cmp -s $cache_file confcache; then
6680 :
6681 else
6682 if test -w $cache_file; then
6683 echo "updating cache $cache_file"
6684 cat confcache > $cache_file
6685 else
6686 echo "not updating unwritable cache $cache_file"
6687 fi
6688 fi
6689 rm -f confcache
6690
6691
6692
6693 if test "$wxUSE_GUI" = "yes"; then
6694
6695 TOOLKIT=
6696 TOOLKIT_INCLUDE=
6697
6698 GUIOBJS=
6699 COMMONOBJS=
6700 GENERICOBJS=
6701
6702 GUI_TK_LIBRARY=
6703 GUI_TK_LINK=
6704
6705 WXGTK12=
6706
6707 WXWINE=
6708
6709 PROGRAM_EXT=
6710
6711 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
6712 if test "$cross_compiling" = "yes" ; then
6713 echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2
6714 else
6715 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
6716 echo "configure:6717: checking for Windows headers" >&5
6717
6718 ac_find_includes=
6719 for ac_dir in $SEARCH_INCLUDE;
6720 do
6721 if test -f "$ac_dir/windows.h"; then
6722 ac_find_includes=$ac_dir
6723 break
6724 fi
6725 done
6726
6727 if test "$ac_find_includes" != "" ; then
6728 echo "$ac_t""found $ac_find_includes" 1>&6
6729 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
6730 else
6731 echo "$ac_t""no" 1>&6
6732 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
6733 fi
6734 fi
6735
6736 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
6737 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
6738
6739 TOOLKIT=MSW
6740
6741 GUIOBJS="\$(MSW_GUIOBJS)"
6742 GUIHEADERS="\$(MSW_HEADERS)"
6743 COMMONOBJS="\$(MSW_COMMONOBJS)"
6744 GENERICOBJS="\$(MSW_GENERICOBJS)"
6745 UNIXOBJS=
6746 GUIDIST=MSW_DIST
6747 PROGRAM_EXT=.exe
6748 fi
6749
6750 if test "$wxUSE_GTK" = 1; then
6751
6752 if test x$gtk_config_exec_prefix != x ; then
6753 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
6754 if test x${GTK_CONFIG+set} != xset ; then
6755 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
6756 fi
6757 fi
6758 if test x$gtk_config_prefix != x ; then
6759 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
6760 if test x${GTK_CONFIG+set} != xset ; then
6761 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
6762 fi
6763 fi
6764
6765 # Extract the first word of "gtk-config", so it can be a program name with args.
6766 set dummy gtk-config; ac_word=$2
6767 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6768 echo "configure:6769: checking for $ac_word" >&5
6769 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
6770 echo $ac_n "(cached) $ac_c" 1>&6
6771 else
6772 case "$GTK_CONFIG" in
6773 /*)
6774 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
6775 ;;
6776 ?:/*)
6777 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
6778 ;;
6779 *)
6780 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6781 ac_dummy="$PATH"
6782 for ac_dir in $ac_dummy; do
6783 test -z "$ac_dir" && ac_dir=.
6784 if test -f $ac_dir/$ac_word; then
6785 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
6786 break
6787 fi
6788 done
6789 IFS="$ac_save_ifs"
6790 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
6791 ;;
6792 esac
6793 fi
6794 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
6795 if test -n "$GTK_CONFIG"; then
6796 echo "$ac_t""$GTK_CONFIG" 1>&6
6797 else
6798 echo "$ac_t""no" 1>&6
6799 fi
6800
6801 min_gtk_version=1.2.1
6802 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
6803 echo "configure:6804: checking for GTK - version >= $min_gtk_version" >&5
6804 no_gtk=""
6805 if test "$GTK_CONFIG" != "no" ; then
6806 GTK_CFLAGS=`$GTK_CONFIG --cflags`
6807 GTK_LIBS=`$GTK_CONFIG --libs`
6808 ac_save_CFLAGS="$CFLAGS"
6809 ac_save_LIBS="$LIBS"
6810 CFLAGS="$CFLAGS $GTK_CFLAGS"
6811 LIBS="$LIBS $GTK_LIBS"
6812 if test "$cross_compiling" = yes; then
6813 echo $ac_n "cross compiling; assumed OK... $ac_c"
6814 else
6815 cat > conftest.$ac_ext <<EOF
6816 #line 6817 "configure"
6817 #include "confdefs.h"
6818
6819 #include <gtk/gtk.h>
6820 #include <stdio.h>
6821
6822 int
6823 main ()
6824 {
6825 int major, minor, micro;
6826
6827 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
6828 printf("%s, bad version string\n", "$min_gtk_version");
6829 exit(1);
6830 }
6831
6832 if (gtk_minor_version == 1) return FALSE;
6833
6834 return !((gtk_major_version > major) ||
6835 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6836 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
6837 }
6838
6839 EOF
6840 if { (eval echo configure:6841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6841 then
6842 :
6843 else
6844 echo "configure: failed program was:" >&5
6845 cat conftest.$ac_ext >&5
6846 rm -fr conftest*
6847 no_gtk=yes
6848 fi
6849 rm -fr conftest*
6850 fi
6851
6852 CFLAGS="$ac_save_CFLAGS"
6853 LIBS="$ac_save_LIBS"
6854 else
6855 no_gtk=yes
6856 fi
6857 if test "x$no_gtk" = x ; then
6858 echo "$ac_t""yes" 1>&6
6859 WXGTK12=1
6860 else
6861 echo "$ac_t""no" 1>&6
6862 GTK_CFLAGS=""
6863 GTK_LIBS=""
6864 { echo "configure: error: Is gtk-config in path and GTK+ is version 1.2.1 or above?" 1>&2; exit 1; }
6865 fi
6866
6867
6868
6869
6870 TOOLKIT_INCLUDE="$GTK_CFLAGS"
6871 GUI_TK_LIBRARY="$GTK_LIBS"
6872 TOOLKIT=GTK
6873
6874 GUIOBJS="\$(GTK_GUIOBJS)"
6875 GUIHEADERS="\$(GTK_HEADERS)"
6876 COMMONOBJS="\$(GTK_COMMONOBJS)"
6877 GENERICOBJS="\$(GTK_GENERICOBJS)"
6878 GUIDEPS="\$(GTK_GUIDEPS)"
6879 COMMONDEPS="\$(GTK_COMMONDEPS)"
6880 GENERICDEPS="\$(GTK_GENERICDEPS)"
6881 UNIXOBJS="\$(UNIX_OBJS)"
6882 GUIDIST=GTK_DIST
6883 fi
6884
6885 if test "$wxUSE_WINE" = 1; then
6886 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
6887 echo "configure:6888: checking for WINE includes" >&5
6888
6889 ac_find_includes=
6890 for ac_dir in $SEARCH_INCLUDE;
6891 do
6892 if test -f "$ac_dir/windows.h"; then
6893 ac_find_includes=$ac_dir
6894 break
6895 fi
6896 done
6897
6898 if test "$ac_find_includes" != "" ; then
6899 echo "$ac_t""found $ac_find_includes" 1>&6
6900 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
6901 else
6902 echo "$ac_t""no" 1>&6
6903 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
6904 fi
6905
6906 XPM_LINK=""
6907 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
6908 echo "configure:6909: checking for Xpm library" >&5
6909
6910 ac_find_libraries=
6911 for ac_dir in $SEARCH_LIB;
6912 do
6913 for ac_extension in a so sl; do
6914 if test -f "$ac_dir/libXpm.$ac_extension"; then
6915 ac_find_libraries=$ac_dir
6916 break 2
6917 fi
6918 done
6919 done
6920
6921 if test "$ac_find_libraries" != "" ; then
6922 GUI_TK_LIBRARY="-L$ac_find_libraries"
6923 XPM_LINK="-lXpm"
6924 cat >> confdefs.h <<\EOF
6925 #define wxHAVE_LIB_XPM 1
6926 EOF
6927
6928 echo "$ac_t""found at $ac_find_libraries" 1>&6
6929 else
6930 echo "$ac_t""no" 1>&6
6931 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
6932 fi
6933
6934 MESA_LINK=""
6935 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
6936 echo "configure:6937: checking for Mesa library" >&5
6937
6938 ac_find_libraries=
6939 for ac_dir in $SEARCH_LIB;
6940 do
6941 for ac_extension in a so sl; do
6942 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
6943 ac_find_libraries=$ac_dir
6944 break 2
6945 fi
6946 done
6947 done
6948
6949 if test "$ac_find_libraries" != "" ; then
6950 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
6951 MESA_LINK="-lMesaGL"
6952 echo "$ac_t""found at $ac_find_libraries" 1>&6
6953 else
6954 { echo "configure: error: no" 1>&2; exit 1; }
6955 fi
6956
6957 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm"
6958 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
6959 WXWINE=1
6960 TOOLKIT=MSW
6961
6962 GUIHEADERS="\$(MSW_HEADERS)"
6963 GUIOBJS="\$(MSW_GUIOBJS)"
6964 COMMONOBJS="\$(MSW_COMMONOBJS)"
6965 GENERICOBJS="\$(MSW_GENERICOBJS)"
6966 GUIDEPS="\$(MSW_GUIDEPS)"
6967 COMMONDEPS="\$(MSW_COMMONDEPS)"
6968 GENERICDEPS="\$(MSW_GENERICDEPS)"
6969 UNIXOBJS="\$(UNIX_OBJS)"
6970 GUIDIST=MSW_DIST
6971 fi
6972
6973 if test "$wxUSE_MOTIF" = 1; then
6974 # If we find X, set shell vars x_includes and x_libraries to the
6975 # paths, otherwise set no_x=yes.
6976 # Uses ac_ vars as temps to allow command line to override cache and checks.
6977 # --without-x overrides everything else, but does not touch the cache.
6978 echo $ac_n "checking for X""... $ac_c" 1>&6
6979 echo "configure:6980: checking for X" >&5
6980
6981 # Check whether --with-x or --without-x was given.
6982 if test "${with_x+set}" = set; then
6983 withval="$with_x"
6984 :
6985 fi
6986
6987 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6988 if test "x$with_x" = xno; then
6989 # The user explicitly disabled X.
6990 have_x=disabled
6991 else
6992 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6993 # Both variables are already set.
6994 have_x=yes
6995 else
6996 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
6997 echo $ac_n "(cached) $ac_c" 1>&6
6998 else
6999 # One or both of the vars are not set, and there is no cached value.
7000 ac_x_includes=NO ac_x_libraries=NO
7001 rm -fr conftestdir
7002 if mkdir conftestdir; then
7003 cd conftestdir
7004 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7005 cat > Imakefile <<'EOF'
7006 acfindx:
7007 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7008 EOF
7009 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7010 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7011 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7012 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7013 for ac_extension in a so sl; do
7014 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7015 test -f $ac_im_libdir/libX11.$ac_extension; then
7016 ac_im_usrlibdir=$ac_im_libdir; break
7017 fi
7018 done
7019 # Screen out bogus values from the imake configuration. They are
7020 # bogus both because they are the default anyway, and because
7021 # using them would break gcc on systems where it needs fixed includes.
7022 case "$ac_im_incroot" in
7023 /usr/include) ;;
7024 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
7025 esac
7026 case "$ac_im_usrlibdir" in
7027 /usr/lib | /lib) ;;
7028 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
7029 esac
7030 fi
7031 cd ..
7032 rm -fr conftestdir
7033 fi
7034
7035 if test "$ac_x_includes" = NO; then
7036 # Guess where to find include files, by looking for this one X11 .h file.
7037 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
7038
7039 # First, try using that file with no special directory specified.
7040 cat > conftest.$ac_ext <<EOF
7041 #line 7042 "configure"
7042 #include "confdefs.h"
7043 #include <$x_direct_test_include>
7044 EOF
7045 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7046 { (eval echo configure:7047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7047 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7048 if test -z "$ac_err"; then
7049 rm -rf conftest*
7050 # We can compile using X headers with no special include directory.
7051 ac_x_includes=
7052 else
7053 echo "$ac_err" >&5
7054 echo "configure: failed program was:" >&5
7055 cat conftest.$ac_ext >&5
7056 rm -rf conftest*
7057 # Look for the header file in a standard set of common directories.
7058 # Check X11 before X11Rn because it is often a symlink to the current release.
7059 for ac_dir in \
7060 /usr/X11/include \
7061 /usr/X11R6/include \
7062 /usr/X11R5/include \
7063 /usr/X11R4/include \
7064 \
7065 /usr/include/X11 \
7066 /usr/include/X11R6 \
7067 /usr/include/X11R5 \
7068 /usr/include/X11R4 \
7069 \
7070 /usr/local/X11/include \
7071 /usr/local/X11R6/include \
7072 /usr/local/X11R5/include \
7073 /usr/local/X11R4/include \
7074 \
7075 /usr/local/include/X11 \
7076 /usr/local/include/X11R6 \
7077 /usr/local/include/X11R5 \
7078 /usr/local/include/X11R4 \
7079 \
7080 /usr/X386/include \
7081 /usr/x386/include \
7082 /usr/XFree86/include/X11 \
7083 \
7084 /usr/include \
7085 /usr/local/include \
7086 /usr/unsupported/include \
7087 /usr/athena/include \
7088 /usr/local/x11r5/include \
7089 /usr/lpp/Xamples/include \
7090 \
7091 /usr/openwin/include \
7092 /usr/openwin/share/include \
7093 ; \
7094 do
7095 if test -r "$ac_dir/$x_direct_test_include"; then
7096 ac_x_includes=$ac_dir
7097 break
7098 fi
7099 done
7100 fi
7101 rm -f conftest*
7102 fi # $ac_x_includes = NO
7103
7104 if test "$ac_x_libraries" = NO; then
7105 # Check for the libraries.
7106
7107 test -z "$x_direct_test_library" && x_direct_test_library=Xt
7108 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
7109
7110 # See if we find them without any special options.
7111 # Don't add to $LIBS permanently.
7112 ac_save_LIBS="$LIBS"
7113 LIBS="-l$x_direct_test_library $LIBS"
7114 cat > conftest.$ac_ext <<EOF
7115 #line 7116 "configure"
7116 #include "confdefs.h"
7117
7118 int main() {
7119 ${x_direct_test_function}()
7120 ; return 0; }
7121 EOF
7122 if { (eval echo configure:7123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7123 rm -rf conftest*
7124 LIBS="$ac_save_LIBS"
7125 # We can link X programs with no special library path.
7126 ac_x_libraries=
7127 else
7128 echo "configure: failed program was:" >&5
7129 cat conftest.$ac_ext >&5
7130 rm -rf conftest*
7131 LIBS="$ac_save_LIBS"
7132 # First see if replacing the include by lib works.
7133 # Check X11 before X11Rn because it is often a symlink to the current release.
7134 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
7135 /usr/X11/lib \
7136 /usr/X11R6/lib \
7137 /usr/X11R5/lib \
7138 /usr/X11R4/lib \
7139 \
7140 /usr/lib/X11 \
7141 /usr/lib/X11R6 \
7142 /usr/lib/X11R5 \
7143 /usr/lib/X11R4 \
7144 \
7145 /usr/local/X11/lib \
7146 /usr/local/X11R6/lib \
7147 /usr/local/X11R5/lib \
7148 /usr/local/X11R4/lib \
7149 \
7150 /usr/local/lib/X11 \
7151 /usr/local/lib/X11R6 \
7152 /usr/local/lib/X11R5 \
7153 /usr/local/lib/X11R4 \
7154 \
7155 /usr/X386/lib \
7156 /usr/x386/lib \
7157 /usr/XFree86/lib/X11 \
7158 \
7159 /usr/lib \
7160 /usr/local/lib \
7161 /usr/unsupported/lib \
7162 /usr/athena/lib \
7163 /usr/local/x11r5/lib \
7164 /usr/lpp/Xamples/lib \
7165 /lib/usr/lib/X11 \
7166 \
7167 /usr/openwin/lib \
7168 /usr/openwin/share/lib \
7169 ; \
7170 do
7171 for ac_extension in a so sl; do
7172 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
7173 ac_x_libraries=$ac_dir
7174 break 2
7175 fi
7176 done
7177 done
7178 fi
7179 rm -f conftest*
7180 fi # $ac_x_libraries = NO
7181
7182 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
7183 # Didn't find X anywhere. Cache the known absence of X.
7184 ac_cv_have_x="have_x=no"
7185 else
7186 # Record where we found X for the cache.
7187 ac_cv_have_x="have_x=yes \
7188 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7189 fi
7190 fi
7191 fi
7192 eval "$ac_cv_have_x"
7193 fi # $with_x != no
7194
7195 if test "$have_x" != yes; then
7196 echo "$ac_t""$have_x" 1>&6
7197 no_x=yes
7198 else
7199 # If each of the values was on the command line, it overrides each guess.
7200 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7201 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7202 # Update the cache value to reflect the command line values.
7203 ac_cv_have_x="have_x=yes \
7204 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7205 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7206 fi
7207
7208 if test "$no_x" = yes; then
7209 # Not all programs may use this symbol, but it does not hurt to define it.
7210 cat >> confdefs.h <<\EOF
7211 #define X_DISPLAY_MISSING 1
7212 EOF
7213
7214 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7215 else
7216 if test -n "$x_includes"; then
7217 X_CFLAGS="$X_CFLAGS -I$x_includes"
7218 fi
7219
7220 # It would also be nice to do this for all -L options, not just this one.
7221 if test -n "$x_libraries"; then
7222 X_LIBS="$X_LIBS -L$x_libraries"
7223 # For Solaris; some versions of Sun CC require a space after -R and
7224 # others require no space. Words are not sufficient . . . .
7225 case "`(uname -sr) 2>/dev/null`" in
7226 "SunOS 5"*)
7227 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
7228 echo "configure:7229: checking whether -R must be followed by a space" >&5
7229 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
7230 cat > conftest.$ac_ext <<EOF
7231 #line 7232 "configure"
7232 #include "confdefs.h"
7233
7234 int main() {
7235
7236 ; return 0; }
7237 EOF
7238 if { (eval echo configure:7239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7239 rm -rf conftest*
7240 ac_R_nospace=yes
7241 else
7242 echo "configure: failed program was:" >&5
7243 cat conftest.$ac_ext >&5
7244 rm -rf conftest*
7245 ac_R_nospace=no
7246 fi
7247 rm -f conftest*
7248 if test $ac_R_nospace = yes; then
7249 echo "$ac_t""no" 1>&6
7250 X_LIBS="$X_LIBS -R$x_libraries"
7251 else
7252 LIBS="$ac_xsave_LIBS -R $x_libraries"
7253 cat > conftest.$ac_ext <<EOF
7254 #line 7255 "configure"
7255 #include "confdefs.h"
7256
7257 int main() {
7258
7259 ; return 0; }
7260 EOF
7261 if { (eval echo configure:7262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7262 rm -rf conftest*
7263 ac_R_space=yes
7264 else
7265 echo "configure: failed program was:" >&5
7266 cat conftest.$ac_ext >&5
7267 rm -rf conftest*
7268 ac_R_space=no
7269 fi
7270 rm -f conftest*
7271 if test $ac_R_space = yes; then
7272 echo "$ac_t""yes" 1>&6
7273 X_LIBS="$X_LIBS -R $x_libraries"
7274 else
7275 echo "$ac_t""neither works" 1>&6
7276 fi
7277 fi
7278 LIBS="$ac_xsave_LIBS"
7279 esac
7280 fi
7281
7282 # Check for system-dependent libraries X programs must link with.
7283 # Do this before checking for the system-independent R6 libraries
7284 # (-lICE), since we may need -lsocket or whatever for X linking.
7285
7286 if test "$ISC" = yes; then
7287 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7288 else
7289 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
7290 # libraries were built with DECnet support. And karl@cs.umb.edu says
7291 # the Alpha needs dnet_stub (dnet does not exist).
7292 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
7293 echo "configure:7294: checking for dnet_ntoa in -ldnet" >&5
7294 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7295 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7296 echo $ac_n "(cached) $ac_c" 1>&6
7297 else
7298 ac_save_LIBS="$LIBS"
7299 LIBS="-ldnet $LIBS"
7300 cat > conftest.$ac_ext <<EOF
7301 #line 7302 "configure"
7302 #include "confdefs.h"
7303 /* Override any gcc2 internal prototype to avoid an error. */
7304 /* We use char because int might match the return type of a gcc2
7305 builtin and then its argument prototype would still apply. */
7306 char dnet_ntoa();
7307
7308 int main() {
7309 dnet_ntoa()
7310 ; return 0; }
7311 EOF
7312 if { (eval echo configure:7313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7313 rm -rf conftest*
7314 eval "ac_cv_lib_$ac_lib_var=yes"
7315 else
7316 echo "configure: failed program was:" >&5
7317 cat conftest.$ac_ext >&5
7318 rm -rf conftest*
7319 eval "ac_cv_lib_$ac_lib_var=no"
7320 fi
7321 rm -f conftest*
7322 LIBS="$ac_save_LIBS"
7323
7324 fi
7325 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7326 echo "$ac_t""yes" 1>&6
7327 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7328 else
7329 echo "$ac_t""no" 1>&6
7330 fi
7331
7332 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7333 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
7334 echo "configure:7335: checking for dnet_ntoa in -ldnet_stub" >&5
7335 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7336 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7337 echo $ac_n "(cached) $ac_c" 1>&6
7338 else
7339 ac_save_LIBS="$LIBS"
7340 LIBS="-ldnet_stub $LIBS"
7341 cat > conftest.$ac_ext <<EOF
7342 #line 7343 "configure"
7343 #include "confdefs.h"
7344 /* Override any gcc2 internal prototype to avoid an error. */
7345 /* We use char because int might match the return type of a gcc2
7346 builtin and then its argument prototype would still apply. */
7347 char dnet_ntoa();
7348
7349 int main() {
7350 dnet_ntoa()
7351 ; return 0; }
7352 EOF
7353 if { (eval echo configure:7354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7354 rm -rf conftest*
7355 eval "ac_cv_lib_$ac_lib_var=yes"
7356 else
7357 echo "configure: failed program was:" >&5
7358 cat conftest.$ac_ext >&5
7359 rm -rf conftest*
7360 eval "ac_cv_lib_$ac_lib_var=no"
7361 fi
7362 rm -f conftest*
7363 LIBS="$ac_save_LIBS"
7364
7365 fi
7366 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7367 echo "$ac_t""yes" 1>&6
7368 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7369 else
7370 echo "$ac_t""no" 1>&6
7371 fi
7372
7373 fi
7374
7375 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7376 # to get the SysV transport functions.
7377 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
7378 # needs -lnsl.
7379 # The nsl library prevents programs from opening the X display
7380 # on Irix 5.2, according to dickey@clark.net.
7381 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
7382 echo "configure:7383: checking for gethostbyname" >&5
7383 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
7384 echo $ac_n "(cached) $ac_c" 1>&6
7385 else
7386 cat > conftest.$ac_ext <<EOF
7387 #line 7388 "configure"
7388 #include "confdefs.h"
7389 /* System header to define __stub macros and hopefully few prototypes,
7390 which can conflict with char gethostbyname(); below. */
7391 #include <assert.h>
7392 /* Override any gcc2 internal prototype to avoid an error. */
7393 /* We use char because int might match the return type of a gcc2
7394 builtin and then its argument prototype would still apply. */
7395 char gethostbyname();
7396
7397 int main() {
7398
7399 /* The GNU C library defines this for functions which it implements
7400 to always fail with ENOSYS. Some functions are actually named
7401 something starting with __ and the normal name is an alias. */
7402 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7403 choke me
7404 #else
7405 gethostbyname();
7406 #endif
7407
7408 ; return 0; }
7409 EOF
7410 if { (eval echo configure:7411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7411 rm -rf conftest*
7412 eval "ac_cv_func_gethostbyname=yes"
7413 else
7414 echo "configure: failed program was:" >&5
7415 cat conftest.$ac_ext >&5
7416 rm -rf conftest*
7417 eval "ac_cv_func_gethostbyname=no"
7418 fi
7419 rm -f conftest*
7420 fi
7421
7422 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
7423 echo "$ac_t""yes" 1>&6
7424 :
7425 else
7426 echo "$ac_t""no" 1>&6
7427 fi
7428
7429 if test $ac_cv_func_gethostbyname = no; then
7430 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
7431 echo "configure:7432: checking for gethostbyname in -lnsl" >&5
7432 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7433 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7434 echo $ac_n "(cached) $ac_c" 1>&6
7435 else
7436 ac_save_LIBS="$LIBS"
7437 LIBS="-lnsl $LIBS"
7438 cat > conftest.$ac_ext <<EOF
7439 #line 7440 "configure"
7440 #include "confdefs.h"
7441 /* Override any gcc2 internal prototype to avoid an error. */
7442 /* We use char because int might match the return type of a gcc2
7443 builtin and then its argument prototype would still apply. */
7444 char gethostbyname();
7445
7446 int main() {
7447 gethostbyname()
7448 ; return 0; }
7449 EOF
7450 if { (eval echo configure:7451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7451 rm -rf conftest*
7452 eval "ac_cv_lib_$ac_lib_var=yes"
7453 else
7454 echo "configure: failed program was:" >&5
7455 cat conftest.$ac_ext >&5
7456 rm -rf conftest*
7457 eval "ac_cv_lib_$ac_lib_var=no"
7458 fi
7459 rm -f conftest*
7460 LIBS="$ac_save_LIBS"
7461
7462 fi
7463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7464 echo "$ac_t""yes" 1>&6
7465 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7466 else
7467 echo "$ac_t""no" 1>&6
7468 fi
7469
7470 fi
7471
7472 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7473 # socket/setsockopt and other routines are undefined under SCO ODT
7474 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7475 # on later versions), says simon@lia.di.epfl.ch: it contains
7476 # gethostby* variants that don't use the nameserver (or something).
7477 # -lsocket must be given before -lnsl if both are needed.
7478 # We assume that if connect needs -lnsl, so does gethostbyname.
7479 echo $ac_n "checking for connect""... $ac_c" 1>&6
7480 echo "configure:7481: checking for connect" >&5
7481 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7482 echo $ac_n "(cached) $ac_c" 1>&6
7483 else
7484 cat > conftest.$ac_ext <<EOF
7485 #line 7486 "configure"
7486 #include "confdefs.h"
7487 /* System header to define __stub macros and hopefully few prototypes,
7488 which can conflict with char connect(); below. */
7489 #include <assert.h>
7490 /* Override any gcc2 internal prototype to avoid an error. */
7491 /* We use char because int might match the return type of a gcc2
7492 builtin and then its argument prototype would still apply. */
7493 char connect();
7494
7495 int main() {
7496
7497 /* The GNU C library defines this for functions which it implements
7498 to always fail with ENOSYS. Some functions are actually named
7499 something starting with __ and the normal name is an alias. */
7500 #if defined (__stub_connect) || defined (__stub___connect)
7501 choke me
7502 #else
7503 connect();
7504 #endif
7505
7506 ; return 0; }
7507 EOF
7508 if { (eval echo configure:7509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7509 rm -rf conftest*
7510 eval "ac_cv_func_connect=yes"
7511 else
7512 echo "configure: failed program was:" >&5
7513 cat conftest.$ac_ext >&5
7514 rm -rf conftest*
7515 eval "ac_cv_func_connect=no"
7516 fi
7517 rm -f conftest*
7518 fi
7519
7520 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7521 echo "$ac_t""yes" 1>&6
7522 :
7523 else
7524 echo "$ac_t""no" 1>&6
7525 fi
7526
7527 if test $ac_cv_func_connect = no; then
7528 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
7529 echo "configure:7530: checking for connect in -lsocket" >&5
7530 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7531 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7532 echo $ac_n "(cached) $ac_c" 1>&6
7533 else
7534 ac_save_LIBS="$LIBS"
7535 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7536 cat > conftest.$ac_ext <<EOF
7537 #line 7538 "configure"
7538 #include "confdefs.h"
7539 /* Override any gcc2 internal prototype to avoid an error. */
7540 /* We use char because int might match the return type of a gcc2
7541 builtin and then its argument prototype would still apply. */
7542 char connect();
7543
7544 int main() {
7545 connect()
7546 ; return 0; }
7547 EOF
7548 if { (eval echo configure:7549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7549 rm -rf conftest*
7550 eval "ac_cv_lib_$ac_lib_var=yes"
7551 else
7552 echo "configure: failed program was:" >&5
7553 cat conftest.$ac_ext >&5
7554 rm -rf conftest*
7555 eval "ac_cv_lib_$ac_lib_var=no"
7556 fi
7557 rm -f conftest*
7558 LIBS="$ac_save_LIBS"
7559
7560 fi
7561 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7562 echo "$ac_t""yes" 1>&6
7563 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7564 else
7565 echo "$ac_t""no" 1>&6
7566 fi
7567
7568 fi
7569
7570 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7571 echo $ac_n "checking for remove""... $ac_c" 1>&6
7572 echo "configure:7573: checking for remove" >&5
7573 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7574 echo $ac_n "(cached) $ac_c" 1>&6
7575 else
7576 cat > conftest.$ac_ext <<EOF
7577 #line 7578 "configure"
7578 #include "confdefs.h"
7579 /* System header to define __stub macros and hopefully few prototypes,
7580 which can conflict with char remove(); below. */
7581 #include <assert.h>
7582 /* Override any gcc2 internal prototype to avoid an error. */
7583 /* We use char because int might match the return type of a gcc2
7584 builtin and then its argument prototype would still apply. */
7585 char remove();
7586
7587 int main() {
7588
7589 /* The GNU C library defines this for functions which it implements
7590 to always fail with ENOSYS. Some functions are actually named
7591 something starting with __ and the normal name is an alias. */
7592 #if defined (__stub_remove) || defined (__stub___remove)
7593 choke me
7594 #else
7595 remove();
7596 #endif
7597
7598 ; return 0; }
7599 EOF
7600 if { (eval echo configure:7601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7601 rm -rf conftest*
7602 eval "ac_cv_func_remove=yes"
7603 else
7604 echo "configure: failed program was:" >&5
7605 cat conftest.$ac_ext >&5
7606 rm -rf conftest*
7607 eval "ac_cv_func_remove=no"
7608 fi
7609 rm -f conftest*
7610 fi
7611
7612 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7613 echo "$ac_t""yes" 1>&6
7614 :
7615 else
7616 echo "$ac_t""no" 1>&6
7617 fi
7618
7619 if test $ac_cv_func_remove = no; then
7620 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
7621 echo "configure:7622: checking for remove in -lposix" >&5
7622 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7623 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7624 echo $ac_n "(cached) $ac_c" 1>&6
7625 else
7626 ac_save_LIBS="$LIBS"
7627 LIBS="-lposix $LIBS"
7628 cat > conftest.$ac_ext <<EOF
7629 #line 7630 "configure"
7630 #include "confdefs.h"
7631 /* Override any gcc2 internal prototype to avoid an error. */
7632 /* We use char because int might match the return type of a gcc2
7633 builtin and then its argument prototype would still apply. */
7634 char remove();
7635
7636 int main() {
7637 remove()
7638 ; return 0; }
7639 EOF
7640 if { (eval echo configure:7641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7641 rm -rf conftest*
7642 eval "ac_cv_lib_$ac_lib_var=yes"
7643 else
7644 echo "configure: failed program was:" >&5
7645 cat conftest.$ac_ext >&5
7646 rm -rf conftest*
7647 eval "ac_cv_lib_$ac_lib_var=no"
7648 fi
7649 rm -f conftest*
7650 LIBS="$ac_save_LIBS"
7651
7652 fi
7653 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7654 echo "$ac_t""yes" 1>&6
7655 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7656 else
7657 echo "$ac_t""no" 1>&6
7658 fi
7659
7660 fi
7661
7662 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7663 echo $ac_n "checking for shmat""... $ac_c" 1>&6
7664 echo "configure:7665: checking for shmat" >&5
7665 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
7666 echo $ac_n "(cached) $ac_c" 1>&6
7667 else
7668 cat > conftest.$ac_ext <<EOF
7669 #line 7670 "configure"
7670 #include "confdefs.h"
7671 /* System header to define __stub macros and hopefully few prototypes,
7672 which can conflict with char shmat(); below. */
7673 #include <assert.h>
7674 /* Override any gcc2 internal prototype to avoid an error. */
7675 /* We use char because int might match the return type of a gcc2
7676 builtin and then its argument prototype would still apply. */
7677 char shmat();
7678
7679 int main() {
7680
7681 /* The GNU C library defines this for functions which it implements
7682 to always fail with ENOSYS. Some functions are actually named
7683 something starting with __ and the normal name is an alias. */
7684 #if defined (__stub_shmat) || defined (__stub___shmat)
7685 choke me
7686 #else
7687 shmat();
7688 #endif
7689
7690 ; return 0; }
7691 EOF
7692 if { (eval echo configure:7693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7693 rm -rf conftest*
7694 eval "ac_cv_func_shmat=yes"
7695 else
7696 echo "configure: failed program was:" >&5
7697 cat conftest.$ac_ext >&5
7698 rm -rf conftest*
7699 eval "ac_cv_func_shmat=no"
7700 fi
7701 rm -f conftest*
7702 fi
7703
7704 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
7705 echo "$ac_t""yes" 1>&6
7706 :
7707 else
7708 echo "$ac_t""no" 1>&6
7709 fi
7710
7711 if test $ac_cv_func_shmat = no; then
7712 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
7713 echo "configure:7714: checking for shmat in -lipc" >&5
7714 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
7715 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7716 echo $ac_n "(cached) $ac_c" 1>&6
7717 else
7718 ac_save_LIBS="$LIBS"
7719 LIBS="-lipc $LIBS"
7720 cat > conftest.$ac_ext <<EOF
7721 #line 7722 "configure"
7722 #include "confdefs.h"
7723 /* Override any gcc2 internal prototype to avoid an error. */
7724 /* We use char because int might match the return type of a gcc2
7725 builtin and then its argument prototype would still apply. */
7726 char shmat();
7727
7728 int main() {
7729 shmat()
7730 ; return 0; }
7731 EOF
7732 if { (eval echo configure:7733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7733 rm -rf conftest*
7734 eval "ac_cv_lib_$ac_lib_var=yes"
7735 else
7736 echo "configure: failed program was:" >&5
7737 cat conftest.$ac_ext >&5
7738 rm -rf conftest*
7739 eval "ac_cv_lib_$ac_lib_var=no"
7740 fi
7741 rm -f conftest*
7742 LIBS="$ac_save_LIBS"
7743
7744 fi
7745 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7746 echo "$ac_t""yes" 1>&6
7747 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7748 else
7749 echo "$ac_t""no" 1>&6
7750 fi
7751
7752 fi
7753 fi
7754
7755 # Check for libraries that X11R6 Xt/Xaw programs need.
7756 ac_save_LDFLAGS="$LDFLAGS"
7757 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7758 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7759 # check for ICE first), but we must link in the order -lSM -lICE or
7760 # we get undefined symbols. So assume we have SM if we have ICE.
7761 # These have to be linked with before -lX11, unlike the other
7762 # libraries we check for below, so use a different variable.
7763 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
7764 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
7765 echo "configure:7766: checking for IceConnectionNumber in -lICE" >&5
7766 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
7767 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7768 echo $ac_n "(cached) $ac_c" 1>&6
7769 else
7770 ac_save_LIBS="$LIBS"
7771 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7772 cat > conftest.$ac_ext <<EOF
7773 #line 7774 "configure"
7774 #include "confdefs.h"
7775 /* Override any gcc2 internal prototype to avoid an error. */
7776 /* We use char because int might match the return type of a gcc2
7777 builtin and then its argument prototype would still apply. */
7778 char IceConnectionNumber();
7779
7780 int main() {
7781 IceConnectionNumber()
7782 ; return 0; }
7783 EOF
7784 if { (eval echo configure:7785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7785 rm -rf conftest*
7786 eval "ac_cv_lib_$ac_lib_var=yes"
7787 else
7788 echo "configure: failed program was:" >&5
7789 cat conftest.$ac_ext >&5
7790 rm -rf conftest*
7791 eval "ac_cv_lib_$ac_lib_var=no"
7792 fi
7793 rm -f conftest*
7794 LIBS="$ac_save_LIBS"
7795
7796 fi
7797 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7798 echo "$ac_t""yes" 1>&6
7799 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7800 else
7801 echo "$ac_t""no" 1>&6
7802 fi
7803
7804 LDFLAGS="$ac_save_LDFLAGS"
7805
7806 fi
7807
7808
7809 if test "$no_x" = "yes"; then
7810 { echo "configure: error: X11 libraries not found" 1>&2; exit 1; }
7811 fi
7812
7813 TOOLKIT_INCLUDE="$X_CFLAGS"
7814 GUI_TK_LIBRARY="$X_LIBS"
7815
7816 echo $ac_n "checking for Motif/Lesstif includes""... $ac_c" 1>&6
7817 echo "configure:7818: checking for Motif/Lesstif includes" >&5
7818
7819 ac_find_includes=
7820 for ac_dir in $SEARCH_INCLUDE;
7821 do
7822 if test -f "$ac_dir/Xm/Xm.h"; then
7823 ac_find_includes=$ac_dir
7824 break
7825 fi
7826 done
7827
7828 if test "$ac_find_includes" != "" ; then
7829 echo "$ac_t""found $ac_find_includes" 1>&6
7830 else
7831 echo "$ac_t""no" 1>&6
7832 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
7833 fi
7834
7835 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
7836 echo "configure:7837: checking for Motif/Lesstif library" >&5
7837
7838 ac_find_libraries=
7839 for ac_dir in $SEARCH_LIB;
7840 do
7841 for ac_extension in a so sl; do
7842 if test -f "$ac_dir/libXm.$ac_extension"; then
7843 ac_find_libraries=$ac_dir
7844 break 2
7845 fi
7846 done
7847 done
7848
7849 if test "$ac_find_libraries" != "" ; then
7850
7851 ac_path_to_include=$ac_find_includes
7852 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
7853 result=$?
7854 if test $result = 0; then
7855 ac_path_to_include=""
7856 else
7857 ac_path_to_include="-I$ac_find_includes"
7858 fi
7859
7860
7861 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
7862 result=$?
7863 if test $result = 0; then
7864 ac_path_to_link=""
7865 else
7866 ac_path_to_link="-L$ac_find_libraries"
7867 fi
7868
7869
7870 CHECK_LINK="$GUI_TK_LIBRARY $ac_path_to_link"
7871 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
7872 echo "$ac_t""found at $ac_find_libraries" 1>&6
7873 else
7874 echo "$ac_t""no" 1>&6
7875 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
7876 fi
7877
7878 echo $ac_n "checking for Xt library""... $ac_c" 1>&6
7879 echo "configure:7880: checking for Xt library" >&5
7880
7881 ac_find_libraries=
7882 for ac_dir in $SEARCH_LIB;
7883 do
7884 for ac_extension in a so sl; do
7885 if test -f "$ac_dir/libXt.$ac_extension"; then
7886 ac_find_libraries=$ac_dir
7887 break 2
7888 fi
7889 done
7890 done
7891
7892 if test "$ac_find_libraries" != "" ; then
7893
7894 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
7895 result=$?
7896 if test $result = 0; then
7897 ac_path_to_link=""
7898 else
7899 ac_path_to_link="-L$ac_find_libraries"
7900 fi
7901
7902 CHECK_LINK="$GUI_TK_LIBRARY $ac_path_to_link"
7903 echo "$ac_t""found at $ac_find_libraries" 1>&6
7904 else
7905 echo "$ac_t""no" 1>&6
7906 { echo "configure: error: please set LDFLAGS to contain the location of libXt" 1>&2; exit 1; }
7907 fi
7908
7909 XPM_LINK=""
7910 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
7911 echo "configure:7912: checking for Xpm library" >&5
7912
7913 ac_find_libraries=
7914 for ac_dir in $SEARCH_LIB;
7915 do
7916 for ac_extension in a so sl; do
7917 if test -f "$ac_dir/libXpm.$ac_extension"; then
7918 ac_find_libraries=$ac_dir
7919 break 2
7920 fi
7921 done
7922 done
7923
7924 if test "$ac_find_libraries" != "" ; then
7925
7926 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
7927 result=$?
7928 if test $result = 0; then
7929 ac_path_to_link=""
7930 else
7931 ac_path_to_link="-L$ac_find_libraries"
7932 fi
7933
7934 CHECK_LINK="$GUI_TK_LIBRARY $ac_path_to_link"
7935 XPM_LINK="-lXpm "
7936 cat >> confdefs.h <<\EOF
7937 #define wxHAVE_LIB_XPM 1
7938 EOF
7939
7940 echo "$ac_t""found at $ac_find_libraries" 1>&6
7941 else
7942 echo "$ac_t""no" 1>&6
7943 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7944 fi
7945
7946 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXt -lX11 -lm"
7947 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7948 TOOLKIT=MOTIF
7949
7950 GUIHEADERS="\$(MOTIF_HEADERS)"
7951 GUIOBJS="\$(MOTIF_GUIOBJS)"
7952 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
7953 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
7954 GUIDEPS="\$(MOTIF_GUIDEPS)"
7955 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
7956 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
7957 UNIXOBJS="\$(UNIX_OBJS)"
7958 GUIDIST=MOTIF_DIST
7959 fi
7960
7961 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "A-Z" "a-z"`
7962
7963 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
7964
7965 WX_LIBRARY="wx_${TOOLKIT_DIR}"
7966
7967 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(JPEGOBJS) \$(PNGOBJS) \$(ZLIBOBJS) \$(IODBCOBJS)"
7968 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS)"
7969 ALL_HEADERS="\$(GUIHEADERS) \$(HTML_HEADERS) \$(UNIX_HEADERS) \$(PROTOCOL_HEADERS) \$(GENERIC_HEADERS) \$(WX_HEADERS)"
7970 else
7971
7972 ALL_OBJECTS="\$(BASE_OBJS)"
7973 ALL_DEPFILES="\${BASE_DEPS}"
7974 ALL_HEADERS="\${BASE_HEADERS}"
7975
7976 WX_LIBRARY="wxbase"
7977 fi
7978
7979 WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
7980
7981 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
7982
7983 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
7984
7985 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
7986 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
7987 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
7988
7989 SHARED_LD=
7990 PIC_FLAG=
7991 WX_ALL=
7992 WX_ALL_INSTALLED=
7993
7994 if test "$wxUSE_SHARED" = "yes"; then
7995 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
7996
7997 case "${host}" in
7998 *-hp-hpux* )
7999 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
8000 SHARED_LD="${CXX} -b -o"
8001 PIC_FLAG="+Z"
8002 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8003 ;;
8004 *-*-linux* )
8005 SHARED_LD="${CC} -shared -o"
8006 PIC_FLAG="-fPIC"
8007 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8008 WX_ALL="CREATE_LINKS"
8009 ;;
8010 *-*-irix5* | *-*-irix6* )
8011 if test "$GCC" = yes ; then
8012 SHARED_LD="${CC} -shared -o"
8013 PIC_FLAG="-fPIC"
8014 else
8015 SHARED_LD="${CXX} -shared -o"
8016 fi
8017 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8018 WX_ALL="CREATE_LINKS"
8019 ;;
8020 *-*-solaris2* )
8021 if test "$GCC" = yes ; then
8022 SHARED_LD="${CC} -shared -o"
8023 PIC_FLAG="-fPIC"
8024 else
8025 SHARED_LD="${CXX} -G -o"
8026 PIC_FLAG="PIC"
8027 fi
8028 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8029 WX_ALL="CREATE_LINKS"
8030 ;;
8031 *-*-sunos4* )
8032 SHARED_LD="${CC} -shared -o"
8033 PIC_FLAG="-fPIC"
8034 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8035 WX_ALL="CREATE_LINKS"
8036 ;;
8037 *-*-freebsd* | *-*-netbsd*)
8038 SHARED_LD="${CC} -shared -o"
8039 PIC_FLAG="-fPIC"
8040 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8041 WX_ALL="CREATE_LINKS"
8042 ;;
8043 *-*-osf* )
8044 SHARED_LD="${CXX} -shared -o"
8045 PIC_FLAG="-fPIC"
8046 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8047 WX_ALL="CREATE_LINKS"
8048 ;;
8049 *-*-dgux5* )
8050 SHARED_LD="${CXX} -shared -o"
8051 PIC_FLAG="-fPIC"
8052 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8053 WX_ALL="CREATE_LINKS"
8054 ;;
8055 *-*-sysv5* )
8056 SHARED_LD="${CC} -shared -o"
8057 PIC_FLAG="-fPIC"
8058 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8059 WX_ALL="CREATE_LINKS"
8060 ;;
8061 *-*-aix* )
8062 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
8063 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8064 ;;
8065 *-*-cygwin32* )
8066 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8067 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8068 ;;
8069 *-*-mingw32* )
8070 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8071 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8072 ;;
8073 *-pc-os2_emx )
8074 ;;
8075 *)
8076 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
8077 esac
8078
8079 else
8080 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8081 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8082 fi
8083
8084
8085 for ac_hdr in strings.h
8086 do
8087 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8088 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8089 echo "configure:8090: checking for $ac_hdr" >&5
8090 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8091 echo $ac_n "(cached) $ac_c" 1>&6
8092 else
8093 cat > conftest.$ac_ext <<EOF
8094 #line 8095 "configure"
8095 #include "confdefs.h"
8096 #include <$ac_hdr>
8097 EOF
8098 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8099 { (eval echo configure:8100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8100 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8101 if test -z "$ac_err"; then
8102 rm -rf conftest*
8103 eval "ac_cv_header_$ac_safe=yes"
8104 else
8105 echo "$ac_err" >&5
8106 echo "configure: failed program was:" >&5
8107 cat conftest.$ac_ext >&5
8108 rm -rf conftest*
8109 eval "ac_cv_header_$ac_safe=no"
8110 fi
8111 rm -f conftest*
8112 fi
8113 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8114 echo "$ac_t""yes" 1>&6
8115 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8116 cat >> confdefs.h <<EOF
8117 #define $ac_tr_hdr 1
8118 EOF
8119
8120 else
8121 echo "$ac_t""no" 1>&6
8122 fi
8123 done
8124
8125 for ac_hdr in unistd.h
8126 do
8127 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8128 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8129 echo "configure:8130: checking for $ac_hdr" >&5
8130 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8131 echo $ac_n "(cached) $ac_c" 1>&6
8132 else
8133 cat > conftest.$ac_ext <<EOF
8134 #line 8135 "configure"
8135 #include "confdefs.h"
8136 #include <$ac_hdr>
8137 EOF
8138 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8139 { (eval echo configure:8140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8140 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8141 if test -z "$ac_err"; then
8142 rm -rf conftest*
8143 eval "ac_cv_header_$ac_safe=yes"
8144 else
8145 echo "$ac_err" >&5
8146 echo "configure: failed program was:" >&5
8147 cat conftest.$ac_ext >&5
8148 rm -rf conftest*
8149 eval "ac_cv_header_$ac_safe=no"
8150 fi
8151 rm -f conftest*
8152 fi
8153 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8154 echo "$ac_t""yes" 1>&6
8155 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8156 cat >> confdefs.h <<EOF
8157 #define $ac_tr_hdr 1
8158 EOF
8159
8160 else
8161 echo "$ac_t""no" 1>&6
8162 fi
8163 done
8164
8165 for ac_hdr in wchar.h
8166 do
8167 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8168 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8169 echo "configure:8170: checking for $ac_hdr" >&5
8170 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8171 echo $ac_n "(cached) $ac_c" 1>&6
8172 else
8173 cat > conftest.$ac_ext <<EOF
8174 #line 8175 "configure"
8175 #include "confdefs.h"
8176 #include <$ac_hdr>
8177 EOF
8178 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8179 { (eval echo configure:8180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8180 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8181 if test -z "$ac_err"; then
8182 rm -rf conftest*
8183 eval "ac_cv_header_$ac_safe=yes"
8184 else
8185 echo "$ac_err" >&5
8186 echo "configure: failed program was:" >&5
8187 cat conftest.$ac_ext >&5
8188 rm -rf conftest*
8189 eval "ac_cv_header_$ac_safe=no"
8190 fi
8191 rm -f conftest*
8192 fi
8193 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8194 echo "$ac_t""yes" 1>&6
8195 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8196 cat >> confdefs.h <<EOF
8197 #define $ac_tr_hdr 1
8198 EOF
8199
8200 else
8201 echo "$ac_t""no" 1>&6
8202 fi
8203 done
8204
8205 for ac_hdr in wcstr.h
8206 do
8207 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8208 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8209 echo "configure:8210: checking for $ac_hdr" >&5
8210 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8211 echo $ac_n "(cached) $ac_c" 1>&6
8212 else
8213 cat > conftest.$ac_ext <<EOF
8214 #line 8215 "configure"
8215 #include "confdefs.h"
8216 #include <$ac_hdr>
8217 EOF
8218 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8219 { (eval echo configure:8220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8220 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8221 if test -z "$ac_err"; then
8222 rm -rf conftest*
8223 eval "ac_cv_header_$ac_safe=yes"
8224 else
8225 echo "$ac_err" >&5
8226 echo "configure: failed program was:" >&5
8227 cat conftest.$ac_ext >&5
8228 rm -rf conftest*
8229 eval "ac_cv_header_$ac_safe=no"
8230 fi
8231 rm -f conftest*
8232 fi
8233 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8234 echo "$ac_t""yes" 1>&6
8235 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8236 cat >> confdefs.h <<EOF
8237 #define $ac_tr_hdr 1
8238 EOF
8239
8240 else
8241 echo "$ac_t""no" 1>&6
8242 fi
8243 done
8244
8245 for ac_hdr in fnmatch.h
8246 do
8247 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8248 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8249 echo "configure:8250: checking for $ac_hdr" >&5
8250 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8251 echo $ac_n "(cached) $ac_c" 1>&6
8252 else
8253 cat > conftest.$ac_ext <<EOF
8254 #line 8255 "configure"
8255 #include "confdefs.h"
8256 #include <$ac_hdr>
8257 EOF
8258 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8259 { (eval echo configure:8260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8260 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8261 if test -z "$ac_err"; then
8262 rm -rf conftest*
8263 eval "ac_cv_header_$ac_safe=yes"
8264 else
8265 echo "$ac_err" >&5
8266 echo "configure: failed program was:" >&5
8267 cat conftest.$ac_ext >&5
8268 rm -rf conftest*
8269 eval "ac_cv_header_$ac_safe=no"
8270 fi
8271 rm -f conftest*
8272 fi
8273 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8274 echo "$ac_t""yes" 1>&6
8275 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8276 cat >> confdefs.h <<EOF
8277 #define $ac_tr_hdr 1
8278 EOF
8279
8280 else
8281 echo "$ac_t""no" 1>&6
8282 fi
8283 done
8284
8285
8286 if test "$wxUSE_GUI" = "yes"; then
8287 for ac_hdr in X11/XKBlib.h
8288 do
8289 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8290 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8291 echo "configure:8292: checking for $ac_hdr" >&5
8292 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8293 echo $ac_n "(cached) $ac_c" 1>&6
8294 else
8295 cat > conftest.$ac_ext <<EOF
8296 #line 8297 "configure"
8297 #include "confdefs.h"
8298 #include <$ac_hdr>
8299 EOF
8300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8301 { (eval echo configure:8302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8302 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8303 if test -z "$ac_err"; then
8304 rm -rf conftest*
8305 eval "ac_cv_header_$ac_safe=yes"
8306 else
8307 echo "$ac_err" >&5
8308 echo "configure: failed program was:" >&5
8309 cat conftest.$ac_ext >&5
8310 rm -rf conftest*
8311 eval "ac_cv_header_$ac_safe=no"
8312 fi
8313 rm -f conftest*
8314 fi
8315 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8316 echo "$ac_t""yes" 1>&6
8317 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8318 cat >> confdefs.h <<EOF
8319 #define $ac_tr_hdr 1
8320 EOF
8321
8322 else
8323 echo "$ac_t""no" 1>&6
8324 fi
8325 done
8326
8327 fi
8328
8329
8330 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8331 echo "configure:8332: checking for ANSI C header files" >&5
8332 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8333 echo $ac_n "(cached) $ac_c" 1>&6
8334 else
8335 cat > conftest.$ac_ext <<EOF
8336 #line 8337 "configure"
8337 #include "confdefs.h"
8338 #include <stdlib.h>
8339 #include <stdarg.h>
8340 #include <string.h>
8341 #include <float.h>
8342 EOF
8343 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8344 { (eval echo configure:8345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8345 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8346 if test -z "$ac_err"; then
8347 rm -rf conftest*
8348 ac_cv_header_stdc=yes
8349 else
8350 echo "$ac_err" >&5
8351 echo "configure: failed program was:" >&5
8352 cat conftest.$ac_ext >&5
8353 rm -rf conftest*
8354 ac_cv_header_stdc=no
8355 fi
8356 rm -f conftest*
8357
8358 if test $ac_cv_header_stdc = yes; then
8359 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8360 cat > conftest.$ac_ext <<EOF
8361 #line 8362 "configure"
8362 #include "confdefs.h"
8363 #include <string.h>
8364 EOF
8365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8366 egrep "memchr" >/dev/null 2>&1; then
8367 :
8368 else
8369 rm -rf conftest*
8370 ac_cv_header_stdc=no
8371 fi
8372 rm -f conftest*
8373
8374 fi
8375
8376 if test $ac_cv_header_stdc = yes; then
8377 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8378 cat > conftest.$ac_ext <<EOF
8379 #line 8380 "configure"
8380 #include "confdefs.h"
8381 #include <stdlib.h>
8382 EOF
8383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8384 egrep "free" >/dev/null 2>&1; then
8385 :
8386 else
8387 rm -rf conftest*
8388 ac_cv_header_stdc=no
8389 fi
8390 rm -f conftest*
8391
8392 fi
8393
8394 if test $ac_cv_header_stdc = yes; then
8395 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8396 if test "$cross_compiling" = yes; then
8397 :
8398 else
8399 cat > conftest.$ac_ext <<EOF
8400 #line 8401 "configure"
8401 #include "confdefs.h"
8402 #include <ctype.h>
8403 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8404 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8405 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8406 int main () { int i; for (i = 0; i < 256; i++)
8407 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8408 exit (0); }
8409
8410 EOF
8411 if { (eval echo configure:8412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8412 then
8413 :
8414 else
8415 echo "configure: failed program was:" >&5
8416 cat conftest.$ac_ext >&5
8417 rm -fr conftest*
8418 ac_cv_header_stdc=no
8419 fi
8420 rm -fr conftest*
8421 fi
8422
8423 fi
8424 fi
8425
8426 echo "$ac_t""$ac_cv_header_stdc" 1>&6
8427 if test $ac_cv_header_stdc = yes; then
8428 cat >> confdefs.h <<\EOF
8429 #define STDC_HEADERS 1
8430 EOF
8431
8432 fi
8433
8434 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
8435 echo "configure:8436: checking for mode_t" >&5
8436 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8437 echo $ac_n "(cached) $ac_c" 1>&6
8438 else
8439 cat > conftest.$ac_ext <<EOF
8440 #line 8441 "configure"
8441 #include "confdefs.h"
8442 #include <sys/types.h>
8443 #if STDC_HEADERS
8444 #include <stdlib.h>
8445 #include <stddef.h>
8446 #endif
8447 EOF
8448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8449 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8450 rm -rf conftest*
8451 ac_cv_type_mode_t=yes
8452 else
8453 rm -rf conftest*
8454 ac_cv_type_mode_t=no
8455 fi
8456 rm -f conftest*
8457
8458 fi
8459 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
8460 if test $ac_cv_type_mode_t = no; then
8461 cat >> confdefs.h <<\EOF
8462 #define mode_t int
8463 EOF
8464
8465 fi
8466
8467 echo $ac_n "checking for off_t""... $ac_c" 1>&6
8468 echo "configure:8469: checking for off_t" >&5
8469 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
8470 echo $ac_n "(cached) $ac_c" 1>&6
8471 else
8472 cat > conftest.$ac_ext <<EOF
8473 #line 8474 "configure"
8474 #include "confdefs.h"
8475 #include <sys/types.h>
8476 #if STDC_HEADERS
8477 #include <stdlib.h>
8478 #include <stddef.h>
8479 #endif
8480 EOF
8481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8482 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8483 rm -rf conftest*
8484 ac_cv_type_off_t=yes
8485 else
8486 rm -rf conftest*
8487 ac_cv_type_off_t=no
8488 fi
8489 rm -f conftest*
8490
8491 fi
8492 echo "$ac_t""$ac_cv_type_off_t" 1>&6
8493 if test $ac_cv_type_off_t = no; then
8494 cat >> confdefs.h <<\EOF
8495 #define off_t long
8496 EOF
8497
8498 fi
8499
8500 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
8501 echo "configure:8502: checking for pid_t" >&5
8502 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8503 echo $ac_n "(cached) $ac_c" 1>&6
8504 else
8505 cat > conftest.$ac_ext <<EOF
8506 #line 8507 "configure"
8507 #include "confdefs.h"
8508 #include <sys/types.h>
8509 #if STDC_HEADERS
8510 #include <stdlib.h>
8511 #include <stddef.h>
8512 #endif
8513 EOF
8514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8515 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8516 rm -rf conftest*
8517 ac_cv_type_pid_t=yes
8518 else
8519 rm -rf conftest*
8520 ac_cv_type_pid_t=no
8521 fi
8522 rm -f conftest*
8523
8524 fi
8525 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
8526 if test $ac_cv_type_pid_t = no; then
8527 cat >> confdefs.h <<\EOF
8528 #define pid_t int
8529 EOF
8530
8531 fi
8532
8533 echo $ac_n "checking for size_t""... $ac_c" 1>&6
8534 echo "configure:8535: checking for size_t" >&5
8535 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
8536 echo $ac_n "(cached) $ac_c" 1>&6
8537 else
8538 cat > conftest.$ac_ext <<EOF
8539 #line 8540 "configure"
8540 #include "confdefs.h"
8541 #include <sys/types.h>
8542 #if STDC_HEADERS
8543 #include <stdlib.h>
8544 #include <stddef.h>
8545 #endif
8546 EOF
8547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8548 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8549 rm -rf conftest*
8550 ac_cv_type_size_t=yes
8551 else
8552 rm -rf conftest*
8553 ac_cv_type_size_t=no
8554 fi
8555 rm -f conftest*
8556
8557 fi
8558 echo "$ac_t""$ac_cv_type_size_t" 1>&6
8559 if test $ac_cv_type_size_t = no; then
8560 cat >> confdefs.h <<\EOF
8561 #define size_t unsigned
8562 EOF
8563
8564 fi
8565
8566 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
8567 echo "configure:8568: checking for uid_t in sys/types.h" >&5
8568 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
8569 echo $ac_n "(cached) $ac_c" 1>&6
8570 else
8571 cat > conftest.$ac_ext <<EOF
8572 #line 8573 "configure"
8573 #include "confdefs.h"
8574 #include <sys/types.h>
8575 EOF
8576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8577 egrep "uid_t" >/dev/null 2>&1; then
8578 rm -rf conftest*
8579 ac_cv_type_uid_t=yes
8580 else
8581 rm -rf conftest*
8582 ac_cv_type_uid_t=no
8583 fi
8584 rm -f conftest*
8585
8586 fi
8587
8588 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
8589 if test $ac_cv_type_uid_t = no; then
8590 cat >> confdefs.h <<\EOF
8591 #define uid_t int
8592 EOF
8593
8594 cat >> confdefs.h <<\EOF
8595 #define gid_t int
8596 EOF
8597
8598 fi
8599
8600
8601
8602
8603 echo $ac_n "checking for working const""... $ac_c" 1>&6
8604 echo "configure:8605: checking for working const" >&5
8605 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
8606 echo $ac_n "(cached) $ac_c" 1>&6
8607 else
8608 cat > conftest.$ac_ext <<EOF
8609 #line 8610 "configure"
8610 #include "confdefs.h"
8611
8612 int main() {
8613
8614 /* Ultrix mips cc rejects this. */
8615 typedef int charset[2]; const charset x;
8616 /* SunOS 4.1.1 cc rejects this. */
8617 char const *const *ccp;
8618 char **p;
8619 /* NEC SVR4.0.2 mips cc rejects this. */
8620 struct point {int x, y;};
8621 static struct point const zero = {0,0};
8622 /* AIX XL C 1.02.0.0 rejects this.
8623 It does not let you subtract one const X* pointer from another in an arm
8624 of an if-expression whose if-part is not a constant expression */
8625 const char *g = "string";
8626 ccp = &g + (g ? g-g : 0);
8627 /* HPUX 7.0 cc rejects these. */
8628 ++ccp;
8629 p = (char**) ccp;
8630 ccp = (char const *const *) p;
8631 { /* SCO 3.2v4 cc rejects this. */
8632 char *t;
8633 char const *s = 0 ? (char *) 0 : (char const *) 0;
8634
8635 *t++ = 0;
8636 }
8637 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8638 int x[] = {25, 17};
8639 const int *foo = &x[0];
8640 ++foo;
8641 }
8642 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8643 typedef const int *iptr;
8644 iptr p = 0;
8645 ++p;
8646 }
8647 { /* AIX XL C 1.02.0.0 rejects this saying
8648 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8649 struct s { int j; const int *ap[3]; };
8650 struct s *b; b->j = 5;
8651 }
8652 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8653 const int foo = 10;
8654 }
8655
8656 ; return 0; }
8657 EOF
8658 if { (eval echo configure:8659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8659 rm -rf conftest*
8660 ac_cv_c_const=yes
8661 else
8662 echo "configure: failed program was:" >&5
8663 cat conftest.$ac_ext >&5
8664 rm -rf conftest*
8665 ac_cv_c_const=no
8666 fi
8667 rm -f conftest*
8668 fi
8669
8670 echo "$ac_t""$ac_cv_c_const" 1>&6
8671 if test $ac_cv_c_const = no; then
8672 cat >> confdefs.h <<\EOF
8673 #define const
8674 EOF
8675
8676 fi
8677
8678 echo $ac_n "checking for inline""... $ac_c" 1>&6
8679 echo "configure:8680: checking for inline" >&5
8680 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
8681 echo $ac_n "(cached) $ac_c" 1>&6
8682 else
8683 ac_cv_c_inline=no
8684 for ac_kw in inline __inline__ __inline; do
8685 cat > conftest.$ac_ext <<EOF
8686 #line 8687 "configure"
8687 #include "confdefs.h"
8688
8689 int main() {
8690 } $ac_kw foo() {
8691 ; return 0; }
8692 EOF
8693 if { (eval echo configure:8694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8694 rm -rf conftest*
8695 ac_cv_c_inline=$ac_kw; break
8696 else
8697 echo "configure: failed program was:" >&5
8698 cat conftest.$ac_ext >&5
8699 fi
8700 rm -f conftest*
8701 done
8702
8703 fi
8704
8705 echo "$ac_t""$ac_cv_c_inline" 1>&6
8706 case "$ac_cv_c_inline" in
8707 inline | yes) ;;
8708 no) cat >> confdefs.h <<\EOF
8709 #define inline
8710 EOF
8711 ;;
8712 *) cat >> confdefs.h <<EOF
8713 #define inline $ac_cv_c_inline
8714 EOF
8715 ;;
8716 esac
8717
8718
8719 echo $ac_n "checking size of char""... $ac_c" 1>&6
8720 echo "configure:8721: checking size of char" >&5
8721 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
8722 echo $ac_n "(cached) $ac_c" 1>&6
8723 else
8724 if test "$cross_compiling" = yes; then
8725 ac_cv_sizeof_char=1
8726 else
8727 cat > conftest.$ac_ext <<EOF
8728 #line 8729 "configure"
8729 #include "confdefs.h"
8730 #include <stdio.h>
8731 main()
8732 {
8733 FILE *f=fopen("conftestval", "w");
8734 if (!f) exit(1);
8735 fprintf(f, "%d\n", sizeof(char));
8736 exit(0);
8737 }
8738 EOF
8739 if { (eval echo configure:8740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8740 then
8741 ac_cv_sizeof_char=`cat conftestval`
8742 else
8743 echo "configure: failed program was:" >&5
8744 cat conftest.$ac_ext >&5
8745 rm -fr conftest*
8746 ac_cv_sizeof_char=0
8747 fi
8748 rm -fr conftest*
8749 fi
8750
8751 fi
8752 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
8753 cat >> confdefs.h <<EOF
8754 #define SIZEOF_CHAR $ac_cv_sizeof_char
8755 EOF
8756
8757
8758 echo $ac_n "checking size of short""... $ac_c" 1>&6
8759 echo "configure:8760: checking size of short" >&5
8760 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
8761 echo $ac_n "(cached) $ac_c" 1>&6
8762 else
8763 if test "$cross_compiling" = yes; then
8764 ac_cv_sizeof_short=2
8765 else
8766 cat > conftest.$ac_ext <<EOF
8767 #line 8768 "configure"
8768 #include "confdefs.h"
8769 #include <stdio.h>
8770 main()
8771 {
8772 FILE *f=fopen("conftestval", "w");
8773 if (!f) exit(1);
8774 fprintf(f, "%d\n", sizeof(short));
8775 exit(0);
8776 }
8777 EOF
8778 if { (eval echo configure:8779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8779 then
8780 ac_cv_sizeof_short=`cat conftestval`
8781 else
8782 echo "configure: failed program was:" >&5
8783 cat conftest.$ac_ext >&5
8784 rm -fr conftest*
8785 ac_cv_sizeof_short=0
8786 fi
8787 rm -fr conftest*
8788 fi
8789
8790 fi
8791 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
8792 cat >> confdefs.h <<EOF
8793 #define SIZEOF_SHORT $ac_cv_sizeof_short
8794 EOF
8795
8796
8797 echo $ac_n "checking size of int *""... $ac_c" 1>&6
8798 echo "configure:8799: checking size of int *" >&5
8799 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
8800 echo $ac_n "(cached) $ac_c" 1>&6
8801 else
8802 if test "$cross_compiling" = yes; then
8803 ac_cv_sizeof_int_p=4
8804 else
8805 cat > conftest.$ac_ext <<EOF
8806 #line 8807 "configure"
8807 #include "confdefs.h"
8808 #include <stdio.h>
8809 main()
8810 {
8811 FILE *f=fopen("conftestval", "w");
8812 if (!f) exit(1);
8813 fprintf(f, "%d\n", sizeof(int *));
8814 exit(0);
8815 }
8816 EOF
8817 if { (eval echo configure:8818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8818 then
8819 ac_cv_sizeof_int_p=`cat conftestval`
8820 else
8821 echo "configure: failed program was:" >&5
8822 cat conftest.$ac_ext >&5
8823 rm -fr conftest*
8824 ac_cv_sizeof_int_p=0
8825 fi
8826 rm -fr conftest*
8827 fi
8828
8829 fi
8830 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
8831 cat >> confdefs.h <<EOF
8832 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
8833 EOF
8834
8835
8836 echo $ac_n "checking size of int""... $ac_c" 1>&6
8837 echo "configure:8838: checking size of int" >&5
8838 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
8839 echo $ac_n "(cached) $ac_c" 1>&6
8840 else
8841 if test "$cross_compiling" = yes; then
8842 ac_cv_sizeof_int=4
8843 else
8844 cat > conftest.$ac_ext <<EOF
8845 #line 8846 "configure"
8846 #include "confdefs.h"
8847 #include <stdio.h>
8848 main()
8849 {
8850 FILE *f=fopen("conftestval", "w");
8851 if (!f) exit(1);
8852 fprintf(f, "%d\n", sizeof(int));
8853 exit(0);
8854 }
8855 EOF
8856 if { (eval echo configure:8857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8857 then
8858 ac_cv_sizeof_int=`cat conftestval`
8859 else
8860 echo "configure: failed program was:" >&5
8861 cat conftest.$ac_ext >&5
8862 rm -fr conftest*
8863 ac_cv_sizeof_int=0
8864 fi
8865 rm -fr conftest*
8866 fi
8867
8868 fi
8869 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
8870 cat >> confdefs.h <<EOF
8871 #define SIZEOF_INT $ac_cv_sizeof_int
8872 EOF
8873
8874
8875 echo $ac_n "checking size of long""... $ac_c" 1>&6
8876 echo "configure:8877: checking size of long" >&5
8877 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
8878 echo $ac_n "(cached) $ac_c" 1>&6
8879 else
8880 if test "$cross_compiling" = yes; then
8881 ac_cv_sizeof_long=4
8882 else
8883 cat > conftest.$ac_ext <<EOF
8884 #line 8885 "configure"
8885 #include "confdefs.h"
8886 #include <stdio.h>
8887 main()
8888 {
8889 FILE *f=fopen("conftestval", "w");
8890 if (!f) exit(1);
8891 fprintf(f, "%d\n", sizeof(long));
8892 exit(0);
8893 }
8894 EOF
8895 if { (eval echo configure:8896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8896 then
8897 ac_cv_sizeof_long=`cat conftestval`
8898 else
8899 echo "configure: failed program was:" >&5
8900 cat conftest.$ac_ext >&5
8901 rm -fr conftest*
8902 ac_cv_sizeof_long=0
8903 fi
8904 rm -fr conftest*
8905 fi
8906
8907 fi
8908 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
8909 cat >> confdefs.h <<EOF
8910 #define SIZEOF_LONG $ac_cv_sizeof_long
8911 EOF
8912
8913
8914 echo $ac_n "checking size of long long""... $ac_c" 1>&6
8915 echo "configure:8916: checking size of long long" >&5
8916 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
8917 echo $ac_n "(cached) $ac_c" 1>&6
8918 else
8919 if test "$cross_compiling" = yes; then
8920 ac_cv_sizeof_long_long=0
8921 else
8922 cat > conftest.$ac_ext <<EOF
8923 #line 8924 "configure"
8924 #include "confdefs.h"
8925 #include <stdio.h>
8926 main()
8927 {
8928 FILE *f=fopen("conftestval", "w");
8929 if (!f) exit(1);
8930 fprintf(f, "%d\n", sizeof(long long));
8931 exit(0);
8932 }
8933 EOF
8934 if { (eval echo configure:8935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8935 then
8936 ac_cv_sizeof_long_long=`cat conftestval`
8937 else
8938 echo "configure: failed program was:" >&5
8939 cat conftest.$ac_ext >&5
8940 rm -fr conftest*
8941 ac_cv_sizeof_long_long=0
8942 fi
8943 rm -fr conftest*
8944 fi
8945
8946 fi
8947 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
8948 cat >> confdefs.h <<EOF
8949 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8950 EOF
8951
8952
8953
8954 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
8955 echo "configure:8956: checking whether byte ordering is bigendian" >&5
8956 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8957 echo $ac_n "(cached) $ac_c" 1>&6
8958 else
8959 ac_cv_c_bigendian=unknown
8960 # See if sys/param.h defines the BYTE_ORDER macro.
8961 cat > conftest.$ac_ext <<EOF
8962 #line 8963 "configure"
8963 #include "confdefs.h"
8964 #include <sys/types.h>
8965 #include <sys/param.h>
8966 int main() {
8967
8968 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8969 bogus endian macros
8970 #endif
8971 ; return 0; }
8972 EOF
8973 if { (eval echo configure:8974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8974 rm -rf conftest*
8975 # It does; now see whether it defined to BIG_ENDIAN or not.
8976 cat > conftest.$ac_ext <<EOF
8977 #line 8978 "configure"
8978 #include "confdefs.h"
8979 #include <sys/types.h>
8980 #include <sys/param.h>
8981 int main() {
8982
8983 #if BYTE_ORDER != BIG_ENDIAN
8984 not big endian
8985 #endif
8986 ; return 0; }
8987 EOF
8988 if { (eval echo configure:8989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8989 rm -rf conftest*
8990 ac_cv_c_bigendian=yes
8991 else
8992 echo "configure: failed program was:" >&5
8993 cat conftest.$ac_ext >&5
8994 rm -rf conftest*
8995 ac_cv_c_bigendian=no
8996 fi
8997 rm -f conftest*
8998 else
8999 echo "configure: failed program was:" >&5
9000 cat conftest.$ac_ext >&5
9001 fi
9002 rm -f conftest*
9003 if test $ac_cv_c_bigendian = unknown; then
9004 if test "$cross_compiling" = yes; then
9005 ac_cv_c_bigendian=unknown
9006 else
9007 cat > conftest.$ac_ext <<EOF
9008 #line 9009 "configure"
9009 #include "confdefs.h"
9010 main () {
9011 /* Are we little or big endian? From Harbison&Steele. */
9012 union
9013 {
9014 long l;
9015 char c[sizeof (long)];
9016 } u;
9017 u.l = 1;
9018 exit (u.c[sizeof (long) - 1] == 1);
9019 }
9020 EOF
9021 if { (eval echo configure:9022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9022 then
9023 ac_cv_c_bigendian=no
9024 else
9025 echo "configure: failed program was:" >&5
9026 cat conftest.$ac_ext >&5
9027 rm -fr conftest*
9028 ac_cv_c_bigendian=yes
9029 fi
9030 rm -fr conftest*
9031 fi
9032
9033 fi
9034 fi
9035
9036 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9037 if test $ac_cv_c_bigendian = unknown; then
9038 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
9039 fi
9040 if test $ac_cv_c_bigendian = yes; then
9041 cat >> confdefs.h <<\EOF
9042 #define WORDS_BIGENDIAN 1
9043 EOF
9044
9045 fi
9046
9047
9048
9049 if test "$cross_compiling" = "yes"; then
9050 cat >> confdefs.h <<\EOF
9051 #define wxUSE_IOSTREAMH 1
9052 EOF
9053
9054 else
9055
9056 ac_ext=C
9057 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9058 ac_cpp='$CXXCPP $CPPFLAGS'
9059 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9060 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9061 cross_compiling=$ac_cv_prog_cxx_cross
9062
9063
9064 for ac_hdr in iostream
9065 do
9066 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9067 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9068 echo "configure:9069: checking for $ac_hdr" >&5
9069 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9070 echo $ac_n "(cached) $ac_c" 1>&6
9071 else
9072 cat > conftest.$ac_ext <<EOF
9073 #line 9074 "configure"
9074 #include "confdefs.h"
9075 #include <$ac_hdr>
9076 EOF
9077 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9078 { (eval echo configure:9079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9079 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9080 if test -z "$ac_err"; then
9081 rm -rf conftest*
9082 eval "ac_cv_header_$ac_safe=yes"
9083 else
9084 echo "$ac_err" >&5
9085 echo "configure: failed program was:" >&5
9086 cat conftest.$ac_ext >&5
9087 rm -rf conftest*
9088 eval "ac_cv_header_$ac_safe=no"
9089 fi
9090 rm -f conftest*
9091 fi
9092 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9093 echo "$ac_t""yes" 1>&6
9094 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9095 cat >> confdefs.h <<EOF
9096 #define $ac_tr_hdr 1
9097 EOF
9098
9099 else
9100 echo "$ac_t""no" 1>&6
9101 fi
9102 done
9103
9104
9105 if test "x$HAVE_IOSTREAM" = x ; then
9106 cat >> confdefs.h <<\EOF
9107 #define wxUSE_IOSTREAMH 1
9108 EOF
9109
9110 else
9111 :
9112 fi
9113
9114 ac_ext=c
9115 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9116 ac_cpp='$CPP $CPPFLAGS'
9117 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9118 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9119 cross_compiling=$ac_cv_prog_cc_cross
9120
9121 fi
9122
9123
9124
9125 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
9126 echo "configure:9127: checking if C++ compiler supports bool" >&5
9127 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
9128 echo $ac_n "(cached) $ac_c" 1>&6
9129 else
9130
9131
9132 ac_ext=C
9133 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9134 ac_cpp='$CXXCPP $CPPFLAGS'
9135 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9136 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9137 cross_compiling=$ac_cv_prog_cxx_cross
9138
9139
9140 cat > conftest.$ac_ext <<EOF
9141 #line 9142 "configure"
9142 #include "confdefs.h"
9143
9144
9145 int main() {
9146
9147 bool b = true;
9148
9149 return 0;
9150
9151 ; return 0; }
9152 EOF
9153 if { (eval echo configure:9154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9154 rm -rf conftest*
9155
9156 cat >> confdefs.h <<\EOF
9157 #define HAVE_BOOL 1
9158 EOF
9159
9160 wx_cv_cpp_bool=yes
9161
9162 else
9163 echo "configure: failed program was:" >&5
9164 cat conftest.$ac_ext >&5
9165 rm -rf conftest*
9166
9167 wx_cv_cpp_bool=no
9168
9169
9170 fi
9171 rm -f conftest*
9172
9173 ac_ext=c
9174 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9175 ac_cpp='$CPP $CPPFLAGS'
9176 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9177 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9178 cross_compiling=$ac_cv_prog_cc_cross
9179
9180
9181 fi
9182
9183 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
9184
9185 if test "$wx_cv_cpp_bool" = "yes"; then
9186 cat >> confdefs.h <<\EOF
9187 #define HAVE_BOOL 1
9188 EOF
9189
9190 fi
9191
9192
9193
9194 echo $ac_n "checking if size_t and int are different types""... $ac_c" 1>&6
9195 echo "configure:9196: checking if size_t and int are different types" >&5
9196 if eval "test \"`echo '$''{'wx_cv_cpp_sizet_not_int'+set}'`\" = set"; then
9197 echo $ac_n "(cached) $ac_c" 1>&6
9198 else
9199
9200
9201 ac_ext=C
9202 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9203 ac_cpp='$CXXCPP $CPPFLAGS'
9204 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9205 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9206 cross_compiling=$ac_cv_prog_cxx_cross
9207
9208
9209 if test "$cross_compiling" = yes; then
9210 wx_cv_cpp_sizet_not_int=no
9211
9212 else
9213 cat > conftest.$ac_ext <<EOF
9214 #line 9215 "configure"
9215 #include "confdefs.h"
9216 #ifdef __cplusplus
9217 extern "C" void exit(int);
9218 #endif
9219
9220 #include <stdlib.h>
9221
9222 class S
9223 {
9224 public:
9225 S(char *s) { m_s = s; }
9226
9227 char operator[](size_t n) const { return m_s[n]; }
9228 char operator[](int n) const { return m_s[n]; }
9229
9230 private:
9231 char *m_s;
9232 };
9233
9234 int main()
9235 {
9236 S s("dummy");
9237 size_t n1 = 2;
9238 int n2 = 3;
9239
9240 return s[n1] == s[n2];
9241 }
9242
9243 EOF
9244 if { (eval echo configure:9245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9245 then
9246 cat >> confdefs.h <<\EOF
9247 #define wxUSE_SIZE_T_STRING_OPERATOR 1
9248 EOF
9249 wx_cv_cpp_sizet_not_int=yes
9250 else
9251 echo "configure: failed program was:" >&5
9252 cat conftest.$ac_ext >&5
9253 rm -fr conftest*
9254 wx_cv_cpp_sizet_not_int=no
9255 fi
9256 rm -fr conftest*
9257 fi
9258
9259
9260 ac_ext=c
9261 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9262 ac_cpp='$CPP $CPPFLAGS'
9263 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9264 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9265 cross_compiling=$ac_cv_prog_cc_cross
9266
9267
9268 fi
9269
9270 echo "$ac_t""$wx_cv_cpp_sizet_not_int" 1>&6
9271
9272
9273
9274 echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
9275 echo "configure:9276: checking if you need GNU extensions" >&5
9276 if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
9277 echo $ac_n "(cached) $ac_c" 1>&6
9278 else
9279
9280 cat > conftest.$ac_ext <<EOF
9281 #line 9282 "configure"
9282 #include "confdefs.h"
9283 #include <features.h>
9284 int main() {
9285
9286
9287 #ifndef __GNU_LIBRARY__
9288 Compile error wanted
9289 #endif
9290
9291
9292 ; return 0; }
9293 EOF
9294 if { (eval echo configure:9295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9295 rm -rf conftest*
9296 wx_cv_gnu_extensions=yes
9297 else
9298 echo "configure: failed program was:" >&5
9299 cat conftest.$ac_ext >&5
9300 rm -rf conftest*
9301 wx_cv_gnu_extensions=no
9302 fi
9303 rm -f conftest*
9304
9305 fi
9306
9307
9308 echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
9309 if test "$wx_cv_gnu_extensions" = "yes"; then
9310 cat >> confdefs.h <<EOF
9311 #define _GNU_SOURCE 1
9312 EOF
9313
9314 fi
9315
9316
9317
9318 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
9319 echo "configure:9320: checking for wcslen in -lc" >&5
9320 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
9321 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9322 echo $ac_n "(cached) $ac_c" 1>&6
9323 else
9324 ac_save_LIBS="$LIBS"
9325 LIBS="-lc $LIBS"
9326 cat > conftest.$ac_ext <<EOF
9327 #line 9328 "configure"
9328 #include "confdefs.h"
9329 /* Override any gcc2 internal prototype to avoid an error. */
9330 /* We use char because int might match the return type of a gcc2
9331 builtin and then its argument prototype would still apply. */
9332 char wcslen();
9333
9334 int main() {
9335 wcslen()
9336 ; return 0; }
9337 EOF
9338 if { (eval echo configure:9339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9339 rm -rf conftest*
9340 eval "ac_cv_lib_$ac_lib_var=yes"
9341 else
9342 echo "configure: failed program was:" >&5
9343 cat conftest.$ac_ext >&5
9344 rm -rf conftest*
9345 eval "ac_cv_lib_$ac_lib_var=no"
9346 fi
9347 rm -f conftest*
9348 LIBS="$ac_save_LIBS"
9349
9350 fi
9351 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9352 echo "$ac_t""yes" 1>&6
9353
9354 cat >> confdefs.h <<\EOF
9355 #define HAVE_WCSLEN 1
9356 EOF
9357
9358 WCHAR_LINK=""
9359
9360 else
9361 echo "$ac_t""no" 1>&6
9362
9363 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
9364 echo "configure:9365: checking for wcslen in -lw" >&5
9365 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
9366 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9367 echo $ac_n "(cached) $ac_c" 1>&6
9368 else
9369 ac_save_LIBS="$LIBS"
9370 LIBS="-lw $LIBS"
9371 cat > conftest.$ac_ext <<EOF
9372 #line 9373 "configure"
9373 #include "confdefs.h"
9374 /* Override any gcc2 internal prototype to avoid an error. */
9375 /* We use char because int might match the return type of a gcc2
9376 builtin and then its argument prototype would still apply. */
9377 char wcslen();
9378
9379 int main() {
9380 wcslen()
9381 ; return 0; }
9382 EOF
9383 if { (eval echo configure:9384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9384 rm -rf conftest*
9385 eval "ac_cv_lib_$ac_lib_var=yes"
9386 else
9387 echo "configure: failed program was:" >&5
9388 cat conftest.$ac_ext >&5
9389 rm -rf conftest*
9390 eval "ac_cv_lib_$ac_lib_var=no"
9391 fi
9392 rm -f conftest*
9393 LIBS="$ac_save_LIBS"
9394
9395 fi
9396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9397 echo "$ac_t""yes" 1>&6
9398
9399 cat >> confdefs.h <<\EOF
9400 #define HAVE_WCSLEN 1
9401 EOF
9402
9403 WCHAR_LINK="-lw"
9404
9405 else
9406 echo "$ac_t""no" 1>&6
9407 fi
9408
9409
9410 fi
9411
9412
9413 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
9414 echo "configure:9415: checking for vprintf" >&5
9415 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9416 echo $ac_n "(cached) $ac_c" 1>&6
9417 else
9418 cat > conftest.$ac_ext <<EOF
9419 #line 9420 "configure"
9420 #include "confdefs.h"
9421 /* System header to define __stub macros and hopefully few prototypes,
9422 which can conflict with char vprintf(); below. */
9423 #include <assert.h>
9424 /* Override any gcc2 internal prototype to avoid an error. */
9425 /* We use char because int might match the return type of a gcc2
9426 builtin and then its argument prototype would still apply. */
9427 char vprintf();
9428
9429 int main() {
9430
9431 /* The GNU C library defines this for functions which it implements
9432 to always fail with ENOSYS. Some functions are actually named
9433 something starting with __ and the normal name is an alias. */
9434 #if defined (__stub_vprintf) || defined (__stub___vprintf)
9435 choke me
9436 #else
9437 vprintf();
9438 #endif
9439
9440 ; return 0; }
9441 EOF
9442 if { (eval echo configure:9443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9443 rm -rf conftest*
9444 eval "ac_cv_func_vprintf=yes"
9445 else
9446 echo "configure: failed program was:" >&5
9447 cat conftest.$ac_ext >&5
9448 rm -rf conftest*
9449 eval "ac_cv_func_vprintf=no"
9450 fi
9451 rm -f conftest*
9452 fi
9453
9454 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9455 echo "$ac_t""yes" 1>&6
9456 cat >> confdefs.h <<\EOF
9457 #define HAVE_VPRINTF 1
9458 EOF
9459
9460 else
9461 echo "$ac_t""no" 1>&6
9462 fi
9463
9464 if test "$ac_cv_func_vprintf" != yes; then
9465 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
9466 echo "configure:9467: checking for _doprnt" >&5
9467 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
9468 echo $ac_n "(cached) $ac_c" 1>&6
9469 else
9470 cat > conftest.$ac_ext <<EOF
9471 #line 9472 "configure"
9472 #include "confdefs.h"
9473 /* System header to define __stub macros and hopefully few prototypes,
9474 which can conflict with char _doprnt(); below. */
9475 #include <assert.h>
9476 /* Override any gcc2 internal prototype to avoid an error. */
9477 /* We use char because int might match the return type of a gcc2
9478 builtin and then its argument prototype would still apply. */
9479 char _doprnt();
9480
9481 int main() {
9482
9483 /* The GNU C library defines this for functions which it implements
9484 to always fail with ENOSYS. Some functions are actually named
9485 something starting with __ and the normal name is an alias. */
9486 #if defined (__stub__doprnt) || defined (__stub____doprnt)
9487 choke me
9488 #else
9489 _doprnt();
9490 #endif
9491
9492 ; return 0; }
9493 EOF
9494 if { (eval echo configure:9495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9495 rm -rf conftest*
9496 eval "ac_cv_func__doprnt=yes"
9497 else
9498 echo "configure: failed program was:" >&5
9499 cat conftest.$ac_ext >&5
9500 rm -rf conftest*
9501 eval "ac_cv_func__doprnt=no"
9502 fi
9503 rm -f conftest*
9504 fi
9505
9506 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
9507 echo "$ac_t""yes" 1>&6
9508 cat >> confdefs.h <<\EOF
9509 #define HAVE_DOPRNT 1
9510 EOF
9511
9512 else
9513 echo "$ac_t""no" 1>&6
9514 fi
9515
9516 fi
9517
9518
9519 for ac_func in vsnprintf
9520 do
9521 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9522 echo "configure:9523: checking for $ac_func" >&5
9523 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9524 echo $ac_n "(cached) $ac_c" 1>&6
9525 else
9526 cat > conftest.$ac_ext <<EOF
9527 #line 9528 "configure"
9528 #include "confdefs.h"
9529 /* System header to define __stub macros and hopefully few prototypes,
9530 which can conflict with char $ac_func(); below. */
9531 #include <assert.h>
9532 /* Override any gcc2 internal prototype to avoid an error. */
9533 /* We use char because int might match the return type of a gcc2
9534 builtin and then its argument prototype would still apply. */
9535 char $ac_func();
9536
9537 int main() {
9538
9539 /* The GNU C library defines this for functions which it implements
9540 to always fail with ENOSYS. Some functions are actually named
9541 something starting with __ and the normal name is an alias. */
9542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9543 choke me
9544 #else
9545 $ac_func();
9546 #endif
9547
9548 ; return 0; }
9549 EOF
9550 if { (eval echo configure:9551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9551 rm -rf conftest*
9552 eval "ac_cv_func_$ac_func=yes"
9553 else
9554 echo "configure: failed program was:" >&5
9555 cat conftest.$ac_ext >&5
9556 rm -rf conftest*
9557 eval "ac_cv_func_$ac_func=no"
9558 fi
9559 rm -f conftest*
9560 fi
9561
9562 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9563 echo "$ac_t""yes" 1>&6
9564 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9565 cat >> confdefs.h <<EOF
9566 #define $ac_tr_func 1
9567 EOF
9568 cat >> confdefs.h <<\EOF
9569 #define HAVE_VSNPRINTF 1
9570 EOF
9571
9572 else
9573 echo "$ac_t""no" 1>&6
9574 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9575
9576 fi
9577 done
9578
9579
9580
9581 ac_ext=C
9582 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9583 ac_cpp='$CXXCPP $CPPFLAGS'
9584 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9585 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9586 cross_compiling=$ac_cv_prog_cxx_cross
9587
9588
9589 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
9590 echo "configure:9591: checking for vsscanf" >&5
9591 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
9592 echo $ac_n "(cached) $ac_c" 1>&6
9593 else
9594
9595 if test "$cross_compiling" = yes; then
9596 wx_cv_func_vsscanf=no
9597
9598 else
9599 cat > conftest.$ac_ext <<EOF
9600 #line 9601 "configure"
9601 #include "confdefs.h"
9602 #ifdef __cplusplus
9603 extern "C" void exit(int);
9604 #endif
9605
9606 #include <stdio.h>
9607 #include <stdarg.h>
9608
9609 int try_vsscanf(const char *format, ...)
9610 {
9611 va_list ap;
9612 va_start(ap, format);
9613
9614 vsscanf("17", format, ap);
9615
9616 va_end(ap);
9617 }
9618
9619 int main()
9620 {
9621 int i;
9622 try_vsscanf("%d", &i);
9623 return i == 17 ? 0 : 1;
9624 }
9625
9626 EOF
9627 if { (eval echo configure:9628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9628 then
9629
9630 cat >> confdefs.h <<\EOF
9631 #define HAVE_VSSCANF 1
9632 EOF
9633
9634 wx_cv_func_vsscanf=yes
9635
9636 else
9637 echo "configure: failed program was:" >&5
9638 cat conftest.$ac_ext >&5
9639 rm -fr conftest*
9640 wx_cv_func_vsscanf=no
9641 fi
9642 rm -fr conftest*
9643 fi
9644
9645
9646 fi
9647
9648 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
9649
9650 ac_ext=c
9651 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9652 ac_cpp='$CPP $CPPFLAGS'
9653 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9654 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9655 cross_compiling=$ac_cv_prog_cc_cross
9656
9657
9658 if test "$USE_UNIX" = 1; then
9659
9660 for ac_func in vfork
9661 do
9662 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9663 echo "configure:9664: checking for $ac_func" >&5
9664 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9665 echo $ac_n "(cached) $ac_c" 1>&6
9666 else
9667 cat > conftest.$ac_ext <<EOF
9668 #line 9669 "configure"
9669 #include "confdefs.h"
9670 /* System header to define __stub macros and hopefully few prototypes,
9671 which can conflict with char $ac_func(); below. */
9672 #include <assert.h>
9673 /* Override any gcc2 internal prototype to avoid an error. */
9674 /* We use char because int might match the return type of a gcc2
9675 builtin and then its argument prototype would still apply. */
9676 char $ac_func();
9677
9678 int main() {
9679
9680 /* The GNU C library defines this for functions which it implements
9681 to always fail with ENOSYS. Some functions are actually named
9682 something starting with __ and the normal name is an alias. */
9683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9684 choke me
9685 #else
9686 $ac_func();
9687 #endif
9688
9689 ; return 0; }
9690 EOF
9691 if { (eval echo configure:9692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9692 rm -rf conftest*
9693 eval "ac_cv_func_$ac_func=yes"
9694 else
9695 echo "configure: failed program was:" >&5
9696 cat conftest.$ac_ext >&5
9697 rm -rf conftest*
9698 eval "ac_cv_func_$ac_func=no"
9699 fi
9700 rm -f conftest*
9701 fi
9702
9703 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9704 echo "$ac_t""yes" 1>&6
9705 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9706 cat >> confdefs.h <<EOF
9707 #define $ac_tr_func 1
9708 EOF
9709
9710 else
9711 echo "$ac_t""no" 1>&6
9712 fi
9713 done
9714
9715
9716 POSIX4_LINK=
9717 for ac_func in nanosleep
9718 do
9719 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9720 echo "configure:9721: checking for $ac_func" >&5
9721 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9722 echo $ac_n "(cached) $ac_c" 1>&6
9723 else
9724 cat > conftest.$ac_ext <<EOF
9725 #line 9726 "configure"
9726 #include "confdefs.h"
9727 /* System header to define __stub macros and hopefully few prototypes,
9728 which can conflict with char $ac_func(); below. */
9729 #include <assert.h>
9730 /* Override any gcc2 internal prototype to avoid an error. */
9731 /* We use char because int might match the return type of a gcc2
9732 builtin and then its argument prototype would still apply. */
9733 char $ac_func();
9734
9735 int main() {
9736
9737 /* The GNU C library defines this for functions which it implements
9738 to always fail with ENOSYS. Some functions are actually named
9739 something starting with __ and the normal name is an alias. */
9740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9741 choke me
9742 #else
9743 $ac_func();
9744 #endif
9745
9746 ; return 0; }
9747 EOF
9748 if { (eval echo configure:9749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9749 rm -rf conftest*
9750 eval "ac_cv_func_$ac_func=yes"
9751 else
9752 echo "configure: failed program was:" >&5
9753 cat conftest.$ac_ext >&5
9754 rm -rf conftest*
9755 eval "ac_cv_func_$ac_func=no"
9756 fi
9757 rm -f conftest*
9758 fi
9759
9760 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9761 echo "$ac_t""yes" 1>&6
9762 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9763 cat >> confdefs.h <<EOF
9764 #define $ac_tr_func 1
9765 EOF
9766 cat >> confdefs.h <<\EOF
9767 #define HAVE_NANOSLEEP 1
9768 EOF
9769
9770 else
9771 echo "$ac_t""no" 1>&6
9772 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
9773 echo "configure:9774: checking for nanosleep in -lposix4" >&5
9774 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
9775 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9776 echo $ac_n "(cached) $ac_c" 1>&6
9777 else
9778 ac_save_LIBS="$LIBS"
9779 LIBS="-lposix4 $LIBS"
9780 cat > conftest.$ac_ext <<EOF
9781 #line 9782 "configure"
9782 #include "confdefs.h"
9783 /* Override any gcc2 internal prototype to avoid an error. */
9784 /* We use char because int might match the return type of a gcc2
9785 builtin and then its argument prototype would still apply. */
9786 char nanosleep();
9787
9788 int main() {
9789 nanosleep()
9790 ; return 0; }
9791 EOF
9792 if { (eval echo configure:9793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9793 rm -rf conftest*
9794 eval "ac_cv_lib_$ac_lib_var=yes"
9795 else
9796 echo "configure: failed program was:" >&5
9797 cat conftest.$ac_ext >&5
9798 rm -rf conftest*
9799 eval "ac_cv_lib_$ac_lib_var=no"
9800 fi
9801 rm -f conftest*
9802 LIBS="$ac_save_LIBS"
9803
9804 fi
9805 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9806 echo "$ac_t""yes" 1>&6
9807
9808 cat >> confdefs.h <<\EOF
9809 #define HAVE_NANOSLEEP 1
9810 EOF
9811
9812 POSIX4_LINK="-lposix4"
9813
9814 else
9815 echo "$ac_t""no" 1>&6
9816
9817 for ac_func in usleep
9818 do
9819 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9820 echo "configure:9821: checking for $ac_func" >&5
9821 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9822 echo $ac_n "(cached) $ac_c" 1>&6
9823 else
9824 cat > conftest.$ac_ext <<EOF
9825 #line 9826 "configure"
9826 #include "confdefs.h"
9827 /* System header to define __stub macros and hopefully few prototypes,
9828 which can conflict with char $ac_func(); below. */
9829 #include <assert.h>
9830 /* Override any gcc2 internal prototype to avoid an error. */
9831 /* We use char because int might match the return type of a gcc2
9832 builtin and then its argument prototype would still apply. */
9833 char $ac_func();
9834
9835 int main() {
9836
9837 /* The GNU C library defines this for functions which it implements
9838 to always fail with ENOSYS. Some functions are actually named
9839 something starting with __ and the normal name is an alias. */
9840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9841 choke me
9842 #else
9843 $ac_func();
9844 #endif
9845
9846 ; return 0; }
9847 EOF
9848 if { (eval echo configure:9849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9849 rm -rf conftest*
9850 eval "ac_cv_func_$ac_func=yes"
9851 else
9852 echo "configure: failed program was:" >&5
9853 cat conftest.$ac_ext >&5
9854 rm -rf conftest*
9855 eval "ac_cv_func_$ac_func=no"
9856 fi
9857 rm -f conftest*
9858 fi
9859
9860 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9861 echo "$ac_t""yes" 1>&6
9862 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9863 cat >> confdefs.h <<EOF
9864 #define $ac_tr_func 1
9865 EOF
9866 cat >> confdefs.h <<\EOF
9867 #define HAVE_USLEEP 1
9868 EOF
9869
9870 else
9871 echo "$ac_t""no" 1>&6
9872 echo "configure: warning: wxSleep() function will not work" 1>&2
9873 fi
9874 done
9875
9876
9877 fi
9878
9879
9880 fi
9881 done
9882
9883
9884 for ac_func in uname gethostname
9885 do
9886 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9887 echo "configure:9888: checking for $ac_func" >&5
9888 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9889 echo $ac_n "(cached) $ac_c" 1>&6
9890 else
9891 cat > conftest.$ac_ext <<EOF
9892 #line 9893 "configure"
9893 #include "confdefs.h"
9894 /* System header to define __stub macros and hopefully few prototypes,
9895 which can conflict with char $ac_func(); below. */
9896 #include <assert.h>
9897 /* Override any gcc2 internal prototype to avoid an error. */
9898 /* We use char because int might match the return type of a gcc2
9899 builtin and then its argument prototype would still apply. */
9900 char $ac_func();
9901
9902 int main() {
9903
9904 /* The GNU C library defines this for functions which it implements
9905 to always fail with ENOSYS. Some functions are actually named
9906 something starting with __ and the normal name is an alias. */
9907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9908 choke me
9909 #else
9910 $ac_func();
9911 #endif
9912
9913 ; return 0; }
9914 EOF
9915 if { (eval echo configure:9916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9916 rm -rf conftest*
9917 eval "ac_cv_func_$ac_func=yes"
9918 else
9919 echo "configure: failed program was:" >&5
9920 cat conftest.$ac_ext >&5
9921 rm -rf conftest*
9922 eval "ac_cv_func_$ac_func=no"
9923 fi
9924 rm -f conftest*
9925 fi
9926
9927 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9928 echo "$ac_t""yes" 1>&6
9929 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9930 cat >> confdefs.h <<EOF
9931 #define $ac_tr_func 1
9932 EOF
9933 break
9934 else
9935 echo "$ac_t""no" 1>&6
9936 fi
9937 done
9938
9939
9940 for ac_func in strtok_r
9941 do
9942 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9943 echo "configure:9944: checking for $ac_func" >&5
9944 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9945 echo $ac_n "(cached) $ac_c" 1>&6
9946 else
9947 cat > conftest.$ac_ext <<EOF
9948 #line 9949 "configure"
9949 #include "confdefs.h"
9950 /* System header to define __stub macros and hopefully few prototypes,
9951 which can conflict with char $ac_func(); below. */
9952 #include <assert.h>
9953 /* Override any gcc2 internal prototype to avoid an error. */
9954 /* We use char because int might match the return type of a gcc2
9955 builtin and then its argument prototype would still apply. */
9956 char $ac_func();
9957
9958 int main() {
9959
9960 /* The GNU C library defines this for functions which it implements
9961 to always fail with ENOSYS. Some functions are actually named
9962 something starting with __ and the normal name is an alias. */
9963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9964 choke me
9965 #else
9966 $ac_func();
9967 #endif
9968
9969 ; return 0; }
9970 EOF
9971 if { (eval echo configure:9972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9972 rm -rf conftest*
9973 eval "ac_cv_func_$ac_func=yes"
9974 else
9975 echo "configure: failed program was:" >&5
9976 cat conftest.$ac_ext >&5
9977 rm -rf conftest*
9978 eval "ac_cv_func_$ac_func=no"
9979 fi
9980 rm -f conftest*
9981 fi
9982
9983 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9984 echo "$ac_t""yes" 1>&6
9985 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9986 cat >> confdefs.h <<EOF
9987 #define $ac_tr_func 1
9988 EOF
9989
9990 else
9991 echo "$ac_t""no" 1>&6
9992 fi
9993 done
9994
9995
9996 for ac_func in inet_addr
9997 do
9998 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9999 echo "configure:10000: checking for $ac_func" >&5
10000 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10001 echo $ac_n "(cached) $ac_c" 1>&6
10002 else
10003 cat > conftest.$ac_ext <<EOF
10004 #line 10005 "configure"
10005 #include "confdefs.h"
10006 /* System header to define __stub macros and hopefully few prototypes,
10007 which can conflict with char $ac_func(); below. */
10008 #include <assert.h>
10009 /* Override any gcc2 internal prototype to avoid an error. */
10010 /* We use char because int might match the return type of a gcc2
10011 builtin and then its argument prototype would still apply. */
10012 char $ac_func();
10013
10014 int main() {
10015
10016 /* The GNU C library defines this for functions which it implements
10017 to always fail with ENOSYS. Some functions are actually named
10018 something starting with __ and the normal name is an alias. */
10019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10020 choke me
10021 #else
10022 $ac_func();
10023 #endif
10024
10025 ; return 0; }
10026 EOF
10027 if { (eval echo configure:10028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10028 rm -rf conftest*
10029 eval "ac_cv_func_$ac_func=yes"
10030 else
10031 echo "configure: failed program was:" >&5
10032 cat conftest.$ac_ext >&5
10033 rm -rf conftest*
10034 eval "ac_cv_func_$ac_func=no"
10035 fi
10036 rm -f conftest*
10037 fi
10038
10039 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10040 echo "$ac_t""yes" 1>&6
10041 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10042 cat >> confdefs.h <<EOF
10043 #define $ac_tr_func 1
10044 EOF
10045
10046 else
10047 echo "$ac_t""no" 1>&6
10048 fi
10049 done
10050
10051 for ac_func in inet_aton
10052 do
10053 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10054 echo "configure:10055: checking for $ac_func" >&5
10055 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10056 echo $ac_n "(cached) $ac_c" 1>&6
10057 else
10058 cat > conftest.$ac_ext <<EOF
10059 #line 10060 "configure"
10060 #include "confdefs.h"
10061 /* System header to define __stub macros and hopefully few prototypes,
10062 which can conflict with char $ac_func(); below. */
10063 #include <assert.h>
10064 /* Override any gcc2 internal prototype to avoid an error. */
10065 /* We use char because int might match the return type of a gcc2
10066 builtin and then its argument prototype would still apply. */
10067 char $ac_func();
10068
10069 int main() {
10070
10071 /* The GNU C library defines this for functions which it implements
10072 to always fail with ENOSYS. Some functions are actually named
10073 something starting with __ and the normal name is an alias. */
10074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10075 choke me
10076 #else
10077 $ac_func();
10078 #endif
10079
10080 ; return 0; }
10081 EOF
10082 if { (eval echo configure:10083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10083 rm -rf conftest*
10084 eval "ac_cv_func_$ac_func=yes"
10085 else
10086 echo "configure: failed program was:" >&5
10087 cat conftest.$ac_ext >&5
10088 rm -rf conftest*
10089 eval "ac_cv_func_$ac_func=no"
10090 fi
10091 rm -f conftest*
10092 fi
10093
10094 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10095 echo "$ac_t""yes" 1>&6
10096 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10097 cat >> confdefs.h <<EOF
10098 #define $ac_tr_func 1
10099 EOF
10100
10101 else
10102 echo "$ac_t""no" 1>&6
10103 fi
10104 done
10105
10106 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
10107 echo "configure:10108: checking for inet_aton in -lresolv" >&5
10108 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
10109 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10110 echo $ac_n "(cached) $ac_c" 1>&6
10111 else
10112 ac_save_LIBS="$LIBS"
10113 LIBS="-lresolv $LIBS"
10114 cat > conftest.$ac_ext <<EOF
10115 #line 10116 "configure"
10116 #include "confdefs.h"
10117 /* Override any gcc2 internal prototype to avoid an error. */
10118 /* We use char because int might match the return type of a gcc2
10119 builtin and then its argument prototype would still apply. */
10120 char inet_aton();
10121
10122 int main() {
10123 inet_aton()
10124 ; return 0; }
10125 EOF
10126 if { (eval echo configure:10127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10127 rm -rf conftest*
10128 eval "ac_cv_lib_$ac_lib_var=yes"
10129 else
10130 echo "configure: failed program was:" >&5
10131 cat conftest.$ac_ext >&5
10132 rm -rf conftest*
10133 eval "ac_cv_lib_$ac_lib_var=no"
10134 fi
10135 rm -f conftest*
10136 LIBS="$ac_save_LIBS"
10137
10138 fi
10139 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10140 echo "$ac_t""yes" 1>&6
10141 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10142 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10143 cat >> confdefs.h <<EOF
10144 #define $ac_tr_lib 1
10145 EOF
10146
10147 LIBS="-lresolv $LIBS"
10148
10149 else
10150 echo "$ac_t""no" 1>&6
10151 fi
10152
10153
10154 fi
10155
10156
10157 cat > confcache <<\EOF
10158 # This file is a shell script that caches the results of configure
10159 # tests run on this system so they can be shared between configure
10160 # scripts and configure runs. It is not useful on other systems.
10161 # If it contains results you don't want to keep, you may remove or edit it.
10162 #
10163 # By default, configure uses ./config.cache as the cache file,
10164 # creating it if it does not exist already. You can give configure
10165 # the --cache-file=FILE option to use a different cache file; that is
10166 # what configure does when it calls configure scripts in
10167 # subdirectories, so they share the cache.
10168 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10169 # config.status only pays attention to the cache file if you give it the
10170 # --recheck option to rerun configure.
10171 #
10172 EOF
10173 # The following way of writing the cache mishandles newlines in values,
10174 # but we know of no workaround that is simple, portable, and efficient.
10175 # So, don't put newlines in cache variables' values.
10176 # Ultrix sh set writes to stderr and can't be redirected directly,
10177 # and sets the high bit in the cache file unless we assign to the vars.
10178 (set) 2>&1 |
10179 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10180 *ac_space=\ *)
10181 # `set' does not quote correctly, so add quotes (double-quote substitution
10182 # turns \\\\ into \\, and sed turns \\ into \).
10183 sed -n \
10184 -e "s/'/'\\\\''/g" \
10185 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10186 ;;
10187 *)
10188 # `set' quotes correctly as required by POSIX, so do not add quotes.
10189 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10190 ;;
10191 esac >> confcache
10192 if cmp -s $cache_file confcache; then
10193 :
10194 else
10195 if test -w $cache_file; then
10196 echo "updating cache $cache_file"
10197 cat confcache > $cache_file
10198 else
10199 echo "not updating unwritable cache $cache_file"
10200 fi
10201 fi
10202 rm -f confcache
10203
10204
10205
10206 if test "$USE_UNIX" = 1; then
10207
10208
10209 THREADS_LINK=""
10210 THREADS_OBJ=""
10211
10212 if test "$wxUSE_THREADS" = "yes" ; then
10213 if test "$wxUSE_WINE" = 1 ; then
10214 echo "configure: warning: Threads are not supported under WINE" 1>&2
10215 wxUSE_THREADS="no"
10216 fi
10217 fi
10218
10219 if test "$wxUSE_THREADS" = "yes" ; then
10220
10221 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
10222 echo "configure:10223: checking for pthread_create in -lpthread" >&5
10223 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
10224 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10225 echo $ac_n "(cached) $ac_c" 1>&6
10226 else
10227 ac_save_LIBS="$LIBS"
10228 LIBS="-lpthread $LIBS"
10229 cat > conftest.$ac_ext <<EOF
10230 #line 10231 "configure"
10231 #include "confdefs.h"
10232 /* Override any gcc2 internal prototype to avoid an error. */
10233 /* We use char because int might match the return type of a gcc2
10234 builtin and then its argument prototype would still apply. */
10235 char pthread_create();
10236
10237 int main() {
10238 pthread_create()
10239 ; return 0; }
10240 EOF
10241 if { (eval echo configure:10242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10242 rm -rf conftest*
10243 eval "ac_cv_lib_$ac_lib_var=yes"
10244 else
10245 echo "configure: failed program was:" >&5
10246 cat conftest.$ac_ext >&5
10247 rm -rf conftest*
10248 eval "ac_cv_lib_$ac_lib_var=no"
10249 fi
10250 rm -f conftest*
10251 LIBS="$ac_save_LIBS"
10252
10253 fi
10254 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10255 echo "$ac_t""yes" 1>&6
10256
10257 THREADS_OBJ="threadpsx.lo"
10258 THREADS_LINK="pthread"
10259
10260 else
10261 echo "$ac_t""no" 1>&6
10262
10263 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
10264 echo "configure:10265: checking for pthread_create in -lc_r" >&5
10265 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
10266 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10267 echo $ac_n "(cached) $ac_c" 1>&6
10268 else
10269 ac_save_LIBS="$LIBS"
10270 LIBS="-lc_r $LIBS"
10271 cat > conftest.$ac_ext <<EOF
10272 #line 10273 "configure"
10273 #include "confdefs.h"
10274 /* Override any gcc2 internal prototype to avoid an error. */
10275 /* We use char because int might match the return type of a gcc2
10276 builtin and then its argument prototype would still apply. */
10277 char pthread_create();
10278
10279 int main() {
10280 pthread_create()
10281 ; return 0; }
10282 EOF
10283 if { (eval echo configure:10284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10284 rm -rf conftest*
10285 eval "ac_cv_lib_$ac_lib_var=yes"
10286 else
10287 echo "configure: failed program was:" >&5
10288 cat conftest.$ac_ext >&5
10289 rm -rf conftest*
10290 eval "ac_cv_lib_$ac_lib_var=no"
10291 fi
10292 rm -f conftest*
10293 LIBS="$ac_save_LIBS"
10294
10295 fi
10296 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10297 echo "$ac_t""yes" 1>&6
10298
10299 THREADS_OBJ="threadpsx.lo"
10300 THREADS_LINK="c_r"
10301
10302 else
10303 echo "$ac_t""no" 1>&6
10304
10305 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
10306 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
10307 echo "configure:10308: checking for sys/prctl.h" >&5
10308 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10309 echo $ac_n "(cached) $ac_c" 1>&6
10310 else
10311 cat > conftest.$ac_ext <<EOF
10312 #line 10313 "configure"
10313 #include "confdefs.h"
10314 #include <sys/prctl.h>
10315 EOF
10316 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10317 { (eval echo configure:10318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10318 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10319 if test -z "$ac_err"; then
10320 rm -rf conftest*
10321 eval "ac_cv_header_$ac_safe=yes"
10322 else
10323 echo "$ac_err" >&5
10324 echo "configure: failed program was:" >&5
10325 cat conftest.$ac_ext >&5
10326 rm -rf conftest*
10327 eval "ac_cv_header_$ac_safe=no"
10328 fi
10329 rm -f conftest*
10330 fi
10331 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10332 echo "$ac_t""yes" 1>&6
10333
10334 THREADS_OBJ="threadsgi.lo"
10335
10336 else
10337 echo "$ac_t""no" 1>&6
10338 fi
10339
10340
10341 fi
10342
10343
10344 fi
10345
10346
10347 if test -z "$THREADS_OBJ" ; then
10348 wxUSE_THREADS=no
10349 echo "configure: warning: No thread support on this system" 1>&2
10350 fi
10351 fi
10352
10353 if test "$wxUSE_THREADS" = "yes" ; then
10354
10355 for ac_hdr in sched.h
10356 do
10357 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10358 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10359 echo "configure:10360: checking for $ac_hdr" >&5
10360 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10361 echo $ac_n "(cached) $ac_c" 1>&6
10362 else
10363 cat > conftest.$ac_ext <<EOF
10364 #line 10365 "configure"
10365 #include "confdefs.h"
10366 #include <$ac_hdr>
10367 EOF
10368 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10369 { (eval echo configure:10370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10370 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10371 if test -z "$ac_err"; then
10372 rm -rf conftest*
10373 eval "ac_cv_header_$ac_safe=yes"
10374 else
10375 echo "$ac_err" >&5
10376 echo "configure: failed program was:" >&5
10377 cat conftest.$ac_ext >&5
10378 rm -rf conftest*
10379 eval "ac_cv_header_$ac_safe=no"
10380 fi
10381 rm -f conftest*
10382 fi
10383 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10384 echo "$ac_t""yes" 1>&6
10385 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10386 cat >> confdefs.h <<EOF
10387 #define $ac_tr_hdr 1
10388 EOF
10389
10390 else
10391 echo "$ac_t""no" 1>&6
10392 fi
10393 done
10394
10395
10396 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
10397 echo "configure:10398: checking for sched_yield in -l$THREADS_LINK" >&5
10398 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
10399 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10400 echo $ac_n "(cached) $ac_c" 1>&6
10401 else
10402 ac_save_LIBS="$LIBS"
10403 LIBS="-l$THREADS_LINK $LIBS"
10404 cat > conftest.$ac_ext <<EOF
10405 #line 10406 "configure"
10406 #include "confdefs.h"
10407 /* Override any gcc2 internal prototype to avoid an error. */
10408 /* We use char because int might match the return type of a gcc2
10409 builtin and then its argument prototype would still apply. */
10410 char sched_yield();
10411
10412 int main() {
10413 sched_yield()
10414 ; return 0; }
10415 EOF
10416 if { (eval echo configure:10417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10417 rm -rf conftest*
10418 eval "ac_cv_lib_$ac_lib_var=yes"
10419 else
10420 echo "configure: failed program was:" >&5
10421 cat conftest.$ac_ext >&5
10422 rm -rf conftest*
10423 eval "ac_cv_lib_$ac_lib_var=no"
10424 fi
10425 rm -f conftest*
10426 LIBS="$ac_save_LIBS"
10427
10428 fi
10429 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10430 echo "$ac_t""yes" 1>&6
10431 cat >> confdefs.h <<\EOF
10432 #define HAVE_SCHED_YIELD 1
10433 EOF
10434
10435 else
10436 echo "$ac_t""no" 1>&6
10437 echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
10438 echo "configure:10439: checking for sched_yield in -l"posix4"" >&5
10439 ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
10440 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10441 echo $ac_n "(cached) $ac_c" 1>&6
10442 else
10443 ac_save_LIBS="$LIBS"
10444 LIBS="-l"posix4" $LIBS"
10445 cat > conftest.$ac_ext <<EOF
10446 #line 10447 "configure"
10447 #include "confdefs.h"
10448 /* Override any gcc2 internal prototype to avoid an error. */
10449 /* We use char because int might match the return type of a gcc2
10450 builtin and then its argument prototype would still apply. */
10451 char sched_yield();
10452
10453 int main() {
10454 sched_yield()
10455 ; return 0; }
10456 EOF
10457 if { (eval echo configure:10458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10458 rm -rf conftest*
10459 eval "ac_cv_lib_$ac_lib_var=yes"
10460 else
10461 echo "configure: failed program was:" >&5
10462 cat conftest.$ac_ext >&5
10463 rm -rf conftest*
10464 eval "ac_cv_lib_$ac_lib_var=no"
10465 fi
10466 rm -f conftest*
10467 LIBS="$ac_save_LIBS"
10468
10469 fi
10470 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10471 echo "$ac_t""yes" 1>&6
10472 cat >> confdefs.h <<\EOF
10473 #define HAVE_SCHED_YIELD 1
10474 EOF
10475 POSIX4_LINK="-lposix4"
10476 else
10477 echo "$ac_t""no" 1>&6
10478 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
10479
10480 fi
10481
10482
10483 fi
10484
10485
10486 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
10487 echo "configure:10488: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
10488 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
10489 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10490 echo $ac_n "(cached) $ac_c" 1>&6
10491 else
10492 ac_save_LIBS="$LIBS"
10493 LIBS="-l$THREADS_LINK $LIBS"
10494 cat > conftest.$ac_ext <<EOF
10495 #line 10496 "configure"
10496 #include "confdefs.h"
10497 /* Override any gcc2 internal prototype to avoid an error. */
10498 /* We use char because int might match the return type of a gcc2
10499 builtin and then its argument prototype would still apply. */
10500 char pthread_attr_getschedpolicy();
10501
10502 int main() {
10503 pthread_attr_getschedpolicy()
10504 ; return 0; }
10505 EOF
10506 if { (eval echo configure:10507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10507 rm -rf conftest*
10508 eval "ac_cv_lib_$ac_lib_var=yes"
10509 else
10510 echo "configure: failed program was:" >&5
10511 cat conftest.$ac_ext >&5
10512 rm -rf conftest*
10513 eval "ac_cv_lib_$ac_lib_var=no"
10514 fi
10515 rm -f conftest*
10516 LIBS="$ac_save_LIBS"
10517
10518 fi
10519 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10520 echo "$ac_t""yes" 1>&6
10521 cat >> confdefs.h <<\EOF
10522 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
10523 EOF
10524
10525 else
10526 echo "$ac_t""no" 1>&6
10527 echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6
10528 echo "configure:10529: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5
10529 ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
10530 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10531 echo $ac_n "(cached) $ac_c" 1>&6
10532 else
10533 ac_save_LIBS="$LIBS"
10534 LIBS="-l"posix4" $LIBS"
10535 cat > conftest.$ac_ext <<EOF
10536 #line 10537 "configure"
10537 #include "confdefs.h"
10538 /* Override any gcc2 internal prototype to avoid an error. */
10539 /* We use char because int might match the return type of a gcc2
10540 builtin and then its argument prototype would still apply. */
10541 char pthread_attr_getschedpolicy();
10542
10543 int main() {
10544 pthread_attr_getschedpolicy()
10545 ; return 0; }
10546 EOF
10547 if { (eval echo configure:10548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10548 rm -rf conftest*
10549 eval "ac_cv_lib_$ac_lib_var=yes"
10550 else
10551 echo "configure: failed program was:" >&5
10552 cat conftest.$ac_ext >&5
10553 rm -rf conftest*
10554 eval "ac_cv_lib_$ac_lib_var=no"
10555 fi
10556 rm -f conftest*
10557 LIBS="$ac_save_LIBS"
10558
10559 fi
10560 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10561 echo "$ac_t""yes" 1>&6
10562 cat >> confdefs.h <<\EOF
10563 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
10564 EOF
10565 POSIX4_LINK="-lposix4"
10566 else
10567 echo "$ac_t""no" 1>&6
10568 echo "configure: warning: Setting thread priority will not work" 1>&2
10569
10570 fi
10571
10572
10573 fi
10574
10575
10576 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
10577 echo "configure:10578: checking for pthread_cancel in -l$THREADS_LINK" >&5
10578 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
10579 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10580 echo $ac_n "(cached) $ac_c" 1>&6
10581 else
10582 ac_save_LIBS="$LIBS"
10583 LIBS="-l$THREADS_LINK $LIBS"
10584 cat > conftest.$ac_ext <<EOF
10585 #line 10586 "configure"
10586 #include "confdefs.h"
10587 /* Override any gcc2 internal prototype to avoid an error. */
10588 /* We use char because int might match the return type of a gcc2
10589 builtin and then its argument prototype would still apply. */
10590 char pthread_cancel();
10591
10592 int main() {
10593 pthread_cancel()
10594 ; return 0; }
10595 EOF
10596 if { (eval echo configure:10597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10597 rm -rf conftest*
10598 eval "ac_cv_lib_$ac_lib_var=yes"
10599 else
10600 echo "configure: failed program was:" >&5
10601 cat conftest.$ac_ext >&5
10602 rm -rf conftest*
10603 eval "ac_cv_lib_$ac_lib_var=no"
10604 fi
10605 rm -f conftest*
10606 LIBS="$ac_save_LIBS"
10607
10608 fi
10609 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10610 echo "$ac_t""yes" 1>&6
10611 cat >> confdefs.h <<\EOF
10612 #define HAVE_PTHREAD_CANCEL 1
10613 EOF
10614
10615 else
10616 echo "$ac_t""no" 1>&6
10617 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
10618 fi
10619
10620
10621 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
10622 echo "configure:10623: checking for pthread_cleanup_push/pop" >&5
10623 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
10624 echo $ac_n "(cached) $ac_c" 1>&6
10625 else
10626
10627 cat > conftest.$ac_ext <<EOF
10628 #line 10629 "configure"
10629 #include "confdefs.h"
10630 #include <pthread.h>
10631 int main() {
10632
10633 pthread_cleanup_push(NULL, NULL);
10634 pthread_cleanup_pop(0);
10635
10636 ; return 0; }
10637 EOF
10638 if { (eval echo configure:10639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10639 rm -rf conftest*
10640
10641 wx_cv_func_pthread_cleanup_push=yes
10642 cat >> confdefs.h <<\EOF
10643 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
10644 EOF
10645
10646
10647 else
10648 echo "configure: failed program was:" >&5
10649 cat conftest.$ac_ext >&5
10650 rm -rf conftest*
10651
10652 wx_cv_func_pthread_cleanup_push=no
10653
10654 fi
10655 rm -f conftest*
10656
10657 fi
10658
10659 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
10660
10661 THREADS_LINK="-l$THREADS_LINK"
10662 fi
10663
10664 fi
10665
10666 if test "$wxUSE_THREADS" = "yes"; then
10667 cat >> confdefs.h <<\EOF
10668 #define wxUSE_THREADS 1
10669 EOF
10670
10671
10672 CFLAGS="${CFLAGS} -D_REENTRANT"
10673 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
10674
10675 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
10676 fi
10677
10678 if test "$WXGTK12" = 1 ; then
10679 cat >> confdefs.h <<EOF
10680 #define __WXGTK12__ $WXGTK12
10681 EOF
10682
10683 fi
10684
10685 if test "$WXWINE" = 1 ; then
10686 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
10687 fi
10688
10689 if test "$wxUSE_CYGWIN" = 1 ; then
10690 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
10691 fi
10692
10693 WXDEBUG=
10694
10695 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
10696 WXDEBUG="-g"
10697 wxUSE_OPTIMISE=no
10698 fi
10699
10700 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
10701 wxUSE_DEBUG_INFO=yes
10702 WXDEBUG="-ggdb"
10703 fi
10704
10705 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
10706 cat >> confdefs.h <<\EOF
10707 #define WXDEBUG 1
10708 EOF
10709
10710 WXDEBUG_DEFINE="-D__WXDEBUG__"
10711 else
10712 if test "$wxUSE_GTK" = 1 ; then
10713 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
10714 fi
10715 fi
10716
10717 if test "$wxUSE_MEM_TRACING" = "yes" ; then
10718 cat >> confdefs.h <<\EOF
10719 #define wxUSE_MEMORY_TRACING 1
10720 EOF
10721
10722 cat >> confdefs.h <<\EOF
10723 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
10724 EOF
10725
10726 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
10727 fi
10728
10729 if test "$wxUSE_DMALLOC" = "yes" ; then
10730 DMALLOC_LINK="-ldmalloc"
10731 fi
10732
10733 PROFILE=
10734 if test "$wxUSE_PROFILE" = "yes" ; then
10735 PROFILE="-pg"
10736 fi
10737
10738 DEP_INFO_FLAGS=
10739 if test "$GCC" = yes ; then
10740 if test "$wxUSE_NO_RTTI" = "yes" ; then
10741 WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-rtti"
10742 fi
10743 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
10744 WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-exceptions"
10745 fi
10746 if test "$wxUSE_PERMISSIVE" = "yes" ; then
10747 CFLAGS="${CFLAGS} -fpermissive"
10748 CXXFLAGS="${CXXFLAGS} -fpermissive"
10749 fi
10750 if test "$wxUSE_NO_DEPS" = "no" ; then
10751 DEP_INFO_FLAGS="-MMD"
10752 fi
10753 fi
10754
10755
10756 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
10757 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
10758 if test "$wxUSE_OPTIMISE" = "no" ; then
10759 OPTIMISE=
10760 else
10761 if test "$GCC" = yes ; then
10762 OPTIMISE="-O2"
10763 case "${host}" in
10764 i586-*-*|i686-*-* )
10765 OPTIMISE="${OPTIMISE} "
10766 ;;
10767 esac
10768 else
10769 OPTIMISE="-O"
10770 fi
10771 fi
10772
10773
10774 ZLIB_INCLUDE=
10775 if test "$wxUSE_ZLIB" = "yes" ; then
10776 cat >> confdefs.h <<\EOF
10777 #define wxUSE_ZLIB 1
10778 EOF
10779
10780 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
10781 fi
10782
10783 PNG_INCLUDE=
10784 if test "$wxUSE_LIBPNG" = "yes" ; then
10785 cat >> confdefs.h <<\EOF
10786 #define wxUSE_LIBPNG 1
10787 EOF
10788
10789 PNG_INCLUDE="-I\${top_srcdir}/src/png"
10790 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
10791 fi
10792
10793 JPEG_INCLUDE=
10794 if test "$wxUSE_LIBJPEG" = "yes" ; then
10795 cat >> confdefs.h <<\EOF
10796 #define wxUSE_LIBJPEG 1
10797 EOF
10798
10799 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
10800 fi
10801
10802 if test "$wxUSE_OPENGL" = "yes"; then
10803 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
10804 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
10805 echo "configure:10806: checking for GL/gl.h" >&5
10806 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10807 echo $ac_n "(cached) $ac_c" 1>&6
10808 else
10809 cat > conftest.$ac_ext <<EOF
10810 #line 10811 "configure"
10811 #include "confdefs.h"
10812 #include <GL/gl.h>
10813 EOF
10814 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10815 { (eval echo configure:10816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10816 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10817 if test -z "$ac_err"; then
10818 rm -rf conftest*
10819 eval "ac_cv_header_$ac_safe=yes"
10820 else
10821 echo "$ac_err" >&5
10822 echo "configure: failed program was:" >&5
10823 cat conftest.$ac_ext >&5
10824 rm -rf conftest*
10825 eval "ac_cv_header_$ac_safe=no"
10826 fi
10827 rm -f conftest*
10828 fi
10829 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10830 echo "$ac_t""yes" 1>&6
10831
10832 echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6
10833 echo "configure:10834: checking for glInitNames in -lGL" >&5
10834 ac_lib_var=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'`
10835 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10836 echo $ac_n "(cached) $ac_c" 1>&6
10837 else
10838 ac_save_LIBS="$LIBS"
10839 LIBS="-lGL wxUSE_OPENGL=0 $LIBS"
10840 cat > conftest.$ac_ext <<EOF
10841 #line 10842 "configure"
10842 #include "confdefs.h"
10843 /* Override any gcc2 internal prototype to avoid an error. */
10844 /* We use char because int might match the return type of a gcc2
10845 builtin and then its argument prototype would still apply. */
10846 char glInitNames();
10847
10848 int main() {
10849 glInitNames()
10850 ; return 0; }
10851 EOF
10852 if { (eval echo configure:10853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10853 rm -rf conftest*
10854 eval "ac_cv_lib_$ac_lib_var=yes"
10855 else
10856 echo "configure: failed program was:" >&5
10857 cat conftest.$ac_ext >&5
10858 rm -rf conftest*
10859 eval "ac_cv_lib_$ac_lib_var=no"
10860 fi
10861 rm -f conftest*
10862 LIBS="$ac_save_LIBS"
10863
10864 fi
10865 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10866 echo "$ac_t""yes" 1>&6
10867
10868 OPENGL_LINK="-lGL"
10869 cat >> confdefs.h <<\EOF
10870 #define wxUSE_OPENGL 1
10871 EOF
10872
10873 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
10874
10875 else
10876 echo "$ac_t""no" 1>&6
10877
10878 echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6
10879 echo "configure:10880: checking for glInitNames in -lMesaGL" >&5
10880 ac_lib_var=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'`
10881 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10882 echo $ac_n "(cached) $ac_c" 1>&6
10883 else
10884 ac_save_LIBS="$LIBS"
10885 LIBS="-lMesaGL $LIBS"
10886 cat > conftest.$ac_ext <<EOF
10887 #line 10888 "configure"
10888 #include "confdefs.h"
10889 /* Override any gcc2 internal prototype to avoid an error. */
10890 /* We use char because int might match the return type of a gcc2
10891 builtin and then its argument prototype would still apply. */
10892 char glInitNames();
10893
10894 int main() {
10895 glInitNames()
10896 ; return 0; }
10897 EOF
10898 if { (eval echo configure:10899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10899 rm -rf conftest*
10900 eval "ac_cv_lib_$ac_lib_var=yes"
10901 else
10902 echo "configure: failed program was:" >&5
10903 cat conftest.$ac_ext >&5
10904 rm -rf conftest*
10905 eval "ac_cv_lib_$ac_lib_var=no"
10906 fi
10907 rm -f conftest*
10908 LIBS="$ac_save_LIBS"
10909
10910 fi
10911 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10912 echo "$ac_t""yes" 1>&6
10913
10914 OPENGL_LINK="-lMesaGL"
10915 cat >> confdefs.h <<\EOF
10916 #define wxUSE_OPENGL 1
10917 EOF
10918
10919 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
10920
10921 else
10922 echo "$ac_t""no" 1>&6
10923 wxUSE_OPENGL=0
10924 fi
10925
10926
10927 fi
10928
10929
10930 else
10931 echo "$ac_t""no" 1>&6
10932 wxUSE_OPENGL=0
10933 fi
10934
10935 fi
10936
10937
10938 if test "$wxUSE_GUI" = "yes"; then
10939 cat >> confdefs.h <<\EOF
10940 #define wxUSE_GUI 1
10941 EOF
10942
10943
10944 else
10945 cat >> confdefs.h <<\EOF
10946 #define wxUSE_NOGUI 1
10947 EOF
10948
10949 fi
10950
10951
10952 if test "$wxUSE_UNIX" = "yes"; then
10953 cat >> confdefs.h <<\EOF
10954 #define wxUSE_UNIX 1
10955 EOF
10956
10957 fi
10958
10959
10960 if test "$wxUSE_APPLE_IEEE" = "yes"; then
10961 cat >> confdefs.h <<\EOF
10962 #define wxUSE_APPLE_IEEE 1
10963 EOF
10964
10965 fi
10966
10967 if test "$wxUSE_TIMEDATE" = "yes"; then
10968 cat >> confdefs.h <<\EOF
10969 #define wxUSE_TIMEDATE 1
10970 EOF
10971
10972 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
10973 fi
10974
10975 if test "$wxUSE_WAVE" = "yes"; then
10976 cat >> confdefs.h <<\EOF
10977 #define wxUSE_WAVE 1
10978 EOF
10979
10980 fi
10981
10982 if test "$wxUSE_FILE" = "yes"; then
10983 cat >> confdefs.h <<\EOF
10984 #define wxUSE_FILE 1
10985 EOF
10986
10987 fi
10988
10989 if test "$wxUSE_FS_INET" = "yes"; then
10990 cat >> confdefs.h <<\EOF
10991 #define wxUSE_FS_INET 1
10992 EOF
10993
10994 fi
10995
10996 if test "$wxUSE_FS_ZIP" = "yes"; then
10997 cat >> confdefs.h <<\EOF
10998 #define wxUSE_FS_ZIP 1
10999 EOF
11000
11001 fi
11002
11003 if test "$wxUSE_ZIPSTREAM" = "yes"; then
11004 cat >> confdefs.h <<\EOF
11005 #define wxUSE_ZIPSTREAM 1
11006 EOF
11007
11008 fi
11009
11010 if test "$wxUSE_BUSYINFO" = "yes"; then
11011 cat >> confdefs.h <<\EOF
11012 #define wxUSE_BUSYINFO 1
11013 EOF
11014
11015 fi
11016
11017 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
11018 cat >> confdefs.h <<\EOF
11019 #define wxUSE_STD_IOSTREAM 1
11020 EOF
11021
11022 fi
11023
11024 if test "$wxUSE_TEXTFILE" = "yes"; then
11025 if test "$wxUSE_FILE" != "yes"; then
11026 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
11027 else
11028 cat >> confdefs.h <<\EOF
11029 #define wxUSE_TEXTFILE 1
11030 EOF
11031
11032 fi
11033 fi
11034
11035 if test "$wxUSE_CONFIG" = "yes" ; then
11036 if test "$wxUSE_TEXTFILE" != "yes"; then
11037 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
11038 else
11039 cat >> confdefs.h <<\EOF
11040 #define wxUSE_CONFIG 1
11041 EOF
11042
11043 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
11044 fi
11045 fi
11046
11047 if test "$wxUSE_INTL" = "yes" ; then
11048 if test "$wxUSE_FILE" != "yes"; then
11049 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
11050 else
11051 cat >> confdefs.h <<\EOF
11052 #define wxUSE_INTL 1
11053 EOF
11054
11055 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
11056 fi
11057 fi
11058
11059 if test "$wxUSE_LOG" = "yes"; then
11060 cat >> confdefs.h <<\EOF
11061 #define wxUSE_LOG 1
11062 EOF
11063
11064 fi
11065
11066 if test "$wxUSE_LONGLONG" = "yes"; then
11067 cat >> confdefs.h <<\EOF
11068 #define wxUSE_LONGLONG 1
11069 EOF
11070
11071 fi
11072
11073 if test "$wxUSE_SOCKETS" = "yes" ; then
11074 cat >> confdefs.h <<\EOF
11075 #define wxUSE_SOCKETS 1
11076 EOF
11077
11078 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wxsocket"
11079 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
11080 fi
11081
11082 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
11083 cat >> confdefs.h <<\EOF
11084 #define wxUSE_DIALUP_MANAGER 1
11085 EOF
11086
11087 fi
11088
11089 if test "$wxUSE_STREAMS" = "yes" ; then
11090 cat >> confdefs.h <<\EOF
11091 #define wxUSE_STREAMS 1
11092 EOF
11093
11094 fi
11095
11096 if test "$wxUSE_SERIAL" = "yes" ; then
11097 cat >> confdefs.h <<\EOF
11098 #define wxUSE_SERIAL 1
11099 EOF
11100
11101 fi
11102
11103
11104 if test "$wxUSE_SOCKETS" = "yes"; then
11105
11106 ac_ext=C
11107 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11108 ac_cpp='$CXXCPP $CPPFLAGS'
11109 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11110 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11111 cross_compiling=$ac_cv_prog_cxx_cross
11112
11113 echo $ac_n "checking the type of the third argument of getsockname""... $ac_c" 1>&6
11114 echo "configure:11115: checking the type of the third argument of getsockname" >&5
11115 cat > conftest.$ac_ext <<EOF
11116 #line 11117 "configure"
11117 #include "confdefs.h"
11118 #include <sys/socket.h>
11119 int main() {
11120 socklen_t len; getsockname(0, NULL, &len);
11121 ; return 0; }
11122 EOF
11123 if { (eval echo configure:11124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11124 rm -rf conftest*
11125 cat >> confdefs.h <<\EOF
11126 #define SOCKLEN_T socklen_t
11127 EOF
11128 echo "$ac_t""socklen_t" 1>&6
11129 else
11130 echo "configure: failed program was:" >&5
11131 cat conftest.$ac_ext >&5
11132 rm -rf conftest*
11133 cat > conftest.$ac_ext <<EOF
11134 #line 11135 "configure"
11135 #include "confdefs.h"
11136 #include <sys/socket.h>
11137 int main() {
11138 size_t len; getsockname(0, NULL, &len);
11139 ; return 0; }
11140 EOF
11141 if { (eval echo configure:11142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11142 rm -rf conftest*
11143 cat >> confdefs.h <<\EOF
11144 #define SOCKLEN_T size_t
11145 EOF
11146 echo "$ac_t""size_t" 1>&6
11147 else
11148 echo "configure: failed program was:" >&5
11149 cat conftest.$ac_ext >&5
11150 rm -rf conftest*
11151 cat > conftest.$ac_ext <<EOF
11152 #line 11153 "configure"
11153 #include "confdefs.h"
11154 #include <sys/socket.h>
11155 int main() {
11156 int len; getsockname(0, NULL, &len);
11157 ; return 0; }
11158 EOF
11159 if { (eval echo configure:11160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11160 rm -rf conftest*
11161 cat >> confdefs.h <<\EOF
11162 #define SOCKLEN_T int
11163 EOF
11164 echo "$ac_t""int" 1>&6
11165 else
11166 echo "configure: failed program was:" >&5
11167 cat conftest.$ac_ext >&5
11168 rm -rf conftest*
11169 echo "$ac_t""unknown" 1>&6
11170
11171 fi
11172 rm -f conftest*
11173
11174 fi
11175 rm -f conftest*
11176
11177 fi
11178 rm -f conftest*
11179 ac_ext=c
11180 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11181 ac_cpp='$CPP $CPPFLAGS'
11182 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11183 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11184 cross_compiling=$ac_cv_prog_cc_cross
11185
11186 fi
11187
11188
11189 if test "$wxUSE_JOYSTICK" = 1; then
11190 for ac_hdr in linux/joystick.h
11191 do
11192 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11193 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11194 echo "configure:11195: checking for $ac_hdr" >&5
11195 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11196 echo $ac_n "(cached) $ac_c" 1>&6
11197 else
11198 cat > conftest.$ac_ext <<EOF
11199 #line 11200 "configure"
11200 #include "confdefs.h"
11201 #include <$ac_hdr>
11202 EOF
11203 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11204 { (eval echo configure:11205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11205 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11206 if test -z "$ac_err"; then
11207 rm -rf conftest*
11208 eval "ac_cv_header_$ac_safe=yes"
11209 else
11210 echo "$ac_err" >&5
11211 echo "configure: failed program was:" >&5
11212 cat conftest.$ac_ext >&5
11213 rm -rf conftest*
11214 eval "ac_cv_header_$ac_safe=no"
11215 fi
11216 rm -f conftest*
11217 fi
11218 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11219 echo "$ac_t""yes" 1>&6
11220 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11221 cat >> confdefs.h <<EOF
11222 #define $ac_tr_hdr 1
11223 EOF
11224
11225 else
11226 echo "$ac_t""no" 1>&6
11227 fi
11228 done
11229
11230 if test "$ac_cv_header_linux_joystick_h" = "yes"; then
11231 cat >> confdefs.h <<\EOF
11232 #define wxUSE_JOYSTICK 1
11233 EOF
11234
11235 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
11236 fi
11237 fi
11238
11239
11240 HAVE_DL_FUNCS=0
11241 HAVE_SHL_FUNCS=0
11242 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
11243 for ac_func in dlopen
11244 do
11245 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11246 echo "configure:11247: checking for $ac_func" >&5
11247 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11248 echo $ac_n "(cached) $ac_c" 1>&6
11249 else
11250 cat > conftest.$ac_ext <<EOF
11251 #line 11252 "configure"
11252 #include "confdefs.h"
11253 /* System header to define __stub macros and hopefully few prototypes,
11254 which can conflict with char $ac_func(); below. */
11255 #include <assert.h>
11256 /* Override any gcc2 internal prototype to avoid an error. */
11257 /* We use char because int might match the return type of a gcc2
11258 builtin and then its argument prototype would still apply. */
11259 char $ac_func();
11260
11261 int main() {
11262
11263 /* The GNU C library defines this for functions which it implements
11264 to always fail with ENOSYS. Some functions are actually named
11265 something starting with __ and the normal name is an alias. */
11266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11267 choke me
11268 #else
11269 $ac_func();
11270 #endif
11271
11272 ; return 0; }
11273 EOF
11274 if { (eval echo configure:11275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11275 rm -rf conftest*
11276 eval "ac_cv_func_$ac_func=yes"
11277 else
11278 echo "configure: failed program was:" >&5
11279 cat conftest.$ac_ext >&5
11280 rm -rf conftest*
11281 eval "ac_cv_func_$ac_func=no"
11282 fi
11283 rm -f conftest*
11284 fi
11285
11286 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11287 echo "$ac_t""yes" 1>&6
11288 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11289 cat >> confdefs.h <<EOF
11290 #define $ac_tr_func 1
11291 EOF
11292
11293 cat >> confdefs.h <<\EOF
11294 #define HAVE_DLOPEN 1
11295 EOF
11296
11297 HAVE_DL_FUNCS=1
11298
11299 else
11300 echo "$ac_t""no" 1>&6
11301 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
11302 echo "configure:11303: checking for dlopen in -ldl" >&5
11303 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
11304 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11305 echo $ac_n "(cached) $ac_c" 1>&6
11306 else
11307 ac_save_LIBS="$LIBS"
11308 LIBS="-ldl $LIBS"
11309 cat > conftest.$ac_ext <<EOF
11310 #line 11311 "configure"
11311 #include "confdefs.h"
11312 /* Override any gcc2 internal prototype to avoid an error. */
11313 /* We use char because int might match the return type of a gcc2
11314 builtin and then its argument prototype would still apply. */
11315 char dlopen();
11316
11317 int main() {
11318 dlopen()
11319 ; return 0; }
11320 EOF
11321 if { (eval echo configure:11322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11322 rm -rf conftest*
11323 eval "ac_cv_lib_$ac_lib_var=yes"
11324 else
11325 echo "configure: failed program was:" >&5
11326 cat conftest.$ac_ext >&5
11327 rm -rf conftest*
11328 eval "ac_cv_lib_$ac_lib_var=no"
11329 fi
11330 rm -f conftest*
11331 LIBS="$ac_save_LIBS"
11332
11333 fi
11334 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11335 echo "$ac_t""yes" 1>&6
11336
11337 cat >> confdefs.h <<\EOF
11338 #define HAVE_DLOPEN 1
11339 EOF
11340
11341 HAVE_DL_FUNCS=1
11342 LIBS="$LIBS -ldl"
11343
11344 else
11345 echo "$ac_t""no" 1>&6
11346
11347 for ac_func in shl_load
11348 do
11349 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11350 echo "configure:11351: checking for $ac_func" >&5
11351 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11352 echo $ac_n "(cached) $ac_c" 1>&6
11353 else
11354 cat > conftest.$ac_ext <<EOF
11355 #line 11356 "configure"
11356 #include "confdefs.h"
11357 /* System header to define __stub macros and hopefully few prototypes,
11358 which can conflict with char $ac_func(); below. */
11359 #include <assert.h>
11360 /* Override any gcc2 internal prototype to avoid an error. */
11361 /* We use char because int might match the return type of a gcc2
11362 builtin and then its argument prototype would still apply. */
11363 char $ac_func();
11364
11365 int main() {
11366
11367 /* The GNU C library defines this for functions which it implements
11368 to always fail with ENOSYS. Some functions are actually named
11369 something starting with __ and the normal name is an alias. */
11370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11371 choke me
11372 #else
11373 $ac_func();
11374 #endif
11375
11376 ; return 0; }
11377 EOF
11378 if { (eval echo configure:11379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11379 rm -rf conftest*
11380 eval "ac_cv_func_$ac_func=yes"
11381 else
11382 echo "configure: failed program was:" >&5
11383 cat conftest.$ac_ext >&5
11384 rm -rf conftest*
11385 eval "ac_cv_func_$ac_func=no"
11386 fi
11387 rm -f conftest*
11388 fi
11389
11390 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11391 echo "$ac_t""yes" 1>&6
11392 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11393 cat >> confdefs.h <<EOF
11394 #define $ac_tr_func 1
11395 EOF
11396
11397 cat >> confdefs.h <<\EOF
11398 #define HAVE_SHL_LOAD 1
11399 EOF
11400
11401 HAVE_SHL_FUNCS=1
11402
11403 else
11404 echo "$ac_t""no" 1>&6
11405 fi
11406 done
11407
11408
11409 fi
11410
11411
11412 fi
11413 done
11414
11415
11416 if test "$HAVE_DL_FUNCS" = 0; then
11417 if test "$HAVE_SHL_FUNCS" = 0; then
11418 if test "$USE_UNIX" = 1; then
11419 echo "configure: warning: "--with-dynlib and --with-odbc will be disabled due to missing shared library support"" 1>&2
11420 wxUSE_ODBC=no
11421 wxUSE_DYNLIB_CLASS=no
11422 else
11423 echo "configure: warning: "Cannot check dynlib requirements on non-Unix platforms. dynlib remains enabled."" 1>&2
11424 fi
11425 fi
11426 fi
11427 fi
11428
11429 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
11430 cat >> confdefs.h <<\EOF
11431 #define wxUSE_DYNLIB_CLASS 1
11432 EOF
11433
11434 fi
11435
11436
11437 if test "$wxUSE_UNICODE" = "yes" ; then
11438 cat >> confdefs.h <<\EOF
11439 #define wxUSE_UNICODE 1
11440 EOF
11441
11442 fi
11443
11444 if test "$wxUSE_WCSRTOMBS" = "yes" ; then
11445 cat >> confdefs.h <<\EOF
11446 #define wxUSE_WCSRTOMBS 1
11447 EOF
11448
11449 fi
11450
11451 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
11452 cat >> confdefs.h <<\EOF
11453 #define wxUSE_EXPERIMENTAL_PRINTF 1
11454 EOF
11455
11456 fi
11457
11458
11459 IODBC_C_SRC=""
11460 if test "$wxUSE_ODBC" = "yes" ; then
11461 cat >> confdefs.h <<\EOF
11462 #define wxUSE_ODBC 1
11463 EOF
11464
11465 WXODBCFLAG="-D_IODBC_"
11466 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
11467 IODBCOBJS="\$(IODBC_OBJS)"
11468 else
11469 IODBCOBJS=
11470 fi
11471
11472
11473 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
11474 cat >> confdefs.h <<\EOF
11475 #define wxUSE_POSTSCRIPT 1
11476 EOF
11477
11478 fi
11479
11480 cat >> confdefs.h <<\EOF
11481 #define wxUSE_AFM_FOR_POSTSCRIPT 1
11482 EOF
11483
11484
11485 cat >> confdefs.h <<\EOF
11486 #define wxUSE_NORMALIZED_PS_FONTS 1
11487 EOF
11488
11489
11490
11491 if test "$wxUSE_CONSTRAINTS" = "yes"; then
11492 cat >> confdefs.h <<\EOF
11493 #define wxUSE_CONSTRAINTS 1
11494 EOF
11495
11496 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
11497 fi
11498
11499 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
11500 cat >> confdefs.h <<\EOF
11501 #define wxUSE_MDI_ARCHITECTURE 1
11502 EOF
11503
11504 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
11505 fi
11506
11507 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
11508 cat >> confdefs.h <<\EOF
11509 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
11510 EOF
11511
11512 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
11513 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
11514 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
11515 fi
11516 fi
11517
11518 if test "$wxUSE_HELP" = "yes"; then
11519 cat >> confdefs.h <<\EOF
11520 #define wxUSE_HELP 1
11521 EOF
11522
11523 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
11524 fi
11525
11526 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
11527 if test "$wxUSE_CONSTRAINTS" != "yes"; then
11528 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
11529 else
11530 cat >> confdefs.h <<\EOF
11531 #define wxUSE_PRINTING_ARCHITECTURE 1
11532 EOF
11533
11534 fi
11535 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
11536 fi
11537
11538 if test "$wxUSE_PROLOGIO" = "yes" ; then
11539 cat >> confdefs.h <<\EOF
11540 #define wxUSE_PROLOGIO 1
11541 EOF
11542
11543 fi
11544
11545 if test "$wxUSE_RESOURCES" = "yes" ; then
11546 if test "$wxUSE_PROLOGIO" = "yes" ; then
11547 cat >> confdefs.h <<\EOF
11548 #define wxUSE_RESOURCES 1
11549 EOF
11550
11551 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
11552 else
11553 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
11554 fi
11555 fi
11556
11557 if test "$wxUSE_X_RESOURCES" = "yes"; then
11558 cat >> confdefs.h <<\EOF
11559 #define wxUSE_X_RESOURCES 1
11560 EOF
11561
11562 fi
11563
11564
11565 if test "$wxUSE_IPC" = "yes"; then
11566 cat >> confdefs.h <<\EOF
11567 #define wxUSE_IPC 1
11568 EOF
11569
11570 fi
11571
11572 if test "$wxUSE_CLIPBOARD" = "yes"; then
11573 cat >> confdefs.h <<\EOF
11574 #define wxUSE_CLIPBOARD 1
11575 EOF
11576
11577 fi
11578
11579 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
11580 if test "$wxUSE_GTK" = 1; then
11581 if test "$WXGTK12" != 1; then
11582 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
11583 wxUSE_DRAG_AND_DROP=no
11584 fi
11585 fi
11586
11587 if test "$wxUSE_MOTIF" = 1; then
11588 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
11589 wxUSE_DRAG_AND_DROP=no
11590 fi
11591
11592 if test "$USE_WIN32" = 1; then
11593 for ac_hdr in ole2.h
11594 do
11595 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11596 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11597 echo "configure:11598: checking for $ac_hdr" >&5
11598 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11599 echo $ac_n "(cached) $ac_c" 1>&6
11600 else
11601 cat > conftest.$ac_ext <<EOF
11602 #line 11603 "configure"
11603 #include "confdefs.h"
11604 #include <$ac_hdr>
11605 EOF
11606 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11607 { (eval echo configure:11608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11608 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11609 if test -z "$ac_err"; then
11610 rm -rf conftest*
11611 eval "ac_cv_header_$ac_safe=yes"
11612 else
11613 echo "$ac_err" >&5
11614 echo "configure: failed program was:" >&5
11615 cat conftest.$ac_ext >&5
11616 rm -rf conftest*
11617 eval "ac_cv_header_$ac_safe=no"
11618 fi
11619 rm -f conftest*
11620 fi
11621 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11622 echo "$ac_t""yes" 1>&6
11623 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11624 cat >> confdefs.h <<EOF
11625 #define $ac_tr_hdr 1
11626 EOF
11627
11628 else
11629 echo "$ac_t""no" 1>&6
11630 fi
11631 done
11632
11633 if test "x$HAVE_OLE2_H" = x ; then
11634 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
11635 wxUSE_DRAG_AND_DROP=no
11636 fi
11637 fi
11638
11639 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
11640 cat >> confdefs.h <<\EOF
11641 #define wxUSE_DRAG_AND_DROP 1
11642 EOF
11643
11644 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
11645 fi
11646
11647 fi
11648
11649 if test "$wxUSE_SPLINES" = "yes" ; then
11650 cat >> confdefs.h <<\EOF
11651 #define wxUSE_SPLINES 1
11652 EOF
11653
11654 fi
11655
11656
11657 if test "$wxUSE_ACCEL" = "yes"; then
11658 cat >> confdefs.h <<\EOF
11659 #define wxUSE_ACCEL 1
11660 EOF
11661
11662 fi
11663
11664 if test "$wxUSE_CARET" = "yes"; then
11665 cat >> confdefs.h <<\EOF
11666 #define wxUSE_CARET 1
11667 EOF
11668
11669 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
11670 fi
11671
11672 if test "$wxUSE_COMBOBOX" = "yes"; then
11673 cat >> confdefs.h <<\EOF
11674 #define wxUSE_COMBOBOX 1
11675 EOF
11676
11677 fi
11678
11679 if test "$wxUSE_CHOICE" = "yes"; then
11680 cat >> confdefs.h <<\EOF
11681 #define wxUSE_CHOICE 1
11682 EOF
11683
11684 fi
11685
11686 if test "$wxUSE_BMPBUTTON" = "yes"; then
11687 cat >> confdefs.h <<\EOF
11688 #define wxUSE_BMPBUTTON 1
11689 EOF
11690
11691 fi
11692
11693 if test "$wxUSE_CHECKBOX" = "yes"; then
11694 cat >> confdefs.h <<\EOF
11695 #define wxUSE_CHECKBOX 1
11696 EOF
11697
11698 fi
11699
11700 if test "$wxUSE_CHECKLST" = "yes"; then
11701 cat >> confdefs.h <<\EOF
11702 #define wxUSE_CHECKLISTBOX 1
11703 EOF
11704
11705 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
11706 fi
11707
11708 if test "$wxUSE_GAUGE" = "yes"; then
11709 cat >> confdefs.h <<\EOF
11710 #define wxUSE_GAUGE 1
11711 EOF
11712
11713 fi
11714
11715 if test "$wxUSE_GRID" = "yes"; then
11716 cat >> confdefs.h <<\EOF
11717 #define wxUSE_GRID 1
11718 EOF
11719
11720 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
11721 fi
11722
11723 if test "$wxUSE_NEW_GRID" = "yes"; then
11724 cat >> confdefs.h <<\EOF
11725 #define wxUSE_NEW_GRID 1
11726 EOF
11727
11728 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
11729 fi
11730
11731 if test "$wxUSE_IMAGLIST" = "yes"; then
11732 cat >> confdefs.h <<\EOF
11733 #define wxUSE_IMAGLIST 1
11734 EOF
11735
11736 fi
11737
11738 if test "$wxUSE_LISTBOX" = "yes"; then
11739 cat >> confdefs.h <<\EOF
11740 #define wxUSE_LISTBOX 1
11741 EOF
11742
11743 fi
11744
11745 if test "$wxUSE_LISTCTRL" = "yes"; then
11746 if test "$wxUSE_IMAGLIST" = "yes"; then
11747 cat >> confdefs.h <<\EOF
11748 #define wxUSE_LISTCTRL 1
11749 EOF
11750
11751 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
11752 else
11753 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
11754 fi
11755 fi
11756
11757 if test "$wxUSE_NOTEBOOK" = "yes"; then
11758 cat >> confdefs.h <<\EOF
11759 #define wxUSE_NOTEBOOK 1
11760 EOF
11761
11762 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
11763 fi
11764
11765 if test "$wxUSE_RADIOBOX" = "yes"; then
11766 cat >> confdefs.h <<\EOF
11767 #define wxUSE_RADIOBOX 1
11768 EOF
11769
11770 fi
11771
11772 if test "$wxUSE_RADIOBTN" = "yes"; then
11773 cat >> confdefs.h <<\EOF
11774 #define wxUSE_RADIOBTN 1
11775 EOF
11776
11777 fi
11778
11779 if test "$wxUSE_SASH" = "yes"; then
11780 cat >> confdefs.h <<\EOF
11781 #define wxUSE_SASH 1
11782 EOF
11783
11784 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
11785 fi
11786
11787 if test "$wxUSE_SCROLLBAR" = "yes"; then
11788 cat >> confdefs.h <<\EOF
11789 #define wxUSE_SCROLLBAR 1
11790 EOF
11791
11792 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll"
11793 fi
11794
11795 if test "$wxUSE_SLIDER" = "yes"; then
11796 cat >> confdefs.h <<\EOF
11797 #define wxUSE_SLIDER 1
11798 EOF
11799
11800 fi
11801
11802 if test "$wxUSE_SPINBTN" = "yes"; then
11803 cat >> confdefs.h <<\EOF
11804 #define wxUSE_SPINBTN 1
11805 EOF
11806
11807 fi
11808
11809 if test "$wxUSE_SPLITTER" = "yes"; then
11810 cat >> confdefs.h <<\EOF
11811 #define wxUSE_SPLITTER 1
11812 EOF
11813
11814 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
11815 fi
11816
11817 if test "$wxUSE_STATBMP" = "yes"; then
11818 cat >> confdefs.h <<\EOF
11819 #define wxUSE_STATBMP 1
11820 EOF
11821
11822 fi
11823
11824 if test "$wxUSE_STATBOX" = "yes"; then
11825 cat >> confdefs.h <<\EOF
11826 #define wxUSE_STATBOX 1
11827 EOF
11828
11829 fi
11830
11831 if test "$wxUSE_STATLINE" = "yes"; then
11832 if test "$wxUSE_WINE" = 1 ; then
11833 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
11834 else
11835 cat >> confdefs.h <<\EOF
11836 #define wxUSE_STATLINE 1
11837 EOF
11838
11839 fi
11840 fi
11841
11842 if test "$wxUSE_STATUSBAR" = "yes"; then
11843 cat >> confdefs.h <<\EOF
11844 #define wxUSE_STATUSBAR 1
11845 EOF
11846
11847 fi
11848
11849 if test "$wxUSE_TABDIALOG" = "yes"; then
11850 cat >> confdefs.h <<\EOF
11851 #define wxUSE_TAB_DIALOG 1
11852 EOF
11853
11854 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
11855 fi
11856
11857 if test "$wxUSE_TOOLBAR" = "yes"; then
11858 cat >> confdefs.h <<\EOF
11859 #define wxUSE_TOOLBAR 1
11860 EOF
11861
11862 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
11863 fi
11864
11865 if test "$wxUSE_TOOLTIPS" = "yes"; then
11866 if test "$wxUSE_MOTIF" = 1; then
11867 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
11868 else
11869 if test "$wxUSE_WINE" = 1; then
11870 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
11871 else
11872 cat >> confdefs.h <<\EOF
11873 #define wxUSE_TOOLTIPS 1
11874 EOF
11875
11876 fi
11877 fi
11878 fi
11879
11880 if test "$wxUSE_TREECTRL" = "yes"; then
11881 if test "$wxUSE_IMAGLIST" = "yes"; then
11882 cat >> confdefs.h <<\EOF
11883 #define wxUSE_TREECTRL 1
11884 EOF
11885
11886 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
11887 else
11888 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
11889 fi
11890 fi
11891
11892
11893
11894 if test "$wxUSE_METAFILE" = "yes"; then
11895 cat >> confdefs.h <<\EOF
11896 #define wxUSE_METAFILE 1
11897 EOF
11898
11899 fi
11900
11901 if test "$wxUSE_DIRDLG" = "yes"; then
11902 if test "$wxUSE_CONSTRAINTS" != "yes"; then
11903 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
11904 else
11905 if test "$wxUSE_TREECTRL" != "yes"; then
11906 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
11907 else
11908 cat >> confdefs.h <<\EOF
11909 #define wxUSE_DIRDLG 1
11910 EOF
11911
11912 fi
11913 fi
11914 fi
11915
11916 if test "$wxUSE_TEXTDLG" = "yes"; then
11917 cat >> confdefs.h <<\EOF
11918 #define wxUSE_TEXTDLG 1
11919 EOF
11920
11921 fi
11922
11923 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
11924 if test "$wxUSE_CONSTRAINTS" != "yes"; then
11925 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
11926 else
11927 cat >> confdefs.h <<\EOF
11928 #define wxUSE_STARTUP_TIPS 1
11929 EOF
11930
11931 fi
11932 fi
11933
11934 if test "$wxUSE_PROGRESSDLG" = "yes"; then
11935 if test "$wxUSE_CONSTRAINTS" != "yes"; then
11936 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
11937 else
11938 cat >> confdefs.h <<\EOF
11939 #define wxUSE_PROGRESSDLG 1
11940 EOF
11941
11942 fi
11943 fi
11944
11945 if test "$wxUSE_MINIFRAME" = "yes"; then
11946 cat >> confdefs.h <<\EOF
11947 #define wxUSE_MINIFRAME 1
11948 EOF
11949
11950 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
11951 fi
11952
11953 if test "$wxUSE_HTML" = "yes"; then
11954 cat >> confdefs.h <<\EOF
11955 #define wxUSE_HTML 1
11956 EOF
11957
11958 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
11959 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
11960 fi
11961
11962 if test "$wxUSE_VALIDATORS" = "yes"; then
11963 cat >> confdefs.h <<\EOF
11964 #define wxUSE_VALIDATORS 1
11965 EOF
11966
11967 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
11968 fi
11969
11970 if test "$wxUSE_GIF" = "yes" ; then
11971 cat >> confdefs.h <<\EOF
11972 #define wxUSE_GIF 1
11973 EOF
11974
11975 fi
11976
11977 if test "$wxUSE_PCX" = "yes" ; then
11978 cat >> confdefs.h <<\EOF
11979 #define wxUSE_PCX 1
11980 EOF
11981
11982 fi
11983
11984 if test "$wxUSE_PNM" = "yes" ; then
11985 cat >> confdefs.h <<\EOF
11986 #define wxUSE_PNM 1
11987 EOF
11988
11989 fi
11990
11991
11992 GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK"
11993
11994 EXTRA_LIBS="$LIBS $POSIX4_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK"
11995 if test "$wxUSE_GUI" = "yes"; then
11996 EXTRA_LIBS="$EXTRA_LIBS $GUILIBS"
11997 fi
11998
11999 LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
12000
12001 INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TOOLKIT_INCLUDE"
12002
12003 if test "$GXX" = yes ; then
12004 CXXWARNINGS="-Wall"
12005 fi
12006 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
12007
12008 CPPFLAGS="-I\${top_srcdir}/include $CPPFLAGS"
12009 CFLAGS="$CFLAGS $EXTRA_CFLAGS"
12010 CXXFLAGS="$CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS"
12011
12012 if test "$wxUSE_GUI" = "yes"; then
12013
12014 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS bombs controls dialogs drawing dynamic \
12015 forty fractal image wxpoem"
12016 else
12017 SAMPLES_SUBDIRS=""
12018 fi
12019
12020 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '`"
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
12076 echo "configure:12077: checking whether ${MAKE-make} sets \${MAKE}" >&5
12077 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
12078 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
12079 echo $ac_n "(cached) $ac_c" 1>&6
12080 else
12081 cat > conftestmake <<\EOF
12082 all:
12083 @echo 'ac_maketemp="${MAKE}"'
12084 EOF
12085 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12086 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
12087 if test -n "$ac_maketemp"; then
12088 eval ac_cv_prog_make_${ac_make}_set=yes
12089 else
12090 eval ac_cv_prog_make_${ac_make}_set=no
12091 fi
12092 rm -f conftestmake
12093 fi
12094 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
12095 echo "$ac_t""yes" 1>&6
12096 SET_MAKE=
12097 else
12098 echo "$ac_t""no" 1>&6
12099 SET_MAKE="MAKE=${MAKE-make}"
12100 fi
12101
12102
12103
12104
12105 if test "${TOOLKIT_DIR}" = "msw" ; then
12106 GL_TOOLKIT_DIR="win"
12107 else
12108 GL_TOOLKIT_DIR="${TOOLKIT_DIR}"
12109 fi
12110
12111
12112 trap '' 1 2 15
12113 cat > confcache <<\EOF
12114 # This file is a shell script that caches the results of configure
12115 # tests run on this system so they can be shared between configure
12116 # scripts and configure runs. It is not useful on other systems.
12117 # If it contains results you don't want to keep, you may remove or edit it.
12118 #
12119 # By default, configure uses ./config.cache as the cache file,
12120 # creating it if it does not exist already. You can give configure
12121 # the --cache-file=FILE option to use a different cache file; that is
12122 # what configure does when it calls configure scripts in
12123 # subdirectories, so they share the cache.
12124 # Giving --cache-file=/dev/null disables caching, for debugging configure.
12125 # config.status only pays attention to the cache file if you give it the
12126 # --recheck option to rerun configure.
12127 #
12128 EOF
12129 # The following way of writing the cache mishandles newlines in values,
12130 # but we know of no workaround that is simple, portable, and efficient.
12131 # So, don't put newlines in cache variables' values.
12132 # Ultrix sh set writes to stderr and can't be redirected directly,
12133 # and sets the high bit in the cache file unless we assign to the vars.
12134 (set) 2>&1 |
12135 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12136 *ac_space=\ *)
12137 # `set' does not quote correctly, so add quotes (double-quote substitution
12138 # turns \\\\ into \\, and sed turns \\ into \).
12139 sed -n \
12140 -e "s/'/'\\\\''/g" \
12141 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12142 ;;
12143 *)
12144 # `set' quotes correctly as required by POSIX, so do not add quotes.
12145 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12146 ;;
12147 esac >> confcache
12148 if cmp -s $cache_file confcache; then
12149 :
12150 else
12151 if test -w $cache_file; then
12152 echo "updating cache $cache_file"
12153 cat confcache > $cache_file
12154 else
12155 echo "not updating unwritable cache $cache_file"
12156 fi
12157 fi
12158 rm -f confcache
12159
12160 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12161
12162 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12163 # Let make expand exec_prefix.
12164 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12165
12166 # Any assignment to VPATH causes Sun make to only execute
12167 # the first set of double-colon rules, so remove it if not needed.
12168 # If there is a colon in the path, we need to keep it.
12169 if test "x$srcdir" = x.; then
12170 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
12171 fi
12172
12173 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12174
12175 DEFS=-DHAVE_CONFIG_H
12176
12177 # Without the "./", some shells look in PATH for config.status.
12178 : ${CONFIG_STATUS=./config.status}
12179
12180 echo creating $CONFIG_STATUS
12181 rm -f $CONFIG_STATUS
12182 cat > $CONFIG_STATUS <<EOF
12183 #! /bin/sh
12184 # Generated automatically by configure.
12185 # Run this file to recreate the current configuration.
12186 # This directory was configured as follows,
12187 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12188 #
12189 # $0 $ac_configure_args
12190 #
12191 # Compiler output produced by configure, useful for debugging
12192 # configure, is in ./config.log if it exists.
12193
12194 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12195 for ac_option
12196 do
12197 case "\$ac_option" in
12198 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12199 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12200 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12201 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12202 echo "$CONFIG_STATUS generated by autoconf version 2.13"
12203 exit 0 ;;
12204 -help | --help | --hel | --he | --h)
12205 echo "\$ac_cs_usage"; exit 0 ;;
12206 *) echo "\$ac_cs_usage"; exit 1 ;;
12207 esac
12208 done
12209
12210 ac_given_srcdir=$srcdir
12211 ac_given_INSTALL="$INSTALL"
12212
12213 trap 'rm -fr `echo "
12214 wx-config
12215 src/make.env
12216 src/makeprog.env
12217 src/makelib.env
12218 Makefile
12219 samples/Makefile
12220 samples/bombs/Makefile
12221 samples/caret/Makefile
12222 samples/checklst/Makefile
12223 samples/config/Makefile
12224 samples/controls/Makefile
12225 samples/db/Makefile
12226 samples/dialogs/Makefile
12227 samples/docview/Makefile
12228 samples/docvwmdi/Makefile
12229 samples/dnd/Makefile
12230 samples/drawing/Makefile
12231 samples/forty/Makefile
12232 samples/fractal/Makefile
12233 samples/image/Makefile
12234 samples/internat/Makefile
12235 samples/layout/Makefile
12236 samples/listctrl/Makefile
12237 samples/mdi/Makefile
12238 samples/minifram/Makefile
12239 samples/minimal/Makefile
12240 samples/nettest/Makefile
12241 samples/newgrid/Makefile
12242 samples/notebook/Makefile
12243 samples/png/Makefile
12244 samples/printing/Makefile
12245 samples/proplist/Makefile
12246 samples/richedit/Makefile
12247 samples/resource/Makefile
12248 samples/sashtest/Makefile
12249 samples/scroll/Makefile
12250 samples/splitter/Makefile
12251 samples/text/Makefile
12252 samples/thread/Makefile
12253 samples/toolbar/Makefile
12254 samples/treectrl/Makefile
12255 samples/typetest/Makefile
12256 samples/validate/Makefile
12257 samples/wxpoem/Makefile
12258 samples/wxsocket/Makefile
12259 samples/wizard/Makefile
12260 samples/html/Makefile
12261 samples/html/about/Makefile
12262 samples/html/help/Makefile
12263 samples/html/printing/Makefile
12264 samples/html/test/Makefile
12265 samples/html/zip/Makefile
12266 samples/html/virtual/Makefile
12267 samples/html/widget/Makefile
12268 utils/Makefile
12269 utils/wxMMedia2/Makefile
12270 utils/wxMMedia2/lib/Makefile
12271 utils/wxMMedia2/sample/Makefile
12272 utils/glcanvas/Makefile
12273 utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile
12274 utils/ogl/Makefile
12275 utils/ogl/src/Makefile
12276 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12277 EOF
12278 cat >> $CONFIG_STATUS <<EOF
12279
12280 # Protect against being on the right side of a sed subst in config.status.
12281 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12282 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12283 $ac_vpsub
12284 $extrasub
12285 s%@SHELL@%$SHELL%g
12286 s%@CFLAGS@%$CFLAGS%g
12287 s%@CPPFLAGS@%$CPPFLAGS%g
12288 s%@CXXFLAGS@%$CXXFLAGS%g
12289 s%@FFLAGS@%$FFLAGS%g
12290 s%@DEFS@%$DEFS%g
12291 s%@LDFLAGS@%$LDFLAGS%g
12292 s%@LIBS@%$LIBS%g
12293 s%@exec_prefix@%$exec_prefix%g
12294 s%@prefix@%$prefix%g
12295 s%@program_transform_name@%$program_transform_name%g
12296 s%@bindir@%$bindir%g
12297 s%@sbindir@%$sbindir%g
12298 s%@libexecdir@%$libexecdir%g
12299 s%@datadir@%$datadir%g
12300 s%@sysconfdir@%$sysconfdir%g
12301 s%@sharedstatedir@%$sharedstatedir%g
12302 s%@localstatedir@%$localstatedir%g
12303 s%@libdir@%$libdir%g
12304 s%@includedir@%$includedir%g
12305 s%@oldincludedir@%$oldincludedir%g
12306 s%@infodir@%$infodir%g
12307 s%@mandir@%$mandir%g
12308 s%@host@%$host%g
12309 s%@host_alias@%$host_alias%g
12310 s%@host_cpu@%$host_cpu%g
12311 s%@host_vendor@%$host_vendor%g
12312 s%@host_os@%$host_os%g
12313 s%@target@%$target%g
12314 s%@target_alias@%$target_alias%g
12315 s%@target_cpu@%$target_cpu%g
12316 s%@target_vendor@%$target_vendor%g
12317 s%@target_os@%$target_os%g
12318 s%@build@%$build%g
12319 s%@build_alias@%$build_alias%g
12320 s%@build_cpu@%$build_cpu%g
12321 s%@build_vendor@%$build_vendor%g
12322 s%@build_os@%$build_os%g
12323 s%@CC@%$CC%g
12324 s%@CPP@%$CPP%g
12325 s%@CXX@%$CXX%g
12326 s%@CXXCPP@%$CXXCPP%g
12327 s%@RANLIB@%$RANLIB%g
12328 s%@AR@%$AR%g
12329 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12330 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12331 s%@INSTALL_DATA@%$INSTALL_DATA%g
12332 s%@STRIP@%$STRIP%g
12333 s%@YACC@%$YACC%g
12334 s%@LEX@%$LEX%g
12335 s%@LEXLIB@%$LEXLIB%g
12336 s%@LN_S@%$LN_S%g
12337 s%@GTK_CONFIG@%$GTK_CONFIG%g
12338 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
12339 s%@GTK_LIBS@%$GTK_LIBS%g
12340 s%@X_CFLAGS@%$X_CFLAGS%g
12341 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
12342 s%@X_LIBS@%$X_LIBS%g
12343 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
12344 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
12345 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
12346 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
12347 s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
12348 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
12349 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
12350 s%@WX_LIBRARY@%$WX_LIBRARY%g
12351 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
12352 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
12353 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
12354 s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
12355 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
12356 s%@WX_ALL@%$WX_ALL%g
12357 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
12358 s%@SHARED_LD@%$SHARED_LD%g
12359 s%@PIC_FLAG@%$PIC_FLAG%g
12360 s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
12361 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
12362 s%@TOOLKIT@%$TOOLKIT%g
12363 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
12364 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
12365 s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
12366 s%@GUIHEADERS@%$GUIHEADERS%g
12367 s%@GUIOBJS@%$GUIOBJS%g
12368 s%@COMMONOBJS@%$COMMONOBJS%g
12369 s%@GENERICOBJS@%$GENERICOBJS%g
12370 s%@GUIDEPS@%$GUIDEPS%g
12371 s%@COMMONDEPS@%$COMMONDEPS%g
12372 s%@GENERICDEPS@%$GENERICDEPS%g
12373 s%@IODBCOBJS@%$IODBCOBJS%g
12374 s%@UNIXOBJS@%$UNIXOBJS%g
12375 s%@UNIXDEPS@%$UNIXDEPS%g
12376 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
12377 s%@ALL_DEPFILES@%$ALL_DEPFILES%g
12378 s%@ALL_HEADERS@%$ALL_HEADERS%g
12379 s%@GUIDIST@%$GUIDIST%g
12380 s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
12381 s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
12382 s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
12383 s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
12384 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
12385 s%@USER_SUBDIRS@%$USER_SUBDIRS%g
12386 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
12387 s%@LD_LIBS@%$LD_LIBS%g
12388 s%@SET_MAKE@%$SET_MAKE%g
12389 s%@GL_TOOLKIT_DIR@%$GL_TOOLKIT_DIR%g
12390
12391 CEOF
12392 EOF
12393
12394 cat >> $CONFIG_STATUS <<\EOF
12395
12396 # Split the substitutions into bite-sized pieces for seds with
12397 # small command number limits, like on Digital OSF/1 and HP-UX.
12398 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
12399 ac_file=1 # Number of current file.
12400 ac_beg=1 # First line for current file.
12401 ac_end=$ac_max_sed_cmds # Line after last line for current file.
12402 ac_more_lines=:
12403 ac_sed_cmds=""
12404 while $ac_more_lines; do
12405 if test $ac_beg -gt 1; then
12406 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
12407 else
12408 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
12409 fi
12410 if test ! -s conftest.s$ac_file; then
12411 ac_more_lines=false
12412 rm -f conftest.s$ac_file
12413 else
12414 if test -z "$ac_sed_cmds"; then
12415 ac_sed_cmds="sed -f conftest.s$ac_file"
12416 else
12417 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
12418 fi
12419 ac_file=`expr $ac_file + 1`
12420 ac_beg=$ac_end
12421 ac_end=`expr $ac_end + $ac_max_sed_cmds`
12422 fi
12423 done
12424 if test -z "$ac_sed_cmds"; then
12425 ac_sed_cmds=cat
12426 fi
12427 EOF
12428
12429 cat >> $CONFIG_STATUS <<EOF
12430
12431 CONFIG_FILES=\${CONFIG_FILES-"wx-config
12432 src/make.env
12433 src/makeprog.env
12434 src/makelib.env
12435 Makefile
12436 samples/Makefile
12437 samples/bombs/Makefile
12438 samples/caret/Makefile
12439 samples/checklst/Makefile
12440 samples/config/Makefile
12441 samples/controls/Makefile
12442 samples/db/Makefile
12443 samples/dialogs/Makefile
12444 samples/docview/Makefile
12445 samples/docvwmdi/Makefile
12446 samples/dnd/Makefile
12447 samples/drawing/Makefile
12448 samples/forty/Makefile
12449 samples/fractal/Makefile
12450 samples/image/Makefile
12451 samples/internat/Makefile
12452 samples/layout/Makefile
12453 samples/listctrl/Makefile
12454 samples/mdi/Makefile
12455 samples/minifram/Makefile
12456 samples/minimal/Makefile
12457 samples/nettest/Makefile
12458 samples/newgrid/Makefile
12459 samples/notebook/Makefile
12460 samples/png/Makefile
12461 samples/printing/Makefile
12462 samples/proplist/Makefile
12463 samples/richedit/Makefile
12464 samples/resource/Makefile
12465 samples/sashtest/Makefile
12466 samples/scroll/Makefile
12467 samples/splitter/Makefile
12468 samples/text/Makefile
12469 samples/thread/Makefile
12470 samples/toolbar/Makefile
12471 samples/treectrl/Makefile
12472 samples/typetest/Makefile
12473 samples/validate/Makefile
12474 samples/wxpoem/Makefile
12475 samples/wxsocket/Makefile
12476 samples/wizard/Makefile
12477 samples/html/Makefile
12478 samples/html/about/Makefile
12479 samples/html/help/Makefile
12480 samples/html/printing/Makefile
12481 samples/html/test/Makefile
12482 samples/html/zip/Makefile
12483 samples/html/virtual/Makefile
12484 samples/html/widget/Makefile
12485 utils/Makefile
12486 utils/wxMMedia2/Makefile
12487 utils/wxMMedia2/lib/Makefile
12488 utils/wxMMedia2/sample/Makefile
12489 utils/glcanvas/Makefile
12490 utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile
12491 utils/ogl/Makefile
12492 utils/ogl/src/Makefile
12493 "}
12494 EOF
12495 cat >> $CONFIG_STATUS <<\EOF
12496 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
12497 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12498 case "$ac_file" in
12499 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12500 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12501 *) ac_file_in="${ac_file}.in" ;;
12502 esac
12503
12504 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12505
12506 # Remove last slash and all that follows it. Not all systems have dirname.
12507 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12508 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12509 # The file is in a subdirectory.
12510 test ! -d "$ac_dir" && mkdir "$ac_dir"
12511 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
12512 # A "../" for each directory in $ac_dir_suffix.
12513 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12514 else
12515 ac_dir_suffix= ac_dots=
12516 fi
12517
12518 case "$ac_given_srcdir" in
12519 .) srcdir=.
12520 if test -z "$ac_dots"; then top_srcdir=.
12521 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12522 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
12523 *) # Relative path.
12524 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12525 top_srcdir="$ac_dots$ac_given_srcdir" ;;
12526 esac
12527
12528 case "$ac_given_INSTALL" in
12529 [/$]*) INSTALL="$ac_given_INSTALL" ;;
12530 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
12531 esac
12532
12533 echo creating "$ac_file"
12534 rm -f "$ac_file"
12535 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12536 case "$ac_file" in
12537 *Makefile*) ac_comsub="1i\\
12538 # $configure_input" ;;
12539 *) ac_comsub= ;;
12540 esac
12541
12542 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12543 sed -e "$ac_comsub
12544 s%@configure_input@%$configure_input%g
12545 s%@srcdir@%$srcdir%g
12546 s%@top_srcdir@%$top_srcdir%g
12547 s%@INSTALL@%$INSTALL%g
12548 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
12549 fi; done
12550 rm -f conftest.s*
12551
12552 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12553 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12554 #
12555 # ac_d sets the value in "#define NAME VALUE" lines.
12556 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12557 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
12558 ac_dC='\3'
12559 ac_dD='%g'
12560 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12561 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12562 ac_uB='\([ ]\)%\1#\2define\3'
12563 ac_uC=' '
12564 ac_uD='\4%g'
12565 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12566 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12567 ac_eB='$%\1#\2define\3'
12568 ac_eC=' '
12569 ac_eD='%g'
12570
12571 if test "${CONFIG_HEADERS+set}" != set; then
12572 EOF
12573 cat >> $CONFIG_STATUS <<EOF
12574 CONFIG_HEADERS="setup.h:setup.h.in"
12575 EOF
12576 cat >> $CONFIG_STATUS <<\EOF
12577 fi
12578 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
12579 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12580 case "$ac_file" in
12581 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12582 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12583 *) ac_file_in="${ac_file}.in" ;;
12584 esac
12585
12586 echo creating $ac_file
12587
12588 rm -f conftest.frag conftest.in conftest.out
12589 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12590 cat $ac_file_inputs > conftest.in
12591
12592 EOF
12593
12594 # Transform confdefs.h into a sed script conftest.vals that substitutes
12595 # the proper values into config.h.in to produce config.h. And first:
12596 # Protect against being on the right side of a sed subst in config.status.
12597 # Protect against being in an unquoted here document in config.status.
12598 rm -f conftest.vals
12599 cat > conftest.hdr <<\EOF
12600 s/[\\&%]/\\&/g
12601 s%[\\$`]%\\&%g
12602 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12603 s%ac_d%ac_u%gp
12604 s%ac_u%ac_e%gp
12605 EOF
12606 sed -n -f conftest.hdr confdefs.h > conftest.vals
12607 rm -f conftest.hdr
12608
12609 # This sed command replaces #undef with comments. This is necessary, for
12610 # example, in the case of _POSIX_SOURCE, which is predefined and required
12611 # on some systems where configure will not decide to define it.
12612 cat >> conftest.vals <<\EOF
12613 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12614 EOF
12615
12616 # Break up conftest.vals because some shells have a limit on
12617 # the size of here documents, and old seds have small limits too.
12618
12619 rm -f conftest.tail
12620 while :
12621 do
12622 ac_lines=`grep -c . conftest.vals`
12623 # grep -c gives empty output for an empty file on some AIX systems.
12624 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12625 # Write a limited-size here document to conftest.frag.
12626 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12627 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12628 echo 'CEOF
12629 sed -f conftest.frag conftest.in > conftest.out
12630 rm -f conftest.in
12631 mv conftest.out conftest.in
12632 ' >> $CONFIG_STATUS
12633 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12634 rm -f conftest.vals
12635 mv conftest.tail conftest.vals
12636 done
12637 rm -f conftest.vals
12638
12639 cat >> $CONFIG_STATUS <<\EOF
12640 rm -f conftest.frag conftest.h
12641 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12642 cat conftest.in >> conftest.h
12643 rm -f conftest.in
12644 if cmp -s $ac_file conftest.h 2>/dev/null; then
12645 echo "$ac_file is unchanged"
12646 rm -f conftest.h
12647 else
12648 # Remove last slash and all that follows it. Not all systems have dirname.
12649 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12650 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12651 # The file is in a subdirectory.
12652 test ! -d "$ac_dir" && mkdir "$ac_dir"
12653 fi
12654 rm -f $ac_file
12655 mv conftest.h $ac_file
12656 fi
12657 fi; done
12658
12659 EOF
12660 cat >> $CONFIG_STATUS <<EOF
12661
12662 LN_S="${ac_cv_prog_LN_S}"
12663 TOOLKIT_DIR="${TOOLKIT_DIR}"
12664
12665
12666 EOF
12667 cat >> $CONFIG_STATUS <<\EOF
12668
12669 chmod +x wx-config
12670 if test ! -d include; then
12671 mkdir include
12672 fi
12673 if test ! -d include/wx; then
12674 mkdir include/wx
12675 fi
12676 if test ! -d include/wx/${TOOLKIT_DIR}; then
12677 mkdir include/wx/${TOOLKIT_DIR}
12678 fi
12679 cp -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
12680
12681 exit 0
12682 EOF
12683 chmod +x $CONFIG_STATUS
12684 rm -fr confdefs* $ac_clean_files
12685 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
12686
12687