]> git.saurik.com Git - wxWidgets.git/blob - configure
made error message when test for GTK+ fails more detailed
[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.13
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-pm use OS/2 Presentation Manager"
65 ac_help="$ac_help
66 --with-gtk-prefix=PFX Prefix where GTK is installed"
67 ac_help="$ac_help
68 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
69 ac_help="$ac_help
70 --with-libpng use libpng (PNG image format)"
71 ac_help="$ac_help
72 --with-libjpeg use libjpeg (JPEG file format)"
73 ac_help="$ac_help
74 --with-libtiff use libtiff (TIFF file format)"
75 ac_help="$ac_help
76 --with-opengl use OpenGL (or Mesa)"
77 ac_help="$ac_help
78 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
79 ac_help="$ac_help
80 --with-zlib use zlib for LZW compression"
81 ac_help="$ac_help
82 --with-odbc use the IODBC and wxODBC classes"
83 ac_help="$ac_help
84 --enable-shared create shared library code"
85 ac_help="$ac_help
86 --enable-optimise create optimised code"
87 ac_help="$ac_help
88 --enable-debug same as debug_flag and debug_info"
89 ac_help="$ac_help
90 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
91 ac_help="$ac_help
92 --enable-debug_info create code with debugging information"
93 ac_help="$ac_help
94 --enable-debug_gdb create code with extra GDB debugging information"
95 ac_help="$ac_help
96 --enable-debug_cntxt use wxDebugContext"
97 ac_help="$ac_help
98 --enable-mem_tracing create code with memory tracing"
99 ac_help="$ac_help
100 --enable-profile create code with profiling information"
101 ac_help="$ac_help
102 --enable-no_rtti create code without RTTI information"
103 ac_help="$ac_help
104 --enable-no_exceptions create code without exceptions information"
105 ac_help="$ac_help
106 --enable-permissive compile code disregarding strict ANSI"
107 ac_help="$ac_help
108 --enable-no_deps create code without dependency information"
109 ac_help="$ac_help
110 --enable-intl use internationalization system"
111 ac_help="$ac_help
112 --enable-config use wxConfig (and derived) classes"
113 ac_help="$ac_help
114 --enable-sockets use socket/network classes"
115 ac_help="$ac_help
116 --enable-dialupman use dialup network classes"
117 ac_help="$ac_help
118 --enable-ipc use interprocess communication (wxSocket etc.)"
119 ac_help="$ac_help
120 --enable-apple_ieee use the Apple IEEE codec"
121 ac_help="$ac_help
122 --enable-timedate use date/time classes"
123 ac_help="$ac_help
124 --enable-wave use wxWave class"
125 ac_help="$ac_help
126 --enable-fraction use wxFraction class"
127 ac_help="$ac_help
128 --enable-dynlib use wxLibrary class for DLL loading"
129 ac_help="$ac_help
130 --enable-longlong use wxLongLong class"
131 ac_help="$ac_help
132 --enable-log use logging system"
133 ac_help="$ac_help
134 --enable-streams use wxStream etc classes"
135 ac_help="$ac_help
136 --enable-file use wxFile classes"
137 ac_help="$ac_help
138 --enable-textfile use wxTextFile classes"
139 ac_help="$ac_help
140 --enable-unicode compile wxString with Unicode support"
141 ac_help="$ac_help
142 --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
143 ac_help="$ac_help
144 --enable-wxprintfv use wxWindows implementation of vprintf()"
145 ac_help="$ac_help
146 --enable-joystick compile in joystick support (Linux only)"
147 ac_help="$ac_help
148 --enable-std_iostreams use standard C++ stream classes"
149 ac_help="$ac_help
150 --enable-fs_inet use virtual HTTP/FTP filesystems"
151 ac_help="$ac_help
152 --enable-fs_zip use virtual ZIP filesystems"
153 ac_help="$ac_help
154 --enable-zipstream use wxZipInputStream"
155 ac_help="$ac_help
156 --enable-threads use threads"
157 ac_help="$ac_help
158 --enable-serial use class serialization"
159 ac_help="$ac_help
160 --enable-docview use document view architecture"
161 ac_help="$ac_help
162 --enable-help use help (using external browser at present)"
163 ac_help="$ac_help
164 --enable-constraints use layout-constraints system"
165 ac_help="$ac_help
166 --enable-printarch use printing architecture"
167 ac_help="$ac_help
168 --enable-mdi use multiple document interface architecture"
169 ac_help="$ac_help
170 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
171 ac_help="$ac_help
172 --enable-prologio use Prolog IO library"
173 ac_help="$ac_help
174 --enable-resources use wxWindows resources"
175 ac_help="$ac_help
176 --enable-xresources use X resources for save (default for gtk+)"
177 ac_help="$ac_help
178 --enable-clipboard use wxClipboard classes"
179 ac_help="$ac_help
180 --enable-dnd use Drag'n'Drop classes"
181 ac_help="$ac_help
182 --enable-wxtree make wxTree library"
183 ac_help="$ac_help
184 --enable-controls use all usual controls"
185 ac_help="$ac_help
186 --enable-accel use accelerators"
187 ac_help="$ac_help
188 --enable-caret use wxCaret class"
189 ac_help="$ac_help
190 --enable-bmpbutton use wxBitmapButton class"
191 ac_help="$ac_help
192 --enable-checkbox use wxCheckBox class"
193 ac_help="$ac_help
194 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
195 ac_help="$ac_help
196 --enable-choice use wxChoice class"
197 ac_help="$ac_help
198 --enable-combobox use wxComboBox classes"
199 ac_help="$ac_help
200 --enable-gauge use wxGauge class"
201 ac_help="$ac_help
202 --enable-grid use wxGrid class"
203 ac_help="$ac_help
204 --enable-newgrid use new wxGrid class"
205 ac_help="$ac_help
206 --enable-imaglist use wxImageList class"
207 ac_help="$ac_help
208 --enable-listbox use wxListBox class"
209 ac_help="$ac_help
210 --enable-listctrl use wxListCtrl class"
211 ac_help="$ac_help
212 --enable-notebook use wxNotebook class"
213 ac_help="$ac_help
214 --enable-radiobox use wxRadioBox class"
215 ac_help="$ac_help
216 --enable-radiobtn use wxRadioButton class"
217 ac_help="$ac_help
218 --enable-sash use wxSashWindow class"
219 ac_help="$ac_help
220 --enable-scrollbar use wxScrollBar class and scrollable windows"
221 ac_help="$ac_help
222 --enable-slider use wxSlider class"
223 ac_help="$ac_help
224 --enable-spinbtn use wxSpinButton class"
225 ac_help="$ac_help
226 --enable-spinctrl use wxSpinCtrl class"
227 ac_help="$ac_help
228 --enable-splitter use wxSplitterWindow class"
229 ac_help="$ac_help
230 --enable-statbmp use wxStaticBitmap class"
231 ac_help="$ac_help
232 --enable-statbox use wxStaticBox class"
233 ac_help="$ac_help
234 --enable-statline use wxStaticLine class"
235 ac_help="$ac_help
236 --enable-statusbar use wxStatusBar class"
237 ac_help="$ac_help
238 --enable-tabdialog use wxTabControl class"
239 ac_help="$ac_help
240 --enable-toolbar use wxToolBar class"
241 ac_help="$ac_help
242 --enable-tbarnative use native wxToolBar class"
243 ac_help="$ac_help
244 --enable-tbarsmpl use wxToolBarSimple class"
245 ac_help="$ac_help
246 --enable-treectrl use wxTreeCtrl class"
247 ac_help="$ac_help
248 --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
249 ac_help="$ac_help
250 --enable-dirdlg use wxDirDialog"
251 ac_help="$ac_help
252 --enable-textdlg use wxTextDialog"
253 ac_help="$ac_help
254 --enable-tipdlg use startup tips"
255 ac_help="$ac_help
256 --enable-progressdlg use wxProgressDialog"
257 ac_help="$ac_help
258 --enable-miniframe use wxMiniFrame class"
259 ac_help="$ac_help
260 --enable-html use wxHTML sub-library"
261 ac_help="$ac_help
262 --enable-tooltips use wxToolTip class"
263 ac_help="$ac_help
264 --enable-splines use spline drawing code"
265 ac_help="$ac_help
266 --enable-validators use wxValidator and derived classes"
267 ac_help="$ac_help
268 --enable-busyinfo use wxBusyInfo"
269 ac_help="$ac_help
270 --enable-gif use gif images (GIF file format)"
271 ac_help="$ac_help
272 --enable-pcx use pcx images (PCX file format)"
273 ac_help="$ac_help
274 --enable-pnm use pnm images (PNM file format)"
275 ac_help="$ac_help
276 --with-x use the X Window System"
277
278 # Initialize some variables set by options.
279 # The variables have the same names as the options, with
280 # dashes changed to underlines.
281 build=NONE
282 cache_file=./config.cache
283 exec_prefix=NONE
284 host=NONE
285 no_create=
286 nonopt=NONE
287 no_recursion=
288 prefix=NONE
289 program_prefix=NONE
290 program_suffix=NONE
291 program_transform_name=s,x,x,
292 silent=
293 site=
294 srcdir=
295 target=NONE
296 verbose=
297 x_includes=NONE
298 x_libraries=NONE
299 bindir='${exec_prefix}/bin'
300 sbindir='${exec_prefix}/sbin'
301 libexecdir='${exec_prefix}/libexec'
302 datadir='${prefix}/share'
303 sysconfdir='${prefix}/etc'
304 sharedstatedir='${prefix}/com'
305 localstatedir='${prefix}/var'
306 libdir='${exec_prefix}/lib'
307 includedir='${prefix}/include'
308 oldincludedir='/usr/include'
309 infodir='${prefix}/info'
310 mandir='${prefix}/man'
311
312 # Initialize some other variables.
313 subdirs=
314 MFLAGS= MAKEFLAGS=
315 SHELL=${CONFIG_SHELL-/bin/sh}
316 # Maximum number of lines to put in a shell here document.
317 ac_max_here_lines=12
318
319 ac_prev=
320 for ac_option
321 do
322
323 # If the previous option needs an argument, assign it.
324 if test -n "$ac_prev"; then
325 eval "$ac_prev=\$ac_option"
326 ac_prev=
327 continue
328 fi
329
330 case "$ac_option" in
331 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
332 *) ac_optarg= ;;
333 esac
334
335 # Accept the important Cygnus configure options, so we can diagnose typos.
336
337 case "$ac_option" in
338
339 -bindir | --bindir | --bindi | --bind | --bin | --bi)
340 ac_prev=bindir ;;
341 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
342 bindir="$ac_optarg" ;;
343
344 -build | --build | --buil | --bui | --bu)
345 ac_prev=build ;;
346 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
347 build="$ac_optarg" ;;
348
349 -cache-file | --cache-file | --cache-fil | --cache-fi \
350 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
351 ac_prev=cache_file ;;
352 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
353 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
354 cache_file="$ac_optarg" ;;
355
356 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
357 ac_prev=datadir ;;
358 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
359 | --da=*)
360 datadir="$ac_optarg" ;;
361
362 -disable-* | --disable-*)
363 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
364 # Reject names that are not valid shell variable names.
365 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
366 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
367 fi
368 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
369 eval "enable_${ac_feature}=no" ;;
370
371 -enable-* | --enable-*)
372 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
375 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
376 fi
377 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
378 case "$ac_option" in
379 *=*) ;;
380 *) ac_optarg=yes ;;
381 esac
382 eval "enable_${ac_feature}='$ac_optarg'" ;;
383
384 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
385 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
386 | --exec | --exe | --ex)
387 ac_prev=exec_prefix ;;
388 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
389 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
390 | --exec=* | --exe=* | --ex=*)
391 exec_prefix="$ac_optarg" ;;
392
393 -gas | --gas | --ga | --g)
394 # Obsolete; use --with-gas.
395 with_gas=yes ;;
396
397 -help | --help | --hel | --he)
398 # Omit some internal or obsolete options to make the list less imposing.
399 # This message is too long to be a string in the A/UX 3.1 sh.
400 cat << EOF
401 Usage: configure [options] [host]
402 Options: [defaults in brackets after descriptions]
403 Configuration:
404 --cache-file=FILE cache test results in FILE
405 --help print this message
406 --no-create do not create output files
407 --quiet, --silent do not print \`checking...' messages
408 --version print the version of autoconf that created configure
409 Directory and file names:
410 --prefix=PREFIX install architecture-independent files in PREFIX
411 [$ac_default_prefix]
412 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
413 [same as prefix]
414 --bindir=DIR user executables in DIR [EPREFIX/bin]
415 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
416 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
417 --datadir=DIR read-only architecture-independent data in DIR
418 [PREFIX/share]
419 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
420 --sharedstatedir=DIR modifiable architecture-independent data in DIR
421 [PREFIX/com]
422 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
423 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
424 --includedir=DIR C header files in DIR [PREFIX/include]
425 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
426 --infodir=DIR info documentation in DIR [PREFIX/info]
427 --mandir=DIR man documentation in DIR [PREFIX/man]
428 --srcdir=DIR find the sources in DIR [configure dir or ..]
429 --program-prefix=PREFIX prepend PREFIX to installed program names
430 --program-suffix=SUFFIX append SUFFIX to installed program names
431 --program-transform-name=PROGRAM
432 run sed PROGRAM on installed program names
433 EOF
434 cat << EOF
435 Host type:
436 --build=BUILD configure for building on BUILD [BUILD=HOST]
437 --host=HOST configure for HOST [guessed]
438 --target=TARGET configure for TARGET [TARGET=HOST]
439 Features and packages:
440 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
441 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
442 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
443 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
444 --x-includes=DIR X include files are in DIR
445 --x-libraries=DIR X library files are in DIR
446 EOF
447 if test -n "$ac_help"; then
448 echo "--enable and --with options recognized:$ac_help"
449 fi
450 exit 0 ;;
451
452 -host | --host | --hos | --ho)
453 ac_prev=host ;;
454 -host=* | --host=* | --hos=* | --ho=*)
455 host="$ac_optarg" ;;
456
457 -includedir | --includedir | --includedi | --included | --include \
458 | --includ | --inclu | --incl | --inc)
459 ac_prev=includedir ;;
460 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
461 | --includ=* | --inclu=* | --incl=* | --inc=*)
462 includedir="$ac_optarg" ;;
463
464 -infodir | --infodir | --infodi | --infod | --info | --inf)
465 ac_prev=infodir ;;
466 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
467 infodir="$ac_optarg" ;;
468
469 -libdir | --libdir | --libdi | --libd)
470 ac_prev=libdir ;;
471 -libdir=* | --libdir=* | --libdi=* | --libd=*)
472 libdir="$ac_optarg" ;;
473
474 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
475 | --libexe | --libex | --libe)
476 ac_prev=libexecdir ;;
477 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
478 | --libexe=* | --libex=* | --libe=*)
479 libexecdir="$ac_optarg" ;;
480
481 -localstatedir | --localstatedir | --localstatedi | --localstated \
482 | --localstate | --localstat | --localsta | --localst \
483 | --locals | --local | --loca | --loc | --lo)
484 ac_prev=localstatedir ;;
485 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
486 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
487 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
488 localstatedir="$ac_optarg" ;;
489
490 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
491 ac_prev=mandir ;;
492 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
493 mandir="$ac_optarg" ;;
494
495 -nfp | --nfp | --nf)
496 # Obsolete; use --without-fp.
497 with_fp=no ;;
498
499 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
500 | --no-cr | --no-c)
501 no_create=yes ;;
502
503 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
504 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
505 no_recursion=yes ;;
506
507 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
508 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
509 | --oldin | --oldi | --old | --ol | --o)
510 ac_prev=oldincludedir ;;
511 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
512 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
513 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
514 oldincludedir="$ac_optarg" ;;
515
516 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
517 ac_prev=prefix ;;
518 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
519 prefix="$ac_optarg" ;;
520
521 -program-prefix | --program-prefix | --program-prefi | --program-pref \
522 | --program-pre | --program-pr | --program-p)
523 ac_prev=program_prefix ;;
524 -program-prefix=* | --program-prefix=* | --program-prefi=* \
525 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
526 program_prefix="$ac_optarg" ;;
527
528 -program-suffix | --program-suffix | --program-suffi | --program-suff \
529 | --program-suf | --program-su | --program-s)
530 ac_prev=program_suffix ;;
531 -program-suffix=* | --program-suffix=* | --program-suffi=* \
532 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
533 program_suffix="$ac_optarg" ;;
534
535 -program-transform-name | --program-transform-name \
536 | --program-transform-nam | --program-transform-na \
537 | --program-transform-n | --program-transform- \
538 | --program-transform | --program-transfor \
539 | --program-transfo | --program-transf \
540 | --program-trans | --program-tran \
541 | --progr-tra | --program-tr | --program-t)
542 ac_prev=program_transform_name ;;
543 -program-transform-name=* | --program-transform-name=* \
544 | --program-transform-nam=* | --program-transform-na=* \
545 | --program-transform-n=* | --program-transform-=* \
546 | --program-transform=* | --program-transfor=* \
547 | --program-transfo=* | --program-transf=* \
548 | --program-trans=* | --program-tran=* \
549 | --progr-tra=* | --program-tr=* | --program-t=*)
550 program_transform_name="$ac_optarg" ;;
551
552 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
553 | -silent | --silent | --silen | --sile | --sil)
554 silent=yes ;;
555
556 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
557 ac_prev=sbindir ;;
558 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
559 | --sbi=* | --sb=*)
560 sbindir="$ac_optarg" ;;
561
562 -sharedstatedir | --sharedstatedir | --sharedstatedi \
563 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
564 | --sharedst | --shareds | --shared | --share | --shar \
565 | --sha | --sh)
566 ac_prev=sharedstatedir ;;
567 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
568 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
569 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
570 | --sha=* | --sh=*)
571 sharedstatedir="$ac_optarg" ;;
572
573 -site | --site | --sit)
574 ac_prev=site ;;
575 -site=* | --site=* | --sit=*)
576 site="$ac_optarg" ;;
577
578 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
579 ac_prev=srcdir ;;
580 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
581 srcdir="$ac_optarg" ;;
582
583 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
584 | --syscon | --sysco | --sysc | --sys | --sy)
585 ac_prev=sysconfdir ;;
586 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
587 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
588 sysconfdir="$ac_optarg" ;;
589
590 -target | --target | --targe | --targ | --tar | --ta | --t)
591 ac_prev=target ;;
592 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
593 target="$ac_optarg" ;;
594
595 -v | -verbose | --verbose | --verbos | --verbo | --verb)
596 verbose=yes ;;
597
598 -version | --version | --versio | --versi | --vers)
599 echo "configure generated by autoconf version 2.13"
600 exit 0 ;;
601
602 -with-* | --with-*)
603 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
604 # Reject names that are not valid shell variable names.
605 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
606 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
607 fi
608 ac_package=`echo $ac_package| sed 's/-/_/g'`
609 case "$ac_option" in
610 *=*) ;;
611 *) ac_optarg=yes ;;
612 esac
613 eval "with_${ac_package}='$ac_optarg'" ;;
614
615 -without-* | --without-*)
616 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
617 # Reject names that are not valid shell variable names.
618 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
619 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
620 fi
621 ac_package=`echo $ac_package| sed 's/-/_/g'`
622 eval "with_${ac_package}=no" ;;
623
624 --x)
625 # Obsolete; use --with-x.
626 with_x=yes ;;
627
628 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
629 | --x-incl | --x-inc | --x-in | --x-i)
630 ac_prev=x_includes ;;
631 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
632 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
633 x_includes="$ac_optarg" ;;
634
635 -x-libraries | --x-libraries | --x-librarie | --x-librari \
636 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
637 ac_prev=x_libraries ;;
638 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
639 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
640 x_libraries="$ac_optarg" ;;
641
642 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
643 ;;
644
645 *)
646 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
647 echo "configure: warning: $ac_option: invalid host type" 1>&2
648 fi
649 if test "x$nonopt" != xNONE; then
650 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
651 fi
652 nonopt="$ac_option"
653 ;;
654
655 esac
656 done
657
658 if test -n "$ac_prev"; then
659 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
660 fi
661
662 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
663
664 # File descriptor usage:
665 # 0 standard input
666 # 1 file creation
667 # 2 errors and warnings
668 # 3 some systems may open it to /dev/tty
669 # 4 used on the Kubota Titan
670 # 6 checking for... messages and results
671 # 5 compiler messages saved in config.log
672 if test "$silent" = yes; then
673 exec 6>/dev/null
674 else
675 exec 6>&1
676 fi
677 exec 5>./config.log
678
679 echo "\
680 This file contains any messages produced by compilers while
681 running configure, to aid debugging if configure makes a mistake.
682 " 1>&5
683
684 # Strip out --no-create and --no-recursion so they do not pile up.
685 # Also quote any args containing shell metacharacters.
686 ac_configure_args=
687 for ac_arg
688 do
689 case "$ac_arg" in
690 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
691 | --no-cr | --no-c) ;;
692 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
693 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
694 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
695 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
696 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
697 esac
698 done
699
700 # NLS nuisances.
701 # Only set these to C if already set. These must not be set unconditionally
702 # because not all systems understand e.g. LANG=C (notably SCO).
703 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
704 # Non-C LC_CTYPE values break the ctype check.
705 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
706 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
707 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
708 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
709
710 # confdefs.h avoids OS command line length limits that DEFS can exceed.
711 rm -rf conftest* confdefs.h
712 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
713 echo > confdefs.h
714
715 # A filename unique to this package, relative to the directory that
716 # configure is in, which we can look for to find out if srcdir is correct.
717 ac_unique_file=wx-config.in
718
719 # Find the source files, if location was not specified.
720 if test -z "$srcdir"; then
721 ac_srcdir_defaulted=yes
722 # Try the directory containing this script, then its parent.
723 ac_prog=$0
724 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
725 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
726 srcdir=$ac_confdir
727 if test ! -r $srcdir/$ac_unique_file; then
728 srcdir=..
729 fi
730 else
731 ac_srcdir_defaulted=no
732 fi
733 if test ! -r $srcdir/$ac_unique_file; then
734 if test "$ac_srcdir_defaulted" = yes; then
735 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
736 else
737 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
738 fi
739 fi
740 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
741
742 # Prefer explicitly selected file to automatically selected ones.
743 if test -z "$CONFIG_SITE"; then
744 if test "x$prefix" != xNONE; then
745 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
746 else
747 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
748 fi
749 fi
750 for ac_site_file in $CONFIG_SITE; do
751 if test -r "$ac_site_file"; then
752 echo "loading site script $ac_site_file"
753 . "$ac_site_file"
754 fi
755 done
756
757 if test -r "$cache_file"; then
758 echo "loading cache $cache_file"
759 . $cache_file
760 else
761 echo "creating cache $cache_file"
762 > $cache_file
763 fi
764
765 ac_ext=c
766 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
767 ac_cpp='$CPP $CPPFLAGS'
768 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
769 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
770 cross_compiling=$ac_cv_prog_cc_cross
771
772 ac_exeext=
773 ac_objext=o
774 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
775 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
776 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
777 ac_n= ac_c='
778 ' ac_t=' '
779 else
780 ac_n=-n ac_c= ac_t=
781 fi
782 else
783 ac_n= ac_c='\c' ac_t=
784 fi
785
786
787
788
789 WX_MAJOR_VERSION_NUMBER=2
790 WX_MINOR_VERSION_NUMBER=1
791 WX_RELEASE_NUMBER=13
792
793 WX_INTERFACE_AGE=0
794 WX_BINARY_AGE=0
795
796 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
797
798 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
799 WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
800 WX_REVISION=$WX_INTERFACE_AGE
801 WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
802
803
804 USE_UNIX=1
805 USE_WIN32=0
806 USE_BEOS=0
807
808 USE_LINUX=
809 USE_SGI=
810 USE_HPUX=
811 USE_SYSV=
812 USE_SVR4=
813 USE_AIX=
814 USE_SUN=
815 USE_SOLARIS=
816 USE_SUNOS=
817 USE_ALPHA=
818 USE_OSF=
819 USE_BSD=
820 USE_FREEBSD=
821 USE_VMS=
822 USE_ULTRIX=
823 USE_CYGWIN=
824 USE_MINGW=
825 USE_DATA_GENERAL=
826
827 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
828
829 ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE PM"
830
831 DEFAULT_wxUSE_GTK=0
832 DEFAULT_wxUSE_MOTIF=0
833 DEFAULT_wxUSE_MSW=0
834 DEFAULT_wxUSE_WINE=0
835 DEFAULT_wxUSE_PM=0
836
837 DEFAULT_DEFAULT_wxUSE_GTK=0
838 DEFAULT_DEFAULT_wxUSE_MOTIF=0
839 DEFAULT_DEFAULT_wxUSE_MSW=0
840 DEFAULT_DEFAULT_wxUSE_WINE=0
841 DEFAULT_DEFAULT_wxUSE_PM=0
842
843 case "${host}" in
844 *-hp-hpux* )
845 USE_HPUX=1
846 DEFAULT_DEFAULT_wxUSE_MOTIF=1
847 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
848 cat >> confdefs.h <<\EOF
849 #define __HPUX__ 1
850 EOF
851
852 ;;
853 *-*-linux* )
854 USE_LINUX=1
855 cat >> confdefs.h <<\EOF
856 #define __LINUX__ 1
857 EOF
858
859 TMP=`uname -m`
860 if test "x$TMP" = "xalpha"; then
861 USE_ALPHA=1
862 cat >> confdefs.h <<\EOF
863 #define __ALPHA__ 1
864 EOF
865
866 fi
867 DEFAULT_DEFAULT_wxUSE_GTK=1
868 ;;
869 *-*-irix5* | *-*-irix6* )
870 USE_SGI=1
871 USE_SVR4=1
872 cat >> confdefs.h <<\EOF
873 #define __SGI__ 1
874 EOF
875
876 cat >> confdefs.h <<\EOF
877 #define __SVR4__ 1
878 EOF
879
880 DEFAULT_DEFAULT_wxUSE_MOTIF=1
881 ;;
882 *-*-solaris2* )
883 USE_SUN=1
884 USE_SOLARIS=1
885 USE_SVR4=1
886 cat >> confdefs.h <<\EOF
887 #define __SUN__ 1
888 EOF
889
890 cat >> confdefs.h <<\EOF
891 #define __SOLARIS__ 1
892 EOF
893
894 cat >> confdefs.h <<\EOF
895 #define __SVR4__ 1
896 EOF
897
898 DEFAULT_DEFAULT_wxUSE_MOTIF=1
899 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
900 ;;
901 *-*-sunos4* )
902 USE_SUN=1
903 USE_SUNOS=1
904 USE_BSD=1
905 cat >> confdefs.h <<\EOF
906 #define __SUN__ 1
907 EOF
908
909 cat >> confdefs.h <<\EOF
910 #define __SUNOS__ 1
911 EOF
912
913 cat >> confdefs.h <<\EOF
914 #define __BSD__ 1
915 EOF
916
917 DEFAULT_DEFAULT_wxUSE_MOTIF=1
918 ;;
919 *-*-freebsd* | *-*-netbsd*)
920 USE_BSD=1
921 USE_FREEBSD=1
922 cat >> confdefs.h <<\EOF
923 #define __FREEBSD__ 1
924 EOF
925
926 cat >> confdefs.h <<\EOF
927 #define __BSD__ 1
928 EOF
929
930 DEFAULT_DEFAULT_wxUSE_GTK=1
931 ;;
932 *-*-osf* )
933 USE_ALPHA=1
934 USE_OSF=1
935 cat >> confdefs.h <<\EOF
936 #define __ALPHA__ 1
937 EOF
938
939 cat >> confdefs.h <<\EOF
940 #define __OSF__ 1
941 EOF
942
943 DEFAULT_DEFAULT_wxUSE_MOTIF=1
944 ;;
945 *-*-dgux5* )
946 USE_ALPHA=1
947 USE_SVR4=1
948 cat >> confdefs.h <<\EOF
949 #define __ALPHA__ 1
950 EOF
951
952 cat >> confdefs.h <<\EOF
953 #define __SVR4__ 1
954 EOF
955
956 DEFAULT_DEFAULT_wxUSE_MOTIF=1
957 ;;
958 *-*-sysv5* )
959 USE_SYSV=1
960 USE_SVR4=1
961 cat >> confdefs.h <<\EOF
962 #define __SYSV__ 1
963 EOF
964
965 cat >> confdefs.h <<\EOF
966 #define __SVR4__ 1
967 EOF
968
969 DEFAULT_DEFAULT_wxUSE_MOTIF=1
970 ;;
971 *-*-aix* )
972 USE_AIX=1
973 USE_SYSV=1
974 USE_SVR4=1
975 cat >> confdefs.h <<\EOF
976 #define __AIX__ 1
977 EOF
978
979 cat >> confdefs.h <<\EOF
980 #define __SYSV__ 1
981 EOF
982
983 cat >> confdefs.h <<\EOF
984 #define __SVR4__ 1
985 EOF
986
987 DEFAULT_DEFAULT_wxUSE_MOTIF=1
988 ;;
989
990 *-*-cygwin32* | *-*-mingw32* )
991 USE_UNIX=0
992 USE_WIN32=1
993 cat >> confdefs.h <<\EOF
994 #define __WIN32__ 1
995 EOF
996
997 cat >> confdefs.h <<\EOF
998 #define __WIN95__ 1
999 EOF
1000
1001 cat >> confdefs.h <<\EOF
1002 #define __WINDOWS__ 1
1003 EOF
1004
1005 cat >> confdefs.h <<\EOF
1006 #define __GNUWIN32__ 1
1007 EOF
1008
1009 cat >> confdefs.h <<\EOF
1010 #define STRICT 1
1011 EOF
1012
1013 cat >> confdefs.h <<\EOF
1014 #define WINVER 0x0400
1015 EOF
1016
1017 PROGRAM_EXT=".exe"
1018 DEFAULT_DEFAULT_wxUSE_MSW=1
1019 ;;
1020
1021 *-pc-os2_emx )
1022 cat >> confdefs.h <<\EOF
1023 #define __EMX__ 1
1024 EOF
1025
1026 PROGRAM_EXT=".exe"
1027 DEFAULT_DEFAULT_wxUSE_PM=1
1028 ;;
1029
1030 *-*-beos* )
1031 USE_BEOS=1
1032 cat >> confdefs.h <<\EOF
1033 #define __BEOS__ 1
1034 EOF
1035
1036 ;;
1037
1038 *)
1039 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1040 esac
1041
1042 if test "$USE_UNIX" = 1 ; then
1043 wxUSE_UNIX=yes
1044 cat >> confdefs.h <<\EOF
1045 #define __UNIX__ 1
1046 EOF
1047
1048
1049 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1050 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1051 fi
1052
1053 if test "$USE_BEOS" = 1; then
1054 SRC_SUBDIRS="$SRC_SUBDIRS be"
1055 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
1056 fi
1057
1058 if test "$USE_LINUX" = 1; then
1059 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
1060 echo "configure:1061: checking for gettext in -lc" >&5
1061 ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1062 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1063 echo $ac_n "(cached) $ac_c" 1>&6
1064 else
1065 ac_save_LIBS="$LIBS"
1066 LIBS="-lc $LIBS"
1067 cat > conftest.$ac_ext <<EOF
1068 #line 1069 "configure"
1069 #include "confdefs.h"
1070 /* Override any gcc2 internal prototype to avoid an error. */
1071 /* We use char because int might match the return type of a gcc2
1072 builtin and then its argument prototype would still apply. */
1073 char gettext();
1074
1075 int main() {
1076 gettext()
1077 ; return 0; }
1078 EOF
1079 if { (eval echo configure:1080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1080 rm -rf conftest*
1081 eval "ac_cv_lib_$ac_lib_var=yes"
1082 else
1083 echo "configure: failed program was:" >&5
1084 cat conftest.$ac_ext >&5
1085 rm -rf conftest*
1086 eval "ac_cv_lib_$ac_lib_var=no"
1087 fi
1088 rm -f conftest*
1089 LIBS="$ac_save_LIBS"
1090
1091 fi
1092 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1093 echo "$ac_t""yes" 1>&6
1094 cat >> confdefs.h <<\EOF
1095 #define wxHAVE_GLIBC2 1
1096 EOF
1097
1098 else
1099 echo "$ac_t""no" 1>&6
1100 fi
1101
1102 fi
1103
1104
1105
1106
1107 wx_arg_cache_file="configarg.cache"
1108 echo "loading argument cache $wx_arg_cache_file"
1109 rm -f ${wx_arg_cache_file}.tmp
1110 touch ${wx_arg_cache_file}.tmp
1111 touch ${wx_arg_cache_file}
1112
1113
1114 DEBUG_CONFIGURE=0
1115 if test $DEBUG_CONFIGURE = 1; then
1116 DEFAULT_wxUSE_THREADS=yes
1117
1118 DEFAULT_wxUSE_SHARED=yes
1119 DEFAULT_wxUSE_OPTIMISE=yes
1120 DEFAULT_wxUSE_PROFILE=no
1121 DEFAULT_wxUSE_NO_DEPS=no
1122 DEFAULT_wxUSE_NO_RTTI=no
1123 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1124 DEFAULT_wxUSE_PERMISSIVE=no
1125 DEFAULT_wxUSE_DEBUG_FLAG=yes
1126 DEFAULT_wxUSE_DEBUG_INFO=yes
1127 DEFAULT_wxUSE_DEBUG_GDB=yes
1128 DEFAULT_wxUSE_MEM_TRACING=no
1129 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1130 DEFAULT_wxUSE_DMALLOC=no
1131 DEFAULT_wxUSE_APPLE_IEEE=no
1132
1133 DEFAULT_wxUSE_LOG=yes
1134
1135 DEFAULT_wxUSE_GUI=yes
1136
1137 DEFAULT_wxUSE_ZLIB=no
1138 DEFAULT_wxUSE_LIBPNG=no
1139 DEFAULT_wxUSE_LIBJPEG=no
1140 DEFAULT_wxUSE_LIBTIFF=no
1141 DEFAULT_wxUSE_ODBC=no
1142
1143 DEFAULT_wxUSE_STD_IOSTREAM=no
1144 DEFAULT_wxUSE_FILE=no
1145 DEFAULT_wxUSE_TEXTFILE=no
1146 DEFAULT_wxUSE_TIMEDATE=no
1147 DEFAULT_wxUSE_WAVE=no
1148 DEFAULT_wxUSE_INTL=no
1149 DEFAULT_wxUSE_CONFIG=no
1150 DEFAULT_wxUSE_STREAMS=no
1151 DEFAULT_wxUSE_SOCKETS=no
1152 DEFAULT_wxUSE_DIALUP_MANAGER=no
1153 DEFAULT_wxUSE_SERIAL=no
1154 DEFAULT_wxUSE_JOYSTICK=no
1155 DEFAULT_wxUSE_DYNLIB_CLASS=no
1156 DEFAULT_wxUSE_LONGLONG=no
1157
1158 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1159 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1160 DEFAULT_wxUSE_POSTSCRIPT=no
1161
1162 DEFAULT_wxUSE_X_RESOURCES=no
1163 DEFAULT_wxUSE_CLIPBOARD=no
1164 DEFAULT_wxUSE_TOOLTIPS=no
1165 DEFAULT_wxUSE_DRAG_AND_DROP=no
1166 DEFAULT_wxUSE_SPLINES=no
1167
1168 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1169 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1170 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1171
1172 DEFAULT_wxUSE_PROLOGIO=no
1173 DEFAULT_wxUSE_RESOURCES=no
1174 DEFAULT_wxUSE_CONSTRAINTS=no
1175 DEFAULT_wxUSE_IPC=no
1176 DEFAULT_wxUSE_HELP=no
1177 DEFAULT_wxUSE_WXTREE=no
1178 DEFAULT_wxUSE_METAFILE=no
1179
1180 DEFAULT_wxUSE_COMMONDLGS=no
1181 DEFAULT_wxUSE_DIRDLG=no
1182 DEFAULT_wxUSE_TEXTDLG=no
1183 DEFAULT_wxUSE_STARTUP_TIPS=no
1184 DEFAULT_wxUSE_PROGRESSDLG=no
1185 DEFAULT_wxUSE_MINIFRAME=no
1186 DEFAULT_wxUSE_HTML=no
1187 DEFAULT_wxUSE_FS_INET=no
1188 DEFAULT_wxUSE_FS_ZIP=no
1189 DEFAULT_wxUSE_BUSYINFO=no
1190 DEFAULT_wxUSE_ZIPSTREAM=no
1191 DEFAULT_wxUSE_VALIDATORS=yes
1192
1193 DEFAULT_wxUSE_ACCEL=no
1194 DEFAULT_wxUSE_CARET=no
1195 DEFAULT_wxUSE_BMPBUTTON=no
1196 DEFAULT_wxUSE_CHECKBOX=no
1197 DEFAULT_wxUSE_CHECKLST=no
1198 DEFAULT_wxUSE_CHOICE=yes
1199 DEFAULT_wxUSE_COMBOBOX=no
1200 DEFAULT_wxUSE_GAUGE=no
1201 DEFAULT_wxUSE_GRID=no
1202 DEFAULT_wxUSE_NEW_GRID=no
1203 DEFAULT_wxUSE_IMAGLIST=no
1204 DEFAULT_wxUSE_LISTBOX=no
1205 DEFAULT_wxUSE_LISTCTRL=no
1206 DEFAULT_wxUSE_NOTEBOOK=no
1207 DEFAULT_wxUSE_RADIOBOX=no
1208 DEFAULT_wxUSE_RADIOBTN=no
1209 DEFAULT_wxUSE_SASH=no
1210 DEFAULT_wxUSE_SCROLLBAR=no
1211 DEFAULT_wxUSE_SLIDER=no
1212 DEFAULT_wxUSE_SPINBTN=no
1213 DEFAULT_wxUSE_SPINCTRL=no
1214 DEFAULT_wxUSE_SPLITTER=no
1215 DEFAULT_wxUSE_STATBMP=no
1216 DEFAULT_wxUSE_STATBOX=no
1217 DEFAULT_wxUSE_STATLINE=no
1218 DEFAULT_wxUSE_STATUSBAR=yes
1219 DEFAULT_wxUSE_TABDIALOG=no
1220 DEFAULT_wxUSE_TOOLBAR=no
1221 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1222 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1223 DEFAULT_wxUSE_TREECTRL=no
1224
1225 DEFAULT_wxUSE_UNICODE=no
1226 DEFAULT_wxUSE_WCSRTOMBS=no
1227
1228 DEFAULT_wxUSE_GIF=no
1229 DEFAULT_wxUSE_PCX=no
1230 DEFAULT_wxUSE_PNM=no
1231 else
1232 DEFAULT_wxUSE_THREADS=yes
1233
1234 DEFAULT_wxUSE_SHARED=yes
1235 DEFAULT_wxUSE_OPTIMISE=yes
1236 DEFAULT_wxUSE_PROFILE=no
1237 DEFAULT_wxUSE_NO_DEPS=no
1238 DEFAULT_wxUSE_NO_RTTI=no
1239 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1240 DEFAULT_wxUSE_PERMISSIVE=no
1241 DEFAULT_wxUSE_DEBUG_FLAG=no
1242 DEFAULT_wxUSE_DEBUG_INFO=no
1243 DEFAULT_wxUSE_DEBUG_GDB=no
1244 DEFAULT_wxUSE_MEM_TRACING=no
1245 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1246 DEFAULT_wxUSE_DMALLOC=no
1247 DEFAULT_wxUSE_APPLE_IEEE=yes
1248
1249 DEFAULT_wxUSE_LOG=yes
1250
1251 DEFAULT_wxUSE_GUI=yes
1252
1253 DEFAULT_wxUSE_ZLIB=yes
1254 DEFAULT_wxUSE_LIBPNG=yes
1255 DEFAULT_wxUSE_LIBJPEG=yes
1256 DEFAULT_wxUSE_LIBTIFF=yes
1257 DEFAULT_wxUSE_ODBC=no
1258
1259 DEFAULT_wxUSE_STD_IOSTREAM=no
1260 DEFAULT_wxUSE_FILE=yes
1261 DEFAULT_wxUSE_TEXTFILE=yes
1262 DEFAULT_wxUSE_TIMEDATE=yes
1263 DEFAULT_wxUSE_WAVE=no
1264 DEFAULT_wxUSE_INTL=yes
1265 DEFAULT_wxUSE_CONFIG=yes
1266 DEFAULT_wxUSE_STREAMS=yes
1267 DEFAULT_wxUSE_SOCKETS=yes
1268 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1269 DEFAULT_wxUSE_SERIAL=yes
1270 DEFAULT_wxUSE_JOYSTICK=yes
1271 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1272 DEFAULT_wxUSE_LONGLONG=yes
1273
1274 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1275 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1276 DEFAULT_wxUSE_POSTSCRIPT=yes
1277
1278 DEFAULT_wxUSE_X_RESOURCES=no
1279 DEFAULT_wxUSE_CLIPBOARD=yes
1280 DEFAULT_wxUSE_TOOLTIPS=yes
1281 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1282 DEFAULT_wxUSE_SPLINES=yes
1283
1284 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1285 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1286 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1287
1288 DEFAULT_wxUSE_PROLOGIO=yes
1289 DEFAULT_wxUSE_RESOURCES=yes
1290 DEFAULT_wxUSE_CONSTRAINTS=yes
1291 DEFAULT_wxUSE_IPC=yes
1292 DEFAULT_wxUSE_HELP=yes
1293 DEFAULT_wxUSE_WXTREE=yes
1294 DEFAULT_wxUSE_METAFILE=yes
1295
1296 DEFAULT_wxUSE_COMMONDLGS=yes
1297 DEFAULT_wxUSE_DIRDLG=yes
1298 DEFAULT_wxUSE_TEXTDLG=yes
1299 DEFAULT_wxUSE_STARTUP_TIPS=yes
1300 DEFAULT_wxUSE_PROGRESSDLG=yes
1301 DEFAULT_wxUSE_MINIFRAME=yes
1302 DEFAULT_wxUSE_HTML=yes
1303 DEFAULT_wxUSE_FS_INET=yes
1304 DEFAULT_wxUSE_FS_ZIP=yes
1305 DEFAULT_wxUSE_BUSYINFO=yes
1306 DEFAULT_wxUSE_ZIPSTREAM=yes
1307 DEFAULT_wxUSE_VALIDATORS=yes
1308
1309 DEFAULT_wxUSE_ACCEL=yes
1310 DEFAULT_wxUSE_CARET=yes
1311 DEFAULT_wxUSE_BMPBUTTON=yes
1312 DEFAULT_wxUSE_CHECKBOX=yes
1313 DEFAULT_wxUSE_CHECKLST=yes
1314 DEFAULT_wxUSE_CHOICE=yes
1315 DEFAULT_wxUSE_COMBOBOX=yes
1316 DEFAULT_wxUSE_GAUGE=yes
1317 DEFAULT_wxUSE_GRID=yes
1318 DEFAULT_wxUSE_NEW_GRID=no
1319 DEFAULT_wxUSE_IMAGLIST=yes
1320 DEFAULT_wxUSE_LISTBOX=yes
1321 DEFAULT_wxUSE_LISTCTRL=yes
1322 DEFAULT_wxUSE_NOTEBOOK=yes
1323 DEFAULT_wxUSE_RADIOBOX=yes
1324 DEFAULT_wxUSE_RADIOBTN=yes
1325 DEFAULT_wxUSE_SASH=yes
1326 DEFAULT_wxUSE_SCROLLBAR=yes
1327 DEFAULT_wxUSE_SLIDER=yes
1328 DEFAULT_wxUSE_SPINBTN=yes
1329 DEFAULT_wxUSE_SPINCTRL=yes
1330 DEFAULT_wxUSE_SPLITTER=yes
1331 DEFAULT_wxUSE_STATBMP=yes
1332 DEFAULT_wxUSE_STATBOX=yes
1333 DEFAULT_wxUSE_STATLINE=yes
1334 DEFAULT_wxUSE_STATUSBAR=yes
1335 DEFAULT_wxUSE_TABDIALOG=no
1336 DEFAULT_wxUSE_TOOLBAR=yes
1337 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1338 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1339 DEFAULT_wxUSE_TREECTRL=yes
1340
1341 DEFAULT_wxUSE_UNICODE=no
1342 DEFAULT_wxUSE_WCSRTOMBS=no
1343
1344 DEFAULT_wxUSE_GIF=yes
1345 DEFAULT_wxUSE_PCX=yes
1346 DEFAULT_wxUSE_PNM=yes
1347 fi
1348
1349
1350
1351 for toolkit in `echo $ALL_TOOLKITS`; do
1352 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1353 if test "x$LINE" != x ; then
1354 has_toolkit_in_cache=1
1355 eval "DEFAULT_$LINE"
1356 eval "CACHE_$toolkit=1"
1357 fi
1358 done
1359
1360
1361
1362 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
1363 echo "configure:1364: checking "for --enable-gui"" >&5
1364 no_cache=0
1365 # Check whether --enable-gui or --disable-gui was given.
1366 if test "${enable_gui+set}" = set; then
1367 enableval="$enable_gui"
1368
1369 if test "$enableval" = yes; then
1370 ac_cv_use_gui='wxUSE_GUI=yes'
1371 else
1372 ac_cv_use_gui='wxUSE_GUI=no'
1373 fi
1374
1375 else
1376
1377 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1378 if test "x$LINE" != x ; then
1379 eval "DEFAULT_$LINE"
1380 else
1381 no_cache=1
1382 fi
1383
1384 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1385
1386 fi
1387
1388
1389 eval "$ac_cv_use_gui"
1390 if test "$no_cache" != 1; then
1391 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1392 fi
1393
1394 if test "$wxUSE_GUI" = yes; then
1395 echo "$ac_t""yes" 1>&6
1396 else
1397 echo "$ac_t""no" 1>&6
1398 fi
1399
1400
1401 if test "$wxUSE_GUI" = "yes"; then
1402
1403 # Check whether --with-gtk or --without-gtk was given.
1404 if test "${with_gtk+set}" = set; then
1405 withval="$with_gtk"
1406 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1407 fi
1408
1409 # Check whether --with-motif or --without-motif was given.
1410 if test "${with_motif+set}" = set; then
1411 withval="$with_motif"
1412 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1413 fi
1414
1415 # Check whether --with-wine or --without-wine was given.
1416 if test "${with_wine+set}" = set; then
1417 withval="$with_wine"
1418 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1419 fi
1420
1421 # Check whether --with-cygwin or --without-cygwin was given.
1422 if test "${with_cygwin+set}" = set; then
1423 withval="$with_cygwin"
1424 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1425 fi
1426
1427 # Check whether --with-mingw or --without-mingw was given.
1428 if test "${with_mingw+set}" = set; then
1429 withval="$with_mingw"
1430 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1431 fi
1432
1433 # Check whether --with-pm or --without-pm was given.
1434 if test "${with_pm+set}" = set; then
1435 withval="$with_pm"
1436 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1437 fi
1438
1439
1440 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1441 if test "${with_gtk_prefix+set}" = set; then
1442 withval="$with_gtk_prefix"
1443 gtk_config_prefix="$withval"
1444 else
1445 gtk_config_prefix=""
1446 fi
1447
1448 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1449 if test "${with_gtk_exec_prefix+set}" = set; then
1450 withval="$with_gtk_exec_prefix"
1451 gtk_config_exec_prefix="$withval"
1452 else
1453 gtk_config_exec_prefix=""
1454 fi
1455
1456
1457
1458 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
1459 echo "configure:1460: checking "for --with-libpng"" >&5
1460 no_cache=0
1461 # Check whether --with-libpng or --without-libpng was given.
1462 if test "${with_libpng+set}" = set; then
1463 withval="$with_libpng"
1464
1465 if test "$withval" = yes; then
1466 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1467 else
1468 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1469 fi
1470
1471 else
1472
1473 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1474 if test "x$LINE" != x ; then
1475 eval "DEFAULT_$LINE"
1476 else
1477 no_cache=1
1478 fi
1479
1480 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1481
1482 fi
1483
1484
1485 eval "$ac_cv_use_libpng"
1486 if test "$no_cache" != 1; then
1487 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1488 fi
1489
1490 if test "$wxUSE_LIBPNG" = yes; then
1491 echo "$ac_t""yes" 1>&6
1492 else
1493 echo "$ac_t""no" 1>&6
1494 fi
1495
1496
1497 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
1498 echo "configure:1499: checking "for --with-libjpeg"" >&5
1499 no_cache=0
1500 # Check whether --with-libjpeg or --without-libjpeg was given.
1501 if test "${with_libjpeg+set}" = set; then
1502 withval="$with_libjpeg"
1503
1504 if test "$withval" = yes; then
1505 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1506 else
1507 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1508 fi
1509
1510 else
1511
1512 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1513 if test "x$LINE" != x ; then
1514 eval "DEFAULT_$LINE"
1515 else
1516 no_cache=1
1517 fi
1518
1519 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1520
1521 fi
1522
1523
1524 eval "$ac_cv_use_libjpeg"
1525 if test "$no_cache" != 1; then
1526 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1527 fi
1528
1529 if test "$wxUSE_LIBJPEG" = yes; then
1530 echo "$ac_t""yes" 1>&6
1531 else
1532 echo "$ac_t""no" 1>&6
1533 fi
1534
1535
1536 echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6
1537 echo "configure:1538: checking "for --with-libtiff"" >&5
1538 no_cache=0
1539 # Check whether --with-libtiff or --without-libtiff was given.
1540 if test "${with_libtiff+set}" = set; then
1541 withval="$with_libtiff"
1542
1543 if test "$withval" = yes; then
1544 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
1545 else
1546 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
1547 fi
1548
1549 else
1550
1551 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
1552 if test "x$LINE" != x ; then
1553 eval "DEFAULT_$LINE"
1554 else
1555 no_cache=1
1556 fi
1557
1558 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
1559
1560 fi
1561
1562
1563 eval "$ac_cv_use_libtiff"
1564 if test "$no_cache" != 1; then
1565 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
1566 fi
1567
1568 if test "$wxUSE_LIBTIFF" = yes; then
1569 echo "$ac_t""yes" 1>&6
1570 else
1571 echo "$ac_t""no" 1>&6
1572 fi
1573
1574
1575 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
1576 echo "configure:1577: checking "for --with-opengl"" >&5
1577 no_cache=0
1578 # Check whether --with-opengl or --without-opengl was given.
1579 if test "${with_opengl+set}" = set; then
1580 withval="$with_opengl"
1581
1582 if test "$withval" = yes; then
1583 ac_cv_use_opengl='wxUSE_OPENGL=yes'
1584 else
1585 ac_cv_use_opengl='wxUSE_OPENGL=no'
1586 fi
1587
1588 else
1589
1590 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
1591 if test "x$LINE" != x ; then
1592 eval "DEFAULT_$LINE"
1593 else
1594 no_cache=1
1595 fi
1596
1597 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
1598
1599 fi
1600
1601
1602 eval "$ac_cv_use_opengl"
1603 if test "$no_cache" != 1; then
1604 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
1605 fi
1606
1607 if test "$wxUSE_OPENGL" = yes; then
1608 echo "$ac_t""yes" 1>&6
1609 else
1610 echo "$ac_t""no" 1>&6
1611 fi
1612
1613
1614 fi
1615
1616
1617 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
1618 echo "configure:1619: checking "for --with-dmalloc"" >&5
1619 no_cache=0
1620 # Check whether --with-dmalloc or --without-dmalloc was given.
1621 if test "${with_dmalloc+set}" = set; then
1622 withval="$with_dmalloc"
1623
1624 if test "$withval" = yes; then
1625 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
1626 else
1627 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
1628 fi
1629
1630 else
1631
1632 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
1633 if test "x$LINE" != x ; then
1634 eval "DEFAULT_$LINE"
1635 else
1636 no_cache=1
1637 fi
1638
1639 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
1640
1641 fi
1642
1643
1644 eval "$ac_cv_use_dmalloc"
1645 if test "$no_cache" != 1; then
1646 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
1647 fi
1648
1649 if test "$wxUSE_DMALLOC" = yes; then
1650 echo "$ac_t""yes" 1>&6
1651 else
1652 echo "$ac_t""no" 1>&6
1653 fi
1654
1655
1656 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
1657 echo "configure:1658: checking "for --with-zlib"" >&5
1658 no_cache=0
1659 # Check whether --with-zlib or --without-zlib was given.
1660 if test "${with_zlib+set}" = set; then
1661 withval="$with_zlib"
1662
1663 if test "$withval" = yes; then
1664 ac_cv_use_zlib='wxUSE_ZLIB=yes'
1665 else
1666 ac_cv_use_zlib='wxUSE_ZLIB=no'
1667 fi
1668
1669 else
1670
1671 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
1672 if test "x$LINE" != x ; then
1673 eval "DEFAULT_$LINE"
1674 else
1675 no_cache=1
1676 fi
1677
1678 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
1679
1680 fi
1681
1682
1683 eval "$ac_cv_use_zlib"
1684 if test "$no_cache" != 1; then
1685 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
1686 fi
1687
1688 if test "$wxUSE_ZLIB" = yes; then
1689 echo "$ac_t""yes" 1>&6
1690 else
1691 echo "$ac_t""no" 1>&6
1692 fi
1693
1694
1695 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
1696 echo "configure:1697: checking "for --with-odbc"" >&5
1697 no_cache=0
1698 # Check whether --with-odbc or --without-odbc was given.
1699 if test "${with_odbc+set}" = set; then
1700 withval="$with_odbc"
1701
1702 if test "$withval" = yes; then
1703 ac_cv_use_odbc='wxUSE_ODBC=yes'
1704 else
1705 ac_cv_use_odbc='wxUSE_ODBC=no'
1706 fi
1707
1708 else
1709
1710 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1711 if test "x$LINE" != x ; then
1712 eval "DEFAULT_$LINE"
1713 else
1714 no_cache=1
1715 fi
1716
1717 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1718
1719 fi
1720
1721
1722 eval "$ac_cv_use_odbc"
1723 if test "$no_cache" != 1; then
1724 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1725 fi
1726
1727 if test "$wxUSE_ODBC" = yes; then
1728 echo "$ac_t""yes" 1>&6
1729 else
1730 echo "$ac_t""no" 1>&6
1731 fi
1732
1733
1734
1735
1736
1737 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
1738 echo "configure:1739: checking "for --enable-shared"" >&5
1739 no_cache=0
1740 # Check whether --enable-shared or --disable-shared was given.
1741 if test "${enable_shared+set}" = set; then
1742 enableval="$enable_shared"
1743
1744 if test "$enableval" = yes; then
1745 ac_cv_use_shared='wxUSE_SHARED=yes'
1746 else
1747 ac_cv_use_shared='wxUSE_SHARED=no'
1748 fi
1749
1750 else
1751
1752 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
1753 if test "x$LINE" != x ; then
1754 eval "DEFAULT_$LINE"
1755 else
1756 no_cache=1
1757 fi
1758
1759 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
1760
1761 fi
1762
1763
1764 eval "$ac_cv_use_shared"
1765 if test "$no_cache" != 1; then
1766 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
1767 fi
1768
1769 if test "$wxUSE_SHARED" = yes; then
1770 echo "$ac_t""yes" 1>&6
1771 else
1772 echo "$ac_t""no" 1>&6
1773 fi
1774
1775
1776 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
1777 echo "configure:1778: checking "for --enable-optimise"" >&5
1778 no_cache=0
1779 # Check whether --enable-optimise or --disable-optimise was given.
1780 if test "${enable_optimise+set}" = set; then
1781 enableval="$enable_optimise"
1782
1783 if test "$enableval" = yes; then
1784 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
1785 else
1786 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
1787 fi
1788
1789 else
1790
1791 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
1792 if test "x$LINE" != x ; then
1793 eval "DEFAULT_$LINE"
1794 else
1795 no_cache=1
1796 fi
1797
1798 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
1799
1800 fi
1801
1802
1803 eval "$ac_cv_use_optimise"
1804 if test "$no_cache" != 1; then
1805 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
1806 fi
1807
1808 if test "$wxUSE_OPTIMISE" = yes; then
1809 echo "$ac_t""yes" 1>&6
1810 else
1811 echo "$ac_t""no" 1>&6
1812 fi
1813
1814
1815 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
1816 echo "configure:1817: checking "for --enable-debug"" >&5
1817 no_cache=0
1818 # Check whether --enable-debug or --disable-debug was given.
1819 if test "${enable_debug+set}" = set; then
1820 enableval="$enable_debug"
1821
1822 if test "$enableval" = yes; then
1823 ac_cv_use_debug='wxUSE_DEBUG=yes'
1824 else
1825 ac_cv_use_debug='wxUSE_DEBUG=no'
1826 fi
1827
1828 else
1829
1830 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
1831 if test "x$LINE" != x ; then
1832 eval "DEFAULT_$LINE"
1833 else
1834 no_cache=1
1835 fi
1836
1837 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
1838
1839 fi
1840
1841
1842 eval "$ac_cv_use_debug"
1843 if test "$no_cache" != 1; then
1844 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
1845 fi
1846
1847 if test "$wxUSE_DEBUG" = yes; then
1848 echo "$ac_t""yes" 1>&6
1849 else
1850 echo "$ac_t""no" 1>&6
1851 fi
1852
1853
1854 if test "$wxUSE_DEBUG" = "yes"; then
1855 DEFAULT_wxUSE_DEBUG_FLAG=yes
1856 DEFAULT_wxUSE_DEBUG_INFO=yes
1857 elif test "$wxUSE_DEBUG" = "no"; then
1858 DEFAULT_wxUSE_DEBUG_FLAG=no
1859 DEFAULT_wxUSE_DEBUG_INFO=no
1860 fi
1861
1862
1863 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
1864 echo "configure:1865: checking "for --enable-debug_flag"" >&5
1865 no_cache=0
1866 # Check whether --enable-debug_flag or --disable-debug_flag was given.
1867 if test "${enable_debug_flag+set}" = set; then
1868 enableval="$enable_debug_flag"
1869
1870 if test "$enableval" = yes; then
1871 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
1872 else
1873 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
1874 fi
1875
1876 else
1877
1878 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
1879 if test "x$LINE" != x ; then
1880 eval "DEFAULT_$LINE"
1881 else
1882 no_cache=1
1883 fi
1884
1885 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
1886
1887 fi
1888
1889
1890 eval "$ac_cv_use_debug_flag"
1891 if test "$no_cache" != 1; then
1892 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
1893 fi
1894
1895 if test "$wxUSE_DEBUG_FLAG" = yes; then
1896 echo "$ac_t""yes" 1>&6
1897 else
1898 echo "$ac_t""no" 1>&6
1899 fi
1900
1901
1902 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
1903 echo "configure:1904: checking "for --enable-debug_info"" >&5
1904 no_cache=0
1905 # Check whether --enable-debug_info or --disable-debug_info was given.
1906 if test "${enable_debug_info+set}" = set; then
1907 enableval="$enable_debug_info"
1908
1909 if test "$enableval" = yes; then
1910 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
1911 else
1912 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
1913 fi
1914
1915 else
1916
1917 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
1918 if test "x$LINE" != x ; then
1919 eval "DEFAULT_$LINE"
1920 else
1921 no_cache=1
1922 fi
1923
1924 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
1925
1926 fi
1927
1928
1929 eval "$ac_cv_use_debug_info"
1930 if test "$no_cache" != 1; then
1931 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
1932 fi
1933
1934 if test "$wxUSE_DEBUG_INFO" = yes; then
1935 echo "$ac_t""yes" 1>&6
1936 else
1937 echo "$ac_t""no" 1>&6
1938 fi
1939
1940
1941 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
1942 echo "configure:1943: checking "for --enable-debug_gdb"" >&5
1943 no_cache=0
1944 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
1945 if test "${enable_debug_gdb+set}" = set; then
1946 enableval="$enable_debug_gdb"
1947
1948 if test "$enableval" = yes; then
1949 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
1950 else
1951 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
1952 fi
1953
1954 else
1955
1956 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
1957 if test "x$LINE" != x ; then
1958 eval "DEFAULT_$LINE"
1959 else
1960 no_cache=1
1961 fi
1962
1963 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
1964
1965 fi
1966
1967
1968 eval "$ac_cv_use_debug_gdb"
1969 if test "$no_cache" != 1; then
1970 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
1971 fi
1972
1973 if test "$wxUSE_DEBUG_GDB" = yes; then
1974 echo "$ac_t""yes" 1>&6
1975 else
1976 echo "$ac_t""no" 1>&6
1977 fi
1978
1979
1980 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
1981 echo "configure:1982: checking "for --enable-debug_cntxt"" >&5
1982 no_cache=0
1983 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
1984 if test "${enable_debug_cntxt+set}" = set; then
1985 enableval="$enable_debug_cntxt"
1986
1987 if test "$enableval" = yes; then
1988 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
1989 else
1990 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
1991 fi
1992
1993 else
1994
1995 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
1996 if test "x$LINE" != x ; then
1997 eval "DEFAULT_$LINE"
1998 else
1999 no_cache=1
2000 fi
2001
2002 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2003
2004 fi
2005
2006
2007 eval "$ac_cv_use_debug_cntxt"
2008 if test "$no_cache" != 1; then
2009 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2010 fi
2011
2012 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2013 echo "$ac_t""yes" 1>&6
2014 else
2015 echo "$ac_t""no" 1>&6
2016 fi
2017
2018
2019 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
2020 echo "configure:2021: checking "for --enable-mem_tracing"" >&5
2021 no_cache=0
2022 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2023 if test "${enable_mem_tracing+set}" = set; then
2024 enableval="$enable_mem_tracing"
2025
2026 if test "$enableval" = yes; then
2027 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2028 else
2029 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2030 fi
2031
2032 else
2033
2034 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2035 if test "x$LINE" != x ; then
2036 eval "DEFAULT_$LINE"
2037 else
2038 no_cache=1
2039 fi
2040
2041 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2042
2043 fi
2044
2045
2046 eval "$ac_cv_use_mem_tracing"
2047 if test "$no_cache" != 1; then
2048 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2049 fi
2050
2051 if test "$wxUSE_MEM_TRACING" = yes; then
2052 echo "$ac_t""yes" 1>&6
2053 else
2054 echo "$ac_t""no" 1>&6
2055 fi
2056
2057
2058 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
2059 echo "configure:2060: checking "for --enable-profile"" >&5
2060 no_cache=0
2061 # Check whether --enable-profile or --disable-profile was given.
2062 if test "${enable_profile+set}" = set; then
2063 enableval="$enable_profile"
2064
2065 if test "$enableval" = yes; then
2066 ac_cv_use_profile='wxUSE_PROFILE=yes'
2067 else
2068 ac_cv_use_profile='wxUSE_PROFILE=no'
2069 fi
2070
2071 else
2072
2073 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2074 if test "x$LINE" != x ; then
2075 eval "DEFAULT_$LINE"
2076 else
2077 no_cache=1
2078 fi
2079
2080 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2081
2082 fi
2083
2084
2085 eval "$ac_cv_use_profile"
2086 if test "$no_cache" != 1; then
2087 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2088 fi
2089
2090 if test "$wxUSE_PROFILE" = yes; then
2091 echo "$ac_t""yes" 1>&6
2092 else
2093 echo "$ac_t""no" 1>&6
2094 fi
2095
2096
2097 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
2098 echo "configure:2099: checking "for --enable-no_rtti"" >&5
2099 no_cache=0
2100 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2101 if test "${enable_no_rtti+set}" = set; then
2102 enableval="$enable_no_rtti"
2103
2104 if test "$enableval" = yes; then
2105 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2106 else
2107 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2108 fi
2109
2110 else
2111
2112 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2113 if test "x$LINE" != x ; then
2114 eval "DEFAULT_$LINE"
2115 else
2116 no_cache=1
2117 fi
2118
2119 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2120
2121 fi
2122
2123
2124 eval "$ac_cv_use_no_rtti"
2125 if test "$no_cache" != 1; then
2126 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2127 fi
2128
2129 if test "$wxUSE_NO_RTTI" = yes; then
2130 echo "$ac_t""yes" 1>&6
2131 else
2132 echo "$ac_t""no" 1>&6
2133 fi
2134
2135
2136 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
2137 echo "configure:2138: checking "for --enable-no_exceptions"" >&5
2138 no_cache=0
2139 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2140 if test "${enable_no_exceptions+set}" = set; then
2141 enableval="$enable_no_exceptions"
2142
2143 if test "$enableval" = yes; then
2144 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2145 else
2146 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2147 fi
2148
2149 else
2150
2151 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2152 if test "x$LINE" != x ; then
2153 eval "DEFAULT_$LINE"
2154 else
2155 no_cache=1
2156 fi
2157
2158 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2159
2160 fi
2161
2162
2163 eval "$ac_cv_use_no_exceptions"
2164 if test "$no_cache" != 1; then
2165 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2166 fi
2167
2168 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2169 echo "$ac_t""yes" 1>&6
2170 else
2171 echo "$ac_t""no" 1>&6
2172 fi
2173
2174
2175 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
2176 echo "configure:2177: checking "for --enable-permissive"" >&5
2177 no_cache=0
2178 # Check whether --enable-permissive or --disable-permissive was given.
2179 if test "${enable_permissive+set}" = set; then
2180 enableval="$enable_permissive"
2181
2182 if test "$enableval" = yes; then
2183 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2184 else
2185 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2186 fi
2187
2188 else
2189
2190 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2191 if test "x$LINE" != x ; then
2192 eval "DEFAULT_$LINE"
2193 else
2194 no_cache=1
2195 fi
2196
2197 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2198
2199 fi
2200
2201
2202 eval "$ac_cv_use_permissive"
2203 if test "$no_cache" != 1; then
2204 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2205 fi
2206
2207 if test "$wxUSE_PERMISSIVE" = yes; then
2208 echo "$ac_t""yes" 1>&6
2209 else
2210 echo "$ac_t""no" 1>&6
2211 fi
2212
2213
2214 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
2215 echo "configure:2216: checking "for --enable-no_deps"" >&5
2216 no_cache=0
2217 # Check whether --enable-no_deps or --disable-no_deps was given.
2218 if test "${enable_no_deps+set}" = set; then
2219 enableval="$enable_no_deps"
2220
2221 if test "$enableval" = yes; then
2222 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2223 else
2224 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2225 fi
2226
2227 else
2228
2229 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2230 if test "x$LINE" != x ; then
2231 eval "DEFAULT_$LINE"
2232 else
2233 no_cache=1
2234 fi
2235
2236 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2237
2238 fi
2239
2240
2241 eval "$ac_cv_use_no_deps"
2242 if test "$no_cache" != 1; then
2243 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2244 fi
2245
2246 if test "$wxUSE_NO_DEPS" = yes; then
2247 echo "$ac_t""yes" 1>&6
2248 else
2249 echo "$ac_t""no" 1>&6
2250 fi
2251
2252
2253
2254
2255 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
2256 echo "configure:2257: checking "for --enable-intl"" >&5
2257 no_cache=0
2258 # Check whether --enable-intl or --disable-intl was given.
2259 if test "${enable_intl+set}" = set; then
2260 enableval="$enable_intl"
2261
2262 if test "$enableval" = yes; then
2263 ac_cv_use_intl='wxUSE_INTL=yes'
2264 else
2265 ac_cv_use_intl='wxUSE_INTL=no'
2266 fi
2267
2268 else
2269
2270 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2271 if test "x$LINE" != x ; then
2272 eval "DEFAULT_$LINE"
2273 else
2274 no_cache=1
2275 fi
2276
2277 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2278
2279 fi
2280
2281
2282 eval "$ac_cv_use_intl"
2283 if test "$no_cache" != 1; then
2284 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2285 fi
2286
2287 if test "$wxUSE_INTL" = yes; then
2288 echo "$ac_t""yes" 1>&6
2289 else
2290 echo "$ac_t""no" 1>&6
2291 fi
2292
2293
2294 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
2295 echo "configure:2296: checking "for --enable-config"" >&5
2296 no_cache=0
2297 # Check whether --enable-config or --disable-config was given.
2298 if test "${enable_config+set}" = set; then
2299 enableval="$enable_config"
2300
2301 if test "$enableval" = yes; then
2302 ac_cv_use_config='wxUSE_CONFIG=yes'
2303 else
2304 ac_cv_use_config='wxUSE_CONFIG=no'
2305 fi
2306
2307 else
2308
2309 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2310 if test "x$LINE" != x ; then
2311 eval "DEFAULT_$LINE"
2312 else
2313 no_cache=1
2314 fi
2315
2316 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2317
2318 fi
2319
2320
2321 eval "$ac_cv_use_config"
2322 if test "$no_cache" != 1; then
2323 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2324 fi
2325
2326 if test "$wxUSE_CONFIG" = yes; then
2327 echo "$ac_t""yes" 1>&6
2328 else
2329 echo "$ac_t""no" 1>&6
2330 fi
2331
2332
2333 if test "$wxUSE_GUI" = "yes"; then
2334
2335 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
2336 echo "configure:2337: checking "for --enable-sockets"" >&5
2337 no_cache=0
2338 # Check whether --enable-sockets or --disable-sockets was given.
2339 if test "${enable_sockets+set}" = set; then
2340 enableval="$enable_sockets"
2341
2342 if test "$enableval" = yes; then
2343 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2344 else
2345 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2346 fi
2347
2348 else
2349
2350 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2351 if test "x$LINE" != x ; then
2352 eval "DEFAULT_$LINE"
2353 else
2354 no_cache=1
2355 fi
2356
2357 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2358
2359 fi
2360
2361
2362 eval "$ac_cv_use_sockets"
2363 if test "$no_cache" != 1; then
2364 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2365 fi
2366
2367 if test "$wxUSE_SOCKETS" = yes; then
2368 echo "$ac_t""yes" 1>&6
2369 else
2370 echo "$ac_t""no" 1>&6
2371 fi
2372
2373 else
2374 wxUSE_SOCKETS=no
2375 fi
2376
2377
2378 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
2379 echo "configure:2380: checking "for --enable-dialupman"" >&5
2380 no_cache=0
2381 # Check whether --enable-dialupman or --disable-dialupman was given.
2382 if test "${enable_dialupman+set}" = set; then
2383 enableval="$enable_dialupman"
2384
2385 if test "$enableval" = yes; then
2386 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
2387 else
2388 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
2389 fi
2390
2391 else
2392
2393 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
2394 if test "x$LINE" != x ; then
2395 eval "DEFAULT_$LINE"
2396 else
2397 no_cache=1
2398 fi
2399
2400 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
2401
2402 fi
2403
2404
2405 eval "$ac_cv_use_dialupman"
2406 if test "$no_cache" != 1; then
2407 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
2408 fi
2409
2410 if test "$wxUSE_DIALUP_MANAGER" = yes; then
2411 echo "$ac_t""yes" 1>&6
2412 else
2413 echo "$ac_t""no" 1>&6
2414 fi
2415
2416
2417 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
2418 echo "configure:2419: checking "for --enable-ipc"" >&5
2419 no_cache=0
2420 # Check whether --enable-ipc or --disable-ipc was given.
2421 if test "${enable_ipc+set}" = set; then
2422 enableval="$enable_ipc"
2423
2424 if test "$enableval" = yes; then
2425 ac_cv_use_ipc='wxUSE_IPC=yes'
2426 else
2427 ac_cv_use_ipc='wxUSE_IPC=no'
2428 fi
2429
2430 else
2431
2432 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2433 if test "x$LINE" != x ; then
2434 eval "DEFAULT_$LINE"
2435 else
2436 no_cache=1
2437 fi
2438
2439 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2440
2441 fi
2442
2443
2444 eval "$ac_cv_use_ipc"
2445 if test "$no_cache" != 1; then
2446 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2447 fi
2448
2449 if test "$wxUSE_IPC" = yes; then
2450 echo "$ac_t""yes" 1>&6
2451 else
2452 echo "$ac_t""no" 1>&6
2453 fi
2454
2455
2456 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
2457 echo "configure:2458: checking "for --enable-apple_ieee"" >&5
2458 no_cache=0
2459 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2460 if test "${enable_apple_ieee+set}" = set; then
2461 enableval="$enable_apple_ieee"
2462
2463 if test "$enableval" = yes; then
2464 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2465 else
2466 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2467 fi
2468
2469 else
2470
2471 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2472 if test "x$LINE" != x ; then
2473 eval "DEFAULT_$LINE"
2474 else
2475 no_cache=1
2476 fi
2477
2478 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2479
2480 fi
2481
2482
2483 eval "$ac_cv_use_apple_ieee"
2484 if test "$no_cache" != 1; then
2485 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2486 fi
2487
2488 if test "$wxUSE_APPLE_IEEE" = yes; then
2489 echo "$ac_t""yes" 1>&6
2490 else
2491 echo "$ac_t""no" 1>&6
2492 fi
2493
2494
2495 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
2496 echo "configure:2497: checking "for --enable-timedate"" >&5
2497 no_cache=0
2498 # Check whether --enable-timedate or --disable-timedate was given.
2499 if test "${enable_timedate+set}" = set; then
2500 enableval="$enable_timedate"
2501
2502 if test "$enableval" = yes; then
2503 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2504 else
2505 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2506 fi
2507
2508 else
2509
2510 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2511 if test "x$LINE" != x ; then
2512 eval "DEFAULT_$LINE"
2513 else
2514 no_cache=1
2515 fi
2516
2517 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2518
2519 fi
2520
2521
2522 eval "$ac_cv_use_timedate"
2523 if test "$no_cache" != 1; then
2524 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2525 fi
2526
2527 if test "$wxUSE_TIMEDATE" = yes; then
2528 echo "$ac_t""yes" 1>&6
2529 else
2530 echo "$ac_t""no" 1>&6
2531 fi
2532
2533
2534 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
2535 echo "configure:2536: checking "for --enable-wave"" >&5
2536 no_cache=0
2537 # Check whether --enable-wave or --disable-wave was given.
2538 if test "${enable_wave+set}" = set; then
2539 enableval="$enable_wave"
2540
2541 if test "$enableval" = yes; then
2542 ac_cv_use_wave='wxUSE_WAVE=yes'
2543 else
2544 ac_cv_use_wave='wxUSE_WAVE=no'
2545 fi
2546
2547 else
2548
2549 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2550 if test "x$LINE" != x ; then
2551 eval "DEFAULT_$LINE"
2552 else
2553 no_cache=1
2554 fi
2555
2556 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2557
2558 fi
2559
2560
2561 eval "$ac_cv_use_wave"
2562 if test "$no_cache" != 1; then
2563 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2564 fi
2565
2566 if test "$wxUSE_WAVE" = yes; then
2567 echo "$ac_t""yes" 1>&6
2568 else
2569 echo "$ac_t""no" 1>&6
2570 fi
2571
2572
2573 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
2574 echo "configure:2575: checking "for --enable-fraction"" >&5
2575 no_cache=0
2576 # Check whether --enable-fraction or --disable-fraction was given.
2577 if test "${enable_fraction+set}" = set; then
2578 enableval="$enable_fraction"
2579
2580 if test "$enableval" = yes; then
2581 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2582 else
2583 ac_cv_use_fraction='wxUSE_FRACTION=no'
2584 fi
2585
2586 else
2587
2588 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2589 if test "x$LINE" != x ; then
2590 eval "DEFAULT_$LINE"
2591 else
2592 no_cache=1
2593 fi
2594
2595 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2596
2597 fi
2598
2599
2600 eval "$ac_cv_use_fraction"
2601 if test "$no_cache" != 1; then
2602 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2603 fi
2604
2605 if test "$wxUSE_FRACTION" = yes; then
2606 echo "$ac_t""yes" 1>&6
2607 else
2608 echo "$ac_t""no" 1>&6
2609 fi
2610
2611
2612 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
2613 echo "configure:2614: checking "for --enable-dynlib"" >&5
2614 no_cache=0
2615 # Check whether --enable-dynlib or --disable-dynlib was given.
2616 if test "${enable_dynlib+set}" = set; then
2617 enableval="$enable_dynlib"
2618
2619 if test "$enableval" = yes; then
2620 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2621 else
2622 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2623 fi
2624
2625 else
2626
2627 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2628 if test "x$LINE" != x ; then
2629 eval "DEFAULT_$LINE"
2630 else
2631 no_cache=1
2632 fi
2633
2634 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2635
2636 fi
2637
2638
2639 eval "$ac_cv_use_dynlib"
2640 if test "$no_cache" != 1; then
2641 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2642 fi
2643
2644 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2645 echo "$ac_t""yes" 1>&6
2646 else
2647 echo "$ac_t""no" 1>&6
2648 fi
2649
2650
2651 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
2652 echo "configure:2653: checking "for --enable-longlong"" >&5
2653 no_cache=0
2654 # Check whether --enable-longlong or --disable-longlong was given.
2655 if test "${enable_longlong+set}" = set; then
2656 enableval="$enable_longlong"
2657
2658 if test "$enableval" = yes; then
2659 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2660 else
2661 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2662 fi
2663
2664 else
2665
2666 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2667 if test "x$LINE" != x ; then
2668 eval "DEFAULT_$LINE"
2669 else
2670 no_cache=1
2671 fi
2672
2673 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2674
2675 fi
2676
2677
2678 eval "$ac_cv_use_longlong"
2679 if test "$no_cache" != 1; then
2680 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2681 fi
2682
2683 if test "$wxUSE_LONGLONG" = yes; then
2684 echo "$ac_t""yes" 1>&6
2685 else
2686 echo "$ac_t""no" 1>&6
2687 fi
2688
2689
2690 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
2691 echo "configure:2692: checking "for --enable-log"" >&5
2692 no_cache=0
2693 # Check whether --enable-log or --disable-log was given.
2694 if test "${enable_log+set}" = set; then
2695 enableval="$enable_log"
2696
2697 if test "$enableval" = yes; then
2698 ac_cv_use_log='wxUSE_LOG=yes'
2699 else
2700 ac_cv_use_log='wxUSE_LOG=no'
2701 fi
2702
2703 else
2704
2705 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
2706 if test "x$LINE" != x ; then
2707 eval "DEFAULT_$LINE"
2708 else
2709 no_cache=1
2710 fi
2711
2712 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
2713
2714 fi
2715
2716
2717 eval "$ac_cv_use_log"
2718 if test "$no_cache" != 1; then
2719 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
2720 fi
2721
2722 if test "$wxUSE_LOG" = yes; then
2723 echo "$ac_t""yes" 1>&6
2724 else
2725 echo "$ac_t""no" 1>&6
2726 fi
2727
2728
2729 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
2730 echo "configure:2731: checking "for --enable-streams"" >&5
2731 no_cache=0
2732 # Check whether --enable-streams or --disable-streams was given.
2733 if test "${enable_streams+set}" = set; then
2734 enableval="$enable_streams"
2735
2736 if test "$enableval" = yes; then
2737 ac_cv_use_streams='wxUSE_STREAMS=yes'
2738 else
2739 ac_cv_use_streams='wxUSE_STREAMS=no'
2740 fi
2741
2742 else
2743
2744 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
2745 if test "x$LINE" != x ; then
2746 eval "DEFAULT_$LINE"
2747 else
2748 no_cache=1
2749 fi
2750
2751 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
2752
2753 fi
2754
2755
2756 eval "$ac_cv_use_streams"
2757 if test "$no_cache" != 1; then
2758 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
2759 fi
2760
2761 if test "$wxUSE_STREAMS" = yes; then
2762 echo "$ac_t""yes" 1>&6
2763 else
2764 echo "$ac_t""no" 1>&6
2765 fi
2766
2767
2768 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
2769 echo "configure:2770: checking "for --enable-file"" >&5
2770 no_cache=0
2771 # Check whether --enable-file or --disable-file was given.
2772 if test "${enable_file+set}" = set; then
2773 enableval="$enable_file"
2774
2775 if test "$enableval" = yes; then
2776 ac_cv_use_file='wxUSE_FILE=yes'
2777 else
2778 ac_cv_use_file='wxUSE_FILE=no'
2779 fi
2780
2781 else
2782
2783 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
2784 if test "x$LINE" != x ; then
2785 eval "DEFAULT_$LINE"
2786 else
2787 no_cache=1
2788 fi
2789
2790 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
2791
2792 fi
2793
2794
2795 eval "$ac_cv_use_file"
2796 if test "$no_cache" != 1; then
2797 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
2798 fi
2799
2800 if test "$wxUSE_FILE" = yes; then
2801 echo "$ac_t""yes" 1>&6
2802 else
2803 echo "$ac_t""no" 1>&6
2804 fi
2805
2806
2807 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
2808 echo "configure:2809: checking "for --enable-textfile"" >&5
2809 no_cache=0
2810 # Check whether --enable-textfile or --disable-textfile was given.
2811 if test "${enable_textfile+set}" = set; then
2812 enableval="$enable_textfile"
2813
2814 if test "$enableval" = yes; then
2815 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
2816 else
2817 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
2818 fi
2819
2820 else
2821
2822 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
2823 if test "x$LINE" != x ; then
2824 eval "DEFAULT_$LINE"
2825 else
2826 no_cache=1
2827 fi
2828
2829 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
2830
2831 fi
2832
2833
2834 eval "$ac_cv_use_textfile"
2835 if test "$no_cache" != 1; then
2836 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
2837 fi
2838
2839 if test "$wxUSE_TEXTFILE" = yes; then
2840 echo "$ac_t""yes" 1>&6
2841 else
2842 echo "$ac_t""no" 1>&6
2843 fi
2844
2845
2846 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
2847 echo "configure:2848: checking "for --enable-unicode"" >&5
2848 no_cache=0
2849 # Check whether --enable-unicode or --disable-unicode was given.
2850 if test "${enable_unicode+set}" = set; then
2851 enableval="$enable_unicode"
2852
2853 if test "$enableval" = yes; then
2854 ac_cv_use_unicode='wxUSE_UNICODE=yes'
2855 else
2856 ac_cv_use_unicode='wxUSE_UNICODE=no'
2857 fi
2858
2859 else
2860
2861 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
2862 if test "x$LINE" != x ; then
2863 eval "DEFAULT_$LINE"
2864 else
2865 no_cache=1
2866 fi
2867
2868 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
2869
2870 fi
2871
2872
2873 eval "$ac_cv_use_unicode"
2874 if test "$no_cache" != 1; then
2875 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
2876 fi
2877
2878 if test "$wxUSE_UNICODE" = yes; then
2879 echo "$ac_t""yes" 1>&6
2880 else
2881 echo "$ac_t""no" 1>&6
2882 fi
2883
2884
2885 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
2886 echo "configure:2887: checking "for --enable-wcsrtombs"" >&5
2887 no_cache=0
2888 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
2889 if test "${enable_wcsrtombs+set}" = set; then
2890 enableval="$enable_wcsrtombs"
2891
2892 if test "$enableval" = yes; then
2893 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
2894 else
2895 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
2896 fi
2897
2898 else
2899
2900 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
2901 if test "x$LINE" != x ; then
2902 eval "DEFAULT_$LINE"
2903 else
2904 no_cache=1
2905 fi
2906
2907 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
2908
2909 fi
2910
2911
2912 eval "$ac_cv_use_wcsrtombs"
2913 if test "$no_cache" != 1; then
2914 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
2915 fi
2916
2917 if test "$wxUSE_WCSRTOMBS" = yes; then
2918 echo "$ac_t""yes" 1>&6
2919 else
2920 echo "$ac_t""no" 1>&6
2921 fi
2922
2923
2924 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
2925 echo "configure:2926: checking "for --enable-wxprintfv"" >&5
2926 no_cache=0
2927 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
2928 if test "${enable_wxprintfv+set}" = set; then
2929 enableval="$enable_wxprintfv"
2930
2931 if test "$enableval" = yes; then
2932 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
2933 else
2934 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
2935 fi
2936
2937 else
2938
2939 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
2940 if test "x$LINE" != x ; then
2941 eval "DEFAULT_$LINE"
2942 else
2943 no_cache=1
2944 fi
2945
2946 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
2947
2948 fi
2949
2950
2951 eval "$ac_cv_use_wxprintfv"
2952 if test "$no_cache" != 1; then
2953 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
2954 fi
2955
2956 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
2957 echo "$ac_t""yes" 1>&6
2958 else
2959 echo "$ac_t""no" 1>&6
2960 fi
2961
2962
2963 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
2964 echo "configure:2965: checking "for --enable-joystick"" >&5
2965 no_cache=0
2966 # Check whether --enable-joystick or --disable-joystick was given.
2967 if test "${enable_joystick+set}" = set; then
2968 enableval="$enable_joystick"
2969
2970 if test "$enableval" = yes; then
2971 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
2972 else
2973 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
2974 fi
2975
2976 else
2977
2978 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
2979 if test "x$LINE" != x ; then
2980 eval "DEFAULT_$LINE"
2981 else
2982 no_cache=1
2983 fi
2984
2985 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
2986
2987 fi
2988
2989
2990 eval "$ac_cv_use_joystick"
2991 if test "$no_cache" != 1; then
2992 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
2993 fi
2994
2995 if test "$wxUSE_JOYSTICK" = yes; then
2996 echo "$ac_t""yes" 1>&6
2997 else
2998 echo "$ac_t""no" 1>&6
2999 fi
3000
3001
3002 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
3003 echo "configure:3004: checking "for --enable-std_iostreams"" >&5
3004 no_cache=0
3005 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3006 if test "${enable_std_iostreams+set}" = set; then
3007 enableval="$enable_std_iostreams"
3008
3009 if test "$enableval" = yes; then
3010 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3011 else
3012 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3013 fi
3014
3015 else
3016
3017 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3018 if test "x$LINE" != x ; then
3019 eval "DEFAULT_$LINE"
3020 else
3021 no_cache=1
3022 fi
3023
3024 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3025
3026 fi
3027
3028
3029 eval "$ac_cv_use_std_iostreams"
3030 if test "$no_cache" != 1; then
3031 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3032 fi
3033
3034 if test "$wxUSE_STD_IOSTREAM" = yes; then
3035 echo "$ac_t""yes" 1>&6
3036 else
3037 echo "$ac_t""no" 1>&6
3038 fi
3039
3040
3041 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
3042 echo "configure:3043: checking "for --enable-fs_inet"" >&5
3043 no_cache=0
3044 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3045 if test "${enable_fs_inet+set}" = set; then
3046 enableval="$enable_fs_inet"
3047
3048 if test "$enableval" = yes; then
3049 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3050 else
3051 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3052 fi
3053
3054 else
3055
3056 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3057 if test "x$LINE" != x ; then
3058 eval "DEFAULT_$LINE"
3059 else
3060 no_cache=1
3061 fi
3062
3063 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3064
3065 fi
3066
3067
3068 eval "$ac_cv_use_fs_inet"
3069 if test "$no_cache" != 1; then
3070 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3071 fi
3072
3073 if test "$wxUSE_FS_INET" = yes; then
3074 echo "$ac_t""yes" 1>&6
3075 else
3076 echo "$ac_t""no" 1>&6
3077 fi
3078
3079
3080 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
3081 echo "configure:3082: checking "for --enable-fs_zip"" >&5
3082 no_cache=0
3083 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3084 if test "${enable_fs_zip+set}" = set; then
3085 enableval="$enable_fs_zip"
3086
3087 if test "$enableval" = yes; then
3088 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3089 else
3090 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3091 fi
3092
3093 else
3094
3095 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3096 if test "x$LINE" != x ; then
3097 eval "DEFAULT_$LINE"
3098 else
3099 no_cache=1
3100 fi
3101
3102 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3103
3104 fi
3105
3106
3107 eval "$ac_cv_use_fs_zip"
3108 if test "$no_cache" != 1; then
3109 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3110 fi
3111
3112 if test "$wxUSE_FS_ZIP" = yes; then
3113 echo "$ac_t""yes" 1>&6
3114 else
3115 echo "$ac_t""no" 1>&6
3116 fi
3117
3118
3119 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
3120 echo "configure:3121: checking "for --enable-zipstream"" >&5
3121 no_cache=0
3122 # Check whether --enable-zipstream or --disable-zipstream was given.
3123 if test "${enable_zipstream+set}" = set; then
3124 enableval="$enable_zipstream"
3125
3126 if test "$enableval" = yes; then
3127 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3128 else
3129 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3130 fi
3131
3132 else
3133
3134 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3135 if test "x$LINE" != x ; then
3136 eval "DEFAULT_$LINE"
3137 else
3138 no_cache=1
3139 fi
3140
3141 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3142
3143 fi
3144
3145
3146 eval "$ac_cv_use_zipstream"
3147 if test "$no_cache" != 1; then
3148 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3149 fi
3150
3151 if test "$wxUSE_ZIPSTREAM" = yes; then
3152 echo "$ac_t""yes" 1>&6
3153 else
3154 echo "$ac_t""no" 1>&6
3155 fi
3156
3157
3158
3159
3160 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
3161 echo "configure:3162: checking "for --enable-threads"" >&5
3162 no_cache=0
3163 # Check whether --enable-threads or --disable-threads was given.
3164 if test "${enable_threads+set}" = set; then
3165 enableval="$enable_threads"
3166
3167 if test "$enableval" = yes; then
3168 ac_cv_use_threads='wxUSE_THREADS=yes'
3169 else
3170 ac_cv_use_threads='wxUSE_THREADS=no'
3171 fi
3172
3173 else
3174
3175 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3176 if test "x$LINE" != x ; then
3177 eval "DEFAULT_$LINE"
3178 else
3179 no_cache=1
3180 fi
3181
3182 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3183
3184 fi
3185
3186
3187 eval "$ac_cv_use_threads"
3188 if test "$no_cache" != 1; then
3189 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3190 fi
3191
3192 if test "$wxUSE_THREADS" = yes; then
3193 echo "$ac_t""yes" 1>&6
3194 else
3195 echo "$ac_t""no" 1>&6
3196 fi
3197
3198
3199 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
3200 echo "configure:3201: checking "for --enable-serial"" >&5
3201 no_cache=0
3202 # Check whether --enable-serial or --disable-serial was given.
3203 if test "${enable_serial+set}" = set; then
3204 enableval="$enable_serial"
3205
3206 if test "$enableval" = yes; then
3207 ac_cv_use_serial='wxUSE_SERIAL=yes'
3208 else
3209 ac_cv_use_serial='wxUSE_SERIAL=no'
3210 fi
3211
3212 else
3213
3214 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3215 if test "x$LINE" != x ; then
3216 eval "DEFAULT_$LINE"
3217 else
3218 no_cache=1
3219 fi
3220
3221 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3222
3223 fi
3224
3225
3226 eval "$ac_cv_use_serial"
3227 if test "$no_cache" != 1; then
3228 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3229 fi
3230
3231 if test "$wxUSE_SERIAL" = yes; then
3232 echo "$ac_t""yes" 1>&6
3233 else
3234 echo "$ac_t""no" 1>&6
3235 fi
3236
3237
3238 if test "$wxUSE_GUI" = "yes"; then
3239
3240
3241
3242 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
3243 echo "configure:3244: checking "for --enable-docview"" >&5
3244 no_cache=0
3245 # Check whether --enable-docview or --disable-docview was given.
3246 if test "${enable_docview+set}" = set; then
3247 enableval="$enable_docview"
3248
3249 if test "$enableval" = yes; then
3250 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3251 else
3252 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3253 fi
3254
3255 else
3256
3257 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3258 if test "x$LINE" != x ; then
3259 eval "DEFAULT_$LINE"
3260 else
3261 no_cache=1
3262 fi
3263
3264 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3265
3266 fi
3267
3268
3269 eval "$ac_cv_use_docview"
3270 if test "$no_cache" != 1; then
3271 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3272 fi
3273
3274 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3275 echo "$ac_t""yes" 1>&6
3276 else
3277 echo "$ac_t""no" 1>&6
3278 fi
3279
3280
3281 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
3282 echo "configure:3283: checking "for --enable-help"" >&5
3283 no_cache=0
3284 # Check whether --enable-help or --disable-help was given.
3285 if test "${enable_help+set}" = set; then
3286 enableval="$enable_help"
3287
3288 if test "$enableval" = yes; then
3289 ac_cv_use_help='wxUSE_HELP=yes'
3290 else
3291 ac_cv_use_help='wxUSE_HELP=no'
3292 fi
3293
3294 else
3295
3296 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3297 if test "x$LINE" != x ; then
3298 eval "DEFAULT_$LINE"
3299 else
3300 no_cache=1
3301 fi
3302
3303 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3304
3305 fi
3306
3307
3308 eval "$ac_cv_use_help"
3309 if test "$no_cache" != 1; then
3310 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3311 fi
3312
3313 if test "$wxUSE_HELP" = yes; then
3314 echo "$ac_t""yes" 1>&6
3315 else
3316 echo "$ac_t""no" 1>&6
3317 fi
3318
3319
3320 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
3321 echo "configure:3322: checking "for --enable-constraints"" >&5
3322 no_cache=0
3323 # Check whether --enable-constraints or --disable-constraints was given.
3324 if test "${enable_constraints+set}" = set; then
3325 enableval="$enable_constraints"
3326
3327 if test "$enableval" = yes; then
3328 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3329 else
3330 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3331 fi
3332
3333 else
3334
3335 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3336 if test "x$LINE" != x ; then
3337 eval "DEFAULT_$LINE"
3338 else
3339 no_cache=1
3340 fi
3341
3342 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3343
3344 fi
3345
3346
3347 eval "$ac_cv_use_constraints"
3348 if test "$no_cache" != 1; then
3349 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3350 fi
3351
3352 if test "$wxUSE_CONSTRAINTS" = yes; then
3353 echo "$ac_t""yes" 1>&6
3354 else
3355 echo "$ac_t""no" 1>&6
3356 fi
3357
3358
3359 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
3360 echo "configure:3361: checking "for --enable-printarch"" >&5
3361 no_cache=0
3362 # Check whether --enable-printarch or --disable-printarch was given.
3363 if test "${enable_printarch+set}" = set; then
3364 enableval="$enable_printarch"
3365
3366 if test "$enableval" = yes; then
3367 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3368 else
3369 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3370 fi
3371
3372 else
3373
3374 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3375 if test "x$LINE" != x ; then
3376 eval "DEFAULT_$LINE"
3377 else
3378 no_cache=1
3379 fi
3380
3381 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3382
3383 fi
3384
3385
3386 eval "$ac_cv_use_printarch"
3387 if test "$no_cache" != 1; then
3388 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3389 fi
3390
3391 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3392 echo "$ac_t""yes" 1>&6
3393 else
3394 echo "$ac_t""no" 1>&6
3395 fi
3396
3397
3398 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
3399 echo "configure:3400: checking "for --enable-mdi"" >&5
3400 no_cache=0
3401 # Check whether --enable-mdi or --disable-mdi was given.
3402 if test "${enable_mdi+set}" = set; then
3403 enableval="$enable_mdi"
3404
3405 if test "$enableval" = yes; then
3406 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3407 else
3408 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3409 fi
3410
3411 else
3412
3413 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3414 if test "x$LINE" != x ; then
3415 eval "DEFAULT_$LINE"
3416 else
3417 no_cache=1
3418 fi
3419
3420 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3421
3422 fi
3423
3424
3425 eval "$ac_cv_use_mdi"
3426 if test "$no_cache" != 1; then
3427 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3428 fi
3429
3430 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3431 echo "$ac_t""yes" 1>&6
3432 else
3433 echo "$ac_t""no" 1>&6
3434 fi
3435
3436
3437
3438 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
3439 echo "configure:3440: checking "for --enable-postscript"" >&5
3440 no_cache=0
3441 # Check whether --enable-postscript or --disable-postscript was given.
3442 if test "${enable_postscript+set}" = set; then
3443 enableval="$enable_postscript"
3444
3445 if test "$enableval" = yes; then
3446 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3447 else
3448 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3449 fi
3450
3451 else
3452
3453 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3454 if test "x$LINE" != x ; then
3455 eval "DEFAULT_$LINE"
3456 else
3457 no_cache=1
3458 fi
3459
3460 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3461
3462 fi
3463
3464
3465 eval "$ac_cv_use_postscript"
3466 if test "$no_cache" != 1; then
3467 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3468 fi
3469
3470 if test "$wxUSE_POSTSCRIPT" = yes; then
3471 echo "$ac_t""yes" 1>&6
3472 else
3473 echo "$ac_t""no" 1>&6
3474 fi
3475
3476
3477
3478
3479 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
3480 echo "configure:3481: checking "for --enable-prologio"" >&5
3481 no_cache=0
3482 # Check whether --enable-prologio or --disable-prologio was given.
3483 if test "${enable_prologio+set}" = set; then
3484 enableval="$enable_prologio"
3485
3486 if test "$enableval" = yes; then
3487 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3488 else
3489 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3490 fi
3491
3492 else
3493
3494 LINE=`grep "wxUSE_PROLOGIO" ${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_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3502
3503 fi
3504
3505
3506 eval "$ac_cv_use_prologio"
3507 if test "$no_cache" != 1; then
3508 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3509 fi
3510
3511 if test "$wxUSE_PROLOGIO" = yes; then
3512 echo "$ac_t""yes" 1>&6
3513 else
3514 echo "$ac_t""no" 1>&6
3515 fi
3516
3517
3518 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
3519 echo "configure:3520: checking "for --enable-resources"" >&5
3520 no_cache=0
3521 # Check whether --enable-resources or --disable-resources was given.
3522 if test "${enable_resources+set}" = set; then
3523 enableval="$enable_resources"
3524
3525 if test "$enableval" = yes; then
3526 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3527 else
3528 ac_cv_use_resources='wxUSE_RESOURCES=no'
3529 fi
3530
3531 else
3532
3533 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3534 if test "x$LINE" != x ; then
3535 eval "DEFAULT_$LINE"
3536 else
3537 no_cache=1
3538 fi
3539
3540 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3541
3542 fi
3543
3544
3545 eval "$ac_cv_use_resources"
3546 if test "$no_cache" != 1; then
3547 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3548 fi
3549
3550 if test "$wxUSE_RESOURCES" = yes; then
3551 echo "$ac_t""yes" 1>&6
3552 else
3553 echo "$ac_t""no" 1>&6
3554 fi
3555
3556
3557
3558 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
3559 echo "configure:3560: checking "for --enable-xresources"" >&5
3560 no_cache=0
3561 # Check whether --enable-xresources or --disable-xresources was given.
3562 if test "${enable_xresources+set}" = set; then
3563 enableval="$enable_xresources"
3564
3565 if test "$enableval" = yes; then
3566 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3567 else
3568 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3569 fi
3570
3571 else
3572
3573 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3574 if test "x$LINE" != x ; then
3575 eval "DEFAULT_$LINE"
3576 else
3577 no_cache=1
3578 fi
3579
3580 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3581
3582 fi
3583
3584
3585 eval "$ac_cv_use_xresources"
3586 if test "$no_cache" != 1; then
3587 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3588 fi
3589
3590 if test "$wxUSE_X_RESOURCES" = yes; then
3591 echo "$ac_t""yes" 1>&6
3592 else
3593 echo "$ac_t""no" 1>&6
3594 fi
3595
3596
3597
3598
3599 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
3600 echo "configure:3601: checking "for --enable-clipboard"" >&5
3601 no_cache=0
3602 # Check whether --enable-clipboard or --disable-clipboard was given.
3603 if test "${enable_clipboard+set}" = set; then
3604 enableval="$enable_clipboard"
3605
3606 if test "$enableval" = yes; then
3607 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3608 else
3609 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3610 fi
3611
3612 else
3613
3614 LINE=`grep "wxUSE_CLIPBOARD" ${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_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
3622
3623 fi
3624
3625
3626 eval "$ac_cv_use_clipboard"
3627 if test "$no_cache" != 1; then
3628 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
3629 fi
3630
3631 if test "$wxUSE_CLIPBOARD" = yes; then
3632 echo "$ac_t""yes" 1>&6
3633 else
3634 echo "$ac_t""no" 1>&6
3635 fi
3636
3637
3638 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
3639 echo "configure:3640: checking "for --enable-dnd"" >&5
3640 no_cache=0
3641 # Check whether --enable-dnd or --disable-dnd was given.
3642 if test "${enable_dnd+set}" = set; then
3643 enableval="$enable_dnd"
3644
3645 if test "$enableval" = yes; then
3646 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
3647 else
3648 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
3649 fi
3650
3651 else
3652
3653 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
3654 if test "x$LINE" != x ; then
3655 eval "DEFAULT_$LINE"
3656 else
3657 no_cache=1
3658 fi
3659
3660 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
3661
3662 fi
3663
3664
3665 eval "$ac_cv_use_dnd"
3666 if test "$no_cache" != 1; then
3667 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
3668 fi
3669
3670 if test "$wxUSE_DRAG_AND_DROP" = yes; then
3671 echo "$ac_t""yes" 1>&6
3672 else
3673 echo "$ac_t""no" 1>&6
3674 fi
3675
3676
3677
3678 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
3679 echo "configure:3680: checking "for --enable-wxtree"" >&5
3680 no_cache=0
3681 # Check whether --enable-wxtree or --disable-wxtree was given.
3682 if test "${enable_wxtree+set}" = set; then
3683 enableval="$enable_wxtree"
3684
3685 if test "$enableval" = yes; then
3686 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
3687 else
3688 ac_cv_use_wxtree='wxUSE_WXTREE=no'
3689 fi
3690
3691 else
3692
3693 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
3694 if test "x$LINE" != x ; then
3695 eval "DEFAULT_$LINE"
3696 else
3697 no_cache=1
3698 fi
3699
3700 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
3701
3702 fi
3703
3704
3705 eval "$ac_cv_use_wxtree"
3706 if test "$no_cache" != 1; then
3707 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
3708 fi
3709
3710 if test "$wxUSE_WXTREE" = yes; then
3711 echo "$ac_t""yes" 1>&6
3712 else
3713 echo "$ac_t""no" 1>&6
3714 fi
3715
3716
3717
3718
3719 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
3720 echo "configure:3721: checking "for --enable-controls"" >&5
3721 no_cache=0
3722 # Check whether --enable-controls or --disable-controls was given.
3723 if test "${enable_controls+set}" = set; then
3724 enableval="$enable_controls"
3725
3726 if test "$enableval" = yes; then
3727 ac_cv_use_controls='wxUSE_CONTROLS=yes'
3728 else
3729 ac_cv_use_controls='wxUSE_CONTROLS=no'
3730 fi
3731
3732 else
3733
3734 LINE=`grep "wxUSE_CONTROLS" ${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_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
3742
3743 fi
3744
3745
3746 eval "$ac_cv_use_controls"
3747 if test "$no_cache" != 1; then
3748 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
3749 fi
3750
3751 if test "$wxUSE_CONTROLS" = yes; then
3752 echo "$ac_t""yes" 1>&6
3753 else
3754 echo "$ac_t""no" 1>&6
3755 fi
3756
3757
3758 if test "$wxUSE_CONTROLS" = "yes"; then
3759 DEFAULT_wxUSE_ACCEL=yes
3760 DEFAULT_wxUSE_CARET=yes
3761 DEFAULT_wxUSE_COMBOBOX=yes
3762 DEFAULT_wxUSE_BMPBUTTON=yes
3763 DEFAULT_wxUSE_CHECKBOX=yes
3764 DEFAULT_wxUSE_CHECKLISTBOX=yes
3765 DEFAULT_wxUSE_CHOICE=yes
3766 DEFAULT_wxUSE_GAUGE=yes
3767 DEFAULT_wxUSE_GRID=yes
3768 DEFAULT_wxUSE_NEW_GRID=no
3769 DEFAULT_wxUSE_IMAGLIST=yes
3770 DEFAULT_wxUSE_LISTBOX=yes
3771 DEFAULT_wxUSE_LISTCTRL=yes
3772 DEFAULT_wxUSE_NOTEBOOK=yes
3773 DEFAULT_wxUSE_RADIOBOX=yes
3774 DEFAULT_wxUSE_RADIOBTN=yes
3775 DEFAULT_wxUSE_SASH=yes
3776 DEFAULT_wxUSE_SCROLLBAR=yes
3777 DEFAULT_wxUSE_SLIDER=yes
3778 DEFAULT_wxUSE_SPINBTN=yes
3779 DEFAULT_wxUSE_SPINCTRL=yes
3780 DEFAULT_wxUSE_SPLITTER=yes
3781 DEFAULT_wxUSE_STATBMP=yes
3782 DEFAULT_wxUSE_STATBOX=yes
3783 DEFAULT_wxUSE_STATLINE=yes
3784 DEFAULT_wxUSE_STATUSBAR=yes
3785 DEFAULT_wxUSE_TAB_DIALOG=yes
3786 DEFAULT_wxUSE_TOOLBAR=yes
3787 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
3788 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
3789 DEFAULT_wxUSE_TOOLTIPS=yes
3790 DEFAULT_wxUSE_TREECTRL=yes
3791 elif test "$wxUSE_CONTROLS" = "no"; then
3792 DEFAULT_wxUSE_ACCEL=no
3793 DEFAULT_wxUSE_CARET=no
3794 DEFAULT_wxUSE_COMBOBOX=no
3795 DEFAULT_wxUSE_BMPBUTTON=no
3796 DEFAULT_wxUSE_CHECKBOX=no
3797 DEFAULT_wxUSE_CHECKLISTBOX=no
3798 DEFAULT_wxUSE_CHOICE=no
3799 DEFAULT_wxUSE_GAUGE=no
3800 DEFAULT_wxUSE_GRID=no
3801 DEFAULT_wxUSE_NEW_GRID=no
3802 DEFAULT_wxUSE_IMAGLIST=no
3803 DEFAULT_wxUSE_LISTBOX=no
3804 DEFAULT_wxUSE_LISTCTRL=no
3805 DEFAULT_wxUSE_NOTEBOOK=no
3806 DEFAULT_wxUSE_RADIOBOX=no
3807 DEFAULT_wxUSE_RADIOBTN=no
3808 DEFAULT_wxUSE_SASH=no
3809 DEFAULT_wxUSE_SCROLLBAR=no
3810 DEFAULT_wxUSE_SLIDER=no
3811 DEFAULT_wxUSE_SPINBTN=no
3812 DEFAULT_wxUSE_SPINCTRL=no
3813 DEFAULT_wxUSE_SPLITTER=no
3814 DEFAULT_wxUSE_STATBMP=no
3815 DEFAULT_wxUSE_STATBOX=no
3816 DEFAULT_wxUSE_STATLINE=no
3817 DEFAULT_wxUSE_STATUSBAR=no
3818 DEFAULT_wxUSE_TAB_DIALOG=no
3819 DEFAULT_wxUSE_TOOLBAR=no
3820 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
3821 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
3822 DEFAULT_wxUSE_TOOLTIPS=no
3823 DEFAULT_wxUSE_TREECTRL=no
3824 fi
3825
3826
3827 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
3828 echo "configure:3829: checking "for --enable-accel"" >&5
3829 no_cache=0
3830 # Check whether --enable-accel or --disable-accel was given.
3831 if test "${enable_accel+set}" = set; then
3832 enableval="$enable_accel"
3833
3834 if test "$enableval" = yes; then
3835 ac_cv_use_accel='wxUSE_ACCEL=yes'
3836 else
3837 ac_cv_use_accel='wxUSE_ACCEL=no'
3838 fi
3839
3840 else
3841
3842 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
3843 if test "x$LINE" != x ; then
3844 eval "DEFAULT_$LINE"
3845 else
3846 no_cache=1
3847 fi
3848
3849 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
3850
3851 fi
3852
3853
3854 eval "$ac_cv_use_accel"
3855 if test "$no_cache" != 1; then
3856 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
3857 fi
3858
3859 if test "$wxUSE_ACCEL" = yes; then
3860 echo "$ac_t""yes" 1>&6
3861 else
3862 echo "$ac_t""no" 1>&6
3863 fi
3864
3865
3866 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
3867 echo "configure:3868: checking "for --enable-caret"" >&5
3868 no_cache=0
3869 # Check whether --enable-caret or --disable-caret was given.
3870 if test "${enable_caret+set}" = set; then
3871 enableval="$enable_caret"
3872
3873 if test "$enableval" = yes; then
3874 ac_cv_use_caret='wxUSE_CARET=yes'
3875 else
3876 ac_cv_use_caret='wxUSE_CARET=no'
3877 fi
3878
3879 else
3880
3881 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
3882 if test "x$LINE" != x ; then
3883 eval "DEFAULT_$LINE"
3884 else
3885 no_cache=1
3886 fi
3887
3888 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
3889
3890 fi
3891
3892
3893 eval "$ac_cv_use_caret"
3894 if test "$no_cache" != 1; then
3895 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
3896 fi
3897
3898 if test "$wxUSE_CARET" = yes; then
3899 echo "$ac_t""yes" 1>&6
3900 else
3901 echo "$ac_t""no" 1>&6
3902 fi
3903
3904
3905 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
3906 echo "configure:3907: checking "for --enable-bmpbutton"" >&5
3907 no_cache=0
3908 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
3909 if test "${enable_bmpbutton+set}" = set; then
3910 enableval="$enable_bmpbutton"
3911
3912 if test "$enableval" = yes; then
3913 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
3914 else
3915 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
3916 fi
3917
3918 else
3919
3920 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
3921 if test "x$LINE" != x ; then
3922 eval "DEFAULT_$LINE"
3923 else
3924 no_cache=1
3925 fi
3926
3927 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
3928
3929 fi
3930
3931
3932 eval "$ac_cv_use_bmpbutton"
3933 if test "$no_cache" != 1; then
3934 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
3935 fi
3936
3937 if test "$wxUSE_BMPBUTTON" = yes; then
3938 echo "$ac_t""yes" 1>&6
3939 else
3940 echo "$ac_t""no" 1>&6
3941 fi
3942
3943
3944 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
3945 echo "configure:3946: checking "for --enable-checkbox"" >&5
3946 no_cache=0
3947 # Check whether --enable-checkbox or --disable-checkbox was given.
3948 if test "${enable_checkbox+set}" = set; then
3949 enableval="$enable_checkbox"
3950
3951 if test "$enableval" = yes; then
3952 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
3953 else
3954 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
3955 fi
3956
3957 else
3958
3959 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
3960 if test "x$LINE" != x ; then
3961 eval "DEFAULT_$LINE"
3962 else
3963 no_cache=1
3964 fi
3965
3966 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
3967
3968 fi
3969
3970
3971 eval "$ac_cv_use_checkbox"
3972 if test "$no_cache" != 1; then
3973 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
3974 fi
3975
3976 if test "$wxUSE_CHECKBOX" = yes; then
3977 echo "$ac_t""yes" 1>&6
3978 else
3979 echo "$ac_t""no" 1>&6
3980 fi
3981
3982
3983 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
3984 echo "configure:3985: checking "for --enable-checklst"" >&5
3985 no_cache=0
3986 # Check whether --enable-checklst or --disable-checklst was given.
3987 if test "${enable_checklst+set}" = set; then
3988 enableval="$enable_checklst"
3989
3990 if test "$enableval" = yes; then
3991 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
3992 else
3993 ac_cv_use_checklst='wxUSE_CHECKLST=no'
3994 fi
3995
3996 else
3997
3998 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
3999 if test "x$LINE" != x ; then
4000 eval "DEFAULT_$LINE"
4001 else
4002 no_cache=1
4003 fi
4004
4005 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4006
4007 fi
4008
4009
4010 eval "$ac_cv_use_checklst"
4011 if test "$no_cache" != 1; then
4012 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4013 fi
4014
4015 if test "$wxUSE_CHECKLST" = yes; then
4016 echo "$ac_t""yes" 1>&6
4017 else
4018 echo "$ac_t""no" 1>&6
4019 fi
4020
4021
4022 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
4023 echo "configure:4024: checking "for --enable-choice"" >&5
4024 no_cache=0
4025 # Check whether --enable-choice or --disable-choice was given.
4026 if test "${enable_choice+set}" = set; then
4027 enableval="$enable_choice"
4028
4029 if test "$enableval" = yes; then
4030 ac_cv_use_choice='wxUSE_CHOICE=yes'
4031 else
4032 ac_cv_use_choice='wxUSE_CHOICE=no'
4033 fi
4034
4035 else
4036
4037 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4038 if test "x$LINE" != x ; then
4039 eval "DEFAULT_$LINE"
4040 else
4041 no_cache=1
4042 fi
4043
4044 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4045
4046 fi
4047
4048
4049 eval "$ac_cv_use_choice"
4050 if test "$no_cache" != 1; then
4051 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4052 fi
4053
4054 if test "$wxUSE_CHOICE" = yes; then
4055 echo "$ac_t""yes" 1>&6
4056 else
4057 echo "$ac_t""no" 1>&6
4058 fi
4059
4060
4061 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
4062 echo "configure:4063: checking "for --enable-combobox"" >&5
4063 no_cache=0
4064 # Check whether --enable-combobox or --disable-combobox was given.
4065 if test "${enable_combobox+set}" = set; then
4066 enableval="$enable_combobox"
4067
4068 if test "$enableval" = yes; then
4069 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4070 else
4071 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4072 fi
4073
4074 else
4075
4076 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4077 if test "x$LINE" != x ; then
4078 eval "DEFAULT_$LINE"
4079 else
4080 no_cache=1
4081 fi
4082
4083 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4084
4085 fi
4086
4087
4088 eval "$ac_cv_use_combobox"
4089 if test "$no_cache" != 1; then
4090 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4091 fi
4092
4093 if test "$wxUSE_COMBOBOX" = yes; then
4094 echo "$ac_t""yes" 1>&6
4095 else
4096 echo "$ac_t""no" 1>&6
4097 fi
4098
4099
4100 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
4101 echo "configure:4102: checking "for --enable-gauge"" >&5
4102 no_cache=0
4103 # Check whether --enable-gauge or --disable-gauge was given.
4104 if test "${enable_gauge+set}" = set; then
4105 enableval="$enable_gauge"
4106
4107 if test "$enableval" = yes; then
4108 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4109 else
4110 ac_cv_use_gauge='wxUSE_GAUGE=no'
4111 fi
4112
4113 else
4114
4115 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4116 if test "x$LINE" != x ; then
4117 eval "DEFAULT_$LINE"
4118 else
4119 no_cache=1
4120 fi
4121
4122 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4123
4124 fi
4125
4126
4127 eval "$ac_cv_use_gauge"
4128 if test "$no_cache" != 1; then
4129 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4130 fi
4131
4132 if test "$wxUSE_GAUGE" = yes; then
4133 echo "$ac_t""yes" 1>&6
4134 else
4135 echo "$ac_t""no" 1>&6
4136 fi
4137
4138
4139 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
4140 echo "configure:4141: checking "for --enable-grid"" >&5
4141 no_cache=0
4142 # Check whether --enable-grid or --disable-grid was given.
4143 if test "${enable_grid+set}" = set; then
4144 enableval="$enable_grid"
4145
4146 if test "$enableval" = yes; then
4147 ac_cv_use_grid='wxUSE_GRID=yes'
4148 else
4149 ac_cv_use_grid='wxUSE_GRID=no'
4150 fi
4151
4152 else
4153
4154 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4155 if test "x$LINE" != x ; then
4156 eval "DEFAULT_$LINE"
4157 else
4158 no_cache=1
4159 fi
4160
4161 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4162
4163 fi
4164
4165
4166 eval "$ac_cv_use_grid"
4167 if test "$no_cache" != 1; then
4168 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4169 fi
4170
4171 if test "$wxUSE_GRID" = yes; then
4172 echo "$ac_t""yes" 1>&6
4173 else
4174 echo "$ac_t""no" 1>&6
4175 fi
4176
4177
4178 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
4179 echo "configure:4180: checking "for --enable-newgrid"" >&5
4180 no_cache=0
4181 # Check whether --enable-newgrid or --disable-newgrid was given.
4182 if test "${enable_newgrid+set}" = set; then
4183 enableval="$enable_newgrid"
4184
4185 if test "$enableval" = yes; then
4186 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4187 else
4188 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4189 fi
4190
4191 else
4192
4193 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4194 if test "x$LINE" != x ; then
4195 eval "DEFAULT_$LINE"
4196 else
4197 no_cache=1
4198 fi
4199
4200 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4201
4202 fi
4203
4204
4205 eval "$ac_cv_use_newgrid"
4206 if test "$no_cache" != 1; then
4207 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4208 fi
4209
4210 if test "$wxUSE_NEW_GRID" = yes; then
4211 echo "$ac_t""yes" 1>&6
4212 else
4213 echo "$ac_t""no" 1>&6
4214 fi
4215
4216
4217 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
4218 echo "configure:4219: checking "for --enable-imaglist"" >&5
4219 no_cache=0
4220 # Check whether --enable-imaglist or --disable-imaglist was given.
4221 if test "${enable_imaglist+set}" = set; then
4222 enableval="$enable_imaglist"
4223
4224 if test "$enableval" = yes; then
4225 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4226 else
4227 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4228 fi
4229
4230 else
4231
4232 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4233 if test "x$LINE" != x ; then
4234 eval "DEFAULT_$LINE"
4235 else
4236 no_cache=1
4237 fi
4238
4239 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4240
4241 fi
4242
4243
4244 eval "$ac_cv_use_imaglist"
4245 if test "$no_cache" != 1; then
4246 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4247 fi
4248
4249 if test "$wxUSE_IMAGLIST" = yes; then
4250 echo "$ac_t""yes" 1>&6
4251 else
4252 echo "$ac_t""no" 1>&6
4253 fi
4254
4255
4256 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
4257 echo "configure:4258: checking "for --enable-listbox"" >&5
4258 no_cache=0
4259 # Check whether --enable-listbox or --disable-listbox was given.
4260 if test "${enable_listbox+set}" = set; then
4261 enableval="$enable_listbox"
4262
4263 if test "$enableval" = yes; then
4264 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4265 else
4266 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4267 fi
4268
4269 else
4270
4271 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4272 if test "x$LINE" != x ; then
4273 eval "DEFAULT_$LINE"
4274 else
4275 no_cache=1
4276 fi
4277
4278 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4279
4280 fi
4281
4282
4283 eval "$ac_cv_use_listbox"
4284 if test "$no_cache" != 1; then
4285 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4286 fi
4287
4288 if test "$wxUSE_LISTBOX" = yes; then
4289 echo "$ac_t""yes" 1>&6
4290 else
4291 echo "$ac_t""no" 1>&6
4292 fi
4293
4294
4295 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
4296 echo "configure:4297: checking "for --enable-listctrl"" >&5
4297 no_cache=0
4298 # Check whether --enable-listctrl or --disable-listctrl was given.
4299 if test "${enable_listctrl+set}" = set; then
4300 enableval="$enable_listctrl"
4301
4302 if test "$enableval" = yes; then
4303 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4304 else
4305 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4306 fi
4307
4308 else
4309
4310 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4311 if test "x$LINE" != x ; then
4312 eval "DEFAULT_$LINE"
4313 else
4314 no_cache=1
4315 fi
4316
4317 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4318
4319 fi
4320
4321
4322 eval "$ac_cv_use_listctrl"
4323 if test "$no_cache" != 1; then
4324 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4325 fi
4326
4327 if test "$wxUSE_LISTCTRL" = yes; then
4328 echo "$ac_t""yes" 1>&6
4329 else
4330 echo "$ac_t""no" 1>&6
4331 fi
4332
4333
4334 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
4335 echo "configure:4336: checking "for --enable-notebook"" >&5
4336 no_cache=0
4337 # Check whether --enable-notebook or --disable-notebook was given.
4338 if test "${enable_notebook+set}" = set; then
4339 enableval="$enable_notebook"
4340
4341 if test "$enableval" = yes; then
4342 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4343 else
4344 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4345 fi
4346
4347 else
4348
4349 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4350 if test "x$LINE" != x ; then
4351 eval "DEFAULT_$LINE"
4352 else
4353 no_cache=1
4354 fi
4355
4356 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4357
4358 fi
4359
4360
4361 eval "$ac_cv_use_notebook"
4362 if test "$no_cache" != 1; then
4363 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4364 fi
4365
4366 if test "$wxUSE_NOTEBOOK" = yes; then
4367 echo "$ac_t""yes" 1>&6
4368 else
4369 echo "$ac_t""no" 1>&6
4370 fi
4371
4372
4373 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
4374 echo "configure:4375: checking "for --enable-radiobox"" >&5
4375 no_cache=0
4376 # Check whether --enable-radiobox or --disable-radiobox was given.
4377 if test "${enable_radiobox+set}" = set; then
4378 enableval="$enable_radiobox"
4379
4380 if test "$enableval" = yes; then
4381 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4382 else
4383 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4384 fi
4385
4386 else
4387
4388 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4389 if test "x$LINE" != x ; then
4390 eval "DEFAULT_$LINE"
4391 else
4392 no_cache=1
4393 fi
4394
4395 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4396
4397 fi
4398
4399
4400 eval "$ac_cv_use_radiobox"
4401 if test "$no_cache" != 1; then
4402 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4403 fi
4404
4405 if test "$wxUSE_RADIOBOX" = yes; then
4406 echo "$ac_t""yes" 1>&6
4407 else
4408 echo "$ac_t""no" 1>&6
4409 fi
4410
4411
4412 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
4413 echo "configure:4414: checking "for --enable-radiobtn"" >&5
4414 no_cache=0
4415 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4416 if test "${enable_radiobtn+set}" = set; then
4417 enableval="$enable_radiobtn"
4418
4419 if test "$enableval" = yes; then
4420 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4421 else
4422 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4423 fi
4424
4425 else
4426
4427 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4428 if test "x$LINE" != x ; then
4429 eval "DEFAULT_$LINE"
4430 else
4431 no_cache=1
4432 fi
4433
4434 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4435
4436 fi
4437
4438
4439 eval "$ac_cv_use_radiobtn"
4440 if test "$no_cache" != 1; then
4441 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4442 fi
4443
4444 if test "$wxUSE_RADIOBTN" = yes; then
4445 echo "$ac_t""yes" 1>&6
4446 else
4447 echo "$ac_t""no" 1>&6
4448 fi
4449
4450
4451 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
4452 echo "configure:4453: checking "for --enable-sash"" >&5
4453 no_cache=0
4454 # Check whether --enable-sash or --disable-sash was given.
4455 if test "${enable_sash+set}" = set; then
4456 enableval="$enable_sash"
4457
4458 if test "$enableval" = yes; then
4459 ac_cv_use_sash='wxUSE_SASH=yes'
4460 else
4461 ac_cv_use_sash='wxUSE_SASH=no'
4462 fi
4463
4464 else
4465
4466 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4467 if test "x$LINE" != x ; then
4468 eval "DEFAULT_$LINE"
4469 else
4470 no_cache=1
4471 fi
4472
4473 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4474
4475 fi
4476
4477
4478 eval "$ac_cv_use_sash"
4479 if test "$no_cache" != 1; then
4480 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4481 fi
4482
4483 if test "$wxUSE_SASH" = yes; then
4484 echo "$ac_t""yes" 1>&6
4485 else
4486 echo "$ac_t""no" 1>&6
4487 fi
4488
4489
4490 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
4491 echo "configure:4492: checking "for --enable-scrollbar"" >&5
4492 no_cache=0
4493 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4494 if test "${enable_scrollbar+set}" = set; then
4495 enableval="$enable_scrollbar"
4496
4497 if test "$enableval" = yes; then
4498 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4499 else
4500 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4501 fi
4502
4503 else
4504
4505 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4506 if test "x$LINE" != x ; then
4507 eval "DEFAULT_$LINE"
4508 else
4509 no_cache=1
4510 fi
4511
4512 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4513
4514 fi
4515
4516
4517 eval "$ac_cv_use_scrollbar"
4518 if test "$no_cache" != 1; then
4519 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4520 fi
4521
4522 if test "$wxUSE_SCROLLBAR" = yes; then
4523 echo "$ac_t""yes" 1>&6
4524 else
4525 echo "$ac_t""no" 1>&6
4526 fi
4527
4528
4529 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
4530 echo "configure:4531: checking "for --enable-slider"" >&5
4531 no_cache=0
4532 # Check whether --enable-slider or --disable-slider was given.
4533 if test "${enable_slider+set}" = set; then
4534 enableval="$enable_slider"
4535
4536 if test "$enableval" = yes; then
4537 ac_cv_use_slider='wxUSE_SLIDER=yes'
4538 else
4539 ac_cv_use_slider='wxUSE_SLIDER=no'
4540 fi
4541
4542 else
4543
4544 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4545 if test "x$LINE" != x ; then
4546 eval "DEFAULT_$LINE"
4547 else
4548 no_cache=1
4549 fi
4550
4551 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4552
4553 fi
4554
4555
4556 eval "$ac_cv_use_slider"
4557 if test "$no_cache" != 1; then
4558 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4559 fi
4560
4561 if test "$wxUSE_SLIDER" = yes; then
4562 echo "$ac_t""yes" 1>&6
4563 else
4564 echo "$ac_t""no" 1>&6
4565 fi
4566
4567
4568 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
4569 echo "configure:4570: checking "for --enable-spinbtn"" >&5
4570 no_cache=0
4571 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4572 if test "${enable_spinbtn+set}" = set; then
4573 enableval="$enable_spinbtn"
4574
4575 if test "$enableval" = yes; then
4576 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4577 else
4578 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4579 fi
4580
4581 else
4582
4583 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4584 if test "x$LINE" != x ; then
4585 eval "DEFAULT_$LINE"
4586 else
4587 no_cache=1
4588 fi
4589
4590 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4591
4592 fi
4593
4594
4595 eval "$ac_cv_use_spinbtn"
4596 if test "$no_cache" != 1; then
4597 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4598 fi
4599
4600 if test "$wxUSE_SPINBTN" = yes; then
4601 echo "$ac_t""yes" 1>&6
4602 else
4603 echo "$ac_t""no" 1>&6
4604 fi
4605
4606
4607 echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6
4608 echo "configure:4609: checking "for --enable-spinctrl"" >&5
4609 no_cache=0
4610 # Check whether --enable-spinctrl or --disable-spinctrl was given.
4611 if test "${enable_spinctrl+set}" = set; then
4612 enableval="$enable_spinctrl"
4613
4614 if test "$enableval" = yes; then
4615 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
4616 else
4617 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
4618 fi
4619
4620 else
4621
4622 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
4623 if test "x$LINE" != x ; then
4624 eval "DEFAULT_$LINE"
4625 else
4626 no_cache=1
4627 fi
4628
4629 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
4630
4631 fi
4632
4633
4634 eval "$ac_cv_use_spinctrl"
4635 if test "$no_cache" != 1; then
4636 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
4637 fi
4638
4639 if test "$wxUSE_SPINCTRL" = yes; then
4640 echo "$ac_t""yes" 1>&6
4641 else
4642 echo "$ac_t""no" 1>&6
4643 fi
4644
4645
4646 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
4647 echo "configure:4648: checking "for --enable-splitter"" >&5
4648 no_cache=0
4649 # Check whether --enable-splitter or --disable-splitter was given.
4650 if test "${enable_splitter+set}" = set; then
4651 enableval="$enable_splitter"
4652
4653 if test "$enableval" = yes; then
4654 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
4655 else
4656 ac_cv_use_splitter='wxUSE_SPLITTER=no'
4657 fi
4658
4659 else
4660
4661 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
4662 if test "x$LINE" != x ; then
4663 eval "DEFAULT_$LINE"
4664 else
4665 no_cache=1
4666 fi
4667
4668 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
4669
4670 fi
4671
4672
4673 eval "$ac_cv_use_splitter"
4674 if test "$no_cache" != 1; then
4675 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
4676 fi
4677
4678 if test "$wxUSE_SPLITTER" = yes; then
4679 echo "$ac_t""yes" 1>&6
4680 else
4681 echo "$ac_t""no" 1>&6
4682 fi
4683
4684
4685 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
4686 echo "configure:4687: checking "for --enable-statbmp"" >&5
4687 no_cache=0
4688 # Check whether --enable-statbmp or --disable-statbmp was given.
4689 if test "${enable_statbmp+set}" = set; then
4690 enableval="$enable_statbmp"
4691
4692 if test "$enableval" = yes; then
4693 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
4694 else
4695 ac_cv_use_statbmp='wxUSE_STATBMP=no'
4696 fi
4697
4698 else
4699
4700 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
4701 if test "x$LINE" != x ; then
4702 eval "DEFAULT_$LINE"
4703 else
4704 no_cache=1
4705 fi
4706
4707 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
4708
4709 fi
4710
4711
4712 eval "$ac_cv_use_statbmp"
4713 if test "$no_cache" != 1; then
4714 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
4715 fi
4716
4717 if test "$wxUSE_STATBMP" = yes; then
4718 echo "$ac_t""yes" 1>&6
4719 else
4720 echo "$ac_t""no" 1>&6
4721 fi
4722
4723
4724 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
4725 echo "configure:4726: checking "for --enable-statbox"" >&5
4726 no_cache=0
4727 # Check whether --enable-statbox or --disable-statbox was given.
4728 if test "${enable_statbox+set}" = set; then
4729 enableval="$enable_statbox"
4730
4731 if test "$enableval" = yes; then
4732 ac_cv_use_statbox='wxUSE_STATBOX=yes'
4733 else
4734 ac_cv_use_statbox='wxUSE_STATBOX=no'
4735 fi
4736
4737 else
4738
4739 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
4740 if test "x$LINE" != x ; then
4741 eval "DEFAULT_$LINE"
4742 else
4743 no_cache=1
4744 fi
4745
4746 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
4747
4748 fi
4749
4750
4751 eval "$ac_cv_use_statbox"
4752 if test "$no_cache" != 1; then
4753 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
4754 fi
4755
4756 if test "$wxUSE_STATBOX" = yes; then
4757 echo "$ac_t""yes" 1>&6
4758 else
4759 echo "$ac_t""no" 1>&6
4760 fi
4761
4762
4763 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
4764 echo "configure:4765: checking "for --enable-statline"" >&5
4765 no_cache=0
4766 # Check whether --enable-statline or --disable-statline was given.
4767 if test "${enable_statline+set}" = set; then
4768 enableval="$enable_statline"
4769
4770 if test "$enableval" = yes; then
4771 ac_cv_use_statline='wxUSE_STATLINE=yes'
4772 else
4773 ac_cv_use_statline='wxUSE_STATLINE=no'
4774 fi
4775
4776 else
4777
4778 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
4779 if test "x$LINE" != x ; then
4780 eval "DEFAULT_$LINE"
4781 else
4782 no_cache=1
4783 fi
4784
4785 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
4786
4787 fi
4788
4789
4790 eval "$ac_cv_use_statline"
4791 if test "$no_cache" != 1; then
4792 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
4793 fi
4794
4795 if test "$wxUSE_STATLINE" = yes; then
4796 echo "$ac_t""yes" 1>&6
4797 else
4798 echo "$ac_t""no" 1>&6
4799 fi
4800
4801
4802 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
4803 echo "configure:4804: checking "for --enable-statusbar"" >&5
4804 no_cache=0
4805 # Check whether --enable-statusbar or --disable-statusbar was given.
4806 if test "${enable_statusbar+set}" = set; then
4807 enableval="$enable_statusbar"
4808
4809 if test "$enableval" = yes; then
4810 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
4811 else
4812 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
4813 fi
4814
4815 else
4816
4817 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
4818 if test "x$LINE" != x ; then
4819 eval "DEFAULT_$LINE"
4820 else
4821 no_cache=1
4822 fi
4823
4824 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
4825
4826 fi
4827
4828
4829 eval "$ac_cv_use_statusbar"
4830 if test "$no_cache" != 1; then
4831 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
4832 fi
4833
4834 if test "$wxUSE_STATUSBAR" = yes; then
4835 echo "$ac_t""yes" 1>&6
4836 else
4837 echo "$ac_t""no" 1>&6
4838 fi
4839
4840
4841 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
4842 echo "configure:4843: checking "for --enable-tabdialog"" >&5
4843 no_cache=0
4844 # Check whether --enable-tabdialog or --disable-tabdialog was given.
4845 if test "${enable_tabdialog+set}" = set; then
4846 enableval="$enable_tabdialog"
4847
4848 if test "$enableval" = yes; then
4849 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
4850 else
4851 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
4852 fi
4853
4854 else
4855
4856 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
4857 if test "x$LINE" != x ; then
4858 eval "DEFAULT_$LINE"
4859 else
4860 no_cache=1
4861 fi
4862
4863 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
4864
4865 fi
4866
4867
4868 eval "$ac_cv_use_tabdialog"
4869 if test "$no_cache" != 1; then
4870 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
4871 fi
4872
4873 if test "$wxUSE_TABDIALOG" = yes; then
4874 echo "$ac_t""yes" 1>&6
4875 else
4876 echo "$ac_t""no" 1>&6
4877 fi
4878
4879
4880 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
4881 echo "configure:4882: checking "for --enable-toolbar"" >&5
4882 no_cache=0
4883 # Check whether --enable-toolbar or --disable-toolbar was given.
4884 if test "${enable_toolbar+set}" = set; then
4885 enableval="$enable_toolbar"
4886
4887 if test "$enableval" = yes; then
4888 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
4889 else
4890 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
4891 fi
4892
4893 else
4894
4895 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
4896 if test "x$LINE" != x ; then
4897 eval "DEFAULT_$LINE"
4898 else
4899 no_cache=1
4900 fi
4901
4902 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
4903
4904 fi
4905
4906
4907 eval "$ac_cv_use_toolbar"
4908 if test "$no_cache" != 1; then
4909 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
4910 fi
4911
4912 if test "$wxUSE_TOOLBAR" = yes; then
4913 echo "$ac_t""yes" 1>&6
4914 else
4915 echo "$ac_t""no" 1>&6
4916 fi
4917
4918
4919 echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6
4920 echo "configure:4921: checking "for --enable-tbarnative"" >&5
4921 no_cache=0
4922 # Check whether --enable-tbarnative or --disable-tbarnative was given.
4923 if test "${enable_tbarnative+set}" = set; then
4924 enableval="$enable_tbarnative"
4925
4926 if test "$enableval" = yes; then
4927 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
4928 else
4929 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
4930 fi
4931
4932 else
4933
4934 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
4935 if test "x$LINE" != x ; then
4936 eval "DEFAULT_$LINE"
4937 else
4938 no_cache=1
4939 fi
4940
4941 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
4942
4943 fi
4944
4945
4946 eval "$ac_cv_use_tbarnative"
4947 if test "$no_cache" != 1; then
4948 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
4949 fi
4950
4951 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
4952 echo "$ac_t""yes" 1>&6
4953 else
4954 echo "$ac_t""no" 1>&6
4955 fi
4956
4957
4958 echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6
4959 echo "configure:4960: checking "for --enable-tbarsmpl"" >&5
4960 no_cache=0
4961 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
4962 if test "${enable_tbarsmpl+set}" = set; then
4963 enableval="$enable_tbarsmpl"
4964
4965 if test "$enableval" = yes; then
4966 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
4967 else
4968 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
4969 fi
4970
4971 else
4972
4973 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
4974 if test "x$LINE" != x ; then
4975 eval "DEFAULT_$LINE"
4976 else
4977 no_cache=1
4978 fi
4979
4980 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
4981
4982 fi
4983
4984
4985 eval "$ac_cv_use_tbarsmpl"
4986 if test "$no_cache" != 1; then
4987 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
4988 fi
4989
4990 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
4991 echo "$ac_t""yes" 1>&6
4992 else
4993 echo "$ac_t""no" 1>&6
4994 fi
4995
4996
4997 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
4998 echo "configure:4999: checking "for --enable-treectrl"" >&5
4999 no_cache=0
5000 # Check whether --enable-treectrl or --disable-treectrl was given.
5001 if test "${enable_treectrl+set}" = set; then
5002 enableval="$enable_treectrl"
5003
5004 if test "$enableval" = yes; then
5005 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
5006 else
5007 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
5008 fi
5009
5010 else
5011
5012 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
5013 if test "x$LINE" != x ; then
5014 eval "DEFAULT_$LINE"
5015 else
5016 no_cache=1
5017 fi
5018
5019 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5020
5021 fi
5022
5023
5024 eval "$ac_cv_use_treectrl"
5025 if test "$no_cache" != 1; then
5026 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5027 fi
5028
5029 if test "$wxUSE_TREECTRL" = yes; then
5030 echo "$ac_t""yes" 1>&6
5031 else
5032 echo "$ac_t""no" 1>&6
5033 fi
5034
5035
5036
5037
5038 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
5039 echo "configure:5040: checking "for --enable-commondlg"" >&5
5040 no_cache=0
5041 # Check whether --enable-commondlg or --disable-commondlg was given.
5042 if test "${enable_commondlg+set}" = set; then
5043 enableval="$enable_commondlg"
5044
5045 if test "$enableval" = yes; then
5046 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5047 else
5048 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5049 fi
5050
5051 else
5052
5053 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5054 if test "x$LINE" != x ; then
5055 eval "DEFAULT_$LINE"
5056 else
5057 no_cache=1
5058 fi
5059
5060 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5061
5062 fi
5063
5064
5065 eval "$ac_cv_use_commondlg"
5066 if test "$no_cache" != 1; then
5067 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5068 fi
5069
5070 if test "$wxUSE_COMMONDLGS" = yes; then
5071 echo "$ac_t""yes" 1>&6
5072 else
5073 echo "$ac_t""no" 1>&6
5074 fi
5075
5076
5077 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
5078 echo "configure:5079: checking "for --enable-dirdlg"" >&5
5079 no_cache=0
5080 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5081 if test "${enable_dirdlg+set}" = set; then
5082 enableval="$enable_dirdlg"
5083
5084 if test "$enableval" = yes; then
5085 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5086 else
5087 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5088 fi
5089
5090 else
5091
5092 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5093 if test "x$LINE" != x ; then
5094 eval "DEFAULT_$LINE"
5095 else
5096 no_cache=1
5097 fi
5098
5099 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5100
5101 fi
5102
5103
5104 eval "$ac_cv_use_dirdlg"
5105 if test "$no_cache" != 1; then
5106 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5107 fi
5108
5109 if test "$wxUSE_DIRDLG" = yes; then
5110 echo "$ac_t""yes" 1>&6
5111 else
5112 echo "$ac_t""no" 1>&6
5113 fi
5114
5115
5116 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
5117 echo "configure:5118: checking "for --enable-textdlg"" >&5
5118 no_cache=0
5119 # Check whether --enable-textdlg or --disable-textdlg was given.
5120 if test "${enable_textdlg+set}" = set; then
5121 enableval="$enable_textdlg"
5122
5123 if test "$enableval" = yes; then
5124 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5125 else
5126 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5127 fi
5128
5129 else
5130
5131 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5132 if test "x$LINE" != x ; then
5133 eval "DEFAULT_$LINE"
5134 else
5135 no_cache=1
5136 fi
5137
5138 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5139
5140 fi
5141
5142
5143 eval "$ac_cv_use_textdlg"
5144 if test "$no_cache" != 1; then
5145 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5146 fi
5147
5148 if test "$wxUSE_TEXTDLG" = yes; then
5149 echo "$ac_t""yes" 1>&6
5150 else
5151 echo "$ac_t""no" 1>&6
5152 fi
5153
5154
5155 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
5156 echo "configure:5157: checking "for --enable-tipdlg"" >&5
5157 no_cache=0
5158 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5159 if test "${enable_tipdlg+set}" = set; then
5160 enableval="$enable_tipdlg"
5161
5162 if test "$enableval" = yes; then
5163 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5164 else
5165 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5166 fi
5167
5168 else
5169
5170 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5171 if test "x$LINE" != x ; then
5172 eval "DEFAULT_$LINE"
5173 else
5174 no_cache=1
5175 fi
5176
5177 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5178
5179 fi
5180
5181
5182 eval "$ac_cv_use_tipdlg"
5183 if test "$no_cache" != 1; then
5184 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5185 fi
5186
5187 if test "$wxUSE_STARTUP_TIPS" = yes; then
5188 echo "$ac_t""yes" 1>&6
5189 else
5190 echo "$ac_t""no" 1>&6
5191 fi
5192
5193
5194 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
5195 echo "configure:5196: checking "for --enable-progressdlg"" >&5
5196 no_cache=0
5197 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5198 if test "${enable_progressdlg+set}" = set; then
5199 enableval="$enable_progressdlg"
5200
5201 if test "$enableval" = yes; then
5202 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5203 else
5204 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5205 fi
5206
5207 else
5208
5209 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5210 if test "x$LINE" != x ; then
5211 eval "DEFAULT_$LINE"
5212 else
5213 no_cache=1
5214 fi
5215
5216 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5217
5218 fi
5219
5220
5221 eval "$ac_cv_use_progressdlg"
5222 if test "$no_cache" != 1; then
5223 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5224 fi
5225
5226 if test "$wxUSE_PROGRESSDLG" = yes; then
5227 echo "$ac_t""yes" 1>&6
5228 else
5229 echo "$ac_t""no" 1>&6
5230 fi
5231
5232
5233 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
5234 echo "configure:5235: checking "for --enable-miniframe"" >&5
5235 no_cache=0
5236 # Check whether --enable-miniframe or --disable-miniframe was given.
5237 if test "${enable_miniframe+set}" = set; then
5238 enableval="$enable_miniframe"
5239
5240 if test "$enableval" = yes; then
5241 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5242 else
5243 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5244 fi
5245
5246 else
5247
5248 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5249 if test "x$LINE" != x ; then
5250 eval "DEFAULT_$LINE"
5251 else
5252 no_cache=1
5253 fi
5254
5255 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5256
5257 fi
5258
5259
5260 eval "$ac_cv_use_miniframe"
5261 if test "$no_cache" != 1; then
5262 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5263 fi
5264
5265 if test "$wxUSE_MINIFRAME" = yes; then
5266 echo "$ac_t""yes" 1>&6
5267 else
5268 echo "$ac_t""no" 1>&6
5269 fi
5270
5271
5272 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
5273 echo "configure:5274: checking "for --enable-html"" >&5
5274 no_cache=0
5275 # Check whether --enable-html or --disable-html was given.
5276 if test "${enable_html+set}" = set; then
5277 enableval="$enable_html"
5278
5279 if test "$enableval" = yes; then
5280 ac_cv_use_html='wxUSE_HTML=yes'
5281 else
5282 ac_cv_use_html='wxUSE_HTML=no'
5283 fi
5284
5285 else
5286
5287 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5288 if test "x$LINE" != x ; then
5289 eval "DEFAULT_$LINE"
5290 else
5291 no_cache=1
5292 fi
5293
5294 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5295
5296 fi
5297
5298
5299 eval "$ac_cv_use_html"
5300 if test "$no_cache" != 1; then
5301 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5302 fi
5303
5304 if test "$wxUSE_HTML" = yes; then
5305 echo "$ac_t""yes" 1>&6
5306 else
5307 echo "$ac_t""no" 1>&6
5308 fi
5309
5310
5311 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
5312 echo "configure:5313: checking "for --enable-tooltips"" >&5
5313 no_cache=0
5314 # Check whether --enable-tooltips or --disable-tooltips was given.
5315 if test "${enable_tooltips+set}" = set; then
5316 enableval="$enable_tooltips"
5317
5318 if test "$enableval" = yes; then
5319 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5320 else
5321 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5322 fi
5323
5324 else
5325
5326 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5327 if test "x$LINE" != x ; then
5328 eval "DEFAULT_$LINE"
5329 else
5330 no_cache=1
5331 fi
5332
5333 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5334
5335 fi
5336
5337
5338 eval "$ac_cv_use_tooltips"
5339 if test "$no_cache" != 1; then
5340 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5341 fi
5342
5343 if test "$wxUSE_TOOLTIPS" = yes; then
5344 echo "$ac_t""yes" 1>&6
5345 else
5346 echo "$ac_t""no" 1>&6
5347 fi
5348
5349
5350 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
5351 echo "configure:5352: checking "for --enable-splines"" >&5
5352 no_cache=0
5353 # Check whether --enable-splines or --disable-splines was given.
5354 if test "${enable_splines+set}" = set; then
5355 enableval="$enable_splines"
5356
5357 if test "$enableval" = yes; then
5358 ac_cv_use_splines='wxUSE_SPLINES=yes'
5359 else
5360 ac_cv_use_splines='wxUSE_SPLINES=no'
5361 fi
5362
5363 else
5364
5365 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5366 if test "x$LINE" != x ; then
5367 eval "DEFAULT_$LINE"
5368 else
5369 no_cache=1
5370 fi
5371
5372 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5373
5374 fi
5375
5376
5377 eval "$ac_cv_use_splines"
5378 if test "$no_cache" != 1; then
5379 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5380 fi
5381
5382 if test "$wxUSE_SPLINES" = yes; then
5383 echo "$ac_t""yes" 1>&6
5384 else
5385 echo "$ac_t""no" 1>&6
5386 fi
5387
5388
5389 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
5390 echo "configure:5391: checking "for --enable-validators"" >&5
5391 no_cache=0
5392 # Check whether --enable-validators or --disable-validators was given.
5393 if test "${enable_validators+set}" = set; then
5394 enableval="$enable_validators"
5395
5396 if test "$enableval" = yes; then
5397 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5398 else
5399 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5400 fi
5401
5402 else
5403
5404 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5405 if test "x$LINE" != x ; then
5406 eval "DEFAULT_$LINE"
5407 else
5408 no_cache=1
5409 fi
5410
5411 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5412
5413 fi
5414
5415
5416 eval "$ac_cv_use_validators"
5417 if test "$no_cache" != 1; then
5418 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5419 fi
5420
5421 if test "$wxUSE_VALIDATORS" = yes; then
5422 echo "$ac_t""yes" 1>&6
5423 else
5424 echo "$ac_t""no" 1>&6
5425 fi
5426
5427
5428 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
5429 echo "configure:5430: checking "for --enable-busyinfo"" >&5
5430 no_cache=0
5431 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5432 if test "${enable_busyinfo+set}" = set; then
5433 enableval="$enable_busyinfo"
5434
5435 if test "$enableval" = yes; then
5436 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5437 else
5438 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5439 fi
5440
5441 else
5442
5443 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5444 if test "x$LINE" != x ; then
5445 eval "DEFAULT_$LINE"
5446 else
5447 no_cache=1
5448 fi
5449
5450 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5451
5452 fi
5453
5454
5455 eval "$ac_cv_use_busyinfo"
5456 if test "$no_cache" != 1; then
5457 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5458 fi
5459
5460 if test "$wxUSE_BUSYINFO" = yes; then
5461 echo "$ac_t""yes" 1>&6
5462 else
5463 echo "$ac_t""no" 1>&6
5464 fi
5465
5466
5467
5468
5469 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
5470 echo "configure:5471: checking "for --enable-gif"" >&5
5471 no_cache=0
5472 # Check whether --enable-gif or --disable-gif was given.
5473 if test "${enable_gif+set}" = set; then
5474 enableval="$enable_gif"
5475
5476 if test "$enableval" = yes; then
5477 ac_cv_use_gif='wxUSE_GIF=yes'
5478 else
5479 ac_cv_use_gif='wxUSE_GIF=no'
5480 fi
5481
5482 else
5483
5484 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5485 if test "x$LINE" != x ; then
5486 eval "DEFAULT_$LINE"
5487 else
5488 no_cache=1
5489 fi
5490
5491 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5492
5493 fi
5494
5495
5496 eval "$ac_cv_use_gif"
5497 if test "$no_cache" != 1; then
5498 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5499 fi
5500
5501 if test "$wxUSE_GIF" = yes; then
5502 echo "$ac_t""yes" 1>&6
5503 else
5504 echo "$ac_t""no" 1>&6
5505 fi
5506
5507
5508 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
5509 echo "configure:5510: checking "for --enable-pcx"" >&5
5510 no_cache=0
5511 # Check whether --enable-pcx or --disable-pcx was given.
5512 if test "${enable_pcx+set}" = set; then
5513 enableval="$enable_pcx"
5514
5515 if test "$enableval" = yes; then
5516 ac_cv_use_pcx='wxUSE_PCX=yes'
5517 else
5518 ac_cv_use_pcx='wxUSE_PCX=no'
5519 fi
5520
5521 else
5522
5523 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5524 if test "x$LINE" != x ; then
5525 eval "DEFAULT_$LINE"
5526 else
5527 no_cache=1
5528 fi
5529
5530 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5531
5532 fi
5533
5534
5535 eval "$ac_cv_use_pcx"
5536 if test "$no_cache" != 1; then
5537 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5538 fi
5539
5540 if test "$wxUSE_PCX" = yes; then
5541 echo "$ac_t""yes" 1>&6
5542 else
5543 echo "$ac_t""no" 1>&6
5544 fi
5545
5546
5547 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
5548 echo "configure:5549: checking "for --enable-pnm"" >&5
5549 no_cache=0
5550 # Check whether --enable-pnm or --disable-pnm was given.
5551 if test "${enable_pnm+set}" = set; then
5552 enableval="$enable_pnm"
5553
5554 if test "$enableval" = yes; then
5555 ac_cv_use_pnm='wxUSE_PNM=yes'
5556 else
5557 ac_cv_use_pnm='wxUSE_PNM=no'
5558 fi
5559
5560 else
5561
5562 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5563 if test "x$LINE" != x ; then
5564 eval "DEFAULT_$LINE"
5565 else
5566 no_cache=1
5567 fi
5568
5569 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
5570
5571 fi
5572
5573
5574 eval "$ac_cv_use_pnm"
5575 if test "$no_cache" != 1; then
5576 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
5577 fi
5578
5579 if test "$wxUSE_PNM" = yes; then
5580 echo "$ac_t""yes" 1>&6
5581 else
5582 echo "$ac_t""no" 1>&6
5583 fi
5584
5585
5586 fi
5587
5588
5589 echo "saving argument cache $wx_arg_cache_file"
5590 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
5591
5592
5593
5594 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
5595 echo "configure:5596: checking for toolkit" >&5
5596
5597 if test "$wxUSE_GUI" = "yes"; then
5598
5599 if test "$USE_BEOS" = 1; then
5600 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
5601 fi
5602
5603 if test "$TOOLKIT_GIVEN" = 1; then
5604 for toolkit in `echo $ALL_TOOLKITS`; do
5605 var=wxUSE_$toolkit
5606 eval "value=\$${var}"
5607 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
5608 done
5609 else
5610 for toolkit in `echo $ALL_TOOLKITS`; do
5611 if test "$has_toolkit_in_cache" != 1; then
5612 var=DEFAULT_DEFAULT_wxUSE_$toolkit
5613 else
5614 var=DEFAULT_wxUSE_$toolkit
5615 fi
5616 eval "wxUSE_$toolkit=\$${var}"
5617 done
5618 fi
5619
5620 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
5621
5622 case "${host}" in
5623 *-pc-os2_emx )
5624 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
5625 # PATH_IFS is autodetected by OS/2's configure (usually ';')
5626 LEX_STEM="lexyy"
5627 ;;
5628 *)
5629 PATH_IFS=':'
5630 LEX_STEM="lex.yy"
5631 PROGRAM_EXT=
5632 ;;
5633 esac
5634
5635 case "$NUM_TOOLKITS" in
5636 1)
5637 ;;
5638 0)
5639 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
5640 ;;
5641 *)
5642 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
5643 esac
5644
5645 for toolkit in `echo $ALL_TOOLKITS`; do
5646 var=wxUSE_$toolkit
5647 eval "value=\$${var}"
5648 if test "x$value" != x; then
5649 cache_var=CACHE_$toolkit
5650 eval "cache=\$${cache_var}"
5651 if test "$cache" = 1; then
5652 echo "$var=$value" >> ${wx_arg_cache_file}
5653 fi
5654 if test "$value" = 1; then
5655 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
5656 fi
5657 fi
5658 done
5659
5660 else
5661 PATH_IFS=':'
5662 echo "$ac_t""base only" 1>&6
5663 fi
5664
5665
5666 cat > confcache <<\EOF
5667 # This file is a shell script that caches the results of configure
5668 # tests run on this system so they can be shared between configure
5669 # scripts and configure runs. It is not useful on other systems.
5670 # If it contains results you don't want to keep, you may remove or edit it.
5671 #
5672 # By default, configure uses ./config.cache as the cache file,
5673 # creating it if it does not exist already. You can give configure
5674 # the --cache-file=FILE option to use a different cache file; that is
5675 # what configure does when it calls configure scripts in
5676 # subdirectories, so they share the cache.
5677 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5678 # config.status only pays attention to the cache file if you give it the
5679 # --recheck option to rerun configure.
5680 #
5681 EOF
5682 # The following way of writing the cache mishandles newlines in values,
5683 # but we know of no workaround that is simple, portable, and efficient.
5684 # So, don't put newlines in cache variables' values.
5685 # Ultrix sh set writes to stderr and can't be redirected directly,
5686 # and sets the high bit in the cache file unless we assign to the vars.
5687 (set) 2>&1 |
5688 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5689 *ac_space=\ *)
5690 # `set' does not quote correctly, so add quotes (double-quote substitution
5691 # turns \\\\ into \\, and sed turns \\ into \).
5692 sed -n \
5693 -e "s/'/'\\\\''/g" \
5694 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5695 ;;
5696 *)
5697 # `set' quotes correctly as required by POSIX, so do not add quotes.
5698 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5699 ;;
5700 esac >> confcache
5701 if cmp -s $cache_file confcache; then
5702 :
5703 else
5704 if test -w $cache_file; then
5705 echo "updating cache $cache_file"
5706 cat confcache > $cache_file
5707 else
5708 echo "not updating unwritable cache $cache_file"
5709 fi
5710 fi
5711 rm -f confcache
5712
5713
5714 if eval "test $host != $build"; then
5715 if eval "test $host_alias != NONE"; then
5716 CC=$host_alias-gcc
5717 CXX=$host_alias-c++
5718 AR=$host_alias-ar
5719 RANLIB=$host_alias-ranlib
5720 DLLTOOL=$host_alias-dlltool
5721 LD=$host_alias-ld
5722 NM=$host_alias-nm
5723 STRIP=$host_alias-strip
5724 fi
5725 fi
5726
5727 # Extract the first word of "gcc", so it can be a program name with args.
5728 set dummy gcc; ac_word=$2
5729 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5730 echo "configure:5731: checking for $ac_word" >&5
5731 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5732 echo $ac_n "(cached) $ac_c" 1>&6
5733 else
5734 if test -n "$CC"; then
5735 ac_cv_prog_CC="$CC" # Let the user override the test.
5736 else
5737 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5738 ac_dummy="$PATH"
5739 for ac_dir in $ac_dummy; do
5740 test -z "$ac_dir" && ac_dir=.
5741 if test -f $ac_dir/$ac_word; then
5742 ac_cv_prog_CC="gcc"
5743 break
5744 fi
5745 done
5746 IFS="$ac_save_ifs"
5747 fi
5748 fi
5749 CC="$ac_cv_prog_CC"
5750 if test -n "$CC"; then
5751 echo "$ac_t""$CC" 1>&6
5752 else
5753 echo "$ac_t""no" 1>&6
5754 fi
5755
5756 if test -z "$CC"; then
5757 # Extract the first word of "cc", so it can be a program name with args.
5758 set dummy cc; ac_word=$2
5759 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5760 echo "configure:5761: checking for $ac_word" >&5
5761 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5762 echo $ac_n "(cached) $ac_c" 1>&6
5763 else
5764 if test -n "$CC"; then
5765 ac_cv_prog_CC="$CC" # Let the user override the test.
5766 else
5767 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5768 ac_prog_rejected=no
5769 ac_dummy="$PATH"
5770 for ac_dir in $ac_dummy; do
5771 test -z "$ac_dir" && ac_dir=.
5772 if test -f $ac_dir/$ac_word; then
5773 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
5774 ac_prog_rejected=yes
5775 continue
5776 fi
5777 ac_cv_prog_CC="cc"
5778 break
5779 fi
5780 done
5781 IFS="$ac_save_ifs"
5782 if test $ac_prog_rejected = yes; then
5783 # We found a bogon in the path, so make sure we never use it.
5784 set dummy $ac_cv_prog_CC
5785 shift
5786 if test $# -gt 0; then
5787 # We chose a different compiler from the bogus one.
5788 # However, it has the same basename, so the bogon will be chosen
5789 # first if we set CC to just the basename; use the full file name.
5790 shift
5791 set dummy "$ac_dir/$ac_word" "$@"
5792 shift
5793 ac_cv_prog_CC="$@"
5794 fi
5795 fi
5796 fi
5797 fi
5798 CC="$ac_cv_prog_CC"
5799 if test -n "$CC"; then
5800 echo "$ac_t""$CC" 1>&6
5801 else
5802 echo "$ac_t""no" 1>&6
5803 fi
5804
5805 if test -z "$CC"; then
5806 case "`uname -s`" in
5807 *win32* | *WIN32*)
5808 # Extract the first word of "cl", so it can be a program name with args.
5809 set dummy cl; ac_word=$2
5810 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5811 echo "configure:5812: checking for $ac_word" >&5
5812 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5813 echo $ac_n "(cached) $ac_c" 1>&6
5814 else
5815 if test -n "$CC"; then
5816 ac_cv_prog_CC="$CC" # Let the user override the test.
5817 else
5818 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5819 ac_dummy="$PATH"
5820 for ac_dir in $ac_dummy; do
5821 test -z "$ac_dir" && ac_dir=.
5822 if test -f $ac_dir/$ac_word; then
5823 ac_cv_prog_CC="cl"
5824 break
5825 fi
5826 done
5827 IFS="$ac_save_ifs"
5828 fi
5829 fi
5830 CC="$ac_cv_prog_CC"
5831 if test -n "$CC"; then
5832 echo "$ac_t""$CC" 1>&6
5833 else
5834 echo "$ac_t""no" 1>&6
5835 fi
5836 ;;
5837 esac
5838 fi
5839 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
5840 fi
5841
5842 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
5843 echo "configure:5844: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
5844
5845 ac_ext=c
5846 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5847 ac_cpp='$CPP $CPPFLAGS'
5848 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5849 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5850 cross_compiling=$ac_cv_prog_cc_cross
5851
5852 cat > conftest.$ac_ext << EOF
5853
5854 #line 5855 "configure"
5855 #include "confdefs.h"
5856
5857 main(){return(0);}
5858 EOF
5859 if { (eval echo configure:5860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5860 ac_cv_prog_cc_works=yes
5861 # If we can't run a trivial program, we are probably using a cross compiler.
5862 if (./conftest; exit) 2>/dev/null; then
5863 ac_cv_prog_cc_cross=no
5864 else
5865 ac_cv_prog_cc_cross=yes
5866 fi
5867 else
5868 echo "configure: failed program was:" >&5
5869 cat conftest.$ac_ext >&5
5870 ac_cv_prog_cc_works=no
5871 fi
5872 rm -fr conftest*
5873 ac_ext=c
5874 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5875 ac_cpp='$CPP $CPPFLAGS'
5876 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5877 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5878 cross_compiling=$ac_cv_prog_cc_cross
5879
5880 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
5881 if test $ac_cv_prog_cc_works = no; then
5882 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
5883 fi
5884 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
5885 echo "configure:5886: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
5886 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
5887 cross_compiling=$ac_cv_prog_cc_cross
5888
5889 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
5890 echo "configure:5891: checking whether we are using GNU C" >&5
5891 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
5892 echo $ac_n "(cached) $ac_c" 1>&6
5893 else
5894 cat > conftest.c <<EOF
5895 #ifdef __GNUC__
5896 yes;
5897 #endif
5898 EOF
5899 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:5900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
5900 ac_cv_prog_gcc=yes
5901 else
5902 ac_cv_prog_gcc=no
5903 fi
5904 fi
5905
5906 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
5907
5908 if test $ac_cv_prog_gcc = yes; then
5909 GCC=yes
5910 else
5911 GCC=
5912 fi
5913
5914 ac_test_CFLAGS="${CFLAGS+set}"
5915 ac_save_CFLAGS="$CFLAGS"
5916 CFLAGS=
5917 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
5918 echo "configure:5919: checking whether ${CC-cc} accepts -g" >&5
5919 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
5920 echo $ac_n "(cached) $ac_c" 1>&6
5921 else
5922 echo 'void f(){}' > conftest.c
5923 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
5924 ac_cv_prog_cc_g=yes
5925 else
5926 ac_cv_prog_cc_g=no
5927 fi
5928 rm -f conftest*
5929
5930 fi
5931
5932 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
5933 if test "$ac_test_CFLAGS" = set; then
5934 CFLAGS="$ac_save_CFLAGS"
5935 elif test $ac_cv_prog_cc_g = yes; then
5936 if test "$GCC" = yes; then
5937 CFLAGS="-g -O2"
5938 else
5939 CFLAGS="-g"
5940 fi
5941 else
5942 if test "$GCC" = yes; then
5943 CFLAGS="-O2"
5944 else
5945 CFLAGS=
5946 fi
5947 fi
5948
5949
5950 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
5951
5952 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
5953 echo "configure:5954: checking how to run the C preprocessor" >&5
5954 # On Suns, sometimes $CPP names a directory.
5955 if test -n "$CPP" && test -d "$CPP"; then
5956 CPP=
5957 fi
5958 if test -z "$CPP"; then
5959 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
5960 echo $ac_n "(cached) $ac_c" 1>&6
5961 else
5962 # This must be in double quotes, not single quotes, because CPP may get
5963 # substituted into the Makefile and "${CC-cc}" will confuse make.
5964 CPP="${CC-cc} -E"
5965 # On the NeXT, cc -E runs the code through the compiler's parser,
5966 # not just through cpp.
5967 cat > conftest.$ac_ext <<EOF
5968 #line 5969 "configure"
5969 #include "confdefs.h"
5970 #include <assert.h>
5971 Syntax Error
5972 EOF
5973 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5974 { (eval echo configure:5975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5975 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5976 if test -z "$ac_err"; then
5977 :
5978 else
5979 echo "$ac_err" >&5
5980 echo "configure: failed program was:" >&5
5981 cat conftest.$ac_ext >&5
5982 rm -rf conftest*
5983 CPP="${CC-cc} -E -traditional-cpp"
5984 cat > conftest.$ac_ext <<EOF
5985 #line 5986 "configure"
5986 #include "confdefs.h"
5987 #include <assert.h>
5988 Syntax Error
5989 EOF
5990 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5991 { (eval echo configure:5992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5992 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5993 if test -z "$ac_err"; then
5994 :
5995 else
5996 echo "$ac_err" >&5
5997 echo "configure: failed program was:" >&5
5998 cat conftest.$ac_ext >&5
5999 rm -rf conftest*
6000 CPP="${CC-cc} -nologo -E"
6001 cat > conftest.$ac_ext <<EOF
6002 #line 6003 "configure"
6003 #include "confdefs.h"
6004 #include <assert.h>
6005 Syntax Error
6006 EOF
6007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6008 { (eval echo configure:6009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6010 if test -z "$ac_err"; then
6011 :
6012 else
6013 echo "$ac_err" >&5
6014 echo "configure: failed program was:" >&5
6015 cat conftest.$ac_ext >&5
6016 rm -rf conftest*
6017 CPP=/lib/cpp
6018 fi
6019 rm -f conftest*
6020 fi
6021 rm -f conftest*
6022 fi
6023 rm -f conftest*
6024 ac_cv_prog_CPP="$CPP"
6025 fi
6026 CPP="$ac_cv_prog_CPP"
6027 else
6028 ac_cv_prog_CPP="$CPP"
6029 fi
6030 echo "$ac_t""$CPP" 1>&6
6031
6032
6033 if test $ac_cv_prog_gcc = yes; then
6034 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
6035 echo "configure:6036: checking whether ${CC-cc} needs -traditional" >&5
6036 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6037 echo $ac_n "(cached) $ac_c" 1>&6
6038 else
6039 ac_pattern="Autoconf.*'x'"
6040 cat > conftest.$ac_ext <<EOF
6041 #line 6042 "configure"
6042 #include "confdefs.h"
6043 #include <sgtty.h>
6044 Autoconf TIOCGETP
6045 EOF
6046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6047 egrep "$ac_pattern" >/dev/null 2>&1; then
6048 rm -rf conftest*
6049 ac_cv_prog_gcc_traditional=yes
6050 else
6051 rm -rf conftest*
6052 ac_cv_prog_gcc_traditional=no
6053 fi
6054 rm -f conftest*
6055
6056
6057 if test $ac_cv_prog_gcc_traditional = no; then
6058 cat > conftest.$ac_ext <<EOF
6059 #line 6060 "configure"
6060 #include "confdefs.h"
6061 #include <termio.h>
6062 Autoconf TCGETA
6063 EOF
6064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6065 egrep "$ac_pattern" >/dev/null 2>&1; then
6066 rm -rf conftest*
6067 ac_cv_prog_gcc_traditional=yes
6068 fi
6069 rm -f conftest*
6070
6071 fi
6072 fi
6073
6074 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6075 if test $ac_cv_prog_gcc_traditional = yes; then
6076 CC="$CC -traditional"
6077 fi
6078 fi
6079
6080
6081
6082 ac_ext=C
6083 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6084 ac_cpp='$CXXCPP $CPPFLAGS'
6085 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6086 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6087 cross_compiling=$ac_cv_prog_cxx_cross
6088
6089
6090 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6091 do
6092 # Extract the first word of "$ac_prog", so it can be a program name with args.
6093 set dummy $ac_prog; ac_word=$2
6094 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6095 echo "configure:6096: checking for $ac_word" >&5
6096 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6097 echo $ac_n "(cached) $ac_c" 1>&6
6098 else
6099 if test -n "$CXX"; then
6100 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6101 else
6102 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6103 ac_dummy="$PATH"
6104 for ac_dir in $ac_dummy; do
6105 test -z "$ac_dir" && ac_dir=.
6106 if test -f $ac_dir/$ac_word; then
6107 ac_cv_prog_CXX="$ac_prog"
6108 break
6109 fi
6110 done
6111 IFS="$ac_save_ifs"
6112 fi
6113 fi
6114 CXX="$ac_cv_prog_CXX"
6115 if test -n "$CXX"; then
6116 echo "$ac_t""$CXX" 1>&6
6117 else
6118 echo "$ac_t""no" 1>&6
6119 fi
6120
6121 test -n "$CXX" && break
6122 done
6123 test -n "$CXX" || CXX="gcc"
6124
6125
6126 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
6127 echo "configure:6128: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
6128
6129 ac_ext=C
6130 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6131 ac_cpp='$CXXCPP $CPPFLAGS'
6132 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6133 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6134 cross_compiling=$ac_cv_prog_cxx_cross
6135
6136 cat > conftest.$ac_ext << EOF
6137
6138 #line 6139 "configure"
6139 #include "confdefs.h"
6140
6141 int main(){return(0);}
6142 EOF
6143 if { (eval echo configure:6144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6144 ac_cv_prog_cxx_works=yes
6145 # If we can't run a trivial program, we are probably using a cross compiler.
6146 if (./conftest; exit) 2>/dev/null; then
6147 ac_cv_prog_cxx_cross=no
6148 else
6149 ac_cv_prog_cxx_cross=yes
6150 fi
6151 else
6152 echo "configure: failed program was:" >&5
6153 cat conftest.$ac_ext >&5
6154 ac_cv_prog_cxx_works=no
6155 fi
6156 rm -fr conftest*
6157 ac_ext=C
6158 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6159 ac_cpp='$CXXCPP $CPPFLAGS'
6160 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6161 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6162 cross_compiling=$ac_cv_prog_cxx_cross
6163
6164 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6165 if test $ac_cv_prog_cxx_works = no; then
6166 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6167 fi
6168 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
6169 echo "configure:6170: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
6170 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6171 cross_compiling=$ac_cv_prog_cxx_cross
6172
6173 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
6174 echo "configure:6175: checking whether we are using GNU C++" >&5
6175 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6176 echo $ac_n "(cached) $ac_c" 1>&6
6177 else
6178 cat > conftest.C <<EOF
6179 #ifdef __GNUC__
6180 yes;
6181 #endif
6182 EOF
6183 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
6184 ac_cv_prog_gxx=yes
6185 else
6186 ac_cv_prog_gxx=no
6187 fi
6188 fi
6189
6190 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6191
6192 if test $ac_cv_prog_gxx = yes; then
6193 GXX=yes
6194 else
6195 GXX=
6196 fi
6197
6198 ac_test_CXXFLAGS="${CXXFLAGS+set}"
6199 ac_save_CXXFLAGS="$CXXFLAGS"
6200 CXXFLAGS=
6201 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
6202 echo "configure:6203: checking whether ${CXX-g++} accepts -g" >&5
6203 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6204 echo $ac_n "(cached) $ac_c" 1>&6
6205 else
6206 echo 'void f(){}' > conftest.cc
6207 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6208 ac_cv_prog_cxx_g=yes
6209 else
6210 ac_cv_prog_cxx_g=no
6211 fi
6212 rm -f conftest*
6213
6214 fi
6215
6216 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6217 if test "$ac_test_CXXFLAGS" = set; then
6218 CXXFLAGS="$ac_save_CXXFLAGS"
6219 elif test $ac_cv_prog_cxx_g = yes; then
6220 if test "$GXX" = yes; then
6221 CXXFLAGS="-g -O2"
6222 else
6223 CXXFLAGS="-g"
6224 fi
6225 else
6226 if test "$GXX" = yes; then
6227 CXXFLAGS="-O2"
6228 else
6229 CXXFLAGS=
6230 fi
6231 fi
6232
6233
6234 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
6235 echo "configure:6236: checking how to run the C++ preprocessor" >&5
6236 if test -z "$CXXCPP"; then
6237 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6238 echo $ac_n "(cached) $ac_c" 1>&6
6239 else
6240 ac_ext=C
6241 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6242 ac_cpp='$CXXCPP $CPPFLAGS'
6243 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6244 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6245 cross_compiling=$ac_cv_prog_cxx_cross
6246 CXXCPP="${CXX-g++} -E"
6247 cat > conftest.$ac_ext <<EOF
6248 #line 6249 "configure"
6249 #include "confdefs.h"
6250 #include <stdlib.h>
6251 EOF
6252 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6253 { (eval echo configure:6254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6254 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6255 if test -z "$ac_err"; then
6256 :
6257 else
6258 echo "$ac_err" >&5
6259 echo "configure: failed program was:" >&5
6260 cat conftest.$ac_ext >&5
6261 rm -rf conftest*
6262 CXXCPP=/lib/cpp
6263 fi
6264 rm -f conftest*
6265 ac_cv_prog_CXXCPP="$CXXCPP"
6266 ac_ext=C
6267 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6268 ac_cpp='$CXXCPP $CPPFLAGS'
6269 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6270 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6271 cross_compiling=$ac_cv_prog_cxx_cross
6272 fi
6273 fi
6274 CXXCPP="$ac_cv_prog_CXXCPP"
6275 echo "$ac_t""$CXXCPP" 1>&6
6276
6277
6278 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6279
6280 ac_ext=c
6281 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6282 ac_cpp='$CPP $CPPFLAGS'
6283 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6284 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6285 cross_compiling=$ac_cv_prog_cc_cross
6286
6287
6288 # Extract the first word of "ranlib", so it can be a program name with args.
6289 set dummy ranlib; ac_word=$2
6290 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6291 echo "configure:6292: checking for $ac_word" >&5
6292 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6293 echo $ac_n "(cached) $ac_c" 1>&6
6294 else
6295 if test -n "$RANLIB"; then
6296 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6297 else
6298 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6299 ac_dummy="$PATH"
6300 for ac_dir in $ac_dummy; do
6301 test -z "$ac_dir" && ac_dir=.
6302 if test -f $ac_dir/$ac_word; then
6303 ac_cv_prog_RANLIB="ranlib"
6304 break
6305 fi
6306 done
6307 IFS="$ac_save_ifs"
6308 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6309 fi
6310 fi
6311 RANLIB="$ac_cv_prog_RANLIB"
6312 if test -n "$RANLIB"; then
6313 echo "$ac_t""$RANLIB" 1>&6
6314 else
6315 echo "$ac_t""no" 1>&6
6316 fi
6317
6318
6319 # Extract the first word of "ar", so it can be a program name with args.
6320 set dummy ar; ac_word=$2
6321 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6322 echo "configure:6323: checking for $ac_word" >&5
6323 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6324 echo $ac_n "(cached) $ac_c" 1>&6
6325 else
6326 if test -n "$AR"; then
6327 ac_cv_prog_AR="$AR" # Let the user override the test.
6328 else
6329 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6330 ac_dummy="$PATH"
6331 for ac_dir in $ac_dummy; do
6332 test -z "$ac_dir" && ac_dir=.
6333 if test -f $ac_dir/$ac_word; then
6334 ac_cv_prog_AR="ar"
6335 break
6336 fi
6337 done
6338 IFS="$ac_save_ifs"
6339 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6340 fi
6341 fi
6342 AR="$ac_cv_prog_AR"
6343 if test -n "$AR"; then
6344 echo "$ac_t""$AR" 1>&6
6345 else
6346 echo "$ac_t""no" 1>&6
6347 fi
6348
6349
6350 ac_aux_dir=
6351 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
6352 if test -f $ac_dir/install-sh; then
6353 ac_aux_dir=$ac_dir
6354 ac_install_sh="$ac_aux_dir/install-sh -c"
6355 break
6356 elif test -f $ac_dir/install.sh; then
6357 ac_aux_dir=$ac_dir
6358 ac_install_sh="$ac_aux_dir/install.sh -c"
6359 break
6360 fi
6361 done
6362 if test -z "$ac_aux_dir"; then
6363 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
6364 fi
6365 ac_config_guess=$ac_aux_dir/config.guess
6366 ac_config_sub=$ac_aux_dir/config.sub
6367 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
6368
6369 # Find a good install program. We prefer a C program (faster),
6370 # so one script is as good as another. But avoid the broken or
6371 # incompatible versions:
6372 # SysV /etc/install, /usr/sbin/install
6373 # SunOS /usr/etc/install
6374 # IRIX /sbin/install
6375 # AIX /bin/install
6376 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6377 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6378 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6379 # ./install, which can be erroneously created by make from ./install.sh.
6380 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
6381 echo "configure:6382: checking for a BSD compatible install" >&5
6382 if test -z "$INSTALL"; then
6383 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6384 echo $ac_n "(cached) $ac_c" 1>&6
6385 else
6386 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6387 for ac_dir in $PATH; do
6388 # Account for people who put trailing slashes in PATH elements.
6389 case "$ac_dir/" in
6390 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6391 *)
6392 # OSF1 and SCO ODT 3.0 have their own names for install.
6393 # Don't use installbsd from OSF since it installs stuff as root
6394 # by default.
6395 for ac_prog in ginstall scoinst install; do
6396 if test -f $ac_dir/$ac_prog; then
6397 if test $ac_prog = install &&
6398 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6399 # AIX install. It has an incompatible calling convention.
6400 :
6401 else
6402 ac_cv_path_install="$ac_dir/$ac_prog -c"
6403 break 2
6404 fi
6405 fi
6406 done
6407 ;;
6408 esac
6409 done
6410 IFS="$ac_save_IFS"
6411
6412 fi
6413 if test "${ac_cv_path_install+set}" = set; then
6414 INSTALL="$ac_cv_path_install"
6415 else
6416 # As a last resort, use the slow shell script. We don't cache a
6417 # path for INSTALL within a source directory, because that will
6418 # break other packages using the cache if that directory is
6419 # removed, or if the path is relative.
6420 INSTALL="$ac_install_sh"
6421 fi
6422 fi
6423 echo "$ac_t""$INSTALL" 1>&6
6424
6425 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6426 # It thinks the first close brace ends the variable substitution.
6427 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6428
6429 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6430
6431 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6432
6433
6434 # Extract the first word of "strip", so it can be a program name with args.
6435 set dummy strip; ac_word=$2
6436 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6437 echo "configure:6438: checking for $ac_word" >&5
6438 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6439 echo $ac_n "(cached) $ac_c" 1>&6
6440 else
6441 if test -n "$STRIP"; then
6442 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6443 else
6444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6445 ac_dummy="$PATH"
6446 for ac_dir in $ac_dummy; do
6447 test -z "$ac_dir" && ac_dir=.
6448 if test -f $ac_dir/$ac_word; then
6449 ac_cv_prog_STRIP="strip"
6450 break
6451 fi
6452 done
6453 IFS="$ac_save_ifs"
6454 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6455 fi
6456 fi
6457 STRIP="$ac_cv_prog_STRIP"
6458 if test -n "$STRIP"; then
6459 echo "$ac_t""$STRIP" 1>&6
6460 else
6461 echo "$ac_t""no" 1>&6
6462 fi
6463
6464
6465 echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
6466 echo "configure:6467: checking "make for VPATH support"" >&5
6467 cat - << EOF > confMake
6468 check : file
6469 cp \$? \$@
6470 cp \$? final_file
6471 EOF
6472
6473 if test ! -d sub ; then
6474 mkdir sub
6475 fi
6476 echo dummy > sub/file
6477 ${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null
6478 RESULT=$?
6479 rm -f sub/file check final_file confMake
6480 rmdir sub
6481 if test "$RESULT" = 0; then
6482 echo "$ac_t""yes" 1>&6
6483 else
6484 echo "$ac_t""no" 1>&6
6485 { echo "configure: error: You need a make-utility that is able to use the variable
6486 VPATH correctly.
6487 If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6488 fi
6489
6490 for ac_prog in 'bison -y' byacc
6491 do
6492 # Extract the first word of "$ac_prog", so it can be a program name with args.
6493 set dummy $ac_prog; ac_word=$2
6494 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6495 echo "configure:6496: checking for $ac_word" >&5
6496 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6497 echo $ac_n "(cached) $ac_c" 1>&6
6498 else
6499 if test -n "$YACC"; then
6500 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6501 else
6502 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6503 ac_dummy="$PATH"
6504 for ac_dir in $ac_dummy; do
6505 test -z "$ac_dir" && ac_dir=.
6506 if test -f $ac_dir/$ac_word; then
6507 ac_cv_prog_YACC="$ac_prog"
6508 break
6509 fi
6510 done
6511 IFS="$ac_save_ifs"
6512 fi
6513 fi
6514 YACC="$ac_cv_prog_YACC"
6515 if test -n "$YACC"; then
6516 echo "$ac_t""$YACC" 1>&6
6517 else
6518 echo "$ac_t""no" 1>&6
6519 fi
6520
6521 test -n "$YACC" && break
6522 done
6523 test -n "$YACC" || YACC="yacc"
6524
6525
6526 # Extract the first word of "flex", so it can be a program name with args.
6527 set dummy flex; ac_word=$2
6528 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6529 echo "configure:6530: checking for $ac_word" >&5
6530 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6531 echo $ac_n "(cached) $ac_c" 1>&6
6532 else
6533 if test -n "$LEX"; then
6534 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6535 else
6536 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6537 ac_dummy="$PATH"
6538 for ac_dir in $ac_dummy; do
6539 test -z "$ac_dir" && ac_dir=.
6540 if test -f $ac_dir/$ac_word; then
6541 ac_cv_prog_LEX="flex"
6542 break
6543 fi
6544 done
6545 IFS="$ac_save_ifs"
6546 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6547 fi
6548 fi
6549 LEX="$ac_cv_prog_LEX"
6550 if test -n "$LEX"; then
6551 echo "$ac_t""$LEX" 1>&6
6552 else
6553 echo "$ac_t""no" 1>&6
6554 fi
6555
6556 if test -z "$LEXLIB"
6557 then
6558 case "$LEX" in
6559 flex*) ac_lib=fl ;;
6560 *) ac_lib=l ;;
6561 esac
6562 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
6563 echo "configure:6564: checking for yywrap in -l$ac_lib" >&5
6564 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6565 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6566 echo $ac_n "(cached) $ac_c" 1>&6
6567 else
6568 ac_save_LIBS="$LIBS"
6569 LIBS="-l$ac_lib $LIBS"
6570 cat > conftest.$ac_ext <<EOF
6571 #line 6572 "configure"
6572 #include "confdefs.h"
6573 /* Override any gcc2 internal prototype to avoid an error. */
6574 /* We use char because int might match the return type of a gcc2
6575 builtin and then its argument prototype would still apply. */
6576 char yywrap();
6577
6578 int main() {
6579 yywrap()
6580 ; return 0; }
6581 EOF
6582 if { (eval echo configure:6583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6583 rm -rf conftest*
6584 eval "ac_cv_lib_$ac_lib_var=yes"
6585 else
6586 echo "configure: failed program was:" >&5
6587 cat conftest.$ac_ext >&5
6588 rm -rf conftest*
6589 eval "ac_cv_lib_$ac_lib_var=no"
6590 fi
6591 rm -f conftest*
6592 LIBS="$ac_save_LIBS"
6593
6594 fi
6595 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6596 echo "$ac_t""yes" 1>&6
6597 LEXLIB="-l$ac_lib"
6598 else
6599 echo "$ac_t""no" 1>&6
6600 fi
6601
6602 fi
6603
6604
6605 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
6606 echo "configure:6607: checking whether ln -s works" >&5
6607 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6608 echo $ac_n "(cached) $ac_c" 1>&6
6609 else
6610 rm -f conftestdata
6611 if ln -s X conftestdata 2>/dev/null
6612 then
6613 rm -f conftestdata
6614 ac_cv_prog_LN_S="ln -s"
6615 else
6616 ac_cv_prog_LN_S=ln
6617 fi
6618 fi
6619 LN_S="$ac_cv_prog_LN_S"
6620 if test "$ac_cv_prog_LN_S" = "ln -s"; then
6621 echo "$ac_t""yes" 1>&6
6622 else
6623 echo "$ac_t""no" 1>&6
6624 fi
6625
6626
6627
6628 SEARCH_INCLUDE="\
6629 /usr/local/include \
6630 \
6631 /usr/Motif-1.2/include \
6632 /usr/Motif-2.1/include \
6633 \
6634 /usr/include/Motif1.2 \
6635 /opt/xpm/include/X11 \
6636 /opt/GBxpm/include/ \
6637 /opt/GBxpm/X11/include/ \
6638 \
6639 /usr/Motif1.2/include \
6640 /usr/dt/include \
6641 /usr/openwin/include \
6642 \
6643 /usr/include/Xm \
6644 \
6645 /usr/X11R6/include \
6646 /usr/X11R6.4/include \
6647 /usr/X11R5/include \
6648 /usr/X11R4/include \
6649 \
6650 /usr/include/X11R6 \
6651 /usr/include/X11R5 \
6652 /usr/include/X11R4 \
6653 \
6654 /usr/local/X11R6/include \
6655 /usr/local/X11R5/include \
6656 /usr/local/X11R4/include \
6657 \
6658 /usr/local/include/X11R6 \
6659 /usr/local/include/X11R5 \
6660 /usr/local/include/X11R4 \
6661 \
6662 /usr/X11/include \
6663 /usr/include/X11 \
6664 /usr/local/X11/include \
6665 /usr/local/include/X11 \
6666 \
6667 /usr/X386/include \
6668 /usr/x386/include \
6669 /usr/XFree86/include/X11 \
6670 \
6671 X:/XFree86/include \
6672 X:/XFree86/include/X11 \
6673 \
6674 /usr/include/gtk \
6675 /usr/local/include/gtk \
6676 /usr/include/glib \
6677 /usr/local/include/glib \
6678 \
6679 /usr/include/qt \
6680 /usr/local/include/qt \
6681 \
6682 /usr/include/windows \
6683 /usr/include/wine \
6684 /usr/local/include/wine \
6685 \
6686 /usr/unsupported/include \
6687 /usr/athena/include \
6688 /usr/local/x11r5/include \
6689 /usr/lpp/Xamples/include \
6690 \
6691 /usr/openwin/share/include \
6692 \
6693 /usr/include"
6694
6695 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
6696
6697
6698 cat > confcache <<\EOF
6699 # This file is a shell script that caches the results of configure
6700 # tests run on this system so they can be shared between configure
6701 # scripts and configure runs. It is not useful on other systems.
6702 # If it contains results you don't want to keep, you may remove or edit it.
6703 #
6704 # By default, configure uses ./config.cache as the cache file,
6705 # creating it if it does not exist already. You can give configure
6706 # the --cache-file=FILE option to use a different cache file; that is
6707 # what configure does when it calls configure scripts in
6708 # subdirectories, so they share the cache.
6709 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6710 # config.status only pays attention to the cache file if you give it the
6711 # --recheck option to rerun configure.
6712 #
6713 EOF
6714 # The following way of writing the cache mishandles newlines in values,
6715 # but we know of no workaround that is simple, portable, and efficient.
6716 # So, don't put newlines in cache variables' values.
6717 # Ultrix sh set writes to stderr and can't be redirected directly,
6718 # and sets the high bit in the cache file unless we assign to the vars.
6719 (set) 2>&1 |
6720 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6721 *ac_space=\ *)
6722 # `set' does not quote correctly, so add quotes (double-quote substitution
6723 # turns \\\\ into \\, and sed turns \\ into \).
6724 sed -n \
6725 -e "s/'/'\\\\''/g" \
6726 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6727 ;;
6728 *)
6729 # `set' quotes correctly as required by POSIX, so do not add quotes.
6730 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6731 ;;
6732 esac >> confcache
6733 if cmp -s $cache_file confcache; then
6734 :
6735 else
6736 if test -w $cache_file; then
6737 echo "updating cache $cache_file"
6738 cat confcache > $cache_file
6739 else
6740 echo "not updating unwritable cache $cache_file"
6741 fi
6742 fi
6743 rm -f confcache
6744
6745
6746
6747 AFMINSTALL=
6748
6749 if test "$wxUSE_GUI" = "yes"; then
6750
6751 USE_GUI=1
6752
6753 TOOLKIT=
6754 TOOLKIT_INCLUDE=
6755
6756 GUIOBJS=
6757 COMMONOBJS=
6758 GENERICOBJS=
6759
6760 GUI_TK_LIBRARY=
6761 GUI_TK_LINK=
6762
6763 WXGTK12=
6764 WXGTK13=
6765
6766 WXWINE=
6767
6768 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
6769 if test "$cross_compiling" = "yes" ; then
6770 echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2
6771 else
6772 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
6773 echo "configure:6774: checking for Windows headers" >&5
6774
6775 ac_find_includes=
6776 for ac_dir in $SEARCH_INCLUDE;
6777 do
6778 if test -f "$ac_dir/windows.h"; then
6779 ac_find_includes=$ac_dir
6780 break
6781 fi
6782 done
6783
6784 if test "$ac_find_includes" != "" ; then
6785 echo "$ac_t""found $ac_find_includes" 1>&6
6786 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
6787 else
6788 echo "$ac_t""no" 1>&6
6789 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
6790 fi
6791 fi
6792
6793 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
6794 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
6795
6796 if test "$wxUSE_MINGW" = 1; then
6797 LDFLAGS="$LDFLAGS -mwindows"
6798 fi
6799
6800 TOOLKIT=MSW
6801
6802 GUIOBJS="\$(MSW_GUIOBJS)"
6803 GUIHEADERS="\$(MSW_HEADERS)"
6804 COMMONOBJS="\$(MSW_COMMONOBJS)"
6805 GENERICOBJS="\$(MSW_GENERICOBJS)"
6806 UNIXOBJS=
6807 GUIDIST=MSW_DIST
6808 fi
6809
6810 if test "$wxUSE_GTK" = 1; then
6811
6812 if test x$gtk_config_exec_prefix != x ; then
6813 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
6814 if test x${GTK_CONFIG+set} != xset ; then
6815 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
6816 fi
6817 fi
6818 if test x$gtk_config_prefix != x ; then
6819 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
6820 if test x${GTK_CONFIG+set} != xset ; then
6821 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
6822 fi
6823 fi
6824
6825 # Extract the first word of "gtk-config", so it can be a program name with args.
6826 set dummy gtk-config; ac_word=$2
6827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6828 echo "configure:6829: checking for $ac_word" >&5
6829 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
6830 echo $ac_n "(cached) $ac_c" 1>&6
6831 else
6832 case "$GTK_CONFIG" in
6833 /*)
6834 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
6835 ;;
6836 ?:/*)
6837 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
6838 ;;
6839 *)
6840 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6841 ac_dummy="$PATH"
6842 for ac_dir in $ac_dummy; do
6843 test -z "$ac_dir" && ac_dir=.
6844 if test -f $ac_dir/$ac_word; then
6845 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
6846 break
6847 fi
6848 done
6849 IFS="$ac_save_ifs"
6850 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
6851 ;;
6852 esac
6853 fi
6854 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
6855 if test -n "$GTK_CONFIG"; then
6856 echo "$ac_t""$GTK_CONFIG" 1>&6
6857 else
6858 echo "$ac_t""no" 1>&6
6859 fi
6860
6861 min_gtk_version=1.2.3
6862 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
6863 echo "configure:6864: checking for GTK - version >= $min_gtk_version" >&5
6864 no_gtk=""
6865 if test "$GTK_CONFIG" != "no" ; then
6866 GTK_CFLAGS=`$GTK_CONFIG --cflags`
6867 GTK_LIBS=`$GTK_CONFIG --libs gthread`
6868 ac_save_CFLAGS="$CFLAGS"
6869 ac_save_LIBS="$LIBS"
6870 CFLAGS="$CFLAGS $GTK_CFLAGS"
6871 LIBS="$LIBS $GTK_LIBS"
6872 if test "$cross_compiling" = yes; then
6873 echo $ac_n "cross compiling; assumed OK... $ac_c"
6874 else
6875 cat > conftest.$ac_ext <<EOF
6876 #line 6877 "configure"
6877 #include "confdefs.h"
6878
6879 #include <gtk/gtk.h>
6880 #include <gtk/gtkfeatures.h>
6881 #include <stdio.h>
6882
6883 int
6884 main ()
6885 {
6886 int major, minor, micro;
6887
6888 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
6889 printf("%s, bad version string\n", "$min_gtk_version");
6890 exit(1);
6891 }
6892
6893 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
6894 (GTK_MINOR_VERSION != gtk_minor_version) ||
6895 (GTK_MICRO_VERSION != gtk_micro_version)) {
6896 printf("Headers vs. library version mismatch!\n");
6897 exit(1);
6898 }
6899
6900 if (gtk_minor_version == 1) return FALSE;
6901
6902 return !((gtk_major_version > major) ||
6903 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6904 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
6905 }
6906
6907 EOF
6908 if { (eval echo configure:6909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6909 then
6910 :
6911 else
6912 echo "configure: failed program was:" >&5
6913 cat conftest.$ac_ext >&5
6914 rm -fr conftest*
6915 no_gtk=yes
6916 fi
6917 rm -fr conftest*
6918 fi
6919
6920 CFLAGS="$ac_save_CFLAGS"
6921 LIBS="$ac_save_LIBS"
6922 else
6923 no_gtk=yes
6924 fi
6925 if test "x$no_gtk" = x ; then
6926 echo "$ac_t""yes" 1>&6
6927 WXGTK12=1
6928 else
6929 echo "$ac_t""no" 1>&6
6930 GTK_CFLAGS=""
6931 GTK_LIBS=""
6932 :
6933 fi
6934
6935
6936
6937
6938 if test "$WXGTK12" != 1; then
6939 { echo "configure: error:
6940 Please check that gtk-config is in path, the directory
6941 where GTK+ libraries are installed (returned by
6942 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
6943 equivalent variable and GTK+ is version 1.2.3 or above.
6944 " 1>&2; exit 1; }
6945 fi
6946
6947
6948 TOOLKIT_INCLUDE="$GTK_CFLAGS"
6949
6950
6951 GUI_TK_LIBRARY="$GTK_LIBS"
6952
6953 TOOLKIT=GTK
6954
6955 AFMINSTALL=afminstall
6956
6957 GUIOBJS="\$(GTK_GUIOBJS)"
6958 GUIHEADERS="\$(GTK_HEADERS)"
6959 COMMONOBJS="\$(GTK_COMMONOBJS)"
6960 GENERICOBJS="\$(GTK_GENERICOBJS)"
6961 GUIDEPS="\$(GTK_GUIDEPS)"
6962 COMMONDEPS="\$(GTK_COMMONDEPS)"
6963 GENERICDEPS="\$(GTK_GENERICDEPS)"
6964 UNIXOBJS="\$(UNIX_OBJS)"
6965 UNIXDEPS="\$(UNIX_DEPS)"
6966 GUIDIST=GTK_DIST
6967
6968 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
6969 echo "configure:6970: checking for gdk_im_open in -lgdk" >&5
6970 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
6971 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6972 echo $ac_n "(cached) $ac_c" 1>&6
6973 else
6974 ac_save_LIBS="$LIBS"
6975 LIBS="-lgdk $LIBS"
6976 cat > conftest.$ac_ext <<EOF
6977 #line 6978 "configure"
6978 #include "confdefs.h"
6979 /* Override any gcc2 internal prototype to avoid an error. */
6980 /* We use char because int might match the return type of a gcc2
6981 builtin and then its argument prototype would still apply. */
6982 char gdk_im_open();
6983
6984 int main() {
6985 gdk_im_open()
6986 ; return 0; }
6987 EOF
6988 if { (eval echo configure:6989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6989 rm -rf conftest*
6990 eval "ac_cv_lib_$ac_lib_var=yes"
6991 else
6992 echo "configure: failed program was:" >&5
6993 cat conftest.$ac_ext >&5
6994 rm -rf conftest*
6995 eval "ac_cv_lib_$ac_lib_var=no"
6996 fi
6997 rm -f conftest*
6998 LIBS="$ac_save_LIBS"
6999
7000 fi
7001 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7002 echo "$ac_t""yes" 1>&6
7003 cat >> confdefs.h <<\EOF
7004 #define HAVE_XIM 1
7005 EOF
7006
7007 else
7008 echo "$ac_t""no" 1>&6
7009 fi
7010
7011 fi
7012
7013 if test "$wxUSE_WINE" = 1; then
7014 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
7015 echo "configure:7016: checking for WINE includes" >&5
7016
7017 ac_find_includes=
7018 for ac_dir in $SEARCH_INCLUDE;
7019 do
7020 if test -f "$ac_dir/windows.h"; then
7021 ac_find_includes=$ac_dir
7022 break
7023 fi
7024 done
7025
7026 if test "$ac_find_includes" != "" ; then
7027 echo "$ac_t""found $ac_find_includes" 1>&6
7028 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7029 else
7030 echo "$ac_t""no" 1>&6
7031 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7032 fi
7033
7034 XPM_LINK=""
7035 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
7036 echo "configure:7037: checking for Xpm library" >&5
7037
7038 ac_find_libraries=
7039 for ac_dir in $SEARCH_LIB;
7040 do
7041 for ac_extension in a so sl; do
7042 if test -f "$ac_dir/libXpm.$ac_extension"; then
7043 ac_find_libraries=$ac_dir
7044 break 2
7045 fi
7046 done
7047 done
7048
7049 if test "$ac_find_libraries" != "" ; then
7050 GUI_TK_LIBRARY="-L$ac_find_libraries"
7051 XPM_LINK="-lXpm"
7052 cat >> confdefs.h <<\EOF
7053 #define wxHAVE_LIB_XPM 1
7054 EOF
7055
7056 echo "$ac_t""found at $ac_find_libraries" 1>&6
7057 else
7058 echo "$ac_t""no" 1>&6
7059 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7060 fi
7061
7062 MESA_LINK=""
7063 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
7064 echo "configure:7065: checking for Mesa library" >&5
7065
7066 ac_find_libraries=
7067 for ac_dir in $SEARCH_LIB;
7068 do
7069 for ac_extension in a so sl; do
7070 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
7071 ac_find_libraries=$ac_dir
7072 break 2
7073 fi
7074 done
7075 done
7076
7077 if test "$ac_find_libraries" != "" ; then
7078 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
7079 MESA_LINK="-lMesaGL"
7080 echo "$ac_t""found at $ac_find_libraries" 1>&6
7081 else
7082 { echo "configure: error: no" 1>&2; exit 1; }
7083 fi
7084
7085 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm"
7086 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7087 WXWINE=1
7088 TOOLKIT=MSW
7089
7090 GUIHEADERS="\$(MSW_HEADERS)"
7091 GUIOBJS="\$(MSW_GUIOBJS)"
7092 COMMONOBJS="\$(MSW_COMMONOBJS)"
7093 GENERICOBJS="\$(MSW_GENERICOBJS)"
7094 GUIDEPS="\$(MSW_GUIDEPS)"
7095 COMMONDEPS="\$(MSW_COMMONDEPS)"
7096 GENERICDEPS="\$(MSW_GENERICDEPS)"
7097 UNIXOBJS="\$(UNIX_OBJS)"
7098 UNIXDEPS="\$(UNIX_DEPS)"
7099 GUIDIST=MSW_DIST
7100 fi
7101
7102 if test "$wxUSE_MOTIF" = 1; then
7103 # If we find X, set shell vars x_includes and x_libraries to the
7104 # paths, otherwise set no_x=yes.
7105 # Uses ac_ vars as temps to allow command line to override cache and checks.
7106 # --without-x overrides everything else, but does not touch the cache.
7107 echo $ac_n "checking for X""... $ac_c" 1>&6
7108 echo "configure:7109: checking for X" >&5
7109
7110 # Check whether --with-x or --without-x was given.
7111 if test "${with_x+set}" = set; then
7112 withval="$with_x"
7113 :
7114 fi
7115
7116 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7117 if test "x$with_x" = xno; then
7118 # The user explicitly disabled X.
7119 have_x=disabled
7120 else
7121 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7122 # Both variables are already set.
7123 have_x=yes
7124 else
7125 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7126 echo $ac_n "(cached) $ac_c" 1>&6
7127 else
7128 # One or both of the vars are not set, and there is no cached value.
7129 ac_x_includes=NO ac_x_libraries=NO
7130 rm -fr conftestdir
7131 if mkdir conftestdir; then
7132 cd conftestdir
7133 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7134 cat > Imakefile <<'EOF'
7135 acfindx:
7136 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7137 EOF
7138 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7139 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7140 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7141 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7142 for ac_extension in a so sl; do
7143 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7144 test -f $ac_im_libdir/libX11.$ac_extension; then
7145 ac_im_usrlibdir=$ac_im_libdir; break
7146 fi
7147 done
7148 # Screen out bogus values from the imake configuration. They are
7149 # bogus both because they are the default anyway, and because
7150 # using them would break gcc on systems where it needs fixed includes.
7151 case "$ac_im_incroot" in
7152 /usr/include) ;;
7153 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
7154 esac
7155 case "$ac_im_usrlibdir" in
7156 /usr/lib | /lib) ;;
7157 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
7158 esac
7159 fi
7160 cd ..
7161 rm -fr conftestdir
7162 fi
7163
7164 if test "$ac_x_includes" = NO; then
7165 # Guess where to find include files, by looking for this one X11 .h file.
7166 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
7167
7168 # First, try using that file with no special directory specified.
7169 cat > conftest.$ac_ext <<EOF
7170 #line 7171 "configure"
7171 #include "confdefs.h"
7172 #include <$x_direct_test_include>
7173 EOF
7174 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7175 { (eval echo configure:7176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7176 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7177 if test -z "$ac_err"; then
7178 rm -rf conftest*
7179 # We can compile using X headers with no special include directory.
7180 ac_x_includes=
7181 else
7182 echo "$ac_err" >&5
7183 echo "configure: failed program was:" >&5
7184 cat conftest.$ac_ext >&5
7185 rm -rf conftest*
7186 # Look for the header file in a standard set of common directories.
7187 # Check X11 before X11Rn because it is often a symlink to the current release.
7188 for ac_dir in \
7189 /usr/X11/include \
7190 /usr/X11R6/include \
7191 /usr/X11R5/include \
7192 /usr/X11R4/include \
7193 \
7194 /usr/include/X11 \
7195 /usr/include/X11R6 \
7196 /usr/include/X11R5 \
7197 /usr/include/X11R4 \
7198 \
7199 /usr/local/X11/include \
7200 /usr/local/X11R6/include \
7201 /usr/local/X11R5/include \
7202 /usr/local/X11R4/include \
7203 \
7204 /usr/local/include/X11 \
7205 /usr/local/include/X11R6 \
7206 /usr/local/include/X11R5 \
7207 /usr/local/include/X11R4 \
7208 \
7209 /usr/X386/include \
7210 /usr/x386/include \
7211 /usr/XFree86/include/X11 \
7212 \
7213 /usr/include \
7214 /usr/local/include \
7215 /usr/unsupported/include \
7216 /usr/athena/include \
7217 /usr/local/x11r5/include \
7218 /usr/lpp/Xamples/include \
7219 \
7220 /usr/openwin/include \
7221 /usr/openwin/share/include \
7222 ; \
7223 do
7224 if test -r "$ac_dir/$x_direct_test_include"; then
7225 ac_x_includes=$ac_dir
7226 break
7227 fi
7228 done
7229 fi
7230 rm -f conftest*
7231 fi # $ac_x_includes = NO
7232
7233 if test "$ac_x_libraries" = NO; then
7234 # Check for the libraries.
7235
7236 test -z "$x_direct_test_library" && x_direct_test_library=Xt
7237 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
7238
7239 # See if we find them without any special options.
7240 # Don't add to $LIBS permanently.
7241 ac_save_LIBS="$LIBS"
7242 LIBS="-l$x_direct_test_library $LIBS"
7243 cat > conftest.$ac_ext <<EOF
7244 #line 7245 "configure"
7245 #include "confdefs.h"
7246
7247 int main() {
7248 ${x_direct_test_function}()
7249 ; return 0; }
7250 EOF
7251 if { (eval echo configure:7252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7252 rm -rf conftest*
7253 LIBS="$ac_save_LIBS"
7254 # We can link X programs with no special library path.
7255 ac_x_libraries=
7256 else
7257 echo "configure: failed program was:" >&5
7258 cat conftest.$ac_ext >&5
7259 rm -rf conftest*
7260 LIBS="$ac_save_LIBS"
7261 # First see if replacing the include by lib works.
7262 # Check X11 before X11Rn because it is often a symlink to the current release.
7263 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
7264 /usr/X11/lib \
7265 /usr/X11R6/lib \
7266 /usr/X11R5/lib \
7267 /usr/X11R4/lib \
7268 \
7269 /usr/lib/X11 \
7270 /usr/lib/X11R6 \
7271 /usr/lib/X11R5 \
7272 /usr/lib/X11R4 \
7273 \
7274 /usr/local/X11/lib \
7275 /usr/local/X11R6/lib \
7276 /usr/local/X11R5/lib \
7277 /usr/local/X11R4/lib \
7278 \
7279 /usr/local/lib/X11 \
7280 /usr/local/lib/X11R6 \
7281 /usr/local/lib/X11R5 \
7282 /usr/local/lib/X11R4 \
7283 \
7284 /usr/X386/lib \
7285 /usr/x386/lib \
7286 /usr/XFree86/lib/X11 \
7287 \
7288 /usr/lib \
7289 /usr/local/lib \
7290 /usr/unsupported/lib \
7291 /usr/athena/lib \
7292 /usr/local/x11r5/lib \
7293 /usr/lpp/Xamples/lib \
7294 /lib/usr/lib/X11 \
7295 \
7296 /usr/openwin/lib \
7297 /usr/openwin/share/lib \
7298 ; \
7299 do
7300 for ac_extension in a so sl; do
7301 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
7302 ac_x_libraries=$ac_dir
7303 break 2
7304 fi
7305 done
7306 done
7307 fi
7308 rm -f conftest*
7309 fi # $ac_x_libraries = NO
7310
7311 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
7312 # Didn't find X anywhere. Cache the known absence of X.
7313 ac_cv_have_x="have_x=no"
7314 else
7315 # Record where we found X for the cache.
7316 ac_cv_have_x="have_x=yes \
7317 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7318 fi
7319 fi
7320 fi
7321 eval "$ac_cv_have_x"
7322 fi # $with_x != no
7323
7324 if test "$have_x" != yes; then
7325 echo "$ac_t""$have_x" 1>&6
7326 no_x=yes
7327 else
7328 # If each of the values was on the command line, it overrides each guess.
7329 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7330 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7331 # Update the cache value to reflect the command line values.
7332 ac_cv_have_x="have_x=yes \
7333 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7334 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7335 fi
7336
7337 if test "$no_x" = yes; then
7338 # Not all programs may use this symbol, but it does not hurt to define it.
7339 cat >> confdefs.h <<\EOF
7340 #define X_DISPLAY_MISSING 1
7341 EOF
7342
7343 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7344 else
7345 if test -n "$x_includes"; then
7346 X_CFLAGS="$X_CFLAGS -I$x_includes"
7347 fi
7348
7349 # It would also be nice to do this for all -L options, not just this one.
7350 if test -n "$x_libraries"; then
7351 X_LIBS="$X_LIBS -L$x_libraries"
7352 # For Solaris; some versions of Sun CC require a space after -R and
7353 # others require no space. Words are not sufficient . . . .
7354 case "`(uname -sr) 2>/dev/null`" in
7355 "SunOS 5"*)
7356 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
7357 echo "configure:7358: checking whether -R must be followed by a space" >&5
7358 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
7359 cat > conftest.$ac_ext <<EOF
7360 #line 7361 "configure"
7361 #include "confdefs.h"
7362
7363 int main() {
7364
7365 ; return 0; }
7366 EOF
7367 if { (eval echo configure:7368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7368 rm -rf conftest*
7369 ac_R_nospace=yes
7370 else
7371 echo "configure: failed program was:" >&5
7372 cat conftest.$ac_ext >&5
7373 rm -rf conftest*
7374 ac_R_nospace=no
7375 fi
7376 rm -f conftest*
7377 if test $ac_R_nospace = yes; then
7378 echo "$ac_t""no" 1>&6
7379 X_LIBS="$X_LIBS -R$x_libraries"
7380 else
7381 LIBS="$ac_xsave_LIBS -R $x_libraries"
7382 cat > conftest.$ac_ext <<EOF
7383 #line 7384 "configure"
7384 #include "confdefs.h"
7385
7386 int main() {
7387
7388 ; return 0; }
7389 EOF
7390 if { (eval echo configure:7391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7391 rm -rf conftest*
7392 ac_R_space=yes
7393 else
7394 echo "configure: failed program was:" >&5
7395 cat conftest.$ac_ext >&5
7396 rm -rf conftest*
7397 ac_R_space=no
7398 fi
7399 rm -f conftest*
7400 if test $ac_R_space = yes; then
7401 echo "$ac_t""yes" 1>&6
7402 X_LIBS="$X_LIBS -R $x_libraries"
7403 else
7404 echo "$ac_t""neither works" 1>&6
7405 fi
7406 fi
7407 LIBS="$ac_xsave_LIBS"
7408 esac
7409 fi
7410
7411 # Check for system-dependent libraries X programs must link with.
7412 # Do this before checking for the system-independent R6 libraries
7413 # (-lICE), since we may need -lsocket or whatever for X linking.
7414
7415 if test "$ISC" = yes; then
7416 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7417 else
7418 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
7419 # libraries were built with DECnet support. And karl@cs.umb.edu says
7420 # the Alpha needs dnet_stub (dnet does not exist).
7421 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
7422 echo "configure:7423: checking for dnet_ntoa in -ldnet" >&5
7423 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7424 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7425 echo $ac_n "(cached) $ac_c" 1>&6
7426 else
7427 ac_save_LIBS="$LIBS"
7428 LIBS="-ldnet $LIBS"
7429 cat > conftest.$ac_ext <<EOF
7430 #line 7431 "configure"
7431 #include "confdefs.h"
7432 /* Override any gcc2 internal prototype to avoid an error. */
7433 /* We use char because int might match the return type of a gcc2
7434 builtin and then its argument prototype would still apply. */
7435 char dnet_ntoa();
7436
7437 int main() {
7438 dnet_ntoa()
7439 ; return 0; }
7440 EOF
7441 if { (eval echo configure:7442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7442 rm -rf conftest*
7443 eval "ac_cv_lib_$ac_lib_var=yes"
7444 else
7445 echo "configure: failed program was:" >&5
7446 cat conftest.$ac_ext >&5
7447 rm -rf conftest*
7448 eval "ac_cv_lib_$ac_lib_var=no"
7449 fi
7450 rm -f conftest*
7451 LIBS="$ac_save_LIBS"
7452
7453 fi
7454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7455 echo "$ac_t""yes" 1>&6
7456 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7457 else
7458 echo "$ac_t""no" 1>&6
7459 fi
7460
7461 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7462 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
7463 echo "configure:7464: checking for dnet_ntoa in -ldnet_stub" >&5
7464 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7465 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7466 echo $ac_n "(cached) $ac_c" 1>&6
7467 else
7468 ac_save_LIBS="$LIBS"
7469 LIBS="-ldnet_stub $LIBS"
7470 cat > conftest.$ac_ext <<EOF
7471 #line 7472 "configure"
7472 #include "confdefs.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 dnet_ntoa();
7477
7478 int main() {
7479 dnet_ntoa()
7480 ; return 0; }
7481 EOF
7482 if { (eval echo configure:7483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7483 rm -rf conftest*
7484 eval "ac_cv_lib_$ac_lib_var=yes"
7485 else
7486 echo "configure: failed program was:" >&5
7487 cat conftest.$ac_ext >&5
7488 rm -rf conftest*
7489 eval "ac_cv_lib_$ac_lib_var=no"
7490 fi
7491 rm -f conftest*
7492 LIBS="$ac_save_LIBS"
7493
7494 fi
7495 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7496 echo "$ac_t""yes" 1>&6
7497 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7498 else
7499 echo "$ac_t""no" 1>&6
7500 fi
7501
7502 fi
7503
7504 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7505 # to get the SysV transport functions.
7506 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
7507 # needs -lnsl.
7508 # The nsl library prevents programs from opening the X display
7509 # on Irix 5.2, according to dickey@clark.net.
7510 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
7511 echo "configure:7512: checking for gethostbyname" >&5
7512 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
7513 echo $ac_n "(cached) $ac_c" 1>&6
7514 else
7515 cat > conftest.$ac_ext <<EOF
7516 #line 7517 "configure"
7517 #include "confdefs.h"
7518 /* System header to define __stub macros and hopefully few prototypes,
7519 which can conflict with char gethostbyname(); below. */
7520 #include <assert.h>
7521 /* Override any gcc2 internal prototype to avoid an error. */
7522 /* We use char because int might match the return type of a gcc2
7523 builtin and then its argument prototype would still apply. */
7524 char gethostbyname();
7525
7526 int main() {
7527
7528 /* The GNU C library defines this for functions which it implements
7529 to always fail with ENOSYS. Some functions are actually named
7530 something starting with __ and the normal name is an alias. */
7531 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7532 choke me
7533 #else
7534 gethostbyname();
7535 #endif
7536
7537 ; return 0; }
7538 EOF
7539 if { (eval echo configure:7540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7540 rm -rf conftest*
7541 eval "ac_cv_func_gethostbyname=yes"
7542 else
7543 echo "configure: failed program was:" >&5
7544 cat conftest.$ac_ext >&5
7545 rm -rf conftest*
7546 eval "ac_cv_func_gethostbyname=no"
7547 fi
7548 rm -f conftest*
7549 fi
7550
7551 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
7552 echo "$ac_t""yes" 1>&6
7553 :
7554 else
7555 echo "$ac_t""no" 1>&6
7556 fi
7557
7558 if test $ac_cv_func_gethostbyname = no; then
7559 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
7560 echo "configure:7561: checking for gethostbyname in -lnsl" >&5
7561 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7562 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7563 echo $ac_n "(cached) $ac_c" 1>&6
7564 else
7565 ac_save_LIBS="$LIBS"
7566 LIBS="-lnsl $LIBS"
7567 cat > conftest.$ac_ext <<EOF
7568 #line 7569 "configure"
7569 #include "confdefs.h"
7570 /* Override any gcc2 internal prototype to avoid an error. */
7571 /* We use char because int might match the return type of a gcc2
7572 builtin and then its argument prototype would still apply. */
7573 char gethostbyname();
7574
7575 int main() {
7576 gethostbyname()
7577 ; return 0; }
7578 EOF
7579 if { (eval echo configure:7580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7580 rm -rf conftest*
7581 eval "ac_cv_lib_$ac_lib_var=yes"
7582 else
7583 echo "configure: failed program was:" >&5
7584 cat conftest.$ac_ext >&5
7585 rm -rf conftest*
7586 eval "ac_cv_lib_$ac_lib_var=no"
7587 fi
7588 rm -f conftest*
7589 LIBS="$ac_save_LIBS"
7590
7591 fi
7592 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7593 echo "$ac_t""yes" 1>&6
7594 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7595 else
7596 echo "$ac_t""no" 1>&6
7597 fi
7598
7599 fi
7600
7601 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7602 # socket/setsockopt and other routines are undefined under SCO ODT
7603 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7604 # on later versions), says simon@lia.di.epfl.ch: it contains
7605 # gethostby* variants that don't use the nameserver (or something).
7606 # -lsocket must be given before -lnsl if both are needed.
7607 # We assume that if connect needs -lnsl, so does gethostbyname.
7608 echo $ac_n "checking for connect""... $ac_c" 1>&6
7609 echo "configure:7610: checking for connect" >&5
7610 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7611 echo $ac_n "(cached) $ac_c" 1>&6
7612 else
7613 cat > conftest.$ac_ext <<EOF
7614 #line 7615 "configure"
7615 #include "confdefs.h"
7616 /* System header to define __stub macros and hopefully few prototypes,
7617 which can conflict with char connect(); below. */
7618 #include <assert.h>
7619 /* Override any gcc2 internal prototype to avoid an error. */
7620 /* We use char because int might match the return type of a gcc2
7621 builtin and then its argument prototype would still apply. */
7622 char connect();
7623
7624 int main() {
7625
7626 /* The GNU C library defines this for functions which it implements
7627 to always fail with ENOSYS. Some functions are actually named
7628 something starting with __ and the normal name is an alias. */
7629 #if defined (__stub_connect) || defined (__stub___connect)
7630 choke me
7631 #else
7632 connect();
7633 #endif
7634
7635 ; return 0; }
7636 EOF
7637 if { (eval echo configure:7638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7638 rm -rf conftest*
7639 eval "ac_cv_func_connect=yes"
7640 else
7641 echo "configure: failed program was:" >&5
7642 cat conftest.$ac_ext >&5
7643 rm -rf conftest*
7644 eval "ac_cv_func_connect=no"
7645 fi
7646 rm -f conftest*
7647 fi
7648
7649 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7650 echo "$ac_t""yes" 1>&6
7651 :
7652 else
7653 echo "$ac_t""no" 1>&6
7654 fi
7655
7656 if test $ac_cv_func_connect = no; then
7657 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
7658 echo "configure:7659: checking for connect in -lsocket" >&5
7659 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7660 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7661 echo $ac_n "(cached) $ac_c" 1>&6
7662 else
7663 ac_save_LIBS="$LIBS"
7664 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7665 cat > conftest.$ac_ext <<EOF
7666 #line 7667 "configure"
7667 #include "confdefs.h"
7668 /* Override any gcc2 internal prototype to avoid an error. */
7669 /* We use char because int might match the return type of a gcc2
7670 builtin and then its argument prototype would still apply. */
7671 char connect();
7672
7673 int main() {
7674 connect()
7675 ; return 0; }
7676 EOF
7677 if { (eval echo configure:7678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7678 rm -rf conftest*
7679 eval "ac_cv_lib_$ac_lib_var=yes"
7680 else
7681 echo "configure: failed program was:" >&5
7682 cat conftest.$ac_ext >&5
7683 rm -rf conftest*
7684 eval "ac_cv_lib_$ac_lib_var=no"
7685 fi
7686 rm -f conftest*
7687 LIBS="$ac_save_LIBS"
7688
7689 fi
7690 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7691 echo "$ac_t""yes" 1>&6
7692 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7693 else
7694 echo "$ac_t""no" 1>&6
7695 fi
7696
7697 fi
7698
7699 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7700 echo $ac_n "checking for remove""... $ac_c" 1>&6
7701 echo "configure:7702: checking for remove" >&5
7702 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7703 echo $ac_n "(cached) $ac_c" 1>&6
7704 else
7705 cat > conftest.$ac_ext <<EOF
7706 #line 7707 "configure"
7707 #include "confdefs.h"
7708 /* System header to define __stub macros and hopefully few prototypes,
7709 which can conflict with char remove(); below. */
7710 #include <assert.h>
7711 /* Override any gcc2 internal prototype to avoid an error. */
7712 /* We use char because int might match the return type of a gcc2
7713 builtin and then its argument prototype would still apply. */
7714 char remove();
7715
7716 int main() {
7717
7718 /* The GNU C library defines this for functions which it implements
7719 to always fail with ENOSYS. Some functions are actually named
7720 something starting with __ and the normal name is an alias. */
7721 #if defined (__stub_remove) || defined (__stub___remove)
7722 choke me
7723 #else
7724 remove();
7725 #endif
7726
7727 ; return 0; }
7728 EOF
7729 if { (eval echo configure:7730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7730 rm -rf conftest*
7731 eval "ac_cv_func_remove=yes"
7732 else
7733 echo "configure: failed program was:" >&5
7734 cat conftest.$ac_ext >&5
7735 rm -rf conftest*
7736 eval "ac_cv_func_remove=no"
7737 fi
7738 rm -f conftest*
7739 fi
7740
7741 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7742 echo "$ac_t""yes" 1>&6
7743 :
7744 else
7745 echo "$ac_t""no" 1>&6
7746 fi
7747
7748 if test $ac_cv_func_remove = no; then
7749 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
7750 echo "configure:7751: checking for remove in -lposix" >&5
7751 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7752 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7753 echo $ac_n "(cached) $ac_c" 1>&6
7754 else
7755 ac_save_LIBS="$LIBS"
7756 LIBS="-lposix $LIBS"
7757 cat > conftest.$ac_ext <<EOF
7758 #line 7759 "configure"
7759 #include "confdefs.h"
7760 /* Override any gcc2 internal prototype to avoid an error. */
7761 /* We use char because int might match the return type of a gcc2
7762 builtin and then its argument prototype would still apply. */
7763 char remove();
7764
7765 int main() {
7766 remove()
7767 ; return 0; }
7768 EOF
7769 if { (eval echo configure:7770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7770 rm -rf conftest*
7771 eval "ac_cv_lib_$ac_lib_var=yes"
7772 else
7773 echo "configure: failed program was:" >&5
7774 cat conftest.$ac_ext >&5
7775 rm -rf conftest*
7776 eval "ac_cv_lib_$ac_lib_var=no"
7777 fi
7778 rm -f conftest*
7779 LIBS="$ac_save_LIBS"
7780
7781 fi
7782 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7783 echo "$ac_t""yes" 1>&6
7784 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7785 else
7786 echo "$ac_t""no" 1>&6
7787 fi
7788
7789 fi
7790
7791 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7792 echo $ac_n "checking for shmat""... $ac_c" 1>&6
7793 echo "configure:7794: checking for shmat" >&5
7794 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
7795 echo $ac_n "(cached) $ac_c" 1>&6
7796 else
7797 cat > conftest.$ac_ext <<EOF
7798 #line 7799 "configure"
7799 #include "confdefs.h"
7800 /* System header to define __stub macros and hopefully few prototypes,
7801 which can conflict with char shmat(); below. */
7802 #include <assert.h>
7803 /* Override any gcc2 internal prototype to avoid an error. */
7804 /* We use char because int might match the return type of a gcc2
7805 builtin and then its argument prototype would still apply. */
7806 char shmat();
7807
7808 int main() {
7809
7810 /* The GNU C library defines this for functions which it implements
7811 to always fail with ENOSYS. Some functions are actually named
7812 something starting with __ and the normal name is an alias. */
7813 #if defined (__stub_shmat) || defined (__stub___shmat)
7814 choke me
7815 #else
7816 shmat();
7817 #endif
7818
7819 ; return 0; }
7820 EOF
7821 if { (eval echo configure:7822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7822 rm -rf conftest*
7823 eval "ac_cv_func_shmat=yes"
7824 else
7825 echo "configure: failed program was:" >&5
7826 cat conftest.$ac_ext >&5
7827 rm -rf conftest*
7828 eval "ac_cv_func_shmat=no"
7829 fi
7830 rm -f conftest*
7831 fi
7832
7833 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
7834 echo "$ac_t""yes" 1>&6
7835 :
7836 else
7837 echo "$ac_t""no" 1>&6
7838 fi
7839
7840 if test $ac_cv_func_shmat = no; then
7841 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
7842 echo "configure:7843: checking for shmat in -lipc" >&5
7843 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
7844 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7845 echo $ac_n "(cached) $ac_c" 1>&6
7846 else
7847 ac_save_LIBS="$LIBS"
7848 LIBS="-lipc $LIBS"
7849 cat > conftest.$ac_ext <<EOF
7850 #line 7851 "configure"
7851 #include "confdefs.h"
7852 /* Override any gcc2 internal prototype to avoid an error. */
7853 /* We use char because int might match the return type of a gcc2
7854 builtin and then its argument prototype would still apply. */
7855 char shmat();
7856
7857 int main() {
7858 shmat()
7859 ; return 0; }
7860 EOF
7861 if { (eval echo configure:7862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7862 rm -rf conftest*
7863 eval "ac_cv_lib_$ac_lib_var=yes"
7864 else
7865 echo "configure: failed program was:" >&5
7866 cat conftest.$ac_ext >&5
7867 rm -rf conftest*
7868 eval "ac_cv_lib_$ac_lib_var=no"
7869 fi
7870 rm -f conftest*
7871 LIBS="$ac_save_LIBS"
7872
7873 fi
7874 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7875 echo "$ac_t""yes" 1>&6
7876 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7877 else
7878 echo "$ac_t""no" 1>&6
7879 fi
7880
7881 fi
7882 fi
7883
7884 # Check for libraries that X11R6 Xt/Xaw programs need.
7885 ac_save_LDFLAGS="$LDFLAGS"
7886 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7887 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7888 # check for ICE first), but we must link in the order -lSM -lICE or
7889 # we get undefined symbols. So assume we have SM if we have ICE.
7890 # These have to be linked with before -lX11, unlike the other
7891 # libraries we check for below, so use a different variable.
7892 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
7893 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
7894 echo "configure:7895: checking for IceConnectionNumber in -lICE" >&5
7895 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
7896 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7897 echo $ac_n "(cached) $ac_c" 1>&6
7898 else
7899 ac_save_LIBS="$LIBS"
7900 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7901 cat > conftest.$ac_ext <<EOF
7902 #line 7903 "configure"
7903 #include "confdefs.h"
7904 /* Override any gcc2 internal prototype to avoid an error. */
7905 /* We use char because int might match the return type of a gcc2
7906 builtin and then its argument prototype would still apply. */
7907 char IceConnectionNumber();
7908
7909 int main() {
7910 IceConnectionNumber()
7911 ; return 0; }
7912 EOF
7913 if { (eval echo configure:7914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7914 rm -rf conftest*
7915 eval "ac_cv_lib_$ac_lib_var=yes"
7916 else
7917 echo "configure: failed program was:" >&5
7918 cat conftest.$ac_ext >&5
7919 rm -rf conftest*
7920 eval "ac_cv_lib_$ac_lib_var=no"
7921 fi
7922 rm -f conftest*
7923 LIBS="$ac_save_LIBS"
7924
7925 fi
7926 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7927 echo "$ac_t""yes" 1>&6
7928 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7929 else
7930 echo "$ac_t""no" 1>&6
7931 fi
7932
7933 LDFLAGS="$ac_save_LDFLAGS"
7934
7935 fi
7936
7937
7938 if test "$no_x" = "yes"; then
7939 { echo "configure: error: X11 not found" 1>&2; exit 1; }
7940 fi
7941
7942 GUI_TK_LIBRARY="$X_LIBS"
7943 TOOLKIT_INCLUDE="$X_CFLAGS"
7944
7945 AFMINSTALL=afminstall
7946
7947
7948 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
7949 echo "configure:7950: checking for Motif/Lesstif headers" >&5
7950
7951 ac_find_includes=
7952 for ac_dir in $SEARCH_INCLUDE;
7953 do
7954 if test -f "$ac_dir/Xm/Xm.h"; then
7955 ac_find_includes=$ac_dir
7956 break
7957 fi
7958 done
7959
7960 if test "$ac_find_includes" != "" ; then
7961 echo "$ac_t""found $ac_find_includes" 1>&6
7962 else
7963 echo "$ac_t""no" 1>&6
7964 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
7965 fi
7966
7967 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
7968 echo "configure:7969: checking for Motif/Lesstif library" >&5
7969
7970 ac_find_libraries=
7971 for ac_dir in $SEARCH_LIB;
7972 do
7973 for ac_extension in a so sl; do
7974 if test -f "$ac_dir/libXm.$ac_extension"; then
7975 ac_find_libraries=$ac_dir
7976 break 2
7977 fi
7978 done
7979 done
7980
7981 if test "$ac_find_libraries" != "" ; then
7982
7983 ac_path_to_include=$ac_find_includes
7984 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
7985 result=$?
7986 if test $result = 0; then
7987 ac_path_to_include=""
7988 else
7989 ac_path_to_include="-I$ac_find_includes"
7990 fi
7991
7992
7993 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
7994 result=$?
7995 if test $result = 0; then
7996 ac_path_to_link=""
7997 else
7998 ac_path_to_link="-L$ac_find_libraries"
7999 fi
8000
8001
8002 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8003 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
8004 echo "$ac_t""found at $ac_find_libraries" 1>&6
8005 else
8006 echo "$ac_t""no" 1>&6
8007 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
8008 fi
8009
8010 echo $ac_n "checking for Xt library""... $ac_c" 1>&6
8011 echo "configure:8012: checking for Xt library" >&5
8012
8013 ac_find_libraries=
8014 for ac_dir in $SEARCH_LIB;
8015 do
8016 for ac_extension in a so sl; do
8017 if test -f "$ac_dir/libXt.$ac_extension"; then
8018 ac_find_libraries=$ac_dir
8019 break 2
8020 fi
8021 done
8022 done
8023
8024 if test "$ac_find_libraries" != "" ; then
8025
8026 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8027 result=$?
8028 if test $result = 0; then
8029 ac_path_to_link=""
8030 else
8031 ac_path_to_link="-L$ac_find_libraries"
8032 fi
8033
8034 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8035 echo "$ac_t""found at $ac_find_libraries" 1>&6
8036 else
8037 echo "$ac_t""no" 1>&6
8038 { echo "configure: error: please set LDFLAGS to contain the location of libXt" 1>&2; exit 1; }
8039 fi
8040
8041 XPM_LINK=""
8042 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
8043 echo "configure:8044: checking for Xpm library" >&5
8044
8045 ac_find_libraries=
8046 for ac_dir in $SEARCH_LIB;
8047 do
8048 for ac_extension in a so sl; do
8049 if test -f "$ac_dir/libXpm.$ac_extension"; then
8050 ac_find_libraries=$ac_dir
8051 break 2
8052 fi
8053 done
8054 done
8055
8056 if test "$ac_find_libraries" != "" ; then
8057
8058 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8059 result=$?
8060 if test $result = 0; then
8061 ac_path_to_link=""
8062 else
8063 ac_path_to_link="-L$ac_find_libraries"
8064 fi
8065
8066 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8067 XPM_LINK="-lXpm "
8068 cat >> confdefs.h <<\EOF
8069 #define wxHAVE_LIB_XPM 1
8070 EOF
8071
8072 echo "$ac_t""found at $ac_find_libraries" 1>&6
8073 else
8074 echo "$ac_t""no" 1>&6
8075 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
8076 fi
8077
8078 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11 -lm"
8079 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
8080 TOOLKIT=MOTIF
8081
8082 GUIHEADERS="\$(MOTIF_HEADERS)"
8083 GUIOBJS="\$(MOTIF_GUIOBJS)"
8084 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
8085 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
8086 GUIDEPS="\$(MOTIF_GUIDEPS)"
8087 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
8088 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
8089 UNIXOBJS="\$(UNIX_OBJS)"
8090 UNIXDEPS="\$(UNIX_DEPS)"
8091 GUIDIST=MOTIF_DIST
8092 fi
8093
8094 if test "$wxUSE_PM" = 1; then
8095 TOOLKIT=PM
8096
8097 GUIOBJS="\$(PM_GUIOBJS)"
8098 GUIHEADERS="\$(PM_HEADERS)"
8099 COMMONOBJS="\$(PM_COMMONOBJS)"
8100 GENERICOBJS="\$(PM_GENERICOBJS)"
8101 GUIDEPS="\$(PM_GUIDEPS)"
8102 COMMONDEPS="\$(PM_COMMONDEPS)"
8103 GENERICDEPS="\$(PM_GENERICDEPS)"
8104 UNIXOBJS=
8105 UNIXDEPS=
8106 GUIDIST=GTK_DIST
8107 fi
8108
8109 if test "$TOOLKIT" != "PM" ; then
8110 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
8111 else
8112 TOOLKIT_DIR="os2"
8113 fi
8114
8115 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
8116
8117 WX_LIBRARY="wx_${TOOLKIT_DIR}"
8118
8119 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(IODBCOBJS)"
8120 if test "$wxUSE_LIBJPEG" = "yes" ; then
8121 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
8122 fi
8123 if test "$wxUSE_LIBTIFF" = "yes" ; then
8124 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
8125 fi
8126 if test "$wxUSE_LIBPNG" = "yes" ; then
8127 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
8128 fi
8129 if test "$wxUSE_ZLIB" = "yes" ; then
8130 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
8131 fi
8132 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS)"
8133
8134 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
8135 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
8136 RPM_SPEC="wx\$(TOOLKIT).spec"
8137
8138 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
8139 DISTDIR="wx\$(TOOLKIT)"
8140 else
8141
8142 USE_GUI=0
8143
8144 ALL_OBJECTS="\$(BASE_OBJS) \${BASE_UNIX_OBJS}"
8145 ALL_DEPFILES="\${BASE_DEPS} \${BASE_UNIX_DEPS}"
8146
8147 WX_LIBRARY="wxbase"
8148
8149 PORT_FILES="src/files.lst"
8150 RPM_FILES="src/rpmfiles.lst"
8151 RPM_SPEC="wxBase.spec"
8152
8153 GUIDIST="BASE_DIST"
8154 DISTDIR="wxBase"
8155 fi
8156
8157 WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
8158
8159 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
8160
8161 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
8162
8163 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
8164 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
8165 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
8166
8167 SHARED_LD=
8168 PIC_FLAG=
8169 WX_ALL=
8170 WX_ALL_INSTALLED=
8171 BURNT_LIBRARY_NAME=
8172
8173
8174 if test "$wxUSE_SHARED" = "yes"; then
8175 case "${host}" in
8176 *-hp-hpux* )
8177 if test "$GCC" = yes ; then
8178 SHARED_LD="${CC} -shared -fPIC -o"
8179 PIC_FLAG="-fPIC"
8180 else
8181 SHARED_LD="${CXX} -b -o"
8182 PIC_FLAG="+Z"
8183 fi
8184 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
8185 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8186 ;;
8187
8188 *-*-linux* )
8189 SHARED_LD="${CC} -shared -o"
8190 PIC_FLAG="-fPIC"
8191 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8192 WX_ALL="CREATE_LINKS"
8193 ;;
8194 *-*-irix5* | *-*-irix6* )
8195 if test "$GCC" = yes ; then
8196 SHARED_LD="${CC} -shared -o"
8197 PIC_FLAG="-fPIC"
8198 else
8199 SHARED_LD="${CXX} -shared -o"
8200 fi
8201 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8202 WX_ALL="CREATE_LINKS"
8203 ;;
8204 *-*-solaris2* )
8205 if test "$GCC" = yes ; then
8206 SHARED_LD="${CC} -shared -o"
8207 PIC_FLAG="-fPIC"
8208 else
8209 SHARED_LD="${CXX} -G -o"
8210 PIC_FLAG="-KPIC"
8211 fi
8212 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8213 WX_ALL="CREATE_LINKS"
8214 ;;
8215 *-*-sunos4* )
8216 SHARED_LD="${CC} -shared -o"
8217 PIC_FLAG="-fPIC"
8218 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8219 WX_ALL="CREATE_LINKS"
8220 ;;
8221 *-*-freebsd* | *-*-netbsd*)
8222 SHARED_LD="${CC} -shared -o"
8223 PIC_FLAG="-fPIC"
8224 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8225 WX_ALL="CREATE_LINKS"
8226 ;;
8227 *-*-osf* )
8228 SHARED_LD="${CXX} -shared -o"
8229 PIC_FLAG="-fPIC"
8230 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8231 WX_ALL="CREATE_LINKS"
8232 ;;
8233 *-*-dgux5* )
8234 SHARED_LD="${CXX} -shared -o"
8235 PIC_FLAG="-fPIC"
8236 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8237 WX_ALL="CREATE_LINKS"
8238 ;;
8239 *-*-sysv5* )
8240 SHARED_LD="${CC} -shared -o"
8241 PIC_FLAG="-fPIC"
8242 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8243 WX_ALL="CREATE_LINKS"
8244 ;;
8245 *-*-aix* )
8246 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
8247 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8248 ;;
8249 *-*-cygwin32* )
8250 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8251 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8252 ;;
8253 *-*-mingw32* )
8254 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8255 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8256 ;;
8257 *-pc-os2_emx )
8258 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8259 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8260 ;;
8261 *-*-beos* )
8262 SHARED_LD="${LD} -shared -o"
8263 PIC_FLAG="-fPIC"
8264 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8265 WX_ALL="CREATE_LINKS"
8266 ;;
8267 *)
8268 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
8269 esac
8270
8271 if test "x$WX_TARGET_LIBRARY" = "x"; then
8272 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
8273 fi
8274 else
8275 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8276 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8277 fi
8278
8279
8280 for ac_hdr in strings.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 for ac_hdr in unistd.h
8321 do
8322 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8323 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8324 echo "configure:8325: checking for $ac_hdr" >&5
8325 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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 <$ac_hdr>
8332 EOF
8333 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8334 { (eval echo configure:8335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8335 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8336 if test -z "$ac_err"; then
8337 rm -rf conftest*
8338 eval "ac_cv_header_$ac_safe=yes"
8339 else
8340 echo "$ac_err" >&5
8341 echo "configure: failed program was:" >&5
8342 cat conftest.$ac_ext >&5
8343 rm -rf conftest*
8344 eval "ac_cv_header_$ac_safe=no"
8345 fi
8346 rm -f conftest*
8347 fi
8348 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8349 echo "$ac_t""yes" 1>&6
8350 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8351 cat >> confdefs.h <<EOF
8352 #define $ac_tr_hdr 1
8353 EOF
8354
8355 else
8356 echo "$ac_t""no" 1>&6
8357 fi
8358 done
8359
8360 for ac_hdr in wchar.h
8361 do
8362 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8363 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8364 echo "configure:8365: checking for $ac_hdr" >&5
8365 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8366 echo $ac_n "(cached) $ac_c" 1>&6
8367 else
8368 cat > conftest.$ac_ext <<EOF
8369 #line 8370 "configure"
8370 #include "confdefs.h"
8371 #include <$ac_hdr>
8372 EOF
8373 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8374 { (eval echo configure:8375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8375 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8376 if test -z "$ac_err"; then
8377 rm -rf conftest*
8378 eval "ac_cv_header_$ac_safe=yes"
8379 else
8380 echo "$ac_err" >&5
8381 echo "configure: failed program was:" >&5
8382 cat conftest.$ac_ext >&5
8383 rm -rf conftest*
8384 eval "ac_cv_header_$ac_safe=no"
8385 fi
8386 rm -f conftest*
8387 fi
8388 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8389 echo "$ac_t""yes" 1>&6
8390 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8391 cat >> confdefs.h <<EOF
8392 #define $ac_tr_hdr 1
8393 EOF
8394
8395 else
8396 echo "$ac_t""no" 1>&6
8397 fi
8398 done
8399
8400 for ac_hdr in wcstr.h
8401 do
8402 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8403 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8404 echo "configure:8405: checking for $ac_hdr" >&5
8405 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8406 echo $ac_n "(cached) $ac_c" 1>&6
8407 else
8408 cat > conftest.$ac_ext <<EOF
8409 #line 8410 "configure"
8410 #include "confdefs.h"
8411 #include <$ac_hdr>
8412 EOF
8413 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8414 { (eval echo configure:8415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8415 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8416 if test -z "$ac_err"; then
8417 rm -rf conftest*
8418 eval "ac_cv_header_$ac_safe=yes"
8419 else
8420 echo "$ac_err" >&5
8421 echo "configure: failed program was:" >&5
8422 cat conftest.$ac_ext >&5
8423 rm -rf conftest*
8424 eval "ac_cv_header_$ac_safe=no"
8425 fi
8426 rm -f conftest*
8427 fi
8428 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8429 echo "$ac_t""yes" 1>&6
8430 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8431 cat >> confdefs.h <<EOF
8432 #define $ac_tr_hdr 1
8433 EOF
8434
8435 else
8436 echo "$ac_t""no" 1>&6
8437 fi
8438 done
8439
8440 for ac_hdr in fnmatch.h
8441 do
8442 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8443 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8444 echo "configure:8445: checking for $ac_hdr" >&5
8445 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8446 echo $ac_n "(cached) $ac_c" 1>&6
8447 else
8448 cat > conftest.$ac_ext <<EOF
8449 #line 8450 "configure"
8450 #include "confdefs.h"
8451 #include <$ac_hdr>
8452 EOF
8453 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8454 { (eval echo configure:8455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8455 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8456 if test -z "$ac_err"; then
8457 rm -rf conftest*
8458 eval "ac_cv_header_$ac_safe=yes"
8459 else
8460 echo "$ac_err" >&5
8461 echo "configure: failed program was:" >&5
8462 cat conftest.$ac_ext >&5
8463 rm -rf conftest*
8464 eval "ac_cv_header_$ac_safe=no"
8465 fi
8466 rm -f conftest*
8467 fi
8468 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8469 echo "$ac_t""yes" 1>&6
8470 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8471 cat >> confdefs.h <<EOF
8472 #define $ac_tr_hdr 1
8473 EOF
8474
8475 else
8476 echo "$ac_t""no" 1>&6
8477 fi
8478 done
8479
8480
8481 if test "$wxUSE_GUI" = "yes"; then
8482 for ac_hdr in X11/XKBlib.h
8483 do
8484 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8485 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8486 echo "configure:8487: checking for $ac_hdr" >&5
8487 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8488 echo $ac_n "(cached) $ac_c" 1>&6
8489 else
8490 cat > conftest.$ac_ext <<EOF
8491 #line 8492 "configure"
8492 #include "confdefs.h"
8493 #include <$ac_hdr>
8494 EOF
8495 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8496 { (eval echo configure:8497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8497 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8498 if test -z "$ac_err"; then
8499 rm -rf conftest*
8500 eval "ac_cv_header_$ac_safe=yes"
8501 else
8502 echo "$ac_err" >&5
8503 echo "configure: failed program was:" >&5
8504 cat conftest.$ac_ext >&5
8505 rm -rf conftest*
8506 eval "ac_cv_header_$ac_safe=no"
8507 fi
8508 rm -f conftest*
8509 fi
8510 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8511 echo "$ac_t""yes" 1>&6
8512 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8513 cat >> confdefs.h <<EOF
8514 #define $ac_tr_hdr 1
8515 EOF
8516
8517 else
8518 echo "$ac_t""no" 1>&6
8519 fi
8520 done
8521
8522 fi
8523
8524
8525 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8526 echo "configure:8527: checking for ANSI C header files" >&5
8527 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8528 echo $ac_n "(cached) $ac_c" 1>&6
8529 else
8530 cat > conftest.$ac_ext <<EOF
8531 #line 8532 "configure"
8532 #include "confdefs.h"
8533 #include <stdlib.h>
8534 #include <stdarg.h>
8535 #include <string.h>
8536 #include <float.h>
8537 EOF
8538 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8539 { (eval echo configure:8540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8540 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8541 if test -z "$ac_err"; then
8542 rm -rf conftest*
8543 ac_cv_header_stdc=yes
8544 else
8545 echo "$ac_err" >&5
8546 echo "configure: failed program was:" >&5
8547 cat conftest.$ac_ext >&5
8548 rm -rf conftest*
8549 ac_cv_header_stdc=no
8550 fi
8551 rm -f conftest*
8552
8553 if test $ac_cv_header_stdc = yes; then
8554 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8555 cat > conftest.$ac_ext <<EOF
8556 #line 8557 "configure"
8557 #include "confdefs.h"
8558 #include <string.h>
8559 EOF
8560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8561 egrep "memchr" >/dev/null 2>&1; then
8562 :
8563 else
8564 rm -rf conftest*
8565 ac_cv_header_stdc=no
8566 fi
8567 rm -f conftest*
8568
8569 fi
8570
8571 if test $ac_cv_header_stdc = yes; then
8572 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8573 cat > conftest.$ac_ext <<EOF
8574 #line 8575 "configure"
8575 #include "confdefs.h"
8576 #include <stdlib.h>
8577 EOF
8578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8579 egrep "free" >/dev/null 2>&1; then
8580 :
8581 else
8582 rm -rf conftest*
8583 ac_cv_header_stdc=no
8584 fi
8585 rm -f conftest*
8586
8587 fi
8588
8589 if test $ac_cv_header_stdc = yes; then
8590 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8591 if test "$cross_compiling" = yes; then
8592 :
8593 else
8594 cat > conftest.$ac_ext <<EOF
8595 #line 8596 "configure"
8596 #include "confdefs.h"
8597 #include <ctype.h>
8598 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8599 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8600 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8601 int main () { int i; for (i = 0; i < 256; i++)
8602 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8603 exit (0); }
8604
8605 EOF
8606 if { (eval echo configure:8607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8607 then
8608 :
8609 else
8610 echo "configure: failed program was:" >&5
8611 cat conftest.$ac_ext >&5
8612 rm -fr conftest*
8613 ac_cv_header_stdc=no
8614 fi
8615 rm -fr conftest*
8616 fi
8617
8618 fi
8619 fi
8620
8621 echo "$ac_t""$ac_cv_header_stdc" 1>&6
8622 if test $ac_cv_header_stdc = yes; then
8623 cat >> confdefs.h <<\EOF
8624 #define STDC_HEADERS 1
8625 EOF
8626
8627 fi
8628
8629 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
8630 echo "configure:8631: checking for mode_t" >&5
8631 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8632 echo $ac_n "(cached) $ac_c" 1>&6
8633 else
8634 cat > conftest.$ac_ext <<EOF
8635 #line 8636 "configure"
8636 #include "confdefs.h"
8637 #include <sys/types.h>
8638 #if STDC_HEADERS
8639 #include <stdlib.h>
8640 #include <stddef.h>
8641 #endif
8642 EOF
8643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8644 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8645 rm -rf conftest*
8646 ac_cv_type_mode_t=yes
8647 else
8648 rm -rf conftest*
8649 ac_cv_type_mode_t=no
8650 fi
8651 rm -f conftest*
8652
8653 fi
8654 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
8655 if test $ac_cv_type_mode_t = no; then
8656 cat >> confdefs.h <<\EOF
8657 #define mode_t int
8658 EOF
8659
8660 fi
8661
8662 echo $ac_n "checking for off_t""... $ac_c" 1>&6
8663 echo "configure:8664: checking for off_t" >&5
8664 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
8665 echo $ac_n "(cached) $ac_c" 1>&6
8666 else
8667 cat > conftest.$ac_ext <<EOF
8668 #line 8669 "configure"
8669 #include "confdefs.h"
8670 #include <sys/types.h>
8671 #if STDC_HEADERS
8672 #include <stdlib.h>
8673 #include <stddef.h>
8674 #endif
8675 EOF
8676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8677 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8678 rm -rf conftest*
8679 ac_cv_type_off_t=yes
8680 else
8681 rm -rf conftest*
8682 ac_cv_type_off_t=no
8683 fi
8684 rm -f conftest*
8685
8686 fi
8687 echo "$ac_t""$ac_cv_type_off_t" 1>&6
8688 if test $ac_cv_type_off_t = no; then
8689 cat >> confdefs.h <<\EOF
8690 #define off_t long
8691 EOF
8692
8693 fi
8694
8695 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
8696 echo "configure:8697: checking for pid_t" >&5
8697 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8698 echo $ac_n "(cached) $ac_c" 1>&6
8699 else
8700 cat > conftest.$ac_ext <<EOF
8701 #line 8702 "configure"
8702 #include "confdefs.h"
8703 #include <sys/types.h>
8704 #if STDC_HEADERS
8705 #include <stdlib.h>
8706 #include <stddef.h>
8707 #endif
8708 EOF
8709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8710 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8711 rm -rf conftest*
8712 ac_cv_type_pid_t=yes
8713 else
8714 rm -rf conftest*
8715 ac_cv_type_pid_t=no
8716 fi
8717 rm -f conftest*
8718
8719 fi
8720 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
8721 if test $ac_cv_type_pid_t = no; then
8722 cat >> confdefs.h <<\EOF
8723 #define pid_t int
8724 EOF
8725
8726 fi
8727
8728 echo $ac_n "checking for size_t""... $ac_c" 1>&6
8729 echo "configure:8730: checking for size_t" >&5
8730 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
8731 echo $ac_n "(cached) $ac_c" 1>&6
8732 else
8733 cat > conftest.$ac_ext <<EOF
8734 #line 8735 "configure"
8735 #include "confdefs.h"
8736 #include <sys/types.h>
8737 #if STDC_HEADERS
8738 #include <stdlib.h>
8739 #include <stddef.h>
8740 #endif
8741 EOF
8742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8743 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8744 rm -rf conftest*
8745 ac_cv_type_size_t=yes
8746 else
8747 rm -rf conftest*
8748 ac_cv_type_size_t=no
8749 fi
8750 rm -f conftest*
8751
8752 fi
8753 echo "$ac_t""$ac_cv_type_size_t" 1>&6
8754 if test $ac_cv_type_size_t = no; then
8755 cat >> confdefs.h <<\EOF
8756 #define size_t unsigned
8757 EOF
8758
8759 fi
8760
8761 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
8762 echo "configure:8763: checking for uid_t in sys/types.h" >&5
8763 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
8764 echo $ac_n "(cached) $ac_c" 1>&6
8765 else
8766 cat > conftest.$ac_ext <<EOF
8767 #line 8768 "configure"
8768 #include "confdefs.h"
8769 #include <sys/types.h>
8770 EOF
8771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8772 egrep "uid_t" >/dev/null 2>&1; then
8773 rm -rf conftest*
8774 ac_cv_type_uid_t=yes
8775 else
8776 rm -rf conftest*
8777 ac_cv_type_uid_t=no
8778 fi
8779 rm -f conftest*
8780
8781 fi
8782
8783 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
8784 if test $ac_cv_type_uid_t = no; then
8785 cat >> confdefs.h <<\EOF
8786 #define uid_t int
8787 EOF
8788
8789 cat >> confdefs.h <<\EOF
8790 #define gid_t int
8791 EOF
8792
8793 fi
8794
8795
8796
8797 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
8798 echo "configure:8799: checking for pw_gecos in struct passwd" >&5
8799 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
8800 echo $ac_n "(cached) $ac_c" 1>&6
8801 else
8802
8803 cat > conftest.$ac_ext <<EOF
8804 #line 8805 "configure"
8805 #include "confdefs.h"
8806 #include <pwd.h>
8807 int main() {
8808
8809 char *p;
8810 struct passwd *pw;
8811 p = pw->pw_gecos;
8812
8813 ; return 0; }
8814 EOF
8815 if { (eval echo configure:8816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8816 rm -rf conftest*
8817
8818 wx_cv_struct_pw_gecos=yes
8819 cat >> confdefs.h <<\EOF
8820 #define HAVE_PW_GECOS 1
8821 EOF
8822
8823
8824 else
8825 echo "configure: failed program was:" >&5
8826 cat conftest.$ac_ext >&5
8827 rm -rf conftest*
8828
8829 wx_cv_struct_pw_gecos=no
8830
8831
8832 fi
8833 rm -f conftest*
8834
8835
8836 fi
8837
8838 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
8839
8840
8841 echo $ac_n "checking for working const""... $ac_c" 1>&6
8842 echo "configure:8843: checking for working const" >&5
8843 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
8844 echo $ac_n "(cached) $ac_c" 1>&6
8845 else
8846 cat > conftest.$ac_ext <<EOF
8847 #line 8848 "configure"
8848 #include "confdefs.h"
8849
8850 int main() {
8851
8852 /* Ultrix mips cc rejects this. */
8853 typedef int charset[2]; const charset x;
8854 /* SunOS 4.1.1 cc rejects this. */
8855 char const *const *ccp;
8856 char **p;
8857 /* NEC SVR4.0.2 mips cc rejects this. */
8858 struct point {int x, y;};
8859 static struct point const zero = {0,0};
8860 /* AIX XL C 1.02.0.0 rejects this.
8861 It does not let you subtract one const X* pointer from another in an arm
8862 of an if-expression whose if-part is not a constant expression */
8863 const char *g = "string";
8864 ccp = &g + (g ? g-g : 0);
8865 /* HPUX 7.0 cc rejects these. */
8866 ++ccp;
8867 p = (char**) ccp;
8868 ccp = (char const *const *) p;
8869 { /* SCO 3.2v4 cc rejects this. */
8870 char *t;
8871 char const *s = 0 ? (char *) 0 : (char const *) 0;
8872
8873 *t++ = 0;
8874 }
8875 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8876 int x[] = {25, 17};
8877 const int *foo = &x[0];
8878 ++foo;
8879 }
8880 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8881 typedef const int *iptr;
8882 iptr p = 0;
8883 ++p;
8884 }
8885 { /* AIX XL C 1.02.0.0 rejects this saying
8886 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8887 struct s { int j; const int *ap[3]; };
8888 struct s *b; b->j = 5;
8889 }
8890 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8891 const int foo = 10;
8892 }
8893
8894 ; return 0; }
8895 EOF
8896 if { (eval echo configure:8897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8897 rm -rf conftest*
8898 ac_cv_c_const=yes
8899 else
8900 echo "configure: failed program was:" >&5
8901 cat conftest.$ac_ext >&5
8902 rm -rf conftest*
8903 ac_cv_c_const=no
8904 fi
8905 rm -f conftest*
8906 fi
8907
8908 echo "$ac_t""$ac_cv_c_const" 1>&6
8909 if test $ac_cv_c_const = no; then
8910 cat >> confdefs.h <<\EOF
8911 #define const
8912 EOF
8913
8914 fi
8915
8916 echo $ac_n "checking for inline""... $ac_c" 1>&6
8917 echo "configure:8918: checking for inline" >&5
8918 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
8919 echo $ac_n "(cached) $ac_c" 1>&6
8920 else
8921 ac_cv_c_inline=no
8922 for ac_kw in inline __inline__ __inline; do
8923 cat > conftest.$ac_ext <<EOF
8924 #line 8925 "configure"
8925 #include "confdefs.h"
8926
8927 int main() {
8928 } $ac_kw foo() {
8929 ; return 0; }
8930 EOF
8931 if { (eval echo configure:8932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8932 rm -rf conftest*
8933 ac_cv_c_inline=$ac_kw; break
8934 else
8935 echo "configure: failed program was:" >&5
8936 cat conftest.$ac_ext >&5
8937 fi
8938 rm -f conftest*
8939 done
8940
8941 fi
8942
8943 echo "$ac_t""$ac_cv_c_inline" 1>&6
8944 case "$ac_cv_c_inline" in
8945 inline | yes) ;;
8946 no) cat >> confdefs.h <<\EOF
8947 #define inline
8948 EOF
8949 ;;
8950 *) cat >> confdefs.h <<EOF
8951 #define inline $ac_cv_c_inline
8952 EOF
8953 ;;
8954 esac
8955
8956
8957 echo $ac_n "checking size of char""... $ac_c" 1>&6
8958 echo "configure:8959: checking size of char" >&5
8959 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
8960 echo $ac_n "(cached) $ac_c" 1>&6
8961 else
8962 if test "$cross_compiling" = yes; then
8963 ac_cv_sizeof_char=1
8964 else
8965 cat > conftest.$ac_ext <<EOF
8966 #line 8967 "configure"
8967 #include "confdefs.h"
8968 #include <stdio.h>
8969 main()
8970 {
8971 FILE *f=fopen("conftestval", "w");
8972 if (!f) exit(1);
8973 fprintf(f, "%d\n", sizeof(char));
8974 exit(0);
8975 }
8976 EOF
8977 if { (eval echo configure:8978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8978 then
8979 ac_cv_sizeof_char=`cat conftestval`
8980 else
8981 echo "configure: failed program was:" >&5
8982 cat conftest.$ac_ext >&5
8983 rm -fr conftest*
8984 ac_cv_sizeof_char=0
8985 fi
8986 rm -fr conftest*
8987 fi
8988
8989 fi
8990 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
8991 cat >> confdefs.h <<EOF
8992 #define SIZEOF_CHAR $ac_cv_sizeof_char
8993 EOF
8994
8995
8996 echo $ac_n "checking size of short""... $ac_c" 1>&6
8997 echo "configure:8998: checking size of short" >&5
8998 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
8999 echo $ac_n "(cached) $ac_c" 1>&6
9000 else
9001 if test "$cross_compiling" = yes; then
9002 ac_cv_sizeof_short=2
9003 else
9004 cat > conftest.$ac_ext <<EOF
9005 #line 9006 "configure"
9006 #include "confdefs.h"
9007 #include <stdio.h>
9008 main()
9009 {
9010 FILE *f=fopen("conftestval", "w");
9011 if (!f) exit(1);
9012 fprintf(f, "%d\n", sizeof(short));
9013 exit(0);
9014 }
9015 EOF
9016 if { (eval echo configure:9017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9017 then
9018 ac_cv_sizeof_short=`cat conftestval`
9019 else
9020 echo "configure: failed program was:" >&5
9021 cat conftest.$ac_ext >&5
9022 rm -fr conftest*
9023 ac_cv_sizeof_short=0
9024 fi
9025 rm -fr conftest*
9026 fi
9027
9028 fi
9029 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
9030 cat >> confdefs.h <<EOF
9031 #define SIZEOF_SHORT $ac_cv_sizeof_short
9032 EOF
9033
9034
9035 echo $ac_n "checking size of int *""... $ac_c" 1>&6
9036 echo "configure:9037: checking size of int *" >&5
9037 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
9038 echo $ac_n "(cached) $ac_c" 1>&6
9039 else
9040 if test "$cross_compiling" = yes; then
9041 ac_cv_sizeof_int_p=4
9042 else
9043 cat > conftest.$ac_ext <<EOF
9044 #line 9045 "configure"
9045 #include "confdefs.h"
9046 #include <stdio.h>
9047 main()
9048 {
9049 FILE *f=fopen("conftestval", "w");
9050 if (!f) exit(1);
9051 fprintf(f, "%d\n", sizeof(int *));
9052 exit(0);
9053 }
9054 EOF
9055 if { (eval echo configure:9056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9056 then
9057 ac_cv_sizeof_int_p=`cat conftestval`
9058 else
9059 echo "configure: failed program was:" >&5
9060 cat conftest.$ac_ext >&5
9061 rm -fr conftest*
9062 ac_cv_sizeof_int_p=0
9063 fi
9064 rm -fr conftest*
9065 fi
9066
9067 fi
9068 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
9069 cat >> confdefs.h <<EOF
9070 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
9071 EOF
9072
9073
9074 echo $ac_n "checking size of int""... $ac_c" 1>&6
9075 echo "configure:9076: checking size of int" >&5
9076 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
9077 echo $ac_n "(cached) $ac_c" 1>&6
9078 else
9079 if test "$cross_compiling" = yes; then
9080 ac_cv_sizeof_int=4
9081 else
9082 cat > conftest.$ac_ext <<EOF
9083 #line 9084 "configure"
9084 #include "confdefs.h"
9085 #include <stdio.h>
9086 main()
9087 {
9088 FILE *f=fopen("conftestval", "w");
9089 if (!f) exit(1);
9090 fprintf(f, "%d\n", sizeof(int));
9091 exit(0);
9092 }
9093 EOF
9094 if { (eval echo configure:9095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9095 then
9096 ac_cv_sizeof_int=`cat conftestval`
9097 else
9098 echo "configure: failed program was:" >&5
9099 cat conftest.$ac_ext >&5
9100 rm -fr conftest*
9101 ac_cv_sizeof_int=0
9102 fi
9103 rm -fr conftest*
9104 fi
9105
9106 fi
9107 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
9108 cat >> confdefs.h <<EOF
9109 #define SIZEOF_INT $ac_cv_sizeof_int
9110 EOF
9111
9112
9113 echo $ac_n "checking size of long""... $ac_c" 1>&6
9114 echo "configure:9115: checking size of long" >&5
9115 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
9116 echo $ac_n "(cached) $ac_c" 1>&6
9117 else
9118 if test "$cross_compiling" = yes; then
9119 ac_cv_sizeof_long=4
9120 else
9121 cat > conftest.$ac_ext <<EOF
9122 #line 9123 "configure"
9123 #include "confdefs.h"
9124 #include <stdio.h>
9125 main()
9126 {
9127 FILE *f=fopen("conftestval", "w");
9128 if (!f) exit(1);
9129 fprintf(f, "%d\n", sizeof(long));
9130 exit(0);
9131 }
9132 EOF
9133 if { (eval echo configure:9134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9134 then
9135 ac_cv_sizeof_long=`cat conftestval`
9136 else
9137 echo "configure: failed program was:" >&5
9138 cat conftest.$ac_ext >&5
9139 rm -fr conftest*
9140 ac_cv_sizeof_long=0
9141 fi
9142 rm -fr conftest*
9143 fi
9144
9145 fi
9146 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
9147 cat >> confdefs.h <<EOF
9148 #define SIZEOF_LONG $ac_cv_sizeof_long
9149 EOF
9150
9151
9152 echo $ac_n "checking size of long long""... $ac_c" 1>&6
9153 echo "configure:9154: checking size of long long" >&5
9154 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
9155 echo $ac_n "(cached) $ac_c" 1>&6
9156 else
9157 if test "$cross_compiling" = yes; then
9158 ac_cv_sizeof_long_long=0
9159 else
9160 cat > conftest.$ac_ext <<EOF
9161 #line 9162 "configure"
9162 #include "confdefs.h"
9163 #include <stdio.h>
9164 main()
9165 {
9166 FILE *f=fopen("conftestval", "w");
9167 if (!f) exit(1);
9168 fprintf(f, "%d\n", sizeof(long long));
9169 exit(0);
9170 }
9171 EOF
9172 if { (eval echo configure:9173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9173 then
9174 ac_cv_sizeof_long_long=`cat conftestval`
9175 else
9176 echo "configure: failed program was:" >&5
9177 cat conftest.$ac_ext >&5
9178 rm -fr conftest*
9179 ac_cv_sizeof_long_long=0
9180 fi
9181 rm -fr conftest*
9182 fi
9183
9184 fi
9185 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
9186 cat >> confdefs.h <<EOF
9187 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9188 EOF
9189
9190
9191
9192 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
9193 echo "configure:9194: checking whether byte ordering is bigendian" >&5
9194 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9195 echo $ac_n "(cached) $ac_c" 1>&6
9196 else
9197 ac_cv_c_bigendian=unknown
9198 # See if sys/param.h defines the BYTE_ORDER macro.
9199 cat > conftest.$ac_ext <<EOF
9200 #line 9201 "configure"
9201 #include "confdefs.h"
9202 #include <sys/types.h>
9203 #include <sys/param.h>
9204 int main() {
9205
9206 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9207 bogus endian macros
9208 #endif
9209 ; return 0; }
9210 EOF
9211 if { (eval echo configure:9212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9212 rm -rf conftest*
9213 # It does; now see whether it defined to BIG_ENDIAN or not.
9214 cat > conftest.$ac_ext <<EOF
9215 #line 9216 "configure"
9216 #include "confdefs.h"
9217 #include <sys/types.h>
9218 #include <sys/param.h>
9219 int main() {
9220
9221 #if BYTE_ORDER != BIG_ENDIAN
9222 not big endian
9223 #endif
9224 ; return 0; }
9225 EOF
9226 if { (eval echo configure:9227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9227 rm -rf conftest*
9228 ac_cv_c_bigendian=yes
9229 else
9230 echo "configure: failed program was:" >&5
9231 cat conftest.$ac_ext >&5
9232 rm -rf conftest*
9233 ac_cv_c_bigendian=no
9234 fi
9235 rm -f conftest*
9236 else
9237 echo "configure: failed program was:" >&5
9238 cat conftest.$ac_ext >&5
9239 fi
9240 rm -f conftest*
9241 if test $ac_cv_c_bigendian = unknown; then
9242 if test "$cross_compiling" = yes; then
9243 ac_cv_c_bigendian=unknown
9244 else
9245 cat > conftest.$ac_ext <<EOF
9246 #line 9247 "configure"
9247 #include "confdefs.h"
9248 main () {
9249 /* Are we little or big endian? From Harbison&Steele. */
9250 union
9251 {
9252 long l;
9253 char c[sizeof (long)];
9254 } u;
9255 u.l = 1;
9256 exit (u.c[sizeof (long) - 1] == 1);
9257 }
9258 EOF
9259 if { (eval echo configure:9260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9260 then
9261 ac_cv_c_bigendian=no
9262 else
9263 echo "configure: failed program was:" >&5
9264 cat conftest.$ac_ext >&5
9265 rm -fr conftest*
9266 ac_cv_c_bigendian=yes
9267 fi
9268 rm -fr conftest*
9269 fi
9270
9271 fi
9272 fi
9273
9274 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9275 if test $ac_cv_c_bigendian = unknown; then
9276 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
9277 fi
9278 if test $ac_cv_c_bigendian = yes; then
9279 cat >> confdefs.h <<\EOF
9280 #define WORDS_BIGENDIAN 1
9281 EOF
9282
9283 fi
9284
9285
9286
9287 if test "$cross_compiling" = "yes"; then
9288 cat >> confdefs.h <<\EOF
9289 #define wxUSE_IOSTREAMH 1
9290 EOF
9291
9292 else
9293
9294 ac_ext=C
9295 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9296 ac_cpp='$CXXCPP $CPPFLAGS'
9297 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9298 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9299 cross_compiling=$ac_cv_prog_cxx_cross
9300
9301
9302 for ac_hdr in iostream
9303 do
9304 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9305 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9306 echo "configure:9307: checking for $ac_hdr" >&5
9307 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9308 echo $ac_n "(cached) $ac_c" 1>&6
9309 else
9310 cat > conftest.$ac_ext <<EOF
9311 #line 9312 "configure"
9312 #include "confdefs.h"
9313 #include <$ac_hdr>
9314 EOF
9315 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9316 { (eval echo configure:9317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9317 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9318 if test -z "$ac_err"; then
9319 rm -rf conftest*
9320 eval "ac_cv_header_$ac_safe=yes"
9321 else
9322 echo "$ac_err" >&5
9323 echo "configure: failed program was:" >&5
9324 cat conftest.$ac_ext >&5
9325 rm -rf conftest*
9326 eval "ac_cv_header_$ac_safe=no"
9327 fi
9328 rm -f conftest*
9329 fi
9330 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9331 echo "$ac_t""yes" 1>&6
9332 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9333 cat >> confdefs.h <<EOF
9334 #define $ac_tr_hdr 1
9335 EOF
9336
9337 else
9338 echo "$ac_t""no" 1>&6
9339 fi
9340 done
9341
9342
9343 if test "x$HAVE_IOSTREAM" = x ; then
9344 cat >> confdefs.h <<\EOF
9345 #define wxUSE_IOSTREAMH 1
9346 EOF
9347
9348 else
9349 :
9350 fi
9351
9352 ac_ext=c
9353 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9354 ac_cpp='$CPP $CPPFLAGS'
9355 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9356 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9357 cross_compiling=$ac_cv_prog_cc_cross
9358
9359 fi
9360
9361
9362
9363 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
9364 echo "configure:9365: checking if C++ compiler supports bool" >&5
9365 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
9366 echo $ac_n "(cached) $ac_c" 1>&6
9367 else
9368
9369
9370 ac_ext=C
9371 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9372 ac_cpp='$CXXCPP $CPPFLAGS'
9373 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9374 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9375 cross_compiling=$ac_cv_prog_cxx_cross
9376
9377
9378 cat > conftest.$ac_ext <<EOF
9379 #line 9380 "configure"
9380 #include "confdefs.h"
9381
9382
9383 int main() {
9384
9385 bool b = true;
9386
9387 return 0;
9388
9389 ; return 0; }
9390 EOF
9391 if { (eval echo configure:9392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9392 rm -rf conftest*
9393
9394 cat >> confdefs.h <<\EOF
9395 #define HAVE_BOOL 1
9396 EOF
9397
9398 wx_cv_cpp_bool=yes
9399
9400 else
9401 echo "configure: failed program was:" >&5
9402 cat conftest.$ac_ext >&5
9403 rm -rf conftest*
9404
9405 wx_cv_cpp_bool=no
9406
9407
9408 fi
9409 rm -f conftest*
9410
9411 ac_ext=c
9412 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9413 ac_cpp='$CPP $CPPFLAGS'
9414 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9415 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9416 cross_compiling=$ac_cv_prog_cc_cross
9417
9418
9419 fi
9420
9421 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
9422
9423 if test "$wx_cv_cpp_bool" = "yes"; then
9424 cat >> confdefs.h <<\EOF
9425 #define HAVE_BOOL 1
9426 EOF
9427
9428 fi
9429
9430
9431
9432 echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
9433 echo "configure:9434: checking if you need GNU extensions" >&5
9434 if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
9435 echo $ac_n "(cached) $ac_c" 1>&6
9436 else
9437
9438 cat > conftest.$ac_ext <<EOF
9439 #line 9440 "configure"
9440 #include "confdefs.h"
9441 #include <features.h>
9442 int main() {
9443
9444
9445 #ifndef __GNU_LIBRARY__
9446 Compile error wanted
9447 #endif
9448
9449
9450 ; return 0; }
9451 EOF
9452 if { (eval echo configure:9453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9453 rm -rf conftest*
9454 wx_cv_gnu_extensions=yes
9455 else
9456 echo "configure: failed program was:" >&5
9457 cat conftest.$ac_ext >&5
9458 rm -rf conftest*
9459 wx_cv_gnu_extensions=no
9460 fi
9461 rm -f conftest*
9462
9463 fi
9464
9465
9466 echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
9467 if test "$wx_cv_gnu_extensions" = "yes"; then
9468 cat >> confdefs.h <<EOF
9469 #define _GNU_SOURCE 1
9470 EOF
9471
9472 fi
9473
9474
9475
9476 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
9477 echo "configure:9478: checking for wcslen in -lc" >&5
9478 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
9479 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9480 echo $ac_n "(cached) $ac_c" 1>&6
9481 else
9482 ac_save_LIBS="$LIBS"
9483 LIBS="-lc $LIBS"
9484 cat > conftest.$ac_ext <<EOF
9485 #line 9486 "configure"
9486 #include "confdefs.h"
9487 /* Override any gcc2 internal prototype to avoid an error. */
9488 /* We use char because int might match the return type of a gcc2
9489 builtin and then its argument prototype would still apply. */
9490 char wcslen();
9491
9492 int main() {
9493 wcslen()
9494 ; return 0; }
9495 EOF
9496 if { (eval echo configure:9497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9497 rm -rf conftest*
9498 eval "ac_cv_lib_$ac_lib_var=yes"
9499 else
9500 echo "configure: failed program was:" >&5
9501 cat conftest.$ac_ext >&5
9502 rm -rf conftest*
9503 eval "ac_cv_lib_$ac_lib_var=no"
9504 fi
9505 rm -f conftest*
9506 LIBS="$ac_save_LIBS"
9507
9508 fi
9509 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9510 echo "$ac_t""yes" 1>&6
9511
9512 cat >> confdefs.h <<\EOF
9513 #define HAVE_WCSLEN 1
9514 EOF
9515
9516 WCHAR_LINK=""
9517
9518 else
9519 echo "$ac_t""no" 1>&6
9520
9521 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
9522 echo "configure:9523: checking for wcslen in -lw" >&5
9523 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
9524 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9525 echo $ac_n "(cached) $ac_c" 1>&6
9526 else
9527 ac_save_LIBS="$LIBS"
9528 LIBS="-lw $LIBS"
9529 cat > conftest.$ac_ext <<EOF
9530 #line 9531 "configure"
9531 #include "confdefs.h"
9532 /* Override any gcc2 internal prototype to avoid an error. */
9533 /* We use char because int might match the return type of a gcc2
9534 builtin and then its argument prototype would still apply. */
9535 char wcslen();
9536
9537 int main() {
9538 wcslen()
9539 ; return 0; }
9540 EOF
9541 if { (eval echo configure:9542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9542 rm -rf conftest*
9543 eval "ac_cv_lib_$ac_lib_var=yes"
9544 else
9545 echo "configure: failed program was:" >&5
9546 cat conftest.$ac_ext >&5
9547 rm -rf conftest*
9548 eval "ac_cv_lib_$ac_lib_var=no"
9549 fi
9550 rm -f conftest*
9551 LIBS="$ac_save_LIBS"
9552
9553 fi
9554 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9555 echo "$ac_t""yes" 1>&6
9556
9557 cat >> confdefs.h <<\EOF
9558 #define HAVE_WCSLEN 1
9559 EOF
9560
9561 WCHAR_LINK="-lw"
9562
9563 else
9564 echo "$ac_t""no" 1>&6
9565 fi
9566
9567
9568 fi
9569
9570
9571 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
9572 echo "configure:9573: checking for vprintf" >&5
9573 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9574 echo $ac_n "(cached) $ac_c" 1>&6
9575 else
9576 cat > conftest.$ac_ext <<EOF
9577 #line 9578 "configure"
9578 #include "confdefs.h"
9579 /* System header to define __stub macros and hopefully few prototypes,
9580 which can conflict with char vprintf(); below. */
9581 #include <assert.h>
9582 /* Override any gcc2 internal prototype to avoid an error. */
9583 /* We use char because int might match the return type of a gcc2
9584 builtin and then its argument prototype would still apply. */
9585 char vprintf();
9586
9587 int main() {
9588
9589 /* The GNU C library defines this for functions which it implements
9590 to always fail with ENOSYS. Some functions are actually named
9591 something starting with __ and the normal name is an alias. */
9592 #if defined (__stub_vprintf) || defined (__stub___vprintf)
9593 choke me
9594 #else
9595 vprintf();
9596 #endif
9597
9598 ; return 0; }
9599 EOF
9600 if { (eval echo configure:9601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9601 rm -rf conftest*
9602 eval "ac_cv_func_vprintf=yes"
9603 else
9604 echo "configure: failed program was:" >&5
9605 cat conftest.$ac_ext >&5
9606 rm -rf conftest*
9607 eval "ac_cv_func_vprintf=no"
9608 fi
9609 rm -f conftest*
9610 fi
9611
9612 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9613 echo "$ac_t""yes" 1>&6
9614 cat >> confdefs.h <<\EOF
9615 #define HAVE_VPRINTF 1
9616 EOF
9617
9618 else
9619 echo "$ac_t""no" 1>&6
9620 fi
9621
9622 if test "$ac_cv_func_vprintf" != yes; then
9623 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
9624 echo "configure:9625: checking for _doprnt" >&5
9625 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
9626 echo $ac_n "(cached) $ac_c" 1>&6
9627 else
9628 cat > conftest.$ac_ext <<EOF
9629 #line 9630 "configure"
9630 #include "confdefs.h"
9631 /* System header to define __stub macros and hopefully few prototypes,
9632 which can conflict with char _doprnt(); below. */
9633 #include <assert.h>
9634 /* Override any gcc2 internal prototype to avoid an error. */
9635 /* We use char because int might match the return type of a gcc2
9636 builtin and then its argument prototype would still apply. */
9637 char _doprnt();
9638
9639 int main() {
9640
9641 /* The GNU C library defines this for functions which it implements
9642 to always fail with ENOSYS. Some functions are actually named
9643 something starting with __ and the normal name is an alias. */
9644 #if defined (__stub__doprnt) || defined (__stub____doprnt)
9645 choke me
9646 #else
9647 _doprnt();
9648 #endif
9649
9650 ; return 0; }
9651 EOF
9652 if { (eval echo configure:9653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9653 rm -rf conftest*
9654 eval "ac_cv_func__doprnt=yes"
9655 else
9656 echo "configure: failed program was:" >&5
9657 cat conftest.$ac_ext >&5
9658 rm -rf conftest*
9659 eval "ac_cv_func__doprnt=no"
9660 fi
9661 rm -f conftest*
9662 fi
9663
9664 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
9665 echo "$ac_t""yes" 1>&6
9666 cat >> confdefs.h <<\EOF
9667 #define HAVE_DOPRNT 1
9668 EOF
9669
9670 else
9671 echo "$ac_t""no" 1>&6
9672 fi
9673
9674 fi
9675
9676
9677 for ac_func in vsnprintf
9678 do
9679 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9680 echo "configure:9681: checking for $ac_func" >&5
9681 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9682 echo $ac_n "(cached) $ac_c" 1>&6
9683 else
9684 cat > conftest.$ac_ext <<EOF
9685 #line 9686 "configure"
9686 #include "confdefs.h"
9687 /* System header to define __stub macros and hopefully few prototypes,
9688 which can conflict with char $ac_func(); below. */
9689 #include <assert.h>
9690 /* Override any gcc2 internal prototype to avoid an error. */
9691 /* We use char because int might match the return type of a gcc2
9692 builtin and then its argument prototype would still apply. */
9693 char $ac_func();
9694
9695 int main() {
9696
9697 /* The GNU C library defines this for functions which it implements
9698 to always fail with ENOSYS. Some functions are actually named
9699 something starting with __ and the normal name is an alias. */
9700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9701 choke me
9702 #else
9703 $ac_func();
9704 #endif
9705
9706 ; return 0; }
9707 EOF
9708 if { (eval echo configure:9709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9709 rm -rf conftest*
9710 eval "ac_cv_func_$ac_func=yes"
9711 else
9712 echo "configure: failed program was:" >&5
9713 cat conftest.$ac_ext >&5
9714 rm -rf conftest*
9715 eval "ac_cv_func_$ac_func=no"
9716 fi
9717 rm -f conftest*
9718 fi
9719
9720 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9721 echo "$ac_t""yes" 1>&6
9722 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9723 cat >> confdefs.h <<EOF
9724 #define $ac_tr_func 1
9725 EOF
9726 cat >> confdefs.h <<\EOF
9727 #define HAVE_VSNPRINTF 1
9728 EOF
9729
9730 else
9731 echo "$ac_t""no" 1>&6
9732 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9733
9734 fi
9735 done
9736
9737
9738
9739 ac_ext=C
9740 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9741 ac_cpp='$CXXCPP $CPPFLAGS'
9742 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9743 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9744 cross_compiling=$ac_cv_prog_cxx_cross
9745
9746
9747 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
9748 echo "configure:9749: checking for vsscanf" >&5
9749 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
9750 echo $ac_n "(cached) $ac_c" 1>&6
9751 else
9752
9753 if test "$cross_compiling" = yes; then
9754 wx_cv_func_vsscanf=no
9755
9756 else
9757 cat > conftest.$ac_ext <<EOF
9758 #line 9759 "configure"
9759 #include "confdefs.h"
9760 #ifdef __cplusplus
9761 extern "C" void exit(int);
9762 #endif
9763
9764 #include <stdio.h>
9765 #include <stdarg.h>
9766
9767 int try_vsscanf(const char *format, ...)
9768 {
9769 va_list ap;
9770 va_start(ap, format);
9771
9772 vsscanf("17", format, ap);
9773
9774 va_end(ap);
9775 }
9776
9777 int main()
9778 {
9779 int i;
9780 try_vsscanf("%d", &i);
9781 return i == 17 ? 0 : 1;
9782 }
9783
9784 EOF
9785 if { (eval echo configure:9786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9786 then
9787
9788 cat >> confdefs.h <<\EOF
9789 #define HAVE_VSSCANF 1
9790 EOF
9791
9792 wx_cv_func_vsscanf=yes
9793
9794 else
9795 echo "configure: failed program was:" >&5
9796 cat conftest.$ac_ext >&5
9797 rm -fr conftest*
9798 wx_cv_func_vsscanf=no
9799 fi
9800 rm -fr conftest*
9801 fi
9802
9803
9804 fi
9805
9806 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
9807
9808 ac_ext=c
9809 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9810 ac_cpp='$CPP $CPPFLAGS'
9811 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9812 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9813 cross_compiling=$ac_cv_prog_cc_cross
9814
9815
9816 if test "$USE_UNIX" = 1; then
9817
9818 for ac_func in vfork
9819 do
9820 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9821 echo "configure:9822: checking for $ac_func" >&5
9822 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9823 echo $ac_n "(cached) $ac_c" 1>&6
9824 else
9825 cat > conftest.$ac_ext <<EOF
9826 #line 9827 "configure"
9827 #include "confdefs.h"
9828 /* System header to define __stub macros and hopefully few prototypes,
9829 which can conflict with char $ac_func(); below. */
9830 #include <assert.h>
9831 /* Override any gcc2 internal prototype to avoid an error. */
9832 /* We use char because int might match the return type of a gcc2
9833 builtin and then its argument prototype would still apply. */
9834 char $ac_func();
9835
9836 int main() {
9837
9838 /* The GNU C library defines this for functions which it implements
9839 to always fail with ENOSYS. Some functions are actually named
9840 something starting with __ and the normal name is an alias. */
9841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9842 choke me
9843 #else
9844 $ac_func();
9845 #endif
9846
9847 ; return 0; }
9848 EOF
9849 if { (eval echo configure:9850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9850 rm -rf conftest*
9851 eval "ac_cv_func_$ac_func=yes"
9852 else
9853 echo "configure: failed program was:" >&5
9854 cat conftest.$ac_ext >&5
9855 rm -rf conftest*
9856 eval "ac_cv_func_$ac_func=no"
9857 fi
9858 rm -f conftest*
9859 fi
9860
9861 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9862 echo "$ac_t""yes" 1>&6
9863 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9864 cat >> confdefs.h <<EOF
9865 #define $ac_tr_func 1
9866 EOF
9867
9868 else
9869 echo "$ac_t""no" 1>&6
9870 fi
9871 done
9872
9873
9874 for ac_func in timegm
9875 do
9876 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9877 echo "configure:9878: checking for $ac_func" >&5
9878 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9879 echo $ac_n "(cached) $ac_c" 1>&6
9880 else
9881 cat > conftest.$ac_ext <<EOF
9882 #line 9883 "configure"
9883 #include "confdefs.h"
9884 /* System header to define __stub macros and hopefully few prototypes,
9885 which can conflict with char $ac_func(); below. */
9886 #include <assert.h>
9887 /* Override any gcc2 internal prototype to avoid an error. */
9888 /* We use char because int might match the return type of a gcc2
9889 builtin and then its argument prototype would still apply. */
9890 char $ac_func();
9891
9892 int main() {
9893
9894 /* The GNU C library defines this for functions which it implements
9895 to always fail with ENOSYS. Some functions are actually named
9896 something starting with __ and the normal name is an alias. */
9897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9898 choke me
9899 #else
9900 $ac_func();
9901 #endif
9902
9903 ; return 0; }
9904 EOF
9905 if { (eval echo configure:9906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9906 rm -rf conftest*
9907 eval "ac_cv_func_$ac_func=yes"
9908 else
9909 echo "configure: failed program was:" >&5
9910 cat conftest.$ac_ext >&5
9911 rm -rf conftest*
9912 eval "ac_cv_func_$ac_func=no"
9913 fi
9914 rm -f conftest*
9915 fi
9916
9917 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9918 echo "$ac_t""yes" 1>&6
9919 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9920 cat >> confdefs.h <<EOF
9921 #define $ac_tr_func 1
9922 EOF
9923
9924 else
9925 echo "$ac_t""no" 1>&6
9926 fi
9927 done
9928
9929
9930 HAVE_SOME_SLEEP_FUNC=0
9931 if test "$USE_BEOS" = 1; then
9932 cat >> confdefs.h <<\EOF
9933 #define HAVE_SLEEP 1
9934 EOF
9935
9936 HAVE_SOME_SLEEP_FUNC=1
9937 fi
9938
9939 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
9940 POSIX4_LINK=
9941 for ac_func in nanosleep
9942 do
9943 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9944 echo "configure:9945: checking for $ac_func" >&5
9945 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9946 echo $ac_n "(cached) $ac_c" 1>&6
9947 else
9948 cat > conftest.$ac_ext <<EOF
9949 #line 9950 "configure"
9950 #include "confdefs.h"
9951 /* System header to define __stub macros and hopefully few prototypes,
9952 which can conflict with char $ac_func(); below. */
9953 #include <assert.h>
9954 /* Override any gcc2 internal prototype to avoid an error. */
9955 /* We use char because int might match the return type of a gcc2
9956 builtin and then its argument prototype would still apply. */
9957 char $ac_func();
9958
9959 int main() {
9960
9961 /* The GNU C library defines this for functions which it implements
9962 to always fail with ENOSYS. Some functions are actually named
9963 something starting with __ and the normal name is an alias. */
9964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9965 choke me
9966 #else
9967 $ac_func();
9968 #endif
9969
9970 ; return 0; }
9971 EOF
9972 if { (eval echo configure:9973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9973 rm -rf conftest*
9974 eval "ac_cv_func_$ac_func=yes"
9975 else
9976 echo "configure: failed program was:" >&5
9977 cat conftest.$ac_ext >&5
9978 rm -rf conftest*
9979 eval "ac_cv_func_$ac_func=no"
9980 fi
9981 rm -f conftest*
9982 fi
9983
9984 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9985 echo "$ac_t""yes" 1>&6
9986 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9987 cat >> confdefs.h <<EOF
9988 #define $ac_tr_func 1
9989 EOF
9990 cat >> confdefs.h <<\EOF
9991 #define HAVE_NANOSLEEP 1
9992 EOF
9993
9994 else
9995 echo "$ac_t""no" 1>&6
9996 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
9997 echo "configure:9998: checking for nanosleep in -lposix4" >&5
9998 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
9999 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10000 echo $ac_n "(cached) $ac_c" 1>&6
10001 else
10002 ac_save_LIBS="$LIBS"
10003 LIBS="-lposix4 $LIBS"
10004 cat > conftest.$ac_ext <<EOF
10005 #line 10006 "configure"
10006 #include "confdefs.h"
10007 /* Override any gcc2 internal prototype to avoid an error. */
10008 /* We use char because int might match the return type of a gcc2
10009 builtin and then its argument prototype would still apply. */
10010 char nanosleep();
10011
10012 int main() {
10013 nanosleep()
10014 ; return 0; }
10015 EOF
10016 if { (eval echo configure:10017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10017 rm -rf conftest*
10018 eval "ac_cv_lib_$ac_lib_var=yes"
10019 else
10020 echo "configure: failed program was:" >&5
10021 cat conftest.$ac_ext >&5
10022 rm -rf conftest*
10023 eval "ac_cv_lib_$ac_lib_var=no"
10024 fi
10025 rm -f conftest*
10026 LIBS="$ac_save_LIBS"
10027
10028 fi
10029 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10030 echo "$ac_t""yes" 1>&6
10031
10032 cat >> confdefs.h <<\EOF
10033 #define HAVE_NANOSLEEP 1
10034 EOF
10035
10036 POSIX4_LINK="-lposix4"
10037
10038 else
10039 echo "$ac_t""no" 1>&6
10040
10041 for ac_func in usleep
10042 do
10043 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10044 echo "configure:10045: checking for $ac_func" >&5
10045 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10046 echo $ac_n "(cached) $ac_c" 1>&6
10047 else
10048 cat > conftest.$ac_ext <<EOF
10049 #line 10050 "configure"
10050 #include "confdefs.h"
10051 /* System header to define __stub macros and hopefully few prototypes,
10052 which can conflict with char $ac_func(); below. */
10053 #include <assert.h>
10054 /* Override any gcc2 internal prototype to avoid an error. */
10055 /* We use char because int might match the return type of a gcc2
10056 builtin and then its argument prototype would still apply. */
10057 char $ac_func();
10058
10059 int main() {
10060
10061 /* The GNU C library defines this for functions which it implements
10062 to always fail with ENOSYS. Some functions are actually named
10063 something starting with __ and the normal name is an alias. */
10064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10065 choke me
10066 #else
10067 $ac_func();
10068 #endif
10069
10070 ; return 0; }
10071 EOF
10072 if { (eval echo configure:10073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10073 rm -rf conftest*
10074 eval "ac_cv_func_$ac_func=yes"
10075 else
10076 echo "configure: failed program was:" >&5
10077 cat conftest.$ac_ext >&5
10078 rm -rf conftest*
10079 eval "ac_cv_func_$ac_func=no"
10080 fi
10081 rm -f conftest*
10082 fi
10083
10084 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10085 echo "$ac_t""yes" 1>&6
10086 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10087 cat >> confdefs.h <<EOF
10088 #define $ac_tr_func 1
10089 EOF
10090
10091 else
10092 echo "$ac_t""no" 1>&6
10093 fi
10094 done
10095
10096 echo "configure: warning: wxSleep() function will not work" 1>&2
10097
10098
10099 fi
10100
10101
10102
10103 fi
10104 done
10105
10106 fi
10107
10108 for ac_func in uname gethostname
10109 do
10110 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10111 echo "configure:10112: checking for $ac_func" >&5
10112 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10113 echo $ac_n "(cached) $ac_c" 1>&6
10114 else
10115 cat > conftest.$ac_ext <<EOF
10116 #line 10117 "configure"
10117 #include "confdefs.h"
10118 /* System header to define __stub macros and hopefully few prototypes,
10119 which can conflict with char $ac_func(); below. */
10120 #include <assert.h>
10121 /* Override any gcc2 internal prototype to avoid an error. */
10122 /* We use char because int might match the return type of a gcc2
10123 builtin and then its argument prototype would still apply. */
10124 char $ac_func();
10125
10126 int main() {
10127
10128 /* The GNU C library defines this for functions which it implements
10129 to always fail with ENOSYS. Some functions are actually named
10130 something starting with __ and the normal name is an alias. */
10131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10132 choke me
10133 #else
10134 $ac_func();
10135 #endif
10136
10137 ; return 0; }
10138 EOF
10139 if { (eval echo configure:10140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10140 rm -rf conftest*
10141 eval "ac_cv_func_$ac_func=yes"
10142 else
10143 echo "configure: failed program was:" >&5
10144 cat conftest.$ac_ext >&5
10145 rm -rf conftest*
10146 eval "ac_cv_func_$ac_func=no"
10147 fi
10148 rm -f conftest*
10149 fi
10150
10151 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10152 echo "$ac_t""yes" 1>&6
10153 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10154 cat >> confdefs.h <<EOF
10155 #define $ac_tr_func 1
10156 EOF
10157 break
10158 else
10159 echo "$ac_t""no" 1>&6
10160 fi
10161 done
10162
10163
10164 for ac_func in strtok_r
10165 do
10166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10167 echo "configure:10168: checking for $ac_func" >&5
10168 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10169 echo $ac_n "(cached) $ac_c" 1>&6
10170 else
10171 cat > conftest.$ac_ext <<EOF
10172 #line 10173 "configure"
10173 #include "confdefs.h"
10174 /* System header to define __stub macros and hopefully few prototypes,
10175 which can conflict with char $ac_func(); below. */
10176 #include <assert.h>
10177 /* Override any gcc2 internal prototype to avoid an error. */
10178 /* We use char because int might match the return type of a gcc2
10179 builtin and then its argument prototype would still apply. */
10180 char $ac_func();
10181
10182 int main() {
10183
10184 /* The GNU C library defines this for functions which it implements
10185 to always fail with ENOSYS. Some functions are actually named
10186 something starting with __ and the normal name is an alias. */
10187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10188 choke me
10189 #else
10190 $ac_func();
10191 #endif
10192
10193 ; return 0; }
10194 EOF
10195 if { (eval echo configure:10196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10196 rm -rf conftest*
10197 eval "ac_cv_func_$ac_func=yes"
10198 else
10199 echo "configure: failed program was:" >&5
10200 cat conftest.$ac_ext >&5
10201 rm -rf conftest*
10202 eval "ac_cv_func_$ac_func=no"
10203 fi
10204 rm -f conftest*
10205 fi
10206
10207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10208 echo "$ac_t""yes" 1>&6
10209 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10210 cat >> confdefs.h <<EOF
10211 #define $ac_tr_func 1
10212 EOF
10213
10214 else
10215 echo "$ac_t""no" 1>&6
10216 fi
10217 done
10218
10219
10220 INET_LINK=
10221 for ac_func in inet_addr
10222 do
10223 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10224 echo "configure:10225: checking for $ac_func" >&5
10225 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10226 echo $ac_n "(cached) $ac_c" 1>&6
10227 else
10228 cat > conftest.$ac_ext <<EOF
10229 #line 10230 "configure"
10230 #include "confdefs.h"
10231 /* System header to define __stub macros and hopefully few prototypes,
10232 which can conflict with char $ac_func(); below. */
10233 #include <assert.h>
10234 /* Override any gcc2 internal prototype to avoid an error. */
10235 /* We use char because int might match the return type of a gcc2
10236 builtin and then its argument prototype would still apply. */
10237 char $ac_func();
10238
10239 int main() {
10240
10241 /* The GNU C library defines this for functions which it implements
10242 to always fail with ENOSYS. Some functions are actually named
10243 something starting with __ and the normal name is an alias. */
10244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10245 choke me
10246 #else
10247 $ac_func();
10248 #endif
10249
10250 ; return 0; }
10251 EOF
10252 if { (eval echo configure:10253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10253 rm -rf conftest*
10254 eval "ac_cv_func_$ac_func=yes"
10255 else
10256 echo "configure: failed program was:" >&5
10257 cat conftest.$ac_ext >&5
10258 rm -rf conftest*
10259 eval "ac_cv_func_$ac_func=no"
10260 fi
10261 rm -f conftest*
10262 fi
10263
10264 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10265 echo "$ac_t""yes" 1>&6
10266 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10267 cat >> confdefs.h <<EOF
10268 #define $ac_tr_func 1
10269 EOF
10270 cat >> confdefs.h <<\EOF
10271 #define HAVE_INET_ADDR 1
10272 EOF
10273
10274 else
10275 echo "$ac_t""no" 1>&6
10276 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
10277 echo "configure:10278: checking for inet_addr in -lnsl" >&5
10278 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
10279 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10280 echo $ac_n "(cached) $ac_c" 1>&6
10281 else
10282 ac_save_LIBS="$LIBS"
10283 LIBS="-lnsl $LIBS"
10284 cat > conftest.$ac_ext <<EOF
10285 #line 10286 "configure"
10286 #include "confdefs.h"
10287 /* Override any gcc2 internal prototype to avoid an error. */
10288 /* We use char because int might match the return type of a gcc2
10289 builtin and then its argument prototype would still apply. */
10290 char inet_addr();
10291
10292 int main() {
10293 inet_addr()
10294 ; return 0; }
10295 EOF
10296 if { (eval echo configure:10297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10297 rm -rf conftest*
10298 eval "ac_cv_lib_$ac_lib_var=yes"
10299 else
10300 echo "configure: failed program was:" >&5
10301 cat conftest.$ac_ext >&5
10302 rm -rf conftest*
10303 eval "ac_cv_lib_$ac_lib_var=no"
10304 fi
10305 rm -f conftest*
10306 LIBS="$ac_save_LIBS"
10307
10308 fi
10309 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10310 echo "$ac_t""yes" 1>&6
10311 INET_LINK="nsl"
10312 else
10313 echo "$ac_t""no" 1>&6
10314 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
10315 echo "configure:10316: checking for inet_addr in -lresolv" >&5
10316 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
10317 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10318 echo $ac_n "(cached) $ac_c" 1>&6
10319 else
10320 ac_save_LIBS="$LIBS"
10321 LIBS="-lresolv $LIBS"
10322 cat > conftest.$ac_ext <<EOF
10323 #line 10324 "configure"
10324 #include "confdefs.h"
10325 /* Override any gcc2 internal prototype to avoid an error. */
10326 /* We use char because int might match the return type of a gcc2
10327 builtin and then its argument prototype would still apply. */
10328 char inet_addr();
10329
10330 int main() {
10331 inet_addr()
10332 ; return 0; }
10333 EOF
10334 if { (eval echo configure:10335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10335 rm -rf conftest*
10336 eval "ac_cv_lib_$ac_lib_var=yes"
10337 else
10338 echo "configure: failed program was:" >&5
10339 cat conftest.$ac_ext >&5
10340 rm -rf conftest*
10341 eval "ac_cv_lib_$ac_lib_var=no"
10342 fi
10343 rm -f conftest*
10344 LIBS="$ac_save_LIBS"
10345
10346 fi
10347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10348 echo "$ac_t""yes" 1>&6
10349 INET_LINK="resolv"
10350
10351 else
10352 echo "$ac_t""no" 1>&6
10353 fi
10354
10355
10356 fi
10357
10358
10359
10360 fi
10361 done
10362
10363
10364 for ac_func in inet_aton
10365 do
10366 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10367 echo "configure:10368: checking for $ac_func" >&5
10368 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10369 echo $ac_n "(cached) $ac_c" 1>&6
10370 else
10371 cat > conftest.$ac_ext <<EOF
10372 #line 10373 "configure"
10373 #include "confdefs.h"
10374 /* System header to define __stub macros and hopefully few prototypes,
10375 which can conflict with char $ac_func(); below. */
10376 #include <assert.h>
10377 /* Override any gcc2 internal prototype to avoid an error. */
10378 /* We use char because int might match the return type of a gcc2
10379 builtin and then its argument prototype would still apply. */
10380 char $ac_func();
10381
10382 int main() {
10383
10384 /* The GNU C library defines this for functions which it implements
10385 to always fail with ENOSYS. Some functions are actually named
10386 something starting with __ and the normal name is an alias. */
10387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10388 choke me
10389 #else
10390 $ac_func();
10391 #endif
10392
10393 ; return 0; }
10394 EOF
10395 if { (eval echo configure:10396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10396 rm -rf conftest*
10397 eval "ac_cv_func_$ac_func=yes"
10398 else
10399 echo "configure: failed program was:" >&5
10400 cat conftest.$ac_ext >&5
10401 rm -rf conftest*
10402 eval "ac_cv_func_$ac_func=no"
10403 fi
10404 rm -f conftest*
10405 fi
10406
10407 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10408 echo "$ac_t""yes" 1>&6
10409 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10410 cat >> confdefs.h <<EOF
10411 #define $ac_tr_func 1
10412 EOF
10413 cat >> confdefs.h <<\EOF
10414 #define HAVE_INET_ATON 1
10415 EOF
10416
10417 else
10418 echo "$ac_t""no" 1>&6
10419 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
10420 echo "configure:10421: checking for inet_aton in -l$INET_LINK" >&5
10421 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
10422 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10423 echo $ac_n "(cached) $ac_c" 1>&6
10424 else
10425 ac_save_LIBS="$LIBS"
10426 LIBS="-l$INET_LINK $LIBS"
10427 cat > conftest.$ac_ext <<EOF
10428 #line 10429 "configure"
10429 #include "confdefs.h"
10430 /* Override any gcc2 internal prototype to avoid an error. */
10431 /* We use char because int might match the return type of a gcc2
10432 builtin and then its argument prototype would still apply. */
10433 char inet_aton();
10434
10435 int main() {
10436 inet_aton()
10437 ; return 0; }
10438 EOF
10439 if { (eval echo configure:10440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10440 rm -rf conftest*
10441 eval "ac_cv_lib_$ac_lib_var=yes"
10442 else
10443 echo "configure: failed program was:" >&5
10444 cat conftest.$ac_ext >&5
10445 rm -rf conftest*
10446 eval "ac_cv_lib_$ac_lib_var=no"
10447 fi
10448 rm -f conftest*
10449 LIBS="$ac_save_LIBS"
10450
10451 fi
10452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10453 echo "$ac_t""yes" 1>&6
10454 cat >> confdefs.h <<\EOF
10455 #define HAVE_INET_ATON 1
10456 EOF
10457
10458 else
10459 echo "$ac_t""no" 1>&6
10460 fi
10461
10462
10463 fi
10464 done
10465
10466
10467 if test "x$INET_LINK" != "x"; then
10468 cat >> confdefs.h <<\EOF
10469 #define HAVE_INET_ADDR 1
10470 EOF
10471
10472 INET_LINK="-l$INET_LINK"
10473 fi
10474
10475 fi
10476
10477
10478 cat > confcache <<\EOF
10479 # This file is a shell script that caches the results of configure
10480 # tests run on this system so they can be shared between configure
10481 # scripts and configure runs. It is not useful on other systems.
10482 # If it contains results you don't want to keep, you may remove or edit it.
10483 #
10484 # By default, configure uses ./config.cache as the cache file,
10485 # creating it if it does not exist already. You can give configure
10486 # the --cache-file=FILE option to use a different cache file; that is
10487 # what configure does when it calls configure scripts in
10488 # subdirectories, so they share the cache.
10489 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10490 # config.status only pays attention to the cache file if you give it the
10491 # --recheck option to rerun configure.
10492 #
10493 EOF
10494 # The following way of writing the cache mishandles newlines in values,
10495 # but we know of no workaround that is simple, portable, and efficient.
10496 # So, don't put newlines in cache variables' values.
10497 # Ultrix sh set writes to stderr and can't be redirected directly,
10498 # and sets the high bit in the cache file unless we assign to the vars.
10499 (set) 2>&1 |
10500 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10501 *ac_space=\ *)
10502 # `set' does not quote correctly, so add quotes (double-quote substitution
10503 # turns \\\\ into \\, and sed turns \\ into \).
10504 sed -n \
10505 -e "s/'/'\\\\''/g" \
10506 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10507 ;;
10508 *)
10509 # `set' quotes correctly as required by POSIX, so do not add quotes.
10510 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10511 ;;
10512 esac >> confcache
10513 if cmp -s $cache_file confcache; then
10514 :
10515 else
10516 if test -w $cache_file; then
10517 echo "updating cache $cache_file"
10518 cat confcache > $cache_file
10519 else
10520 echo "not updating unwritable cache $cache_file"
10521 fi
10522 fi
10523 rm -f confcache
10524
10525
10526
10527 if test "$USE_UNIX" = 1; then
10528
10529
10530 THREADS_LINK=""
10531 THREADS_OBJ=""
10532
10533 if test "$wxUSE_THREADS" = "yes" ; then
10534 if test "$wxUSE_WINE" = 1 ; then
10535 echo "configure: warning: Threads are not supported under WINE" 1>&2
10536 wxUSE_THREADS="no"
10537 elif test "$USE_BEOS" = 1; then
10538 echo "configure: warning: BeOS threads are not yet supported" 1>&2
10539 wxUSE_THREADS="no"
10540 fi
10541 fi
10542
10543 if test "$wxUSE_THREADS" = "yes" ; then
10544
10545 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
10546 echo "configure:10547: checking for pthread_create in -lpthread" >&5
10547 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
10548 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10549 echo $ac_n "(cached) $ac_c" 1>&6
10550 else
10551 ac_save_LIBS="$LIBS"
10552 LIBS="-lpthread $LIBS"
10553 cat > conftest.$ac_ext <<EOF
10554 #line 10555 "configure"
10555 #include "confdefs.h"
10556 /* Override any gcc2 internal prototype to avoid an error. */
10557 /* We use char because int might match the return type of a gcc2
10558 builtin and then its argument prototype would still apply. */
10559 char pthread_create();
10560
10561 int main() {
10562 pthread_create()
10563 ; return 0; }
10564 EOF
10565 if { (eval echo configure:10566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10566 rm -rf conftest*
10567 eval "ac_cv_lib_$ac_lib_var=yes"
10568 else
10569 echo "configure: failed program was:" >&5
10570 cat conftest.$ac_ext >&5
10571 rm -rf conftest*
10572 eval "ac_cv_lib_$ac_lib_var=no"
10573 fi
10574 rm -f conftest*
10575 LIBS="$ac_save_LIBS"
10576
10577 fi
10578 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10579 echo "$ac_t""yes" 1>&6
10580
10581 THREADS_OBJ="threadpsx.lo"
10582 THREADS_LINK="pthread"
10583
10584 else
10585 echo "$ac_t""no" 1>&6
10586
10587 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
10588 echo "configure:10589: checking for pthread_create in -lc_r" >&5
10589 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
10590 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10591 echo $ac_n "(cached) $ac_c" 1>&6
10592 else
10593 ac_save_LIBS="$LIBS"
10594 LIBS="-lc_r $LIBS"
10595 cat > conftest.$ac_ext <<EOF
10596 #line 10597 "configure"
10597 #include "confdefs.h"
10598 /* Override any gcc2 internal prototype to avoid an error. */
10599 /* We use char because int might match the return type of a gcc2
10600 builtin and then its argument prototype would still apply. */
10601 char pthread_create();
10602
10603 int main() {
10604 pthread_create()
10605 ; return 0; }
10606 EOF
10607 if { (eval echo configure:10608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10608 rm -rf conftest*
10609 eval "ac_cv_lib_$ac_lib_var=yes"
10610 else
10611 echo "configure: failed program was:" >&5
10612 cat conftest.$ac_ext >&5
10613 rm -rf conftest*
10614 eval "ac_cv_lib_$ac_lib_var=no"
10615 fi
10616 rm -f conftest*
10617 LIBS="$ac_save_LIBS"
10618
10619 fi
10620 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10621 echo "$ac_t""yes" 1>&6
10622
10623 THREADS_OBJ="threadpsx.lo"
10624 THREADS_LINK="c_r"
10625
10626 else
10627 echo "$ac_t""no" 1>&6
10628
10629 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
10630 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
10631 echo "configure:10632: checking for sys/prctl.h" >&5
10632 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10633 echo $ac_n "(cached) $ac_c" 1>&6
10634 else
10635 cat > conftest.$ac_ext <<EOF
10636 #line 10637 "configure"
10637 #include "confdefs.h"
10638 #include <sys/prctl.h>
10639 EOF
10640 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10641 { (eval echo configure:10642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10642 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10643 if test -z "$ac_err"; then
10644 rm -rf conftest*
10645 eval "ac_cv_header_$ac_safe=yes"
10646 else
10647 echo "$ac_err" >&5
10648 echo "configure: failed program was:" >&5
10649 cat conftest.$ac_ext >&5
10650 rm -rf conftest*
10651 eval "ac_cv_header_$ac_safe=no"
10652 fi
10653 rm -f conftest*
10654 fi
10655 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10656 echo "$ac_t""yes" 1>&6
10657
10658 THREADS_OBJ="threadsgi.lo"
10659
10660 else
10661 echo "$ac_t""no" 1>&6
10662 fi
10663
10664
10665 fi
10666
10667
10668 fi
10669
10670
10671 if test -z "$THREADS_OBJ" ; then
10672 wxUSE_THREADS=no
10673 echo "configure: warning: No thread support on this system" 1>&2
10674 fi
10675 fi
10676
10677 if test "$wxUSE_THREADS" = "yes" ; then
10678 for ac_func in thr_setconcurrency
10679 do
10680 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10681 echo "configure:10682: checking for $ac_func" >&5
10682 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10683 echo $ac_n "(cached) $ac_c" 1>&6
10684 else
10685 cat > conftest.$ac_ext <<EOF
10686 #line 10687 "configure"
10687 #include "confdefs.h"
10688 /* System header to define __stub macros and hopefully few prototypes,
10689 which can conflict with char $ac_func(); below. */
10690 #include <assert.h>
10691 /* Override any gcc2 internal prototype to avoid an error. */
10692 /* We use char because int might match the return type of a gcc2
10693 builtin and then its argument prototype would still apply. */
10694 char $ac_func();
10695
10696 int main() {
10697
10698 /* The GNU C library defines this for functions which it implements
10699 to always fail with ENOSYS. Some functions are actually named
10700 something starting with __ and the normal name is an alias. */
10701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10702 choke me
10703 #else
10704 $ac_func();
10705 #endif
10706
10707 ; return 0; }
10708 EOF
10709 if { (eval echo configure:10710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10710 rm -rf conftest*
10711 eval "ac_cv_func_$ac_func=yes"
10712 else
10713 echo "configure: failed program was:" >&5
10714 cat conftest.$ac_ext >&5
10715 rm -rf conftest*
10716 eval "ac_cv_func_$ac_func=no"
10717 fi
10718 rm -f conftest*
10719 fi
10720
10721 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10722 echo "$ac_t""yes" 1>&6
10723 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10724 cat >> confdefs.h <<EOF
10725 #define $ac_tr_func 1
10726 EOF
10727
10728 else
10729 echo "$ac_t""no" 1>&6
10730 fi
10731 done
10732
10733
10734
10735 for ac_hdr in sched.h
10736 do
10737 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10738 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10739 echo "configure:10740: checking for $ac_hdr" >&5
10740 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10741 echo $ac_n "(cached) $ac_c" 1>&6
10742 else
10743 cat > conftest.$ac_ext <<EOF
10744 #line 10745 "configure"
10745 #include "confdefs.h"
10746 #include <$ac_hdr>
10747 EOF
10748 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10749 { (eval echo configure:10750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10750 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10751 if test -z "$ac_err"; then
10752 rm -rf conftest*
10753 eval "ac_cv_header_$ac_safe=yes"
10754 else
10755 echo "$ac_err" >&5
10756 echo "configure: failed program was:" >&5
10757 cat conftest.$ac_ext >&5
10758 rm -rf conftest*
10759 eval "ac_cv_header_$ac_safe=no"
10760 fi
10761 rm -f conftest*
10762 fi
10763 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10764 echo "$ac_t""yes" 1>&6
10765 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10766 cat >> confdefs.h <<EOF
10767 #define $ac_tr_hdr 1
10768 EOF
10769
10770 else
10771 echo "$ac_t""no" 1>&6
10772 fi
10773 done
10774
10775
10776 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
10777 echo "configure:10778: checking for sched_yield in -l$THREADS_LINK" >&5
10778 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
10779 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10780 echo $ac_n "(cached) $ac_c" 1>&6
10781 else
10782 ac_save_LIBS="$LIBS"
10783 LIBS="-l$THREADS_LINK $LIBS"
10784 cat > conftest.$ac_ext <<EOF
10785 #line 10786 "configure"
10786 #include "confdefs.h"
10787 /* Override any gcc2 internal prototype to avoid an error. */
10788 /* We use char because int might match the return type of a gcc2
10789 builtin and then its argument prototype would still apply. */
10790 char sched_yield();
10791
10792 int main() {
10793 sched_yield()
10794 ; return 0; }
10795 EOF
10796 if { (eval echo configure:10797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10797 rm -rf conftest*
10798 eval "ac_cv_lib_$ac_lib_var=yes"
10799 else
10800 echo "configure: failed program was:" >&5
10801 cat conftest.$ac_ext >&5
10802 rm -rf conftest*
10803 eval "ac_cv_lib_$ac_lib_var=no"
10804 fi
10805 rm -f conftest*
10806 LIBS="$ac_save_LIBS"
10807
10808 fi
10809 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10810 echo "$ac_t""yes" 1>&6
10811 cat >> confdefs.h <<\EOF
10812 #define HAVE_SCHED_YIELD 1
10813 EOF
10814
10815 else
10816 echo "$ac_t""no" 1>&6
10817 echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
10818 echo "configure:10819: checking for sched_yield in -l"posix4"" >&5
10819 ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
10820 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10821 echo $ac_n "(cached) $ac_c" 1>&6
10822 else
10823 ac_save_LIBS="$LIBS"
10824 LIBS="-l"posix4" $LIBS"
10825 cat > conftest.$ac_ext <<EOF
10826 #line 10827 "configure"
10827 #include "confdefs.h"
10828 /* Override any gcc2 internal prototype to avoid an error. */
10829 /* We use char because int might match the return type of a gcc2
10830 builtin and then its argument prototype would still apply. */
10831 char sched_yield();
10832
10833 int main() {
10834 sched_yield()
10835 ; return 0; }
10836 EOF
10837 if { (eval echo configure:10838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10838 rm -rf conftest*
10839 eval "ac_cv_lib_$ac_lib_var=yes"
10840 else
10841 echo "configure: failed program was:" >&5
10842 cat conftest.$ac_ext >&5
10843 rm -rf conftest*
10844 eval "ac_cv_lib_$ac_lib_var=no"
10845 fi
10846 rm -f conftest*
10847 LIBS="$ac_save_LIBS"
10848
10849 fi
10850 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10851 echo "$ac_t""yes" 1>&6
10852 cat >> confdefs.h <<\EOF
10853 #define HAVE_SCHED_YIELD 1
10854 EOF
10855 POSIX4_LINK="-lposix4"
10856 else
10857 echo "$ac_t""no" 1>&6
10858 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
10859
10860 fi
10861
10862
10863 fi
10864
10865
10866 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
10867 echo "configure:10868: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
10868 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
10869 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10870 echo $ac_n "(cached) $ac_c" 1>&6
10871 else
10872 ac_save_LIBS="$LIBS"
10873 LIBS="-l$THREADS_LINK $LIBS"
10874 cat > conftest.$ac_ext <<EOF
10875 #line 10876 "configure"
10876 #include "confdefs.h"
10877 /* Override any gcc2 internal prototype to avoid an error. */
10878 /* We use char because int might match the return type of a gcc2
10879 builtin and then its argument prototype would still apply. */
10880 char pthread_attr_getschedpolicy();
10881
10882 int main() {
10883 pthread_attr_getschedpolicy()
10884 ; return 0; }
10885 EOF
10886 if { (eval echo configure:10887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10887 rm -rf conftest*
10888 eval "ac_cv_lib_$ac_lib_var=yes"
10889 else
10890 echo "configure: failed program was:" >&5
10891 cat conftest.$ac_ext >&5
10892 rm -rf conftest*
10893 eval "ac_cv_lib_$ac_lib_var=no"
10894 fi
10895 rm -f conftest*
10896 LIBS="$ac_save_LIBS"
10897
10898 fi
10899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10900 echo "$ac_t""yes" 1>&6
10901 cat >> confdefs.h <<\EOF
10902 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
10903 EOF
10904
10905 else
10906 echo "$ac_t""no" 1>&6
10907 echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6
10908 echo "configure:10909: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5
10909 ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
10910 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10911 echo $ac_n "(cached) $ac_c" 1>&6
10912 else
10913 ac_save_LIBS="$LIBS"
10914 LIBS="-l"posix4" $LIBS"
10915 cat > conftest.$ac_ext <<EOF
10916 #line 10917 "configure"
10917 #include "confdefs.h"
10918 /* Override any gcc2 internal prototype to avoid an error. */
10919 /* We use char because int might match the return type of a gcc2
10920 builtin and then its argument prototype would still apply. */
10921 char pthread_attr_getschedpolicy();
10922
10923 int main() {
10924 pthread_attr_getschedpolicy()
10925 ; return 0; }
10926 EOF
10927 if { (eval echo configure:10928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10928 rm -rf conftest*
10929 eval "ac_cv_lib_$ac_lib_var=yes"
10930 else
10931 echo "configure: failed program was:" >&5
10932 cat conftest.$ac_ext >&5
10933 rm -rf conftest*
10934 eval "ac_cv_lib_$ac_lib_var=no"
10935 fi
10936 rm -f conftest*
10937 LIBS="$ac_save_LIBS"
10938
10939 fi
10940 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10941 echo "$ac_t""yes" 1>&6
10942 cat >> confdefs.h <<\EOF
10943 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
10944 EOF
10945 POSIX4_LINK="-lposix4"
10946 else
10947 echo "$ac_t""no" 1>&6
10948 echo "configure: warning: Setting thread priority will not work" 1>&2
10949
10950 fi
10951
10952
10953 fi
10954
10955
10956 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
10957 echo "configure:10958: checking for pthread_cancel in -l$THREADS_LINK" >&5
10958 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
10959 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10960 echo $ac_n "(cached) $ac_c" 1>&6
10961 else
10962 ac_save_LIBS="$LIBS"
10963 LIBS="-l$THREADS_LINK $LIBS"
10964 cat > conftest.$ac_ext <<EOF
10965 #line 10966 "configure"
10966 #include "confdefs.h"
10967 /* Override any gcc2 internal prototype to avoid an error. */
10968 /* We use char because int might match the return type of a gcc2
10969 builtin and then its argument prototype would still apply. */
10970 char pthread_cancel();
10971
10972 int main() {
10973 pthread_cancel()
10974 ; return 0; }
10975 EOF
10976 if { (eval echo configure:10977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10977 rm -rf conftest*
10978 eval "ac_cv_lib_$ac_lib_var=yes"
10979 else
10980 echo "configure: failed program was:" >&5
10981 cat conftest.$ac_ext >&5
10982 rm -rf conftest*
10983 eval "ac_cv_lib_$ac_lib_var=no"
10984 fi
10985 rm -f conftest*
10986 LIBS="$ac_save_LIBS"
10987
10988 fi
10989 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10990 echo "$ac_t""yes" 1>&6
10991 cat >> confdefs.h <<\EOF
10992 #define HAVE_PTHREAD_CANCEL 1
10993 EOF
10994
10995 else
10996 echo "$ac_t""no" 1>&6
10997 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
10998 fi
10999
11000
11001 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
11002 echo "configure:11003: checking for pthread_cleanup_push/pop" >&5
11003 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
11004 echo $ac_n "(cached) $ac_c" 1>&6
11005 else
11006
11007 cat > conftest.$ac_ext <<EOF
11008 #line 11009 "configure"
11009 #include "confdefs.h"
11010 #include <pthread.h>
11011 int main() {
11012
11013 pthread_cleanup_push(NULL, NULL);
11014 pthread_cleanup_pop(0);
11015
11016 ; return 0; }
11017 EOF
11018 if { (eval echo configure:11019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11019 rm -rf conftest*
11020
11021 wx_cv_func_pthread_cleanup_push=yes
11022 cat >> confdefs.h <<\EOF
11023 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
11024 EOF
11025
11026
11027 else
11028 echo "configure: failed program was:" >&5
11029 cat conftest.$ac_ext >&5
11030 rm -rf conftest*
11031
11032 wx_cv_func_pthread_cleanup_push=no
11033
11034 fi
11035 rm -f conftest*
11036
11037 fi
11038
11039 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
11040
11041 THREADS_LINK="-l$THREADS_LINK"
11042 fi
11043
11044 fi
11045
11046 if test "$wxUSE_THREADS" = "yes"; then
11047 cat >> confdefs.h <<\EOF
11048 #define wxUSE_THREADS 1
11049 EOF
11050
11051
11052 CFLAGS="${CFLAGS} -D_REENTRANT"
11053 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11054
11055 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
11056 else
11057 if test "$ac_cv_func_strtok_r" = "yes"; then
11058 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
11059 echo "configure:11060: checking if -D_REENTRANT is needed" >&5
11060 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
11061 CFLAGS="${CFLAGS} -D_REENTRANT"
11062 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11063 echo "$ac_t""yes" 1>&6
11064 else
11065 echo "$ac_t""no" 1>&6
11066 fi
11067 fi
11068 fi
11069
11070 if test "$WXGTK13" = 1 ; then
11071 cat >> confdefs.h <<EOF
11072 #define __WXGTK13__ $WXGTK13
11073 EOF
11074
11075 WXGTK12=1
11076 fi
11077
11078 if test "$WXGTK12" = 1 ; then
11079 cat >> confdefs.h <<EOF
11080 #define __WXGTK12__ $WXGTK12
11081 EOF
11082
11083 fi
11084
11085 if test "$WXWINE" = 1 ; then
11086 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
11087 fi
11088
11089 if test "$wxUSE_CYGWIN" = 1 ; then
11090 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
11091 fi
11092
11093 WXDEBUG=
11094
11095 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
11096 WXDEBUG="-g"
11097 wxUSE_OPTIMISE=no
11098 fi
11099
11100 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
11101 wxUSE_DEBUG_INFO=yes
11102 WXDEBUG="-ggdb"
11103 fi
11104
11105 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
11106 cat >> confdefs.h <<\EOF
11107 #define WXDEBUG 1
11108 EOF
11109
11110 WXDEBUG_DEFINE="-D__WXDEBUG__"
11111 else
11112 if test "$wxUSE_GTK" = 1 ; then
11113 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
11114 fi
11115 fi
11116
11117 if test "$wxUSE_MEM_TRACING" = "yes" ; then
11118 cat >> confdefs.h <<\EOF
11119 #define wxUSE_MEMORY_TRACING 1
11120 EOF
11121
11122 cat >> confdefs.h <<\EOF
11123 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
11124 EOF
11125
11126 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
11127 fi
11128
11129 if test "$wxUSE_DMALLOC" = "yes" ; then
11130 DMALLOC_LINK="-ldmalloc"
11131 fi
11132
11133 PROFILE=
11134 if test "$wxUSE_PROFILE" = "yes" ; then
11135 PROFILE="-pg"
11136 fi
11137
11138 DEP_INFO_FLAGS=
11139 CODE_GEN_FLAGS=
11140 if test "$GCC" = yes ; then
11141 if test "$wxUSE_NO_RTTI" = "yes" ; then
11142 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-rtti"
11143 fi
11144 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
11145 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-exceptions"
11146 fi
11147 if test "$wxUSE_PERMISSIVE" = "yes" ; then
11148 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
11149 fi
11150 if test "$wxUSE_NO_DEPS" = "no" ; then
11151 DEP_INFO_FLAGS="-MMD"
11152 fi
11153 fi
11154
11155
11156 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
11157 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
11158 if test "$wxUSE_OPTIMISE" = "no" ; then
11159 OPTIMISE=
11160 else
11161 if test "$GCC" = yes ; then
11162 OPTIMISE="-O2"
11163 case "${host}" in
11164 i586-*-*|i686-*-* )
11165 OPTIMISE="${OPTIMISE} "
11166 ;;
11167 esac
11168 else
11169 OPTIMISE="-O"
11170 fi
11171 fi
11172
11173
11174 ZLIB_INCLUDE=
11175 if test "$wxUSE_ZLIB" = "yes" ; then
11176 cat >> confdefs.h <<\EOF
11177 #define wxUSE_ZLIB 1
11178 EOF
11179
11180 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11181 fi
11182
11183 PNG_INCLUDE=
11184 if test "$wxUSE_LIBPNG" = "yes" ; then
11185 cat >> confdefs.h <<\EOF
11186 #define wxUSE_LIBPNG 1
11187 EOF
11188
11189 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11190 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11191 fi
11192
11193 JPEG_INCLUDE=
11194 if test "$wxUSE_LIBJPEG" = "yes" ; then
11195 cat >> confdefs.h <<\EOF
11196 #define wxUSE_LIBJPEG 1
11197 EOF
11198
11199 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11200 fi
11201
11202 TIFF_INCLUDE=
11203 if test "$wxUSE_LIBTIFF" = "yes" ; then
11204 cat >> confdefs.h <<\EOF
11205 #define wxUSE_LIBTIFF 1
11206 EOF
11207
11208 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
11209 fi
11210
11211 if test "$wxUSE_OPENGL" = "yes"; then
11212 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
11213 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
11214 echo "configure:11215: checking for GL/gl.h" >&5
11215 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11216 echo $ac_n "(cached) $ac_c" 1>&6
11217 else
11218 cat > conftest.$ac_ext <<EOF
11219 #line 11220 "configure"
11220 #include "confdefs.h"
11221 #include <GL/gl.h>
11222 EOF
11223 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11224 { (eval echo configure:11225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11225 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11226 if test -z "$ac_err"; then
11227 rm -rf conftest*
11228 eval "ac_cv_header_$ac_safe=yes"
11229 else
11230 echo "$ac_err" >&5
11231 echo "configure: failed program was:" >&5
11232 cat conftest.$ac_ext >&5
11233 rm -rf conftest*
11234 eval "ac_cv_header_$ac_safe=no"
11235 fi
11236 rm -f conftest*
11237 fi
11238 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11239 echo "$ac_t""yes" 1>&6
11240
11241 echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6
11242 echo "configure:11243: checking for glInitNames in -lGL" >&5
11243 ac_lib_var=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'`
11244 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11245 echo $ac_n "(cached) $ac_c" 1>&6
11246 else
11247 ac_save_LIBS="$LIBS"
11248 LIBS="-lGL wxUSE_OPENGL=0 $LIBS"
11249 cat > conftest.$ac_ext <<EOF
11250 #line 11251 "configure"
11251 #include "confdefs.h"
11252 /* Override any gcc2 internal prototype to avoid an error. */
11253 /* We use char because int might match the return type of a gcc2
11254 builtin and then its argument prototype would still apply. */
11255 char glInitNames();
11256
11257 int main() {
11258 glInitNames()
11259 ; return 0; }
11260 EOF
11261 if { (eval echo configure:11262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11262 rm -rf conftest*
11263 eval "ac_cv_lib_$ac_lib_var=yes"
11264 else
11265 echo "configure: failed program was:" >&5
11266 cat conftest.$ac_ext >&5
11267 rm -rf conftest*
11268 eval "ac_cv_lib_$ac_lib_var=no"
11269 fi
11270 rm -f conftest*
11271 LIBS="$ac_save_LIBS"
11272
11273 fi
11274 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11275 echo "$ac_t""yes" 1>&6
11276
11277 OPENGL_LINK="-lGL"
11278 cat >> confdefs.h <<\EOF
11279 #define wxUSE_OPENGL 1
11280 EOF
11281
11282 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
11283
11284 else
11285 echo "$ac_t""no" 1>&6
11286
11287 echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6
11288 echo "configure:11289: checking for glInitNames in -lMesaGL" >&5
11289 ac_lib_var=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'`
11290 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11291 echo $ac_n "(cached) $ac_c" 1>&6
11292 else
11293 ac_save_LIBS="$LIBS"
11294 LIBS="-lMesaGL $LIBS"
11295 cat > conftest.$ac_ext <<EOF
11296 #line 11297 "configure"
11297 #include "confdefs.h"
11298 /* Override any gcc2 internal prototype to avoid an error. */
11299 /* We use char because int might match the return type of a gcc2
11300 builtin and then its argument prototype would still apply. */
11301 char glInitNames();
11302
11303 int main() {
11304 glInitNames()
11305 ; return 0; }
11306 EOF
11307 if { (eval echo configure:11308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11308 rm -rf conftest*
11309 eval "ac_cv_lib_$ac_lib_var=yes"
11310 else
11311 echo "configure: failed program was:" >&5
11312 cat conftest.$ac_ext >&5
11313 rm -rf conftest*
11314 eval "ac_cv_lib_$ac_lib_var=no"
11315 fi
11316 rm -f conftest*
11317 LIBS="$ac_save_LIBS"
11318
11319 fi
11320 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11321 echo "$ac_t""yes" 1>&6
11322
11323 OPENGL_LINK="-lMesaGL"
11324 cat >> confdefs.h <<\EOF
11325 #define wxUSE_OPENGL 1
11326 EOF
11327
11328 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
11329
11330 else
11331 echo "$ac_t""no" 1>&6
11332 wxUSE_OPENGL=0
11333 fi
11334
11335
11336 fi
11337
11338
11339 else
11340 echo "$ac_t""no" 1>&6
11341 wxUSE_OPENGL=0
11342 fi
11343
11344 fi
11345
11346
11347 if test "$wxUSE_GUI" = "yes"; then
11348 cat >> confdefs.h <<\EOF
11349 #define wxUSE_GUI 1
11350 EOF
11351
11352
11353 else
11354 cat >> confdefs.h <<\EOF
11355 #define wxUSE_NOGUI 1
11356 EOF
11357
11358 fi
11359
11360
11361 if test "$wxUSE_UNIX" = "yes"; then
11362 cat >> confdefs.h <<\EOF
11363 #define wxUSE_UNIX 1
11364 EOF
11365
11366 fi
11367
11368
11369 if test "$wxUSE_APPLE_IEEE" = "yes"; then
11370 cat >> confdefs.h <<\EOF
11371 #define wxUSE_APPLE_IEEE 1
11372 EOF
11373
11374 fi
11375
11376 if test "$wxUSE_WAVE" = "yes"; then
11377 cat >> confdefs.h <<\EOF
11378 #define wxUSE_WAVE 1
11379 EOF
11380
11381 fi
11382
11383 if test "$wxUSE_FILE" = "yes"; then
11384 cat >> confdefs.h <<\EOF
11385 #define wxUSE_FILE 1
11386 EOF
11387
11388 fi
11389
11390 if test "$wxUSE_FS_INET" = "yes"; then
11391 cat >> confdefs.h <<\EOF
11392 #define wxUSE_FS_INET 1
11393 EOF
11394
11395 fi
11396
11397 if test "$wxUSE_FS_ZIP" = "yes"; then
11398 cat >> confdefs.h <<\EOF
11399 #define wxUSE_FS_ZIP 1
11400 EOF
11401
11402 fi
11403
11404 if test "$wxUSE_ZIPSTREAM" = "yes"; then
11405 cat >> confdefs.h <<\EOF
11406 #define wxUSE_ZIPSTREAM 1
11407 EOF
11408
11409 fi
11410
11411 if test "$wxUSE_BUSYINFO" = "yes"; then
11412 cat >> confdefs.h <<\EOF
11413 #define wxUSE_BUSYINFO 1
11414 EOF
11415
11416 fi
11417
11418 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
11419 cat >> confdefs.h <<\EOF
11420 #define wxUSE_STD_IOSTREAM 1
11421 EOF
11422
11423 fi
11424
11425 if test "$wxUSE_TEXTFILE" = "yes"; then
11426 if test "$wxUSE_FILE" != "yes"; then
11427 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
11428 else
11429 cat >> confdefs.h <<\EOF
11430 #define wxUSE_TEXTFILE 1
11431 EOF
11432
11433 fi
11434 fi
11435
11436 if test "$wxUSE_CONFIG" = "yes" ; then
11437 if test "$wxUSE_TEXTFILE" != "yes"; then
11438 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
11439 else
11440 cat >> confdefs.h <<\EOF
11441 #define wxUSE_CONFIG 1
11442 EOF
11443
11444 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
11445 fi
11446 fi
11447
11448 if test "$wxUSE_INTL" = "yes" ; then
11449 if test "$wxUSE_FILE" != "yes"; then
11450 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
11451 else
11452 cat >> confdefs.h <<\EOF
11453 #define wxUSE_INTL 1
11454 EOF
11455
11456 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
11457 fi
11458 fi
11459
11460 if test "$wxUSE_LOG" = "yes"; then
11461 cat >> confdefs.h <<\EOF
11462 #define wxUSE_LOG 1
11463 EOF
11464
11465 fi
11466
11467 if test "$wxUSE_LONGLONG" = "yes"; then
11468 cat >> confdefs.h <<\EOF
11469 #define wxUSE_LONGLONG 1
11470 EOF
11471
11472 fi
11473
11474 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
11475 cat >> confdefs.h <<\EOF
11476 #define wxUSE_DIALUP_MANAGER 1
11477 EOF
11478
11479 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
11480 fi
11481
11482 if test "$wxUSE_STREAMS" = "yes" ; then
11483 cat >> confdefs.h <<\EOF
11484 #define wxUSE_STREAMS 1
11485 EOF
11486
11487 fi
11488
11489
11490 if test "$wxUSE_TIMEDATE" = "yes"; then
11491 for ac_func in strptime
11492 do
11493 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11494 echo "configure:11495: checking for $ac_func" >&5
11495 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11496 echo $ac_n "(cached) $ac_c" 1>&6
11497 else
11498 cat > conftest.$ac_ext <<EOF
11499 #line 11500 "configure"
11500 #include "confdefs.h"
11501 /* System header to define __stub macros and hopefully few prototypes,
11502 which can conflict with char $ac_func(); below. */
11503 #include <assert.h>
11504 /* Override any gcc2 internal prototype to avoid an error. */
11505 /* We use char because int might match the return type of a gcc2
11506 builtin and then its argument prototype would still apply. */
11507 char $ac_func();
11508
11509 int main() {
11510
11511 /* The GNU C library defines this for functions which it implements
11512 to always fail with ENOSYS. Some functions are actually named
11513 something starting with __ and the normal name is an alias. */
11514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11515 choke me
11516 #else
11517 $ac_func();
11518 #endif
11519
11520 ; return 0; }
11521 EOF
11522 if { (eval echo configure:11523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11523 rm -rf conftest*
11524 eval "ac_cv_func_$ac_func=yes"
11525 else
11526 echo "configure: failed program was:" >&5
11527 cat conftest.$ac_ext >&5
11528 rm -rf conftest*
11529 eval "ac_cv_func_$ac_func=no"
11530 fi
11531 rm -f conftest*
11532 fi
11533
11534 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11535 echo "$ac_t""yes" 1>&6
11536 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11537 cat >> confdefs.h <<EOF
11538 #define $ac_tr_func 1
11539 EOF
11540
11541 else
11542 echo "$ac_t""no" 1>&6
11543 fi
11544 done
11545
11546
11547 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
11548 echo "configure:11549: checking for timezone variable in <time.h>" >&5
11549 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
11550 echo $ac_n "(cached) $ac_c" 1>&6
11551 else
11552
11553 cat > conftest.$ac_ext <<EOF
11554 #line 11555 "configure"
11555 #include "confdefs.h"
11556
11557 #include <time.h>
11558
11559 int main() {
11560
11561 int tz;
11562 tz = __timezone;
11563
11564 ; return 0; }
11565 EOF
11566 if { (eval echo configure:11567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11567 rm -rf conftest*
11568
11569 wx_cv_var_timezone=__timezone
11570
11571 else
11572 echo "configure: failed program was:" >&5
11573 cat conftest.$ac_ext >&5
11574 rm -rf conftest*
11575
11576 cat > conftest.$ac_ext <<EOF
11577 #line 11578 "configure"
11578 #include "confdefs.h"
11579
11580 #include <time.h>
11581
11582 int main() {
11583
11584 int tz;
11585 tz = _timezone;
11586
11587 ; return 0; }
11588 EOF
11589 if { (eval echo configure:11590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11590 rm -rf conftest*
11591
11592 wx_cv_var_timezone=_timezone
11593
11594 else
11595 echo "configure: failed program was:" >&5
11596 cat conftest.$ac_ext >&5
11597 rm -rf conftest*
11598
11599 cat > conftest.$ac_ext <<EOF
11600 #line 11601 "configure"
11601 #include "confdefs.h"
11602
11603 #include <time.h>
11604
11605 int main() {
11606
11607 int tz;
11608 tz = timezone;
11609
11610 ; return 0; }
11611 EOF
11612 if { (eval echo configure:11613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11613 rm -rf conftest*
11614
11615 wx_cv_var_timezone=timezone
11616
11617 else
11618 echo "configure: failed program was:" >&5
11619 cat conftest.$ac_ext >&5
11620 rm -rf conftest*
11621 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
11622
11623 fi
11624 rm -f conftest*
11625
11626
11627 fi
11628 rm -f conftest*
11629
11630
11631 fi
11632 rm -f conftest*
11633
11634
11635 fi
11636
11637 echo "$ac_t""$wx_cv_var_timezone" 1>&6
11638
11639 cat >> confdefs.h <<EOF
11640 #define WX_TIMEZONE $wx_cv_var_timezone
11641 EOF
11642
11643
11644 for ac_func in localtime gettimeofday ftime
11645 do
11646 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11647 echo "configure:11648: checking for $ac_func" >&5
11648 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11649 echo $ac_n "(cached) $ac_c" 1>&6
11650 else
11651 cat > conftest.$ac_ext <<EOF
11652 #line 11653 "configure"
11653 #include "confdefs.h"
11654 /* System header to define __stub macros and hopefully few prototypes,
11655 which can conflict with char $ac_func(); below. */
11656 #include <assert.h>
11657 /* Override any gcc2 internal prototype to avoid an error. */
11658 /* We use char because int might match the return type of a gcc2
11659 builtin and then its argument prototype would still apply. */
11660 char $ac_func();
11661
11662 int main() {
11663
11664 /* The GNU C library defines this for functions which it implements
11665 to always fail with ENOSYS. Some functions are actually named
11666 something starting with __ and the normal name is an alias. */
11667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11668 choke me
11669 #else
11670 $ac_func();
11671 #endif
11672
11673 ; return 0; }
11674 EOF
11675 if { (eval echo configure:11676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11676 rm -rf conftest*
11677 eval "ac_cv_func_$ac_func=yes"
11678 else
11679 echo "configure: failed program was:" >&5
11680 cat conftest.$ac_ext >&5
11681 rm -rf conftest*
11682 eval "ac_cv_func_$ac_func=no"
11683 fi
11684 rm -f conftest*
11685 fi
11686
11687 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11688 echo "$ac_t""yes" 1>&6
11689 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11690 cat >> confdefs.h <<EOF
11691 #define $ac_tr_func 1
11692 EOF
11693 break
11694 else
11695 echo "$ac_t""no" 1>&6
11696 fi
11697 done
11698
11699
11700 if test "$ac_cv_func_localtime" = "yes"; then
11701 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
11702 echo "configure:11703: checking for tm_gmtoff in struct tm" >&5
11703 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
11704 echo $ac_n "(cached) $ac_c" 1>&6
11705 else
11706
11707 cat > conftest.$ac_ext <<EOF
11708 #line 11709 "configure"
11709 #include "confdefs.h"
11710
11711 #include <time.h>
11712
11713 int main() {
11714
11715 struct tm tm;
11716 tm.tm_gmtoff++;
11717
11718 ; return 0; }
11719 EOF
11720 if { (eval echo configure:11721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11721 rm -rf conftest*
11722
11723 wx_cv_struct_tm_has_gmtoff=yes
11724 cat >> confdefs.h <<\EOF
11725 #define WX_GMTOFF_IN_TM 1
11726 EOF
11727
11728
11729 else
11730 echo "configure: failed program was:" >&5
11731 cat conftest.$ac_ext >&5
11732 rm -rf conftest*
11733 wx_cv_struct_tm_has_gmtoff=no
11734
11735 fi
11736 rm -f conftest*
11737
11738 fi
11739
11740 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
11741 elif test "$ac_cv_func_gettimeofday" = "yes"; then
11742 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
11743 echo "configure:11744: checking whether gettimeofday takes two arguments" >&5
11744 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
11745 echo $ac_n "(cached) $ac_c" 1>&6
11746 else
11747
11748
11749 ac_ext=C
11750 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11751 ac_cpp='$CXXCPP $CPPFLAGS'
11752 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11753 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11754 cross_compiling=$ac_cv_prog_cxx_cross
11755
11756
11757 cat > conftest.$ac_ext <<EOF
11758 #line 11759 "configure"
11759 #include "confdefs.h"
11760
11761 #include <sys/time.h>
11762 #include <unistd.h>
11763
11764 int main() {
11765
11766 struct timeval tv;
11767 struct timezone tz;
11768 gettimeofday(&tv, &tz);
11769
11770 ; return 0; }
11771 EOF
11772 if { (eval echo configure:11773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11773 rm -rf conftest*
11774 wx_cv_func_gettimeofday_has_2_args=yes
11775 else
11776 echo "configure: failed program was:" >&5
11777 cat conftest.$ac_ext >&5
11778 rm -rf conftest*
11779 cat > conftest.$ac_ext <<EOF
11780 #line 11781 "configure"
11781 #include "confdefs.h"
11782
11783 #include <sys/time.h>
11784 #include <unistd.h>
11785
11786 int main() {
11787
11788 struct timeval tv;
11789 gettimeofday(&tv);
11790
11791 ; return 0; }
11792 EOF
11793 if { (eval echo configure:11794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11794 rm -rf conftest*
11795 wx_cv_func_gettimeofday_has_2_args=no
11796 else
11797 echo "configure: failed program was:" >&5
11798 cat conftest.$ac_ext >&5
11799 rm -rf conftest*
11800 wx_cv_func_gettimeofday_has_2_args=unknown
11801
11802 fi
11803 rm -f conftest*
11804
11805 fi
11806 rm -f conftest*
11807 ac_ext=c
11808 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11809 ac_cpp='$CPP $CPPFLAGS'
11810 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11811 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11812 cross_compiling=$ac_cv_prog_cc_cross
11813
11814
11815 fi
11816
11817 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
11818
11819 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
11820 cat >> confdefs.h <<\EOF
11821 #define WX_GETTIMEOFDAY_NO_TZ 1
11822 EOF
11823
11824 fi
11825 fi
11826
11827 cat >> confdefs.h <<\EOF
11828 #define wxUSE_TIMEDATE 1
11829 EOF
11830
11831 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
11832 fi
11833
11834
11835 if test "$wxUSE_SOCKETS" = "yes"; then
11836 echo $ac_n "checking for socket""... $ac_c" 1>&6
11837 echo "configure:11838: checking for socket" >&5
11838 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
11839 echo $ac_n "(cached) $ac_c" 1>&6
11840 else
11841 cat > conftest.$ac_ext <<EOF
11842 #line 11843 "configure"
11843 #include "confdefs.h"
11844 /* System header to define __stub macros and hopefully few prototypes,
11845 which can conflict with char socket(); below. */
11846 #include <assert.h>
11847 /* Override any gcc2 internal prototype to avoid an error. */
11848 /* We use char because int might match the return type of a gcc2
11849 builtin and then its argument prototype would still apply. */
11850 char socket();
11851
11852 int main() {
11853
11854 /* The GNU C library defines this for functions which it implements
11855 to always fail with ENOSYS. Some functions are actually named
11856 something starting with __ and the normal name is an alias. */
11857 #if defined (__stub_socket) || defined (__stub___socket)
11858 choke me
11859 #else
11860 socket();
11861 #endif
11862
11863 ; return 0; }
11864 EOF
11865 if { (eval echo configure:11866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11866 rm -rf conftest*
11867 eval "ac_cv_func_socket=yes"
11868 else
11869 echo "configure: failed program was:" >&5
11870 cat conftest.$ac_ext >&5
11871 rm -rf conftest*
11872 eval "ac_cv_func_socket=no"
11873 fi
11874 rm -f conftest*
11875 fi
11876
11877 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
11878 echo "$ac_t""yes" 1>&6
11879 :
11880 else
11881 echo "$ac_t""no" 1>&6
11882 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
11883 echo "configure:11884: checking for socket in -lsocket" >&5
11884 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
11885 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11886 echo $ac_n "(cached) $ac_c" 1>&6
11887 else
11888 ac_save_LIBS="$LIBS"
11889 LIBS="-lsocket $LIBS"
11890 cat > conftest.$ac_ext <<EOF
11891 #line 11892 "configure"
11892 #include "confdefs.h"
11893 /* Override any gcc2 internal prototype to avoid an error. */
11894 /* We use char because int might match the return type of a gcc2
11895 builtin and then its argument prototype would still apply. */
11896 char socket();
11897
11898 int main() {
11899 socket()
11900 ; return 0; }
11901 EOF
11902 if { (eval echo configure:11903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11903 rm -rf conftest*
11904 eval "ac_cv_lib_$ac_lib_var=yes"
11905 else
11906 echo "configure: failed program was:" >&5
11907 cat conftest.$ac_ext >&5
11908 rm -rf conftest*
11909 eval "ac_cv_lib_$ac_lib_var=no"
11910 fi
11911 rm -f conftest*
11912 LIBS="$ac_save_LIBS"
11913
11914 fi
11915 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11916 echo "$ac_t""yes" 1>&6
11917 INET_LINK="$INET_LINK -lsocket"
11918 else
11919 echo "$ac_t""no" 1>&6
11920
11921 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
11922 wxUSE_SOCKETS=no
11923
11924
11925 fi
11926
11927
11928 fi
11929
11930 fi
11931
11932 if test "$wxUSE_SOCKETS" = "yes" ; then
11933
11934 ac_ext=C
11935 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11936 ac_cpp='$CXXCPP $CPPFLAGS'
11937 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11938 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11939 cross_compiling=$ac_cv_prog_cxx_cross
11940
11941 echo $ac_n "checking the type of the third argument of getsockname""... $ac_c" 1>&6
11942 echo "configure:11943: checking the type of the third argument of getsockname" >&5
11943 cat > conftest.$ac_ext <<EOF
11944 #line 11945 "configure"
11945 #include "confdefs.h"
11946 #include <sys/socket.h>
11947 int main() {
11948 socklen_t len; getsockname(0, 0, &len);
11949 ; return 0; }
11950 EOF
11951 if { (eval echo configure:11952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11952 rm -rf conftest*
11953 cat >> confdefs.h <<\EOF
11954 #define SOCKLEN_T socklen_t
11955 EOF
11956 echo "$ac_t""socklen_t" 1>&6
11957 else
11958 echo "configure: failed program was:" >&5
11959 cat conftest.$ac_ext >&5
11960 rm -rf conftest*
11961 cat > conftest.$ac_ext <<EOF
11962 #line 11963 "configure"
11963 #include "confdefs.h"
11964 #include <sys/socket.h>
11965 int main() {
11966 size_t len; getsockname(0, 0, &len);
11967 ; return 0; }
11968 EOF
11969 if { (eval echo configure:11970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11970 rm -rf conftest*
11971 cat >> confdefs.h <<\EOF
11972 #define SOCKLEN_T size_t
11973 EOF
11974 echo "$ac_t""size_t" 1>&6
11975 else
11976 echo "configure: failed program was:" >&5
11977 cat conftest.$ac_ext >&5
11978 rm -rf conftest*
11979 cat > conftest.$ac_ext <<EOF
11980 #line 11981 "configure"
11981 #include "confdefs.h"
11982 #include <sys/socket.h>
11983 int main() {
11984 int len; getsockname(0, 0, &len);
11985 ; return 0; }
11986 EOF
11987 if { (eval echo configure:11988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11988 rm -rf conftest*
11989 cat >> confdefs.h <<\EOF
11990 #define SOCKLEN_T int
11991 EOF
11992 echo "$ac_t""int" 1>&6
11993 else
11994 echo "configure: failed program was:" >&5
11995 cat conftest.$ac_ext >&5
11996 rm -rf conftest*
11997 echo "$ac_t""unknown" 1>&6
11998
11999 fi
12000 rm -f conftest*
12001
12002 fi
12003 rm -f conftest*
12004
12005 fi
12006 rm -f conftest*
12007 ac_ext=c
12008 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12009 ac_cpp='$CPP $CPPFLAGS'
12010 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12011 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12012 cross_compiling=$ac_cv_prog_cc_cross
12013
12014
12015 cat >> confdefs.h <<\EOF
12016 #define wxUSE_SOCKETS 1
12017 EOF
12018
12019 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
12020 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
12021 fi
12022
12023
12024 if test "$wxUSE_JOYSTICK" = 1; then
12025 for ac_hdr in linux/joystick.h
12026 do
12027 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12028 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12029 echo "configure:12030: checking for $ac_hdr" >&5
12030 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12031 echo $ac_n "(cached) $ac_c" 1>&6
12032 else
12033 cat > conftest.$ac_ext <<EOF
12034 #line 12035 "configure"
12035 #include "confdefs.h"
12036 #include <$ac_hdr>
12037 EOF
12038 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12039 { (eval echo configure:12040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12040 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12041 if test -z "$ac_err"; then
12042 rm -rf conftest*
12043 eval "ac_cv_header_$ac_safe=yes"
12044 else
12045 echo "$ac_err" >&5
12046 echo "configure: failed program was:" >&5
12047 cat conftest.$ac_ext >&5
12048 rm -rf conftest*
12049 eval "ac_cv_header_$ac_safe=no"
12050 fi
12051 rm -f conftest*
12052 fi
12053 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12054 echo "$ac_t""yes" 1>&6
12055 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12056 cat >> confdefs.h <<EOF
12057 #define $ac_tr_hdr 1
12058 EOF
12059
12060 else
12061 echo "$ac_t""no" 1>&6
12062 fi
12063 done
12064
12065 if test "$ac_cv_header_linux_joystick_h" = "yes"; then
12066 cat >> confdefs.h <<\EOF
12067 #define wxUSE_JOYSTICK 1
12068 EOF
12069
12070 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
12071 fi
12072 fi
12073
12074
12075 HAVE_DL_FUNCS=0
12076 HAVE_SHL_FUNCS=0
12077 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
12078 for ac_func in dlopen
12079 do
12080 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12081 echo "configure:12082: checking for $ac_func" >&5
12082 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12083 echo $ac_n "(cached) $ac_c" 1>&6
12084 else
12085 cat > conftest.$ac_ext <<EOF
12086 #line 12087 "configure"
12087 #include "confdefs.h"
12088 /* System header to define __stub macros and hopefully few prototypes,
12089 which can conflict with char $ac_func(); below. */
12090 #include <assert.h>
12091 /* Override any gcc2 internal prototype to avoid an error. */
12092 /* We use char because int might match the return type of a gcc2
12093 builtin and then its argument prototype would still apply. */
12094 char $ac_func();
12095
12096 int main() {
12097
12098 /* The GNU C library defines this for functions which it implements
12099 to always fail with ENOSYS. Some functions are actually named
12100 something starting with __ and the normal name is an alias. */
12101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12102 choke me
12103 #else
12104 $ac_func();
12105 #endif
12106
12107 ; return 0; }
12108 EOF
12109 if { (eval echo configure:12110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12110 rm -rf conftest*
12111 eval "ac_cv_func_$ac_func=yes"
12112 else
12113 echo "configure: failed program was:" >&5
12114 cat conftest.$ac_ext >&5
12115 rm -rf conftest*
12116 eval "ac_cv_func_$ac_func=no"
12117 fi
12118 rm -f conftest*
12119 fi
12120
12121 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12122 echo "$ac_t""yes" 1>&6
12123 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12124 cat >> confdefs.h <<EOF
12125 #define $ac_tr_func 1
12126 EOF
12127
12128 cat >> confdefs.h <<\EOF
12129 #define HAVE_DLOPEN 1
12130 EOF
12131
12132 HAVE_DL_FUNCS=1
12133
12134 else
12135 echo "$ac_t""no" 1>&6
12136 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
12137 echo "configure:12138: checking for dlopen in -ldl" >&5
12138 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
12139 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12140 echo $ac_n "(cached) $ac_c" 1>&6
12141 else
12142 ac_save_LIBS="$LIBS"
12143 LIBS="-ldl $LIBS"
12144 cat > conftest.$ac_ext <<EOF
12145 #line 12146 "configure"
12146 #include "confdefs.h"
12147 /* Override any gcc2 internal prototype to avoid an error. */
12148 /* We use char because int might match the return type of a gcc2
12149 builtin and then its argument prototype would still apply. */
12150 char dlopen();
12151
12152 int main() {
12153 dlopen()
12154 ; return 0; }
12155 EOF
12156 if { (eval echo configure:12157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12157 rm -rf conftest*
12158 eval "ac_cv_lib_$ac_lib_var=yes"
12159 else
12160 echo "configure: failed program was:" >&5
12161 cat conftest.$ac_ext >&5
12162 rm -rf conftest*
12163 eval "ac_cv_lib_$ac_lib_var=no"
12164 fi
12165 rm -f conftest*
12166 LIBS="$ac_save_LIBS"
12167
12168 fi
12169 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12170 echo "$ac_t""yes" 1>&6
12171
12172 cat >> confdefs.h <<\EOF
12173 #define HAVE_DLOPEN 1
12174 EOF
12175
12176 HAVE_DL_FUNCS=1
12177 LIBS="$LIBS -ldl"
12178
12179 else
12180 echo "$ac_t""no" 1>&6
12181
12182 for ac_func in shl_load
12183 do
12184 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12185 echo "configure:12186: checking for $ac_func" >&5
12186 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12187 echo $ac_n "(cached) $ac_c" 1>&6
12188 else
12189 cat > conftest.$ac_ext <<EOF
12190 #line 12191 "configure"
12191 #include "confdefs.h"
12192 /* System header to define __stub macros and hopefully few prototypes,
12193 which can conflict with char $ac_func(); below. */
12194 #include <assert.h>
12195 /* Override any gcc2 internal prototype to avoid an error. */
12196 /* We use char because int might match the return type of a gcc2
12197 builtin and then its argument prototype would still apply. */
12198 char $ac_func();
12199
12200 int main() {
12201
12202 /* The GNU C library defines this for functions which it implements
12203 to always fail with ENOSYS. Some functions are actually named
12204 something starting with __ and the normal name is an alias. */
12205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12206 choke me
12207 #else
12208 $ac_func();
12209 #endif
12210
12211 ; return 0; }
12212 EOF
12213 if { (eval echo configure:12214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12214 rm -rf conftest*
12215 eval "ac_cv_func_$ac_func=yes"
12216 else
12217 echo "configure: failed program was:" >&5
12218 cat conftest.$ac_ext >&5
12219 rm -rf conftest*
12220 eval "ac_cv_func_$ac_func=no"
12221 fi
12222 rm -f conftest*
12223 fi
12224
12225 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12226 echo "$ac_t""yes" 1>&6
12227 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12228 cat >> confdefs.h <<EOF
12229 #define $ac_tr_func 1
12230 EOF
12231
12232 cat >> confdefs.h <<\EOF
12233 #define HAVE_SHL_LOAD 1
12234 EOF
12235
12236 HAVE_SHL_FUNCS=1
12237
12238 else
12239 echo "$ac_t""no" 1>&6
12240 fi
12241 done
12242
12243
12244 fi
12245
12246
12247 fi
12248 done
12249
12250
12251 if test "$HAVE_DL_FUNCS" = 0; then
12252 if test "$HAVE_SHL_FUNCS" = 0; then
12253 if test "$USE_UNIX" = 1; then
12254 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
12255 wxUSE_DYNLIB_CLASS=no
12256 else
12257 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
12258 fi
12259 fi
12260 fi
12261 fi
12262
12263 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
12264 cat >> confdefs.h <<\EOF
12265 #define wxUSE_DYNLIB_CLASS 1
12266 EOF
12267
12268 else
12269 wxUSE_ODBC=no
12270 wxUSE_SERIAL=no
12271 fi
12272
12273
12274 if test "$wxUSE_UNICODE" = "yes" ; then
12275 cat >> confdefs.h <<\EOF
12276 #define wxUSE_UNICODE 1
12277 EOF
12278
12279 fi
12280
12281 if test "$wxUSE_WCSRTOMBS" = "yes" ; then
12282 cat >> confdefs.h <<\EOF
12283 #define wxUSE_WCSRTOMBS 1
12284 EOF
12285
12286 fi
12287
12288 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
12289 cat >> confdefs.h <<\EOF
12290 #define wxUSE_EXPERIMENTAL_PRINTF 1
12291 EOF
12292
12293 fi
12294
12295
12296 if test "$wxUSE_SERIAL" = "yes" ; then
12297 cat >> confdefs.h <<\EOF
12298 #define wxUSE_SERIAL 1
12299 EOF
12300
12301 fi
12302
12303
12304 IODBC_C_SRC=""
12305 if test "$wxUSE_ODBC" = "yes" ; then
12306 cat >> confdefs.h <<\EOF
12307 #define wxUSE_ODBC 1
12308 EOF
12309
12310 WXODBCFLAG="-D_IODBC_"
12311 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
12312 IODBCOBJS="\$(IODBC_OBJS)"
12313 else
12314 IODBCOBJS=
12315 fi
12316
12317
12318 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
12319 cat >> confdefs.h <<\EOF
12320 #define wxUSE_POSTSCRIPT 1
12321 EOF
12322
12323 fi
12324
12325 cat >> confdefs.h <<\EOF
12326 #define wxUSE_AFM_FOR_POSTSCRIPT 1
12327 EOF
12328
12329
12330 cat >> confdefs.h <<\EOF
12331 #define wxUSE_NORMALIZED_PS_FONTS 1
12332 EOF
12333
12334
12335
12336 if test "$wxUSE_CONSTRAINTS" = "yes"; then
12337 cat >> confdefs.h <<\EOF
12338 #define wxUSE_CONSTRAINTS 1
12339 EOF
12340
12341 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
12342 fi
12343
12344 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
12345 cat >> confdefs.h <<\EOF
12346 #define wxUSE_MDI_ARCHITECTURE 1
12347 EOF
12348
12349 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
12350 fi
12351
12352 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
12353 cat >> confdefs.h <<\EOF
12354 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
12355 EOF
12356
12357 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
12358 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
12359 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
12360 fi
12361 fi
12362
12363 if test "$wxUSE_HELP" = "yes"; then
12364 cat >> confdefs.h <<\EOF
12365 #define wxUSE_HELP 1
12366 EOF
12367
12368 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
12369 fi
12370
12371 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
12372 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12373 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
12374 else
12375 cat >> confdefs.h <<\EOF
12376 #define wxUSE_PRINTING_ARCHITECTURE 1
12377 EOF
12378
12379 fi
12380 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
12381 fi
12382
12383 if test "$wxUSE_PROLOGIO" = "yes" ; then
12384 cat >> confdefs.h <<\EOF
12385 #define wxUSE_PROLOGIO 1
12386 EOF
12387
12388 fi
12389
12390 if test "$wxUSE_RESOURCES" = "yes" ; then
12391 if test "$wxUSE_PROLOGIO" = "yes" ; then
12392 cat >> confdefs.h <<\EOF
12393 #define wxUSE_RESOURCES 1
12394 EOF
12395
12396 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
12397 else
12398 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
12399 fi
12400 fi
12401
12402 if test "$wxUSE_X_RESOURCES" = "yes"; then
12403 cat >> confdefs.h <<\EOF
12404 #define wxUSE_X_RESOURCES 1
12405 EOF
12406
12407 fi
12408
12409
12410 if test "$wxUSE_IPC" = "yes"; then
12411 cat >> confdefs.h <<\EOF
12412 #define wxUSE_IPC 1
12413 EOF
12414
12415 fi
12416
12417 if test "$wxUSE_CLIPBOARD" = "yes"; then
12418 cat >> confdefs.h <<\EOF
12419 #define wxUSE_CLIPBOARD 1
12420 EOF
12421
12422 fi
12423
12424 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
12425 if test "$wxUSE_GTK" = 1; then
12426 if test "$WXGTK12" != 1; then
12427 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
12428 wxUSE_DRAG_AND_DROP=no
12429 fi
12430 fi
12431
12432 if test "$wxUSE_MOTIF" = 1; then
12433 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
12434 wxUSE_DRAG_AND_DROP=no
12435 fi
12436
12437 if test "$USE_WIN32" = 1; then
12438 for ac_hdr in ole2.h
12439 do
12440 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12441 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12442 echo "configure:12443: checking for $ac_hdr" >&5
12443 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12444 echo $ac_n "(cached) $ac_c" 1>&6
12445 else
12446 cat > conftest.$ac_ext <<EOF
12447 #line 12448 "configure"
12448 #include "confdefs.h"
12449 #include <$ac_hdr>
12450 EOF
12451 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12452 { (eval echo configure:12453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12453 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12454 if test -z "$ac_err"; then
12455 rm -rf conftest*
12456 eval "ac_cv_header_$ac_safe=yes"
12457 else
12458 echo "$ac_err" >&5
12459 echo "configure: failed program was:" >&5
12460 cat conftest.$ac_ext >&5
12461 rm -rf conftest*
12462 eval "ac_cv_header_$ac_safe=no"
12463 fi
12464 rm -f conftest*
12465 fi
12466 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12467 echo "$ac_t""yes" 1>&6
12468 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12469 cat >> confdefs.h <<EOF
12470 #define $ac_tr_hdr 1
12471 EOF
12472
12473 else
12474 echo "$ac_t""no" 1>&6
12475 fi
12476 done
12477
12478 if test "x$HAVE_OLE2_H" = x ; then
12479 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
12480 wxUSE_DRAG_AND_DROP=no
12481 fi
12482 fi
12483
12484 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
12485 cat >> confdefs.h <<\EOF
12486 #define wxUSE_DRAG_AND_DROP 1
12487 EOF
12488
12489 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
12490 fi
12491
12492 fi
12493
12494 if test "$wxUSE_SPLINES" = "yes" ; then
12495 cat >> confdefs.h <<\EOF
12496 #define wxUSE_SPLINES 1
12497 EOF
12498
12499 fi
12500
12501
12502 if test "$wxUSE_ACCEL" = "yes"; then
12503 cat >> confdefs.h <<\EOF
12504 #define wxUSE_ACCEL 1
12505 EOF
12506
12507 fi
12508
12509 if test "$wxUSE_CARET" = "yes"; then
12510 cat >> confdefs.h <<\EOF
12511 #define wxUSE_CARET 1
12512 EOF
12513
12514 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
12515 fi
12516
12517 if test "$wxUSE_COMBOBOX" = "yes"; then
12518 cat >> confdefs.h <<\EOF
12519 #define wxUSE_COMBOBOX 1
12520 EOF
12521
12522 fi
12523
12524 if test "$wxUSE_CHOICE" = "yes"; then
12525 cat >> confdefs.h <<\EOF
12526 #define wxUSE_CHOICE 1
12527 EOF
12528
12529 fi
12530
12531 if test "$wxUSE_BMPBUTTON" = "yes"; then
12532 cat >> confdefs.h <<\EOF
12533 #define wxUSE_BMPBUTTON 1
12534 EOF
12535
12536 fi
12537
12538 if test "$wxUSE_CHECKBOX" = "yes"; then
12539 cat >> confdefs.h <<\EOF
12540 #define wxUSE_CHECKBOX 1
12541 EOF
12542
12543 fi
12544
12545 if test "$wxUSE_CHECKLST" = "yes"; then
12546 cat >> confdefs.h <<\EOF
12547 #define wxUSE_CHECKLISTBOX 1
12548 EOF
12549
12550 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
12551 fi
12552
12553 if test "$wxUSE_GAUGE" = "yes"; then
12554 cat >> confdefs.h <<\EOF
12555 #define wxUSE_GAUGE 1
12556 EOF
12557
12558 fi
12559
12560 if test "$wxUSE_GRID" = "yes"; then
12561 cat >> confdefs.h <<\EOF
12562 #define wxUSE_GRID 1
12563 EOF
12564
12565 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
12566 fi
12567
12568 if test "$wxUSE_NEW_GRID" = "yes"; then
12569 cat >> confdefs.h <<\EOF
12570 #define wxUSE_NEW_GRID 1
12571 EOF
12572
12573 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
12574 fi
12575
12576 if test "$wxUSE_IMAGLIST" = "yes"; then
12577 cat >> confdefs.h <<\EOF
12578 #define wxUSE_IMAGLIST 1
12579 EOF
12580
12581 fi
12582
12583 if test "$wxUSE_LISTBOX" = "yes"; then
12584 cat >> confdefs.h <<\EOF
12585 #define wxUSE_LISTBOX 1
12586 EOF
12587
12588 fi
12589
12590 if test "$wxUSE_LISTCTRL" = "yes"; then
12591 if test "$wxUSE_IMAGLIST" = "yes"; then
12592 cat >> confdefs.h <<\EOF
12593 #define wxUSE_LISTCTRL 1
12594 EOF
12595
12596 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
12597 else
12598 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
12599 fi
12600 fi
12601
12602 if test "$wxUSE_NOTEBOOK" = "yes"; then
12603 cat >> confdefs.h <<\EOF
12604 #define wxUSE_NOTEBOOK 1
12605 EOF
12606
12607 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
12608 fi
12609
12610 if test "$wxUSE_RADIOBOX" = "yes"; then
12611 cat >> confdefs.h <<\EOF
12612 #define wxUSE_RADIOBOX 1
12613 EOF
12614
12615 fi
12616
12617 if test "$wxUSE_RADIOBTN" = "yes"; then
12618 cat >> confdefs.h <<\EOF
12619 #define wxUSE_RADIOBTN 1
12620 EOF
12621
12622 fi
12623
12624 if test "$wxUSE_SASH" = "yes"; then
12625 cat >> confdefs.h <<\EOF
12626 #define wxUSE_SASH 1
12627 EOF
12628
12629 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
12630 fi
12631
12632 if test "$wxUSE_SCROLLBAR" = "yes"; then
12633 cat >> confdefs.h <<\EOF
12634 #define wxUSE_SCROLLBAR 1
12635 EOF
12636
12637 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
12638 fi
12639
12640 if test "$wxUSE_SLIDER" = "yes"; then
12641 cat >> confdefs.h <<\EOF
12642 #define wxUSE_SLIDER 1
12643 EOF
12644
12645 fi
12646
12647 if test "$wxUSE_SPINBTN" = "yes"; then
12648 cat >> confdefs.h <<\EOF
12649 #define wxUSE_SPINBTN 1
12650 EOF
12651
12652 fi
12653
12654 if test "$wxUSE_SPINCTRL" = "yes"; then
12655 cat >> confdefs.h <<\EOF
12656 #define wxUSE_SPINCTRL 1
12657 EOF
12658
12659 fi
12660
12661 if test "$wxUSE_SPLITTER" = "yes"; then
12662 cat >> confdefs.h <<\EOF
12663 #define wxUSE_SPLITTER 1
12664 EOF
12665
12666 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
12667 fi
12668
12669 if test "$wxUSE_STATBMP" = "yes"; then
12670 cat >> confdefs.h <<\EOF
12671 #define wxUSE_STATBMP 1
12672 EOF
12673
12674 fi
12675
12676 if test "$wxUSE_STATBOX" = "yes"; then
12677 cat >> confdefs.h <<\EOF
12678 #define wxUSE_STATBOX 1
12679 EOF
12680
12681 fi
12682
12683 if test "$wxUSE_STATLINE" = "yes"; then
12684 if test "$wxUSE_WINE" = 1 ; then
12685 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
12686 else
12687 cat >> confdefs.h <<\EOF
12688 #define wxUSE_STATLINE 1
12689 EOF
12690
12691 fi
12692 fi
12693
12694 if test "$wxUSE_STATUSBAR" = "yes"; then
12695 cat >> confdefs.h <<\EOF
12696 #define wxUSE_STATUSBAR 1
12697 EOF
12698
12699 fi
12700
12701 if test "$wxUSE_TABDIALOG" = "yes"; then
12702 cat >> confdefs.h <<\EOF
12703 #define wxUSE_TAB_DIALOG 1
12704 EOF
12705
12706 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
12707 fi
12708
12709 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
12710 cat >> confdefs.h <<\EOF
12711 #define wxUSE_TOOLBAR_SIMPLE 1
12712 EOF
12713
12714 wxUSE_TOOLBAR="yes"
12715 fi
12716
12717 if test "$wxUSE_TOOLBAR" = "yes"; then
12718 cat >> confdefs.h <<\EOF
12719 #define wxUSE_TOOLBAR 1
12720 EOF
12721
12722
12723 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
12724 wxUSE_TOOLBAR_NATIVE="yes"
12725 fi
12726
12727 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
12728 fi
12729
12730 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
12731 cat >> confdefs.h <<\EOF
12732 #define wxUSE_TOOLBAR_NATIVE 1
12733 EOF
12734
12735 fi
12736
12737 if test "$wxUSE_TOOLTIPS" = "yes"; then
12738 if test "$wxUSE_MOTIF" = 1; then
12739 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
12740 else
12741 if test "$wxUSE_WINE" = 1; then
12742 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
12743 else
12744 cat >> confdefs.h <<\EOF
12745 #define wxUSE_TOOLTIPS 1
12746 EOF
12747
12748 fi
12749 fi
12750 fi
12751
12752 if test "$wxUSE_TREECTRL" = "yes"; then
12753 if test "$wxUSE_IMAGLIST" = "yes"; then
12754 cat >> confdefs.h <<\EOF
12755 #define wxUSE_TREECTRL 1
12756 EOF
12757
12758 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
12759 else
12760 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
12761 fi
12762 fi
12763
12764
12765
12766 if test "$wxUSE_METAFILE" = "yes"; then
12767 cat >> confdefs.h <<\EOF
12768 #define wxUSE_METAFILE 1
12769 EOF
12770
12771 fi
12772
12773 if test "$wxUSE_DIRDLG" = "yes"; then
12774 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12775 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
12776 else
12777 if test "$wxUSE_TREECTRL" != "yes"; then
12778 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
12779 else
12780 cat >> confdefs.h <<\EOF
12781 #define wxUSE_DIRDLG 1
12782 EOF
12783
12784 fi
12785 fi
12786 fi
12787
12788 if test "$wxUSE_TEXTDLG" = "yes"; then
12789 cat >> confdefs.h <<\EOF
12790 #define wxUSE_TEXTDLG 1
12791 EOF
12792
12793 fi
12794
12795 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
12796 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12797 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
12798 else
12799 cat >> confdefs.h <<\EOF
12800 #define wxUSE_STARTUP_TIPS 1
12801 EOF
12802
12803 fi
12804 fi
12805
12806 if test "$wxUSE_PROGRESSDLG" = "yes"; then
12807 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12808 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
12809 else
12810 cat >> confdefs.h <<\EOF
12811 #define wxUSE_PROGRESSDLG 1
12812 EOF
12813
12814 fi
12815 fi
12816
12817 if test "$wxUSE_MINIFRAME" = "yes"; then
12818 cat >> confdefs.h <<\EOF
12819 #define wxUSE_MINIFRAME 1
12820 EOF
12821
12822 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
12823 fi
12824
12825 if test "$wxUSE_HTML" = "yes"; then
12826 cat >> confdefs.h <<\EOF
12827 #define wxUSE_HTML 1
12828 EOF
12829
12830 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
12831 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
12832 fi
12833
12834 if test "$wxUSE_VALIDATORS" = "yes"; then
12835 cat >> confdefs.h <<\EOF
12836 #define wxUSE_VALIDATORS 1
12837 EOF
12838
12839 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
12840 fi
12841
12842 if test "$wxUSE_GIF" = "yes" ; then
12843 cat >> confdefs.h <<\EOF
12844 #define wxUSE_GIF 1
12845 EOF
12846
12847 fi
12848
12849 if test "$wxUSE_PCX" = "yes" ; then
12850 cat >> confdefs.h <<\EOF
12851 #define wxUSE_PCX 1
12852 EOF
12853
12854 fi
12855
12856 if test "$wxUSE_PNM" = "yes" ; then
12857 cat >> confdefs.h <<\EOF
12858 #define wxUSE_PNM 1
12859 EOF
12860
12861 fi
12862
12863
12864 OSINFO=`uname -s -r -m`
12865 OSINFO="\"$OSINFO\""
12866 cat >> confdefs.h <<EOF
12867 #define WXWIN_OS_DESCRIPTION $OSINFO
12868 EOF
12869
12870
12871
12872 GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK"
12873
12874 EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK"
12875 if test "$wxUSE_GUI" = "yes"; then
12876 EXTRA_LIBS="$EXTRA_LIBS $GUILIBS"
12877 fi
12878
12879 LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
12880
12881 INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE"
12882
12883 if test "$GXX" = yes ; then
12884 CXXWARNINGS="-Wall"
12885 fi
12886 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
12887
12888 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS | sed 's/ \\+/ /g'`
12889 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
12890
12891 LDFLAGS="$LDFLAGS $PROFILE"
12892
12893 if test "$wxUSE_GUI" = "yes"; then
12894
12895 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs drawing dynamic \
12896 font fractal image minimal richedit"
12897
12898 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS)"
12899 else
12900 SAMPLES_SUBDIRS=""
12901 fi
12902
12903 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
12972 echo "configure:12973: checking whether ${MAKE-make} sets \${MAKE}" >&5
12973 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
12974 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
12975 echo $ac_n "(cached) $ac_c" 1>&6
12976 else
12977 cat > conftestmake <<\EOF
12978 all:
12979 @echo 'ac_maketemp="${MAKE}"'
12980 EOF
12981 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12982 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
12983 if test -n "$ac_maketemp"; then
12984 eval ac_cv_prog_make_${ac_make}_set=yes
12985 else
12986 eval ac_cv_prog_make_${ac_make}_set=no
12987 fi
12988 rm -f conftestmake
12989 fi
12990 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
12991 echo "$ac_t""yes" 1>&6
12992 SET_MAKE=
12993 else
12994 echo "$ac_t""no" 1>&6
12995 SET_MAKE="MAKE=${MAKE-make}"
12996 fi
12997
12998
12999
13000
13001 if test "$wxUSE_GUI" = "yes"; then
13002 echo $ac_n "checking glcanvas subdirectory to use""... $ac_c" 1>&6
13003 echo "configure:13004: checking glcanvas subdirectory to use" >&5
13004 if eval "test \"`echo '$''{'wx_cv_path_glcanvas'+set}'`\" = set"; then
13005 echo $ac_n "(cached) $ac_c" 1>&6
13006 else
13007
13008 if test "${TOOLKIT_DIR}" = "msw" ; then
13009 wx_cv_path_glcanvas="win"
13010 else
13011 wx_cv_path_glcanvas="${TOOLKIT_DIR}"
13012 fi
13013
13014 fi
13015
13016 echo "$ac_t""$wx_cv_path_glcanvas" 1>&6
13017
13018 GL_TOOLKIT_DIR=$wx_cv_PATH_glcanvas
13019
13020
13021 subdirs="demos samples utils"
13022
13023 fi
13024
13025 trap '' 1 2 15
13026 cat > confcache <<\EOF
13027 # This file is a shell script that caches the results of configure
13028 # tests run on this system so they can be shared between configure
13029 # scripts and configure runs. It is not useful on other systems.
13030 # If it contains results you don't want to keep, you may remove or edit it.
13031 #
13032 # By default, configure uses ./config.cache as the cache file,
13033 # creating it if it does not exist already. You can give configure
13034 # the --cache-file=FILE option to use a different cache file; that is
13035 # what configure does when it calls configure scripts in
13036 # subdirectories, so they share the cache.
13037 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13038 # config.status only pays attention to the cache file if you give it the
13039 # --recheck option to rerun configure.
13040 #
13041 EOF
13042 # The following way of writing the cache mishandles newlines in values,
13043 # but we know of no workaround that is simple, portable, and efficient.
13044 # So, don't put newlines in cache variables' values.
13045 # Ultrix sh set writes to stderr and can't be redirected directly,
13046 # and sets the high bit in the cache file unless we assign to the vars.
13047 (set) 2>&1 |
13048 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13049 *ac_space=\ *)
13050 # `set' does not quote correctly, so add quotes (double-quote substitution
13051 # turns \\\\ into \\, and sed turns \\ into \).
13052 sed -n \
13053 -e "s/'/'\\\\''/g" \
13054 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13055 ;;
13056 *)
13057 # `set' quotes correctly as required by POSIX, so do not add quotes.
13058 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13059 ;;
13060 esac >> confcache
13061 if cmp -s $cache_file confcache; then
13062 :
13063 else
13064 if test -w $cache_file; then
13065 echo "updating cache $cache_file"
13066 cat confcache > $cache_file
13067 else
13068 echo "not updating unwritable cache $cache_file"
13069 fi
13070 fi
13071 rm -f confcache
13072
13073 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13074
13075 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13076 # Let make expand exec_prefix.
13077 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13078
13079 # Any assignment to VPATH causes Sun make to only execute
13080 # the first set of double-colon rules, so remove it if not needed.
13081 # If there is a colon in the path, we need to keep it.
13082 if test "x$srcdir" = x.; then
13083 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13084 fi
13085
13086 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13087
13088 DEFS=-DHAVE_CONFIG_H
13089
13090 # Without the "./", some shells look in PATH for config.status.
13091 : ${CONFIG_STATUS=./config.status}
13092
13093 echo creating $CONFIG_STATUS
13094 rm -f $CONFIG_STATUS
13095 cat > $CONFIG_STATUS <<EOF
13096 #! /bin/sh
13097 # Generated automatically by configure.
13098 # Run this file to recreate the current configuration.
13099 # This directory was configured as follows,
13100 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13101 #
13102 # $0 $ac_configure_args
13103 #
13104 # Compiler output produced by configure, useful for debugging
13105 # configure, is in ./config.log if it exists.
13106
13107 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13108 for ac_option
13109 do
13110 case "\$ac_option" in
13111 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13112 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13113 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13114 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13115 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13116 exit 0 ;;
13117 -help | --help | --hel | --he | --h)
13118 echo "\$ac_cs_usage"; exit 0 ;;
13119 *) echo "\$ac_cs_usage"; exit 1 ;;
13120 esac
13121 done
13122
13123 ac_given_srcdir=$srcdir
13124 ac_given_INSTALL="$INSTALL"
13125
13126 trap 'rm -fr `echo "
13127 wx-config
13128 src/make.env
13129 src/makeprog.env
13130 src/makelib.env
13131 Makefile
13132 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13133 EOF
13134 cat >> $CONFIG_STATUS <<EOF
13135
13136 # Protect against being on the right side of a sed subst in config.status.
13137 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13138 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13139 $ac_vpsub
13140 $extrasub
13141 s%@SHELL@%$SHELL%g
13142 s%@CFLAGS@%$CFLAGS%g
13143 s%@CPPFLAGS@%$CPPFLAGS%g
13144 s%@CXXFLAGS@%$CXXFLAGS%g
13145 s%@FFLAGS@%$FFLAGS%g
13146 s%@DEFS@%$DEFS%g
13147 s%@LDFLAGS@%$LDFLAGS%g
13148 s%@LIBS@%$LIBS%g
13149 s%@exec_prefix@%$exec_prefix%g
13150 s%@prefix@%$prefix%g
13151 s%@program_transform_name@%$program_transform_name%g
13152 s%@bindir@%$bindir%g
13153 s%@sbindir@%$sbindir%g
13154 s%@libexecdir@%$libexecdir%g
13155 s%@datadir@%$datadir%g
13156 s%@sysconfdir@%$sysconfdir%g
13157 s%@sharedstatedir@%$sharedstatedir%g
13158 s%@localstatedir@%$localstatedir%g
13159 s%@libdir@%$libdir%g
13160 s%@includedir@%$includedir%g
13161 s%@oldincludedir@%$oldincludedir%g
13162 s%@infodir@%$infodir%g
13163 s%@mandir@%$mandir%g
13164 s%@CC@%$CC%g
13165 s%@CPP@%$CPP%g
13166 s%@CXX@%$CXX%g
13167 s%@CXXCPP@%$CXXCPP%g
13168 s%@RANLIB@%$RANLIB%g
13169 s%@AR@%$AR%g
13170 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13171 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13172 s%@INSTALL_DATA@%$INSTALL_DATA%g
13173 s%@STRIP@%$STRIP%g
13174 s%@YACC@%$YACC%g
13175 s%@LEX@%$LEX%g
13176 s%@LEXLIB@%$LEXLIB%g
13177 s%@LN_S@%$LN_S%g
13178 s%@GTK_CONFIG@%$GTK_CONFIG%g
13179 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
13180 s%@GTK_LIBS@%$GTK_LIBS%g
13181 s%@X_CFLAGS@%$X_CFLAGS%g
13182 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
13183 s%@X_LIBS@%$X_LIBS%g
13184 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
13185 s%@LEX_STEM@%$LEX_STEM%g
13186 s%@PATH_IFS@%$PATH_IFS%g
13187 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
13188 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
13189 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
13190 s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
13191 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
13192 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
13193 s%@WX_LIBRARY@%$WX_LIBRARY%g
13194 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
13195 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
13196 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
13197 s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
13198 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
13199 s%@WX_ALL@%$WX_ALL%g
13200 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
13201 s%@SHARED_LD@%$SHARED_LD%g
13202 s%@PIC_FLAG@%$PIC_FLAG%g
13203 s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
13204 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
13205 s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
13206 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
13207 s%@USE_GUI@%$USE_GUI%g
13208 s%@AFMINSTALL@%$AFMINSTALL%g
13209 s%@TOOLKIT@%$TOOLKIT%g
13210 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
13211 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
13212 s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
13213 s%@GUIHEADERS@%$GUIHEADERS%g
13214 s%@GUIOBJS@%$GUIOBJS%g
13215 s%@COMMONOBJS@%$COMMONOBJS%g
13216 s%@GENERICOBJS@%$GENERICOBJS%g
13217 s%@GUIDEPS@%$GUIDEPS%g
13218 s%@COMMONDEPS@%$COMMONDEPS%g
13219 s%@GENERICDEPS@%$GENERICDEPS%g
13220 s%@IODBCOBJS@%$IODBCOBJS%g
13221 s%@UNIXOBJS@%$UNIXOBJS%g
13222 s%@UNIXDEPS@%$UNIXDEPS%g
13223 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
13224 s%@ALL_DEPFILES@%$ALL_DEPFILES%g
13225 s%@GUIDIST@%$GUIDIST%g
13226 s%@PORT_FILES@%$PORT_FILES%g
13227 s%@DISTDIR@%$DISTDIR%g
13228 s%@RPM_SPEC@%$RPM_SPEC%g
13229 s%@RPM_FILES@%$RPM_FILES%g
13230 s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
13231 s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
13232 s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
13233 s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
13234 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
13235 s%@USER_SUBDIRS@%$USER_SUBDIRS%g
13236 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
13237 s%@EXTRADEFS@%$EXTRADEFS%g
13238 s%@LD_LIBS@%$LD_LIBS%g
13239 s%@SET_MAKE@%$SET_MAKE%g
13240 s%@GL_TOOLKIT_DIR@%$GL_TOOLKIT_DIR%g
13241 s%@subdirs@%$subdirs%g
13242
13243 CEOF
13244 EOF
13245
13246 cat >> $CONFIG_STATUS <<\EOF
13247
13248 # Split the substitutions into bite-sized pieces for seds with
13249 # small command number limits, like on Digital OSF/1 and HP-UX.
13250 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13251 ac_file=1 # Number of current file.
13252 ac_beg=1 # First line for current file.
13253 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13254 ac_more_lines=:
13255 ac_sed_cmds=""
13256 while $ac_more_lines; do
13257 if test $ac_beg -gt 1; then
13258 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13259 else
13260 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13261 fi
13262 if test ! -s conftest.s$ac_file; then
13263 ac_more_lines=false
13264 rm -f conftest.s$ac_file
13265 else
13266 if test -z "$ac_sed_cmds"; then
13267 ac_sed_cmds="sed -f conftest.s$ac_file"
13268 else
13269 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13270 fi
13271 ac_file=`expr $ac_file + 1`
13272 ac_beg=$ac_end
13273 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13274 fi
13275 done
13276 if test -z "$ac_sed_cmds"; then
13277 ac_sed_cmds=cat
13278 fi
13279 EOF
13280
13281 cat >> $CONFIG_STATUS <<EOF
13282
13283 CONFIG_FILES=\${CONFIG_FILES-"wx-config
13284 src/make.env
13285 src/makeprog.env
13286 src/makelib.env
13287 Makefile
13288 "}
13289 EOF
13290 cat >> $CONFIG_STATUS <<\EOF
13291 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13292 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13293 case "$ac_file" in
13294 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13295 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13296 *) ac_file_in="${ac_file}.in" ;;
13297 esac
13298
13299 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13300
13301 # Remove last slash and all that follows it. Not all systems have dirname.
13302 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13303 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13304 # The file is in a subdirectory.
13305 test ! -d "$ac_dir" && mkdir "$ac_dir"
13306 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13307 # A "../" for each directory in $ac_dir_suffix.
13308 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13309 else
13310 ac_dir_suffix= ac_dots=
13311 fi
13312
13313 case "$ac_given_srcdir" in
13314 .) srcdir=.
13315 if test -z "$ac_dots"; then top_srcdir=.
13316 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13317 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13318 *) # Relative path.
13319 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13320 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13321 esac
13322
13323 case "$ac_given_INSTALL" in
13324 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13325 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13326 esac
13327
13328 echo creating "$ac_file"
13329 rm -f "$ac_file"
13330 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13331 case "$ac_file" in
13332 *Makefile*) ac_comsub="1i\\
13333 # $configure_input" ;;
13334 *) ac_comsub= ;;
13335 esac
13336
13337 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13338 sed -e "$ac_comsub
13339 s%@configure_input@%$configure_input%g
13340 s%@srcdir@%$srcdir%g
13341 s%@top_srcdir@%$top_srcdir%g
13342 s%@INSTALL@%$INSTALL%g
13343 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13344 fi; done
13345 rm -f conftest.s*
13346
13347 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13348 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13349 #
13350 # ac_d sets the value in "#define NAME VALUE" lines.
13351 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13352 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13353 ac_dC='\3'
13354 ac_dD='%g'
13355 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13356 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13357 ac_uB='\([ ]\)%\1#\2define\3'
13358 ac_uC=' '
13359 ac_uD='\4%g'
13360 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13361 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13362 ac_eB='$%\1#\2define\3'
13363 ac_eC=' '
13364 ac_eD='%g'
13365
13366 if test "${CONFIG_HEADERS+set}" != set; then
13367 EOF
13368 cat >> $CONFIG_STATUS <<EOF
13369 CONFIG_HEADERS="setup.h:setup.h.in"
13370 EOF
13371 cat >> $CONFIG_STATUS <<\EOF
13372 fi
13373 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13374 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13375 case "$ac_file" in
13376 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13377 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13378 *) ac_file_in="${ac_file}.in" ;;
13379 esac
13380
13381 echo creating $ac_file
13382
13383 rm -f conftest.frag conftest.in conftest.out
13384 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13385 cat $ac_file_inputs > conftest.in
13386
13387 EOF
13388
13389 # Transform confdefs.h into a sed script conftest.vals that substitutes
13390 # the proper values into config.h.in to produce config.h. And first:
13391 # Protect against being on the right side of a sed subst in config.status.
13392 # Protect against being in an unquoted here document in config.status.
13393 rm -f conftest.vals
13394 cat > conftest.hdr <<\EOF
13395 s/[\\&%]/\\&/g
13396 s%[\\$`]%\\&%g
13397 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13398 s%ac_d%ac_u%gp
13399 s%ac_u%ac_e%gp
13400 EOF
13401 sed -n -f conftest.hdr confdefs.h > conftest.vals
13402 rm -f conftest.hdr
13403
13404 # This sed command replaces #undef with comments. This is necessary, for
13405 # example, in the case of _POSIX_SOURCE, which is predefined and required
13406 # on some systems where configure will not decide to define it.
13407 cat >> conftest.vals <<\EOF
13408 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13409 EOF
13410
13411 # Break up conftest.vals because some shells have a limit on
13412 # the size of here documents, and old seds have small limits too.
13413
13414 rm -f conftest.tail
13415 while :
13416 do
13417 ac_lines=`grep -c . conftest.vals`
13418 # grep -c gives empty output for an empty file on some AIX systems.
13419 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13420 # Write a limited-size here document to conftest.frag.
13421 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13422 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13423 echo 'CEOF
13424 sed -f conftest.frag conftest.in > conftest.out
13425 rm -f conftest.in
13426 mv conftest.out conftest.in
13427 ' >> $CONFIG_STATUS
13428 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13429 rm -f conftest.vals
13430 mv conftest.tail conftest.vals
13431 done
13432 rm -f conftest.vals
13433
13434 cat >> $CONFIG_STATUS <<\EOF
13435 rm -f conftest.frag conftest.h
13436 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13437 cat conftest.in >> conftest.h
13438 rm -f conftest.in
13439 if cmp -s $ac_file conftest.h 2>/dev/null; then
13440 echo "$ac_file is unchanged"
13441 rm -f conftest.h
13442 else
13443 # Remove last slash and all that follows it. Not all systems have dirname.
13444 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13445 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13446 # The file is in a subdirectory.
13447 test ! -d "$ac_dir" && mkdir "$ac_dir"
13448 fi
13449 rm -f $ac_file
13450 mv conftest.h $ac_file
13451 fi
13452 fi; done
13453
13454 EOF
13455 cat >> $CONFIG_STATUS <<EOF
13456
13457 TOOLKIT_DIR="${TOOLKIT_DIR}"
13458
13459
13460 EOF
13461 cat >> $CONFIG_STATUS <<\EOF
13462
13463 chmod +x wx-config
13464 if test ! -d include; then
13465 mkdir include
13466 fi
13467 if test ! -d include/wx; then
13468 mkdir include/wx
13469 fi
13470 if test ! -d include/wx/${TOOLKIT_DIR}; then
13471 mkdir include/wx/${TOOLKIT_DIR}
13472 fi
13473 if test -f setup.h; then
13474 mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
13475 fi
13476
13477 exit 0
13478 EOF
13479 chmod +x $CONFIG_STATUS
13480 rm -fr confdefs* $ac_clean_files
13481 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
13482
13483 if test "$no_recursion" != yes; then
13484
13485 # Remove --cache-file and --srcdir arguments so they do not pile up.
13486 ac_sub_configure_args=
13487 ac_prev=
13488 for ac_arg in $ac_configure_args; do
13489 if test -n "$ac_prev"; then
13490 ac_prev=
13491 continue
13492 fi
13493 case "$ac_arg" in
13494 -cache-file | --cache-file | --cache-fil | --cache-fi \
13495 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
13496 ac_prev=cache_file ;;
13497 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
13498 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
13499 ;;
13500 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
13501 ac_prev=srcdir ;;
13502 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13503 ;;
13504 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
13505 esac
13506 done
13507
13508 for ac_config_dir in demos samples utils; do
13509
13510 # Do not complain, so a configure script can configure whichever
13511 # parts of a large source tree are present.
13512 if test ! -d $srcdir/$ac_config_dir; then
13513 continue
13514 fi
13515
13516 echo configuring in $ac_config_dir
13517
13518 case "$srcdir" in
13519 .) ;;
13520 *)
13521 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
13522 else
13523 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
13524 fi
13525 ;;
13526 esac
13527
13528 ac_popdir=`pwd`
13529 cd $ac_config_dir
13530
13531 # A "../" for each directory in /$ac_config_dir.
13532 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
13533
13534 case "$srcdir" in
13535 .) # No --srcdir option. We are building in place.
13536 ac_sub_srcdir=$srcdir ;;
13537 /*) # Absolute path.
13538 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
13539 *) # Relative path.
13540 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
13541 esac
13542
13543 # Check for guested configure; otherwise get Cygnus style configure.
13544 if test -f $ac_sub_srcdir/configure; then
13545 ac_sub_configure=$ac_sub_srcdir/configure
13546 elif test -f $ac_sub_srcdir/configure.in; then
13547 ac_sub_configure=$ac_configure
13548 else
13549 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
13550 ac_sub_configure=
13551 fi
13552
13553 # The recursion is here.
13554 if test -n "$ac_sub_configure"; then
13555
13556 # Make the cache file name correct relative to the subdirectory.
13557 case "$cache_file" in
13558 /*) ac_sub_cache_file=$cache_file ;;
13559 *) # Relative path.
13560 ac_sub_cache_file="$ac_dots$cache_file" ;;
13561 esac
13562 case "$ac_given_INSTALL" in
13563 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13564 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13565 esac
13566
13567 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
13568 # The eval makes quoting arguments work.
13569 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
13570 then :
13571 else
13572 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
13573 fi
13574 fi
13575
13576 cd $ac_popdir
13577 done
13578 fi
13579
13580