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