]> git.saurik.com Git - wxWidgets.git/blob - configure
fb646eecbf87aef4c29b4b5274936e6a8474b0b2
[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.12
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 --with-gtk use GTK+"
56 ac_help="$ac_help
57 --with-motif use Motif/Lesstif"
58 ac_help="$ac_help
59 --with-wine use WINE"
60 ac_help="$ac_help
61 --with-cygwin use Cygwin for MS-Windows"
62 ac_help="$ac_help
63 --with-mingw use GCC Minimal MS-Windows"
64 ac_help="$ac_help
65 --with-gtk-prefix=PFX Prefix where GTK is installed"
66 ac_help="$ac_help
67 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
68 ac_help="$ac_help
69 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
70 ac_help="$ac_help
71 --with-zlib use zlib for LZW compression"
72 ac_help="$ac_help
73 --with-libpng use libpng (PNG image format)"
74 ac_help="$ac_help
75 --with-libjpeg use libjpeg (JPEG file format)"
76 ac_help="$ac_help
77 --with-opengl use OpenGL (or Mesa)"
78 ac_help="$ac_help
79 --with-odbc use the IODBC and wxODBC classes"
80 ac_help="$ac_help
81 --enable-shared create shared library code"
82 ac_help="$ac_help
83 --enable-optimise create optimised code"
84 ac_help="$ac_help
85 --enable-debug same as debug_flag and debug_info"
86 ac_help="$ac_help
87 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
88 ac_help="$ac_help
89 --enable-debug_info create code with debugging information"
90 ac_help="$ac_help
91 --enable-debug_gdb create code with extra GDB debugging information"
92 ac_help="$ac_help
93 --enable-debug_cntxt use wxDebugContext"
94 ac_help="$ac_help
95 --enable-mem_tracing create code with memory tracing"
96 ac_help="$ac_help
97 --enable-profile create code with profiling information"
98 ac_help="$ac_help
99 --enable-no_rtti create code without RTTI information"
100 ac_help="$ac_help
101 --enable-no_exceptions create code without exceptions information"
102 ac_help="$ac_help
103 --enable-permissive compile code disregarding strict ANSI"
104 ac_help="$ac_help
105 --enable-no_deps create code without dependency information"
106 ac_help="$ac_help
107 --enable-gui use GUI classes"
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-imaglist use wxImageList class"
204 ac_help="$ac_help
205 --enable-listbox use wxListBox class"
206 ac_help="$ac_help
207 --enable-listctrl use wxListCtrl class"
208 ac_help="$ac_help
209 --enable-notebook use wxNotebook class"
210 ac_help="$ac_help
211 --enable-radiobox use wxRadioBox class"
212 ac_help="$ac_help
213 --enable-radiobtn use wxRadioButton class"
214 ac_help="$ac_help
215 --enable-sash use wxSashWindow class"
216 ac_help="$ac_help
217 --enable-scrollbar use wxScrollBar class and scrollable windows"
218 ac_help="$ac_help
219 --enable-slider use wxSlider class"
220 ac_help="$ac_help
221 --enable-spinbtn use wxSpinButton class"
222 ac_help="$ac_help
223 --enable-splitter use wxSplitterWindow class"
224 ac_help="$ac_help
225 --enable-statbmp use wxStaticBitmap class"
226 ac_help="$ac_help
227 --enable-statbox use wxStaticBox class"
228 ac_help="$ac_help
229 --enable-statline use wxStaticLine class"
230 ac_help="$ac_help
231 --enable-statusbar use wxStatusBar class"
232 ac_help="$ac_help
233 --enable-tabdialog use wxTabControl class"
234 ac_help="$ac_help
235 --enable-toolbar use wxToolBar class"
236 ac_help="$ac_help
237 --enable-treectrl use wxTreeCtrl class"
238 ac_help="$ac_help
239 --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
240 ac_help="$ac_help
241 --enable-dirdlg use wxDirDialog"
242 ac_help="$ac_help
243 --enable-textdlg use wxTextDialog"
244 ac_help="$ac_help
245 --enable-tipdlg use startup tips"
246 ac_help="$ac_help
247 --enable-progressdlg use wxProgressDialog"
248 ac_help="$ac_help
249 --enable-miniframe use wxMiniFrame class"
250 ac_help="$ac_help
251 --enable-html use wxHTML sub-library"
252 ac_help="$ac_help
253 --enable-tooltips use wxToolTip class"
254 ac_help="$ac_help
255 --enable-splines use spline drawing code"
256 ac_help="$ac_help
257 --enable-validators use wxValidator and derived classes"
258 ac_help="$ac_help
259 --enable-busyinfo use wxBusyInfo"
260 ac_help="$ac_help
261 --enable-gif use gif images (GIF file format)"
262 ac_help="$ac_help
263 --enable-pcx use pcx images (PCX file format)"
264 ac_help="$ac_help
265 --enable-pnm use pnm images (PNM file format)"
266 ac_help="$ac_help
267 --with-x use the X Window System"
268
269 # Initialize some variables set by options.
270 # The variables have the same names as the options, with
271 # dashes changed to underlines.
272 build=NONE
273 cache_file=./config.cache
274 exec_prefix=NONE
275 host=NONE
276 no_create=
277 nonopt=NONE
278 no_recursion=
279 prefix=NONE
280 program_prefix=NONE
281 program_suffix=NONE
282 program_transform_name=s,x,x,
283 silent=
284 site=
285 srcdir=
286 target=NONE
287 verbose=
288 x_includes=NONE
289 x_libraries=NONE
290 bindir='${exec_prefix}/bin'
291 sbindir='${exec_prefix}/sbin'
292 libexecdir='${exec_prefix}/libexec'
293 datadir='${prefix}/share'
294 sysconfdir='${prefix}/etc'
295 sharedstatedir='${prefix}/com'
296 localstatedir='${prefix}/var'
297 libdir='${exec_prefix}/lib'
298 includedir='${prefix}/include'
299 oldincludedir='/usr/include'
300 infodir='${prefix}/info'
301 mandir='${prefix}/man'
302
303 # Initialize some other variables.
304 subdirs=
305 MFLAGS= MAKEFLAGS=
306 # Maximum number of lines to put in a shell here document.
307 ac_max_here_lines=12
308
309 ac_prev=
310 for ac_option
311 do
312
313 # If the previous option needs an argument, assign it.
314 if test -n "$ac_prev"; then
315 eval "$ac_prev=\$ac_option"
316 ac_prev=
317 continue
318 fi
319
320 case "$ac_option" in
321 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
322 *) ac_optarg= ;;
323 esac
324
325 # Accept the important Cygnus configure options, so we can diagnose typos.
326
327 case "$ac_option" in
328
329 -bindir | --bindir | --bindi | --bind | --bin | --bi)
330 ac_prev=bindir ;;
331 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
332 bindir="$ac_optarg" ;;
333
334 -build | --build | --buil | --bui | --bu)
335 ac_prev=build ;;
336 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
337 build="$ac_optarg" ;;
338
339 -cache-file | --cache-file | --cache-fil | --cache-fi \
340 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
341 ac_prev=cache_file ;;
342 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
343 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
344 cache_file="$ac_optarg" ;;
345
346 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
347 ac_prev=datadir ;;
348 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
349 | --da=*)
350 datadir="$ac_optarg" ;;
351
352 -disable-* | --disable-*)
353 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
354 # Reject names that are not valid shell variable names.
355 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
356 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
357 fi
358 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
359 eval "enable_${ac_feature}=no" ;;
360
361 -enable-* | --enable-*)
362 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
363 # Reject names that are not valid shell variable names.
364 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
365 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
366 fi
367 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
368 case "$ac_option" in
369 *=*) ;;
370 *) ac_optarg=yes ;;
371 esac
372 eval "enable_${ac_feature}='$ac_optarg'" ;;
373
374 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
375 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
376 | --exec | --exe | --ex)
377 ac_prev=exec_prefix ;;
378 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
379 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
380 | --exec=* | --exe=* | --ex=*)
381 exec_prefix="$ac_optarg" ;;
382
383 -gas | --gas | --ga | --g)
384 # Obsolete; use --with-gas.
385 with_gas=yes ;;
386
387 -help | --help | --hel | --he)
388 # Omit some internal or obsolete options to make the list less imposing.
389 # This message is too long to be a string in the A/UX 3.1 sh.
390 cat << EOF
391 Usage: configure [options] [host]
392 Options: [defaults in brackets after descriptions]
393 Configuration:
394 --cache-file=FILE cache test results in FILE
395 --help print this message
396 --no-create do not create output files
397 --quiet, --silent do not print \`checking...' messages
398 --version print the version of autoconf that created configure
399 Directory and file names:
400 --prefix=PREFIX install architecture-independent files in PREFIX
401 [$ac_default_prefix]
402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
403 [same as prefix]
404 --bindir=DIR user executables in DIR [EPREFIX/bin]
405 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
406 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
407 --datadir=DIR read-only architecture-independent data in DIR
408 [PREFIX/share]
409 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
410 --sharedstatedir=DIR modifiable architecture-independent data in DIR
411 [PREFIX/com]
412 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
413 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
414 --includedir=DIR C header files in DIR [PREFIX/include]
415 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
416 --infodir=DIR info documentation in DIR [PREFIX/info]
417 --mandir=DIR man documentation in DIR [PREFIX/man]
418 --srcdir=DIR find the sources in DIR [configure dir or ..]
419 --program-prefix=PREFIX prepend PREFIX to installed program names
420 --program-suffix=SUFFIX append SUFFIX to installed program names
421 --program-transform-name=PROGRAM
422 run sed PROGRAM on installed program names
423 EOF
424 cat << EOF
425 Host type:
426 --build=BUILD configure for building on BUILD [BUILD=HOST]
427 --host=HOST configure for HOST [guessed]
428 --target=TARGET configure for TARGET [TARGET=HOST]
429 Features and packages:
430 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
431 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
432 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
433 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
434 --x-includes=DIR X include files are in DIR
435 --x-libraries=DIR X library files are in DIR
436 EOF
437 if test -n "$ac_help"; then
438 echo "--enable and --with options recognized:$ac_help"
439 fi
440 exit 0 ;;
441
442 -host | --host | --hos | --ho)
443 ac_prev=host ;;
444 -host=* | --host=* | --hos=* | --ho=*)
445 host="$ac_optarg" ;;
446
447 -includedir | --includedir | --includedi | --included | --include \
448 | --includ | --inclu | --incl | --inc)
449 ac_prev=includedir ;;
450 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
451 | --includ=* | --inclu=* | --incl=* | --inc=*)
452 includedir="$ac_optarg" ;;
453
454 -infodir | --infodir | --infodi | --infod | --info | --inf)
455 ac_prev=infodir ;;
456 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
457 infodir="$ac_optarg" ;;
458
459 -libdir | --libdir | --libdi | --libd)
460 ac_prev=libdir ;;
461 -libdir=* | --libdir=* | --libdi=* | --libd=*)
462 libdir="$ac_optarg" ;;
463
464 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
465 | --libexe | --libex | --libe)
466 ac_prev=libexecdir ;;
467 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
468 | --libexe=* | --libex=* | --libe=*)
469 libexecdir="$ac_optarg" ;;
470
471 -localstatedir | --localstatedir | --localstatedi | --localstated \
472 | --localstate | --localstat | --localsta | --localst \
473 | --locals | --local | --loca | --loc | --lo)
474 ac_prev=localstatedir ;;
475 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
476 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
477 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
478 localstatedir="$ac_optarg" ;;
479
480 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
481 ac_prev=mandir ;;
482 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483 mandir="$ac_optarg" ;;
484
485 -nfp | --nfp | --nf)
486 # Obsolete; use --without-fp.
487 with_fp=no ;;
488
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490 | --no-cr | --no-c)
491 no_create=yes ;;
492
493 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
495 no_recursion=yes ;;
496
497 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
498 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
499 | --oldin | --oldi | --old | --ol | --o)
500 ac_prev=oldincludedir ;;
501 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
502 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
503 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
504 oldincludedir="$ac_optarg" ;;
505
506 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
507 ac_prev=prefix ;;
508 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
509 prefix="$ac_optarg" ;;
510
511 -program-prefix | --program-prefix | --program-prefi | --program-pref \
512 | --program-pre | --program-pr | --program-p)
513 ac_prev=program_prefix ;;
514 -program-prefix=* | --program-prefix=* | --program-prefi=* \
515 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
516 program_prefix="$ac_optarg" ;;
517
518 -program-suffix | --program-suffix | --program-suffi | --program-suff \
519 | --program-suf | --program-su | --program-s)
520 ac_prev=program_suffix ;;
521 -program-suffix=* | --program-suffix=* | --program-suffi=* \
522 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
523 program_suffix="$ac_optarg" ;;
524
525 -program-transform-name | --program-transform-name \
526 | --program-transform-nam | --program-transform-na \
527 | --program-transform-n | --program-transform- \
528 | --program-transform | --program-transfor \
529 | --program-transfo | --program-transf \
530 | --program-trans | --program-tran \
531 | --progr-tra | --program-tr | --program-t)
532 ac_prev=program_transform_name ;;
533 -program-transform-name=* | --program-transform-name=* \
534 | --program-transform-nam=* | --program-transform-na=* \
535 | --program-transform-n=* | --program-transform-=* \
536 | --program-transform=* | --program-transfor=* \
537 | --program-transfo=* | --program-transf=* \
538 | --program-trans=* | --program-tran=* \
539 | --progr-tra=* | --program-tr=* | --program-t=*)
540 program_transform_name="$ac_optarg" ;;
541
542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
543 | -silent | --silent | --silen | --sile | --sil)
544 silent=yes ;;
545
546 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
547 ac_prev=sbindir ;;
548 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
549 | --sbi=* | --sb=*)
550 sbindir="$ac_optarg" ;;
551
552 -sharedstatedir | --sharedstatedir | --sharedstatedi \
553 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
554 | --sharedst | --shareds | --shared | --share | --shar \
555 | --sha | --sh)
556 ac_prev=sharedstatedir ;;
557 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
558 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
559 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
560 | --sha=* | --sh=*)
561 sharedstatedir="$ac_optarg" ;;
562
563 -site | --site | --sit)
564 ac_prev=site ;;
565 -site=* | --site=* | --sit=*)
566 site="$ac_optarg" ;;
567
568 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
569 ac_prev=srcdir ;;
570 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
571 srcdir="$ac_optarg" ;;
572
573 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
574 | --syscon | --sysco | --sysc | --sys | --sy)
575 ac_prev=sysconfdir ;;
576 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
577 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
578 sysconfdir="$ac_optarg" ;;
579
580 -target | --target | --targe | --targ | --tar | --ta | --t)
581 ac_prev=target ;;
582 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
583 target="$ac_optarg" ;;
584
585 -v | -verbose | --verbose | --verbos | --verbo | --verb)
586 verbose=yes ;;
587
588 -version | --version | --versio | --versi | --vers)
589 echo "configure generated by autoconf version 2.12"
590 exit 0 ;;
591
592 -with-* | --with-*)
593 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
594 # Reject names that are not valid shell variable names.
595 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
596 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
597 fi
598 ac_package=`echo $ac_package| sed 's/-/_/g'`
599 case "$ac_option" in
600 *=*) ;;
601 *) ac_optarg=yes ;;
602 esac
603 eval "with_${ac_package}='$ac_optarg'" ;;
604
605 -without-* | --without-*)
606 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
607 # Reject names that are not valid shell variable names.
608 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
609 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
610 fi
611 ac_package=`echo $ac_package| sed 's/-/_/g'`
612 eval "with_${ac_package}=no" ;;
613
614 --x)
615 # Obsolete; use --with-x.
616 with_x=yes ;;
617
618 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
619 | --x-incl | --x-inc | --x-in | --x-i)
620 ac_prev=x_includes ;;
621 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
622 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
623 x_includes="$ac_optarg" ;;
624
625 -x-libraries | --x-libraries | --x-librarie | --x-librari \
626 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
627 ac_prev=x_libraries ;;
628 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
629 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
630 x_libraries="$ac_optarg" ;;
631
632 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
633 ;;
634
635 *)
636 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
637 echo "configure: warning: $ac_option: invalid host type" 1>&2
638 fi
639 if test "x$nonopt" != xNONE; then
640 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
641 fi
642 nonopt="$ac_option"
643 ;;
644
645 esac
646 done
647
648 if test -n "$ac_prev"; then
649 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
650 fi
651
652 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
653
654 # File descriptor usage:
655 # 0 standard input
656 # 1 file creation
657 # 2 errors and warnings
658 # 3 some systems may open it to /dev/tty
659 # 4 used on the Kubota Titan
660 # 6 checking for... messages and results
661 # 5 compiler messages saved in config.log
662 if test "$silent" = yes; then
663 exec 6>/dev/null
664 else
665 exec 6>&1
666 fi
667 exec 5>./config.log
668
669 echo "\
670 This file contains any messages produced by compilers while
671 running configure, to aid debugging if configure makes a mistake.
672 " 1>&5
673
674 # Strip out --no-create and --no-recursion so they do not pile up.
675 # Also quote any args containing shell metacharacters.
676 ac_configure_args=
677 for ac_arg
678 do
679 case "$ac_arg" in
680 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
681 | --no-cr | --no-c) ;;
682 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
683 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
684 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
685 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
686 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
687 esac
688 done
689
690 # NLS nuisances.
691 # Only set these to C if already set. These must not be set unconditionally
692 # because not all systems understand e.g. LANG=C (notably SCO).
693 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
694 # Non-C LC_CTYPE values break the ctype check.
695 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
696 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
697 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
698 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
699
700 # confdefs.h avoids OS command line length limits that DEFS can exceed.
701 rm -rf conftest* confdefs.h
702 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
703 echo > confdefs.h
704
705 # A filename unique to this package, relative to the directory that
706 # configure is in, which we can look for to find out if srcdir is correct.
707 ac_unique_file=wx-config.in
708
709 # Find the source files, if location was not specified.
710 if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_prog=$0
714 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
715 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
716 srcdir=$ac_confdir
717 if test ! -r $srcdir/$ac_unique_file; then
718 srcdir=..
719 fi
720 else
721 ac_srcdir_defaulted=no
722 fi
723 if test ! -r $srcdir/$ac_unique_file; then
724 if test "$ac_srcdir_defaulted" = yes; then
725 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
726 else
727 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
728 fi
729 fi
730 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
731
732 # Prefer explicitly selected file to automatically selected ones.
733 if test -z "$CONFIG_SITE"; then
734 if test "x$prefix" != xNONE; then
735 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
736 else
737 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
738 fi
739 fi
740 for ac_site_file in $CONFIG_SITE; do
741 if test -r "$ac_site_file"; then
742 echo "loading site script $ac_site_file"
743 . "$ac_site_file"
744 fi
745 done
746
747 if test -r "$cache_file"; then
748 echo "loading cache $cache_file"
749 . $cache_file
750 else
751 echo "creating cache $cache_file"
752 > $cache_file
753 fi
754
755 ac_ext=c
756 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
757 ac_cpp='$CPP $CPPFLAGS'
758 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
759 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
760 cross_compiling=$ac_cv_prog_cc_cross
761
762 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
763 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
764 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
765 ac_n= ac_c='
766 ' ac_t=' '
767 else
768 ac_n=-n ac_c= ac_t=
769 fi
770 else
771 ac_n= ac_c='\c' ac_t=
772 fi
773
774
775
776 ac_aux_dir=
777 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
778 if test -f $ac_dir/install-sh; then
779 ac_aux_dir=$ac_dir
780 ac_install_sh="$ac_aux_dir/install-sh -c"
781 break
782 elif test -f $ac_dir/install.sh; then
783 ac_aux_dir=$ac_dir
784 ac_install_sh="$ac_aux_dir/install.sh -c"
785 break
786 fi
787 done
788 if test -z "$ac_aux_dir"; then
789 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
790 fi
791 ac_config_guess=$ac_aux_dir/config.guess
792 ac_config_sub=$ac_aux_dir/config.sub
793 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
794
795
796 # Do some error checking and defaulting for the host and target type.
797 # The inputs are:
798 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
799 #
800 # The rules are:
801 # 1. You are not allowed to specify --host, --target, and nonopt at the
802 # same time.
803 # 2. Host defaults to nonopt.
804 # 3. If nonopt is not specified, then host defaults to the current host,
805 # as determined by config.guess.
806 # 4. Target and build default to nonopt.
807 # 5. If nonopt is not specified, then target and build default to host.
808
809 # The aliases save the names the user supplied, while $host etc.
810 # will get canonicalized.
811 case $host---$target---$nonopt in
812 NONE---*---* | *---NONE---* | *---*---NONE) ;;
813 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
814 esac
815
816
817 # Make sure we can run config.sub.
818 if $ac_config_sub sun4 >/dev/null 2>&1; then :
819 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
820 fi
821
822 echo $ac_n "checking host system type""... $ac_c" 1>&6
823 echo "configure:824: checking host system type" >&5
824
825 host_alias=$host
826 case "$host_alias" in
827 NONE)
828 case $nonopt in
829 NONE)
830 if host_alias=`$ac_config_guess`; then :
831 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
832 fi ;;
833 *) host_alias=$nonopt ;;
834 esac ;;
835 esac
836
837 host=`$ac_config_sub $host_alias`
838 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
839 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
840 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
841 echo "$ac_t""$host" 1>&6
842
843 echo $ac_n "checking target system type""... $ac_c" 1>&6
844 echo "configure:845: checking target system type" >&5
845
846 target_alias=$target
847 case "$target_alias" in
848 NONE)
849 case $nonopt in
850 NONE) target_alias=$host_alias ;;
851 *) target_alias=$nonopt ;;
852 esac ;;
853 esac
854
855 target=`$ac_config_sub $target_alias`
856 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
857 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
858 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
859 echo "$ac_t""$target" 1>&6
860
861 echo $ac_n "checking build system type""... $ac_c" 1>&6
862 echo "configure:863: checking build system type" >&5
863
864 build_alias=$build
865 case "$build_alias" in
866 NONE)
867 case $nonopt in
868 NONE) build_alias=$host_alias ;;
869 *) build_alias=$nonopt ;;
870 esac ;;
871 esac
872
873 build=`$ac_config_sub $build_alias`
874 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
875 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
876 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
877 echo "$ac_t""$build" 1>&6
878
879 test "$host_alias" != "$target_alias" &&
880 test "$program_prefix$program_suffix$program_transform_name" = \
881 NONENONEs,x,x, &&
882 program_prefix=${target_alias}-
883
884
885
886 WX_MAJOR_VERSION_NUMBER=2
887 WX_MINOR_VERSION_NUMBER=1
888 WX_RELEASE_NUMBER=0
889
890 WX_INTERFACE_AGE=0
891 WX_BINARY_AGE=0
892
893 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
894
895 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
896 WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
897 WX_REVISION=$WX_INTERFACE_AGE
898 WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
899
900
901 USE_UNIX=1
902 USE_LINUX=
903 USE_SGI=
904 USE_HPUX=
905 USE_SYSV=
906 USE_SVR4=
907 USE_AIX=
908 USE_SUN=
909 USE_SOLARIS=
910 USE_SUNOS=
911 USE_ALPHA=
912 USE_OSF=
913 USE_BSD=
914 USE_FREEBSD=
915 USE_VMS=
916 USE_ULTRIX=
917 USE_CYGWIN=
918 USE_MINGW=
919 USE_DATA_GENERAL=
920
921 ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE"
922
923 DEFAULT_wxUSE_GTK=0
924 DEFAULT_wxUSE_MOTIF=0
925 DEFAULT_wxUSE_MSW=0
926 DEFAULT_wxUSE_WINE=0
927
928 DEFAULT_DEFAULT_wxUSE_GTK=0
929 DEFAULT_DEFAULT_wxUSE_MOTIF=0
930 DEFAULT_DEFAULT_wxUSE_MSW=0
931 DEFAULT_DEFAULT_wxUSE_WINE=0
932
933 case "${host}" in
934 *-hp-hpux* )
935 USE_HPUX=1
936 DEFAULT_DEFAULT_wxUSE_MOTIF=1
937 cat >> confdefs.h <<\EOF
938 #define __HPUX__ 1
939 EOF
940
941 ;;
942 *-*-linux* )
943 USE_LINUX=1
944 cat >> confdefs.h <<\EOF
945 #define __LINUX__ 1
946 EOF
947
948 TMP=`uname -m`
949 if test "x$TMP" = "xalpha"; then
950 USE_ALPHA=1
951 cat >> confdefs.h <<\EOF
952 #define __ALPHA__ 1
953 EOF
954
955 fi
956 DEFAULT_DEFAULT_wxUSE_GTK=1
957 ;;
958 *-*-irix5* | *-*-irix6* )
959 USE_SGI=1
960 USE_SVR4=1
961 cat >> confdefs.h <<\EOF
962 #define __SGI__ 1
963 EOF
964
965 cat >> confdefs.h <<\EOF
966 #define __SVR4__ 1
967 EOF
968
969 DEFAULT_DEFAULT_wxUSE_MOTIF=1
970 ;;
971 *-*-solaris2* )
972 USE_SUN=1
973 USE_SOLARIS=1
974 USE_SVR4=1
975 cat >> confdefs.h <<\EOF
976 #define __SUN__ 1
977 EOF
978
979 cat >> confdefs.h <<\EOF
980 #define __SOLARIS__ 1
981 EOF
982
983 cat >> confdefs.h <<\EOF
984 #define __SVR4__ 1
985 EOF
986
987 DEFAULT_DEFAULT_wxUSE_MOTIF=1
988 ;;
989 *-*-sunos4* )
990 USE_SUN=1
991 USE_SUNOS=1
992 USE_BSD=1
993 cat >> confdefs.h <<\EOF
994 #define __SUN__ 1
995 EOF
996
997 cat >> confdefs.h <<\EOF
998 #define __SUNOS__ 1
999 EOF
1000
1001 cat >> confdefs.h <<\EOF
1002 #define __BSD__ 1
1003 EOF
1004
1005 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1006 ;;
1007 *-*-freebsd* | *-*-netbsd*)
1008 USE_BSD=1
1009 USE_FREEBSD=1
1010 cat >> confdefs.h <<\EOF
1011 #define __FREEBSD__ 1
1012 EOF
1013
1014 cat >> confdefs.h <<\EOF
1015 #define __BSD__ 1
1016 EOF
1017
1018 DEFAULT_DEFAULT_wxUSE_GTK=1
1019 ;;
1020 *-*-osf* )
1021 USE_ALPHA=1
1022 USE_OSF=1
1023 cat >> confdefs.h <<\EOF
1024 #define __ALPHA__ 1
1025 EOF
1026
1027 cat >> confdefs.h <<\EOF
1028 #define __OSF__ 1
1029 EOF
1030
1031 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1032 ;;
1033 *-*-dgux5* )
1034 USE_ALPHA=1
1035 USE_SVR4=1
1036 cat >> confdefs.h <<\EOF
1037 #define __ALPHA__ 1
1038 EOF
1039
1040 cat >> confdefs.h <<\EOF
1041 #define __SVR4__ 1
1042 EOF
1043
1044 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1045 ;;
1046 *-*-sysv5* )
1047 USE_SYSV=1
1048 USE_SVR4=1
1049 cat >> confdefs.h <<\EOF
1050 #define __SYSV__ 1
1051 EOF
1052
1053 cat >> confdefs.h <<\EOF
1054 #define __SVR4__ 1
1055 EOF
1056
1057 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1058 ;;
1059 *-*-aix* )
1060 USE_AIX=1
1061 USE_SYSV=1
1062 USE_SVR4=1
1063 cat >> confdefs.h <<\EOF
1064 #define __AIX__ 1
1065 EOF
1066
1067 cat >> confdefs.h <<\EOF
1068 #define __SYSV__ 1
1069 EOF
1070
1071 cat >> confdefs.h <<\EOF
1072 #define __SVR4__ 1
1073 EOF
1074
1075 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1076 ;;
1077
1078 *-*-cygwin32* )
1079 USE_UNIX=0
1080 cat >> confdefs.h <<\EOF
1081 #define __WIN32__ 1
1082 EOF
1083
1084 cat >> confdefs.h <<\EOF
1085 #define __WIN95__ 1
1086 EOF
1087
1088 cat >> confdefs.h <<\EOF
1089 #define __WINDOWS__ 1
1090 EOF
1091
1092 cat >> confdefs.h <<\EOF
1093 #define __GNUWIN32__ 1
1094 EOF
1095
1096 cat >> confdefs.h <<\EOF
1097 #define STRICT 1
1098 EOF
1099
1100 cat >> confdefs.h <<\EOF
1101 #define WINVER 0x0400
1102 EOF
1103
1104 DEFAULT_DEFAULT_wxUSE_MSW=1
1105 ;;
1106 *-*-mingw32* )
1107 USE_UNIX=0
1108 cat >> confdefs.h <<\EOF
1109 #define __WIN32__ 1
1110 EOF
1111
1112 cat >> confdefs.h <<\EOF
1113 #define __WIN95__ 1
1114 EOF
1115
1116 cat >> confdefs.h <<\EOF
1117 #define __WINDOWS__ 1
1118 EOF
1119
1120 cat >> confdefs.h <<\EOF
1121 #define __GNUWIN32__ 1
1122 EOF
1123
1124 cat >> confdefs.h <<\EOF
1125 #define STRICT 1
1126 EOF
1127
1128 cat >> confdefs.h <<\EOF
1129 #define WINVER 0x0400
1130 EOF
1131
1132 DEFAULT_DEFAULT_wxUSE_MSW=1
1133 ;;
1134
1135 *-pc-os2_emx )
1136 cat >> confdefs.h <<\EOF
1137 #define __EMX__ 1
1138 EOF
1139
1140 ;;
1141
1142 *)
1143 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1144 esac
1145
1146 if test "$USE_UNIX" = 1 ; then
1147 wxUSE_UNIX=yes
1148 cat >> confdefs.h <<\EOF
1149 #define __UNIX__ 1
1150 EOF
1151
1152 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1153 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1154 fi
1155
1156 if test "$USE_LINUX" = 1; then
1157 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
1158 echo "configure:1159: checking for gettext in -lc" >&5
1159 ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1160 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1161 echo $ac_n "(cached) $ac_c" 1>&6
1162 else
1163 ac_save_LIBS="$LIBS"
1164 LIBS="-lc $LIBS"
1165 cat > conftest.$ac_ext <<EOF
1166 #line 1167 "configure"
1167 #include "confdefs.h"
1168 /* Override any gcc2 internal prototype to avoid an error. */
1169 /* We use char because int might match the return type of a gcc2
1170 builtin and then its argument prototype would still apply. */
1171 char gettext();
1172
1173 int main() {
1174 gettext()
1175 ; return 0; }
1176 EOF
1177 if { (eval echo configure:1178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1178 rm -rf conftest*
1179 eval "ac_cv_lib_$ac_lib_var=yes"
1180 else
1181 echo "configure: failed program was:" >&5
1182 cat conftest.$ac_ext >&5
1183 rm -rf conftest*
1184 eval "ac_cv_lib_$ac_lib_var=no"
1185 fi
1186 rm -f conftest*
1187 LIBS="$ac_save_LIBS"
1188
1189 fi
1190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1191 echo "$ac_t""yes" 1>&6
1192 cat >> confdefs.h <<\EOF
1193 #define wxHAVE_GLIBC2 1
1194 EOF
1195
1196 else
1197 echo "$ac_t""no" 1>&6
1198 fi
1199
1200 fi
1201
1202
1203
1204
1205 wx_arg_cache_file="configarg.cache"
1206 echo "loading argument cache $wx_arg_cache_file"
1207 rm -f ${wx_arg_cache_file}.tmp
1208 touch ${wx_arg_cache_file}.tmp
1209 touch ${wx_arg_cache_file}
1210
1211
1212 DEBUG_CONFIGURE=0
1213 if test $DEBUG_CONFIGURE = 1; then
1214 DEFAULT_wxUSE_THREADS=yes
1215
1216 DEFAULT_wxUSE_SHARED=yes
1217 DEFAULT_wxUSE_OPTIMISE=yes
1218 DEFAULT_wxUSE_PROFILE=no
1219 DEFAULT_wxUSE_NO_DEPS=no
1220 DEFAULT_wxUSE_NO_RTTI=no
1221 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1222 DEFAULT_wxUSE_PERMISSIVE=no
1223 DEFAULT_wxUSE_DEBUG_FLAG=yes
1224 DEFAULT_wxUSE_DEBUG_INFO=yes
1225 DEFAULT_wxUSE_DEBUG_GDB=yes
1226 DEFAULT_wxUSE_MEM_TRACING=no
1227 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1228 DEFAULT_wxUSE_DMALLOC=no
1229 DEFAULT_wxUSE_APPLE_IEEE=no
1230
1231 DEFAULT_wxUSE_LOG=yes
1232
1233 DEFAULT_wxUSE_GUI=yes
1234
1235 DEFAULT_wxUSE_ZLIB=no
1236 DEFAULT_wxUSE_LIBPNG=no
1237 DEFAULT_wxUSE_LIBJPEG=no
1238 DEFAULT_wxUSE_ODBC=no
1239
1240 DEFAULT_wxUSE_STD_IOSTREAM=no
1241 DEFAULT_wxUSE_FILE=no
1242 DEFAULT_wxUSE_TEXTFILE=no
1243 DEFAULT_wxUSE_TIMEDATE=no
1244 DEFAULT_wxUSE_WAVE=no
1245 DEFAULT_wxUSE_INTL=no
1246 DEFAULT_wxUSE_CONFIG=no
1247 DEFAULT_wxUSE_STREAMS=no
1248 DEFAULT_wxUSE_SOCKETS=no
1249 DEFAULT_wxUSE_DIALUP_MANAGER=no
1250 DEFAULT_wxUSE_SERIAL=no
1251 DEFAULT_wxUSE_JOYSTICK=no
1252 DEFAULT_wxUSE_DYNLIB_CLASS=no
1253 DEFAULT_wxUSE_LONGLONG=no
1254
1255 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1256 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1257 DEFAULT_wxUSE_POSTSCRIPT=no
1258
1259 DEFAULT_wxUSE_X_RESOURCES=no
1260 DEFAULT_wxUSE_CLIPBOARD=no
1261 DEFAULT_wxUSE_TOOLTIPS=no
1262 DEFAULT_wxUSE_DRAG_AND_DROP=no
1263 DEFAULT_wxUSE_SPLINES=no
1264
1265 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1266 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1267 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1268
1269 DEFAULT_wxUSE_PROLOGIO=no
1270 DEFAULT_wxUSE_RESOURCES=no
1271 DEFAULT_wxUSE_CONSTRAINTS=no
1272 DEFAULT_wxUSE_IPC=no
1273 DEFAULT_wxUSE_HELP=no
1274 DEFAULT_wxUSE_WXTREE=no
1275 DEFAULT_wxUSE_METAFILE=no
1276
1277 DEFAULT_wxUSE_COMMONDLGS=no
1278 DEFAULT_wxUSE_DIRDLG=no
1279 DEFAULT_wxUSE_TEXTDLG=no
1280 DEFAULT_wxUSE_STARTUP_TIPS=no
1281 DEFAULT_wxUSE_PROGRESSDLG=no
1282 DEFAULT_wxUSE_MINIFRAME=no
1283 DEFAULT_wxUSE_HTML=no
1284 DEFAULT_wxUSE_FS_INET=no
1285 DEFAULT_wxUSE_FS_ZIP=no
1286 DEFAULT_wxUSE_BUSYINFO=no
1287 DEFAULT_wxUSE_ZIPSTREAM=no
1288 DEFAULT_wxUSE_VALIDATORS=yes
1289
1290 DEFAULT_wxUSE_ACCEL=no
1291 DEFAULT_wxUSE_CARET=no
1292 DEFAULT_wxUSE_BMPBUTTON=no
1293 DEFAULT_wxUSE_CHECKBOX=no
1294 DEFAULT_wxUSE_CHECKLST=no
1295 DEFAULT_wxUSE_CHOICE=yes
1296 DEFAULT_wxUSE_COMBOBOX=no
1297 DEFAULT_wxUSE_GAUGE=no
1298 DEFAULT_wxUSE_GRID=no
1299 DEFAULT_wxUSE_IMAGLIST=no
1300 DEFAULT_wxUSE_LISTBOX=no
1301 DEFAULT_wxUSE_LISTCTRL=no
1302 DEFAULT_wxUSE_NOTEBOOK=no
1303 DEFAULT_wxUSE_RADIOBOX=no
1304 DEFAULT_wxUSE_RADIOBTN=no
1305 DEFAULT_wxUSE_SASH=no
1306 DEFAULT_wxUSE_SCROLLBAR=no
1307 DEFAULT_wxUSE_SLIDER=no
1308 DEFAULT_wxUSE_SPINBTN=no
1309 DEFAULT_wxUSE_SPLITTER=no
1310 DEFAULT_wxUSE_STATBMP=no
1311 DEFAULT_wxUSE_STATBOX=no
1312 DEFAULT_wxUSE_STATLINE=no
1313 DEFAULT_wxUSE_STATUSBAR=yes
1314 DEFAULT_wxUSE_TABDIALOG=no
1315 DEFAULT_wxUSE_TOOLBAR=no
1316 DEFAULT_wxUSE_TREECTRL=no
1317
1318 DEFAULT_wxUSE_UNICODE=no
1319 DEFAULT_wxUSE_WCSRTOMBS=no
1320
1321 DEFAULT_wxUSE_GIF=no
1322 DEFAULT_wxUSE_PCX=no
1323 DEFAULT_wxUSE_PNM=no
1324 else
1325 DEFAULT_wxUSE_THREADS=yes
1326
1327 DEFAULT_wxUSE_SHARED=yes
1328 DEFAULT_wxUSE_OPTIMISE=yes
1329 DEFAULT_wxUSE_PROFILE=no
1330 DEFAULT_wxUSE_NO_DEPS=no
1331 DEFAULT_wxUSE_NO_RTTI=no
1332 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1333 DEFAULT_wxUSE_PERMISSIVE=no
1334 DEFAULT_wxUSE_DEBUG_FLAG=no
1335 DEFAULT_wxUSE_DEBUG_INFO=no
1336 DEFAULT_wxUSE_DEBUG_GDB=no
1337 DEFAULT_wxUSE_MEM_TRACING=no
1338 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1339 DEFAULT_wxUSE_DMALLOC=no
1340 DEFAULT_wxUSE_APPLE_IEEE=yes
1341
1342 DEFAULT_wxUSE_LOG=yes
1343
1344 DEFAULT_wxUSE_GUI=yes
1345
1346 DEFAULT_wxUSE_ZLIB=yes
1347 DEFAULT_wxUSE_LIBPNG=yes
1348 DEFAULT_wxUSE_LIBJPEG=yes
1349 DEFAULT_wxUSE_ODBC=no
1350
1351 DEFAULT_wxUSE_STD_IOSTREAM=no
1352 DEFAULT_wxUSE_FILE=yes
1353 DEFAULT_wxUSE_TEXTFILE=yes
1354 DEFAULT_wxUSE_TIMEDATE=yes
1355 DEFAULT_wxUSE_WAVE=no
1356 DEFAULT_wxUSE_INTL=yes
1357 DEFAULT_wxUSE_CONFIG=yes
1358 DEFAULT_wxUSE_STREAMS=yes
1359 DEFAULT_wxUSE_SOCKETS=yes
1360 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1361 DEFAULT_wxUSE_SERIAL=yes
1362 DEFAULT_wxUSE_JOYSTICK=yes
1363 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1364 DEFAULT_wxUSE_LONGLONG=no
1365
1366 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1367 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1368 DEFAULT_wxUSE_POSTSCRIPT=yes
1369
1370 DEFAULT_wxUSE_X_RESOURCES=no
1371 DEFAULT_wxUSE_CLIPBOARD=yes
1372 DEFAULT_wxUSE_TOOLTIPS=yes
1373 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1374 DEFAULT_wxUSE_SPLINES=yes
1375
1376 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1377 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1378 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1379
1380 DEFAULT_wxUSE_PROLOGIO=yes
1381 DEFAULT_wxUSE_RESOURCES=yes
1382 DEFAULT_wxUSE_CONSTRAINTS=yes
1383 DEFAULT_wxUSE_IPC=yes
1384 DEFAULT_wxUSE_HELP=yes
1385 DEFAULT_wxUSE_WXTREE=yes
1386 DEFAULT_wxUSE_METAFILE=yes
1387
1388 DEFAULT_wxUSE_COMMONDLGS=yes
1389 DEFAULT_wxUSE_DIRDLG=yes
1390 DEFAULT_wxUSE_TEXTDLG=yes
1391 DEFAULT_wxUSE_STARTUP_TIPS=yes
1392 DEFAULT_wxUSE_PROGRESSDLG=yes
1393 DEFAULT_wxUSE_MINIFRAME=yes
1394 DEFAULT_wxUSE_HTML=yes
1395 DEFAULT_wxUSE_FS_INET=yes
1396 DEFAULT_wxUSE_FS_ZIP=yes
1397 DEFAULT_wxUSE_BUSYINFO=yes
1398 DEFAULT_wxUSE_ZIPSTREAM=yes
1399 DEFAULT_wxUSE_VALIDATORS=yes
1400
1401 DEFAULT_wxUSE_ACCEL=yes
1402 DEFAULT_wxUSE_CARET=yes
1403 DEFAULT_wxUSE_BMPBUTTON=yes
1404 DEFAULT_wxUSE_CHECKBOX=yes
1405 DEFAULT_wxUSE_CHECKLST=yes
1406 DEFAULT_wxUSE_CHOICE=yes
1407 DEFAULT_wxUSE_COMBOBOX=yes
1408 DEFAULT_wxUSE_GAUGE=yes
1409 DEFAULT_wxUSE_GRID=yes
1410 DEFAULT_wxUSE_IMAGLIST=yes
1411 DEFAULT_wxUSE_LISTBOX=yes
1412 DEFAULT_wxUSE_LISTCTRL=yes
1413 DEFAULT_wxUSE_NOTEBOOK=yes
1414 DEFAULT_wxUSE_RADIOBOX=yes
1415 DEFAULT_wxUSE_RADIOBTN=yes
1416 DEFAULT_wxUSE_SASH=yes
1417 DEFAULT_wxUSE_SCROLLBAR=yes
1418 DEFAULT_wxUSE_SLIDER=yes
1419 DEFAULT_wxUSE_SPINBTN=yes
1420 DEFAULT_wxUSE_SPLITTER=yes
1421 DEFAULT_wxUSE_STATBMP=yes
1422 DEFAULT_wxUSE_STATBOX=yes
1423 DEFAULT_wxUSE_STATLINE=yes
1424 DEFAULT_wxUSE_STATUSBAR=yes
1425 DEFAULT_wxUSE_TABDIALOG=no
1426 DEFAULT_wxUSE_TOOLBAR=yes
1427 DEFAULT_wxUSE_TREECTRL=yes
1428
1429 DEFAULT_wxUSE_UNICODE=no
1430 DEFAULT_wxUSE_WCSRTOMBS=no
1431
1432 DEFAULT_wxUSE_GIF=yes
1433 DEFAULT_wxUSE_PCX=yes
1434 DEFAULT_wxUSE_PNM=yes
1435 fi
1436
1437
1438
1439 for toolkit in `echo $ALL_TOOLKITS`; do
1440 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1441 if test "x$LINE" != x ; then
1442 has_toolkit_in_cache=1
1443 eval "DEFAULT_$LINE"
1444 eval "CACHE_$toolkit=1"
1445 fi
1446 done
1447
1448 # Check whether --with-gtk or --without-gtk was given.
1449 if test "${with_gtk+set}" = set; then
1450 withval="$with_gtk"
1451 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1452 fi
1453
1454 # Check whether --with-motif or --without-motif was given.
1455 if test "${with_motif+set}" = set; then
1456 withval="$with_motif"
1457 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1458 fi
1459
1460 # Check whether --with-wine or --without-wine was given.
1461 if test "${with_wine+set}" = set; then
1462 withval="$with_wine"
1463 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1464 fi
1465
1466 # Check whether --with-cygwin or --without-cygwin was given.
1467 if test "${with_cygwin+set}" = set; then
1468 withval="$with_cygwin"
1469 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1470 fi
1471
1472 # Check whether --with-mingw or --without-mingw was given.
1473 if test "${with_mingw+set}" = set; then
1474 withval="$with_mingw"
1475 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1476 fi
1477
1478
1479 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1480 if test "${with_gtk_prefix+set}" = set; then
1481 withval="$with_gtk_prefix"
1482 gtk_config_prefix="$withval"
1483 else
1484 gtk_config_prefix=""
1485 fi
1486
1487 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1488 if test "${with_gtk_exec_prefix+set}" = set; then
1489 withval="$with_gtk_exec_prefix"
1490 gtk_config_exec_prefix="$withval"
1491 else
1492 gtk_config_exec_prefix=""
1493 fi
1494
1495
1496
1497 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
1498 echo "configure:1499: checking "for --with-dmalloc"" >&5
1499 no_cache=0
1500 # Check whether --with-dmalloc or --without-dmalloc was given.
1501 if test "${with_dmalloc+set}" = set; then
1502 withval="$with_dmalloc"
1503
1504 if test "$withval" = yes; then
1505 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
1506 else
1507 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
1508 fi
1509
1510 else
1511
1512 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
1513 if test "x$LINE" != x ; then
1514 eval "DEFAULT_$LINE"
1515 else
1516 no_cache=1
1517 fi
1518
1519 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
1520
1521 fi
1522
1523
1524 eval "$ac_cv_use_dmalloc"
1525 if test "$no_cache" != 1; then
1526 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
1527 fi
1528
1529 if test "$wxUSE_DMALLOC" = yes; then
1530 echo "$ac_t""yes" 1>&6
1531 else
1532 echo "$ac_t""no" 1>&6
1533 fi
1534
1535
1536 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
1537 echo "configure:1538: checking "for --with-zlib"" >&5
1538 no_cache=0
1539 # Check whether --with-zlib or --without-zlib was given.
1540 if test "${with_zlib+set}" = set; then
1541 withval="$with_zlib"
1542
1543 if test "$withval" = yes; then
1544 ac_cv_use_zlib='wxUSE_ZLIB=yes'
1545 else
1546 ac_cv_use_zlib='wxUSE_ZLIB=no'
1547 fi
1548
1549 else
1550
1551 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
1552 if test "x$LINE" != x ; then
1553 eval "DEFAULT_$LINE"
1554 else
1555 no_cache=1
1556 fi
1557
1558 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
1559
1560 fi
1561
1562
1563 eval "$ac_cv_use_zlib"
1564 if test "$no_cache" != 1; then
1565 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
1566 fi
1567
1568 if test "$wxUSE_ZLIB" = yes; then
1569 echo "$ac_t""yes" 1>&6
1570 else
1571 echo "$ac_t""no" 1>&6
1572 fi
1573
1574
1575 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
1576 echo "configure:1577: checking "for --with-libpng"" >&5
1577 no_cache=0
1578 # Check whether --with-libpng or --without-libpng was given.
1579 if test "${with_libpng+set}" = set; then
1580 withval="$with_libpng"
1581
1582 if test "$withval" = yes; then
1583 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1584 else
1585 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1586 fi
1587
1588 else
1589
1590 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1591 if test "x$LINE" != x ; then
1592 eval "DEFAULT_$LINE"
1593 else
1594 no_cache=1
1595 fi
1596
1597 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1598
1599 fi
1600
1601
1602 eval "$ac_cv_use_libpng"
1603 if test "$no_cache" != 1; then
1604 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1605 fi
1606
1607 if test "$wxUSE_LIBPNG" = yes; then
1608 echo "$ac_t""yes" 1>&6
1609 else
1610 echo "$ac_t""no" 1>&6
1611 fi
1612
1613
1614 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
1615 echo "configure:1616: checking "for --with-libjpeg"" >&5
1616 no_cache=0
1617 # Check whether --with-libjpeg or --without-libjpeg was given.
1618 if test "${with_libjpeg+set}" = set; then
1619 withval="$with_libjpeg"
1620
1621 if test "$withval" = yes; then
1622 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1623 else
1624 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1625 fi
1626
1627 else
1628
1629 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1630 if test "x$LINE" != x ; then
1631 eval "DEFAULT_$LINE"
1632 else
1633 no_cache=1
1634 fi
1635
1636 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1637
1638 fi
1639
1640
1641 eval "$ac_cv_use_libjpeg"
1642 if test "$no_cache" != 1; then
1643 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1644 fi
1645
1646 if test "$wxUSE_LIBJPEG" = yes; then
1647 echo "$ac_t""yes" 1>&6
1648 else
1649 echo "$ac_t""no" 1>&6
1650 fi
1651
1652
1653 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
1654 echo "configure:1655: checking "for --with-opengl"" >&5
1655 no_cache=0
1656 # Check whether --with-opengl or --without-opengl was given.
1657 if test "${with_opengl+set}" = set; then
1658 withval="$with_opengl"
1659
1660 if test "$withval" = yes; then
1661 ac_cv_use_opengl='wxUSE_OPENGL=yes'
1662 else
1663 ac_cv_use_opengl='wxUSE_OPENGL=no'
1664 fi
1665
1666 else
1667
1668 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
1669 if test "x$LINE" != x ; then
1670 eval "DEFAULT_$LINE"
1671 else
1672 no_cache=1
1673 fi
1674
1675 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
1676
1677 fi
1678
1679
1680 eval "$ac_cv_use_opengl"
1681 if test "$no_cache" != 1; then
1682 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
1683 fi
1684
1685 if test "$wxUSE_OPENGL" = yes; then
1686 echo "$ac_t""yes" 1>&6
1687 else
1688 echo "$ac_t""no" 1>&6
1689 fi
1690
1691
1692 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
1693 echo "configure:1694: checking "for --with-odbc"" >&5
1694 no_cache=0
1695 # Check whether --with-odbc or --without-odbc was given.
1696 if test "${with_odbc+set}" = set; then
1697 withval="$with_odbc"
1698
1699 if test "$withval" = yes; then
1700 ac_cv_use_odbc='wxUSE_ODBC=yes'
1701 else
1702 ac_cv_use_odbc='wxUSE_ODBC=no'
1703 fi
1704
1705 else
1706
1707 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1708 if test "x$LINE" != x ; then
1709 eval "DEFAULT_$LINE"
1710 else
1711 no_cache=1
1712 fi
1713
1714 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1715
1716 fi
1717
1718
1719 eval "$ac_cv_use_odbc"
1720 if test "$no_cache" != 1; then
1721 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1722 fi
1723
1724 if test "$wxUSE_ODBC" = yes; then
1725 echo "$ac_t""yes" 1>&6
1726 else
1727 echo "$ac_t""no" 1>&6
1728 fi
1729
1730
1731
1732
1733
1734 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
1735 echo "configure:1736: checking "for --enable-shared"" >&5
1736 no_cache=0
1737 # Check whether --enable-shared or --disable-shared was given.
1738 if test "${enable_shared+set}" = set; then
1739 enableval="$enable_shared"
1740
1741 if test "$enableval" = yes; then
1742 ac_cv_use_shared='wxUSE_SHARED=yes'
1743 else
1744 ac_cv_use_shared='wxUSE_SHARED=no'
1745 fi
1746
1747 else
1748
1749 LINE=`grep "wxUSE_SHARED" ${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_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
1757
1758 fi
1759
1760
1761 eval "$ac_cv_use_shared"
1762 if test "$no_cache" != 1; then
1763 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
1764 fi
1765
1766 if test "$wxUSE_SHARED" = 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 --enable-optimise"""... $ac_c" 1>&6
1774 echo "configure:1775: checking "for --enable-optimise"" >&5
1775 no_cache=0
1776 # Check whether --enable-optimise or --disable-optimise was given.
1777 if test "${enable_optimise+set}" = set; then
1778 enableval="$enable_optimise"
1779
1780 if test "$enableval" = yes; then
1781 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
1782 else
1783 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
1784 fi
1785
1786 else
1787
1788 LINE=`grep "wxUSE_OPTIMISE" ${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_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
1796
1797 fi
1798
1799
1800 eval "$ac_cv_use_optimise"
1801 if test "$no_cache" != 1; then
1802 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
1803 fi
1804
1805 if test "$wxUSE_OPTIMISE" = 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 --enable-debug"""... $ac_c" 1>&6
1813 echo "configure:1814: checking "for --enable-debug"" >&5
1814 no_cache=0
1815 # Check whether --enable-debug or --disable-debug was given.
1816 if test "${enable_debug+set}" = set; then
1817 enableval="$enable_debug"
1818
1819 if test "$enableval" = yes; then
1820 ac_cv_use_debug='wxUSE_DEBUG=yes'
1821 else
1822 ac_cv_use_debug='wxUSE_DEBUG=no'
1823 fi
1824
1825 else
1826
1827 LINE=`grep "wxUSE_DEBUG" ${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_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
1835
1836 fi
1837
1838
1839 eval "$ac_cv_use_debug"
1840 if test "$no_cache" != 1; then
1841 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
1842 fi
1843
1844 if test "$wxUSE_DEBUG" = yes; then
1845 echo "$ac_t""yes" 1>&6
1846 else
1847 echo "$ac_t""no" 1>&6
1848 fi
1849
1850
1851 if test "$wxUSE_DEBUG" = "yes"; then
1852 DEFAULT_wxUSE_DEBUG_FLAG=yes
1853 DEFAULT_wxUSE_DEBUG_INFO=yes
1854 elif test "$wxUSE_DEBUG" = "no"; then
1855 DEFAULT_wxUSE_DEBUG_FLAG=no
1856 DEFAULT_wxUSE_DEBUG_INFO=no
1857 fi
1858
1859
1860 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
1861 echo "configure:1862: checking "for --enable-debug_flag"" >&5
1862 no_cache=0
1863 # Check whether --enable-debug_flag or --disable-debug_flag was given.
1864 if test "${enable_debug_flag+set}" = set; then
1865 enableval="$enable_debug_flag"
1866
1867 if test "$enableval" = yes; then
1868 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
1869 else
1870 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
1871 fi
1872
1873 else
1874
1875 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
1876 if test "x$LINE" != x ; then
1877 eval "DEFAULT_$LINE"
1878 else
1879 no_cache=1
1880 fi
1881
1882 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
1883
1884 fi
1885
1886
1887 eval "$ac_cv_use_debug_flag"
1888 if test "$no_cache" != 1; then
1889 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
1890 fi
1891
1892 if test "$wxUSE_DEBUG_FLAG" = yes; then
1893 echo "$ac_t""yes" 1>&6
1894 else
1895 echo "$ac_t""no" 1>&6
1896 fi
1897
1898
1899 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
1900 echo "configure:1901: checking "for --enable-debug_info"" >&5
1901 no_cache=0
1902 # Check whether --enable-debug_info or --disable-debug_info was given.
1903 if test "${enable_debug_info+set}" = set; then
1904 enableval="$enable_debug_info"
1905
1906 if test "$enableval" = yes; then
1907 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
1908 else
1909 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
1910 fi
1911
1912 else
1913
1914 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
1915 if test "x$LINE" != x ; then
1916 eval "DEFAULT_$LINE"
1917 else
1918 no_cache=1
1919 fi
1920
1921 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
1922
1923 fi
1924
1925
1926 eval "$ac_cv_use_debug_info"
1927 if test "$no_cache" != 1; then
1928 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
1929 fi
1930
1931 if test "$wxUSE_DEBUG_INFO" = yes; then
1932 echo "$ac_t""yes" 1>&6
1933 else
1934 echo "$ac_t""no" 1>&6
1935 fi
1936
1937
1938 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
1939 echo "configure:1940: checking "for --enable-debug_gdb"" >&5
1940 no_cache=0
1941 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
1942 if test "${enable_debug_gdb+set}" = set; then
1943 enableval="$enable_debug_gdb"
1944
1945 if test "$enableval" = yes; then
1946 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
1947 else
1948 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
1949 fi
1950
1951 else
1952
1953 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
1954 if test "x$LINE" != x ; then
1955 eval "DEFAULT_$LINE"
1956 else
1957 no_cache=1
1958 fi
1959
1960 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
1961
1962 fi
1963
1964
1965 eval "$ac_cv_use_debug_gdb"
1966 if test "$no_cache" != 1; then
1967 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
1968 fi
1969
1970 if test "$wxUSE_DEBUG_GDB" = yes; then
1971 echo "$ac_t""yes" 1>&6
1972 else
1973 echo "$ac_t""no" 1>&6
1974 fi
1975
1976
1977 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
1978 echo "configure:1979: checking "for --enable-debug_cntxt"" >&5
1979 no_cache=0
1980 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
1981 if test "${enable_debug_cntxt+set}" = set; then
1982 enableval="$enable_debug_cntxt"
1983
1984 if test "$enableval" = yes; then
1985 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
1986 else
1987 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
1988 fi
1989
1990 else
1991
1992 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
1993 if test "x$LINE" != x ; then
1994 eval "DEFAULT_$LINE"
1995 else
1996 no_cache=1
1997 fi
1998
1999 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2000
2001 fi
2002
2003
2004 eval "$ac_cv_use_debug_cntxt"
2005 if test "$no_cache" != 1; then
2006 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2007 fi
2008
2009 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2010 echo "$ac_t""yes" 1>&6
2011 else
2012 echo "$ac_t""no" 1>&6
2013 fi
2014
2015
2016 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
2017 echo "configure:2018: checking "for --enable-mem_tracing"" >&5
2018 no_cache=0
2019 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2020 if test "${enable_mem_tracing+set}" = set; then
2021 enableval="$enable_mem_tracing"
2022
2023 if test "$enableval" = yes; then
2024 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2025 else
2026 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2027 fi
2028
2029 else
2030
2031 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2032 if test "x$LINE" != x ; then
2033 eval "DEFAULT_$LINE"
2034 else
2035 no_cache=1
2036 fi
2037
2038 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2039
2040 fi
2041
2042
2043 eval "$ac_cv_use_mem_tracing"
2044 if test "$no_cache" != 1; then
2045 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2046 fi
2047
2048 if test "$wxUSE_MEM_TRACING" = yes; then
2049 echo "$ac_t""yes" 1>&6
2050 else
2051 echo "$ac_t""no" 1>&6
2052 fi
2053
2054
2055 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
2056 echo "configure:2057: checking "for --enable-profile"" >&5
2057 no_cache=0
2058 # Check whether --enable-profile or --disable-profile was given.
2059 if test "${enable_profile+set}" = set; then
2060 enableval="$enable_profile"
2061
2062 if test "$enableval" = yes; then
2063 ac_cv_use_profile='wxUSE_PROFILE=yes'
2064 else
2065 ac_cv_use_profile='wxUSE_PROFILE=no'
2066 fi
2067
2068 else
2069
2070 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2071 if test "x$LINE" != x ; then
2072 eval "DEFAULT_$LINE"
2073 else
2074 no_cache=1
2075 fi
2076
2077 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2078
2079 fi
2080
2081
2082 eval "$ac_cv_use_profile"
2083 if test "$no_cache" != 1; then
2084 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2085 fi
2086
2087 if test "$wxUSE_PROFILE" = yes; then
2088 echo "$ac_t""yes" 1>&6
2089 else
2090 echo "$ac_t""no" 1>&6
2091 fi
2092
2093
2094 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
2095 echo "configure:2096: checking "for --enable-no_rtti"" >&5
2096 no_cache=0
2097 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2098 if test "${enable_no_rtti+set}" = set; then
2099 enableval="$enable_no_rtti"
2100
2101 if test "$enableval" = yes; then
2102 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2103 else
2104 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2105 fi
2106
2107 else
2108
2109 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2110 if test "x$LINE" != x ; then
2111 eval "DEFAULT_$LINE"
2112 else
2113 no_cache=1
2114 fi
2115
2116 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2117
2118 fi
2119
2120
2121 eval "$ac_cv_use_no_rtti"
2122 if test "$no_cache" != 1; then
2123 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2124 fi
2125
2126 if test "$wxUSE_NO_RTTI" = yes; then
2127 echo "$ac_t""yes" 1>&6
2128 else
2129 echo "$ac_t""no" 1>&6
2130 fi
2131
2132
2133 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
2134 echo "configure:2135: checking "for --enable-no_exceptions"" >&5
2135 no_cache=0
2136 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2137 if test "${enable_no_exceptions+set}" = set; then
2138 enableval="$enable_no_exceptions"
2139
2140 if test "$enableval" = yes; then
2141 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2142 else
2143 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2144 fi
2145
2146 else
2147
2148 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2149 if test "x$LINE" != x ; then
2150 eval "DEFAULT_$LINE"
2151 else
2152 no_cache=1
2153 fi
2154
2155 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2156
2157 fi
2158
2159
2160 eval "$ac_cv_use_no_exceptions"
2161 if test "$no_cache" != 1; then
2162 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2163 fi
2164
2165 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2166 echo "$ac_t""yes" 1>&6
2167 else
2168 echo "$ac_t""no" 1>&6
2169 fi
2170
2171
2172 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
2173 echo "configure:2174: checking "for --enable-permissive"" >&5
2174 no_cache=0
2175 # Check whether --enable-permissive or --disable-permissive was given.
2176 if test "${enable_permissive+set}" = set; then
2177 enableval="$enable_permissive"
2178
2179 if test "$enableval" = yes; then
2180 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2181 else
2182 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2183 fi
2184
2185 else
2186
2187 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2188 if test "x$LINE" != x ; then
2189 eval "DEFAULT_$LINE"
2190 else
2191 no_cache=1
2192 fi
2193
2194 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2195
2196 fi
2197
2198
2199 eval "$ac_cv_use_permissive"
2200 if test "$no_cache" != 1; then
2201 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2202 fi
2203
2204 if test "$wxUSE_PERMISSIVE" = yes; then
2205 echo "$ac_t""yes" 1>&6
2206 else
2207 echo "$ac_t""no" 1>&6
2208 fi
2209
2210
2211 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
2212 echo "configure:2213: checking "for --enable-no_deps"" >&5
2213 no_cache=0
2214 # Check whether --enable-no_deps or --disable-no_deps was given.
2215 if test "${enable_no_deps+set}" = set; then
2216 enableval="$enable_no_deps"
2217
2218 if test "$enableval" = yes; then
2219 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2220 else
2221 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2222 fi
2223
2224 else
2225
2226 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2227 if test "x$LINE" != x ; then
2228 eval "DEFAULT_$LINE"
2229 else
2230 no_cache=1
2231 fi
2232
2233 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2234
2235 fi
2236
2237
2238 eval "$ac_cv_use_no_deps"
2239 if test "$no_cache" != 1; then
2240 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2241 fi
2242
2243 if test "$wxUSE_NO_DEPS" = yes; then
2244 echo "$ac_t""yes" 1>&6
2245 else
2246 echo "$ac_t""no" 1>&6
2247 fi
2248
2249
2250
2251
2252 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
2253 echo "configure:2254: checking "for --enable-gui"" >&5
2254 no_cache=0
2255 # Check whether --enable-gui or --disable-gui was given.
2256 if test "${enable_gui+set}" = set; then
2257 enableval="$enable_gui"
2258
2259 if test "$enableval" = yes; then
2260 ac_cv_use_gui='wxUSE_GUI=yes'
2261 else
2262 ac_cv_use_gui='wxUSE_GUI=no'
2263 fi
2264
2265 else
2266
2267 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2268 if test "x$LINE" != x ; then
2269 eval "DEFAULT_$LINE"
2270 else
2271 no_cache=1
2272 fi
2273
2274 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2275
2276 fi
2277
2278
2279 eval "$ac_cv_use_gui"
2280 if test "$no_cache" != 1; then
2281 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2282 fi
2283
2284 if test "$wxUSE_GUI" = yes; then
2285 echo "$ac_t""yes" 1>&6
2286 else
2287 echo "$ac_t""no" 1>&6
2288 fi
2289
2290
2291
2292
2293 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
2294 echo "configure:2295: checking "for --enable-intl"" >&5
2295 no_cache=0
2296 # Check whether --enable-intl or --disable-intl was given.
2297 if test "${enable_intl+set}" = set; then
2298 enableval="$enable_intl"
2299
2300 if test "$enableval" = yes; then
2301 ac_cv_use_intl='wxUSE_INTL=yes'
2302 else
2303 ac_cv_use_intl='wxUSE_INTL=no'
2304 fi
2305
2306 else
2307
2308 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2309 if test "x$LINE" != x ; then
2310 eval "DEFAULT_$LINE"
2311 else
2312 no_cache=1
2313 fi
2314
2315 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2316
2317 fi
2318
2319
2320 eval "$ac_cv_use_intl"
2321 if test "$no_cache" != 1; then
2322 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2323 fi
2324
2325 if test "$wxUSE_INTL" = yes; then
2326 echo "$ac_t""yes" 1>&6
2327 else
2328 echo "$ac_t""no" 1>&6
2329 fi
2330
2331
2332 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
2333 echo "configure:2334: checking "for --enable-config"" >&5
2334 no_cache=0
2335 # Check whether --enable-config or --disable-config was given.
2336 if test "${enable_config+set}" = set; then
2337 enableval="$enable_config"
2338
2339 if test "$enableval" = yes; then
2340 ac_cv_use_config='wxUSE_CONFIG=yes'
2341 else
2342 ac_cv_use_config='wxUSE_CONFIG=no'
2343 fi
2344
2345 else
2346
2347 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2348 if test "x$LINE" != x ; then
2349 eval "DEFAULT_$LINE"
2350 else
2351 no_cache=1
2352 fi
2353
2354 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2355
2356 fi
2357
2358
2359 eval "$ac_cv_use_config"
2360 if test "$no_cache" != 1; then
2361 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2362 fi
2363
2364 if test "$wxUSE_CONFIG" = yes; then
2365 echo "$ac_t""yes" 1>&6
2366 else
2367 echo "$ac_t""no" 1>&6
2368 fi
2369
2370
2371 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
2372 echo "configure:2373: checking "for --enable-sockets"" >&5
2373 no_cache=0
2374 # Check whether --enable-sockets or --disable-sockets was given.
2375 if test "${enable_sockets+set}" = set; then
2376 enableval="$enable_sockets"
2377
2378 if test "$enableval" = yes; then
2379 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2380 else
2381 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2382 fi
2383
2384 else
2385
2386 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2387 if test "x$LINE" != x ; then
2388 eval "DEFAULT_$LINE"
2389 else
2390 no_cache=1
2391 fi
2392
2393 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2394
2395 fi
2396
2397
2398 eval "$ac_cv_use_sockets"
2399 if test "$no_cache" != 1; then
2400 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2401 fi
2402
2403 if test "$wxUSE_SOCKETS" = yes; then
2404 echo "$ac_t""yes" 1>&6
2405 else
2406 echo "$ac_t""no" 1>&6
2407 fi
2408
2409
2410 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
2411 echo "configure:2412: checking "for --enable-dialupman"" >&5
2412 no_cache=0
2413 # Check whether --enable-dialupman or --disable-dialupman was given.
2414 if test "${enable_dialupman+set}" = set; then
2415 enableval="$enable_dialupman"
2416
2417 if test "$enableval" = yes; then
2418 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
2419 else
2420 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
2421 fi
2422
2423 else
2424
2425 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
2426 if test "x$LINE" != x ; then
2427 eval "DEFAULT_$LINE"
2428 else
2429 no_cache=1
2430 fi
2431
2432 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
2433
2434 fi
2435
2436
2437 eval "$ac_cv_use_dialupman"
2438 if test "$no_cache" != 1; then
2439 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
2440 fi
2441
2442 if test "$wxUSE_DIALUP_MANAGER" = yes; then
2443 echo "$ac_t""yes" 1>&6
2444 else
2445 echo "$ac_t""no" 1>&6
2446 fi
2447
2448
2449 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
2450 echo "configure:2451: checking "for --enable-ipc"" >&5
2451 no_cache=0
2452 # Check whether --enable-ipc or --disable-ipc was given.
2453 if test "${enable_ipc+set}" = set; then
2454 enableval="$enable_ipc"
2455
2456 if test "$enableval" = yes; then
2457 ac_cv_use_ipc='wxUSE_IPC=yes'
2458 else
2459 ac_cv_use_ipc='wxUSE_IPC=no'
2460 fi
2461
2462 else
2463
2464 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2465 if test "x$LINE" != x ; then
2466 eval "DEFAULT_$LINE"
2467 else
2468 no_cache=1
2469 fi
2470
2471 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2472
2473 fi
2474
2475
2476 eval "$ac_cv_use_ipc"
2477 if test "$no_cache" != 1; then
2478 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2479 fi
2480
2481 if test "$wxUSE_IPC" = yes; then
2482 echo "$ac_t""yes" 1>&6
2483 else
2484 echo "$ac_t""no" 1>&6
2485 fi
2486
2487
2488 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
2489 echo "configure:2490: checking "for --enable-apple_ieee"" >&5
2490 no_cache=0
2491 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2492 if test "${enable_apple_ieee+set}" = set; then
2493 enableval="$enable_apple_ieee"
2494
2495 if test "$enableval" = yes; then
2496 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2497 else
2498 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2499 fi
2500
2501 else
2502
2503 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2504 if test "x$LINE" != x ; then
2505 eval "DEFAULT_$LINE"
2506 else
2507 no_cache=1
2508 fi
2509
2510 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2511
2512 fi
2513
2514
2515 eval "$ac_cv_use_apple_ieee"
2516 if test "$no_cache" != 1; then
2517 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2518 fi
2519
2520 if test "$wxUSE_APPLE_IEEE" = yes; then
2521 echo "$ac_t""yes" 1>&6
2522 else
2523 echo "$ac_t""no" 1>&6
2524 fi
2525
2526
2527 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
2528 echo "configure:2529: checking "for --enable-timedate"" >&5
2529 no_cache=0
2530 # Check whether --enable-timedate or --disable-timedate was given.
2531 if test "${enable_timedate+set}" = set; then
2532 enableval="$enable_timedate"
2533
2534 if test "$enableval" = yes; then
2535 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2536 else
2537 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2538 fi
2539
2540 else
2541
2542 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2543 if test "x$LINE" != x ; then
2544 eval "DEFAULT_$LINE"
2545 else
2546 no_cache=1
2547 fi
2548
2549 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2550
2551 fi
2552
2553
2554 eval "$ac_cv_use_timedate"
2555 if test "$no_cache" != 1; then
2556 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2557 fi
2558
2559 if test "$wxUSE_TIMEDATE" = yes; then
2560 echo "$ac_t""yes" 1>&6
2561 else
2562 echo "$ac_t""no" 1>&6
2563 fi
2564
2565
2566 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
2567 echo "configure:2568: checking "for --enable-wave"" >&5
2568 no_cache=0
2569 # Check whether --enable-wave or --disable-wave was given.
2570 if test "${enable_wave+set}" = set; then
2571 enableval="$enable_wave"
2572
2573 if test "$enableval" = yes; then
2574 ac_cv_use_wave='wxUSE_WAVE=yes'
2575 else
2576 ac_cv_use_wave='wxUSE_WAVE=no'
2577 fi
2578
2579 else
2580
2581 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2582 if test "x$LINE" != x ; then
2583 eval "DEFAULT_$LINE"
2584 else
2585 no_cache=1
2586 fi
2587
2588 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2589
2590 fi
2591
2592
2593 eval "$ac_cv_use_wave"
2594 if test "$no_cache" != 1; then
2595 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2596 fi
2597
2598 if test "$wxUSE_WAVE" = yes; then
2599 echo "$ac_t""yes" 1>&6
2600 else
2601 echo "$ac_t""no" 1>&6
2602 fi
2603
2604
2605 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
2606 echo "configure:2607: checking "for --enable-fraction"" >&5
2607 no_cache=0
2608 # Check whether --enable-fraction or --disable-fraction was given.
2609 if test "${enable_fraction+set}" = set; then
2610 enableval="$enable_fraction"
2611
2612 if test "$enableval" = yes; then
2613 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2614 else
2615 ac_cv_use_fraction='wxUSE_FRACTION=no'
2616 fi
2617
2618 else
2619
2620 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2621 if test "x$LINE" != x ; then
2622 eval "DEFAULT_$LINE"
2623 else
2624 no_cache=1
2625 fi
2626
2627 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2628
2629 fi
2630
2631
2632 eval "$ac_cv_use_fraction"
2633 if test "$no_cache" != 1; then
2634 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2635 fi
2636
2637 if test "$wxUSE_FRACTION" = yes; then
2638 echo "$ac_t""yes" 1>&6
2639 else
2640 echo "$ac_t""no" 1>&6
2641 fi
2642
2643
2644 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
2645 echo "configure:2646: checking "for --enable-dynlib"" >&5
2646 no_cache=0
2647 # Check whether --enable-dynlib or --disable-dynlib was given.
2648 if test "${enable_dynlib+set}" = set; then
2649 enableval="$enable_dynlib"
2650
2651 if test "$enableval" = yes; then
2652 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2653 else
2654 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2655 fi
2656
2657 else
2658
2659 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2660 if test "x$LINE" != x ; then
2661 eval "DEFAULT_$LINE"
2662 else
2663 no_cache=1
2664 fi
2665
2666 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2667
2668 fi
2669
2670
2671 eval "$ac_cv_use_dynlib"
2672 if test "$no_cache" != 1; then
2673 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2674 fi
2675
2676 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2677 echo "$ac_t""yes" 1>&6
2678 else
2679 echo "$ac_t""no" 1>&6
2680 fi
2681
2682
2683 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
2684 echo "configure:2685: checking "for --enable-longlong"" >&5
2685 no_cache=0
2686 # Check whether --enable-longlong or --disable-longlong was given.
2687 if test "${enable_longlong+set}" = set; then
2688 enableval="$enable_longlong"
2689
2690 if test "$enableval" = yes; then
2691 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2692 else
2693 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2694 fi
2695
2696 else
2697
2698 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2699 if test "x$LINE" != x ; then
2700 eval "DEFAULT_$LINE"
2701 else
2702 no_cache=1
2703 fi
2704
2705 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2706
2707 fi
2708
2709
2710 eval "$ac_cv_use_longlong"
2711 if test "$no_cache" != 1; then
2712 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2713 fi
2714
2715 if test "$wxUSE_LONGLONG" = yes; then
2716 echo "$ac_t""yes" 1>&6
2717 else
2718 echo "$ac_t""no" 1>&6
2719 fi
2720
2721
2722 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
2723 echo "configure:2724: checking "for --enable-log"" >&5
2724 no_cache=0
2725 # Check whether --enable-log or --disable-log was given.
2726 if test "${enable_log+set}" = set; then
2727 enableval="$enable_log"
2728
2729 if test "$enableval" = yes; then
2730 ac_cv_use_log='wxUSE_LOG=yes'
2731 else
2732 ac_cv_use_log='wxUSE_LOG=no'
2733 fi
2734
2735 else
2736
2737 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
2738 if test "x$LINE" != x ; then
2739 eval "DEFAULT_$LINE"
2740 else
2741 no_cache=1
2742 fi
2743
2744 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
2745
2746 fi
2747
2748
2749 eval "$ac_cv_use_log"
2750 if test "$no_cache" != 1; then
2751 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
2752 fi
2753
2754 if test "$wxUSE_LOG" = yes; then
2755 echo "$ac_t""yes" 1>&6
2756 else
2757 echo "$ac_t""no" 1>&6
2758 fi
2759
2760
2761 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
2762 echo "configure:2763: checking "for --enable-streams"" >&5
2763 no_cache=0
2764 # Check whether --enable-streams or --disable-streams was given.
2765 if test "${enable_streams+set}" = set; then
2766 enableval="$enable_streams"
2767
2768 if test "$enableval" = yes; then
2769 ac_cv_use_streams='wxUSE_STREAMS=yes'
2770 else
2771 ac_cv_use_streams='wxUSE_STREAMS=no'
2772 fi
2773
2774 else
2775
2776 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
2777 if test "x$LINE" != x ; then
2778 eval "DEFAULT_$LINE"
2779 else
2780 no_cache=1
2781 fi
2782
2783 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
2784
2785 fi
2786
2787
2788 eval "$ac_cv_use_streams"
2789 if test "$no_cache" != 1; then
2790 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
2791 fi
2792
2793 if test "$wxUSE_STREAMS" = yes; then
2794 echo "$ac_t""yes" 1>&6
2795 else
2796 echo "$ac_t""no" 1>&6
2797 fi
2798
2799
2800 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
2801 echo "configure:2802: checking "for --enable-file"" >&5
2802 no_cache=0
2803 # Check whether --enable-file or --disable-file was given.
2804 if test "${enable_file+set}" = set; then
2805 enableval="$enable_file"
2806
2807 if test "$enableval" = yes; then
2808 ac_cv_use_file='wxUSE_FILE=yes'
2809 else
2810 ac_cv_use_file='wxUSE_FILE=no'
2811 fi
2812
2813 else
2814
2815 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
2816 if test "x$LINE" != x ; then
2817 eval "DEFAULT_$LINE"
2818 else
2819 no_cache=1
2820 fi
2821
2822 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
2823
2824 fi
2825
2826
2827 eval "$ac_cv_use_file"
2828 if test "$no_cache" != 1; then
2829 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
2830 fi
2831
2832 if test "$wxUSE_FILE" = yes; then
2833 echo "$ac_t""yes" 1>&6
2834 else
2835 echo "$ac_t""no" 1>&6
2836 fi
2837
2838
2839 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
2840 echo "configure:2841: checking "for --enable-textfile"" >&5
2841 no_cache=0
2842 # Check whether --enable-textfile or --disable-textfile was given.
2843 if test "${enable_textfile+set}" = set; then
2844 enableval="$enable_textfile"
2845
2846 if test "$enableval" = yes; then
2847 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
2848 else
2849 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
2850 fi
2851
2852 else
2853
2854 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
2855 if test "x$LINE" != x ; then
2856 eval "DEFAULT_$LINE"
2857 else
2858 no_cache=1
2859 fi
2860
2861 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
2862
2863 fi
2864
2865
2866 eval "$ac_cv_use_textfile"
2867 if test "$no_cache" != 1; then
2868 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
2869 fi
2870
2871 if test "$wxUSE_TEXTFILE" = yes; then
2872 echo "$ac_t""yes" 1>&6
2873 else
2874 echo "$ac_t""no" 1>&6
2875 fi
2876
2877
2878 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
2879 echo "configure:2880: checking "for --enable-unicode"" >&5
2880 no_cache=0
2881 # Check whether --enable-unicode or --disable-unicode was given.
2882 if test "${enable_unicode+set}" = set; then
2883 enableval="$enable_unicode"
2884
2885 if test "$enableval" = yes; then
2886 ac_cv_use_unicode='wxUSE_UNICODE=yes'
2887 else
2888 ac_cv_use_unicode='wxUSE_UNICODE=no'
2889 fi
2890
2891 else
2892
2893 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
2894 if test "x$LINE" != x ; then
2895 eval "DEFAULT_$LINE"
2896 else
2897 no_cache=1
2898 fi
2899
2900 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
2901
2902 fi
2903
2904
2905 eval "$ac_cv_use_unicode"
2906 if test "$no_cache" != 1; then
2907 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
2908 fi
2909
2910 if test "$wxUSE_UNICODE" = yes; then
2911 echo "$ac_t""yes" 1>&6
2912 else
2913 echo "$ac_t""no" 1>&6
2914 fi
2915
2916
2917 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
2918 echo "configure:2919: checking "for --enable-wcsrtombs"" >&5
2919 no_cache=0
2920 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
2921 if test "${enable_wcsrtombs+set}" = set; then
2922 enableval="$enable_wcsrtombs"
2923
2924 if test "$enableval" = yes; then
2925 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
2926 else
2927 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
2928 fi
2929
2930 else
2931
2932 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
2933 if test "x$LINE" != x ; then
2934 eval "DEFAULT_$LINE"
2935 else
2936 no_cache=1
2937 fi
2938
2939 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
2940
2941 fi
2942
2943
2944 eval "$ac_cv_use_wcsrtombs"
2945 if test "$no_cache" != 1; then
2946 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
2947 fi
2948
2949 if test "$wxUSE_WCSRTOMBS" = yes; then
2950 echo "$ac_t""yes" 1>&6
2951 else
2952 echo "$ac_t""no" 1>&6
2953 fi
2954
2955
2956 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
2957 echo "configure:2958: checking "for --enable-wxprintfv"" >&5
2958 no_cache=0
2959 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
2960 if test "${enable_wxprintfv+set}" = set; then
2961 enableval="$enable_wxprintfv"
2962
2963 if test "$enableval" = yes; then
2964 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
2965 else
2966 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
2967 fi
2968
2969 else
2970
2971 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
2972 if test "x$LINE" != x ; then
2973 eval "DEFAULT_$LINE"
2974 else
2975 no_cache=1
2976 fi
2977
2978 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
2979
2980 fi
2981
2982
2983 eval "$ac_cv_use_wxprintfv"
2984 if test "$no_cache" != 1; then
2985 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
2986 fi
2987
2988 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
2989 echo "$ac_t""yes" 1>&6
2990 else
2991 echo "$ac_t""no" 1>&6
2992 fi
2993
2994
2995 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
2996 echo "configure:2997: checking "for --enable-joystick"" >&5
2997 no_cache=0
2998 # Check whether --enable-joystick or --disable-joystick was given.
2999 if test "${enable_joystick+set}" = set; then
3000 enableval="$enable_joystick"
3001
3002 if test "$enableval" = yes; then
3003 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
3004 else
3005 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
3006 fi
3007
3008 else
3009
3010 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
3011 if test "x$LINE" != x ; then
3012 eval "DEFAULT_$LINE"
3013 else
3014 no_cache=1
3015 fi
3016
3017 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
3018
3019 fi
3020
3021
3022 eval "$ac_cv_use_joystick"
3023 if test "$no_cache" != 1; then
3024 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
3025 fi
3026
3027 if test "$wxUSE_JOYSTICK" = yes; then
3028 echo "$ac_t""yes" 1>&6
3029 else
3030 echo "$ac_t""no" 1>&6
3031 fi
3032
3033
3034 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
3035 echo "configure:3036: checking "for --enable-std_iostreams"" >&5
3036 no_cache=0
3037 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3038 if test "${enable_std_iostreams+set}" = set; then
3039 enableval="$enable_std_iostreams"
3040
3041 if test "$enableval" = yes; then
3042 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3043 else
3044 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3045 fi
3046
3047 else
3048
3049 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3050 if test "x$LINE" != x ; then
3051 eval "DEFAULT_$LINE"
3052 else
3053 no_cache=1
3054 fi
3055
3056 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3057
3058 fi
3059
3060
3061 eval "$ac_cv_use_std_iostreams"
3062 if test "$no_cache" != 1; then
3063 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3064 fi
3065
3066 if test "$wxUSE_STD_IOSTREAM" = yes; then
3067 echo "$ac_t""yes" 1>&6
3068 else
3069 echo "$ac_t""no" 1>&6
3070 fi
3071
3072
3073 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
3074 echo "configure:3075: checking "for --enable-fs_inet"" >&5
3075 no_cache=0
3076 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3077 if test "${enable_fs_inet+set}" = set; then
3078 enableval="$enable_fs_inet"
3079
3080 if test "$enableval" = yes; then
3081 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3082 else
3083 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3084 fi
3085
3086 else
3087
3088 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3089 if test "x$LINE" != x ; then
3090 eval "DEFAULT_$LINE"
3091 else
3092 no_cache=1
3093 fi
3094
3095 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3096
3097 fi
3098
3099
3100 eval "$ac_cv_use_fs_inet"
3101 if test "$no_cache" != 1; then
3102 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3103 fi
3104
3105 if test "$wxUSE_FS_INET" = yes; then
3106 echo "$ac_t""yes" 1>&6
3107 else
3108 echo "$ac_t""no" 1>&6
3109 fi
3110
3111
3112 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
3113 echo "configure:3114: checking "for --enable-fs_zip"" >&5
3114 no_cache=0
3115 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3116 if test "${enable_fs_zip+set}" = set; then
3117 enableval="$enable_fs_zip"
3118
3119 if test "$enableval" = yes; then
3120 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3121 else
3122 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3123 fi
3124
3125 else
3126
3127 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3128 if test "x$LINE" != x ; then
3129 eval "DEFAULT_$LINE"
3130 else
3131 no_cache=1
3132 fi
3133
3134 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3135
3136 fi
3137
3138
3139 eval "$ac_cv_use_fs_zip"
3140 if test "$no_cache" != 1; then
3141 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3142 fi
3143
3144 if test "$wxUSE_FS_ZIP" = yes; then
3145 echo "$ac_t""yes" 1>&6
3146 else
3147 echo "$ac_t""no" 1>&6
3148 fi
3149
3150
3151 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
3152 echo "configure:3153: checking "for --enable-zipstream"" >&5
3153 no_cache=0
3154 # Check whether --enable-zipstream or --disable-zipstream was given.
3155 if test "${enable_zipstream+set}" = set; then
3156 enableval="$enable_zipstream"
3157
3158 if test "$enableval" = yes; then
3159 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3160 else
3161 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3162 fi
3163
3164 else
3165
3166 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3167 if test "x$LINE" != x ; then
3168 eval "DEFAULT_$LINE"
3169 else
3170 no_cache=1
3171 fi
3172
3173 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3174
3175 fi
3176
3177
3178 eval "$ac_cv_use_zipstream"
3179 if test "$no_cache" != 1; then
3180 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3181 fi
3182
3183 if test "$wxUSE_ZIPSTREAM" = yes; then
3184 echo "$ac_t""yes" 1>&6
3185 else
3186 echo "$ac_t""no" 1>&6
3187 fi
3188
3189
3190
3191
3192 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
3193 echo "configure:3194: checking "for --enable-threads"" >&5
3194 no_cache=0
3195 # Check whether --enable-threads or --disable-threads was given.
3196 if test "${enable_threads+set}" = set; then
3197 enableval="$enable_threads"
3198
3199 if test "$enableval" = yes; then
3200 ac_cv_use_threads='wxUSE_THREADS=yes'
3201 else
3202 ac_cv_use_threads='wxUSE_THREADS=no'
3203 fi
3204
3205 else
3206
3207 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3208 if test "x$LINE" != x ; then
3209 eval "DEFAULT_$LINE"
3210 else
3211 no_cache=1
3212 fi
3213
3214 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3215
3216 fi
3217
3218
3219 eval "$ac_cv_use_threads"
3220 if test "$no_cache" != 1; then
3221 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3222 fi
3223
3224 if test "$wxUSE_THREADS" = yes; then
3225 echo "$ac_t""yes" 1>&6
3226 else
3227 echo "$ac_t""no" 1>&6
3228 fi
3229
3230
3231 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
3232 echo "configure:3233: checking "for --enable-serial"" >&5
3233 no_cache=0
3234 # Check whether --enable-serial or --disable-serial was given.
3235 if test "${enable_serial+set}" = set; then
3236 enableval="$enable_serial"
3237
3238 if test "$enableval" = yes; then
3239 ac_cv_use_serial='wxUSE_SERIAL=yes'
3240 else
3241 ac_cv_use_serial='wxUSE_SERIAL=no'
3242 fi
3243
3244 else
3245
3246 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3247 if test "x$LINE" != x ; then
3248 eval "DEFAULT_$LINE"
3249 else
3250 no_cache=1
3251 fi
3252
3253 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3254
3255 fi
3256
3257
3258 eval "$ac_cv_use_serial"
3259 if test "$no_cache" != 1; then
3260 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3261 fi
3262
3263 if test "$wxUSE_SERIAL" = yes; then
3264 echo "$ac_t""yes" 1>&6
3265 else
3266 echo "$ac_t""no" 1>&6
3267 fi
3268
3269
3270
3271
3272 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
3273 echo "configure:3274: checking "for --enable-docview"" >&5
3274 no_cache=0
3275 # Check whether --enable-docview or --disable-docview was given.
3276 if test "${enable_docview+set}" = set; then
3277 enableval="$enable_docview"
3278
3279 if test "$enableval" = yes; then
3280 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3281 else
3282 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3283 fi
3284
3285 else
3286
3287 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3288 if test "x$LINE" != x ; then
3289 eval "DEFAULT_$LINE"
3290 else
3291 no_cache=1
3292 fi
3293
3294 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3295
3296 fi
3297
3298
3299 eval "$ac_cv_use_docview"
3300 if test "$no_cache" != 1; then
3301 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3302 fi
3303
3304 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3305 echo "$ac_t""yes" 1>&6
3306 else
3307 echo "$ac_t""no" 1>&6
3308 fi
3309
3310
3311 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
3312 echo "configure:3313: checking "for --enable-help"" >&5
3313 no_cache=0
3314 # Check whether --enable-help or --disable-help was given.
3315 if test "${enable_help+set}" = set; then
3316 enableval="$enable_help"
3317
3318 if test "$enableval" = yes; then
3319 ac_cv_use_help='wxUSE_HELP=yes'
3320 else
3321 ac_cv_use_help='wxUSE_HELP=no'
3322 fi
3323
3324 else
3325
3326 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3327 if test "x$LINE" != x ; then
3328 eval "DEFAULT_$LINE"
3329 else
3330 no_cache=1
3331 fi
3332
3333 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3334
3335 fi
3336
3337
3338 eval "$ac_cv_use_help"
3339 if test "$no_cache" != 1; then
3340 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3341 fi
3342
3343 if test "$wxUSE_HELP" = yes; then
3344 echo "$ac_t""yes" 1>&6
3345 else
3346 echo "$ac_t""no" 1>&6
3347 fi
3348
3349
3350 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
3351 echo "configure:3352: checking "for --enable-constraints"" >&5
3352 no_cache=0
3353 # Check whether --enable-constraints or --disable-constraints was given.
3354 if test "${enable_constraints+set}" = set; then
3355 enableval="$enable_constraints"
3356
3357 if test "$enableval" = yes; then
3358 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3359 else
3360 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3361 fi
3362
3363 else
3364
3365 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3366 if test "x$LINE" != x ; then
3367 eval "DEFAULT_$LINE"
3368 else
3369 no_cache=1
3370 fi
3371
3372 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3373
3374 fi
3375
3376
3377 eval "$ac_cv_use_constraints"
3378 if test "$no_cache" != 1; then
3379 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3380 fi
3381
3382 if test "$wxUSE_CONSTRAINTS" = yes; then
3383 echo "$ac_t""yes" 1>&6
3384 else
3385 echo "$ac_t""no" 1>&6
3386 fi
3387
3388
3389 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
3390 echo "configure:3391: checking "for --enable-printarch"" >&5
3391 no_cache=0
3392 # Check whether --enable-printarch or --disable-printarch was given.
3393 if test "${enable_printarch+set}" = set; then
3394 enableval="$enable_printarch"
3395
3396 if test "$enableval" = yes; then
3397 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3398 else
3399 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3400 fi
3401
3402 else
3403
3404 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3405 if test "x$LINE" != x ; then
3406 eval "DEFAULT_$LINE"
3407 else
3408 no_cache=1
3409 fi
3410
3411 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3412
3413 fi
3414
3415
3416 eval "$ac_cv_use_printarch"
3417 if test "$no_cache" != 1; then
3418 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3419 fi
3420
3421 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3422 echo "$ac_t""yes" 1>&6
3423 else
3424 echo "$ac_t""no" 1>&6
3425 fi
3426
3427
3428 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
3429 echo "configure:3430: checking "for --enable-mdi"" >&5
3430 no_cache=0
3431 # Check whether --enable-mdi or --disable-mdi was given.
3432 if test "${enable_mdi+set}" = set; then
3433 enableval="$enable_mdi"
3434
3435 if test "$enableval" = yes; then
3436 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3437 else
3438 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3439 fi
3440
3441 else
3442
3443 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3444 if test "x$LINE" != x ; then
3445 eval "DEFAULT_$LINE"
3446 else
3447 no_cache=1
3448 fi
3449
3450 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3451
3452 fi
3453
3454
3455 eval "$ac_cv_use_mdi"
3456 if test "$no_cache" != 1; then
3457 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3458 fi
3459
3460 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3461 echo "$ac_t""yes" 1>&6
3462 else
3463 echo "$ac_t""no" 1>&6
3464 fi
3465
3466
3467
3468 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
3469 echo "configure:3470: checking "for --enable-postscript"" >&5
3470 no_cache=0
3471 # Check whether --enable-postscript or --disable-postscript was given.
3472 if test "${enable_postscript+set}" = set; then
3473 enableval="$enable_postscript"
3474
3475 if test "$enableval" = yes; then
3476 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3477 else
3478 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3479 fi
3480
3481 else
3482
3483 LINE=`grep "wxUSE_POSTSCRIPT" ${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_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3491
3492 fi
3493
3494
3495 eval "$ac_cv_use_postscript"
3496 if test "$no_cache" != 1; then
3497 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3498 fi
3499
3500 if test "$wxUSE_POSTSCRIPT" = yes; then
3501 echo "$ac_t""yes" 1>&6
3502 else
3503 echo "$ac_t""no" 1>&6
3504 fi
3505
3506
3507
3508
3509 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
3510 echo "configure:3511: checking "for --enable-prologio"" >&5
3511 no_cache=0
3512 # Check whether --enable-prologio or --disable-prologio was given.
3513 if test "${enable_prologio+set}" = set; then
3514 enableval="$enable_prologio"
3515
3516 if test "$enableval" = yes; then
3517 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3518 else
3519 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3520 fi
3521
3522 else
3523
3524 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3525 if test "x$LINE" != x ; then
3526 eval "DEFAULT_$LINE"
3527 else
3528 no_cache=1
3529 fi
3530
3531 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3532
3533 fi
3534
3535
3536 eval "$ac_cv_use_prologio"
3537 if test "$no_cache" != 1; then
3538 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3539 fi
3540
3541 if test "$wxUSE_PROLOGIO" = yes; then
3542 echo "$ac_t""yes" 1>&6
3543 else
3544 echo "$ac_t""no" 1>&6
3545 fi
3546
3547
3548 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
3549 echo "configure:3550: checking "for --enable-resources"" >&5
3550 no_cache=0
3551 # Check whether --enable-resources or --disable-resources was given.
3552 if test "${enable_resources+set}" = set; then
3553 enableval="$enable_resources"
3554
3555 if test "$enableval" = yes; then
3556 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3557 else
3558 ac_cv_use_resources='wxUSE_RESOURCES=no'
3559 fi
3560
3561 else
3562
3563 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3564 if test "x$LINE" != x ; then
3565 eval "DEFAULT_$LINE"
3566 else
3567 no_cache=1
3568 fi
3569
3570 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3571
3572 fi
3573
3574
3575 eval "$ac_cv_use_resources"
3576 if test "$no_cache" != 1; then
3577 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3578 fi
3579
3580 if test "$wxUSE_RESOURCES" = yes; then
3581 echo "$ac_t""yes" 1>&6
3582 else
3583 echo "$ac_t""no" 1>&6
3584 fi
3585
3586
3587
3588 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
3589 echo "configure:3590: checking "for --enable-xresources"" >&5
3590 no_cache=0
3591 # Check whether --enable-xresources or --disable-xresources was given.
3592 if test "${enable_xresources+set}" = set; then
3593 enableval="$enable_xresources"
3594
3595 if test "$enableval" = yes; then
3596 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3597 else
3598 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3599 fi
3600
3601 else
3602
3603 LINE=`grep "wxUSE_X_RESOURCES" ${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_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3611
3612 fi
3613
3614
3615 eval "$ac_cv_use_xresources"
3616 if test "$no_cache" != 1; then
3617 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3618 fi
3619
3620 if test "$wxUSE_X_RESOURCES" = yes; then
3621 echo "$ac_t""yes" 1>&6
3622 else
3623 echo "$ac_t""no" 1>&6
3624 fi
3625
3626
3627
3628
3629 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
3630 echo "configure:3631: checking "for --enable-clipboard"" >&5
3631 no_cache=0
3632 # Check whether --enable-clipboard or --disable-clipboard was given.
3633 if test "${enable_clipboard+set}" = set; then
3634 enableval="$enable_clipboard"
3635
3636 if test "$enableval" = yes; then
3637 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3638 else
3639 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3640 fi
3641
3642 else
3643
3644 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3645 if test "x$LINE" != x ; then
3646 eval "DEFAULT_$LINE"
3647 else
3648 no_cache=1
3649 fi
3650
3651 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
3652
3653 fi
3654
3655
3656 eval "$ac_cv_use_clipboard"
3657 if test "$no_cache" != 1; then
3658 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
3659 fi
3660
3661 if test "$wxUSE_CLIPBOARD" = yes; then
3662 echo "$ac_t""yes" 1>&6
3663 else
3664 echo "$ac_t""no" 1>&6
3665 fi
3666
3667
3668 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
3669 echo "configure:3670: checking "for --enable-dnd"" >&5
3670 no_cache=0
3671 # Check whether --enable-dnd or --disable-dnd was given.
3672 if test "${enable_dnd+set}" = set; then
3673 enableval="$enable_dnd"
3674
3675 if test "$enableval" = yes; then
3676 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
3677 else
3678 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
3679 fi
3680
3681 else
3682
3683 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
3684 if test "x$LINE" != x ; then
3685 eval "DEFAULT_$LINE"
3686 else
3687 no_cache=1
3688 fi
3689
3690 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
3691
3692 fi
3693
3694
3695 eval "$ac_cv_use_dnd"
3696 if test "$no_cache" != 1; then
3697 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
3698 fi
3699
3700 if test "$wxUSE_DRAG_AND_DROP" = yes; then
3701 echo "$ac_t""yes" 1>&6
3702 else
3703 echo "$ac_t""no" 1>&6
3704 fi
3705
3706
3707
3708 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
3709 echo "configure:3710: checking "for --enable-wxtree"" >&5
3710 no_cache=0
3711 # Check whether --enable-wxtree or --disable-wxtree was given.
3712 if test "${enable_wxtree+set}" = set; then
3713 enableval="$enable_wxtree"
3714
3715 if test "$enableval" = yes; then
3716 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
3717 else
3718 ac_cv_use_wxtree='wxUSE_WXTREE=no'
3719 fi
3720
3721 else
3722
3723 LINE=`grep "wxUSE_WXTREE" ${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_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
3731
3732 fi
3733
3734
3735 eval "$ac_cv_use_wxtree"
3736 if test "$no_cache" != 1; then
3737 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
3738 fi
3739
3740 if test "$wxUSE_WXTREE" = yes; then
3741 echo "$ac_t""yes" 1>&6
3742 else
3743 echo "$ac_t""no" 1>&6
3744 fi
3745
3746
3747
3748
3749 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
3750 echo "configure:3751: checking "for --enable-controls"" >&5
3751 no_cache=0
3752 # Check whether --enable-controls or --disable-controls was given.
3753 if test "${enable_controls+set}" = set; then
3754 enableval="$enable_controls"
3755
3756 if test "$enableval" = yes; then
3757 ac_cv_use_controls='wxUSE_CONTROLS=yes'
3758 else
3759 ac_cv_use_controls='wxUSE_CONTROLS=no'
3760 fi
3761
3762 else
3763
3764 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
3765 if test "x$LINE" != x ; then
3766 eval "DEFAULT_$LINE"
3767 else
3768 no_cache=1
3769 fi
3770
3771 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
3772
3773 fi
3774
3775
3776 eval "$ac_cv_use_controls"
3777 if test "$no_cache" != 1; then
3778 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
3779 fi
3780
3781 if test "$wxUSE_CONTROLS" = yes; then
3782 echo "$ac_t""yes" 1>&6
3783 else
3784 echo "$ac_t""no" 1>&6
3785 fi
3786
3787
3788 if test "$wxUSE_CONTROLS" = "yes"; then
3789 DEFAULT_wxUSE_ACCEL=yes
3790 DEFAULT_wxUSE_CARET=yes
3791 DEFAULT_wxUSE_COMBOBOX=yes
3792 DEFAULT_wxUSE_BMPBUTTON=yes
3793 DEFAULT_wxUSE_CHECKBOX=yes
3794 DEFAULT_wxUSE_CHECKLISTBOX=yes
3795 DEFAULT_wxUSE_CHOICE=yes
3796 DEFAULT_wxUSE_GAUGE=yes
3797 DEFAULT_wxUSE_GRID=yes
3798 DEFAULT_wxUSE_IMAGLIST=yes
3799 DEFAULT_wxUSE_LISTBOX=yes
3800 DEFAULT_wxUSE_LISTCTRL=yes
3801 DEFAULT_wxUSE_NOTEBOOK=yes
3802 DEFAULT_wxUSE_RADIOBOX=yes
3803 DEFAULT_wxUSE_RADIOBTN=yes
3804 DEFAULT_wxUSE_SASH=yes
3805 DEFAULT_wxUSE_SCROLLBAR=yes
3806 DEFAULT_wxUSE_SLIDER=yes
3807 DEFAULT_wxUSE_SPINBTN=yes
3808 DEFAULT_wxUSE_SPLITTER=yes
3809 DEFAULT_wxUSE_STATBMP=yes
3810 DEFAULT_wxUSE_STATBOX=yes
3811 DEFAULT_wxUSE_STATLINE=yes
3812 DEFAULT_wxUSE_STATUSBAR=yes
3813 DEFAULT_wxUSE_TAB_DIALOG=yes
3814 DEFAULT_wxUSE_TOOLBAR=yes
3815 DEFAULT_wxUSE_TOOLTIPS=yes
3816 DEFAULT_wxUSE_TREECTRL=yes
3817 elif test "$wxUSE_CONTROLS" = "no"; then
3818 DEFAULT_wxUSE_ACCEL=no
3819 DEFAULT_wxUSE_CARET=no
3820 DEFAULT_wxUSE_COMBOBOX=no
3821 DEFAULT_wxUSE_BMPBUTTON=no
3822 DEFAULT_wxUSE_CHECKBOX=no
3823 DEFAULT_wxUSE_CHECKLISTBOX=no
3824 DEFAULT_wxUSE_CHOICE=no
3825 DEFAULT_wxUSE_GAUGE=no
3826 DEFAULT_wxUSE_GRID=no
3827 DEFAULT_wxUSE_IMAGLIST=no
3828 DEFAULT_wxUSE_LISTBOX=no
3829 DEFAULT_wxUSE_LISTCTRL=no
3830 DEFAULT_wxUSE_NOTEBOOK=no
3831 DEFAULT_wxUSE_RADIOBOX=no
3832 DEFAULT_wxUSE_RADIOBTN=no
3833 DEFAULT_wxUSE_SASH=no
3834 DEFAULT_wxUSE_SCROLLBAR=no
3835 DEFAULT_wxUSE_SLIDER=no
3836 DEFAULT_wxUSE_SPINBTN=no
3837 DEFAULT_wxUSE_SPLITTER=no
3838 DEFAULT_wxUSE_STATBMP=no
3839 DEFAULT_wxUSE_STATBOX=no
3840 DEFAULT_wxUSE_STATLINE=no
3841 DEFAULT_wxUSE_STATUSBAR=no
3842 DEFAULT_wxUSE_TAB_DIALOG=no
3843 DEFAULT_wxUSE_TOOLBAR=no
3844 DEFAULT_wxUSE_TOOLTIPS=no
3845 DEFAULT_wxUSE_TREECTRL=no
3846 fi
3847
3848
3849 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
3850 echo "configure:3851: checking "for --enable-accel"" >&5
3851 no_cache=0
3852 # Check whether --enable-accel or --disable-accel was given.
3853 if test "${enable_accel+set}" = set; then
3854 enableval="$enable_accel"
3855
3856 if test "$enableval" = yes; then
3857 ac_cv_use_accel='wxUSE_ACCEL=yes'
3858 else
3859 ac_cv_use_accel='wxUSE_ACCEL=no'
3860 fi
3861
3862 else
3863
3864 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
3865 if test "x$LINE" != x ; then
3866 eval "DEFAULT_$LINE"
3867 else
3868 no_cache=1
3869 fi
3870
3871 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
3872
3873 fi
3874
3875
3876 eval "$ac_cv_use_accel"
3877 if test "$no_cache" != 1; then
3878 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
3879 fi
3880
3881 if test "$wxUSE_ACCEL" = yes; then
3882 echo "$ac_t""yes" 1>&6
3883 else
3884 echo "$ac_t""no" 1>&6
3885 fi
3886
3887
3888 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
3889 echo "configure:3890: checking "for --enable-caret"" >&5
3890 no_cache=0
3891 # Check whether --enable-caret or --disable-caret was given.
3892 if test "${enable_caret+set}" = set; then
3893 enableval="$enable_caret"
3894
3895 if test "$enableval" = yes; then
3896 ac_cv_use_caret='wxUSE_CARET=yes'
3897 else
3898 ac_cv_use_caret='wxUSE_CARET=no'
3899 fi
3900
3901 else
3902
3903 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
3904 if test "x$LINE" != x ; then
3905 eval "DEFAULT_$LINE"
3906 else
3907 no_cache=1
3908 fi
3909
3910 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
3911
3912 fi
3913
3914
3915 eval "$ac_cv_use_caret"
3916 if test "$no_cache" != 1; then
3917 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
3918 fi
3919
3920 if test "$wxUSE_CARET" = yes; then
3921 echo "$ac_t""yes" 1>&6
3922 else
3923 echo "$ac_t""no" 1>&6
3924 fi
3925
3926
3927 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
3928 echo "configure:3929: checking "for --enable-bmpbutton"" >&5
3929 no_cache=0
3930 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
3931 if test "${enable_bmpbutton+set}" = set; then
3932 enableval="$enable_bmpbutton"
3933
3934 if test "$enableval" = yes; then
3935 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
3936 else
3937 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
3938 fi
3939
3940 else
3941
3942 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
3943 if test "x$LINE" != x ; then
3944 eval "DEFAULT_$LINE"
3945 else
3946 no_cache=1
3947 fi
3948
3949 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
3950
3951 fi
3952
3953
3954 eval "$ac_cv_use_bmpbutton"
3955 if test "$no_cache" != 1; then
3956 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
3957 fi
3958
3959 if test "$wxUSE_BMPBUTTON" = yes; then
3960 echo "$ac_t""yes" 1>&6
3961 else
3962 echo "$ac_t""no" 1>&6
3963 fi
3964
3965
3966 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
3967 echo "configure:3968: checking "for --enable-checkbox"" >&5
3968 no_cache=0
3969 # Check whether --enable-checkbox or --disable-checkbox was given.
3970 if test "${enable_checkbox+set}" = set; then
3971 enableval="$enable_checkbox"
3972
3973 if test "$enableval" = yes; then
3974 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
3975 else
3976 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
3977 fi
3978
3979 else
3980
3981 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
3982 if test "x$LINE" != x ; then
3983 eval "DEFAULT_$LINE"
3984 else
3985 no_cache=1
3986 fi
3987
3988 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
3989
3990 fi
3991
3992
3993 eval "$ac_cv_use_checkbox"
3994 if test "$no_cache" != 1; then
3995 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
3996 fi
3997
3998 if test "$wxUSE_CHECKBOX" = yes; then
3999 echo "$ac_t""yes" 1>&6
4000 else
4001 echo "$ac_t""no" 1>&6
4002 fi
4003
4004
4005 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
4006 echo "configure:4007: checking "for --enable-checklst"" >&5
4007 no_cache=0
4008 # Check whether --enable-checklst or --disable-checklst was given.
4009 if test "${enable_checklst+set}" = set; then
4010 enableval="$enable_checklst"
4011
4012 if test "$enableval" = yes; then
4013 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4014 else
4015 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4016 fi
4017
4018 else
4019
4020 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4021 if test "x$LINE" != x ; then
4022 eval "DEFAULT_$LINE"
4023 else
4024 no_cache=1
4025 fi
4026
4027 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4028
4029 fi
4030
4031
4032 eval "$ac_cv_use_checklst"
4033 if test "$no_cache" != 1; then
4034 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4035 fi
4036
4037 if test "$wxUSE_CHECKLST" = yes; then
4038 echo "$ac_t""yes" 1>&6
4039 else
4040 echo "$ac_t""no" 1>&6
4041 fi
4042
4043
4044 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
4045 echo "configure:4046: checking "for --enable-choice"" >&5
4046 no_cache=0
4047 # Check whether --enable-choice or --disable-choice was given.
4048 if test "${enable_choice+set}" = set; then
4049 enableval="$enable_choice"
4050
4051 if test "$enableval" = yes; then
4052 ac_cv_use_choice='wxUSE_CHOICE=yes'
4053 else
4054 ac_cv_use_choice='wxUSE_CHOICE=no'
4055 fi
4056
4057 else
4058
4059 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4060 if test "x$LINE" != x ; then
4061 eval "DEFAULT_$LINE"
4062 else
4063 no_cache=1
4064 fi
4065
4066 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4067
4068 fi
4069
4070
4071 eval "$ac_cv_use_choice"
4072 if test "$no_cache" != 1; then
4073 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4074 fi
4075
4076 if test "$wxUSE_CHOICE" = yes; then
4077 echo "$ac_t""yes" 1>&6
4078 else
4079 echo "$ac_t""no" 1>&6
4080 fi
4081
4082
4083 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
4084 echo "configure:4085: checking "for --enable-combobox"" >&5
4085 no_cache=0
4086 # Check whether --enable-combobox or --disable-combobox was given.
4087 if test "${enable_combobox+set}" = set; then
4088 enableval="$enable_combobox"
4089
4090 if test "$enableval" = yes; then
4091 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4092 else
4093 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4094 fi
4095
4096 else
4097
4098 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4099 if test "x$LINE" != x ; then
4100 eval "DEFAULT_$LINE"
4101 else
4102 no_cache=1
4103 fi
4104
4105 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4106
4107 fi
4108
4109
4110 eval "$ac_cv_use_combobox"
4111 if test "$no_cache" != 1; then
4112 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4113 fi
4114
4115 if test "$wxUSE_COMBOBOX" = yes; then
4116 echo "$ac_t""yes" 1>&6
4117 else
4118 echo "$ac_t""no" 1>&6
4119 fi
4120
4121
4122 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
4123 echo "configure:4124: checking "for --enable-gauge"" >&5
4124 no_cache=0
4125 # Check whether --enable-gauge or --disable-gauge was given.
4126 if test "${enable_gauge+set}" = set; then
4127 enableval="$enable_gauge"
4128
4129 if test "$enableval" = yes; then
4130 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4131 else
4132 ac_cv_use_gauge='wxUSE_GAUGE=no'
4133 fi
4134
4135 else
4136
4137 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4138 if test "x$LINE" != x ; then
4139 eval "DEFAULT_$LINE"
4140 else
4141 no_cache=1
4142 fi
4143
4144 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4145
4146 fi
4147
4148
4149 eval "$ac_cv_use_gauge"
4150 if test "$no_cache" != 1; then
4151 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4152 fi
4153
4154 if test "$wxUSE_GAUGE" = yes; then
4155 echo "$ac_t""yes" 1>&6
4156 else
4157 echo "$ac_t""no" 1>&6
4158 fi
4159
4160
4161 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
4162 echo "configure:4163: checking "for --enable-grid"" >&5
4163 no_cache=0
4164 # Check whether --enable-grid or --disable-grid was given.
4165 if test "${enable_grid+set}" = set; then
4166 enableval="$enable_grid"
4167
4168 if test "$enableval" = yes; then
4169 ac_cv_use_grid='wxUSE_GRID=yes'
4170 else
4171 ac_cv_use_grid='wxUSE_GRID=no'
4172 fi
4173
4174 else
4175
4176 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4177 if test "x$LINE" != x ; then
4178 eval "DEFAULT_$LINE"
4179 else
4180 no_cache=1
4181 fi
4182
4183 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4184
4185 fi
4186
4187
4188 eval "$ac_cv_use_grid"
4189 if test "$no_cache" != 1; then
4190 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4191 fi
4192
4193 if test "$wxUSE_GRID" = yes; then
4194 echo "$ac_t""yes" 1>&6
4195 else
4196 echo "$ac_t""no" 1>&6
4197 fi
4198
4199
4200 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
4201 echo "configure:4202: checking "for --enable-imaglist"" >&5
4202 no_cache=0
4203 # Check whether --enable-imaglist or --disable-imaglist was given.
4204 if test "${enable_imaglist+set}" = set; then
4205 enableval="$enable_imaglist"
4206
4207 if test "$enableval" = yes; then
4208 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4209 else
4210 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4211 fi
4212
4213 else
4214
4215 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4216 if test "x$LINE" != x ; then
4217 eval "DEFAULT_$LINE"
4218 else
4219 no_cache=1
4220 fi
4221
4222 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4223
4224 fi
4225
4226
4227 eval "$ac_cv_use_imaglist"
4228 if test "$no_cache" != 1; then
4229 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4230 fi
4231
4232 if test "$wxUSE_IMAGLIST" = yes; then
4233 echo "$ac_t""yes" 1>&6
4234 else
4235 echo "$ac_t""no" 1>&6
4236 fi
4237
4238
4239 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
4240 echo "configure:4241: checking "for --enable-listbox"" >&5
4241 no_cache=0
4242 # Check whether --enable-listbox or --disable-listbox was given.
4243 if test "${enable_listbox+set}" = set; then
4244 enableval="$enable_listbox"
4245
4246 if test "$enableval" = yes; then
4247 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4248 else
4249 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4250 fi
4251
4252 else
4253
4254 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4255 if test "x$LINE" != x ; then
4256 eval "DEFAULT_$LINE"
4257 else
4258 no_cache=1
4259 fi
4260
4261 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4262
4263 fi
4264
4265
4266 eval "$ac_cv_use_listbox"
4267 if test "$no_cache" != 1; then
4268 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4269 fi
4270
4271 if test "$wxUSE_LISTBOX" = yes; then
4272 echo "$ac_t""yes" 1>&6
4273 else
4274 echo "$ac_t""no" 1>&6
4275 fi
4276
4277
4278 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
4279 echo "configure:4280: checking "for --enable-listctrl"" >&5
4280 no_cache=0
4281 # Check whether --enable-listctrl or --disable-listctrl was given.
4282 if test "${enable_listctrl+set}" = set; then
4283 enableval="$enable_listctrl"
4284
4285 if test "$enableval" = yes; then
4286 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4287 else
4288 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4289 fi
4290
4291 else
4292
4293 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4294 if test "x$LINE" != x ; then
4295 eval "DEFAULT_$LINE"
4296 else
4297 no_cache=1
4298 fi
4299
4300 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4301
4302 fi
4303
4304
4305 eval "$ac_cv_use_listctrl"
4306 if test "$no_cache" != 1; then
4307 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4308 fi
4309
4310 if test "$wxUSE_LISTCTRL" = yes; then
4311 echo "$ac_t""yes" 1>&6
4312 else
4313 echo "$ac_t""no" 1>&6
4314 fi
4315
4316
4317 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
4318 echo "configure:4319: checking "for --enable-notebook"" >&5
4319 no_cache=0
4320 # Check whether --enable-notebook or --disable-notebook was given.
4321 if test "${enable_notebook+set}" = set; then
4322 enableval="$enable_notebook"
4323
4324 if test "$enableval" = yes; then
4325 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4326 else
4327 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4328 fi
4329
4330 else
4331
4332 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4333 if test "x$LINE" != x ; then
4334 eval "DEFAULT_$LINE"
4335 else
4336 no_cache=1
4337 fi
4338
4339 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4340
4341 fi
4342
4343
4344 eval "$ac_cv_use_notebook"
4345 if test "$no_cache" != 1; then
4346 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4347 fi
4348
4349 if test "$wxUSE_NOTEBOOK" = yes; then
4350 echo "$ac_t""yes" 1>&6
4351 else
4352 echo "$ac_t""no" 1>&6
4353 fi
4354
4355
4356 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
4357 echo "configure:4358: checking "for --enable-radiobox"" >&5
4358 no_cache=0
4359 # Check whether --enable-radiobox or --disable-radiobox was given.
4360 if test "${enable_radiobox+set}" = set; then
4361 enableval="$enable_radiobox"
4362
4363 if test "$enableval" = yes; then
4364 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4365 else
4366 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4367 fi
4368
4369 else
4370
4371 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4372 if test "x$LINE" != x ; then
4373 eval "DEFAULT_$LINE"
4374 else
4375 no_cache=1
4376 fi
4377
4378 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4379
4380 fi
4381
4382
4383 eval "$ac_cv_use_radiobox"
4384 if test "$no_cache" != 1; then
4385 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4386 fi
4387
4388 if test "$wxUSE_RADIOBOX" = yes; then
4389 echo "$ac_t""yes" 1>&6
4390 else
4391 echo "$ac_t""no" 1>&6
4392 fi
4393
4394
4395 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
4396 echo "configure:4397: checking "for --enable-radiobtn"" >&5
4397 no_cache=0
4398 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4399 if test "${enable_radiobtn+set}" = set; then
4400 enableval="$enable_radiobtn"
4401
4402 if test "$enableval" = yes; then
4403 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4404 else
4405 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4406 fi
4407
4408 else
4409
4410 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4411 if test "x$LINE" != x ; then
4412 eval "DEFAULT_$LINE"
4413 else
4414 no_cache=1
4415 fi
4416
4417 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4418
4419 fi
4420
4421
4422 eval "$ac_cv_use_radiobtn"
4423 if test "$no_cache" != 1; then
4424 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4425 fi
4426
4427 if test "$wxUSE_RADIOBTN" = yes; then
4428 echo "$ac_t""yes" 1>&6
4429 else
4430 echo "$ac_t""no" 1>&6
4431 fi
4432
4433
4434 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
4435 echo "configure:4436: checking "for --enable-sash"" >&5
4436 no_cache=0
4437 # Check whether --enable-sash or --disable-sash was given.
4438 if test "${enable_sash+set}" = set; then
4439 enableval="$enable_sash"
4440
4441 if test "$enableval" = yes; then
4442 ac_cv_use_sash='wxUSE_SASH=yes'
4443 else
4444 ac_cv_use_sash='wxUSE_SASH=no'
4445 fi
4446
4447 else
4448
4449 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4450 if test "x$LINE" != x ; then
4451 eval "DEFAULT_$LINE"
4452 else
4453 no_cache=1
4454 fi
4455
4456 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4457
4458 fi
4459
4460
4461 eval "$ac_cv_use_sash"
4462 if test "$no_cache" != 1; then
4463 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4464 fi
4465
4466 if test "$wxUSE_SASH" = yes; then
4467 echo "$ac_t""yes" 1>&6
4468 else
4469 echo "$ac_t""no" 1>&6
4470 fi
4471
4472
4473 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
4474 echo "configure:4475: checking "for --enable-scrollbar"" >&5
4475 no_cache=0
4476 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4477 if test "${enable_scrollbar+set}" = set; then
4478 enableval="$enable_scrollbar"
4479
4480 if test "$enableval" = yes; then
4481 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4482 else
4483 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4484 fi
4485
4486 else
4487
4488 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4489 if test "x$LINE" != x ; then
4490 eval "DEFAULT_$LINE"
4491 else
4492 no_cache=1
4493 fi
4494
4495 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4496
4497 fi
4498
4499
4500 eval "$ac_cv_use_scrollbar"
4501 if test "$no_cache" != 1; then
4502 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4503 fi
4504
4505 if test "$wxUSE_SCROLLBAR" = yes; then
4506 echo "$ac_t""yes" 1>&6
4507 else
4508 echo "$ac_t""no" 1>&6
4509 fi
4510
4511
4512 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
4513 echo "configure:4514: checking "for --enable-slider"" >&5
4514 no_cache=0
4515 # Check whether --enable-slider or --disable-slider was given.
4516 if test "${enable_slider+set}" = set; then
4517 enableval="$enable_slider"
4518
4519 if test "$enableval" = yes; then
4520 ac_cv_use_slider='wxUSE_SLIDER=yes'
4521 else
4522 ac_cv_use_slider='wxUSE_SLIDER=no'
4523 fi
4524
4525 else
4526
4527 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4528 if test "x$LINE" != x ; then
4529 eval "DEFAULT_$LINE"
4530 else
4531 no_cache=1
4532 fi
4533
4534 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4535
4536 fi
4537
4538
4539 eval "$ac_cv_use_slider"
4540 if test "$no_cache" != 1; then
4541 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4542 fi
4543
4544 if test "$wxUSE_SLIDER" = yes; then
4545 echo "$ac_t""yes" 1>&6
4546 else
4547 echo "$ac_t""no" 1>&6
4548 fi
4549
4550
4551 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
4552 echo "configure:4553: checking "for --enable-spinbtn"" >&5
4553 no_cache=0
4554 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4555 if test "${enable_spinbtn+set}" = set; then
4556 enableval="$enable_spinbtn"
4557
4558 if test "$enableval" = yes; then
4559 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4560 else
4561 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4562 fi
4563
4564 else
4565
4566 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4567 if test "x$LINE" != x ; then
4568 eval "DEFAULT_$LINE"
4569 else
4570 no_cache=1
4571 fi
4572
4573 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4574
4575 fi
4576
4577
4578 eval "$ac_cv_use_spinbtn"
4579 if test "$no_cache" != 1; then
4580 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4581 fi
4582
4583 if test "$wxUSE_SPINBTN" = yes; then
4584 echo "$ac_t""yes" 1>&6
4585 else
4586 echo "$ac_t""no" 1>&6
4587 fi
4588
4589
4590 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
4591 echo "configure:4592: checking "for --enable-splitter"" >&5
4592 no_cache=0
4593 # Check whether --enable-splitter or --disable-splitter was given.
4594 if test "${enable_splitter+set}" = set; then
4595 enableval="$enable_splitter"
4596
4597 if test "$enableval" = yes; then
4598 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
4599 else
4600 ac_cv_use_splitter='wxUSE_SPLITTER=no'
4601 fi
4602
4603 else
4604
4605 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
4606 if test "x$LINE" != x ; then
4607 eval "DEFAULT_$LINE"
4608 else
4609 no_cache=1
4610 fi
4611
4612 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
4613
4614 fi
4615
4616
4617 eval "$ac_cv_use_splitter"
4618 if test "$no_cache" != 1; then
4619 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
4620 fi
4621
4622 if test "$wxUSE_SPLITTER" = yes; then
4623 echo "$ac_t""yes" 1>&6
4624 else
4625 echo "$ac_t""no" 1>&6
4626 fi
4627
4628
4629 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
4630 echo "configure:4631: checking "for --enable-statbmp"" >&5
4631 no_cache=0
4632 # Check whether --enable-statbmp or --disable-statbmp was given.
4633 if test "${enable_statbmp+set}" = set; then
4634 enableval="$enable_statbmp"
4635
4636 if test "$enableval" = yes; then
4637 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
4638 else
4639 ac_cv_use_statbmp='wxUSE_STATBMP=no'
4640 fi
4641
4642 else
4643
4644 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
4645 if test "x$LINE" != x ; then
4646 eval "DEFAULT_$LINE"
4647 else
4648 no_cache=1
4649 fi
4650
4651 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
4652
4653 fi
4654
4655
4656 eval "$ac_cv_use_statbmp"
4657 if test "$no_cache" != 1; then
4658 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
4659 fi
4660
4661 if test "$wxUSE_STATBMP" = yes; then
4662 echo "$ac_t""yes" 1>&6
4663 else
4664 echo "$ac_t""no" 1>&6
4665 fi
4666
4667
4668 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
4669 echo "configure:4670: checking "for --enable-statbox"" >&5
4670 no_cache=0
4671 # Check whether --enable-statbox or --disable-statbox was given.
4672 if test "${enable_statbox+set}" = set; then
4673 enableval="$enable_statbox"
4674
4675 if test "$enableval" = yes; then
4676 ac_cv_use_statbox='wxUSE_STATBOX=yes'
4677 else
4678 ac_cv_use_statbox='wxUSE_STATBOX=no'
4679 fi
4680
4681 else
4682
4683 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
4684 if test "x$LINE" != x ; then
4685 eval "DEFAULT_$LINE"
4686 else
4687 no_cache=1
4688 fi
4689
4690 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
4691
4692 fi
4693
4694
4695 eval "$ac_cv_use_statbox"
4696 if test "$no_cache" != 1; then
4697 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
4698 fi
4699
4700 if test "$wxUSE_STATBOX" = yes; then
4701 echo "$ac_t""yes" 1>&6
4702 else
4703 echo "$ac_t""no" 1>&6
4704 fi
4705
4706
4707 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
4708 echo "configure:4709: checking "for --enable-statline"" >&5
4709 no_cache=0
4710 # Check whether --enable-statline or --disable-statline was given.
4711 if test "${enable_statline+set}" = set; then
4712 enableval="$enable_statline"
4713
4714 if test "$enableval" = yes; then
4715 ac_cv_use_statline='wxUSE_STATLINE=yes'
4716 else
4717 ac_cv_use_statline='wxUSE_STATLINE=no'
4718 fi
4719
4720 else
4721
4722 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
4723 if test "x$LINE" != x ; then
4724 eval "DEFAULT_$LINE"
4725 else
4726 no_cache=1
4727 fi
4728
4729 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
4730
4731 fi
4732
4733
4734 eval "$ac_cv_use_statline"
4735 if test "$no_cache" != 1; then
4736 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
4737 fi
4738
4739 if test "$wxUSE_STATLINE" = yes; then
4740 echo "$ac_t""yes" 1>&6
4741 else
4742 echo "$ac_t""no" 1>&6
4743 fi
4744
4745
4746 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
4747 echo "configure:4748: checking "for --enable-statusbar"" >&5
4748 no_cache=0
4749 # Check whether --enable-statusbar or --disable-statusbar was given.
4750 if test "${enable_statusbar+set}" = set; then
4751 enableval="$enable_statusbar"
4752
4753 if test "$enableval" = yes; then
4754 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
4755 else
4756 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
4757 fi
4758
4759 else
4760
4761 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
4762 if test "x$LINE" != x ; then
4763 eval "DEFAULT_$LINE"
4764 else
4765 no_cache=1
4766 fi
4767
4768 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
4769
4770 fi
4771
4772
4773 eval "$ac_cv_use_statusbar"
4774 if test "$no_cache" != 1; then
4775 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
4776 fi
4777
4778 if test "$wxUSE_STATUSBAR" = yes; then
4779 echo "$ac_t""yes" 1>&6
4780 else
4781 echo "$ac_t""no" 1>&6
4782 fi
4783
4784
4785 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
4786 echo "configure:4787: checking "for --enable-tabdialog"" >&5
4787 no_cache=0
4788 # Check whether --enable-tabdialog or --disable-tabdialog was given.
4789 if test "${enable_tabdialog+set}" = set; then
4790 enableval="$enable_tabdialog"
4791
4792 if test "$enableval" = yes; then
4793 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
4794 else
4795 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
4796 fi
4797
4798 else
4799
4800 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
4801 if test "x$LINE" != x ; then
4802 eval "DEFAULT_$LINE"
4803 else
4804 no_cache=1
4805 fi
4806
4807 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
4808
4809 fi
4810
4811
4812 eval "$ac_cv_use_tabdialog"
4813 if test "$no_cache" != 1; then
4814 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
4815 fi
4816
4817 if test "$wxUSE_TABDIALOG" = yes; then
4818 echo "$ac_t""yes" 1>&6
4819 else
4820 echo "$ac_t""no" 1>&6
4821 fi
4822
4823
4824 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
4825 echo "configure:4826: checking "for --enable-toolbar"" >&5
4826 no_cache=0
4827 # Check whether --enable-toolbar or --disable-toolbar was given.
4828 if test "${enable_toolbar+set}" = set; then
4829 enableval="$enable_toolbar"
4830
4831 if test "$enableval" = yes; then
4832 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
4833 else
4834 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
4835 fi
4836
4837 else
4838
4839 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
4840 if test "x$LINE" != x ; then
4841 eval "DEFAULT_$LINE"
4842 else
4843 no_cache=1
4844 fi
4845
4846 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
4847
4848 fi
4849
4850
4851 eval "$ac_cv_use_toolbar"
4852 if test "$no_cache" != 1; then
4853 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
4854 fi
4855
4856 if test "$wxUSE_TOOLBAR" = yes; then
4857 echo "$ac_t""yes" 1>&6
4858 else
4859 echo "$ac_t""no" 1>&6
4860 fi
4861
4862
4863 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
4864 echo "configure:4865: checking "for --enable-treectrl"" >&5
4865 no_cache=0
4866 # Check whether --enable-treectrl or --disable-treectrl was given.
4867 if test "${enable_treectrl+set}" = set; then
4868 enableval="$enable_treectrl"
4869
4870 if test "$enableval" = yes; then
4871 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
4872 else
4873 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
4874 fi
4875
4876 else
4877
4878 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
4879 if test "x$LINE" != x ; then
4880 eval "DEFAULT_$LINE"
4881 else
4882 no_cache=1
4883 fi
4884
4885 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
4886
4887 fi
4888
4889
4890 eval "$ac_cv_use_treectrl"
4891 if test "$no_cache" != 1; then
4892 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
4893 fi
4894
4895 if test "$wxUSE_TREECTRL" = yes; then
4896 echo "$ac_t""yes" 1>&6
4897 else
4898 echo "$ac_t""no" 1>&6
4899 fi
4900
4901
4902
4903
4904 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
4905 echo "configure:4906: checking "for --enable-commondlg"" >&5
4906 no_cache=0
4907 # Check whether --enable-commondlg or --disable-commondlg was given.
4908 if test "${enable_commondlg+set}" = set; then
4909 enableval="$enable_commondlg"
4910
4911 if test "$enableval" = yes; then
4912 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
4913 else
4914 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
4915 fi
4916
4917 else
4918
4919 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
4920 if test "x$LINE" != x ; then
4921 eval "DEFAULT_$LINE"
4922 else
4923 no_cache=1
4924 fi
4925
4926 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
4927
4928 fi
4929
4930
4931 eval "$ac_cv_use_commondlg"
4932 if test "$no_cache" != 1; then
4933 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
4934 fi
4935
4936 if test "$wxUSE_COMMONDLGS" = yes; then
4937 echo "$ac_t""yes" 1>&6
4938 else
4939 echo "$ac_t""no" 1>&6
4940 fi
4941
4942
4943 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
4944 echo "configure:4945: checking "for --enable-dirdlg"" >&5
4945 no_cache=0
4946 # Check whether --enable-dirdlg or --disable-dirdlg was given.
4947 if test "${enable_dirdlg+set}" = set; then
4948 enableval="$enable_dirdlg"
4949
4950 if test "$enableval" = yes; then
4951 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
4952 else
4953 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
4954 fi
4955
4956 else
4957
4958 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
4959 if test "x$LINE" != x ; then
4960 eval "DEFAULT_$LINE"
4961 else
4962 no_cache=1
4963 fi
4964
4965 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
4966
4967 fi
4968
4969
4970 eval "$ac_cv_use_dirdlg"
4971 if test "$no_cache" != 1; then
4972 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
4973 fi
4974
4975 if test "$wxUSE_DIRDLG" = yes; then
4976 echo "$ac_t""yes" 1>&6
4977 else
4978 echo "$ac_t""no" 1>&6
4979 fi
4980
4981
4982 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
4983 echo "configure:4984: checking "for --enable-textdlg"" >&5
4984 no_cache=0
4985 # Check whether --enable-textdlg or --disable-textdlg was given.
4986 if test "${enable_textdlg+set}" = set; then
4987 enableval="$enable_textdlg"
4988
4989 if test "$enableval" = yes; then
4990 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
4991 else
4992 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
4993 fi
4994
4995 else
4996
4997 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
4998 if test "x$LINE" != x ; then
4999 eval "DEFAULT_$LINE"
5000 else
5001 no_cache=1
5002 fi
5003
5004 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5005
5006 fi
5007
5008
5009 eval "$ac_cv_use_textdlg"
5010 if test "$no_cache" != 1; then
5011 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5012 fi
5013
5014 if test "$wxUSE_TEXTDLG" = yes; then
5015 echo "$ac_t""yes" 1>&6
5016 else
5017 echo "$ac_t""no" 1>&6
5018 fi
5019
5020
5021 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
5022 echo "configure:5023: checking "for --enable-tipdlg"" >&5
5023 no_cache=0
5024 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5025 if test "${enable_tipdlg+set}" = set; then
5026 enableval="$enable_tipdlg"
5027
5028 if test "$enableval" = yes; then
5029 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5030 else
5031 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5032 fi
5033
5034 else
5035
5036 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5037 if test "x$LINE" != x ; then
5038 eval "DEFAULT_$LINE"
5039 else
5040 no_cache=1
5041 fi
5042
5043 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5044
5045 fi
5046
5047
5048 eval "$ac_cv_use_tipdlg"
5049 if test "$no_cache" != 1; then
5050 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5051 fi
5052
5053 if test "$wxUSE_STARTUP_TIPS" = yes; then
5054 echo "$ac_t""yes" 1>&6
5055 else
5056 echo "$ac_t""no" 1>&6
5057 fi
5058
5059
5060 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
5061 echo "configure:5062: checking "for --enable-progressdlg"" >&5
5062 no_cache=0
5063 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5064 if test "${enable_progressdlg+set}" = set; then
5065 enableval="$enable_progressdlg"
5066
5067 if test "$enableval" = yes; then
5068 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5069 else
5070 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5071 fi
5072
5073 else
5074
5075 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5076 if test "x$LINE" != x ; then
5077 eval "DEFAULT_$LINE"
5078 else
5079 no_cache=1
5080 fi
5081
5082 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5083
5084 fi
5085
5086
5087 eval "$ac_cv_use_progressdlg"
5088 if test "$no_cache" != 1; then
5089 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5090 fi
5091
5092 if test "$wxUSE_PROGRESSDLG" = yes; then
5093 echo "$ac_t""yes" 1>&6
5094 else
5095 echo "$ac_t""no" 1>&6
5096 fi
5097
5098
5099 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
5100 echo "configure:5101: checking "for --enable-miniframe"" >&5
5101 no_cache=0
5102 # Check whether --enable-miniframe or --disable-miniframe was given.
5103 if test "${enable_miniframe+set}" = set; then
5104 enableval="$enable_miniframe"
5105
5106 if test "$enableval" = yes; then
5107 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5108 else
5109 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5110 fi
5111
5112 else
5113
5114 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5115 if test "x$LINE" != x ; then
5116 eval "DEFAULT_$LINE"
5117 else
5118 no_cache=1
5119 fi
5120
5121 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5122
5123 fi
5124
5125
5126 eval "$ac_cv_use_miniframe"
5127 if test "$no_cache" != 1; then
5128 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5129 fi
5130
5131 if test "$wxUSE_MINIFRAME" = yes; then
5132 echo "$ac_t""yes" 1>&6
5133 else
5134 echo "$ac_t""no" 1>&6
5135 fi
5136
5137
5138 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
5139 echo "configure:5140: checking "for --enable-html"" >&5
5140 no_cache=0
5141 # Check whether --enable-html or --disable-html was given.
5142 if test "${enable_html+set}" = set; then
5143 enableval="$enable_html"
5144
5145 if test "$enableval" = yes; then
5146 ac_cv_use_html='wxUSE_HTML=yes'
5147 else
5148 ac_cv_use_html='wxUSE_HTML=no'
5149 fi
5150
5151 else
5152
5153 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5154 if test "x$LINE" != x ; then
5155 eval "DEFAULT_$LINE"
5156 else
5157 no_cache=1
5158 fi
5159
5160 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5161
5162 fi
5163
5164
5165 eval "$ac_cv_use_html"
5166 if test "$no_cache" != 1; then
5167 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5168 fi
5169
5170 if test "$wxUSE_HTML" = yes; then
5171 echo "$ac_t""yes" 1>&6
5172 else
5173 echo "$ac_t""no" 1>&6
5174 fi
5175
5176
5177 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
5178 echo "configure:5179: checking "for --enable-tooltips"" >&5
5179 no_cache=0
5180 # Check whether --enable-tooltips or --disable-tooltips was given.
5181 if test "${enable_tooltips+set}" = set; then
5182 enableval="$enable_tooltips"
5183
5184 if test "$enableval" = yes; then
5185 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5186 else
5187 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5188 fi
5189
5190 else
5191
5192 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5193 if test "x$LINE" != x ; then
5194 eval "DEFAULT_$LINE"
5195 else
5196 no_cache=1
5197 fi
5198
5199 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5200
5201 fi
5202
5203
5204 eval "$ac_cv_use_tooltips"
5205 if test "$no_cache" != 1; then
5206 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5207 fi
5208
5209 if test "$wxUSE_TOOLTIPS" = yes; then
5210 echo "$ac_t""yes" 1>&6
5211 else
5212 echo "$ac_t""no" 1>&6
5213 fi
5214
5215
5216 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
5217 echo "configure:5218: checking "for --enable-splines"" >&5
5218 no_cache=0
5219 # Check whether --enable-splines or --disable-splines was given.
5220 if test "${enable_splines+set}" = set; then
5221 enableval="$enable_splines"
5222
5223 if test "$enableval" = yes; then
5224 ac_cv_use_splines='wxUSE_SPLINES=yes'
5225 else
5226 ac_cv_use_splines='wxUSE_SPLINES=no'
5227 fi
5228
5229 else
5230
5231 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5232 if test "x$LINE" != x ; then
5233 eval "DEFAULT_$LINE"
5234 else
5235 no_cache=1
5236 fi
5237
5238 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5239
5240 fi
5241
5242
5243 eval "$ac_cv_use_splines"
5244 if test "$no_cache" != 1; then
5245 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5246 fi
5247
5248 if test "$wxUSE_SPLINES" = yes; then
5249 echo "$ac_t""yes" 1>&6
5250 else
5251 echo "$ac_t""no" 1>&6
5252 fi
5253
5254
5255 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
5256 echo "configure:5257: checking "for --enable-validators"" >&5
5257 no_cache=0
5258 # Check whether --enable-validators or --disable-validators was given.
5259 if test "${enable_validators+set}" = set; then
5260 enableval="$enable_validators"
5261
5262 if test "$enableval" = yes; then
5263 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5264 else
5265 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5266 fi
5267
5268 else
5269
5270 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5271 if test "x$LINE" != x ; then
5272 eval "DEFAULT_$LINE"
5273 else
5274 no_cache=1
5275 fi
5276
5277 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5278
5279 fi
5280
5281
5282 eval "$ac_cv_use_validators"
5283 if test "$no_cache" != 1; then
5284 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5285 fi
5286
5287 if test "$wxUSE_VALIDATORS" = yes; then
5288 echo "$ac_t""yes" 1>&6
5289 else
5290 echo "$ac_t""no" 1>&6
5291 fi
5292
5293
5294 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
5295 echo "configure:5296: checking "for --enable-busyinfo"" >&5
5296 no_cache=0
5297 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5298 if test "${enable_busyinfo+set}" = set; then
5299 enableval="$enable_busyinfo"
5300
5301 if test "$enableval" = yes; then
5302 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5303 else
5304 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5305 fi
5306
5307 else
5308
5309 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5310 if test "x$LINE" != x ; then
5311 eval "DEFAULT_$LINE"
5312 else
5313 no_cache=1
5314 fi
5315
5316 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5317
5318 fi
5319
5320
5321 eval "$ac_cv_use_busyinfo"
5322 if test "$no_cache" != 1; then
5323 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5324 fi
5325
5326 if test "$wxUSE_BUSYINFO" = yes; then
5327 echo "$ac_t""yes" 1>&6
5328 else
5329 echo "$ac_t""no" 1>&6
5330 fi
5331
5332
5333
5334
5335 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
5336 echo "configure:5337: checking "for --enable-gif"" >&5
5337 no_cache=0
5338 # Check whether --enable-gif or --disable-gif was given.
5339 if test "${enable_gif+set}" = set; then
5340 enableval="$enable_gif"
5341
5342 if test "$enableval" = yes; then
5343 ac_cv_use_gif='wxUSE_GIF=yes'
5344 else
5345 ac_cv_use_gif='wxUSE_GIF=no'
5346 fi
5347
5348 else
5349
5350 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5351 if test "x$LINE" != x ; then
5352 eval "DEFAULT_$LINE"
5353 else
5354 no_cache=1
5355 fi
5356
5357 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5358
5359 fi
5360
5361
5362 eval "$ac_cv_use_gif"
5363 if test "$no_cache" != 1; then
5364 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5365 fi
5366
5367 if test "$wxUSE_GIF" = yes; then
5368 echo "$ac_t""yes" 1>&6
5369 else
5370 echo "$ac_t""no" 1>&6
5371 fi
5372
5373
5374 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
5375 echo "configure:5376: checking "for --enable-pcx"" >&5
5376 no_cache=0
5377 # Check whether --enable-pcx or --disable-pcx was given.
5378 if test "${enable_pcx+set}" = set; then
5379 enableval="$enable_pcx"
5380
5381 if test "$enableval" = yes; then
5382 ac_cv_use_pcx='wxUSE_PCX=yes'
5383 else
5384 ac_cv_use_pcx='wxUSE_PCX=no'
5385 fi
5386
5387 else
5388
5389 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5390 if test "x$LINE" != x ; then
5391 eval "DEFAULT_$LINE"
5392 else
5393 no_cache=1
5394 fi
5395
5396 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5397
5398 fi
5399
5400
5401 eval "$ac_cv_use_pcx"
5402 if test "$no_cache" != 1; then
5403 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5404 fi
5405
5406 if test "$wxUSE_PCX" = yes; then
5407 echo "$ac_t""yes" 1>&6
5408 else
5409 echo "$ac_t""no" 1>&6
5410 fi
5411
5412
5413 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
5414 echo "configure:5415: checking "for --enable-pnm"" >&5
5415 no_cache=0
5416 # Check whether --enable-pnm or --disable-pnm was given.
5417 if test "${enable_pnm+set}" = set; then
5418 enableval="$enable_pnm"
5419
5420 if test "$enableval" = yes; then
5421 ac_cv_use_pnm='wxUSE_PNM=yes'
5422 else
5423 ac_cv_use_pnm='wxUSE_PNM=no'
5424 fi
5425
5426 else
5427
5428 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5429 if test "x$LINE" != x ; then
5430 eval "DEFAULT_$LINE"
5431 else
5432 no_cache=1
5433 fi
5434
5435 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
5436
5437 fi
5438
5439
5440 eval "$ac_cv_use_pnm"
5441 if test "$no_cache" != 1; then
5442 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
5443 fi
5444
5445 if test "$wxUSE_PNM" = yes; then
5446 echo "$ac_t""yes" 1>&6
5447 else
5448 echo "$ac_t""no" 1>&6
5449 fi
5450
5451
5452
5453 echo "saving argument cache $wx_arg_cache_file"
5454 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
5455
5456
5457
5458 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
5459 echo "configure:5460: checking for toolkit" >&5
5460
5461 if test "$TOOLKIT_GIVEN" = 1; then
5462 for toolkit in `echo $ALL_TOOLKITS`; do
5463 var=wxUSE_$toolkit
5464 eval "value=\$${var}"
5465 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
5466 done
5467 else
5468 for toolkit in `echo $ALL_TOOLKITS`; do
5469 if test "$has_toolkit_in_cache" != 1; then
5470 var=DEFAULT_DEFAULT_wxUSE_$toolkit
5471 else
5472 var=DEFAULT_wxUSE_$toolkit
5473 fi
5474 eval "wxUSE_$toolkit=\$${var}"
5475 done
5476 fi
5477
5478 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
5479
5480 case "$NUM_TOOLKITS" in
5481 1)
5482 ;;
5483 0)
5484 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
5485 ;;
5486 *)
5487 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
5488 esac
5489
5490 for toolkit in `echo $ALL_TOOLKITS`; do
5491 var=wxUSE_$toolkit
5492 eval "value=\$${var}"
5493 if test "x$value" != x; then
5494 cache_var=CACHE_$toolkit
5495 eval "cache=\$${cache_var}"
5496 if test "$cache" = 1; then
5497 echo "$var=$value" >> ${wx_arg_cache_file}
5498 fi
5499 if test "$value" = 1; then
5500 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
5501 fi
5502 fi
5503 done
5504
5505
5506 cat > confcache <<\EOF
5507 # This file is a shell script that caches the results of configure
5508 # tests run on this system so they can be shared between configure
5509 # scripts and configure runs. It is not useful on other systems.
5510 # If it contains results you don't want to keep, you may remove or edit it.
5511 #
5512 # By default, configure uses ./config.cache as the cache file,
5513 # creating it if it does not exist already. You can give configure
5514 # the --cache-file=FILE option to use a different cache file; that is
5515 # what configure does when it calls configure scripts in
5516 # subdirectories, so they share the cache.
5517 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5518 # config.status only pays attention to the cache file if you give it the
5519 # --recheck option to rerun configure.
5520 #
5521 EOF
5522 # The following way of writing the cache mishandles newlines in values,
5523 # but we know of no workaround that is simple, portable, and efficient.
5524 # So, don't put newlines in cache variables' values.
5525 # Ultrix sh set writes to stderr and can't be redirected directly,
5526 # and sets the high bit in the cache file unless we assign to the vars.
5527 (set) 2>&1 |
5528 case `(ac_space=' '; set) 2>&1` in
5529 *ac_space=\ *)
5530 # `set' does not quote correctly, so add quotes (double-quote substitution
5531 # turns \\\\ into \\, and sed turns \\ into \).
5532 sed -n \
5533 -e "s/'/'\\\\''/g" \
5534 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5535 ;;
5536 *)
5537 # `set' quotes correctly as required by POSIX, so do not add quotes.
5538 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5539 ;;
5540 esac >> confcache
5541 if cmp -s $cache_file confcache; then
5542 :
5543 else
5544 if test -w $cache_file; then
5545 echo "updating cache $cache_file"
5546 cat confcache > $cache_file
5547 else
5548 echo "not updating unwritable cache $cache_file"
5549 fi
5550 fi
5551 rm -f confcache
5552
5553
5554 if eval "test $host != $build"; then
5555 if eval "test $host_alias != NONE"; then
5556 CC=$host_alias-gcc
5557 CXX=$host_alias-c++
5558 AR=$host_alias-ar
5559 RANLIB=$host_alias-ranlib
5560 DLLTOOL=$host_alias-dlltool
5561 LD=$host_alias-ld
5562 NM=$host_alias-nm
5563 STRIP=$host_alias-strip
5564 fi
5565 fi
5566
5567 # Extract the first word of "gcc", so it can be a program name with args.
5568 set dummy gcc; ac_word=$2
5569 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5570 echo "configure:5571: checking for $ac_word" >&5
5571 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5572 echo $ac_n "(cached) $ac_c" 1>&6
5573 else
5574 if test -n "$CC"; then
5575 ac_cv_prog_CC="$CC" # Let the user override the test.
5576 else
5577 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5578 for ac_dir in $PATH; do
5579 test -z "$ac_dir" && ac_dir=.
5580 if test -f $ac_dir/$ac_word; then
5581 ac_cv_prog_CC="gcc"
5582 break
5583 fi
5584 done
5585 IFS="$ac_save_ifs"
5586 fi
5587 fi
5588 CC="$ac_cv_prog_CC"
5589 if test -n "$CC"; then
5590 echo "$ac_t""$CC" 1>&6
5591 else
5592 echo "$ac_t""no" 1>&6
5593 fi
5594
5595 if test -z "$CC"; then
5596 # Extract the first word of "cc", so it can be a program name with args.
5597 set dummy cc; ac_word=$2
5598 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5599 echo "configure:5600: checking for $ac_word" >&5
5600 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5601 echo $ac_n "(cached) $ac_c" 1>&6
5602 else
5603 if test -n "$CC"; then
5604 ac_cv_prog_CC="$CC" # Let the user override the test.
5605 else
5606 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5607 ac_prog_rejected=no
5608 for ac_dir in $PATH; do
5609 test -z "$ac_dir" && ac_dir=.
5610 if test -f $ac_dir/$ac_word; then
5611 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
5612 ac_prog_rejected=yes
5613 continue
5614 fi
5615 ac_cv_prog_CC="cc"
5616 break
5617 fi
5618 done
5619 IFS="$ac_save_ifs"
5620 if test $ac_prog_rejected = yes; then
5621 # We found a bogon in the path, so make sure we never use it.
5622 set dummy $ac_cv_prog_CC
5623 shift
5624 if test $# -gt 0; then
5625 # We chose a different compiler from the bogus one.
5626 # However, it has the same basename, so the bogon will be chosen
5627 # first if we set CC to just the basename; use the full file name.
5628 shift
5629 set dummy "$ac_dir/$ac_word" "$@"
5630 shift
5631 ac_cv_prog_CC="$@"
5632 fi
5633 fi
5634 fi
5635 fi
5636 CC="$ac_cv_prog_CC"
5637 if test -n "$CC"; then
5638 echo "$ac_t""$CC" 1>&6
5639 else
5640 echo "$ac_t""no" 1>&6
5641 fi
5642
5643 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
5644 fi
5645
5646 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
5647 echo "configure:5648: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
5648
5649 ac_ext=c
5650 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5651 ac_cpp='$CPP $CPPFLAGS'
5652 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5653 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5654 cross_compiling=$ac_cv_prog_cc_cross
5655
5656 cat > conftest.$ac_ext <<EOF
5657 #line 5658 "configure"
5658 #include "confdefs.h"
5659 main(){return(0);}
5660 EOF
5661 if { (eval echo configure:5662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5662 ac_cv_prog_cc_works=yes
5663 # If we can't run a trivial program, we are probably using a cross compiler.
5664 if (./conftest; exit) 2>/dev/null; then
5665 ac_cv_prog_cc_cross=no
5666 else
5667 ac_cv_prog_cc_cross=yes
5668 fi
5669 else
5670 echo "configure: failed program was:" >&5
5671 cat conftest.$ac_ext >&5
5672 ac_cv_prog_cc_works=no
5673 fi
5674 rm -fr conftest*
5675
5676 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
5677 if test $ac_cv_prog_cc_works = no; then
5678 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
5679 fi
5680 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
5681 echo "configure:5682: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
5682 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
5683 cross_compiling=$ac_cv_prog_cc_cross
5684
5685 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
5686 echo "configure:5687: checking whether we are using GNU C" >&5
5687 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
5688 echo $ac_n "(cached) $ac_c" 1>&6
5689 else
5690 cat > conftest.c <<EOF
5691 #ifdef __GNUC__
5692 yes;
5693 #endif
5694 EOF
5695 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:5696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
5696 ac_cv_prog_gcc=yes
5697 else
5698 ac_cv_prog_gcc=no
5699 fi
5700 fi
5701
5702 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
5703
5704 if test $ac_cv_prog_gcc = yes; then
5705 GCC=yes
5706 ac_test_CFLAGS="${CFLAGS+set}"
5707 ac_save_CFLAGS="$CFLAGS"
5708 CFLAGS=
5709 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
5710 echo "configure:5711: checking whether ${CC-cc} accepts -g" >&5
5711 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
5712 echo $ac_n "(cached) $ac_c" 1>&6
5713 else
5714 echo 'void f(){}' > conftest.c
5715 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
5716 ac_cv_prog_cc_g=yes
5717 else
5718 ac_cv_prog_cc_g=no
5719 fi
5720 rm -f conftest*
5721
5722 fi
5723
5724 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
5725 if test "$ac_test_CFLAGS" = set; then
5726 CFLAGS="$ac_save_CFLAGS"
5727 elif test $ac_cv_prog_cc_g = yes; then
5728 CFLAGS="-g -O2"
5729 else
5730 CFLAGS="-O2"
5731 fi
5732 else
5733 GCC=
5734 test "${CFLAGS+set}" = set || CFLAGS="-g"
5735 fi
5736
5737
5738 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
5739
5740 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
5741 echo "configure:5742: checking how to run the C preprocessor" >&5
5742 # On Suns, sometimes $CPP names a directory.
5743 if test -n "$CPP" && test -d "$CPP"; then
5744 CPP=
5745 fi
5746 if test -z "$CPP"; then
5747 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
5748 echo $ac_n "(cached) $ac_c" 1>&6
5749 else
5750 # This must be in double quotes, not single quotes, because CPP may get
5751 # substituted into the Makefile and "${CC-cc}" will confuse make.
5752 CPP="${CC-cc} -E"
5753 # On the NeXT, cc -E runs the code through the compiler's parser,
5754 # not just through cpp.
5755 cat > conftest.$ac_ext <<EOF
5756 #line 5757 "configure"
5757 #include "confdefs.h"
5758 #include <assert.h>
5759 Syntax Error
5760 EOF
5761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5762 { (eval echo configure:5763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5763 ac_err=`grep -v '^ *+' conftest.out`
5764 if test -z "$ac_err"; then
5765 :
5766 else
5767 echo "$ac_err" >&5
5768 echo "configure: failed program was:" >&5
5769 cat conftest.$ac_ext >&5
5770 rm -rf conftest*
5771 CPP="${CC-cc} -E -traditional-cpp"
5772 cat > conftest.$ac_ext <<EOF
5773 #line 5774 "configure"
5774 #include "confdefs.h"
5775 #include <assert.h>
5776 Syntax Error
5777 EOF
5778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5779 { (eval echo configure:5780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5780 ac_err=`grep -v '^ *+' conftest.out`
5781 if test -z "$ac_err"; then
5782 :
5783 else
5784 echo "$ac_err" >&5
5785 echo "configure: failed program was:" >&5
5786 cat conftest.$ac_ext >&5
5787 rm -rf conftest*
5788 CPP=/lib/cpp
5789 fi
5790 rm -f conftest*
5791 fi
5792 rm -f conftest*
5793 ac_cv_prog_CPP="$CPP"
5794 fi
5795 CPP="$ac_cv_prog_CPP"
5796 else
5797 ac_cv_prog_CPP="$CPP"
5798 fi
5799 echo "$ac_t""$CPP" 1>&6
5800
5801
5802 if test $ac_cv_prog_gcc = yes; then
5803 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
5804 echo "configure:5805: checking whether ${CC-cc} needs -traditional" >&5
5805 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
5806 echo $ac_n "(cached) $ac_c" 1>&6
5807 else
5808 ac_pattern="Autoconf.*'x'"
5809 cat > conftest.$ac_ext <<EOF
5810 #line 5811 "configure"
5811 #include "confdefs.h"
5812 #include <sgtty.h>
5813 Autoconf TIOCGETP
5814 EOF
5815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5816 egrep "$ac_pattern" >/dev/null 2>&1; then
5817 rm -rf conftest*
5818 ac_cv_prog_gcc_traditional=yes
5819 else
5820 rm -rf conftest*
5821 ac_cv_prog_gcc_traditional=no
5822 fi
5823 rm -f conftest*
5824
5825
5826 if test $ac_cv_prog_gcc_traditional = no; then
5827 cat > conftest.$ac_ext <<EOF
5828 #line 5829 "configure"
5829 #include "confdefs.h"
5830 #include <termio.h>
5831 Autoconf TCGETA
5832 EOF
5833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5834 egrep "$ac_pattern" >/dev/null 2>&1; then
5835 rm -rf conftest*
5836 ac_cv_prog_gcc_traditional=yes
5837 fi
5838 rm -f conftest*
5839
5840 fi
5841 fi
5842
5843 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
5844 if test $ac_cv_prog_gcc_traditional = yes; then
5845 CC="$CC -traditional"
5846 fi
5847 fi
5848
5849
5850
5851 ac_ext=C
5852 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5853 ac_cpp='$CXXCPP $CPPFLAGS'
5854 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5855 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5856 cross_compiling=$ac_cv_prog_cxx_cross
5857
5858
5859 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
5860 do
5861 # Extract the first word of "$ac_prog", so it can be a program name with args.
5862 set dummy $ac_prog; ac_word=$2
5863 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5864 echo "configure:5865: checking for $ac_word" >&5
5865 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
5866 echo $ac_n "(cached) $ac_c" 1>&6
5867 else
5868 if test -n "$CXX"; then
5869 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5870 else
5871 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5872 for ac_dir in $PATH; do
5873 test -z "$ac_dir" && ac_dir=.
5874 if test -f $ac_dir/$ac_word; then
5875 ac_cv_prog_CXX="$ac_prog"
5876 break
5877 fi
5878 done
5879 IFS="$ac_save_ifs"
5880 fi
5881 fi
5882 CXX="$ac_cv_prog_CXX"
5883 if test -n "$CXX"; then
5884 echo "$ac_t""$CXX" 1>&6
5885 else
5886 echo "$ac_t""no" 1>&6
5887 fi
5888
5889 test -n "$CXX" && break
5890 done
5891 test -n "$CXX" || CXX="gcc"
5892
5893
5894 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
5895 echo "configure:5896: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
5896
5897 ac_ext=C
5898 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5899 ac_cpp='$CXXCPP $CPPFLAGS'
5900 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5901 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5902 cross_compiling=$ac_cv_prog_cxx_cross
5903
5904 cat > conftest.$ac_ext <<EOF
5905 #line 5906 "configure"
5906 #include "confdefs.h"
5907 main(){return(0);}
5908 EOF
5909 if { (eval echo configure:5910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5910 ac_cv_prog_cxx_works=yes
5911 # If we can't run a trivial program, we are probably using a cross compiler.
5912 if (./conftest; exit) 2>/dev/null; then
5913 ac_cv_prog_cxx_cross=no
5914 else
5915 ac_cv_prog_cxx_cross=yes
5916 fi
5917 else
5918 echo "configure: failed program was:" >&5
5919 cat conftest.$ac_ext >&5
5920 ac_cv_prog_cxx_works=no
5921 fi
5922 rm -fr conftest*
5923
5924 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
5925 if test $ac_cv_prog_cxx_works = no; then
5926 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
5927 fi
5928 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
5929 echo "configure:5930: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
5930 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
5931 cross_compiling=$ac_cv_prog_cxx_cross
5932
5933 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
5934 echo "configure:5935: checking whether we are using GNU C++" >&5
5935 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
5936 echo $ac_n "(cached) $ac_c" 1>&6
5937 else
5938 cat > conftest.C <<EOF
5939 #ifdef __GNUC__
5940 yes;
5941 #endif
5942 EOF
5943 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:5944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
5944 ac_cv_prog_gxx=yes
5945 else
5946 ac_cv_prog_gxx=no
5947 fi
5948 fi
5949
5950 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
5951
5952 if test $ac_cv_prog_gxx = yes; then
5953 GXX=yes
5954 ac_test_CXXFLAGS="${CXXFLAGS+set}"
5955 ac_save_CXXFLAGS="$CXXFLAGS"
5956 CXXFLAGS=
5957 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
5958 echo "configure:5959: checking whether ${CXX-g++} accepts -g" >&5
5959 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
5960 echo $ac_n "(cached) $ac_c" 1>&6
5961 else
5962 echo 'void f(){}' > conftest.cc
5963 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
5964 ac_cv_prog_cxx_g=yes
5965 else
5966 ac_cv_prog_cxx_g=no
5967 fi
5968 rm -f conftest*
5969
5970 fi
5971
5972 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
5973 if test "$ac_test_CXXFLAGS" = set; then
5974 CXXFLAGS="$ac_save_CXXFLAGS"
5975 elif test $ac_cv_prog_cxx_g = yes; then
5976 CXXFLAGS="-g -O2"
5977 else
5978 CXXFLAGS="-O2"
5979 fi
5980 else
5981 GXX=
5982 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
5983 fi
5984
5985
5986 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
5987 echo "configure:5988: checking how to run the C++ preprocessor" >&5
5988 if test -z "$CXXCPP"; then
5989 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
5990 echo $ac_n "(cached) $ac_c" 1>&6
5991 else
5992 ac_ext=C
5993 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5994 ac_cpp='$CXXCPP $CPPFLAGS'
5995 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5996 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5997 cross_compiling=$ac_cv_prog_cxx_cross
5998 CXXCPP="${CXX-g++} -E"
5999 cat > conftest.$ac_ext <<EOF
6000 #line 6001 "configure"
6001 #include "confdefs.h"
6002 #include <stdlib.h>
6003 EOF
6004 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6005 { (eval echo configure:6006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6006 ac_err=`grep -v '^ *+' conftest.out`
6007 if test -z "$ac_err"; then
6008 :
6009 else
6010 echo "$ac_err" >&5
6011 echo "configure: failed program was:" >&5
6012 cat conftest.$ac_ext >&5
6013 rm -rf conftest*
6014 CXXCPP=/lib/cpp
6015 fi
6016 rm -f conftest*
6017 ac_cv_prog_CXXCPP="$CXXCPP"
6018 fi
6019 fi
6020 CXXCPP="$ac_cv_prog_CXXCPP"
6021 echo "$ac_t""$CXXCPP" 1>&6
6022
6023
6024 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6025
6026 ac_ext=c
6027 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6028 ac_cpp='$CPP $CPPFLAGS'
6029 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6030 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6031 cross_compiling=$ac_cv_prog_cc_cross
6032
6033
6034 # Extract the first word of "ranlib", so it can be a program name with args.
6035 set dummy ranlib; ac_word=$2
6036 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6037 echo "configure:6038: checking for $ac_word" >&5
6038 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6039 echo $ac_n "(cached) $ac_c" 1>&6
6040 else
6041 if test -n "$RANLIB"; then
6042 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6043 else
6044 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6045 for ac_dir in $PATH; do
6046 test -z "$ac_dir" && ac_dir=.
6047 if test -f $ac_dir/$ac_word; then
6048 ac_cv_prog_RANLIB="ranlib"
6049 break
6050 fi
6051 done
6052 IFS="$ac_save_ifs"
6053 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6054 fi
6055 fi
6056 RANLIB="$ac_cv_prog_RANLIB"
6057 if test -n "$RANLIB"; then
6058 echo "$ac_t""$RANLIB" 1>&6
6059 else
6060 echo "$ac_t""no" 1>&6
6061 fi
6062
6063
6064 # Extract the first word of "ar", so it can be a program name with args.
6065 set dummy ar; ac_word=$2
6066 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6067 echo "configure:6068: checking for $ac_word" >&5
6068 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6069 echo $ac_n "(cached) $ac_c" 1>&6
6070 else
6071 if test -n "$AR"; then
6072 ac_cv_prog_AR="$AR" # Let the user override the test.
6073 else
6074 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6075 for ac_dir in $PATH; do
6076 test -z "$ac_dir" && ac_dir=.
6077 if test -f $ac_dir/$ac_word; then
6078 ac_cv_prog_AR="ar"
6079 break
6080 fi
6081 done
6082 IFS="$ac_save_ifs"
6083 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6084 fi
6085 fi
6086 AR="$ac_cv_prog_AR"
6087 if test -n "$AR"; then
6088 echo "$ac_t""$AR" 1>&6
6089 else
6090 echo "$ac_t""no" 1>&6
6091 fi
6092
6093
6094 # Find a good install program. We prefer a C program (faster),
6095 # so one script is as good as another. But avoid the broken or
6096 # incompatible versions:
6097 # SysV /etc/install, /usr/sbin/install
6098 # SunOS /usr/etc/install
6099 # IRIX /sbin/install
6100 # AIX /bin/install
6101 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6102 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6103 # ./install, which can be erroneously created by make from ./install.sh.
6104 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
6105 echo "configure:6106: checking for a BSD compatible install" >&5
6106 if test -z "$INSTALL"; then
6107 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6108 echo $ac_n "(cached) $ac_c" 1>&6
6109 else
6110 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
6111 for ac_dir in $PATH; do
6112 # Account for people who put trailing slashes in PATH elements.
6113 case "$ac_dir/" in
6114 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6115 *)
6116 # OSF1 and SCO ODT 3.0 have their own names for install.
6117 for ac_prog in ginstall installbsd scoinst install; do
6118 if test -f $ac_dir/$ac_prog; then
6119 if test $ac_prog = install &&
6120 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6121 # AIX install. It has an incompatible calling convention.
6122 # OSF/1 installbsd also uses dspmsg, but is usable.
6123 :
6124 else
6125 ac_cv_path_install="$ac_dir/$ac_prog -c"
6126 break 2
6127 fi
6128 fi
6129 done
6130 ;;
6131 esac
6132 done
6133 IFS="$ac_save_IFS"
6134
6135 fi
6136 if test "${ac_cv_path_install+set}" = set; then
6137 INSTALL="$ac_cv_path_install"
6138 else
6139 # As a last resort, use the slow shell script. We don't cache a
6140 # path for INSTALL within a source directory, because that will
6141 # break other packages using the cache if that directory is
6142 # removed, or if the path is relative.
6143 INSTALL="$ac_install_sh"
6144 fi
6145 fi
6146 echo "$ac_t""$INSTALL" 1>&6
6147
6148 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6149 # It thinks the first close brace ends the variable substitution.
6150 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6151
6152 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6153
6154
6155 # Extract the first word of "strip", so it can be a program name with args.
6156 set dummy strip; ac_word=$2
6157 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6158 echo "configure:6159: checking for $ac_word" >&5
6159 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6160 echo $ac_n "(cached) $ac_c" 1>&6
6161 else
6162 if test -n "$STRIP"; then
6163 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6164 else
6165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6166 for ac_dir in $PATH; do
6167 test -z "$ac_dir" && ac_dir=.
6168 if test -f $ac_dir/$ac_word; then
6169 ac_cv_prog_STRIP="strip"
6170 break
6171 fi
6172 done
6173 IFS="$ac_save_ifs"
6174 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6175 fi
6176 fi
6177 STRIP="$ac_cv_prog_STRIP"
6178 if test -n "$STRIP"; then
6179 echo "$ac_t""$STRIP" 1>&6
6180 else
6181 echo "$ac_t""no" 1>&6
6182 fi
6183
6184
6185 echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
6186 echo "configure:6187: checking "make for VPATH support"" >&5
6187 cat - << EOF > confMake
6188 check : file
6189 cp \$? \$@
6190 cp \$? final_file
6191 EOF
6192
6193 if test ! -d sub ; then
6194 mkdir sub
6195 fi
6196 echo dummy > sub/file
6197 ${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null
6198 RESULT=$?
6199 rm -f sub/file check final_file confMake
6200 rmdir sub
6201 if test "$RESULT" = 0; then
6202 echo "$ac_t""yes" 1>&6
6203 else
6204 echo "$ac_t""no" 1>&6
6205 { echo "configure: error: You need a make-utility that is able to use the variable
6206 VPATH correctly.
6207 If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6208 fi
6209
6210 for ac_prog in 'bison -y' byacc
6211 do
6212 # Extract the first word of "$ac_prog", so it can be a program name with args.
6213 set dummy $ac_prog; ac_word=$2
6214 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6215 echo "configure:6216: checking for $ac_word" >&5
6216 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6217 echo $ac_n "(cached) $ac_c" 1>&6
6218 else
6219 if test -n "$YACC"; then
6220 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6221 else
6222 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6223 for ac_dir in $PATH; do
6224 test -z "$ac_dir" && ac_dir=.
6225 if test -f $ac_dir/$ac_word; then
6226 ac_cv_prog_YACC="$ac_prog"
6227 break
6228 fi
6229 done
6230 IFS="$ac_save_ifs"
6231 fi
6232 fi
6233 YACC="$ac_cv_prog_YACC"
6234 if test -n "$YACC"; then
6235 echo "$ac_t""$YACC" 1>&6
6236 else
6237 echo "$ac_t""no" 1>&6
6238 fi
6239
6240 test -n "$YACC" && break
6241 done
6242 test -n "$YACC" || YACC="yacc"
6243
6244
6245 # Extract the first word of "flex", so it can be a program name with args.
6246 set dummy flex; ac_word=$2
6247 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6248 echo "configure:6249: checking for $ac_word" >&5
6249 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6250 echo $ac_n "(cached) $ac_c" 1>&6
6251 else
6252 if test -n "$LEX"; then
6253 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6254 else
6255 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6256 for ac_dir in $PATH; do
6257 test -z "$ac_dir" && ac_dir=.
6258 if test -f $ac_dir/$ac_word; then
6259 ac_cv_prog_LEX="flex"
6260 break
6261 fi
6262 done
6263 IFS="$ac_save_ifs"
6264 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6265 fi
6266 fi
6267 LEX="$ac_cv_prog_LEX"
6268 if test -n "$LEX"; then
6269 echo "$ac_t""$LEX" 1>&6
6270 else
6271 echo "$ac_t""no" 1>&6
6272 fi
6273
6274 if test -z "$LEXLIB"
6275 then
6276 case "$LEX" in
6277 flex*) ac_lib=fl ;;
6278 *) ac_lib=l ;;
6279 esac
6280 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
6281 echo "configure:6282: checking for yywrap in -l$ac_lib" >&5
6282 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6283 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6284 echo $ac_n "(cached) $ac_c" 1>&6
6285 else
6286 ac_save_LIBS="$LIBS"
6287 LIBS="-l$ac_lib $LIBS"
6288 cat > conftest.$ac_ext <<EOF
6289 #line 6290 "configure"
6290 #include "confdefs.h"
6291 /* Override any gcc2 internal prototype to avoid an error. */
6292 /* We use char because int might match the return type of a gcc2
6293 builtin and then its argument prototype would still apply. */
6294 char yywrap();
6295
6296 int main() {
6297 yywrap()
6298 ; return 0; }
6299 EOF
6300 if { (eval echo configure:6301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6301 rm -rf conftest*
6302 eval "ac_cv_lib_$ac_lib_var=yes"
6303 else
6304 echo "configure: failed program was:" >&5
6305 cat conftest.$ac_ext >&5
6306 rm -rf conftest*
6307 eval "ac_cv_lib_$ac_lib_var=no"
6308 fi
6309 rm -f conftest*
6310 LIBS="$ac_save_LIBS"
6311
6312 fi
6313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6314 echo "$ac_t""yes" 1>&6
6315 LEXLIB="-l$ac_lib"
6316 else
6317 echo "$ac_t""no" 1>&6
6318 fi
6319
6320 fi
6321
6322
6323 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
6324 echo "configure:6325: checking whether ln -s works" >&5
6325 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6326 echo $ac_n "(cached) $ac_c" 1>&6
6327 else
6328 rm -f conftestdata
6329 if ln -s X conftestdata 2>/dev/null
6330 then
6331 rm -f conftestdata
6332 ac_cv_prog_LN_S="ln -s"
6333 else
6334 ac_cv_prog_LN_S=ln
6335 fi
6336 fi
6337 LN_S="$ac_cv_prog_LN_S"
6338 if test "$ac_cv_prog_LN_S" = "ln -s"; then
6339 echo "$ac_t""yes" 1>&6
6340 else
6341 echo "$ac_t""no" 1>&6
6342 fi
6343
6344
6345
6346 SEARCH_INCLUDE="\
6347 /usr/Motif-1.2/include \
6348 /usr/Motif-2.1/include \
6349 \
6350 /usr/include/Motif1.2 \
6351 /opt/xpm/include/X11 \
6352 /opt/GBxpm/include/ \
6353 /opt/GBxpm/X11/include/ \
6354 \
6355 /usr/Motif1.2/include \
6356 /usr/dt/include \
6357 /usr/include/Xm \
6358 \
6359 /usr/X11R6/include \
6360 /usr/X11R5/include \
6361 /usr/X11R4/include \
6362 \
6363 /usr/X11R6/lib \
6364 /usr/X11R5/lib \
6365 /usr/X11R4/lib \
6366 \
6367 /usr/include/X11R6 \
6368 /usr/include/X11R5 \
6369 /usr/include/X11R4 \
6370 \
6371 /usr/local/X11R6/include \
6372 /usr/local/X11R5/include \
6373 /usr/local/X11R4/include \
6374 \
6375 /usr/local/include/X11R6 \
6376 /usr/local/include/X11R5 \
6377 /usr/local/include/X11R4 \
6378 \
6379 /usr/X11/include \
6380 /usr/include/X11 \
6381 /usr/local/X11/include \
6382 /usr/local/include/X11 \
6383 \
6384 /usr/X386/include \
6385 /usr/x386/include \
6386 /usr/XFree86/include/X11 \
6387 \
6388 /usr/include \
6389 /usr/local/include \
6390 \
6391 /usr/include/gtk \
6392 /usr/local/include/gtk \
6393 /usr/include/glib \
6394 /usr/local/include/glib \
6395 \
6396 /usr/include/qt \
6397 /usr/local/include/qt \
6398 \
6399 /usr/include/windows \
6400 /usr/include/wine \
6401 /usr/local/include/wine \
6402 \
6403 /usr/unsupported/include \
6404 /usr/athena/include \
6405 /usr/local/x11r5/include \
6406 /usr/lpp/Xamples/include \
6407 \
6408 /usr/openwin/include \
6409 /usr/openwin/share/include \
6410 "
6411
6412 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
6413
6414
6415 cat > confcache <<\EOF
6416 # This file is a shell script that caches the results of configure
6417 # tests run on this system so they can be shared between configure
6418 # scripts and configure runs. It is not useful on other systems.
6419 # If it contains results you don't want to keep, you may remove or edit it.
6420 #
6421 # By default, configure uses ./config.cache as the cache file,
6422 # creating it if it does not exist already. You can give configure
6423 # the --cache-file=FILE option to use a different cache file; that is
6424 # what configure does when it calls configure scripts in
6425 # subdirectories, so they share the cache.
6426 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6427 # config.status only pays attention to the cache file if you give it the
6428 # --recheck option to rerun configure.
6429 #
6430 EOF
6431 # The following way of writing the cache mishandles newlines in values,
6432 # but we know of no workaround that is simple, portable, and efficient.
6433 # So, don't put newlines in cache variables' values.
6434 # Ultrix sh set writes to stderr and can't be redirected directly,
6435 # and sets the high bit in the cache file unless we assign to the vars.
6436 (set) 2>&1 |
6437 case `(ac_space=' '; set) 2>&1` in
6438 *ac_space=\ *)
6439 # `set' does not quote correctly, so add quotes (double-quote substitution
6440 # turns \\\\ into \\, and sed turns \\ into \).
6441 sed -n \
6442 -e "s/'/'\\\\''/g" \
6443 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6444 ;;
6445 *)
6446 # `set' quotes correctly as required by POSIX, so do not add quotes.
6447 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6448 ;;
6449 esac >> confcache
6450 if cmp -s $cache_file confcache; then
6451 :
6452 else
6453 if test -w $cache_file; then
6454 echo "updating cache $cache_file"
6455 cat confcache > $cache_file
6456 else
6457 echo "not updating unwritable cache $cache_file"
6458 fi
6459 fi
6460 rm -f confcache
6461
6462
6463
6464 TOOLKIT=
6465 TOOLKIT_INCLUDE=
6466
6467 GUIOBJS=
6468 COMMONOBJS=
6469 GENERICOBJS=
6470
6471 GUI_TK_LIBRARY=
6472 GUI_TK_LINK=
6473
6474 WXGTK12=
6475
6476 WXWINE=
6477
6478 PROGRAM_EXT=
6479
6480 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
6481 if test "$cross_compiling" = "yes" ; then
6482 echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2
6483 else
6484 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
6485 echo "configure:6486: checking for Windows headers" >&5
6486
6487 ac_find_includes=
6488 for ac_dir in $SEARCH_INCLUDE;
6489 do
6490 if test -f "$ac_dir/windows.h"; then
6491 ac_find_includes=$ac_dir
6492 break
6493 fi
6494 done
6495
6496 if test "$ac_find_includes" != "" ; then
6497 echo "$ac_t""found $ac_find_includes" 1>&6
6498 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
6499 else
6500 echo "$ac_t""no" 1>&6
6501 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
6502 fi
6503 fi
6504
6505 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
6506 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
6507
6508 TOOLKIT=MSW
6509
6510 GUIOBJS=MSW_GUIOBJS
6511 GUIHEADERS=MSW_HEADERS
6512 COMMONOBJS=MSW_COMMONOBJS
6513 GENERICOBJS=MSW_GENERICOBJS
6514 UNIXOBJS=
6515 GUIDIST=MSW_DIST
6516 PROGRAM_EXT=.exe
6517 fi
6518
6519 if test "$wxUSE_GTK" = 1; then
6520
6521 if test x$gtk_config_exec_prefix != x ; then
6522 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
6523 if test x${GTK_CONFIG+set} != xset ; then
6524 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
6525 fi
6526 fi
6527 if test x$gtk_config_prefix != x ; then
6528 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
6529 if test x${GTK_CONFIG+set} != xset ; then
6530 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
6531 fi
6532 fi
6533
6534 # Extract the first word of "gtk-config", so it can be a program name with args.
6535 set dummy gtk-config; ac_word=$2
6536 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6537 echo "configure:6538: checking for $ac_word" >&5
6538 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
6539 echo $ac_n "(cached) $ac_c" 1>&6
6540 else
6541 case "$GTK_CONFIG" in
6542 /*)
6543 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
6544 ;;
6545 *)
6546 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6547 for ac_dir in $PATH; do
6548 test -z "$ac_dir" && ac_dir=.
6549 if test -f $ac_dir/$ac_word; then
6550 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
6551 break
6552 fi
6553 done
6554 IFS="$ac_save_ifs"
6555 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
6556 ;;
6557 esac
6558 fi
6559 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
6560 if test -n "$GTK_CONFIG"; then
6561 echo "$ac_t""$GTK_CONFIG" 1>&6
6562 else
6563 echo "$ac_t""no" 1>&6
6564 fi
6565
6566 min_gtk_version=1.2.0
6567 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
6568 echo "configure:6569: checking for GTK - version >= $min_gtk_version" >&5
6569 no_gtk=""
6570 if test "$GTK_CONFIG" != "no" ; then
6571 GTK_CFLAGS=`$GTK_CONFIG --cflags`
6572 GTK_LIBS=`$GTK_CONFIG --libs`
6573 ac_save_CFLAGS="$CFLAGS"
6574 ac_save_LIBS="$LIBS"
6575 CFLAGS="$CFLAGS $GTK_CFLAGS"
6576 LIBS="$LIBS $GTK_LIBS"
6577 if test "$cross_compiling" = yes; then
6578 echo $ac_n "cross compiling; assumed OK... $ac_c"
6579 else
6580 cat > conftest.$ac_ext <<EOF
6581 #line 6582 "configure"
6582 #include "confdefs.h"
6583
6584 #include <gtk/gtk.h>
6585 #include <stdio.h>
6586
6587 int
6588 main ()
6589 {
6590 int major, minor, micro;
6591
6592 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
6593 printf("%s, bad version string\n", "$min_gtk_version");
6594 exit(1);
6595 }
6596
6597 if (gtk_minor_version == 1) return FALSE;
6598
6599 return !((gtk_major_version > major) ||
6600 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6601 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
6602 }
6603
6604 EOF
6605 if { (eval echo configure:6606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6606 then
6607 :
6608 else
6609 echo "configure: failed program was:" >&5
6610 cat conftest.$ac_ext >&5
6611 rm -fr conftest*
6612 no_gtk=yes
6613 fi
6614 rm -fr conftest*
6615 fi
6616
6617 CFLAGS="$ac_save_CFLAGS"
6618 LIBS="$ac_save_LIBS"
6619 else
6620 no_gtk=yes
6621 fi
6622 if test "x$no_gtk" = x ; then
6623 echo "$ac_t""yes" 1>&6
6624 WXGTK12=1
6625 else
6626 echo "$ac_t""no" 1>&6
6627 GTK_CFLAGS=""
6628 GTK_LIBS=""
6629 :
6630 fi
6631
6632
6633
6634 if test "$WXGTK12" != 1; then
6635
6636 if test x$gtk_config_exec_prefix != x ; then
6637 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
6638 if test x${GTK_CONFIG+set} != xset ; then
6639 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
6640 fi
6641 fi
6642 if test x$gtk_config_prefix != x ; then
6643 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
6644 if test x${GTK_CONFIG+set} != xset ; then
6645 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
6646 fi
6647 fi
6648
6649 # Extract the first word of "gtk-config", so it can be a program name with args.
6650 set dummy gtk-config; ac_word=$2
6651 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6652 echo "configure:6653: checking for $ac_word" >&5
6653 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
6654 echo $ac_n "(cached) $ac_c" 1>&6
6655 else
6656 case "$GTK_CONFIG" in
6657 /*)
6658 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
6659 ;;
6660 *)
6661 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6662 for ac_dir in $PATH; do
6663 test -z "$ac_dir" && ac_dir=.
6664 if test -f $ac_dir/$ac_word; then
6665 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
6666 break
6667 fi
6668 done
6669 IFS="$ac_save_ifs"
6670 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
6671 ;;
6672 esac
6673 fi
6674 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
6675 if test -n "$GTK_CONFIG"; then
6676 echo "$ac_t""$GTK_CONFIG" 1>&6
6677 else
6678 echo "$ac_t""no" 1>&6
6679 fi
6680
6681 min_gtk_version=1.0.0
6682 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
6683 echo "configure:6684: checking for GTK - version >= $min_gtk_version" >&5
6684 no_gtk=""
6685 if test "$GTK_CONFIG" != "no" ; then
6686 GTK_CFLAGS=`$GTK_CONFIG --cflags`
6687 GTK_LIBS=`$GTK_CONFIG --libs`
6688 ac_save_CFLAGS="$CFLAGS"
6689 ac_save_LIBS="$LIBS"
6690 CFLAGS="$CFLAGS $GTK_CFLAGS"
6691 LIBS="$LIBS $GTK_LIBS"
6692 if test "$cross_compiling" = yes; then
6693 echo $ac_n "cross compiling; assumed OK... $ac_c"
6694 else
6695 cat > conftest.$ac_ext <<EOF
6696 #line 6697 "configure"
6697 #include "confdefs.h"
6698
6699 #include <gtk/gtk.h>
6700 #include <stdio.h>
6701
6702 int
6703 main ()
6704 {
6705 int major, minor, micro;
6706
6707 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
6708 printf("%s, bad version string\n", "$min_gtk_version");
6709 exit(1);
6710 }
6711
6712 if (gtk_minor_version == 1) return FALSE;
6713
6714 return !((gtk_major_version > major) ||
6715 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6716 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
6717 }
6718
6719 EOF
6720 if { (eval echo configure:6721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6721 then
6722 :
6723 else
6724 echo "configure: failed program was:" >&5
6725 cat conftest.$ac_ext >&5
6726 rm -fr conftest*
6727 no_gtk=yes
6728 fi
6729 rm -fr conftest*
6730 fi
6731
6732 CFLAGS="$ac_save_CFLAGS"
6733 LIBS="$ac_save_LIBS"
6734 else
6735 no_gtk=yes
6736 fi
6737 if test "x$no_gtk" = x ; then
6738 echo "$ac_t""yes" 1>&6
6739 :
6740 else
6741 echo "$ac_t""no" 1>&6
6742 GTK_CFLAGS=""
6743 GTK_LIBS=""
6744 { echo "configure: error: Is gtk-config in path and GTK+ is version 1.2.X or 1.0.X?" 1>&2; exit 1; }
6745 fi
6746
6747
6748
6749 fi
6750
6751 TOOLKIT_INCLUDE="$GTK_CFLAGS"
6752 GUI_TK_LIBRARY="$GTK_LIBS -ldl"
6753 TOOLKIT=GTK
6754
6755 GUIHEADERS=GTK_HEADERS
6756 GUIOBJS=GTK_GUIOBJS
6757 COMMONOBJS=GTK_COMMONOBJS
6758 GENERICOBJS=GTK_GENERICOBJS
6759 GUIDEPS=GTK_GUIDEPS
6760 COMMONDEPS=GTK_COMMONDEPS
6761 GENERICDEPS=GTK_GENERICDEPS
6762 UNIXOBJS=UNIXOBJS
6763 GUIDIST=GTK_DIST
6764 fi
6765
6766 if test "$wxUSE_WINE" = 1; then
6767 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
6768 echo "configure:6769: checking for WINE includes" >&5
6769
6770 ac_find_includes=
6771 for ac_dir in $SEARCH_INCLUDE;
6772 do
6773 if test -f "$ac_dir/windows.h"; then
6774 ac_find_includes=$ac_dir
6775 break
6776 fi
6777 done
6778
6779 if test "$ac_find_includes" != "" ; then
6780 echo "$ac_t""found $ac_find_includes" 1>&6
6781 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
6782 else
6783 echo "$ac_t""no" 1>&6
6784 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
6785 fi
6786
6787 XPM_LINK=""
6788 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
6789 echo "configure:6790: checking for Xpm library" >&5
6790
6791 ac_find_libraries=
6792 for ac_dir in $SEARCH_LIB;
6793 do
6794 for ac_extension in a so sl; do
6795 if test -f "$ac_dir/libXpm.$ac_extension"; then
6796 ac_find_libraries=$ac_dir
6797 break 2
6798 fi
6799 done
6800 done
6801
6802 if test "$ac_find_libraries" != "" ; then
6803 GUI_TK_LIBRARY="-L$ac_find_libraries"
6804 XPM_LINK="-lXpm"
6805 cat >> confdefs.h <<\EOF
6806 #define wxHAVE_LIB_XPM 1
6807 EOF
6808
6809 echo "$ac_t""found at $ac_find_libraries" 1>&6
6810 else
6811 echo "$ac_t""no" 1>&6
6812 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
6813 fi
6814
6815 MESA_LINK=""
6816 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
6817 echo "configure:6818: checking for Mesa library" >&5
6818
6819 ac_find_libraries=
6820 for ac_dir in $SEARCH_LIB;
6821 do
6822 for ac_extension in a so sl; do
6823 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
6824 ac_find_libraries=$ac_dir
6825 break 2
6826 fi
6827 done
6828 done
6829
6830 if test "$ac_find_libraries" != "" ; then
6831 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
6832 MESA_LINK="-lMesaGL"
6833 echo "$ac_t""found at $ac_find_libraries" 1>&6
6834 else
6835 { echo "configure: error: no" 1>&2; exit 1; }
6836 fi
6837
6838 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -ldl -lm"
6839 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
6840 WXWINE=1
6841 TOOLKIT=MSW
6842
6843 GUIHEADERS=MSW_HEADERS
6844 GUIOBJS=MSW_GUIOBJS
6845 COMMONOBJS=MSW_COMMONOBJS
6846 GENERICOBJS=MSW_GENERICOBJS
6847 GUIDEPS=MSW_GUIDEPS
6848 COMMONDEPS=MSW_COMMONDEPS
6849 GENERICDEPS=MSW_GENERICDEPS
6850 UNIXOBJS=UNIXOBJS
6851 GUIDIST=MSW_DIST
6852 fi
6853
6854 if test "$wxUSE_MOTIF" = 1; then
6855 # If we find X, set shell vars x_includes and x_libraries to the
6856 # paths, otherwise set no_x=yes.
6857 # Uses ac_ vars as temps to allow command line to override cache and checks.
6858 # --without-x overrides everything else, but does not touch the cache.
6859 echo $ac_n "checking for X""... $ac_c" 1>&6
6860 echo "configure:6861: checking for X" >&5
6861
6862 # Check whether --with-x or --without-x was given.
6863 if test "${with_x+set}" = set; then
6864 withval="$with_x"
6865 :
6866 fi
6867
6868 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6869 if test "x$with_x" = xno; then
6870 # The user explicitly disabled X.
6871 have_x=disabled
6872 else
6873 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6874 # Both variables are already set.
6875 have_x=yes
6876 else
6877 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
6878 echo $ac_n "(cached) $ac_c" 1>&6
6879 else
6880 # One or both of the vars are not set, and there is no cached value.
6881 ac_x_includes=NO ac_x_libraries=NO
6882 rm -fr conftestdir
6883 if mkdir conftestdir; then
6884 cd conftestdir
6885 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6886 cat > Imakefile <<'EOF'
6887 acfindx:
6888 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6889 EOF
6890 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6891 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6892 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6893 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6894 for ac_extension in a so sl; do
6895 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6896 test -f $ac_im_libdir/libX11.$ac_extension; then
6897 ac_im_usrlibdir=$ac_im_libdir; break
6898 fi
6899 done
6900 # Screen out bogus values from the imake configuration. They are
6901 # bogus both because they are the default anyway, and because
6902 # using them would break gcc on systems where it needs fixed includes.
6903 case "$ac_im_incroot" in
6904 /usr/include) ;;
6905 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
6906 esac
6907 case "$ac_im_usrlibdir" in
6908 /usr/lib | /lib) ;;
6909 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
6910 esac
6911 fi
6912 cd ..
6913 rm -fr conftestdir
6914 fi
6915
6916 if test "$ac_x_includes" = NO; then
6917 # Guess where to find include files, by looking for this one X11 .h file.
6918 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
6919
6920 # First, try using that file with no special directory specified.
6921 cat > conftest.$ac_ext <<EOF
6922 #line 6923 "configure"
6923 #include "confdefs.h"
6924 #include <$x_direct_test_include>
6925 EOF
6926 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6927 { (eval echo configure:6928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6928 ac_err=`grep -v '^ *+' conftest.out`
6929 if test -z "$ac_err"; then
6930 rm -rf conftest*
6931 # We can compile using X headers with no special include directory.
6932 ac_x_includes=
6933 else
6934 echo "$ac_err" >&5
6935 echo "configure: failed program was:" >&5
6936 cat conftest.$ac_ext >&5
6937 rm -rf conftest*
6938 # Look for the header file in a standard set of common directories.
6939 # Check X11 before X11Rn because it is often a symlink to the current release.
6940 for ac_dir in \
6941 /usr/X11/include \
6942 /usr/X11R6/include \
6943 /usr/X11R5/include \
6944 /usr/X11R4/include \
6945 \
6946 /usr/include/X11 \
6947 /usr/include/X11R6 \
6948 /usr/include/X11R5 \
6949 /usr/include/X11R4 \
6950 \
6951 /usr/local/X11/include \
6952 /usr/local/X11R6/include \
6953 /usr/local/X11R5/include \
6954 /usr/local/X11R4/include \
6955 \
6956 /usr/local/include/X11 \
6957 /usr/local/include/X11R6 \
6958 /usr/local/include/X11R5 \
6959 /usr/local/include/X11R4 \
6960 \
6961 /usr/X386/include \
6962 /usr/x386/include \
6963 /usr/XFree86/include/X11 \
6964 \
6965 /usr/include \
6966 /usr/local/include \
6967 /usr/unsupported/include \
6968 /usr/athena/include \
6969 /usr/local/x11r5/include \
6970 /usr/lpp/Xamples/include \
6971 \
6972 /usr/openwin/include \
6973 /usr/openwin/share/include \
6974 ; \
6975 do
6976 if test -r "$ac_dir/$x_direct_test_include"; then
6977 ac_x_includes=$ac_dir
6978 break
6979 fi
6980 done
6981 fi
6982 rm -f conftest*
6983 fi # $ac_x_includes = NO
6984
6985 if test "$ac_x_libraries" = NO; then
6986 # Check for the libraries.
6987
6988 test -z "$x_direct_test_library" && x_direct_test_library=Xt
6989 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
6990
6991 # See if we find them without any special options.
6992 # Don't add to $LIBS permanently.
6993 ac_save_LIBS="$LIBS"
6994 LIBS="-l$x_direct_test_library $LIBS"
6995 cat > conftest.$ac_ext <<EOF
6996 #line 6997 "configure"
6997 #include "confdefs.h"
6998
6999 int main() {
7000 ${x_direct_test_function}()
7001 ; return 0; }
7002 EOF
7003 if { (eval echo configure:7004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7004 rm -rf conftest*
7005 LIBS="$ac_save_LIBS"
7006 # We can link X programs with no special library path.
7007 ac_x_libraries=
7008 else
7009 echo "configure: failed program was:" >&5
7010 cat conftest.$ac_ext >&5
7011 rm -rf conftest*
7012 LIBS="$ac_save_LIBS"
7013 # First see if replacing the include by lib works.
7014 # Check X11 before X11Rn because it is often a symlink to the current release.
7015 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
7016 /usr/X11/lib \
7017 /usr/X11R6/lib \
7018 /usr/X11R5/lib \
7019 /usr/X11R4/lib \
7020 \
7021 /usr/lib/X11 \
7022 /usr/lib/X11R6 \
7023 /usr/lib/X11R5 \
7024 /usr/lib/X11R4 \
7025 \
7026 /usr/local/X11/lib \
7027 /usr/local/X11R6/lib \
7028 /usr/local/X11R5/lib \
7029 /usr/local/X11R4/lib \
7030 \
7031 /usr/local/lib/X11 \
7032 /usr/local/lib/X11R6 \
7033 /usr/local/lib/X11R5 \
7034 /usr/local/lib/X11R4 \
7035 \
7036 /usr/X386/lib \
7037 /usr/x386/lib \
7038 /usr/XFree86/lib/X11 \
7039 \
7040 /usr/lib \
7041 /usr/local/lib \
7042 /usr/unsupported/lib \
7043 /usr/athena/lib \
7044 /usr/local/x11r5/lib \
7045 /usr/lpp/Xamples/lib \
7046 /lib/usr/lib/X11 \
7047 \
7048 /usr/openwin/lib \
7049 /usr/openwin/share/lib \
7050 ; \
7051 do
7052 for ac_extension in a so sl; do
7053 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
7054 ac_x_libraries=$ac_dir
7055 break 2
7056 fi
7057 done
7058 done
7059 fi
7060 rm -f conftest*
7061 fi # $ac_x_libraries = NO
7062
7063 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
7064 # Didn't find X anywhere. Cache the known absence of X.
7065 ac_cv_have_x="have_x=no"
7066 else
7067 # Record where we found X for the cache.
7068 ac_cv_have_x="have_x=yes \
7069 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7070 fi
7071 fi
7072 fi
7073 eval "$ac_cv_have_x"
7074 fi # $with_x != no
7075
7076 if test "$have_x" != yes; then
7077 echo "$ac_t""$have_x" 1>&6
7078 no_x=yes
7079 else
7080 # If each of the values was on the command line, it overrides each guess.
7081 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7082 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7083 # Update the cache value to reflect the command line values.
7084 ac_cv_have_x="have_x=yes \
7085 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7086 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7087 fi
7088
7089 if test "$no_x" = yes; then
7090 # Not all programs may use this symbol, but it does not hurt to define it.
7091 cat >> confdefs.h <<\EOF
7092 #define X_DISPLAY_MISSING 1
7093 EOF
7094
7095 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7096 else
7097 if test -n "$x_includes"; then
7098 X_CFLAGS="$X_CFLAGS -I$x_includes"
7099 fi
7100
7101 # It would also be nice to do this for all -L options, not just this one.
7102 if test -n "$x_libraries"; then
7103 X_LIBS="$X_LIBS -L$x_libraries"
7104 # For Solaris; some versions of Sun CC require a space after -R and
7105 # others require no space. Words are not sufficient . . . .
7106 case "`(uname -sr) 2>/dev/null`" in
7107 "SunOS 5"*)
7108 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
7109 echo "configure:7110: checking whether -R must be followed by a space" >&5
7110 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
7111 cat > conftest.$ac_ext <<EOF
7112 #line 7113 "configure"
7113 #include "confdefs.h"
7114
7115 int main() {
7116
7117 ; return 0; }
7118 EOF
7119 if { (eval echo configure:7120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7120 rm -rf conftest*
7121 ac_R_nospace=yes
7122 else
7123 echo "configure: failed program was:" >&5
7124 cat conftest.$ac_ext >&5
7125 rm -rf conftest*
7126 ac_R_nospace=no
7127 fi
7128 rm -f conftest*
7129 if test $ac_R_nospace = yes; then
7130 echo "$ac_t""no" 1>&6
7131 X_LIBS="$X_LIBS -R$x_libraries"
7132 else
7133 LIBS="$ac_xsave_LIBS -R $x_libraries"
7134 cat > conftest.$ac_ext <<EOF
7135 #line 7136 "configure"
7136 #include "confdefs.h"
7137
7138 int main() {
7139
7140 ; return 0; }
7141 EOF
7142 if { (eval echo configure:7143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7143 rm -rf conftest*
7144 ac_R_space=yes
7145 else
7146 echo "configure: failed program was:" >&5
7147 cat conftest.$ac_ext >&5
7148 rm -rf conftest*
7149 ac_R_space=no
7150 fi
7151 rm -f conftest*
7152 if test $ac_R_space = yes; then
7153 echo "$ac_t""yes" 1>&6
7154 X_LIBS="$X_LIBS -R $x_libraries"
7155 else
7156 echo "$ac_t""neither works" 1>&6
7157 fi
7158 fi
7159 LIBS="$ac_xsave_LIBS"
7160 esac
7161 fi
7162
7163 # Check for system-dependent libraries X programs must link with.
7164 # Do this before checking for the system-independent R6 libraries
7165 # (-lICE), since we may need -lsocket or whatever for X linking.
7166
7167 if test "$ISC" = yes; then
7168 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7169 else
7170 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
7171 # libraries were built with DECnet support. And karl@cs.umb.edu says
7172 # the Alpha needs dnet_stub (dnet does not exist).
7173 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
7174 echo "configure:7175: checking for dnet_ntoa in -ldnet" >&5
7175 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7176 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7177 echo $ac_n "(cached) $ac_c" 1>&6
7178 else
7179 ac_save_LIBS="$LIBS"
7180 LIBS="-ldnet $LIBS"
7181 cat > conftest.$ac_ext <<EOF
7182 #line 7183 "configure"
7183 #include "confdefs.h"
7184 /* Override any gcc2 internal prototype to avoid an error. */
7185 /* We use char because int might match the return type of a gcc2
7186 builtin and then its argument prototype would still apply. */
7187 char dnet_ntoa();
7188
7189 int main() {
7190 dnet_ntoa()
7191 ; return 0; }
7192 EOF
7193 if { (eval echo configure:7194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7194 rm -rf conftest*
7195 eval "ac_cv_lib_$ac_lib_var=yes"
7196 else
7197 echo "configure: failed program was:" >&5
7198 cat conftest.$ac_ext >&5
7199 rm -rf conftest*
7200 eval "ac_cv_lib_$ac_lib_var=no"
7201 fi
7202 rm -f conftest*
7203 LIBS="$ac_save_LIBS"
7204
7205 fi
7206 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7207 echo "$ac_t""yes" 1>&6
7208 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7209 else
7210 echo "$ac_t""no" 1>&6
7211 fi
7212
7213 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7214 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
7215 echo "configure:7216: checking for dnet_ntoa in -ldnet_stub" >&5
7216 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7217 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7218 echo $ac_n "(cached) $ac_c" 1>&6
7219 else
7220 ac_save_LIBS="$LIBS"
7221 LIBS="-ldnet_stub $LIBS"
7222 cat > conftest.$ac_ext <<EOF
7223 #line 7224 "configure"
7224 #include "confdefs.h"
7225 /* Override any gcc2 internal prototype to avoid an error. */
7226 /* We use char because int might match the return type of a gcc2
7227 builtin and then its argument prototype would still apply. */
7228 char dnet_ntoa();
7229
7230 int main() {
7231 dnet_ntoa()
7232 ; return 0; }
7233 EOF
7234 if { (eval echo configure:7235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7235 rm -rf conftest*
7236 eval "ac_cv_lib_$ac_lib_var=yes"
7237 else
7238 echo "configure: failed program was:" >&5
7239 cat conftest.$ac_ext >&5
7240 rm -rf conftest*
7241 eval "ac_cv_lib_$ac_lib_var=no"
7242 fi
7243 rm -f conftest*
7244 LIBS="$ac_save_LIBS"
7245
7246 fi
7247 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7248 echo "$ac_t""yes" 1>&6
7249 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7250 else
7251 echo "$ac_t""no" 1>&6
7252 fi
7253
7254 fi
7255
7256 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7257 # to get the SysV transport functions.
7258 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
7259 # needs -lnsl.
7260 # The nsl library prevents programs from opening the X display
7261 # on Irix 5.2, according to dickey@clark.net.
7262 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
7263 echo "configure:7264: checking for gethostbyname" >&5
7264 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
7265 echo $ac_n "(cached) $ac_c" 1>&6
7266 else
7267 cat > conftest.$ac_ext <<EOF
7268 #line 7269 "configure"
7269 #include "confdefs.h"
7270 /* System header to define __stub macros and hopefully few prototypes,
7271 which can conflict with char gethostbyname(); below. */
7272 #include <assert.h>
7273 /* Override any gcc2 internal prototype to avoid an error. */
7274 /* We use char because int might match the return type of a gcc2
7275 builtin and then its argument prototype would still apply. */
7276 char gethostbyname();
7277
7278 int main() {
7279
7280 /* The GNU C library defines this for functions which it implements
7281 to always fail with ENOSYS. Some functions are actually named
7282 something starting with __ and the normal name is an alias. */
7283 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7284 choke me
7285 #else
7286 gethostbyname();
7287 #endif
7288
7289 ; return 0; }
7290 EOF
7291 if { (eval echo configure:7292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7292 rm -rf conftest*
7293 eval "ac_cv_func_gethostbyname=yes"
7294 else
7295 echo "configure: failed program was:" >&5
7296 cat conftest.$ac_ext >&5
7297 rm -rf conftest*
7298 eval "ac_cv_func_gethostbyname=no"
7299 fi
7300 rm -f conftest*
7301 fi
7302
7303 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
7304 echo "$ac_t""yes" 1>&6
7305 :
7306 else
7307 echo "$ac_t""no" 1>&6
7308 fi
7309
7310 if test $ac_cv_func_gethostbyname = no; then
7311 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
7312 echo "configure:7313: checking for gethostbyname in -lnsl" >&5
7313 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7314 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7315 echo $ac_n "(cached) $ac_c" 1>&6
7316 else
7317 ac_save_LIBS="$LIBS"
7318 LIBS="-lnsl $LIBS"
7319 cat > conftest.$ac_ext <<EOF
7320 #line 7321 "configure"
7321 #include "confdefs.h"
7322 /* Override any gcc2 internal prototype to avoid an error. */
7323 /* We use char because int might match the return type of a gcc2
7324 builtin and then its argument prototype would still apply. */
7325 char gethostbyname();
7326
7327 int main() {
7328 gethostbyname()
7329 ; return 0; }
7330 EOF
7331 if { (eval echo configure:7332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7332 rm -rf conftest*
7333 eval "ac_cv_lib_$ac_lib_var=yes"
7334 else
7335 echo "configure: failed program was:" >&5
7336 cat conftest.$ac_ext >&5
7337 rm -rf conftest*
7338 eval "ac_cv_lib_$ac_lib_var=no"
7339 fi
7340 rm -f conftest*
7341 LIBS="$ac_save_LIBS"
7342
7343 fi
7344 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7345 echo "$ac_t""yes" 1>&6
7346 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7347 else
7348 echo "$ac_t""no" 1>&6
7349 fi
7350
7351 fi
7352
7353 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7354 # socket/setsockopt and other routines are undefined under SCO ODT
7355 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7356 # on later versions), says simon@lia.di.epfl.ch: it contains
7357 # gethostby* variants that don't use the nameserver (or something).
7358 # -lsocket must be given before -lnsl if both are needed.
7359 # We assume that if connect needs -lnsl, so does gethostbyname.
7360 echo $ac_n "checking for connect""... $ac_c" 1>&6
7361 echo "configure:7362: checking for connect" >&5
7362 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7363 echo $ac_n "(cached) $ac_c" 1>&6
7364 else
7365 cat > conftest.$ac_ext <<EOF
7366 #line 7367 "configure"
7367 #include "confdefs.h"
7368 /* System header to define __stub macros and hopefully few prototypes,
7369 which can conflict with char connect(); below. */
7370 #include <assert.h>
7371 /* Override any gcc2 internal prototype to avoid an error. */
7372 /* We use char because int might match the return type of a gcc2
7373 builtin and then its argument prototype would still apply. */
7374 char connect();
7375
7376 int main() {
7377
7378 /* The GNU C library defines this for functions which it implements
7379 to always fail with ENOSYS. Some functions are actually named
7380 something starting with __ and the normal name is an alias. */
7381 #if defined (__stub_connect) || defined (__stub___connect)
7382 choke me
7383 #else
7384 connect();
7385 #endif
7386
7387 ; return 0; }
7388 EOF
7389 if { (eval echo configure:7390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7390 rm -rf conftest*
7391 eval "ac_cv_func_connect=yes"
7392 else
7393 echo "configure: failed program was:" >&5
7394 cat conftest.$ac_ext >&5
7395 rm -rf conftest*
7396 eval "ac_cv_func_connect=no"
7397 fi
7398 rm -f conftest*
7399 fi
7400
7401 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7402 echo "$ac_t""yes" 1>&6
7403 :
7404 else
7405 echo "$ac_t""no" 1>&6
7406 fi
7407
7408 if test $ac_cv_func_connect = no; then
7409 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
7410 echo "configure:7411: checking for connect in -lsocket" >&5
7411 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7412 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7413 echo $ac_n "(cached) $ac_c" 1>&6
7414 else
7415 ac_save_LIBS="$LIBS"
7416 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7417 cat > conftest.$ac_ext <<EOF
7418 #line 7419 "configure"
7419 #include "confdefs.h"
7420 /* Override any gcc2 internal prototype to avoid an error. */
7421 /* We use char because int might match the return type of a gcc2
7422 builtin and then its argument prototype would still apply. */
7423 char connect();
7424
7425 int main() {
7426 connect()
7427 ; return 0; }
7428 EOF
7429 if { (eval echo configure:7430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7430 rm -rf conftest*
7431 eval "ac_cv_lib_$ac_lib_var=yes"
7432 else
7433 echo "configure: failed program was:" >&5
7434 cat conftest.$ac_ext >&5
7435 rm -rf conftest*
7436 eval "ac_cv_lib_$ac_lib_var=no"
7437 fi
7438 rm -f conftest*
7439 LIBS="$ac_save_LIBS"
7440
7441 fi
7442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7443 echo "$ac_t""yes" 1>&6
7444 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7445 else
7446 echo "$ac_t""no" 1>&6
7447 fi
7448
7449 fi
7450
7451 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7452 echo $ac_n "checking for remove""... $ac_c" 1>&6
7453 echo "configure:7454: checking for remove" >&5
7454 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7455 echo $ac_n "(cached) $ac_c" 1>&6
7456 else
7457 cat > conftest.$ac_ext <<EOF
7458 #line 7459 "configure"
7459 #include "confdefs.h"
7460 /* System header to define __stub macros and hopefully few prototypes,
7461 which can conflict with char remove(); below. */
7462 #include <assert.h>
7463 /* Override any gcc2 internal prototype to avoid an error. */
7464 /* We use char because int might match the return type of a gcc2
7465 builtin and then its argument prototype would still apply. */
7466 char remove();
7467
7468 int main() {
7469
7470 /* The GNU C library defines this for functions which it implements
7471 to always fail with ENOSYS. Some functions are actually named
7472 something starting with __ and the normal name is an alias. */
7473 #if defined (__stub_remove) || defined (__stub___remove)
7474 choke me
7475 #else
7476 remove();
7477 #endif
7478
7479 ; return 0; }
7480 EOF
7481 if { (eval echo configure:7482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7482 rm -rf conftest*
7483 eval "ac_cv_func_remove=yes"
7484 else
7485 echo "configure: failed program was:" >&5
7486 cat conftest.$ac_ext >&5
7487 rm -rf conftest*
7488 eval "ac_cv_func_remove=no"
7489 fi
7490 rm -f conftest*
7491 fi
7492
7493 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7494 echo "$ac_t""yes" 1>&6
7495 :
7496 else
7497 echo "$ac_t""no" 1>&6
7498 fi
7499
7500 if test $ac_cv_func_remove = no; then
7501 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
7502 echo "configure:7503: checking for remove in -lposix" >&5
7503 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7504 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7505 echo $ac_n "(cached) $ac_c" 1>&6
7506 else
7507 ac_save_LIBS="$LIBS"
7508 LIBS="-lposix $LIBS"
7509 cat > conftest.$ac_ext <<EOF
7510 #line 7511 "configure"
7511 #include "confdefs.h"
7512 /* Override any gcc2 internal prototype to avoid an error. */
7513 /* We use char because int might match the return type of a gcc2
7514 builtin and then its argument prototype would still apply. */
7515 char remove();
7516
7517 int main() {
7518 remove()
7519 ; return 0; }
7520 EOF
7521 if { (eval echo configure:7522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7522 rm -rf conftest*
7523 eval "ac_cv_lib_$ac_lib_var=yes"
7524 else
7525 echo "configure: failed program was:" >&5
7526 cat conftest.$ac_ext >&5
7527 rm -rf conftest*
7528 eval "ac_cv_lib_$ac_lib_var=no"
7529 fi
7530 rm -f conftest*
7531 LIBS="$ac_save_LIBS"
7532
7533 fi
7534 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7535 echo "$ac_t""yes" 1>&6
7536 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7537 else
7538 echo "$ac_t""no" 1>&6
7539 fi
7540
7541 fi
7542
7543 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7544 echo $ac_n "checking for shmat""... $ac_c" 1>&6
7545 echo "configure:7546: checking for shmat" >&5
7546 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
7547 echo $ac_n "(cached) $ac_c" 1>&6
7548 else
7549 cat > conftest.$ac_ext <<EOF
7550 #line 7551 "configure"
7551 #include "confdefs.h"
7552 /* System header to define __stub macros and hopefully few prototypes,
7553 which can conflict with char shmat(); below. */
7554 #include <assert.h>
7555 /* Override any gcc2 internal prototype to avoid an error. */
7556 /* We use char because int might match the return type of a gcc2
7557 builtin and then its argument prototype would still apply. */
7558 char shmat();
7559
7560 int main() {
7561
7562 /* The GNU C library defines this for functions which it implements
7563 to always fail with ENOSYS. Some functions are actually named
7564 something starting with __ and the normal name is an alias. */
7565 #if defined (__stub_shmat) || defined (__stub___shmat)
7566 choke me
7567 #else
7568 shmat();
7569 #endif
7570
7571 ; return 0; }
7572 EOF
7573 if { (eval echo configure:7574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7574 rm -rf conftest*
7575 eval "ac_cv_func_shmat=yes"
7576 else
7577 echo "configure: failed program was:" >&5
7578 cat conftest.$ac_ext >&5
7579 rm -rf conftest*
7580 eval "ac_cv_func_shmat=no"
7581 fi
7582 rm -f conftest*
7583 fi
7584
7585 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
7586 echo "$ac_t""yes" 1>&6
7587 :
7588 else
7589 echo "$ac_t""no" 1>&6
7590 fi
7591
7592 if test $ac_cv_func_shmat = no; then
7593 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
7594 echo "configure:7595: checking for shmat in -lipc" >&5
7595 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
7596 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7597 echo $ac_n "(cached) $ac_c" 1>&6
7598 else
7599 ac_save_LIBS="$LIBS"
7600 LIBS="-lipc $LIBS"
7601 cat > conftest.$ac_ext <<EOF
7602 #line 7603 "configure"
7603 #include "confdefs.h"
7604 /* Override any gcc2 internal prototype to avoid an error. */
7605 /* We use char because int might match the return type of a gcc2
7606 builtin and then its argument prototype would still apply. */
7607 char shmat();
7608
7609 int main() {
7610 shmat()
7611 ; return 0; }
7612 EOF
7613 if { (eval echo configure:7614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7614 rm -rf conftest*
7615 eval "ac_cv_lib_$ac_lib_var=yes"
7616 else
7617 echo "configure: failed program was:" >&5
7618 cat conftest.$ac_ext >&5
7619 rm -rf conftest*
7620 eval "ac_cv_lib_$ac_lib_var=no"
7621 fi
7622 rm -f conftest*
7623 LIBS="$ac_save_LIBS"
7624
7625 fi
7626 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7627 echo "$ac_t""yes" 1>&6
7628 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7629 else
7630 echo "$ac_t""no" 1>&6
7631 fi
7632
7633 fi
7634 fi
7635
7636 # Check for libraries that X11R6 Xt/Xaw programs need.
7637 ac_save_LDFLAGS="$LDFLAGS"
7638 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7639 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7640 # check for ICE first), but we must link in the order -lSM -lICE or
7641 # we get undefined symbols. So assume we have SM if we have ICE.
7642 # These have to be linked with before -lX11, unlike the other
7643 # libraries we check for below, so use a different variable.
7644 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
7645 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
7646 echo "configure:7647: checking for IceConnectionNumber in -lICE" >&5
7647 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
7648 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7649 echo $ac_n "(cached) $ac_c" 1>&6
7650 else
7651 ac_save_LIBS="$LIBS"
7652 LIBS="-lICE $LIBS"
7653 cat > conftest.$ac_ext <<EOF
7654 #line 7655 "configure"
7655 #include "confdefs.h"
7656 /* Override any gcc2 internal prototype to avoid an error. */
7657 /* We use char because int might match the return type of a gcc2
7658 builtin and then its argument prototype would still apply. */
7659 char IceConnectionNumber();
7660
7661 int main() {
7662 IceConnectionNumber()
7663 ; return 0; }
7664 EOF
7665 if { (eval echo configure:7666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7666 rm -rf conftest*
7667 eval "ac_cv_lib_$ac_lib_var=yes"
7668 else
7669 echo "configure: failed program was:" >&5
7670 cat conftest.$ac_ext >&5
7671 rm -rf conftest*
7672 eval "ac_cv_lib_$ac_lib_var=no"
7673 fi
7674 rm -f conftest*
7675 LIBS="$ac_save_LIBS"
7676
7677 fi
7678 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7679 echo "$ac_t""yes" 1>&6
7680 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7681 else
7682 echo "$ac_t""no" 1>&6
7683 fi
7684
7685 LDFLAGS="$ac_save_LDFLAGS"
7686
7687 fi
7688
7689
7690 if test "$no_x" = "yes"; then
7691 { echo "configure: error: X11 libraries not found" 1>&2; exit 1; }
7692 fi
7693
7694 TOOLKIT_INCLUDE="$X_CFLAGS"
7695 GUI_TK_LIBRARY="$X_LIBS"
7696
7697 echo $ac_n "checking for Motif/Lesstif includes""... $ac_c" 1>&6
7698 echo "configure:7699: checking for Motif/Lesstif includes" >&5
7699
7700 ac_find_includes=
7701 for ac_dir in $SEARCH_INCLUDE;
7702 do
7703 if test -f "$ac_dir/Xm/Xm.h"; then
7704 ac_find_includes=$ac_dir
7705 break
7706 fi
7707 done
7708
7709 if test "$ac_find_includes" != "" ; then
7710 echo "$ac_t""found $ac_find_includes" 1>&6
7711 else
7712 echo "$ac_t""no" 1>&6
7713 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
7714 fi
7715
7716 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
7717 echo "configure:7718: checking for Motif/Lesstif library" >&5
7718
7719 ac_find_libraries=
7720 for ac_dir in $SEARCH_LIB;
7721 do
7722 for ac_extension in a so sl; do
7723 if test -f "$ac_dir/libXm.$ac_extension"; then
7724 ac_find_libraries=$ac_dir
7725 break 2
7726 fi
7727 done
7728 done
7729
7730 if test "$ac_find_libraries" != "" ; then
7731
7732 ac_path_to_include=$ac_find_includes
7733 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
7734 result=$?
7735 if test $result = 0; then
7736 ac_path_to_include=""
7737 else
7738 ac_path_to_include="-I$ac_find_includes"
7739 fi
7740
7741
7742 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
7743 result=$?
7744 if test $result = 0; then
7745 ac_path_to_link=""
7746 else
7747 ac_path_to_link="-L$ac_find_libraries"
7748 fi
7749
7750
7751 CHECK_LINK="$GUI_TK_LIBRARY $ac_path_to_link"
7752 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
7753 echo "$ac_t""found at $ac_find_libraries" 1>&6
7754 else
7755 echo "$ac_t""no" 1>&6
7756 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
7757 fi
7758
7759 echo $ac_n "checking for Xt library""... $ac_c" 1>&6
7760 echo "configure:7761: checking for Xt library" >&5
7761
7762 ac_find_libraries=
7763 for ac_dir in $SEARCH_LIB;
7764 do
7765 for ac_extension in a so sl; do
7766 if test -f "$ac_dir/libXt.$ac_extension"; then
7767 ac_find_libraries=$ac_dir
7768 break 2
7769 fi
7770 done
7771 done
7772
7773 if test "$ac_find_libraries" != "" ; then
7774
7775 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
7776 result=$?
7777 if test $result = 0; then
7778 ac_path_to_link=""
7779 else
7780 ac_path_to_link="-L$ac_find_libraries"
7781 fi
7782
7783 CHECK_LINK="$GUI_TK_LIBRARY $ac_path_to_link"
7784 echo "$ac_t""found at $ac_find_libraries" 1>&6
7785 else
7786 echo "$ac_t""no" 1>&6
7787 { echo "configure: error: please set LDFLAGS to contain the location of libXt" 1>&2; exit 1; }
7788 fi
7789
7790 XPM_LINK=""
7791 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
7792 echo "configure:7793: checking for Xpm library" >&5
7793
7794 ac_find_libraries=
7795 for ac_dir in $SEARCH_LIB;
7796 do
7797 for ac_extension in a so sl; do
7798 if test -f "$ac_dir/libXpm.$ac_extension"; then
7799 ac_find_libraries=$ac_dir
7800 break 2
7801 fi
7802 done
7803 done
7804
7805 if test "$ac_find_libraries" != "" ; then
7806
7807 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
7808 result=$?
7809 if test $result = 0; then
7810 ac_path_to_link=""
7811 else
7812 ac_path_to_link="-L$ac_find_libraries"
7813 fi
7814
7815 CHECK_LINK="$GUI_TK_LIBRARY $ac_path_to_link"
7816 XPM_LINK="-lXpm "
7817 cat >> confdefs.h <<\EOF
7818 #define wxHAVE_LIB_XPM 1
7819 EOF
7820
7821 echo "$ac_t""found at $ac_find_libraries" 1>&6
7822 else
7823 echo "$ac_t""no" 1>&6
7824 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7825 fi
7826
7827 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXt -lX11 -ldl -lm"
7828 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7829 TOOLKIT=MOTIF
7830
7831 GUIHEADERS=MOTIF_HEADERS
7832 GUIOBJS=MOTIF_GUIOBJS
7833 COMMONOBJS=MOTIF_COMMONOBJS
7834 GENERICOBJS=MOTIF_GENERICOBJS
7835 GUIDEPS=MOTIF_GUIDEPS
7836 COMMONDEPS=MOTIF_COMMONDEPS
7837 GENERICDEPS=MOTIF_GENERICDEPS
7838 UNIXOBJS=UNIXOBJS
7839 GUIDIST=MOTIF_DIST
7840 fi
7841
7842 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "A-Z" "a-z"`
7843
7844 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
7845
7846 WX_LIBRARY="wx_${TOOLKIT_DIR}"
7847
7848 WX_LIBRARY_NAME="libwx_${TOOLKIT_DIR}.la"
7849
7850 WX_LIBRARY_NAME_STATIC="libwx_${TOOLKIT_DIR}.a"
7851
7852 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
7853
7854 WX_LIBRARY_LINK1="libwx_${TOOLKIT_DIR}-${WX_RELEASE}.so.${WX_CURRENT}"
7855 WX_LIBRARY_LINK2="libwx_${TOOLKIT_DIR}-${WX_RELEASE}.so"
7856 WX_LIBRARY_LINK3="libwx_${TOOLKIT_DIR}.so"
7857
7858 SHARED_LD=
7859 PIC_FLAG=
7860 WX_CREATE_LINKS=
7861
7862 if test "$wxUSE_SHARED" = "yes"; then
7863 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
7864
7865 case "${host}" in
7866 *-hp-hpux* )
7867 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
7868 SHARED_LD="${CXX} -b -o"
7869 PIC_FLAG="+Z"
7870 ;;
7871 *-*-linux* )
7872 SHARED_LD="${CC} -shared -o"
7873 PIC_FLAG="-fPIC"
7874 WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS"
7875 WX_CREATE_LINKS="CREATE_LINKS"
7876 ;;
7877 *-*-irix5* | *-*-irix6* )
7878 if test "$GCC" = yes ; then
7879 SHARED_LD="${CC} -shared -o"
7880 PIC_FLAG="-fPIC"
7881 else
7882 SHARED_LD="${CXX} -shared -o"
7883 fi
7884 WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS"
7885 WX_CREATE_LINKS="CREATE_LINKS"
7886 ;;
7887 *-*-solaris2* )
7888 if test "$GCC" = yes ; then
7889 SHARED_LD="${CC} -shared -o"
7890 PIC_FLAG="-fPIC"
7891 else
7892 SHARED_LD="${CXX} -G -o"
7893 PIC_FLAG="PIC"
7894 fi
7895 WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS"
7896 WX_CREATE_LINKS="CREATE_LINKS"
7897 ;;
7898 *-*-sunos4* )
7899 SHARED_LD="${CC} -shared -o"
7900 PIC_FLAG="-fPIC"
7901 WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS"
7902 WX_CREATE_LINKS="CREATE_LINKS"
7903 ;;
7904 *-*-freebsd* | *-*-netbsd*)
7905 SHARED_LD="${CC} -shared -o"
7906 PIC_FLAG="-fPIC"
7907 WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS"
7908 WX_CREATE_LINKS="CREATE_LINKS"
7909 ;;
7910 *-*-osf* )
7911 SHARED_LD="${CXX} -shared -o"
7912 PIC_FLAG="-fPIC"
7913 WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS"
7914 WX_CREATE_LINKS="CREATE_LINKS"
7915 ;;
7916 *-*-dgux5* )
7917 SHARED_LD="${CXX} -shared -o"
7918 PIC_FLAG="-fPIC"
7919 WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS"
7920 WX_CREATE_LINKS="CREATE_LINKS"
7921 ;;
7922 *-*-sysv5* )
7923 SHARED_LD="${CC} -shared -o"
7924 PIC_FLAG="-fPIC"
7925 WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS"
7926 WX_CREATE_LINKS="CREATE_LINKS"
7927 ;;
7928 *-*-aix* )
7929 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
7930 ;;
7931 *-*-cygwin32* )
7932 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
7933 ;;
7934 *-*-mingw32* )
7935 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
7936 ;;
7937 *-pc-os2_emx )
7938 ;;
7939 *)
7940 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
7941 esac
7942
7943 else
7944 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
7945 fi
7946
7947
7948 for ac_hdr in strings.h
7949 do
7950 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7951 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7952 echo "configure:7953: checking for $ac_hdr" >&5
7953 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7954 echo $ac_n "(cached) $ac_c" 1>&6
7955 else
7956 cat > conftest.$ac_ext <<EOF
7957 #line 7958 "configure"
7958 #include "confdefs.h"
7959 #include <$ac_hdr>
7960 EOF
7961 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7962 { (eval echo configure:7963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7963 ac_err=`grep -v '^ *+' conftest.out`
7964 if test -z "$ac_err"; then
7965 rm -rf conftest*
7966 eval "ac_cv_header_$ac_safe=yes"
7967 else
7968 echo "$ac_err" >&5
7969 echo "configure: failed program was:" >&5
7970 cat conftest.$ac_ext >&5
7971 rm -rf conftest*
7972 eval "ac_cv_header_$ac_safe=no"
7973 fi
7974 rm -f conftest*
7975 fi
7976 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7977 echo "$ac_t""yes" 1>&6
7978 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7979 cat >> confdefs.h <<EOF
7980 #define $ac_tr_hdr 1
7981 EOF
7982
7983 else
7984 echo "$ac_t""no" 1>&6
7985 fi
7986 done
7987
7988 for ac_hdr in unistd.h
7989 do
7990 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7991 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7992 echo "configure:7993: checking for $ac_hdr" >&5
7993 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7994 echo $ac_n "(cached) $ac_c" 1>&6
7995 else
7996 cat > conftest.$ac_ext <<EOF
7997 #line 7998 "configure"
7998 #include "confdefs.h"
7999 #include <$ac_hdr>
8000 EOF
8001 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8002 { (eval echo configure:8003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8003 ac_err=`grep -v '^ *+' conftest.out`
8004 if test -z "$ac_err"; then
8005 rm -rf conftest*
8006 eval "ac_cv_header_$ac_safe=yes"
8007 else
8008 echo "$ac_err" >&5
8009 echo "configure: failed program was:" >&5
8010 cat conftest.$ac_ext >&5
8011 rm -rf conftest*
8012 eval "ac_cv_header_$ac_safe=no"
8013 fi
8014 rm -f conftest*
8015 fi
8016 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8017 echo "$ac_t""yes" 1>&6
8018 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8019 cat >> confdefs.h <<EOF
8020 #define $ac_tr_hdr 1
8021 EOF
8022
8023 else
8024 echo "$ac_t""no" 1>&6
8025 fi
8026 done
8027
8028 for ac_hdr in wchar.h
8029 do
8030 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8031 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8032 echo "configure:8033: checking for $ac_hdr" >&5
8033 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8034 echo $ac_n "(cached) $ac_c" 1>&6
8035 else
8036 cat > conftest.$ac_ext <<EOF
8037 #line 8038 "configure"
8038 #include "confdefs.h"
8039 #include <$ac_hdr>
8040 EOF
8041 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8042 { (eval echo configure:8043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8043 ac_err=`grep -v '^ *+' conftest.out`
8044 if test -z "$ac_err"; then
8045 rm -rf conftest*
8046 eval "ac_cv_header_$ac_safe=yes"
8047 else
8048 echo "$ac_err" >&5
8049 echo "configure: failed program was:" >&5
8050 cat conftest.$ac_ext >&5
8051 rm -rf conftest*
8052 eval "ac_cv_header_$ac_safe=no"
8053 fi
8054 rm -f conftest*
8055 fi
8056 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8057 echo "$ac_t""yes" 1>&6
8058 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8059 cat >> confdefs.h <<EOF
8060 #define $ac_tr_hdr 1
8061 EOF
8062
8063 else
8064 echo "$ac_t""no" 1>&6
8065 fi
8066 done
8067
8068 for ac_hdr in wcstr.h
8069 do
8070 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8071 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8072 echo "configure:8073: checking for $ac_hdr" >&5
8073 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8074 echo $ac_n "(cached) $ac_c" 1>&6
8075 else
8076 cat > conftest.$ac_ext <<EOF
8077 #line 8078 "configure"
8078 #include "confdefs.h"
8079 #include <$ac_hdr>
8080 EOF
8081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8082 { (eval echo configure:8083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8083 ac_err=`grep -v '^ *+' conftest.out`
8084 if test -z "$ac_err"; then
8085 rm -rf conftest*
8086 eval "ac_cv_header_$ac_safe=yes"
8087 else
8088 echo "$ac_err" >&5
8089 echo "configure: failed program was:" >&5
8090 cat conftest.$ac_ext >&5
8091 rm -rf conftest*
8092 eval "ac_cv_header_$ac_safe=no"
8093 fi
8094 rm -f conftest*
8095 fi
8096 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8097 echo "$ac_t""yes" 1>&6
8098 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8099 cat >> confdefs.h <<EOF
8100 #define $ac_tr_hdr 1
8101 EOF
8102
8103 else
8104 echo "$ac_t""no" 1>&6
8105 fi
8106 done
8107
8108 for ac_hdr in fnmatch.h
8109 do
8110 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8111 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8112 echo "configure:8113: checking for $ac_hdr" >&5
8113 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8114 echo $ac_n "(cached) $ac_c" 1>&6
8115 else
8116 cat > conftest.$ac_ext <<EOF
8117 #line 8118 "configure"
8118 #include "confdefs.h"
8119 #include <$ac_hdr>
8120 EOF
8121 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8122 { (eval echo configure:8123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8123 ac_err=`grep -v '^ *+' conftest.out`
8124 if test -z "$ac_err"; then
8125 rm -rf conftest*
8126 eval "ac_cv_header_$ac_safe=yes"
8127 else
8128 echo "$ac_err" >&5
8129 echo "configure: failed program was:" >&5
8130 cat conftest.$ac_ext >&5
8131 rm -rf conftest*
8132 eval "ac_cv_header_$ac_safe=no"
8133 fi
8134 rm -f conftest*
8135 fi
8136 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8137 echo "$ac_t""yes" 1>&6
8138 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8139 cat >> confdefs.h <<EOF
8140 #define $ac_tr_hdr 1
8141 EOF
8142
8143 else
8144 echo "$ac_t""no" 1>&6
8145 fi
8146 done
8147
8148 for ac_hdr in X11/XKBlib.h
8149 do
8150 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8151 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8152 echo "configure:8153: checking for $ac_hdr" >&5
8153 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8154 echo $ac_n "(cached) $ac_c" 1>&6
8155 else
8156 cat > conftest.$ac_ext <<EOF
8157 #line 8158 "configure"
8158 #include "confdefs.h"
8159 #include <$ac_hdr>
8160 EOF
8161 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8162 { (eval echo configure:8163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8163 ac_err=`grep -v '^ *+' conftest.out`
8164 if test -z "$ac_err"; then
8165 rm -rf conftest*
8166 eval "ac_cv_header_$ac_safe=yes"
8167 else
8168 echo "$ac_err" >&5
8169 echo "configure: failed program was:" >&5
8170 cat conftest.$ac_ext >&5
8171 rm -rf conftest*
8172 eval "ac_cv_header_$ac_safe=no"
8173 fi
8174 rm -f conftest*
8175 fi
8176 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8177 echo "$ac_t""yes" 1>&6
8178 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8179 cat >> confdefs.h <<EOF
8180 #define $ac_tr_hdr 1
8181 EOF
8182
8183 else
8184 echo "$ac_t""no" 1>&6
8185 fi
8186 done
8187
8188
8189
8190 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8191 echo "configure:8192: checking for ANSI C header files" >&5
8192 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8193 echo $ac_n "(cached) $ac_c" 1>&6
8194 else
8195 cat > conftest.$ac_ext <<EOF
8196 #line 8197 "configure"
8197 #include "confdefs.h"
8198 #include <stdlib.h>
8199 #include <stdarg.h>
8200 #include <string.h>
8201 #include <float.h>
8202 EOF
8203 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8204 { (eval echo configure:8205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8205 ac_err=`grep -v '^ *+' conftest.out`
8206 if test -z "$ac_err"; then
8207 rm -rf conftest*
8208 ac_cv_header_stdc=yes
8209 else
8210 echo "$ac_err" >&5
8211 echo "configure: failed program was:" >&5
8212 cat conftest.$ac_ext >&5
8213 rm -rf conftest*
8214 ac_cv_header_stdc=no
8215 fi
8216 rm -f conftest*
8217
8218 if test $ac_cv_header_stdc = yes; then
8219 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8220 cat > conftest.$ac_ext <<EOF
8221 #line 8222 "configure"
8222 #include "confdefs.h"
8223 #include <string.h>
8224 EOF
8225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8226 egrep "memchr" >/dev/null 2>&1; then
8227 :
8228 else
8229 rm -rf conftest*
8230 ac_cv_header_stdc=no
8231 fi
8232 rm -f conftest*
8233
8234 fi
8235
8236 if test $ac_cv_header_stdc = yes; then
8237 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8238 cat > conftest.$ac_ext <<EOF
8239 #line 8240 "configure"
8240 #include "confdefs.h"
8241 #include <stdlib.h>
8242 EOF
8243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8244 egrep "free" >/dev/null 2>&1; then
8245 :
8246 else
8247 rm -rf conftest*
8248 ac_cv_header_stdc=no
8249 fi
8250 rm -f conftest*
8251
8252 fi
8253
8254 if test $ac_cv_header_stdc = yes; then
8255 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8256 if test "$cross_compiling" = yes; then
8257 :
8258 else
8259 cat > conftest.$ac_ext <<EOF
8260 #line 8261 "configure"
8261 #include "confdefs.h"
8262 #include <ctype.h>
8263 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8264 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8265 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8266 int main () { int i; for (i = 0; i < 256; i++)
8267 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8268 exit (0); }
8269
8270 EOF
8271 if { (eval echo configure:8272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8272 then
8273 :
8274 else
8275 echo "configure: failed program was:" >&5
8276 cat conftest.$ac_ext >&5
8277 rm -fr conftest*
8278 ac_cv_header_stdc=no
8279 fi
8280 rm -fr conftest*
8281 fi
8282
8283 fi
8284 fi
8285
8286 echo "$ac_t""$ac_cv_header_stdc" 1>&6
8287 if test $ac_cv_header_stdc = yes; then
8288 cat >> confdefs.h <<\EOF
8289 #define STDC_HEADERS 1
8290 EOF
8291
8292 fi
8293
8294 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
8295 echo "configure:8296: checking for mode_t" >&5
8296 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8297 echo $ac_n "(cached) $ac_c" 1>&6
8298 else
8299 cat > conftest.$ac_ext <<EOF
8300 #line 8301 "configure"
8301 #include "confdefs.h"
8302 #include <sys/types.h>
8303 #if STDC_HEADERS
8304 #include <stdlib.h>
8305 #include <stddef.h>
8306 #endif
8307 EOF
8308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8309 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8310 rm -rf conftest*
8311 ac_cv_type_mode_t=yes
8312 else
8313 rm -rf conftest*
8314 ac_cv_type_mode_t=no
8315 fi
8316 rm -f conftest*
8317
8318 fi
8319 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
8320 if test $ac_cv_type_mode_t = no; then
8321 cat >> confdefs.h <<\EOF
8322 #define mode_t int
8323 EOF
8324
8325 fi
8326
8327 echo $ac_n "checking for off_t""... $ac_c" 1>&6
8328 echo "configure:8329: checking for off_t" >&5
8329 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
8330 echo $ac_n "(cached) $ac_c" 1>&6
8331 else
8332 cat > conftest.$ac_ext <<EOF
8333 #line 8334 "configure"
8334 #include "confdefs.h"
8335 #include <sys/types.h>
8336 #if STDC_HEADERS
8337 #include <stdlib.h>
8338 #include <stddef.h>
8339 #endif
8340 EOF
8341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8342 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8343 rm -rf conftest*
8344 ac_cv_type_off_t=yes
8345 else
8346 rm -rf conftest*
8347 ac_cv_type_off_t=no
8348 fi
8349 rm -f conftest*
8350
8351 fi
8352 echo "$ac_t""$ac_cv_type_off_t" 1>&6
8353 if test $ac_cv_type_off_t = no; then
8354 cat >> confdefs.h <<\EOF
8355 #define off_t long
8356 EOF
8357
8358 fi
8359
8360 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
8361 echo "configure:8362: checking for pid_t" >&5
8362 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8363 echo $ac_n "(cached) $ac_c" 1>&6
8364 else
8365 cat > conftest.$ac_ext <<EOF
8366 #line 8367 "configure"
8367 #include "confdefs.h"
8368 #include <sys/types.h>
8369 #if STDC_HEADERS
8370 #include <stdlib.h>
8371 #include <stddef.h>
8372 #endif
8373 EOF
8374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8375 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8376 rm -rf conftest*
8377 ac_cv_type_pid_t=yes
8378 else
8379 rm -rf conftest*
8380 ac_cv_type_pid_t=no
8381 fi
8382 rm -f conftest*
8383
8384 fi
8385 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
8386 if test $ac_cv_type_pid_t = no; then
8387 cat >> confdefs.h <<\EOF
8388 #define pid_t int
8389 EOF
8390
8391 fi
8392
8393 echo $ac_n "checking for size_t""... $ac_c" 1>&6
8394 echo "configure:8395: checking for size_t" >&5
8395 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
8396 echo $ac_n "(cached) $ac_c" 1>&6
8397 else
8398 cat > conftest.$ac_ext <<EOF
8399 #line 8400 "configure"
8400 #include "confdefs.h"
8401 #include <sys/types.h>
8402 #if STDC_HEADERS
8403 #include <stdlib.h>
8404 #include <stddef.h>
8405 #endif
8406 EOF
8407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8408 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8409 rm -rf conftest*
8410 ac_cv_type_size_t=yes
8411 else
8412 rm -rf conftest*
8413 ac_cv_type_size_t=no
8414 fi
8415 rm -f conftest*
8416
8417 fi
8418 echo "$ac_t""$ac_cv_type_size_t" 1>&6
8419 if test $ac_cv_type_size_t = no; then
8420 cat >> confdefs.h <<\EOF
8421 #define size_t unsigned
8422 EOF
8423
8424 fi
8425
8426 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
8427 echo "configure:8428: checking for uid_t in sys/types.h" >&5
8428 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
8429 echo $ac_n "(cached) $ac_c" 1>&6
8430 else
8431 cat > conftest.$ac_ext <<EOF
8432 #line 8433 "configure"
8433 #include "confdefs.h"
8434 #include <sys/types.h>
8435 EOF
8436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8437 egrep "uid_t" >/dev/null 2>&1; then
8438 rm -rf conftest*
8439 ac_cv_type_uid_t=yes
8440 else
8441 rm -rf conftest*
8442 ac_cv_type_uid_t=no
8443 fi
8444 rm -f conftest*
8445
8446 fi
8447
8448 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
8449 if test $ac_cv_type_uid_t = no; then
8450 cat >> confdefs.h <<\EOF
8451 #define uid_t int
8452 EOF
8453
8454 cat >> confdefs.h <<\EOF
8455 #define gid_t int
8456 EOF
8457
8458 fi
8459
8460
8461
8462
8463 echo $ac_n "checking for working const""... $ac_c" 1>&6
8464 echo "configure:8465: checking for working const" >&5
8465 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
8466 echo $ac_n "(cached) $ac_c" 1>&6
8467 else
8468 cat > conftest.$ac_ext <<EOF
8469 #line 8470 "configure"
8470 #include "confdefs.h"
8471
8472 int main() {
8473
8474 /* Ultrix mips cc rejects this. */
8475 typedef int charset[2]; const charset x;
8476 /* SunOS 4.1.1 cc rejects this. */
8477 char const *const *ccp;
8478 char **p;
8479 /* NEC SVR4.0.2 mips cc rejects this. */
8480 struct point {int x, y;};
8481 static struct point const zero = {0,0};
8482 /* AIX XL C 1.02.0.0 rejects this.
8483 It does not let you subtract one const X* pointer from another in an arm
8484 of an if-expression whose if-part is not a constant expression */
8485 const char *g = "string";
8486 ccp = &g + (g ? g-g : 0);
8487 /* HPUX 7.0 cc rejects these. */
8488 ++ccp;
8489 p = (char**) ccp;
8490 ccp = (char const *const *) p;
8491 { /* SCO 3.2v4 cc rejects this. */
8492 char *t;
8493 char const *s = 0 ? (char *) 0 : (char const *) 0;
8494
8495 *t++ = 0;
8496 }
8497 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8498 int x[] = {25, 17};
8499 const int *foo = &x[0];
8500 ++foo;
8501 }
8502 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8503 typedef const int *iptr;
8504 iptr p = 0;
8505 ++p;
8506 }
8507 { /* AIX XL C 1.02.0.0 rejects this saying
8508 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8509 struct s { int j; const int *ap[3]; };
8510 struct s *b; b->j = 5;
8511 }
8512 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8513 const int foo = 10;
8514 }
8515
8516 ; return 0; }
8517 EOF
8518 if { (eval echo configure:8519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8519 rm -rf conftest*
8520 ac_cv_c_const=yes
8521 else
8522 echo "configure: failed program was:" >&5
8523 cat conftest.$ac_ext >&5
8524 rm -rf conftest*
8525 ac_cv_c_const=no
8526 fi
8527 rm -f conftest*
8528 fi
8529
8530 echo "$ac_t""$ac_cv_c_const" 1>&6
8531 if test $ac_cv_c_const = no; then
8532 cat >> confdefs.h <<\EOF
8533 #define const
8534 EOF
8535
8536 fi
8537
8538 echo $ac_n "checking for inline""... $ac_c" 1>&6
8539 echo "configure:8540: checking for inline" >&5
8540 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
8541 echo $ac_n "(cached) $ac_c" 1>&6
8542 else
8543 ac_cv_c_inline=no
8544 for ac_kw in inline __inline__ __inline; do
8545 cat > conftest.$ac_ext <<EOF
8546 #line 8547 "configure"
8547 #include "confdefs.h"
8548
8549 int main() {
8550 } $ac_kw foo() {
8551 ; return 0; }
8552 EOF
8553 if { (eval echo configure:8554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8554 rm -rf conftest*
8555 ac_cv_c_inline=$ac_kw; break
8556 else
8557 echo "configure: failed program was:" >&5
8558 cat conftest.$ac_ext >&5
8559 fi
8560 rm -f conftest*
8561 done
8562
8563 fi
8564
8565 echo "$ac_t""$ac_cv_c_inline" 1>&6
8566 case "$ac_cv_c_inline" in
8567 inline | yes) ;;
8568 no) cat >> confdefs.h <<\EOF
8569 #define inline
8570 EOF
8571 ;;
8572 *) cat >> confdefs.h <<EOF
8573 #define inline $ac_cv_c_inline
8574 EOF
8575 ;;
8576 esac
8577
8578
8579 echo $ac_n "checking size of char""... $ac_c" 1>&6
8580 echo "configure:8581: checking size of char" >&5
8581 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
8582 echo $ac_n "(cached) $ac_c" 1>&6
8583 else
8584 if test "$cross_compiling" = yes; then
8585 ac_cv_sizeof_char=1
8586 else
8587 cat > conftest.$ac_ext <<EOF
8588 #line 8589 "configure"
8589 #include "confdefs.h"
8590 #include <stdio.h>
8591 main()
8592 {
8593 FILE *f=fopen("conftestval", "w");
8594 if (!f) exit(1);
8595 fprintf(f, "%d\n", sizeof(char));
8596 exit(0);
8597 }
8598 EOF
8599 if { (eval echo configure:8600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8600 then
8601 ac_cv_sizeof_char=`cat conftestval`
8602 else
8603 echo "configure: failed program was:" >&5
8604 cat conftest.$ac_ext >&5
8605 rm -fr conftest*
8606 ac_cv_sizeof_char=0
8607 fi
8608 rm -fr conftest*
8609 fi
8610
8611 fi
8612 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
8613 cat >> confdefs.h <<EOF
8614 #define SIZEOF_CHAR $ac_cv_sizeof_char
8615 EOF
8616
8617
8618 echo $ac_n "checking size of short""... $ac_c" 1>&6
8619 echo "configure:8620: checking size of short" >&5
8620 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
8621 echo $ac_n "(cached) $ac_c" 1>&6
8622 else
8623 if test "$cross_compiling" = yes; then
8624 ac_cv_sizeof_short=2
8625 else
8626 cat > conftest.$ac_ext <<EOF
8627 #line 8628 "configure"
8628 #include "confdefs.h"
8629 #include <stdio.h>
8630 main()
8631 {
8632 FILE *f=fopen("conftestval", "w");
8633 if (!f) exit(1);
8634 fprintf(f, "%d\n", sizeof(short));
8635 exit(0);
8636 }
8637 EOF
8638 if { (eval echo configure:8639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8639 then
8640 ac_cv_sizeof_short=`cat conftestval`
8641 else
8642 echo "configure: failed program was:" >&5
8643 cat conftest.$ac_ext >&5
8644 rm -fr conftest*
8645 ac_cv_sizeof_short=0
8646 fi
8647 rm -fr conftest*
8648 fi
8649
8650 fi
8651 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
8652 cat >> confdefs.h <<EOF
8653 #define SIZEOF_SHORT $ac_cv_sizeof_short
8654 EOF
8655
8656
8657 echo $ac_n "checking size of int *""... $ac_c" 1>&6
8658 echo "configure:8659: checking size of int *" >&5
8659 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
8660 echo $ac_n "(cached) $ac_c" 1>&6
8661 else
8662 if test "$cross_compiling" = yes; then
8663 ac_cv_sizeof_int_p=4
8664 else
8665 cat > conftest.$ac_ext <<EOF
8666 #line 8667 "configure"
8667 #include "confdefs.h"
8668 #include <stdio.h>
8669 main()
8670 {
8671 FILE *f=fopen("conftestval", "w");
8672 if (!f) exit(1);
8673 fprintf(f, "%d\n", sizeof(int *));
8674 exit(0);
8675 }
8676 EOF
8677 if { (eval echo configure:8678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8678 then
8679 ac_cv_sizeof_int_p=`cat conftestval`
8680 else
8681 echo "configure: failed program was:" >&5
8682 cat conftest.$ac_ext >&5
8683 rm -fr conftest*
8684 ac_cv_sizeof_int_p=0
8685 fi
8686 rm -fr conftest*
8687 fi
8688
8689 fi
8690 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
8691 cat >> confdefs.h <<EOF
8692 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
8693 EOF
8694
8695
8696 echo $ac_n "checking size of int""... $ac_c" 1>&6
8697 echo "configure:8698: checking size of int" >&5
8698 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
8699 echo $ac_n "(cached) $ac_c" 1>&6
8700 else
8701 if test "$cross_compiling" = yes; then
8702 ac_cv_sizeof_int=4
8703 else
8704 cat > conftest.$ac_ext <<EOF
8705 #line 8706 "configure"
8706 #include "confdefs.h"
8707 #include <stdio.h>
8708 main()
8709 {
8710 FILE *f=fopen("conftestval", "w");
8711 if (!f) exit(1);
8712 fprintf(f, "%d\n", sizeof(int));
8713 exit(0);
8714 }
8715 EOF
8716 if { (eval echo configure:8717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8717 then
8718 ac_cv_sizeof_int=`cat conftestval`
8719 else
8720 echo "configure: failed program was:" >&5
8721 cat conftest.$ac_ext >&5
8722 rm -fr conftest*
8723 ac_cv_sizeof_int=0
8724 fi
8725 rm -fr conftest*
8726 fi
8727
8728 fi
8729 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
8730 cat >> confdefs.h <<EOF
8731 #define SIZEOF_INT $ac_cv_sizeof_int
8732 EOF
8733
8734
8735 echo $ac_n "checking size of long""... $ac_c" 1>&6
8736 echo "configure:8737: checking size of long" >&5
8737 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
8738 echo $ac_n "(cached) $ac_c" 1>&6
8739 else
8740 if test "$cross_compiling" = yes; then
8741 ac_cv_sizeof_long=4
8742 else
8743 cat > conftest.$ac_ext <<EOF
8744 #line 8745 "configure"
8745 #include "confdefs.h"
8746 #include <stdio.h>
8747 main()
8748 {
8749 FILE *f=fopen("conftestval", "w");
8750 if (!f) exit(1);
8751 fprintf(f, "%d\n", sizeof(long));
8752 exit(0);
8753 }
8754 EOF
8755 if { (eval echo configure:8756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8756 then
8757 ac_cv_sizeof_long=`cat conftestval`
8758 else
8759 echo "configure: failed program was:" >&5
8760 cat conftest.$ac_ext >&5
8761 rm -fr conftest*
8762 ac_cv_sizeof_long=0
8763 fi
8764 rm -fr conftest*
8765 fi
8766
8767 fi
8768 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
8769 cat >> confdefs.h <<EOF
8770 #define SIZEOF_LONG $ac_cv_sizeof_long
8771 EOF
8772
8773
8774 echo $ac_n "checking size of long long""... $ac_c" 1>&6
8775 echo "configure:8776: checking size of long long" >&5
8776 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
8777 echo $ac_n "(cached) $ac_c" 1>&6
8778 else
8779 if test "$cross_compiling" = yes; then
8780 ac_cv_sizeof_long_long=0
8781 else
8782 cat > conftest.$ac_ext <<EOF
8783 #line 8784 "configure"
8784 #include "confdefs.h"
8785 #include <stdio.h>
8786 main()
8787 {
8788 FILE *f=fopen("conftestval", "w");
8789 if (!f) exit(1);
8790 fprintf(f, "%d\n", sizeof(long long));
8791 exit(0);
8792 }
8793 EOF
8794 if { (eval echo configure:8795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8795 then
8796 ac_cv_sizeof_long_long=`cat conftestval`
8797 else
8798 echo "configure: failed program was:" >&5
8799 cat conftest.$ac_ext >&5
8800 rm -fr conftest*
8801 ac_cv_sizeof_long_long=0
8802 fi
8803 rm -fr conftest*
8804 fi
8805
8806 fi
8807 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
8808 cat >> confdefs.h <<EOF
8809 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8810 EOF
8811
8812
8813
8814 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
8815 echo "configure:8816: checking whether byte ordering is bigendian" >&5
8816 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8817 echo $ac_n "(cached) $ac_c" 1>&6
8818 else
8819 ac_cv_c_bigendian=unknown
8820 # See if sys/param.h defines the BYTE_ORDER macro.
8821 cat > conftest.$ac_ext <<EOF
8822 #line 8823 "configure"
8823 #include "confdefs.h"
8824 #include <sys/types.h>
8825 #include <sys/param.h>
8826 int main() {
8827
8828 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8829 bogus endian macros
8830 #endif
8831 ; return 0; }
8832 EOF
8833 if { (eval echo configure:8834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8834 rm -rf conftest*
8835 # It does; now see whether it defined to BIG_ENDIAN or not.
8836 cat > conftest.$ac_ext <<EOF
8837 #line 8838 "configure"
8838 #include "confdefs.h"
8839 #include <sys/types.h>
8840 #include <sys/param.h>
8841 int main() {
8842
8843 #if BYTE_ORDER != BIG_ENDIAN
8844 not big endian
8845 #endif
8846 ; return 0; }
8847 EOF
8848 if { (eval echo configure:8849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8849 rm -rf conftest*
8850 ac_cv_c_bigendian=yes
8851 else
8852 echo "configure: failed program was:" >&5
8853 cat conftest.$ac_ext >&5
8854 rm -rf conftest*
8855 ac_cv_c_bigendian=no
8856 fi
8857 rm -f conftest*
8858 else
8859 echo "configure: failed program was:" >&5
8860 cat conftest.$ac_ext >&5
8861 fi
8862 rm -f conftest*
8863 if test $ac_cv_c_bigendian = unknown; then
8864 if test "$cross_compiling" = yes; then
8865 ac_cv_c_bigendian=unknown
8866 else
8867 cat > conftest.$ac_ext <<EOF
8868 #line 8869 "configure"
8869 #include "confdefs.h"
8870 main () {
8871 /* Are we little or big endian? From Harbison&Steele. */
8872 union
8873 {
8874 long l;
8875 char c[sizeof (long)];
8876 } u;
8877 u.l = 1;
8878 exit (u.c[sizeof (long) - 1] == 1);
8879 }
8880 EOF
8881 if { (eval echo configure:8882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8882 then
8883 ac_cv_c_bigendian=no
8884 else
8885 echo "configure: failed program was:" >&5
8886 cat conftest.$ac_ext >&5
8887 rm -fr conftest*
8888 ac_cv_c_bigendian=yes
8889 fi
8890 rm -fr conftest*
8891 fi
8892
8893 fi
8894 fi
8895
8896 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8897 if test $ac_cv_c_bigendian = unknown; then
8898 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
8899 fi
8900 if test $ac_cv_c_bigendian = yes; then
8901 cat >> confdefs.h <<\EOF
8902 #define WORDS_BIGENDIAN 1
8903 EOF
8904
8905 fi
8906
8907
8908
8909 if test "$cross_compiling" = "yes"; then
8910 cat >> confdefs.h <<\EOF
8911 #define wxUSE_IOSTREAMH 1
8912 EOF
8913
8914 else
8915
8916 ac_ext=C
8917 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8918 ac_cpp='$CXXCPP $CPPFLAGS'
8919 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8920 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8921 cross_compiling=$ac_cv_prog_cxx_cross
8922
8923
8924 for ac_hdr in iostream
8925 do
8926 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8927 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8928 echo "configure:8929: checking for $ac_hdr" >&5
8929 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8930 echo $ac_n "(cached) $ac_c" 1>&6
8931 else
8932 cat > conftest.$ac_ext <<EOF
8933 #line 8934 "configure"
8934 #include "confdefs.h"
8935 #include <$ac_hdr>
8936 EOF
8937 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8938 { (eval echo configure:8939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8939 ac_err=`grep -v '^ *+' conftest.out`
8940 if test -z "$ac_err"; then
8941 rm -rf conftest*
8942 eval "ac_cv_header_$ac_safe=yes"
8943 else
8944 echo "$ac_err" >&5
8945 echo "configure: failed program was:" >&5
8946 cat conftest.$ac_ext >&5
8947 rm -rf conftest*
8948 eval "ac_cv_header_$ac_safe=no"
8949 fi
8950 rm -f conftest*
8951 fi
8952 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8953 echo "$ac_t""yes" 1>&6
8954 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8955 cat >> confdefs.h <<EOF
8956 #define $ac_tr_hdr 1
8957 EOF
8958
8959 else
8960 echo "$ac_t""no" 1>&6
8961 fi
8962 done
8963
8964
8965 if test "x$HAVE_IOSTREAM" = x ; then
8966 cat >> confdefs.h <<\EOF
8967 #define wxUSE_IOSTREAMH 1
8968 EOF
8969
8970 else
8971 :
8972 fi
8973
8974 ac_ext=c
8975 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8976 ac_cpp='$CPP $CPPFLAGS'
8977 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8978 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8979 cross_compiling=$ac_cv_prog_cc_cross
8980
8981 fi
8982
8983
8984
8985 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
8986 echo "configure:8987: checking if C++ compiler supports bool" >&5
8987 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
8988 echo $ac_n "(cached) $ac_c" 1>&6
8989 else
8990
8991
8992 ac_ext=C
8993 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8994 ac_cpp='$CXXCPP $CPPFLAGS'
8995 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8996 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8997 cross_compiling=$ac_cv_prog_cxx_cross
8998
8999
9000 cat > conftest.$ac_ext <<EOF
9001 #line 9002 "configure"
9002 #include "confdefs.h"
9003
9004
9005 int main() {
9006
9007 bool b = true;
9008
9009 return 0;
9010
9011 ; return 0; }
9012 EOF
9013 if { (eval echo configure:9014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9014 rm -rf conftest*
9015
9016 cat >> confdefs.h <<\EOF
9017 #define HAVE_BOOL 1
9018 EOF
9019
9020 wx_cv_cpp_bool=yes
9021
9022 else
9023 echo "configure: failed program was:" >&5
9024 cat conftest.$ac_ext >&5
9025 rm -rf conftest*
9026
9027 wx_cv_cpp_bool=no
9028
9029
9030 fi
9031 rm -f conftest*
9032
9033 ac_ext=c
9034 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9035 ac_cpp='$CPP $CPPFLAGS'
9036 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9037 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9038 cross_compiling=$ac_cv_prog_cc_cross
9039
9040
9041 fi
9042
9043 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
9044
9045 if test "$wx_cv_cpp_bool" = "yes"; then
9046 cat >> confdefs.h <<\EOF
9047 #define HAVE_BOOL 1
9048 EOF
9049
9050 fi
9051
9052
9053
9054 echo $ac_n "checking if size_t and int are different types""... $ac_c" 1>&6
9055 echo "configure:9056: checking if size_t and int are different types" >&5
9056 if eval "test \"`echo '$''{'wx_cv_cpp_sizet_not_int'+set}'`\" = set"; then
9057 echo $ac_n "(cached) $ac_c" 1>&6
9058 else
9059
9060
9061 ac_ext=C
9062 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9063 ac_cpp='$CXXCPP $CPPFLAGS'
9064 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9065 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9066 cross_compiling=$ac_cv_prog_cxx_cross
9067
9068
9069 if test "$cross_compiling" = yes; then
9070 wx_cv_cpp_sizet_not_int=no
9071
9072 else
9073 cat > conftest.$ac_ext <<EOF
9074 #line 9075 "configure"
9075 #include "confdefs.h"
9076 #ifdef __cplusplus
9077 extern "C" void exit(int);
9078 #endif
9079
9080 #include <stdlib.h>
9081
9082 class S
9083 {
9084 public:
9085 S(char *s) { m_s = s; }
9086
9087 char operator[](size_t n) const { return m_s[n]; }
9088 char operator[](int n) const { return m_s[n]; }
9089
9090 private:
9091 char *m_s;
9092 };
9093
9094 int main()
9095 {
9096 S s("dummy");
9097 size_t n1 = 2;
9098 int n2 = 3;
9099
9100 return s[n1] == s[n2];
9101 }
9102
9103 EOF
9104 if { (eval echo configure:9105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
9105 then
9106 cat >> confdefs.h <<\EOF
9107 #define wxUSE_SIZE_T_STRING_OPERATOR 1
9108 EOF
9109 wx_cv_cpp_sizet_not_int=yes
9110 else
9111 echo "configure: failed program was:" >&5
9112 cat conftest.$ac_ext >&5
9113 rm -fr conftest*
9114 wx_cv_cpp_sizet_not_int=no
9115 fi
9116 rm -fr conftest*
9117 fi
9118
9119
9120 ac_ext=c
9121 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9122 ac_cpp='$CPP $CPPFLAGS'
9123 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9124 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9125 cross_compiling=$ac_cv_prog_cc_cross
9126
9127
9128 fi
9129
9130 echo "$ac_t""$wx_cv_cpp_sizet_not_int" 1>&6
9131
9132
9133
9134 echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
9135 echo "configure:9136: checking if you need GNU extensions" >&5
9136 if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
9137 echo $ac_n "(cached) $ac_c" 1>&6
9138 else
9139
9140 cat > conftest.$ac_ext <<EOF
9141 #line 9142 "configure"
9142 #include "confdefs.h"
9143 #include <features.h>
9144 int main() {
9145
9146
9147 #ifndef __GNU_LIBRARY__
9148 Compile error wanted
9149 #endif
9150
9151
9152 ; return 0; }
9153 EOF
9154 if { (eval echo configure:9155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9155 rm -rf conftest*
9156 wx_cv_gnu_extensions=yes
9157 else
9158 echo "configure: failed program was:" >&5
9159 cat conftest.$ac_ext >&5
9160 rm -rf conftest*
9161 wx_cv_gnu_extensions=no
9162 fi
9163 rm -f conftest*
9164
9165 fi
9166
9167
9168 echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
9169 if test "$wx_cv_gnu_extensions" = "yes"; then
9170 cat >> confdefs.h <<EOF
9171 #define _GNU_SOURCE 1
9172 EOF
9173
9174 fi
9175
9176
9177
9178 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
9179 echo "configure:9180: checking for wcslen in -lc" >&5
9180 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
9181 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9182 echo $ac_n "(cached) $ac_c" 1>&6
9183 else
9184 ac_save_LIBS="$LIBS"
9185 LIBS="-lc $LIBS"
9186 cat > conftest.$ac_ext <<EOF
9187 #line 9188 "configure"
9188 #include "confdefs.h"
9189 /* Override any gcc2 internal prototype to avoid an error. */
9190 /* We use char because int might match the return type of a gcc2
9191 builtin and then its argument prototype would still apply. */
9192 char wcslen();
9193
9194 int main() {
9195 wcslen()
9196 ; return 0; }
9197 EOF
9198 if { (eval echo configure:9199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9199 rm -rf conftest*
9200 eval "ac_cv_lib_$ac_lib_var=yes"
9201 else
9202 echo "configure: failed program was:" >&5
9203 cat conftest.$ac_ext >&5
9204 rm -rf conftest*
9205 eval "ac_cv_lib_$ac_lib_var=no"
9206 fi
9207 rm -f conftest*
9208 LIBS="$ac_save_LIBS"
9209
9210 fi
9211 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9212 echo "$ac_t""yes" 1>&6
9213
9214 cat >> confdefs.h <<\EOF
9215 #define HAVE_WCSLEN 1
9216 EOF
9217
9218 WCHAR_LINK=""
9219
9220 else
9221 echo "$ac_t""no" 1>&6
9222
9223 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
9224 echo "configure:9225: checking for wcslen in -lw" >&5
9225 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
9226 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9227 echo $ac_n "(cached) $ac_c" 1>&6
9228 else
9229 ac_save_LIBS="$LIBS"
9230 LIBS="-lw $LIBS"
9231 cat > conftest.$ac_ext <<EOF
9232 #line 9233 "configure"
9233 #include "confdefs.h"
9234 /* Override any gcc2 internal prototype to avoid an error. */
9235 /* We use char because int might match the return type of a gcc2
9236 builtin and then its argument prototype would still apply. */
9237 char wcslen();
9238
9239 int main() {
9240 wcslen()
9241 ; return 0; }
9242 EOF
9243 if { (eval echo configure:9244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9244 rm -rf conftest*
9245 eval "ac_cv_lib_$ac_lib_var=yes"
9246 else
9247 echo "configure: failed program was:" >&5
9248 cat conftest.$ac_ext >&5
9249 rm -rf conftest*
9250 eval "ac_cv_lib_$ac_lib_var=no"
9251 fi
9252 rm -f conftest*
9253 LIBS="$ac_save_LIBS"
9254
9255 fi
9256 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9257 echo "$ac_t""yes" 1>&6
9258
9259 cat >> confdefs.h <<\EOF
9260 #define HAVE_WCSLEN 1
9261 EOF
9262
9263 WCHAR_LINK="-lw"
9264
9265 else
9266 echo "$ac_t""no" 1>&6
9267 fi
9268
9269
9270 fi
9271
9272
9273 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
9274 echo "configure:9275: checking for vprintf" >&5
9275 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9276 echo $ac_n "(cached) $ac_c" 1>&6
9277 else
9278 cat > conftest.$ac_ext <<EOF
9279 #line 9280 "configure"
9280 #include "confdefs.h"
9281 /* System header to define __stub macros and hopefully few prototypes,
9282 which can conflict with char vprintf(); below. */
9283 #include <assert.h>
9284 /* Override any gcc2 internal prototype to avoid an error. */
9285 /* We use char because int might match the return type of a gcc2
9286 builtin and then its argument prototype would still apply. */
9287 char vprintf();
9288
9289 int main() {
9290
9291 /* The GNU C library defines this for functions which it implements
9292 to always fail with ENOSYS. Some functions are actually named
9293 something starting with __ and the normal name is an alias. */
9294 #if defined (__stub_vprintf) || defined (__stub___vprintf)
9295 choke me
9296 #else
9297 vprintf();
9298 #endif
9299
9300 ; return 0; }
9301 EOF
9302 if { (eval echo configure:9303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9303 rm -rf conftest*
9304 eval "ac_cv_func_vprintf=yes"
9305 else
9306 echo "configure: failed program was:" >&5
9307 cat conftest.$ac_ext >&5
9308 rm -rf conftest*
9309 eval "ac_cv_func_vprintf=no"
9310 fi
9311 rm -f conftest*
9312 fi
9313
9314 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9315 echo "$ac_t""yes" 1>&6
9316 cat >> confdefs.h <<\EOF
9317 #define HAVE_VPRINTF 1
9318 EOF
9319
9320 else
9321 echo "$ac_t""no" 1>&6
9322 fi
9323
9324 if test "$ac_cv_func_vprintf" != yes; then
9325 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
9326 echo "configure:9327: checking for _doprnt" >&5
9327 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
9328 echo $ac_n "(cached) $ac_c" 1>&6
9329 else
9330 cat > conftest.$ac_ext <<EOF
9331 #line 9332 "configure"
9332 #include "confdefs.h"
9333 /* System header to define __stub macros and hopefully few prototypes,
9334 which can conflict with char _doprnt(); below. */
9335 #include <assert.h>
9336 /* Override any gcc2 internal prototype to avoid an error. */
9337 /* We use char because int might match the return type of a gcc2
9338 builtin and then its argument prototype would still apply. */
9339 char _doprnt();
9340
9341 int main() {
9342
9343 /* The GNU C library defines this for functions which it implements
9344 to always fail with ENOSYS. Some functions are actually named
9345 something starting with __ and the normal name is an alias. */
9346 #if defined (__stub__doprnt) || defined (__stub____doprnt)
9347 choke me
9348 #else
9349 _doprnt();
9350 #endif
9351
9352 ; return 0; }
9353 EOF
9354 if { (eval echo configure:9355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9355 rm -rf conftest*
9356 eval "ac_cv_func__doprnt=yes"
9357 else
9358 echo "configure: failed program was:" >&5
9359 cat conftest.$ac_ext >&5
9360 rm -rf conftest*
9361 eval "ac_cv_func__doprnt=no"
9362 fi
9363 rm -f conftest*
9364 fi
9365
9366 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
9367 echo "$ac_t""yes" 1>&6
9368 cat >> confdefs.h <<\EOF
9369 #define HAVE_DOPRNT 1
9370 EOF
9371
9372 else
9373 echo "$ac_t""no" 1>&6
9374 fi
9375
9376 fi
9377
9378
9379 for ac_func in vsnprintf
9380 do
9381 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9382 echo "configure:9383: checking for $ac_func" >&5
9383 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9384 echo $ac_n "(cached) $ac_c" 1>&6
9385 else
9386 cat > conftest.$ac_ext <<EOF
9387 #line 9388 "configure"
9388 #include "confdefs.h"
9389 /* System header to define __stub macros and hopefully few prototypes,
9390 which can conflict with char $ac_func(); below. */
9391 #include <assert.h>
9392 /* Override any gcc2 internal prototype to avoid an error. */
9393 /* We use char because int might match the return type of a gcc2
9394 builtin and then its argument prototype would still apply. */
9395 char $ac_func();
9396
9397 int main() {
9398
9399 /* The GNU C library defines this for functions which it implements
9400 to always fail with ENOSYS. Some functions are actually named
9401 something starting with __ and the normal name is an alias. */
9402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9403 choke me
9404 #else
9405 $ac_func();
9406 #endif
9407
9408 ; return 0; }
9409 EOF
9410 if { (eval echo configure:9411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9411 rm -rf conftest*
9412 eval "ac_cv_func_$ac_func=yes"
9413 else
9414 echo "configure: failed program was:" >&5
9415 cat conftest.$ac_ext >&5
9416 rm -rf conftest*
9417 eval "ac_cv_func_$ac_func=no"
9418 fi
9419 rm -f conftest*
9420 fi
9421
9422 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9423 echo "$ac_t""yes" 1>&6
9424 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9425 cat >> confdefs.h <<EOF
9426 #define $ac_tr_func 1
9427 EOF
9428 cat >> confdefs.h <<\EOF
9429 #define HAVE_VSNPRINTF 1
9430 EOF
9431
9432 else
9433 echo "$ac_t""no" 1>&6
9434 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9435
9436 fi
9437 done
9438
9439
9440
9441 ac_ext=C
9442 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9443 ac_cpp='$CXXCPP $CPPFLAGS'
9444 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9445 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9446 cross_compiling=$ac_cv_prog_cxx_cross
9447
9448
9449 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
9450 echo "configure:9451: checking for vsscanf" >&5
9451 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
9452 echo $ac_n "(cached) $ac_c" 1>&6
9453 else
9454
9455 if test "$cross_compiling" = yes; then
9456 wx_cv_func_vsscanf=no
9457
9458 else
9459 cat > conftest.$ac_ext <<EOF
9460 #line 9461 "configure"
9461 #include "confdefs.h"
9462 #ifdef __cplusplus
9463 extern "C" void exit(int);
9464 #endif
9465
9466 #include <stdio.h>
9467 #include <stdarg.h>
9468
9469 int try_vsscanf(const char *format, ...)
9470 {
9471 va_list ap;
9472 va_start(ap, format);
9473
9474 vsscanf("17", format, ap);
9475
9476 va_end(ap);
9477 }
9478
9479 int main()
9480 {
9481 int i;
9482 try_vsscanf("%d", &i);
9483 return i == 17 ? 0 : 1;
9484 }
9485
9486 EOF
9487 if { (eval echo configure:9488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
9488 then
9489
9490 cat >> confdefs.h <<\EOF
9491 #define HAVE_VSSCANF 1
9492 EOF
9493
9494 wx_cv_func_vsscanf=yes
9495
9496 else
9497 echo "configure: failed program was:" >&5
9498 cat conftest.$ac_ext >&5
9499 rm -fr conftest*
9500 wx_cv_func_vsscanf=no
9501 fi
9502 rm -fr conftest*
9503 fi
9504
9505
9506 fi
9507
9508 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
9509
9510 ac_ext=c
9511 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9512 ac_cpp='$CPP $CPPFLAGS'
9513 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9514 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9515 cross_compiling=$ac_cv_prog_cc_cross
9516
9517
9518 for ac_func in vfork
9519 do
9520 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9521 echo "configure:9522: checking for $ac_func" >&5
9522 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9523 echo $ac_n "(cached) $ac_c" 1>&6
9524 else
9525 cat > conftest.$ac_ext <<EOF
9526 #line 9527 "configure"
9527 #include "confdefs.h"
9528 /* System header to define __stub macros and hopefully few prototypes,
9529 which can conflict with char $ac_func(); below. */
9530 #include <assert.h>
9531 /* Override any gcc2 internal prototype to avoid an error. */
9532 /* We use char because int might match the return type of a gcc2
9533 builtin and then its argument prototype would still apply. */
9534 char $ac_func();
9535
9536 int main() {
9537
9538 /* The GNU C library defines this for functions which it implements
9539 to always fail with ENOSYS. Some functions are actually named
9540 something starting with __ and the normal name is an alias. */
9541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9542 choke me
9543 #else
9544 $ac_func();
9545 #endif
9546
9547 ; return 0; }
9548 EOF
9549 if { (eval echo configure:9550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9550 rm -rf conftest*
9551 eval "ac_cv_func_$ac_func=yes"
9552 else
9553 echo "configure: failed program was:" >&5
9554 cat conftest.$ac_ext >&5
9555 rm -rf conftest*
9556 eval "ac_cv_func_$ac_func=no"
9557 fi
9558 rm -f conftest*
9559 fi
9560
9561 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9562 echo "$ac_t""yes" 1>&6
9563 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9564 cat >> confdefs.h <<EOF
9565 #define $ac_tr_func 1
9566 EOF
9567
9568 else
9569 echo "$ac_t""no" 1>&6
9570 fi
9571 done
9572
9573
9574 POSIX4_LINK=
9575 for ac_func in nanosleep
9576 do
9577 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9578 echo "configure:9579: checking for $ac_func" >&5
9579 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9580 echo $ac_n "(cached) $ac_c" 1>&6
9581 else
9582 cat > conftest.$ac_ext <<EOF
9583 #line 9584 "configure"
9584 #include "confdefs.h"
9585 /* System header to define __stub macros and hopefully few prototypes,
9586 which can conflict with char $ac_func(); below. */
9587 #include <assert.h>
9588 /* Override any gcc2 internal prototype to avoid an error. */
9589 /* We use char because int might match the return type of a gcc2
9590 builtin and then its argument prototype would still apply. */
9591 char $ac_func();
9592
9593 int main() {
9594
9595 /* The GNU C library defines this for functions which it implements
9596 to always fail with ENOSYS. Some functions are actually named
9597 something starting with __ and the normal name is an alias. */
9598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9599 choke me
9600 #else
9601 $ac_func();
9602 #endif
9603
9604 ; return 0; }
9605 EOF
9606 if { (eval echo configure:9607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9607 rm -rf conftest*
9608 eval "ac_cv_func_$ac_func=yes"
9609 else
9610 echo "configure: failed program was:" >&5
9611 cat conftest.$ac_ext >&5
9612 rm -rf conftest*
9613 eval "ac_cv_func_$ac_func=no"
9614 fi
9615 rm -f conftest*
9616 fi
9617
9618 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9619 echo "$ac_t""yes" 1>&6
9620 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9621 cat >> confdefs.h <<EOF
9622 #define $ac_tr_func 1
9623 EOF
9624 cat >> confdefs.h <<\EOF
9625 #define HAVE_NANOSLEEP 1
9626 EOF
9627
9628 else
9629 echo "$ac_t""no" 1>&6
9630 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
9631 echo "configure:9632: checking for nanosleep in -lposix4" >&5
9632 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
9633 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9634 echo $ac_n "(cached) $ac_c" 1>&6
9635 else
9636 ac_save_LIBS="$LIBS"
9637 LIBS="-lposix4 $LIBS"
9638 cat > conftest.$ac_ext <<EOF
9639 #line 9640 "configure"
9640 #include "confdefs.h"
9641 /* Override any gcc2 internal prototype to avoid an error. */
9642 /* We use char because int might match the return type of a gcc2
9643 builtin and then its argument prototype would still apply. */
9644 char nanosleep();
9645
9646 int main() {
9647 nanosleep()
9648 ; return 0; }
9649 EOF
9650 if { (eval echo configure:9651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9651 rm -rf conftest*
9652 eval "ac_cv_lib_$ac_lib_var=yes"
9653 else
9654 echo "configure: failed program was:" >&5
9655 cat conftest.$ac_ext >&5
9656 rm -rf conftest*
9657 eval "ac_cv_lib_$ac_lib_var=no"
9658 fi
9659 rm -f conftest*
9660 LIBS="$ac_save_LIBS"
9661
9662 fi
9663 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9664 echo "$ac_t""yes" 1>&6
9665
9666 cat >> confdefs.h <<\EOF
9667 #define HAVE_NANOSLEEP 1
9668 EOF
9669
9670 POSIX4_LINK="-lposix4"
9671
9672 else
9673 echo "$ac_t""no" 1>&6
9674
9675 for ac_func in usleep
9676 do
9677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9678 echo "configure:9679: checking for $ac_func" >&5
9679 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9680 echo $ac_n "(cached) $ac_c" 1>&6
9681 else
9682 cat > conftest.$ac_ext <<EOF
9683 #line 9684 "configure"
9684 #include "confdefs.h"
9685 /* System header to define __stub macros and hopefully few prototypes,
9686 which can conflict with char $ac_func(); below. */
9687 #include <assert.h>
9688 /* Override any gcc2 internal prototype to avoid an error. */
9689 /* We use char because int might match the return type of a gcc2
9690 builtin and then its argument prototype would still apply. */
9691 char $ac_func();
9692
9693 int main() {
9694
9695 /* The GNU C library defines this for functions which it implements
9696 to always fail with ENOSYS. Some functions are actually named
9697 something starting with __ and the normal name is an alias. */
9698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9699 choke me
9700 #else
9701 $ac_func();
9702 #endif
9703
9704 ; return 0; }
9705 EOF
9706 if { (eval echo configure:9707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9707 rm -rf conftest*
9708 eval "ac_cv_func_$ac_func=yes"
9709 else
9710 echo "configure: failed program was:" >&5
9711 cat conftest.$ac_ext >&5
9712 rm -rf conftest*
9713 eval "ac_cv_func_$ac_func=no"
9714 fi
9715 rm -f conftest*
9716 fi
9717
9718 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9719 echo "$ac_t""yes" 1>&6
9720 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9721 cat >> confdefs.h <<EOF
9722 #define $ac_tr_func 1
9723 EOF
9724 cat >> confdefs.h <<\EOF
9725 #define HAVE_USLEEP 1
9726 EOF
9727
9728 else
9729 echo "$ac_t""no" 1>&6
9730 echo "configure: warning: wxSleep() function will not work" 1>&2
9731 fi
9732 done
9733
9734
9735 fi
9736
9737
9738 fi
9739 done
9740
9741
9742 for ac_func in uname gethostname
9743 do
9744 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9745 echo "configure:9746: checking for $ac_func" >&5
9746 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9747 echo $ac_n "(cached) $ac_c" 1>&6
9748 else
9749 cat > conftest.$ac_ext <<EOF
9750 #line 9751 "configure"
9751 #include "confdefs.h"
9752 /* System header to define __stub macros and hopefully few prototypes,
9753 which can conflict with char $ac_func(); below. */
9754 #include <assert.h>
9755 /* Override any gcc2 internal prototype to avoid an error. */
9756 /* We use char because int might match the return type of a gcc2
9757 builtin and then its argument prototype would still apply. */
9758 char $ac_func();
9759
9760 int main() {
9761
9762 /* The GNU C library defines this for functions which it implements
9763 to always fail with ENOSYS. Some functions are actually named
9764 something starting with __ and the normal name is an alias. */
9765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9766 choke me
9767 #else
9768 $ac_func();
9769 #endif
9770
9771 ; return 0; }
9772 EOF
9773 if { (eval echo configure:9774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9774 rm -rf conftest*
9775 eval "ac_cv_func_$ac_func=yes"
9776 else
9777 echo "configure: failed program was:" >&5
9778 cat conftest.$ac_ext >&5
9779 rm -rf conftest*
9780 eval "ac_cv_func_$ac_func=no"
9781 fi
9782 rm -f conftest*
9783 fi
9784
9785 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9786 echo "$ac_t""yes" 1>&6
9787 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9788 cat >> confdefs.h <<EOF
9789 #define $ac_tr_func 1
9790 EOF
9791 break
9792 else
9793 echo "$ac_t""no" 1>&6
9794 fi
9795 done
9796
9797
9798 for ac_func in inet_addr
9799 do
9800 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9801 echo "configure:9802: checking for $ac_func" >&5
9802 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9803 echo $ac_n "(cached) $ac_c" 1>&6
9804 else
9805 cat > conftest.$ac_ext <<EOF
9806 #line 9807 "configure"
9807 #include "confdefs.h"
9808 /* System header to define __stub macros and hopefully few prototypes,
9809 which can conflict with char $ac_func(); below. */
9810 #include <assert.h>
9811 /* Override any gcc2 internal prototype to avoid an error. */
9812 /* We use char because int might match the return type of a gcc2
9813 builtin and then its argument prototype would still apply. */
9814 char $ac_func();
9815
9816 int main() {
9817
9818 /* The GNU C library defines this for functions which it implements
9819 to always fail with ENOSYS. Some functions are actually named
9820 something starting with __ and the normal name is an alias. */
9821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9822 choke me
9823 #else
9824 $ac_func();
9825 #endif
9826
9827 ; return 0; }
9828 EOF
9829 if { (eval echo configure:9830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9830 rm -rf conftest*
9831 eval "ac_cv_func_$ac_func=yes"
9832 else
9833 echo "configure: failed program was:" >&5
9834 cat conftest.$ac_ext >&5
9835 rm -rf conftest*
9836 eval "ac_cv_func_$ac_func=no"
9837 fi
9838 rm -f conftest*
9839 fi
9840
9841 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9842 echo "$ac_t""yes" 1>&6
9843 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9844 cat >> confdefs.h <<EOF
9845 #define $ac_tr_func 1
9846 EOF
9847
9848 else
9849 echo "$ac_t""no" 1>&6
9850 fi
9851 done
9852
9853 for ac_func in inet_aton
9854 do
9855 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9856 echo "configure:9857: checking for $ac_func" >&5
9857 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9858 echo $ac_n "(cached) $ac_c" 1>&6
9859 else
9860 cat > conftest.$ac_ext <<EOF
9861 #line 9862 "configure"
9862 #include "confdefs.h"
9863 /* System header to define __stub macros and hopefully few prototypes,
9864 which can conflict with char $ac_func(); below. */
9865 #include <assert.h>
9866 /* Override any gcc2 internal prototype to avoid an error. */
9867 /* We use char because int might match the return type of a gcc2
9868 builtin and then its argument prototype would still apply. */
9869 char $ac_func();
9870
9871 int main() {
9872
9873 /* The GNU C library defines this for functions which it implements
9874 to always fail with ENOSYS. Some functions are actually named
9875 something starting with __ and the normal name is an alias. */
9876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9877 choke me
9878 #else
9879 $ac_func();
9880 #endif
9881
9882 ; return 0; }
9883 EOF
9884 if { (eval echo configure:9885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9885 rm -rf conftest*
9886 eval "ac_cv_func_$ac_func=yes"
9887 else
9888 echo "configure: failed program was:" >&5
9889 cat conftest.$ac_ext >&5
9890 rm -rf conftest*
9891 eval "ac_cv_func_$ac_func=no"
9892 fi
9893 rm -f conftest*
9894 fi
9895
9896 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9897 echo "$ac_t""yes" 1>&6
9898 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9899 cat >> confdefs.h <<EOF
9900 #define $ac_tr_func 1
9901 EOF
9902
9903 else
9904 echo "$ac_t""no" 1>&6
9905 fi
9906 done
9907
9908 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
9909 echo "configure:9910: checking for inet_aton in -lresolv" >&5
9910 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
9911 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9912 echo $ac_n "(cached) $ac_c" 1>&6
9913 else
9914 ac_save_LIBS="$LIBS"
9915 LIBS="-lresolv $LIBS"
9916 cat > conftest.$ac_ext <<EOF
9917 #line 9918 "configure"
9918 #include "confdefs.h"
9919 /* Override any gcc2 internal prototype to avoid an error. */
9920 /* We use char because int might match the return type of a gcc2
9921 builtin and then its argument prototype would still apply. */
9922 char inet_aton();
9923
9924 int main() {
9925 inet_aton()
9926 ; return 0; }
9927 EOF
9928 if { (eval echo configure:9929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9929 rm -rf conftest*
9930 eval "ac_cv_lib_$ac_lib_var=yes"
9931 else
9932 echo "configure: failed program was:" >&5
9933 cat conftest.$ac_ext >&5
9934 rm -rf conftest*
9935 eval "ac_cv_lib_$ac_lib_var=no"
9936 fi
9937 rm -f conftest*
9938 LIBS="$ac_save_LIBS"
9939
9940 fi
9941 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9942 echo "$ac_t""yes" 1>&6
9943 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9944 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9945 cat >> confdefs.h <<EOF
9946 #define $ac_tr_lib 1
9947 EOF
9948
9949 LIBS="-lresolv $LIBS"
9950
9951 else
9952 echo "$ac_t""no" 1>&6
9953 fi
9954
9955
9956
9957 cat > confcache <<\EOF
9958 # This file is a shell script that caches the results of configure
9959 # tests run on this system so they can be shared between configure
9960 # scripts and configure runs. It is not useful on other systems.
9961 # If it contains results you don't want to keep, you may remove or edit it.
9962 #
9963 # By default, configure uses ./config.cache as the cache file,
9964 # creating it if it does not exist already. You can give configure
9965 # the --cache-file=FILE option to use a different cache file; that is
9966 # what configure does when it calls configure scripts in
9967 # subdirectories, so they share the cache.
9968 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9969 # config.status only pays attention to the cache file if you give it the
9970 # --recheck option to rerun configure.
9971 #
9972 EOF
9973 # The following way of writing the cache mishandles newlines in values,
9974 # but we know of no workaround that is simple, portable, and efficient.
9975 # So, don't put newlines in cache variables' values.
9976 # Ultrix sh set writes to stderr and can't be redirected directly,
9977 # and sets the high bit in the cache file unless we assign to the vars.
9978 (set) 2>&1 |
9979 case `(ac_space=' '; set) 2>&1` in
9980 *ac_space=\ *)
9981 # `set' does not quote correctly, so add quotes (double-quote substitution
9982 # turns \\\\ into \\, and sed turns \\ into \).
9983 sed -n \
9984 -e "s/'/'\\\\''/g" \
9985 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9986 ;;
9987 *)
9988 # `set' quotes correctly as required by POSIX, so do not add quotes.
9989 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9990 ;;
9991 esac >> confcache
9992 if cmp -s $cache_file confcache; then
9993 :
9994 else
9995 if test -w $cache_file; then
9996 echo "updating cache $cache_file"
9997 cat confcache > $cache_file
9998 else
9999 echo "not updating unwritable cache $cache_file"
10000 fi
10001 fi
10002 rm -f confcache
10003
10004
10005
10006 if test "$USE_UNIX" = 1; then
10007
10008
10009 THREADS_LINK=""
10010 THREADS_OBJ=""
10011
10012 if test "$wxUSE_THREADS" = "yes" ; then
10013 if test "$wxUSE_WINE" = 1 ; then
10014 echo "configure: warning: Threads are not supported under WINE" 1>&2
10015 wxUSE_THREADS="no"
10016 fi
10017 fi
10018
10019 if test "$wxUSE_THREADS" = "yes" ; then
10020
10021 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
10022 echo "configure:10023: checking for pthread_create in -lpthread" >&5
10023 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
10024 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10025 echo $ac_n "(cached) $ac_c" 1>&6
10026 else
10027 ac_save_LIBS="$LIBS"
10028 LIBS="-lpthread $LIBS"
10029 cat > conftest.$ac_ext <<EOF
10030 #line 10031 "configure"
10031 #include "confdefs.h"
10032 /* Override any gcc2 internal prototype to avoid an error. */
10033 /* We use char because int might match the return type of a gcc2
10034 builtin and then its argument prototype would still apply. */
10035 char pthread_create();
10036
10037 int main() {
10038 pthread_create()
10039 ; return 0; }
10040 EOF
10041 if { (eval echo configure:10042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10042 rm -rf conftest*
10043 eval "ac_cv_lib_$ac_lib_var=yes"
10044 else
10045 echo "configure: failed program was:" >&5
10046 cat conftest.$ac_ext >&5
10047 rm -rf conftest*
10048 eval "ac_cv_lib_$ac_lib_var=no"
10049 fi
10050 rm -f conftest*
10051 LIBS="$ac_save_LIBS"
10052
10053 fi
10054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10055 echo "$ac_t""yes" 1>&6
10056
10057 THREADS_OBJ="threadpsx.lo"
10058 THREADS_LINK="pthread"
10059
10060 else
10061 echo "$ac_t""no" 1>&6
10062
10063 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
10064 echo "configure:10065: checking for pthread_create in -lc_r" >&5
10065 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
10066 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10067 echo $ac_n "(cached) $ac_c" 1>&6
10068 else
10069 ac_save_LIBS="$LIBS"
10070 LIBS="-lc_r $LIBS"
10071 cat > conftest.$ac_ext <<EOF
10072 #line 10073 "configure"
10073 #include "confdefs.h"
10074 /* Override any gcc2 internal prototype to avoid an error. */
10075 /* We use char because int might match the return type of a gcc2
10076 builtin and then its argument prototype would still apply. */
10077 char pthread_create();
10078
10079 int main() {
10080 pthread_create()
10081 ; return 0; }
10082 EOF
10083 if { (eval echo configure:10084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10084 rm -rf conftest*
10085 eval "ac_cv_lib_$ac_lib_var=yes"
10086 else
10087 echo "configure: failed program was:" >&5
10088 cat conftest.$ac_ext >&5
10089 rm -rf conftest*
10090 eval "ac_cv_lib_$ac_lib_var=no"
10091 fi
10092 rm -f conftest*
10093 LIBS="$ac_save_LIBS"
10094
10095 fi
10096 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10097 echo "$ac_t""yes" 1>&6
10098
10099 THREADS_OBJ="threadpsx.lo"
10100 THREADS_LINK="c_r"
10101
10102 else
10103 echo "$ac_t""no" 1>&6
10104
10105 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
10106 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
10107 echo "configure:10108: checking for sys/prctl.h" >&5
10108 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10109 echo $ac_n "(cached) $ac_c" 1>&6
10110 else
10111 cat > conftest.$ac_ext <<EOF
10112 #line 10113 "configure"
10113 #include "confdefs.h"
10114 #include <sys/prctl.h>
10115 EOF
10116 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10117 { (eval echo configure:10118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10118 ac_err=`grep -v '^ *+' conftest.out`
10119 if test -z "$ac_err"; then
10120 rm -rf conftest*
10121 eval "ac_cv_header_$ac_safe=yes"
10122 else
10123 echo "$ac_err" >&5
10124 echo "configure: failed program was:" >&5
10125 cat conftest.$ac_ext >&5
10126 rm -rf conftest*
10127 eval "ac_cv_header_$ac_safe=no"
10128 fi
10129 rm -f conftest*
10130 fi
10131 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10132 echo "$ac_t""yes" 1>&6
10133
10134 THREADS_OBJ="threadsgi.lo"
10135
10136 else
10137 echo "$ac_t""no" 1>&6
10138 fi
10139
10140
10141 fi
10142
10143
10144 fi
10145
10146
10147 if test -z "$THREADS_OBJ" ; then
10148 wxUSE_THREADS=no
10149 echo "configure: warning: No thread support on this system" 1>&2
10150 fi
10151 fi
10152
10153 if test "$wxUSE_THREADS" = "yes" ; then
10154
10155 for ac_hdr in sched.h
10156 do
10157 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10158 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10159 echo "configure:10160: checking for $ac_hdr" >&5
10160 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10161 echo $ac_n "(cached) $ac_c" 1>&6
10162 else
10163 cat > conftest.$ac_ext <<EOF
10164 #line 10165 "configure"
10165 #include "confdefs.h"
10166 #include <$ac_hdr>
10167 EOF
10168 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10169 { (eval echo configure:10170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10170 ac_err=`grep -v '^ *+' conftest.out`
10171 if test -z "$ac_err"; then
10172 rm -rf conftest*
10173 eval "ac_cv_header_$ac_safe=yes"
10174 else
10175 echo "$ac_err" >&5
10176 echo "configure: failed program was:" >&5
10177 cat conftest.$ac_ext >&5
10178 rm -rf conftest*
10179 eval "ac_cv_header_$ac_safe=no"
10180 fi
10181 rm -f conftest*
10182 fi
10183 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10184 echo "$ac_t""yes" 1>&6
10185 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10186 cat >> confdefs.h <<EOF
10187 #define $ac_tr_hdr 1
10188 EOF
10189
10190 else
10191 echo "$ac_t""no" 1>&6
10192 fi
10193 done
10194
10195
10196 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
10197 echo "configure:10198: checking for sched_yield in -l$THREADS_LINK" >&5
10198 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
10199 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10200 echo $ac_n "(cached) $ac_c" 1>&6
10201 else
10202 ac_save_LIBS="$LIBS"
10203 LIBS="-l$THREADS_LINK $LIBS"
10204 cat > conftest.$ac_ext <<EOF
10205 #line 10206 "configure"
10206 #include "confdefs.h"
10207 /* Override any gcc2 internal prototype to avoid an error. */
10208 /* We use char because int might match the return type of a gcc2
10209 builtin and then its argument prototype would still apply. */
10210 char sched_yield();
10211
10212 int main() {
10213 sched_yield()
10214 ; return 0; }
10215 EOF
10216 if { (eval echo configure:10217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10217 rm -rf conftest*
10218 eval "ac_cv_lib_$ac_lib_var=yes"
10219 else
10220 echo "configure: failed program was:" >&5
10221 cat conftest.$ac_ext >&5
10222 rm -rf conftest*
10223 eval "ac_cv_lib_$ac_lib_var=no"
10224 fi
10225 rm -f conftest*
10226 LIBS="$ac_save_LIBS"
10227
10228 fi
10229 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10230 echo "$ac_t""yes" 1>&6
10231 cat >> confdefs.h <<\EOF
10232 #define HAVE_SCHED_YIELD 1
10233 EOF
10234
10235 else
10236 echo "$ac_t""no" 1>&6
10237 echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
10238 echo "configure:10239: checking for sched_yield in -l"posix4"" >&5
10239 ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
10240 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10241 echo $ac_n "(cached) $ac_c" 1>&6
10242 else
10243 ac_save_LIBS="$LIBS"
10244 LIBS="-l"posix4" $LIBS"
10245 cat > conftest.$ac_ext <<EOF
10246 #line 10247 "configure"
10247 #include "confdefs.h"
10248 /* Override any gcc2 internal prototype to avoid an error. */
10249 /* We use char because int might match the return type of a gcc2
10250 builtin and then its argument prototype would still apply. */
10251 char sched_yield();
10252
10253 int main() {
10254 sched_yield()
10255 ; return 0; }
10256 EOF
10257 if { (eval echo configure:10258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10258 rm -rf conftest*
10259 eval "ac_cv_lib_$ac_lib_var=yes"
10260 else
10261 echo "configure: failed program was:" >&5
10262 cat conftest.$ac_ext >&5
10263 rm -rf conftest*
10264 eval "ac_cv_lib_$ac_lib_var=no"
10265 fi
10266 rm -f conftest*
10267 LIBS="$ac_save_LIBS"
10268
10269 fi
10270 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10271 echo "$ac_t""yes" 1>&6
10272 cat >> confdefs.h <<\EOF
10273 #define HAVE_SCHED_YIELD 1
10274 EOF
10275 POSIX4_LINK="-lposix4"
10276 else
10277 echo "$ac_t""no" 1>&6
10278 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
10279
10280 fi
10281
10282
10283 fi
10284
10285
10286 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
10287 echo "configure:10288: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
10288 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
10289 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10290 echo $ac_n "(cached) $ac_c" 1>&6
10291 else
10292 ac_save_LIBS="$LIBS"
10293 LIBS="-l$THREADS_LINK $LIBS"
10294 cat > conftest.$ac_ext <<EOF
10295 #line 10296 "configure"
10296 #include "confdefs.h"
10297 /* Override any gcc2 internal prototype to avoid an error. */
10298 /* We use char because int might match the return type of a gcc2
10299 builtin and then its argument prototype would still apply. */
10300 char pthread_attr_getschedpolicy();
10301
10302 int main() {
10303 pthread_attr_getschedpolicy()
10304 ; return 0; }
10305 EOF
10306 if { (eval echo configure:10307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10307 rm -rf conftest*
10308 eval "ac_cv_lib_$ac_lib_var=yes"
10309 else
10310 echo "configure: failed program was:" >&5
10311 cat conftest.$ac_ext >&5
10312 rm -rf conftest*
10313 eval "ac_cv_lib_$ac_lib_var=no"
10314 fi
10315 rm -f conftest*
10316 LIBS="$ac_save_LIBS"
10317
10318 fi
10319 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10320 echo "$ac_t""yes" 1>&6
10321 cat >> confdefs.h <<\EOF
10322 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
10323 EOF
10324
10325 else
10326 echo "$ac_t""no" 1>&6
10327 echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6
10328 echo "configure:10329: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5
10329 ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
10330 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10331 echo $ac_n "(cached) $ac_c" 1>&6
10332 else
10333 ac_save_LIBS="$LIBS"
10334 LIBS="-l"posix4" $LIBS"
10335 cat > conftest.$ac_ext <<EOF
10336 #line 10337 "configure"
10337 #include "confdefs.h"
10338 /* Override any gcc2 internal prototype to avoid an error. */
10339 /* We use char because int might match the return type of a gcc2
10340 builtin and then its argument prototype would still apply. */
10341 char pthread_attr_getschedpolicy();
10342
10343 int main() {
10344 pthread_attr_getschedpolicy()
10345 ; return 0; }
10346 EOF
10347 if { (eval echo configure:10348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10348 rm -rf conftest*
10349 eval "ac_cv_lib_$ac_lib_var=yes"
10350 else
10351 echo "configure: failed program was:" >&5
10352 cat conftest.$ac_ext >&5
10353 rm -rf conftest*
10354 eval "ac_cv_lib_$ac_lib_var=no"
10355 fi
10356 rm -f conftest*
10357 LIBS="$ac_save_LIBS"
10358
10359 fi
10360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10361 echo "$ac_t""yes" 1>&6
10362 cat >> confdefs.h <<\EOF
10363 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
10364 EOF
10365 POSIX4_LINK="-lposix4"
10366 else
10367 echo "$ac_t""no" 1>&6
10368 echo "configure: warning: Setting thread priority will not work" 1>&2
10369
10370 fi
10371
10372
10373 fi
10374
10375
10376 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
10377 echo "configure:10378: checking for pthread_cancel in -l$THREADS_LINK" >&5
10378 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
10379 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10380 echo $ac_n "(cached) $ac_c" 1>&6
10381 else
10382 ac_save_LIBS="$LIBS"
10383 LIBS="-l$THREADS_LINK $LIBS"
10384 cat > conftest.$ac_ext <<EOF
10385 #line 10386 "configure"
10386 #include "confdefs.h"
10387 /* Override any gcc2 internal prototype to avoid an error. */
10388 /* We use char because int might match the return type of a gcc2
10389 builtin and then its argument prototype would still apply. */
10390 char pthread_cancel();
10391
10392 int main() {
10393 pthread_cancel()
10394 ; return 0; }
10395 EOF
10396 if { (eval echo configure:10397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10397 rm -rf conftest*
10398 eval "ac_cv_lib_$ac_lib_var=yes"
10399 else
10400 echo "configure: failed program was:" >&5
10401 cat conftest.$ac_ext >&5
10402 rm -rf conftest*
10403 eval "ac_cv_lib_$ac_lib_var=no"
10404 fi
10405 rm -f conftest*
10406 LIBS="$ac_save_LIBS"
10407
10408 fi
10409 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10410 echo "$ac_t""yes" 1>&6
10411 cat >> confdefs.h <<\EOF
10412 #define HAVE_PTHREAD_CANCEL 1
10413 EOF
10414
10415 else
10416 echo "$ac_t""no" 1>&6
10417 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
10418 fi
10419
10420
10421 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
10422 echo "configure:10423: checking for pthread_cleanup_push/pop" >&5
10423 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
10424 echo $ac_n "(cached) $ac_c" 1>&6
10425 else
10426
10427 cat > conftest.$ac_ext <<EOF
10428 #line 10429 "configure"
10429 #include "confdefs.h"
10430 #include <pthread.h>
10431 int main() {
10432
10433 pthread_cleanup_push(NULL, NULL);
10434 pthread_cleanup_pop(0);
10435
10436 ; return 0; }
10437 EOF
10438 if { (eval echo configure:10439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10439 rm -rf conftest*
10440
10441 wx_cv_func_pthread_cleanup_push=yes
10442 cat >> confdefs.h <<\EOF
10443 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
10444 EOF
10445
10446
10447 else
10448 echo "configure: failed program was:" >&5
10449 cat conftest.$ac_ext >&5
10450 rm -rf conftest*
10451
10452 wx_cv_func_pthread_cleanup_push=no
10453
10454 fi
10455 rm -f conftest*
10456
10457 fi
10458
10459 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
10460
10461 THREADS_LINK="-l$THREADS_LINK"
10462 fi
10463
10464 fi
10465
10466 if test "$wxUSE_THREADS" = "yes"; then
10467 cat >> confdefs.h <<\EOF
10468 #define wxUSE_THREADS 1
10469 EOF
10470
10471
10472 CFLAGS="${CFLAGS} -D_REENTRANT"
10473 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
10474
10475 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
10476 fi
10477
10478 if test "$WXGTK12" = 1 ; then
10479 cat >> confdefs.h <<EOF
10480 #define __WXGTK12__ $WXGTK12
10481 EOF
10482
10483 fi
10484
10485 if test "$WXWINE" = 1 ; then
10486 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
10487 fi
10488
10489 if test "$wxUSE_CYGWIN" = 1 ; then
10490 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
10491 fi
10492
10493 WXDEBUG=
10494
10495 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
10496 WXDEBUG="-g"
10497 wxUSE_OPTIMISE=no
10498 fi
10499
10500 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
10501 wxUSE_DEBUG_INFO=yes
10502 WXDEBUG="-ggdb"
10503 fi
10504
10505 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
10506 cat >> confdefs.h <<\EOF
10507 #define WXDEBUG 1
10508 EOF
10509
10510 WXDEBUG_DEFINE="-D__WXDEBUG__"
10511 else
10512 if test "$wxUSE_GTK" = 1 ; then
10513 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
10514 fi
10515 fi
10516
10517 if test "$wxUSE_MEM_TRACING" = "yes" ; then
10518 cat >> confdefs.h <<\EOF
10519 #define wxUSE_MEMORY_TRACING 1
10520 EOF
10521
10522 cat >> confdefs.h <<\EOF
10523 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
10524 EOF
10525
10526 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
10527 fi
10528
10529 if test "$wxUSE_DMALLOC" = "yes" ; then
10530 DMALLOC_LINK="-ldmalloc"
10531 fi
10532
10533 PROFILE=
10534 if test "$wxUSE_PROFILE" = "yes" ; then
10535 PROFILE="-pg"
10536 fi
10537
10538 DEP_INFO_FLAGS=
10539 if test "$GCC" = yes ; then
10540 if test "$wxUSE_NO_RTTI" = "yes" ; then
10541 WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-rtti"
10542 fi
10543 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
10544 WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-exceptions"
10545 fi
10546 if test "$wxUSE_PERMISSIVE" = "yes" ; then
10547 CFLAGS="${CFLAGS} -fpermissive"
10548 CXXFLAGS="${CXXFLAGS} -fpermissive"
10549 fi
10550 if test "$wxUSE_NO_DEPS" = "no" ; then
10551 DEP_INFO_FLAGS="-MMD"
10552 fi
10553 fi
10554
10555
10556 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
10557 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
10558 if test "$wxUSE_OPTIMISE" = "no" ; then
10559 OPTIMISE=
10560 else
10561 if test "$GCC" = yes ; then
10562 OPTIMISE="-O2"
10563 case "${host}" in
10564 i586-*-*|i686-*-* )
10565 OPTIMISE="${OPTIMISE} "
10566 ;;
10567 esac
10568 else
10569 OPTIMISE="-O"
10570 fi
10571 fi
10572
10573
10574 ZLIB_INCLUDE=
10575 if test "$wxUSE_ZLIB" = "yes" ; then
10576 cat >> confdefs.h <<\EOF
10577 #define wxUSE_ZLIB 1
10578 EOF
10579
10580 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
10581 fi
10582
10583 PNG_INCLUDE=
10584 if test "$wxUSE_LIBPNG" = "yes" ; then
10585 cat >> confdefs.h <<\EOF
10586 #define wxUSE_LIBPNG 1
10587 EOF
10588
10589 PNG_INCLUDE="-I\${top_srcdir}/src/png"
10590 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
10591 fi
10592
10593 JPEG_INCLUDE=
10594 if test "$wxUSE_LIBJPEG" = "yes" ; then
10595 cat >> confdefs.h <<\EOF
10596 #define wxUSE_LIBJPEG 1
10597 EOF
10598
10599 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
10600 fi
10601
10602 if test "$wxUSE_OPENGL" = "yes"; then
10603 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
10604 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
10605 echo "configure:10606: checking for GL/gl.h" >&5
10606 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10607 echo $ac_n "(cached) $ac_c" 1>&6
10608 else
10609 cat > conftest.$ac_ext <<EOF
10610 #line 10611 "configure"
10611 #include "confdefs.h"
10612 #include <GL/gl.h>
10613 EOF
10614 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10615 { (eval echo configure:10616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10616 ac_err=`grep -v '^ *+' conftest.out`
10617 if test -z "$ac_err"; then
10618 rm -rf conftest*
10619 eval "ac_cv_header_$ac_safe=yes"
10620 else
10621 echo "$ac_err" >&5
10622 echo "configure: failed program was:" >&5
10623 cat conftest.$ac_ext >&5
10624 rm -rf conftest*
10625 eval "ac_cv_header_$ac_safe=no"
10626 fi
10627 rm -f conftest*
10628 fi
10629 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10630 echo "$ac_t""yes" 1>&6
10631
10632 echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6
10633 echo "configure:10634: checking for glInitNames in -lGL" >&5
10634 ac_lib_var=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'`
10635 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10636 echo $ac_n "(cached) $ac_c" 1>&6
10637 else
10638 ac_save_LIBS="$LIBS"
10639 LIBS="-lGL wxUSE_OPENGL=0 $LIBS"
10640 cat > conftest.$ac_ext <<EOF
10641 #line 10642 "configure"
10642 #include "confdefs.h"
10643 /* Override any gcc2 internal prototype to avoid an error. */
10644 /* We use char because int might match the return type of a gcc2
10645 builtin and then its argument prototype would still apply. */
10646 char glInitNames();
10647
10648 int main() {
10649 glInitNames()
10650 ; return 0; }
10651 EOF
10652 if { (eval echo configure:10653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10653 rm -rf conftest*
10654 eval "ac_cv_lib_$ac_lib_var=yes"
10655 else
10656 echo "configure: failed program was:" >&5
10657 cat conftest.$ac_ext >&5
10658 rm -rf conftest*
10659 eval "ac_cv_lib_$ac_lib_var=no"
10660 fi
10661 rm -f conftest*
10662 LIBS="$ac_save_LIBS"
10663
10664 fi
10665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10666 echo "$ac_t""yes" 1>&6
10667
10668 OPENGL_LINK="-lGL"
10669 cat >> confdefs.h <<\EOF
10670 #define wxUSE_OPENGL 1
10671 EOF
10672
10673 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
10674
10675 else
10676 echo "$ac_t""no" 1>&6
10677
10678 echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6
10679 echo "configure:10680: checking for glInitNames in -lMesaGL" >&5
10680 ac_lib_var=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'`
10681 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10682 echo $ac_n "(cached) $ac_c" 1>&6
10683 else
10684 ac_save_LIBS="$LIBS"
10685 LIBS="-lMesaGL $LIBS"
10686 cat > conftest.$ac_ext <<EOF
10687 #line 10688 "configure"
10688 #include "confdefs.h"
10689 /* Override any gcc2 internal prototype to avoid an error. */
10690 /* We use char because int might match the return type of a gcc2
10691 builtin and then its argument prototype would still apply. */
10692 char glInitNames();
10693
10694 int main() {
10695 glInitNames()
10696 ; return 0; }
10697 EOF
10698 if { (eval echo configure:10699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10699 rm -rf conftest*
10700 eval "ac_cv_lib_$ac_lib_var=yes"
10701 else
10702 echo "configure: failed program was:" >&5
10703 cat conftest.$ac_ext >&5
10704 rm -rf conftest*
10705 eval "ac_cv_lib_$ac_lib_var=no"
10706 fi
10707 rm -f conftest*
10708 LIBS="$ac_save_LIBS"
10709
10710 fi
10711 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10712 echo "$ac_t""yes" 1>&6
10713
10714 OPENGL_LINK="-lMesaGL"
10715 cat >> confdefs.h <<\EOF
10716 #define wxUSE_OPENGL 1
10717 EOF
10718
10719 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
10720
10721 else
10722 echo "$ac_t""no" 1>&6
10723 wxUSE_OPENGL=0
10724 fi
10725
10726
10727 fi
10728
10729
10730 else
10731 echo "$ac_t""no" 1>&6
10732 wxUSE_OPENGL=0
10733 fi
10734
10735 fi
10736
10737
10738 if test "$wxUSE_GUI" = "yes"; then
10739 cat >> confdefs.h <<\EOF
10740 #define wxUSE_GUI 1
10741 EOF
10742
10743
10744 else
10745 cat >> confdefs.h <<\EOF
10746 #define wxUSE_NOGUI 1
10747 EOF
10748
10749 fi
10750
10751
10752 if test "$wxUSE_UNIX" = "yes"; then
10753 cat >> confdefs.h <<\EOF
10754 #define wxUSE_UNIX 1
10755 EOF
10756
10757 fi
10758
10759
10760 if test "$wxUSE_APPLE_IEEE" = "yes"; then
10761 cat >> confdefs.h <<\EOF
10762 #define wxUSE_APPLE_IEEE 1
10763 EOF
10764
10765 fi
10766
10767 if test "$wxUSE_TIMEDATE" = "yes"; then
10768 cat >> confdefs.h <<\EOF
10769 #define wxUSE_TIMEDATE 1
10770 EOF
10771
10772 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
10773 fi
10774
10775 if test "$wxUSE_WAVE" = "yes"; then
10776 cat >> confdefs.h <<\EOF
10777 #define wxUSE_WAVE 1
10778 EOF
10779
10780 fi
10781
10782 if test "$wxUSE_FILE" = "yes"; then
10783 cat >> confdefs.h <<\EOF
10784 #define wxUSE_FILE 1
10785 EOF
10786
10787 fi
10788
10789 if test "$wxUSE_FS_INET" = "yes"; then
10790 cat >> confdefs.h <<\EOF
10791 #define wxUSE_FS_INET 1
10792 EOF
10793
10794 fi
10795
10796 if test "$wxUSE_FS_ZIP" = "yes"; then
10797 cat >> confdefs.h <<\EOF
10798 #define wxUSE_FS_ZIP 1
10799 EOF
10800
10801 fi
10802
10803 if test "$wxUSE_ZIPSTREAM" = "yes"; then
10804 cat >> confdefs.h <<\EOF
10805 #define wxUSE_ZIPSTREAM 1
10806 EOF
10807
10808 fi
10809
10810 if test "$wxUSE_BUSYINFO" = "yes"; then
10811 cat >> confdefs.h <<\EOF
10812 #define wxUSE_BUSYINFO 1
10813 EOF
10814
10815 fi
10816
10817 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
10818 cat >> confdefs.h <<\EOF
10819 #define wxUSE_STD_IOSTREAM 1
10820 EOF
10821
10822 fi
10823
10824 if test "$wxUSE_TEXTFILE" = "yes"; then
10825 if test "$wxUSE_FILE" != "yes"; then
10826 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
10827 else
10828 cat >> confdefs.h <<\EOF
10829 #define wxUSE_TEXTFILE 1
10830 EOF
10831
10832 fi
10833 fi
10834
10835 if test "$wxUSE_CONFIG" = "yes" ; then
10836 if test "$wxUSE_TEXTFILE" != "yes"; then
10837 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
10838 else
10839 cat >> confdefs.h <<\EOF
10840 #define wxUSE_CONFIG 1
10841 EOF
10842
10843 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
10844 fi
10845 fi
10846
10847 if test "$wxUSE_INTL" = "yes" ; then
10848 if test "$wxUSE_FILE" != "yes"; then
10849 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
10850 else
10851 cat >> confdefs.h <<\EOF
10852 #define wxUSE_INTL 1
10853 EOF
10854
10855 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
10856 fi
10857 fi
10858
10859 if test "$wxUSE_LOG" = "yes"; then
10860 cat >> confdefs.h <<\EOF
10861 #define wxUSE_LOG 1
10862 EOF
10863
10864 fi
10865
10866 if test "$wxUSE_LONGLONG" = "yes"; then
10867 cat >> confdefs.h <<\EOF
10868 #define wxUSE_LONGLONG 1
10869 EOF
10870
10871 fi
10872
10873 if test "$wxUSE_SOCKETS" = "yes" ; then
10874 if test "$wxUSE_THREADS" = "yes" ; then
10875 cat >> confdefs.h <<\EOF
10876 #define wxUSE_SOCKETS 1
10877 EOF
10878
10879 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wxsocket"
10880 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
10881 else
10882 echo "configure: warning: Socket classes require --with-threads and won't be compiled without it" 1>&2
10883 wxUSE_SOCKETS=0
10884 fi
10885 fi
10886
10887 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
10888 cat >> confdefs.h <<\EOF
10889 #define wxUSE_DIALUP_MANAGER 1
10890 EOF
10891
10892 fi
10893
10894 if test "$wxUSE_STREAMS" = "yes" ; then
10895 cat >> confdefs.h <<\EOF
10896 #define wxUSE_STREAMS 1
10897 EOF
10898
10899 fi
10900
10901 if test "$wxUSE_SERIAL" = "yes" ; then
10902 cat >> confdefs.h <<\EOF
10903 #define wxUSE_SERIAL 1
10904 EOF
10905
10906 fi
10907
10908
10909 if test "$wxUSE_SOCKETS" = "yes"; then
10910
10911 ac_ext=C
10912 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10913 ac_cpp='$CXXCPP $CPPFLAGS'
10914 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10915 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10916 cross_compiling=$ac_cv_prog_cxx_cross
10917
10918 echo $ac_n "checking the type of the third argument of getsockname""... $ac_c" 1>&6
10919 echo "configure:10920: checking the type of the third argument of getsockname" >&5
10920 cat > conftest.$ac_ext <<EOF
10921 #line 10922 "configure"
10922 #include "confdefs.h"
10923 #include <sys/socket.h>
10924 int main() {
10925 socklen_t len; getsockname(0, NULL, &len);
10926 ; return 0; }
10927 EOF
10928 if { (eval echo configure:10929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10929 rm -rf conftest*
10930 cat >> confdefs.h <<\EOF
10931 #define SOCKLEN_T socklen_t
10932 EOF
10933 echo "$ac_t""socklen_t" 1>&6
10934 else
10935 echo "configure: failed program was:" >&5
10936 cat conftest.$ac_ext >&5
10937 rm -rf conftest*
10938 cat > conftest.$ac_ext <<EOF
10939 #line 10940 "configure"
10940 #include "confdefs.h"
10941 #include <sys/socket.h>
10942 int main() {
10943 size_t len; getsockname(0, NULL, &len);
10944 ; return 0; }
10945 EOF
10946 if { (eval echo configure:10947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10947 rm -rf conftest*
10948 cat >> confdefs.h <<\EOF
10949 #define SOCKLEN_T size_t
10950 EOF
10951 echo "$ac_t""size_t" 1>&6
10952 else
10953 echo "configure: failed program was:" >&5
10954 cat conftest.$ac_ext >&5
10955 rm -rf conftest*
10956 cat > conftest.$ac_ext <<EOF
10957 #line 10958 "configure"
10958 #include "confdefs.h"
10959 #include <sys/socket.h>
10960 int main() {
10961 int len; getsockname(0, NULL, &len);
10962 ; return 0; }
10963 EOF
10964 if { (eval echo configure:10965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10965 rm -rf conftest*
10966 cat >> confdefs.h <<\EOF
10967 #define SOCKLEN_T int
10968 EOF
10969 echo "$ac_t""int" 1>&6
10970 else
10971 echo "configure: failed program was:" >&5
10972 cat conftest.$ac_ext >&5
10973 rm -rf conftest*
10974 echo "$ac_t""unknown" 1>&6
10975
10976 fi
10977 rm -f conftest*
10978
10979 fi
10980 rm -f conftest*
10981
10982 fi
10983 rm -f conftest*
10984 ac_ext=c
10985 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10986 ac_cpp='$CPP $CPPFLAGS'
10987 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10988 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10989 cross_compiling=$ac_cv_prog_cc_cross
10990
10991 fi
10992
10993
10994 if test "$wxUSE_JOYSTICK" = 1; then
10995 for ac_hdr in linux/joystick.h
10996 do
10997 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10998 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10999 echo "configure:11000: checking for $ac_hdr" >&5
11000 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11001 echo $ac_n "(cached) $ac_c" 1>&6
11002 else
11003 cat > conftest.$ac_ext <<EOF
11004 #line 11005 "configure"
11005 #include "confdefs.h"
11006 #include <$ac_hdr>
11007 EOF
11008 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11009 { (eval echo configure:11010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11010 ac_err=`grep -v '^ *+' conftest.out`
11011 if test -z "$ac_err"; then
11012 rm -rf conftest*
11013 eval "ac_cv_header_$ac_safe=yes"
11014 else
11015 echo "$ac_err" >&5
11016 echo "configure: failed program was:" >&5
11017 cat conftest.$ac_ext >&5
11018 rm -rf conftest*
11019 eval "ac_cv_header_$ac_safe=no"
11020 fi
11021 rm -f conftest*
11022 fi
11023 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11024 echo "$ac_t""yes" 1>&6
11025 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11026 cat >> confdefs.h <<EOF
11027 #define $ac_tr_hdr 1
11028 EOF
11029
11030 else
11031 echo "$ac_t""no" 1>&6
11032 fi
11033 done
11034
11035 if test "$ac_cv_header_linux_joystick_h" = "yes"; then
11036 cat >> confdefs.h <<\EOF
11037 #define wxUSE_JOYSTICK 1
11038 EOF
11039
11040 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
11041 fi
11042 fi
11043
11044
11045 HAVE_DL_FUNCS=0
11046 HAVE_SHL_FUNCS=0
11047 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
11048 for ac_func in dlopen
11049 do
11050 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11051 echo "configure:11052: checking for $ac_func" >&5
11052 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11053 echo $ac_n "(cached) $ac_c" 1>&6
11054 else
11055 cat > conftest.$ac_ext <<EOF
11056 #line 11057 "configure"
11057 #include "confdefs.h"
11058 /* System header to define __stub macros and hopefully few prototypes,
11059 which can conflict with char $ac_func(); below. */
11060 #include <assert.h>
11061 /* Override any gcc2 internal prototype to avoid an error. */
11062 /* We use char because int might match the return type of a gcc2
11063 builtin and then its argument prototype would still apply. */
11064 char $ac_func();
11065
11066 int main() {
11067
11068 /* The GNU C library defines this for functions which it implements
11069 to always fail with ENOSYS. Some functions are actually named
11070 something starting with __ and the normal name is an alias. */
11071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11072 choke me
11073 #else
11074 $ac_func();
11075 #endif
11076
11077 ; return 0; }
11078 EOF
11079 if { (eval echo configure:11080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11080 rm -rf conftest*
11081 eval "ac_cv_func_$ac_func=yes"
11082 else
11083 echo "configure: failed program was:" >&5
11084 cat conftest.$ac_ext >&5
11085 rm -rf conftest*
11086 eval "ac_cv_func_$ac_func=no"
11087 fi
11088 rm -f conftest*
11089 fi
11090
11091 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11092 echo "$ac_t""yes" 1>&6
11093 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11094 cat >> confdefs.h <<EOF
11095 #define $ac_tr_func 1
11096 EOF
11097 cat >> confdefs.h <<\EOF
11098 #define HAVE_DLOPEN 1
11099 EOF
11100 HAVE_DL_FUNCS=1
11101 else
11102 echo "$ac_t""no" 1>&6
11103 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
11104 echo "configure:11105: checking for dlopen in -ldl" >&5
11105 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
11106 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11107 echo $ac_n "(cached) $ac_c" 1>&6
11108 else
11109 ac_save_LIBS="$LIBS"
11110 LIBS="-ldl $LIBS"
11111 cat > conftest.$ac_ext <<EOF
11112 #line 11113 "configure"
11113 #include "confdefs.h"
11114 /* Override any gcc2 internal prototype to avoid an error. */
11115 /* We use char because int might match the return type of a gcc2
11116 builtin and then its argument prototype would still apply. */
11117 char dlopen();
11118
11119 int main() {
11120 dlopen()
11121 ; return 0; }
11122 EOF
11123 if { (eval echo configure:11124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11124 rm -rf conftest*
11125 eval "ac_cv_lib_$ac_lib_var=yes"
11126 else
11127 echo "configure: failed program was:" >&5
11128 cat conftest.$ac_ext >&5
11129 rm -rf conftest*
11130 eval "ac_cv_lib_$ac_lib_var=no"
11131 fi
11132 rm -f conftest*
11133 LIBS="$ac_save_LIBS"
11134
11135 fi
11136 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11137 echo "$ac_t""yes" 1>&6
11138 cat >> confdefs.h <<\EOF
11139 #define HAVE_DLOPEN 1
11140 EOF
11141 HAVE_DL_FUNCS=1
11142 else
11143 echo "$ac_t""no" 1>&6
11144 fi
11145
11146 fi
11147 done
11148
11149 for ac_func in shl_load
11150 do
11151 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11152 echo "configure:11153: checking for $ac_func" >&5
11153 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11154 echo $ac_n "(cached) $ac_c" 1>&6
11155 else
11156 cat > conftest.$ac_ext <<EOF
11157 #line 11158 "configure"
11158 #include "confdefs.h"
11159 /* System header to define __stub macros and hopefully few prototypes,
11160 which can conflict with char $ac_func(); below. */
11161 #include <assert.h>
11162 /* Override any gcc2 internal prototype to avoid an error. */
11163 /* We use char because int might match the return type of a gcc2
11164 builtin and then its argument prototype would still apply. */
11165 char $ac_func();
11166
11167 int main() {
11168
11169 /* The GNU C library defines this for functions which it implements
11170 to always fail with ENOSYS. Some functions are actually named
11171 something starting with __ and the normal name is an alias. */
11172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11173 choke me
11174 #else
11175 $ac_func();
11176 #endif
11177
11178 ; return 0; }
11179 EOF
11180 if { (eval echo configure:11181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11181 rm -rf conftest*
11182 eval "ac_cv_func_$ac_func=yes"
11183 else
11184 echo "configure: failed program was:" >&5
11185 cat conftest.$ac_ext >&5
11186 rm -rf conftest*
11187 eval "ac_cv_func_$ac_func=no"
11188 fi
11189 rm -f conftest*
11190 fi
11191
11192 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11193 echo "$ac_t""yes" 1>&6
11194 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11195 cat >> confdefs.h <<EOF
11196 #define $ac_tr_func 1
11197 EOF
11198 cat >> confdefs.h <<\EOF
11199 #define HAVE_SHL_LOAD 1
11200 EOF
11201 HAVE_DL_FUNCS=1 HAVE_SHL_FUNCS=1
11202 else
11203 echo "$ac_t""no" 1>&6
11204 fi
11205 done
11206
11207
11208 if test "$HAVE_DL_FUNCS" = 0; then
11209 if test "$USE_UNIX" = 1; then
11210 echo "configure: warning: "--with-dynlib and --with-odbc will be disabled due to missing shared library support"" 1>&2
11211 wxUSE_ODBC=no
11212 wxUSE_DYNLIB_CLASS=no
11213 else
11214 echo "configure: warning: "Cannot check dynlib requirements on non-Unix platforms. dynlib remains enabled."" 1>&2
11215 fi
11216 fi
11217 fi
11218
11219 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
11220 cat >> confdefs.h <<\EOF
11221 #define wxUSE_DYNLIB_CLASS 1
11222 EOF
11223
11224 fi
11225
11226
11227 if test "$wxUSE_UNICODE" = "yes" ; then
11228 cat >> confdefs.h <<\EOF
11229 #define wxUSE_UNICODE 1
11230 EOF
11231
11232 fi
11233
11234 if test "$wxUSE_WCSRTOMBS" = "yes" ; then
11235 cat >> confdefs.h <<\EOF
11236 #define wxUSE_WCSRTOMBS 1
11237 EOF
11238
11239 fi
11240
11241 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
11242 cat >> confdefs.h <<\EOF
11243 #define wxUSE_EXPERIMENTAL_PRINTF 1
11244 EOF
11245
11246 fi
11247
11248
11249 IODBC_C_SRC=""
11250 if test "$wxUSE_ODBC" = "yes" ; then
11251 cat >> confdefs.h <<\EOF
11252 #define wxUSE_ODBC 1
11253 EOF
11254
11255 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
11256 fi
11257
11258
11259 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
11260 cat >> confdefs.h <<\EOF
11261 #define wxUSE_POSTSCRIPT 1
11262 EOF
11263
11264 fi
11265
11266 cat >> confdefs.h <<\EOF
11267 #define wxUSE_AFM_FOR_POSTSCRIPT 1
11268 EOF
11269
11270
11271 cat >> confdefs.h <<\EOF
11272 #define wxUSE_NORMALIZED_PS_FONTS 1
11273 EOF
11274
11275
11276
11277 if test "$wxUSE_CONSTRAINTS" = "yes"; then
11278 cat >> confdefs.h <<\EOF
11279 #define wxUSE_CONSTRAINTS 1
11280 EOF
11281
11282 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
11283 fi
11284
11285 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
11286 cat >> confdefs.h <<\EOF
11287 #define wxUSE_MDI_ARCHITECTURE 1
11288 EOF
11289
11290 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
11291 fi
11292
11293 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
11294 cat >> confdefs.h <<\EOF
11295 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
11296 EOF
11297
11298 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
11299 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
11300 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
11301 fi
11302 fi
11303
11304 if test "$wxUSE_HELP" = "yes"; then
11305 cat >> confdefs.h <<\EOF
11306 #define wxUSE_HELP 1
11307 EOF
11308
11309 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
11310 fi
11311
11312 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
11313 if test "$wxUSE_CONSTRAINTS" != "yes"; then
11314 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
11315 else
11316 cat >> confdefs.h <<\EOF
11317 #define wxUSE_PRINTING_ARCHITECTURE 1
11318 EOF
11319
11320 fi
11321 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
11322 fi
11323
11324 if test "$wxUSE_PROLOGIO" = "yes" ; then
11325 cat >> confdefs.h <<\EOF
11326 #define wxUSE_PROLOGIO 1
11327 EOF
11328
11329 fi
11330
11331 if test "$wxUSE_RESOURCES" = "yes" ; then
11332 if test "$wxUSE_PROLOGIO" = "yes" ; then
11333 cat >> confdefs.h <<\EOF
11334 #define wxUSE_RESOURCES 1
11335 EOF
11336
11337 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
11338 else
11339 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
11340 fi
11341 fi
11342
11343 if test "$wxUSE_X_RESOURCES" = "yes"; then
11344 cat >> confdefs.h <<\EOF
11345 #define wxUSE_X_RESOURCES 1
11346 EOF
11347
11348 fi
11349
11350
11351 if test "$wxUSE_IPC" = "yes"; then
11352 cat >> confdefs.h <<\EOF
11353 #define wxUSE_IPC 1
11354 EOF
11355
11356 fi
11357
11358 if test "$wxUSE_CLIPBOARD" = "yes"; then
11359 cat >> confdefs.h <<\EOF
11360 #define wxUSE_CLIPBOARD 1
11361 EOF
11362
11363 fi
11364
11365 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
11366 if test "$wxUSE_GTK" = 1; then
11367 if test "$WXGTK12" != 1; then
11368 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
11369 wxUSE_DRAG_AND_DROP=no
11370 fi
11371 fi
11372
11373 if test "$wxUSE_MOTIF" = 1; then
11374 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
11375 wxUSE_DRAG_AND_DROP=no
11376 fi
11377
11378 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
11379 cat >> confdefs.h <<\EOF
11380 #define wxUSE_DRAG_AND_DROP 1
11381 EOF
11382
11383 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
11384 fi
11385 fi
11386
11387 if test "$wxUSE_SPLINES" = "yes" ; then
11388 cat >> confdefs.h <<\EOF
11389 #define wxUSE_SPLINES 1
11390 EOF
11391
11392 fi
11393
11394
11395 if test "$wxUSE_ACCEL" = "yes"; then
11396 cat >> confdefs.h <<\EOF
11397 #define wxUSE_ACCEL 1
11398 EOF
11399
11400 fi
11401
11402 if test "$wxUSE_CARET" = "yes"; then
11403 cat >> confdefs.h <<\EOF
11404 #define wxUSE_CARET 1
11405 EOF
11406
11407 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
11408 fi
11409
11410 if test "$wxUSE_COMBOBOX" = "yes"; then
11411 cat >> confdefs.h <<\EOF
11412 #define wxUSE_COMBOBOX 1
11413 EOF
11414
11415 fi
11416
11417 if test "$wxUSE_CHOICE" = "yes"; then
11418 cat >> confdefs.h <<\EOF
11419 #define wxUSE_CHOICE 1
11420 EOF
11421
11422 fi
11423
11424 if test "$wxUSE_BMPBUTTON" = "yes"; then
11425 cat >> confdefs.h <<\EOF
11426 #define wxUSE_BMPBUTTON 1
11427 EOF
11428
11429 fi
11430
11431 if test "$wxUSE_CHECKBOX" = "yes"; then
11432 cat >> confdefs.h <<\EOF
11433 #define wxUSE_CHECKBOX 1
11434 EOF
11435
11436 fi
11437
11438 if test "$wxUSE_CHECKLST" = "yes"; then
11439 cat >> confdefs.h <<\EOF
11440 #define wxUSE_CHECKLISTBOX 1
11441 EOF
11442
11443 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
11444 fi
11445
11446 if test "$wxUSE_GAUGE" = "yes"; then
11447 cat >> confdefs.h <<\EOF
11448 #define wxUSE_GAUGE 1
11449 EOF
11450
11451 fi
11452
11453 if test "$wxUSE_GRID" = "yes"; then
11454 cat >> confdefs.h <<\EOF
11455 #define wxUSE_GRID 1
11456 EOF
11457
11458 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
11459 fi
11460
11461 if test "$wxUSE_IMAGLIST" = "yes"; then
11462 cat >> confdefs.h <<\EOF
11463 #define wxUSE_IMAGLIST 1
11464 EOF
11465
11466 fi
11467
11468 if test "$wxUSE_LISTBOX" = "yes"; then
11469 cat >> confdefs.h <<\EOF
11470 #define wxUSE_LISTBOX 1
11471 EOF
11472
11473 fi
11474
11475 if test "$wxUSE_LISTCTRL" = "yes"; then
11476 if test "$wxUSE_IMAGLIST" = "yes"; then
11477 cat >> confdefs.h <<\EOF
11478 #define wxUSE_LISTCTRL 1
11479 EOF
11480
11481 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
11482 else
11483 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
11484 fi
11485 fi
11486
11487 if test "$wxUSE_NOTEBOOK" = "yes"; then
11488 cat >> confdefs.h <<\EOF
11489 #define wxUSE_NOTEBOOK 1
11490 EOF
11491
11492 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
11493 fi
11494
11495 if test "$wxUSE_RADIOBOX" = "yes"; then
11496 cat >> confdefs.h <<\EOF
11497 #define wxUSE_RADIOBOX 1
11498 EOF
11499
11500 fi
11501
11502 if test "$wxUSE_RADIOBTN" = "yes"; then
11503 cat >> confdefs.h <<\EOF
11504 #define wxUSE_RADIOBTN 1
11505 EOF
11506
11507 fi
11508
11509 if test "$wxUSE_SASH" = "yes"; then
11510 cat >> confdefs.h <<\EOF
11511 #define wxUSE_SASH 1
11512 EOF
11513
11514 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
11515 fi
11516
11517 if test "$wxUSE_SCROLLBAR" = "yes"; then
11518 cat >> confdefs.h <<\EOF
11519 #define wxUSE_SCROLLBAR 1
11520 EOF
11521
11522 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll"
11523 fi
11524
11525 if test "$wxUSE_SLIDER" = "yes"; then
11526 cat >> confdefs.h <<\EOF
11527 #define wxUSE_SLIDER 1
11528 EOF
11529
11530 fi
11531
11532 if test "$wxUSE_SPINBTN" = "yes"; then
11533 cat >> confdefs.h <<\EOF
11534 #define wxUSE_SPINBTN 1
11535 EOF
11536
11537 fi
11538
11539 if test "$wxUSE_SPLITTER" = "yes"; then
11540 cat >> confdefs.h <<\EOF
11541 #define wxUSE_SPLITTER 1
11542 EOF
11543
11544 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
11545 fi
11546
11547 if test "$wxUSE_STATBMP" = "yes"; then
11548 cat >> confdefs.h <<\EOF
11549 #define wxUSE_STATBMP 1
11550 EOF
11551
11552 fi
11553
11554 if test "$wxUSE_STATBOX" = "yes"; then
11555 cat >> confdefs.h <<\EOF
11556 #define wxUSE_STATBOX 1
11557 EOF
11558
11559 fi
11560
11561 if test "$wxUSE_STATLINE" = "yes"; then
11562 if test "$wxUSE_WINE" = 1 ; then
11563 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
11564 else
11565 cat >> confdefs.h <<\EOF
11566 #define wxUSE_STATLINE 1
11567 EOF
11568
11569 fi
11570 fi
11571
11572 if test "$wxUSE_STATUSBAR" = "yes"; then
11573 cat >> confdefs.h <<\EOF
11574 #define wxUSE_STATUSBAR 1
11575 EOF
11576
11577 fi
11578
11579 if test "$wxUSE_TABDIALOG" = "yes"; then
11580 cat >> confdefs.h <<\EOF
11581 #define wxUSE_TAB_DIALOG 1
11582 EOF
11583
11584 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
11585 fi
11586
11587 if test "$wxUSE_TOOLBAR" = "yes"; then
11588 cat >> confdefs.h <<\EOF
11589 #define wxUSE_TOOLBAR 1
11590 EOF
11591
11592 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
11593 fi
11594
11595 if test "$wxUSE_TOOLTIPS" = "yes"; then
11596 if test "$wxUSE_MOTIF" = 1; then
11597 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
11598 else
11599 if test "$wxUSE_WINE" = 1; then
11600 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
11601 else
11602 cat >> confdefs.h <<\EOF
11603 #define wxUSE_TOOLTIPS 1
11604 EOF
11605
11606 fi
11607 fi
11608 fi
11609
11610 if test "$wxUSE_TREECTRL" = "yes"; then
11611 if test "$wxUSE_IMAGLIST" = "yes"; then
11612 cat >> confdefs.h <<\EOF
11613 #define wxUSE_TREECTRL 1
11614 EOF
11615
11616 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
11617 else
11618 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
11619 fi
11620 fi
11621
11622
11623
11624 if test "$wxUSE_METAFILE" = "yes"; then
11625 cat >> confdefs.h <<\EOF
11626 #define wxUSE_METAFILE 1
11627 EOF
11628
11629 fi
11630
11631 if test "$wxUSE_DIRDLG" = "yes"; then
11632 if test "$wxUSE_CONSTRAINTS" != "yes"; then
11633 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
11634 else
11635 if test "$wxUSE_TREECTRL" != "yes"; then
11636 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
11637 else
11638 cat >> confdefs.h <<\EOF
11639 #define wxUSE_DIRDLG 1
11640 EOF
11641
11642 fi
11643 fi
11644 fi
11645
11646 if test "$wxUSE_TEXTDLG" = "yes"; then
11647 cat >> confdefs.h <<\EOF
11648 #define wxUSE_TEXTDLG 1
11649 EOF
11650
11651 fi
11652
11653 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
11654 if test "$wxUSE_CONSTRAINTS" != "yes"; then
11655 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
11656 else
11657 cat >> confdefs.h <<\EOF
11658 #define wxUSE_STARTUP_TIPS 1
11659 EOF
11660
11661 fi
11662 fi
11663
11664 if test "$wxUSE_PROGRESSDLG" = "yes"; then
11665 if test "$wxUSE_CONSTRAINTS" != "yes"; then
11666 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
11667 else
11668 cat >> confdefs.h <<\EOF
11669 #define wxUSE_PROGRESSDLG 1
11670 EOF
11671
11672 fi
11673 fi
11674
11675 if test "$wxUSE_MINIFRAME" = "yes"; then
11676 cat >> confdefs.h <<\EOF
11677 #define wxUSE_MINIFRAME 1
11678 EOF
11679
11680 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
11681 fi
11682
11683 if test "$wxUSE_HTML" = "yes"; then
11684 cat >> confdefs.h <<\EOF
11685 #define wxUSE_HTML 1
11686 EOF
11687
11688 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
11689 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
11690 fi
11691
11692 if test "$wxUSE_VALIDATORS" = "yes"; then
11693 cat >> confdefs.h <<\EOF
11694 #define wxUSE_VALIDATORS 1
11695 EOF
11696
11697 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
11698 fi
11699
11700 if test "$wxUSE_GIF" = "yes" ; then
11701 cat >> confdefs.h <<\EOF
11702 #define wxUSE_GIF 1
11703 EOF
11704
11705 fi
11706
11707 if test "$wxUSE_PCX" = "yes" ; then
11708 cat >> confdefs.h <<\EOF
11709 #define wxUSE_PCX 1
11710 EOF
11711
11712 fi
11713
11714 if test "$wxUSE_PNM" = "yes" ; then
11715 cat >> confdefs.h <<\EOF
11716 #define wxUSE_PNM 1
11717 EOF
11718
11719 fi
11720
11721
11722 GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK"
11723
11724 EXTRA_LIBS="$LIBS $POSIX4_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $GUILIBS"
11725
11726 LIBS="\${top_builddir}/src/${TOOLKIT_DIR}/${WX_LIBRARY_NAME} $EXTRA_LIBS"
11727
11728 LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
11729
11730 INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TOOLKIT_INCLUDE"
11731
11732 if test "$GXX" = yes ; then
11733 CXXWARNINGS="-Wall"
11734 fi
11735 EXTRA_CFLAGS="$WXDEBUG $PROFILE $OPTIMISE $INCLUDES"
11736
11737 CPPFLAGS="-I\${top_srcdir}/include $CPPFLAGS"
11738 CFLAGS="$CFLAGS $EXTRA_CFLAGS"
11739 CXXFLAGS="$CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS"
11740
11741 if test "$wxUSE_GUI" = "yes"; then
11742
11743 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS bombs controls dialogs drawing dynamic \
11744 forty fractal image wxpoem"
11745 fi
11746
11747 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '`"
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
11798 echo "configure:11799: checking whether ${MAKE-make} sets \${MAKE}" >&5
11799 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
11800 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
11801 echo $ac_n "(cached) $ac_c" 1>&6
11802 else
11803 cat > conftestmake <<\EOF
11804 all:
11805 @echo 'ac_maketemp="${MAKE}"'
11806 EOF
11807 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11808 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
11809 if test -n "$ac_maketemp"; then
11810 eval ac_cv_prog_make_${ac_make}_set=yes
11811 else
11812 eval ac_cv_prog_make_${ac_make}_set=no
11813 fi
11814 rm -f conftestmake
11815 fi
11816 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
11817 echo "$ac_t""yes" 1>&6
11818 SET_MAKE=
11819 else
11820 echo "$ac_t""no" 1>&6
11821 SET_MAKE="MAKE=${MAKE-make}"
11822 fi
11823
11824
11825
11826
11827 if test "${TOOLKIT_DIR}" = "msw" ; then
11828 GL_TOOLKIT_DIR="win"
11829 else
11830 GL_TOOLKIT_DIR="${TOOLKIT_DIR}"
11831 fi
11832
11833
11834 trap '' 1 2 15
11835 cat > confcache <<\EOF
11836 # This file is a shell script that caches the results of configure
11837 # tests run on this system so they can be shared between configure
11838 # scripts and configure runs. It is not useful on other systems.
11839 # If it contains results you don't want to keep, you may remove or edit it.
11840 #
11841 # By default, configure uses ./config.cache as the cache file,
11842 # creating it if it does not exist already. You can give configure
11843 # the --cache-file=FILE option to use a different cache file; that is
11844 # what configure does when it calls configure scripts in
11845 # subdirectories, so they share the cache.
11846 # Giving --cache-file=/dev/null disables caching, for debugging configure.
11847 # config.status only pays attention to the cache file if you give it the
11848 # --recheck option to rerun configure.
11849 #
11850 EOF
11851 # The following way of writing the cache mishandles newlines in values,
11852 # but we know of no workaround that is simple, portable, and efficient.
11853 # So, don't put newlines in cache variables' values.
11854 # Ultrix sh set writes to stderr and can't be redirected directly,
11855 # and sets the high bit in the cache file unless we assign to the vars.
11856 (set) 2>&1 |
11857 case `(ac_space=' '; set) 2>&1` in
11858 *ac_space=\ *)
11859 # `set' does not quote correctly, so add quotes (double-quote substitution
11860 # turns \\\\ into \\, and sed turns \\ into \).
11861 sed -n \
11862 -e "s/'/'\\\\''/g" \
11863 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11864 ;;
11865 *)
11866 # `set' quotes correctly as required by POSIX, so do not add quotes.
11867 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11868 ;;
11869 esac >> confcache
11870 if cmp -s $cache_file confcache; then
11871 :
11872 else
11873 if test -w $cache_file; then
11874 echo "updating cache $cache_file"
11875 cat confcache > $cache_file
11876 else
11877 echo "not updating unwritable cache $cache_file"
11878 fi
11879 fi
11880 rm -f confcache
11881
11882 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11883
11884 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11885 # Let make expand exec_prefix.
11886 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11887
11888 # Any assignment to VPATH causes Sun make to only execute
11889 # the first set of double-colon rules, so remove it if not needed.
11890 # If there is a colon in the path, we need to keep it.
11891 if test "x$srcdir" = x.; then
11892 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
11893 fi
11894
11895 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11896
11897 DEFS=-DHAVE_CONFIG_H
11898
11899 # Without the "./", some shells look in PATH for config.status.
11900 : ${CONFIG_STATUS=./config.status}
11901
11902 echo creating $CONFIG_STATUS
11903 rm -f $CONFIG_STATUS
11904 cat > $CONFIG_STATUS <<EOF
11905 #! /bin/sh
11906 # Generated automatically by configure.
11907 # Run this file to recreate the current configuration.
11908 # This directory was configured as follows,
11909 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11910 #
11911 # $0 $ac_configure_args
11912 #
11913 # Compiler output produced by configure, useful for debugging
11914 # configure, is in ./config.log if it exists.
11915
11916 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11917 for ac_option
11918 do
11919 case "\$ac_option" in
11920 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11921 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11922 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11923 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11924 echo "$CONFIG_STATUS generated by autoconf version 2.12"
11925 exit 0 ;;
11926 -help | --help | --hel | --he | --h)
11927 echo "\$ac_cs_usage"; exit 0 ;;
11928 *) echo "\$ac_cs_usage"; exit 1 ;;
11929 esac
11930 done
11931
11932 ac_given_srcdir=$srcdir
11933 ac_given_INSTALL="$INSTALL"
11934
11935 trap 'rm -fr `echo "
11936 wx-config
11937 src/make.env
11938 src/makeprog.env
11939 src/makelib.env
11940 Makefile
11941 samples/Makefile
11942 samples/bombs/Makefile
11943 samples/caret/Makefile
11944 samples/checklst/Makefile
11945 samples/config/Makefile
11946 samples/controls/Makefile
11947 samples/dialogs/Makefile
11948 samples/docview/Makefile
11949 samples/docvwmdi/Makefile
11950 samples/dnd/Makefile
11951 samples/drawing/Makefile
11952 samples/dynamic/Makefile
11953 samples/image/Makefile
11954 samples/internat/Makefile
11955 samples/layout/Makefile
11956 samples/listctrl/Makefile
11957 samples/mdi/Makefile
11958 samples/minifram/Makefile
11959 samples/minimal/Makefile
11960 samples/notebook/Makefile
11961 samples/printing/Makefile
11962 samples/proplist/Makefile
11963 samples/sashtest/Makefile
11964 samples/scroll/Makefile
11965 samples/splitter/Makefile
11966 samples/text/Makefile
11967 samples/thread/Makefile
11968 samples/toolbar/Makefile
11969 samples/treectrl/Makefile
11970 samples/typetest/Makefile
11971 samples/validate/Makefile
11972 samples/wxpoem/Makefile
11973 samples/wxsocket/Makefile
11974 samples/wizard/Makefile
11975 samples/html/Makefile
11976 samples/html/about/Makefile
11977 samples/html/help/Makefile
11978 samples/html/printing/Makefile
11979 samples/html/test/Makefile
11980 samples/html/zip/Makefile
11981 samples/html/virtual/Makefile
11982 samples/html/widget/Makefile
11983 utils/Makefile
11984 utils/wxMMedia2/Makefile
11985 utils/wxMMedia2/lib/Makefile
11986 utils/wxMMedia2/sample/Makefile
11987 utils/glcanvas/Makefile
11988 utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile
11989 utils/ogl/Makefile
11990 utils/ogl/src/Makefile
11991 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11992 EOF
11993 cat >> $CONFIG_STATUS <<EOF
11994
11995 # Protect against being on the right side of a sed subst in config.status.
11996 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11997 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11998 $ac_vpsub
11999 $extrasub
12000 s%@CFLAGS@%$CFLAGS%g
12001 s%@CPPFLAGS@%$CPPFLAGS%g
12002 s%@CXXFLAGS@%$CXXFLAGS%g
12003 s%@DEFS@%$DEFS%g
12004 s%@LDFLAGS@%$LDFLAGS%g
12005 s%@LIBS@%$LIBS%g
12006 s%@exec_prefix@%$exec_prefix%g
12007 s%@prefix@%$prefix%g
12008 s%@program_transform_name@%$program_transform_name%g
12009 s%@bindir@%$bindir%g
12010 s%@sbindir@%$sbindir%g
12011 s%@libexecdir@%$libexecdir%g
12012 s%@datadir@%$datadir%g
12013 s%@sysconfdir@%$sysconfdir%g
12014 s%@sharedstatedir@%$sharedstatedir%g
12015 s%@localstatedir@%$localstatedir%g
12016 s%@libdir@%$libdir%g
12017 s%@includedir@%$includedir%g
12018 s%@oldincludedir@%$oldincludedir%g
12019 s%@infodir@%$infodir%g
12020 s%@mandir@%$mandir%g
12021 s%@host@%$host%g
12022 s%@host_alias@%$host_alias%g
12023 s%@host_cpu@%$host_cpu%g
12024 s%@host_vendor@%$host_vendor%g
12025 s%@host_os@%$host_os%g
12026 s%@target@%$target%g
12027 s%@target_alias@%$target_alias%g
12028 s%@target_cpu@%$target_cpu%g
12029 s%@target_vendor@%$target_vendor%g
12030 s%@target_os@%$target_os%g
12031 s%@build@%$build%g
12032 s%@build_alias@%$build_alias%g
12033 s%@build_cpu@%$build_cpu%g
12034 s%@build_vendor@%$build_vendor%g
12035 s%@build_os@%$build_os%g
12036 s%@CC@%$CC%g
12037 s%@CPP@%$CPP%g
12038 s%@CXX@%$CXX%g
12039 s%@CXXCPP@%$CXXCPP%g
12040 s%@RANLIB@%$RANLIB%g
12041 s%@AR@%$AR%g
12042 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12043 s%@INSTALL_DATA@%$INSTALL_DATA%g
12044 s%@STRIP@%$STRIP%g
12045 s%@YACC@%$YACC%g
12046 s%@LEX@%$LEX%g
12047 s%@LEXLIB@%$LEXLIB%g
12048 s%@LN_S@%$LN_S%g
12049 s%@GTK_CONFIG@%$GTK_CONFIG%g
12050 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
12051 s%@GTK_LIBS@%$GTK_LIBS%g
12052 s%@X_CFLAGS@%$X_CFLAGS%g
12053 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
12054 s%@X_LIBS@%$X_LIBS%g
12055 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
12056 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
12057 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
12058 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
12059 s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
12060 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
12061 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
12062 s%@WX_LIBRARY@%$WX_LIBRARY%g
12063 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
12064 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
12065 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
12066 s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
12067 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
12068 s%@WX_CREATE_LINKS@%$WX_CREATE_LINKS%g
12069 s%@WX_CREATE_INSTALLED_LINKS@%$WX_CREATE_INSTALLED_LINKS%g
12070 s%@SHARED_LD@%$SHARED_LD%g
12071 s%@PIC_FLAG@%$PIC_FLAG%g
12072 s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
12073 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
12074 s%@TOOLKIT@%$TOOLKIT%g
12075 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
12076 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
12077 s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
12078 s%@GUIHEADERS@%$GUIHEADERS%g
12079 s%@GUIOBJS@%$GUIOBJS%g
12080 s%@COMMONOBJS@%$COMMONOBJS%g
12081 s%@GENERICOBJS@%$GENERICOBJS%g
12082 s%@GUIDEPS@%$GUIDEPS%g
12083 s%@COMMONDEPS@%$COMMONDEPS%g
12084 s%@GENERICDEPS@%$GENERICDEPS%g
12085 s%@UNIXOBJS@%$UNIXOBJS%g
12086 s%@GUIDIST@%$GUIDIST%g
12087 s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
12088 s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
12089 s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
12090 s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
12091 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
12092 s%@USER_SUBDIRS@%$USER_SUBDIRS%g
12093 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
12094 s%@LD_LIBS@%$LD_LIBS%g
12095 s%@SET_MAKE@%$SET_MAKE%g
12096 s%@GL_TOOLKIT_DIR@%$GL_TOOLKIT_DIR%g
12097
12098 CEOF
12099 EOF
12100
12101 cat >> $CONFIG_STATUS <<\EOF
12102
12103 # Split the substitutions into bite-sized pieces for seds with
12104 # small command number limits, like on Digital OSF/1 and HP-UX.
12105 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
12106 ac_file=1 # Number of current file.
12107 ac_beg=1 # First line for current file.
12108 ac_end=$ac_max_sed_cmds # Line after last line for current file.
12109 ac_more_lines=:
12110 ac_sed_cmds=""
12111 while $ac_more_lines; do
12112 if test $ac_beg -gt 1; then
12113 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
12114 else
12115 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
12116 fi
12117 if test ! -s conftest.s$ac_file; then
12118 ac_more_lines=false
12119 rm -f conftest.s$ac_file
12120 else
12121 if test -z "$ac_sed_cmds"; then
12122 ac_sed_cmds="sed -f conftest.s$ac_file"
12123 else
12124 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
12125 fi
12126 ac_file=`expr $ac_file + 1`
12127 ac_beg=$ac_end
12128 ac_end=`expr $ac_end + $ac_max_sed_cmds`
12129 fi
12130 done
12131 if test -z "$ac_sed_cmds"; then
12132 ac_sed_cmds=cat
12133 fi
12134 EOF
12135
12136 cat >> $CONFIG_STATUS <<EOF
12137
12138 CONFIG_FILES=\${CONFIG_FILES-"wx-config
12139 src/make.env
12140 src/makeprog.env
12141 src/makelib.env
12142 Makefile
12143 samples/Makefile
12144 samples/bombs/Makefile
12145 samples/caret/Makefile
12146 samples/checklst/Makefile
12147 samples/config/Makefile
12148 samples/controls/Makefile
12149 samples/dialogs/Makefile
12150 samples/docview/Makefile
12151 samples/docvwmdi/Makefile
12152 samples/dnd/Makefile
12153 samples/drawing/Makefile
12154 samples/dynamic/Makefile
12155 samples/image/Makefile
12156 samples/internat/Makefile
12157 samples/layout/Makefile
12158 samples/listctrl/Makefile
12159 samples/mdi/Makefile
12160 samples/minifram/Makefile
12161 samples/minimal/Makefile
12162 samples/notebook/Makefile
12163 samples/printing/Makefile
12164 samples/proplist/Makefile
12165 samples/sashtest/Makefile
12166 samples/scroll/Makefile
12167 samples/splitter/Makefile
12168 samples/text/Makefile
12169 samples/thread/Makefile
12170 samples/toolbar/Makefile
12171 samples/treectrl/Makefile
12172 samples/typetest/Makefile
12173 samples/validate/Makefile
12174 samples/wxpoem/Makefile
12175 samples/wxsocket/Makefile
12176 samples/wizard/Makefile
12177 samples/html/Makefile
12178 samples/html/about/Makefile
12179 samples/html/help/Makefile
12180 samples/html/printing/Makefile
12181 samples/html/test/Makefile
12182 samples/html/zip/Makefile
12183 samples/html/virtual/Makefile
12184 samples/html/widget/Makefile
12185 utils/Makefile
12186 utils/wxMMedia2/Makefile
12187 utils/wxMMedia2/lib/Makefile
12188 utils/wxMMedia2/sample/Makefile
12189 utils/glcanvas/Makefile
12190 utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile
12191 utils/ogl/Makefile
12192 utils/ogl/src/Makefile
12193 "}
12194 EOF
12195 cat >> $CONFIG_STATUS <<\EOF
12196 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
12197 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12198 case "$ac_file" in
12199 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12200 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12201 *) ac_file_in="${ac_file}.in" ;;
12202 esac
12203
12204 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12205
12206 # Remove last slash and all that follows it. Not all systems have dirname.
12207 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12208 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12209 # The file is in a subdirectory.
12210 test ! -d "$ac_dir" && mkdir "$ac_dir"
12211 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
12212 # A "../" for each directory in $ac_dir_suffix.
12213 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12214 else
12215 ac_dir_suffix= ac_dots=
12216 fi
12217
12218 case "$ac_given_srcdir" in
12219 .) srcdir=.
12220 if test -z "$ac_dots"; then top_srcdir=.
12221 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12222 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
12223 *) # Relative path.
12224 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12225 top_srcdir="$ac_dots$ac_given_srcdir" ;;
12226 esac
12227
12228 case "$ac_given_INSTALL" in
12229 [/$]*) INSTALL="$ac_given_INSTALL" ;;
12230 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
12231 esac
12232
12233 echo creating "$ac_file"
12234 rm -f "$ac_file"
12235 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12236 case "$ac_file" in
12237 *Makefile*) ac_comsub="1i\\
12238 # $configure_input" ;;
12239 *) ac_comsub= ;;
12240 esac
12241
12242 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12243 sed -e "$ac_comsub
12244 s%@configure_input@%$configure_input%g
12245 s%@srcdir@%$srcdir%g
12246 s%@top_srcdir@%$top_srcdir%g
12247 s%@INSTALL@%$INSTALL%g
12248 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
12249 fi; done
12250 rm -f conftest.s*
12251
12252 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12253 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12254 #
12255 # ac_d sets the value in "#define NAME VALUE" lines.
12256 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12257 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
12258 ac_dC='\3'
12259 ac_dD='%g'
12260 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12261 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12262 ac_uB='\([ ]\)%\1#\2define\3'
12263 ac_uC=' '
12264 ac_uD='\4%g'
12265 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12266 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12267 ac_eB='$%\1#\2define\3'
12268 ac_eC=' '
12269 ac_eD='%g'
12270
12271 if test "${CONFIG_HEADERS+set}" != set; then
12272 EOF
12273 cat >> $CONFIG_STATUS <<EOF
12274 CONFIG_HEADERS="setup.h:setup.h.in"
12275 EOF
12276 cat >> $CONFIG_STATUS <<\EOF
12277 fi
12278 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
12279 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12280 case "$ac_file" in
12281 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12282 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12283 *) ac_file_in="${ac_file}.in" ;;
12284 esac
12285
12286 echo creating $ac_file
12287
12288 rm -f conftest.frag conftest.in conftest.out
12289 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12290 cat $ac_file_inputs > conftest.in
12291
12292 EOF
12293
12294 # Transform confdefs.h into a sed script conftest.vals that substitutes
12295 # the proper values into config.h.in to produce config.h. And first:
12296 # Protect against being on the right side of a sed subst in config.status.
12297 # Protect against being in an unquoted here document in config.status.
12298 rm -f conftest.vals
12299 cat > conftest.hdr <<\EOF
12300 s/[\\&%]/\\&/g
12301 s%[\\$`]%\\&%g
12302 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12303 s%ac_d%ac_u%gp
12304 s%ac_u%ac_e%gp
12305 EOF
12306 sed -n -f conftest.hdr confdefs.h > conftest.vals
12307 rm -f conftest.hdr
12308
12309 # This sed command replaces #undef with comments. This is necessary, for
12310 # example, in the case of _POSIX_SOURCE, which is predefined and required
12311 # on some systems where configure will not decide to define it.
12312 cat >> conftest.vals <<\EOF
12313 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12314 EOF
12315
12316 # Break up conftest.vals because some shells have a limit on
12317 # the size of here documents, and old seds have small limits too.
12318
12319 rm -f conftest.tail
12320 while :
12321 do
12322 ac_lines=`grep -c . conftest.vals`
12323 # grep -c gives empty output for an empty file on some AIX systems.
12324 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12325 # Write a limited-size here document to conftest.frag.
12326 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12327 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12328 echo 'CEOF
12329 sed -f conftest.frag conftest.in > conftest.out
12330 rm -f conftest.in
12331 mv conftest.out conftest.in
12332 ' >> $CONFIG_STATUS
12333 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12334 rm -f conftest.vals
12335 mv conftest.tail conftest.vals
12336 done
12337 rm -f conftest.vals
12338
12339 cat >> $CONFIG_STATUS <<\EOF
12340 rm -f conftest.frag conftest.h
12341 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12342 cat conftest.in >> conftest.h
12343 rm -f conftest.in
12344 if cmp -s $ac_file conftest.h 2>/dev/null; then
12345 echo "$ac_file is unchanged"
12346 rm -f conftest.h
12347 else
12348 # Remove last slash and all that follows it. Not all systems have dirname.
12349 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12350 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12351 # The file is in a subdirectory.
12352 test ! -d "$ac_dir" && mkdir "$ac_dir"
12353 fi
12354 rm -f $ac_file
12355 mv conftest.h $ac_file
12356 fi
12357 fi; done
12358
12359 EOF
12360 cat >> $CONFIG_STATUS <<EOF
12361
12362 LN_S="${ac_cv_prog_LN_S}"
12363 TOOLKIT_DIR="${TOOLKIT_DIR}"
12364
12365
12366 EOF
12367 cat >> $CONFIG_STATUS <<\EOF
12368
12369 chmod +x wx-config
12370 if test ! -d include; then
12371 mkdir include
12372 fi
12373 if test ! -d include/wx; then
12374 mkdir include/wx
12375 fi
12376 if test ! -d include/wx/${TOOLKIT_DIR}; then
12377 mkdir include/wx/${TOOLKIT_DIR}
12378 fi
12379 cp -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
12380
12381 exit 0
12382 EOF
12383 chmod +x $CONFIG_STATUS
12384 rm -fr confdefs* $ac_clean_files
12385 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
12386
12387