]> git.saurik.com Git - wxWidgets.git/blob - configure
cf6e60acb065d964770eec733e4834672ff2532d
[wxWidgets.git] / configure
1 #! /bin/sh
2
3 # From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42 # Configure paths for GTK+
43 # Owen Taylor 97-11-3
44
45
46 # Guess values for system-dependent variables and create Makefiles.
47 # Generated automatically using autoconf version 2.13
48 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
49 #
50 # This configure script is free software; the Free Software Foundation
51 # gives unlimited permission to copy, distribute and modify it.
52
53 # Defaults:
54 ac_help=
55 ac_default_prefix=/usr/local
56 # Any additions from configure.in:
57 ac_help="$ac_help
58 --enable-gui use GUI classes"
59 ac_help="$ac_help
60 --with-gtk use GTK+"
61 ac_help="$ac_help
62 --with-motif use Motif/Lesstif"
63 ac_help="$ac_help
64 --with-mac use Mac OS X"
65 ac_help="$ac_help
66 --with-wine use WINE"
67 ac_help="$ac_help
68 --with-cygwin use Cygwin for MS-Windows"
69 ac_help="$ac_help
70 --with-mingw use GCC Minimal MS-Windows"
71 ac_help="$ac_help
72 --with-pm use OS/2 Presentation Manager"
73 ac_help="$ac_help
74 --with-gtk-prefix=PFX Prefix where GTK is installed"
75 ac_help="$ac_help
76 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
77 ac_help="$ac_help
78 --with-libpng use libpng (PNG image format)"
79 ac_help="$ac_help
80 --with-libjpeg use libjpeg (JPEG file format)"
81 ac_help="$ac_help
82 --with-libtiff use libtiff (TIFF file format)"
83 ac_help="$ac_help
84 --with-freetype use freetype (font rasterizer)"
85 ac_help="$ac_help
86 --with-opengl use OpenGL (or Mesa)"
87 ac_help="$ac_help
88 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
89 ac_help="$ac_help
90 --with-zlib use zlib for LZW compression"
91 ac_help="$ac_help
92 --with-odbc use the IODBC and wxODBC classes"
93 ac_help="$ac_help
94 --enable-shared create shared library code"
95 ac_help="$ac_help
96 --enable-burnt_name create set name in shared library "
97 ac_help="$ac_help
98 --enable-optimise create optimised code"
99 ac_help="$ac_help
100 --enable-debug same as debug_flag and debug_info"
101 ac_help="$ac_help
102 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
103 ac_help="$ac_help
104 --enable-debug_info create code with debugging information"
105 ac_help="$ac_help
106 --enable-debug_gdb create code with extra GDB debugging information"
107 ac_help="$ac_help
108 --enable-debug_cntxt use wxDebugContext"
109 ac_help="$ac_help
110 --enable-mem_tracing create code with memory tracing"
111 ac_help="$ac_help
112 --enable-profile create code with profiling information"
113 ac_help="$ac_help
114 --enable-no_rtti create code without RTTI information"
115 ac_help="$ac_help
116 --enable-no_exceptions create code without exceptions information"
117 ac_help="$ac_help
118 --enable-permissive compile code disregarding strict ANSI"
119 ac_help="$ac_help
120 --enable-no_deps create code without dependency information"
121 ac_help="$ac_help
122 --enable-intl use internationalization system"
123 ac_help="$ac_help
124 --enable-config use wxConfig (and derived) classes"
125 ac_help="$ac_help
126 --enable-sockets use socket/network classes"
127 ac_help="$ac_help
128 --enable-ipc use interprocess communication (wxSocket etc.)"
129 ac_help="$ac_help
130 --enable-dialupman use dialup network classes"
131 ac_help="$ac_help
132 --enable-apple_ieee use the Apple IEEE codec"
133 ac_help="$ac_help
134 --enable-timedate use date/time classes"
135 ac_help="$ac_help
136 --enable-wave use wxWave class"
137 ac_help="$ac_help
138 --enable-fraction use wxFraction class"
139 ac_help="$ac_help
140 --enable-dynlib use wxLibrary class for DLL loading"
141 ac_help="$ac_help
142 --enable-longlong use wxLongLong class"
143 ac_help="$ac_help
144 --enable-geometry use geometry class"
145 ac_help="$ac_help
146 --enable-log use logging system"
147 ac_help="$ac_help
148 --enable-streams use wxStream etc classes"
149 ac_help="$ac_help
150 --enable-file use wxFile classes"
151 ac_help="$ac_help
152 --enable-textfile use wxTextFile classes"
153 ac_help="$ac_help
154 --enable-unicode compile wxString with Unicode support"
155 ac_help="$ac_help
156 --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
157 ac_help="$ac_help
158 --enable-wxprintfv use wxWindows implementation of vprintf()"
159 ac_help="$ac_help
160 --enable-std_iostreams use standard C++ stream classes"
161 ac_help="$ac_help
162 --enable-filesystem use virtual file systems classes"
163 ac_help="$ac_help
164 --enable-fs_inet use virtual HTTP/FTP filesystems"
165 ac_help="$ac_help
166 --enable-fs_zip use virtual ZIP filesystems"
167 ac_help="$ac_help
168 --enable-zipstream use wxZipInputStream"
169 ac_help="$ac_help
170 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
171 ac_help="$ac_help
172 --enable-threads use threads"
173 ac_help="$ac_help
174 --enable-serial use class serialization"
175 ac_help="$ac_help
176 --enable-docview use document view architecture"
177 ac_help="$ac_help
178 --enable-help use help (using external browser at present)"
179 ac_help="$ac_help
180 --enable-constraints use layout-constraints system"
181 ac_help="$ac_help
182 --enable-printarch use printing architecture"
183 ac_help="$ac_help
184 --enable-mdi use multiple document interface architecture"
185 ac_help="$ac_help
186 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
187 ac_help="$ac_help
188 --enable-prologio use Prolog IO library"
189 ac_help="$ac_help
190 --enable-resources use wxWindows resources"
191 ac_help="$ac_help
192 --enable-xresources use X resources for save (default for gtk+)"
193 ac_help="$ac_help
194 --enable-clipboard use wxClipboard classes"
195 ac_help="$ac_help
196 --enable-dnd use Drag'n'Drop classes"
197 ac_help="$ac_help
198 --enable-metafile use win32 metafiles"
199 ac_help="$ac_help
200 --enable-wxtree make wxTree library"
201 ac_help="$ac_help
202 --enable-controls use all usual controls"
203 ac_help="$ac_help
204 --enable-accel use accelerators"
205 ac_help="$ac_help
206 --enable-caret use wxCaret class"
207 ac_help="$ac_help
208 --enable-bmpbutton use wxBitmapButton class"
209 ac_help="$ac_help
210 --enable-checkbox use wxCheckBox class"
211 ac_help="$ac_help
212 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
213 ac_help="$ac_help
214 --enable-choice use wxChoice class"
215 ac_help="$ac_help
216 --enable-combobox use wxComboBox classes"
217 ac_help="$ac_help
218 --enable-gauge use wxGauge class"
219 ac_help="$ac_help
220 --enable-grid use wxGrid class"
221 ac_help="$ac_help
222 --enable-newgrid use new wxGrid class"
223 ac_help="$ac_help
224 --enable-imaglist use wxImageList class"
225 ac_help="$ac_help
226 --enable-listbox use wxListBox class"
227 ac_help="$ac_help
228 --enable-listctrl use wxListCtrl class"
229 ac_help="$ac_help
230 --enable-notebook use wxNotebook class"
231 ac_help="$ac_help
232 --enable-radiobox use wxRadioBox class"
233 ac_help="$ac_help
234 --enable-radiobtn use wxRadioButton class"
235 ac_help="$ac_help
236 --enable-sash use wxSashWindow class"
237 ac_help="$ac_help
238 --enable-scrollbar use wxScrollBar class and scrollable windows"
239 ac_help="$ac_help
240 --enable-slider use wxSlider class"
241 ac_help="$ac_help
242 --enable-spinbtn use wxSpinButton class"
243 ac_help="$ac_help
244 --enable-spinctrl use wxSpinCtrl class"
245 ac_help="$ac_help
246 --enable-splitter use wxSplitterWindow class"
247 ac_help="$ac_help
248 --enable-statbmp use wxStaticBitmap class"
249 ac_help="$ac_help
250 --enable-statbox use wxStaticBox class"
251 ac_help="$ac_help
252 --enable-statline use wxStaticLine class"
253 ac_help="$ac_help
254 --enable-statusbar use wxStatusBar class"
255 ac_help="$ac_help
256 --enable-tabdialog use wxTabControl class"
257 ac_help="$ac_help
258 --enable-togglebtn use wxToggleButton class"
259 ac_help="$ac_help
260 --enable-toolbar use wxToolBar class"
261 ac_help="$ac_help
262 --enable-tbarnative use native wxToolBar class"
263 ac_help="$ac_help
264 --enable-tbarsmpl use wxToolBarSimple class"
265 ac_help="$ac_help
266 --enable-treectrl use wxTreeCtrl class"
267 ac_help="$ac_help
268 --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
269 ac_help="$ac_help
270 --enable-dirdlg use wxDirDialog"
271 ac_help="$ac_help
272 --enable-textdlg use wxTextDialog"
273 ac_help="$ac_help
274 --enable-tipdlg use startup tips"
275 ac_help="$ac_help
276 --enable-progressdlg use wxProgressDialog"
277 ac_help="$ac_help
278 --enable-miniframe use wxMiniFrame class"
279 ac_help="$ac_help
280 --enable-html use wxHTML sub-library"
281 ac_help="$ac_help
282 --enable-tooltips use wxToolTip class"
283 ac_help="$ac_help
284 --enable-splines use spline drawing code"
285 ac_help="$ac_help
286 --enable-validators use wxValidator and derived classes"
287 ac_help="$ac_help
288 --enable-busyinfo use wxBusyInfo"
289 ac_help="$ac_help
290 --enable-joystick compile in joystick support (Linux only)"
291 ac_help="$ac_help
292 --enable-image use wxImage class"
293 ac_help="$ac_help
294 --enable-gif use gif images (GIF file format)"
295 ac_help="$ac_help
296 --enable-pcx use pcx images (PCX file format)"
297 ac_help="$ac_help
298 --enable-pnm use pnm images (PNM file format)"
299 ac_help="$ac_help
300 --enable-xpm use xpm images (XPM file format)"
301 ac_help="$ac_help
302 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
303 ac_help="$ac_help
304 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
305 ac_help="$ac_help
306 --disable-gtktest Do not try to compile and run a test GTK program"
307 ac_help="$ac_help
308 --with-x use the X Window System"
309
310 # Initialize some variables set by options.
311 # The variables have the same names as the options, with
312 # dashes changed to underlines.
313 build=NONE
314 cache_file=./config.cache
315 exec_prefix=NONE
316 host=NONE
317 no_create=
318 nonopt=NONE
319 no_recursion=
320 prefix=NONE
321 program_prefix=NONE
322 program_suffix=NONE
323 program_transform_name=s,x,x,
324 silent=
325 site=
326 srcdir=
327 target=NONE
328 verbose=
329 x_includes=NONE
330 x_libraries=NONE
331 bindir='${exec_prefix}/bin'
332 sbindir='${exec_prefix}/sbin'
333 libexecdir='${exec_prefix}/libexec'
334 datadir='${prefix}/share'
335 sysconfdir='${prefix}/etc'
336 sharedstatedir='${prefix}/com'
337 localstatedir='${prefix}/var'
338 libdir='${exec_prefix}/lib'
339 includedir='${prefix}/include'
340 oldincludedir='/usr/include'
341 infodir='${prefix}/info'
342 mandir='${prefix}/man'
343
344 # Initialize some other variables.
345 subdirs=
346 MFLAGS= MAKEFLAGS=
347 SHELL=${CONFIG_SHELL-/bin/sh}
348 # Maximum number of lines to put in a shell here document.
349 ac_max_here_lines=12
350
351 ac_prev=
352 for ac_option
353 do
354
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
360 fi
361
362 case "$ac_option" in
363 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
364 *) ac_optarg= ;;
365 esac
366
367 # Accept the important Cygnus configure options, so we can diagnose typos.
368
369 case "$ac_option" in
370
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir="$ac_optarg" ;;
375
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build="$ac_optarg" ;;
380
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file="$ac_optarg" ;;
387
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
392 datadir="$ac_optarg" ;;
393
394 -disable-* | --disable-*)
395 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
396 # Reject names that are not valid shell variable names.
397 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
398 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
399 fi
400 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
401 eval "enable_${ac_feature}=no" ;;
402
403 -enable-* | --enable-*)
404 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
405 # Reject names that are not valid shell variable names.
406 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
407 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
408 fi
409 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
410 case "$ac_option" in
411 *=*) ;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_${ac_feature}='$ac_optarg'" ;;
415
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix="$ac_optarg" ;;
424
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
428
429 -help | --help | --hel | --he)
430 # Omit some internal or obsolete options to make the list less imposing.
431 # This message is too long to be a string in the A/UX 3.1 sh.
432 cat << EOF
433 Usage: configure [options] [host]
434 Options: [defaults in brackets after descriptions]
435 Configuration:
436 --cache-file=FILE cache test results in FILE
437 --help print this message
438 --no-create do not create output files
439 --quiet, --silent do not print \`checking...' messages
440 --version print the version of autoconf that created configure
441 Directory and file names:
442 --prefix=PREFIX install architecture-independent files in PREFIX
443 [$ac_default_prefix]
444 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
445 [same as prefix]
446 --bindir=DIR user executables in DIR [EPREFIX/bin]
447 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
448 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
449 --datadir=DIR read-only architecture-independent data in DIR
450 [PREFIX/share]
451 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
452 --sharedstatedir=DIR modifiable architecture-independent data in DIR
453 [PREFIX/com]
454 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
455 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
456 --includedir=DIR C header files in DIR [PREFIX/include]
457 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
458 --infodir=DIR info documentation in DIR [PREFIX/info]
459 --mandir=DIR man documentation in DIR [PREFIX/man]
460 --srcdir=DIR find the sources in DIR [configure dir or ..]
461 --program-prefix=PREFIX prepend PREFIX to installed program names
462 --program-suffix=SUFFIX append SUFFIX to installed program names
463 --program-transform-name=PROGRAM
464 run sed PROGRAM on installed program names
465 EOF
466 cat << EOF
467 Host type:
468 --build=BUILD configure for building on BUILD [BUILD=HOST]
469 --host=HOST configure for HOST [guessed]
470 --target=TARGET configure for TARGET [TARGET=HOST]
471 Features and packages:
472 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
473 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
474 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
475 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
476 --x-includes=DIR X include files are in DIR
477 --x-libraries=DIR X library files are in DIR
478 EOF
479 if test -n "$ac_help"; then
480 echo "--enable and --with options recognized:$ac_help"
481 fi
482 exit 0 ;;
483
484 -host | --host | --hos | --ho)
485 ac_prev=host ;;
486 -host=* | --host=* | --hos=* | --ho=*)
487 host="$ac_optarg" ;;
488
489 -includedir | --includedir | --includedi | --included | --include \
490 | --includ | --inclu | --incl | --inc)
491 ac_prev=includedir ;;
492 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
493 | --includ=* | --inclu=* | --incl=* | --inc=*)
494 includedir="$ac_optarg" ;;
495
496 -infodir | --infodir | --infodi | --infod | --info | --inf)
497 ac_prev=infodir ;;
498 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
499 infodir="$ac_optarg" ;;
500
501 -libdir | --libdir | --libdi | --libd)
502 ac_prev=libdir ;;
503 -libdir=* | --libdir=* | --libdi=* | --libd=*)
504 libdir="$ac_optarg" ;;
505
506 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
507 | --libexe | --libex | --libe)
508 ac_prev=libexecdir ;;
509 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
510 | --libexe=* | --libex=* | --libe=*)
511 libexecdir="$ac_optarg" ;;
512
513 -localstatedir | --localstatedir | --localstatedi | --localstated \
514 | --localstate | --localstat | --localsta | --localst \
515 | --locals | --local | --loca | --loc | --lo)
516 ac_prev=localstatedir ;;
517 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
518 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
519 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
520 localstatedir="$ac_optarg" ;;
521
522 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
523 ac_prev=mandir ;;
524 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
525 mandir="$ac_optarg" ;;
526
527 -nfp | --nfp | --nf)
528 # Obsolete; use --without-fp.
529 with_fp=no ;;
530
531 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
532 | --no-cr | --no-c)
533 no_create=yes ;;
534
535 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
536 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
537 no_recursion=yes ;;
538
539 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
540 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
541 | --oldin | --oldi | --old | --ol | --o)
542 ac_prev=oldincludedir ;;
543 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
544 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
545 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
546 oldincludedir="$ac_optarg" ;;
547
548 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
549 ac_prev=prefix ;;
550 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
551 prefix="$ac_optarg" ;;
552
553 -program-prefix | --program-prefix | --program-prefi | --program-pref \
554 | --program-pre | --program-pr | --program-p)
555 ac_prev=program_prefix ;;
556 -program-prefix=* | --program-prefix=* | --program-prefi=* \
557 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
558 program_prefix="$ac_optarg" ;;
559
560 -program-suffix | --program-suffix | --program-suffi | --program-suff \
561 | --program-suf | --program-su | --program-s)
562 ac_prev=program_suffix ;;
563 -program-suffix=* | --program-suffix=* | --program-suffi=* \
564 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
565 program_suffix="$ac_optarg" ;;
566
567 -program-transform-name | --program-transform-name \
568 | --program-transform-nam | --program-transform-na \
569 | --program-transform-n | --program-transform- \
570 | --program-transform | --program-transfor \
571 | --program-transfo | --program-transf \
572 | --program-trans | --program-tran \
573 | --progr-tra | --program-tr | --program-t)
574 ac_prev=program_transform_name ;;
575 -program-transform-name=* | --program-transform-name=* \
576 | --program-transform-nam=* | --program-transform-na=* \
577 | --program-transform-n=* | --program-transform-=* \
578 | --program-transform=* | --program-transfor=* \
579 | --program-transfo=* | --program-transf=* \
580 | --program-trans=* | --program-tran=* \
581 | --progr-tra=* | --program-tr=* | --program-t=*)
582 program_transform_name="$ac_optarg" ;;
583
584 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
585 | -silent | --silent | --silen | --sile | --sil)
586 silent=yes ;;
587
588 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
589 ac_prev=sbindir ;;
590 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
591 | --sbi=* | --sb=*)
592 sbindir="$ac_optarg" ;;
593
594 -sharedstatedir | --sharedstatedir | --sharedstatedi \
595 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
596 | --sharedst | --shareds | --shared | --share | --shar \
597 | --sha | --sh)
598 ac_prev=sharedstatedir ;;
599 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
600 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
601 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
602 | --sha=* | --sh=*)
603 sharedstatedir="$ac_optarg" ;;
604
605 -site | --site | --sit)
606 ac_prev=site ;;
607 -site=* | --site=* | --sit=*)
608 site="$ac_optarg" ;;
609
610 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
611 ac_prev=srcdir ;;
612 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
613 srcdir="$ac_optarg" ;;
614
615 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
616 | --syscon | --sysco | --sysc | --sys | --sy)
617 ac_prev=sysconfdir ;;
618 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
619 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
620 sysconfdir="$ac_optarg" ;;
621
622 -target | --target | --targe | --targ | --tar | --ta | --t)
623 ac_prev=target ;;
624 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
625 target="$ac_optarg" ;;
626
627 -v | -verbose | --verbose | --verbos | --verbo | --verb)
628 verbose=yes ;;
629
630 -version | --version | --versio | --versi | --vers)
631 echo "configure generated by autoconf version 2.13"
632 exit 0 ;;
633
634 -with-* | --with-*)
635 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
636 # Reject names that are not valid shell variable names.
637 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
638 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
639 fi
640 ac_package=`echo $ac_package| sed 's/-/_/g'`
641 case "$ac_option" in
642 *=*) ;;
643 *) ac_optarg=yes ;;
644 esac
645 eval "with_${ac_package}='$ac_optarg'" ;;
646
647 -without-* | --without-*)
648 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
649 # Reject names that are not valid shell variable names.
650 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
651 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
652 fi
653 ac_package=`echo $ac_package| sed 's/-/_/g'`
654 eval "with_${ac_package}=no" ;;
655
656 --x)
657 # Obsolete; use --with-x.
658 with_x=yes ;;
659
660 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
661 | --x-incl | --x-inc | --x-in | --x-i)
662 ac_prev=x_includes ;;
663 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
664 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
665 x_includes="$ac_optarg" ;;
666
667 -x-libraries | --x-libraries | --x-librarie | --x-librari \
668 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
669 ac_prev=x_libraries ;;
670 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
671 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
672 x_libraries="$ac_optarg" ;;
673
674 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
675 ;;
676
677 *)
678 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
679 echo "configure: warning: $ac_option: invalid host type" 1>&2
680 fi
681 if test "x$nonopt" != xNONE; then
682 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
683 fi
684 nonopt="$ac_option"
685 ;;
686
687 esac
688 done
689
690 if test -n "$ac_prev"; then
691 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
692 fi
693
694 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
695
696 # File descriptor usage:
697 # 0 standard input
698 # 1 file creation
699 # 2 errors and warnings
700 # 3 some systems may open it to /dev/tty
701 # 4 used on the Kubota Titan
702 # 6 checking for... messages and results
703 # 5 compiler messages saved in config.log
704 if test "$silent" = yes; then
705 exec 6>/dev/null
706 else
707 exec 6>&1
708 fi
709 exec 5>./config.log
710
711 echo "\
712 This file contains any messages produced by compilers while
713 running configure, to aid debugging if configure makes a mistake.
714 " 1>&5
715
716 # Strip out --no-create and --no-recursion so they do not pile up.
717 # Also quote any args containing shell metacharacters.
718 ac_configure_args=
719 for ac_arg
720 do
721 case "$ac_arg" in
722 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
723 | --no-cr | --no-c) ;;
724 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
725 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
726 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
727 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
728 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
729 esac
730 done
731
732 # NLS nuisances.
733 # Only set these to C if already set. These must not be set unconditionally
734 # because not all systems understand e.g. LANG=C (notably SCO).
735 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
736 # Non-C LC_CTYPE values break the ctype check.
737 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
738 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
739 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
740 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
741
742 # confdefs.h avoids OS command line length limits that DEFS can exceed.
743 rm -rf conftest* confdefs.h
744 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
745 echo > confdefs.h
746
747 # A filename unique to this package, relative to the directory that
748 # configure is in, which we can look for to find out if srcdir is correct.
749 ac_unique_file=wx-config.in
750
751 # Find the source files, if location was not specified.
752 if test -z "$srcdir"; then
753 ac_srcdir_defaulted=yes
754 # Try the directory containing this script, then its parent.
755 ac_prog=$0
756 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
757 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
758 srcdir=$ac_confdir
759 if test ! -r $srcdir/$ac_unique_file; then
760 srcdir=..
761 fi
762 else
763 ac_srcdir_defaulted=no
764 fi
765 if test ! -r $srcdir/$ac_unique_file; then
766 if test "$ac_srcdir_defaulted" = yes; then
767 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
768 else
769 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
770 fi
771 fi
772 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
773
774 # Prefer explicitly selected file to automatically selected ones.
775 if test -z "$CONFIG_SITE"; then
776 if test "x$prefix" != xNONE; then
777 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
778 else
779 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
780 fi
781 fi
782 for ac_site_file in $CONFIG_SITE; do
783 if test -r "$ac_site_file"; then
784 echo "loading site script $ac_site_file"
785 . "$ac_site_file"
786 fi
787 done
788
789 if test -r "$cache_file"; then
790 echo "loading cache $cache_file"
791 . $cache_file
792 else
793 echo "creating cache $cache_file"
794 > $cache_file
795 fi
796
797 ac_ext=c
798 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
799 ac_cpp='$CPP $CPPFLAGS'
800 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
801 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
802 cross_compiling=$ac_cv_prog_cc_cross
803
804 ac_exeext=
805 ac_objext=o
806 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
807 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
808 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
809 ac_n= ac_c='
810 ' ac_t=' '
811 else
812 ac_n=-n ac_c= ac_t=
813 fi
814 else
815 ac_n= ac_c='\c' ac_t=
816 fi
817
818
819
820 ac_aux_dir=
821 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
822 if test -f $ac_dir/install-sh; then
823 ac_aux_dir=$ac_dir
824 ac_install_sh="$ac_aux_dir/install-sh -c"
825 break
826 elif test -f $ac_dir/install.sh; then
827 ac_aux_dir=$ac_dir
828 ac_install_sh="$ac_aux_dir/install.sh -c"
829 break
830 fi
831 done
832 if test -z "$ac_aux_dir"; then
833 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
834 fi
835 ac_config_guess=$ac_aux_dir/config.guess
836 ac_config_sub=$ac_aux_dir/config.sub
837 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
838
839
840 # Do some error checking and defaulting for the host and target type.
841 # The inputs are:
842 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
843 #
844 # The rules are:
845 # 1. You are not allowed to specify --host, --target, and nonopt at the
846 # same time.
847 # 2. Host defaults to nonopt.
848 # 3. If nonopt is not specified, then host defaults to the current host,
849 # as determined by config.guess.
850 # 4. Target and build default to nonopt.
851 # 5. If nonopt is not specified, then target and build default to host.
852
853 # The aliases save the names the user supplied, while $host etc.
854 # will get canonicalized.
855 case $host---$target---$nonopt in
856 NONE---*---* | *---NONE---* | *---*---NONE) ;;
857 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
858 esac
859
860
861 # Make sure we can run config.sub.
862 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
863 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
864 fi
865
866 echo $ac_n "checking host system type""... $ac_c" 1>&6
867 echo "configure:868: checking host system type" >&5
868
869 host_alias=$host
870 case "$host_alias" in
871 NONE)
872 case $nonopt in
873 NONE)
874 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
875 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
876 fi ;;
877 *) host_alias=$nonopt ;;
878 esac ;;
879 esac
880
881 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
882 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
883 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
884 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
885 echo "$ac_t""$host" 1>&6
886
887 echo $ac_n "checking target system type""... $ac_c" 1>&6
888 echo "configure:889: checking target system type" >&5
889
890 target_alias=$target
891 case "$target_alias" in
892 NONE)
893 case $nonopt in
894 NONE) target_alias=$host_alias ;;
895 *) target_alias=$nonopt ;;
896 esac ;;
897 esac
898
899 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
900 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
901 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
902 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
903 echo "$ac_t""$target" 1>&6
904
905 echo $ac_n "checking build system type""... $ac_c" 1>&6
906 echo "configure:907: checking build system type" >&5
907
908 build_alias=$build
909 case "$build_alias" in
910 NONE)
911 case $nonopt in
912 NONE) build_alias=$host_alias ;;
913 *) build_alias=$nonopt ;;
914 esac ;;
915 esac
916
917 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
918 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
919 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
920 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
921 echo "$ac_t""$build" 1>&6
922
923 test "$host_alias" != "$target_alias" &&
924 test "$program_prefix$program_suffix$program_transform_name" = \
925 NONENONEs,x,x, &&
926 program_prefix=${target_alias}-
927
928
929
930 WX_MAJOR_VERSION_NUMBER=2
931 WX_MINOR_VERSION_NUMBER=3
932 WX_RELEASE_NUMBER=0
933
934 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
935 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
936
937 WX_CURRENT=0
938 WX_REVISION=0
939 WX_AGE=0
940
941
942
943 USE_UNIX=1
944 USE_WIN32=0
945 USE_BEOS=0
946
947 USE_LINUX=
948 USE_SGI=
949 USE_HPUX=
950 USE_SYSV=
951 USE_SVR4=
952 USE_AIX=
953 USE_SUN=
954 USE_SOLARIS=
955 USE_SUNOS=
956 USE_ALPHA=
957 USE_OSF=
958 USE_BSD=
959 USE_FREEBSD=
960 USE_NETBSD=
961 USE_VMS=
962 USE_ULTRIX=
963 USE_CYGWIN=
964 USE_MINGW=
965 USE_DATA_GENERAL=
966
967 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
968
969 ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF MAC WINE PM"
970
971 DEFAULT_wxUSE_GTK=0
972 DEFAULT_wxUSE_MOTIF=0
973 DEFAULT_wxUSE_MSW=0
974 DEFAULT_wxUSE_MAC=0
975 DEFAULT_wxUSE_WINE=0
976 DEFAULT_wxUSE_PM=0
977
978 DEFAULT_DEFAULT_wxUSE_GTK=0
979 DEFAULT_DEFAULT_wxUSE_MOTIF=0
980 DEFAULT_DEFAULT_wxUSE_MSW=0
981 DEFAULT_DEFAULT_wxUSE_MAC=0
982 DEFAULT_DEFAULT_wxUSE_WINE=0
983 DEFAULT_DEFAULT_wxUSE_PM=0
984
985 PROGRAM_EXT=
986
987 case "${host}" in
988 *-hp-hpux* )
989 USE_HPUX=1
990 DEFAULT_DEFAULT_wxUSE_MOTIF=1
991 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
992 cat >> confdefs.h <<\EOF
993 #define __HPUX__ 1
994 EOF
995
996 ;;
997 *-*-linux* )
998 USE_LINUX=1
999 cat >> confdefs.h <<\EOF
1000 #define __LINUX__ 1
1001 EOF
1002
1003 TMP=`uname -m`
1004 if test "x$TMP" = "xalpha"; then
1005 USE_ALPHA=1
1006 cat >> confdefs.h <<\EOF
1007 #define __ALPHA__ 1
1008 EOF
1009
1010 fi
1011 DEFAULT_DEFAULT_wxUSE_GTK=1
1012 ;;
1013 *-*-irix5* | *-*-irix6* )
1014 USE_SGI=1
1015 USE_SVR4=1
1016 cat >> confdefs.h <<\EOF
1017 #define __SGI__ 1
1018 EOF
1019
1020 cat >> confdefs.h <<\EOF
1021 #define __SVR4__ 1
1022 EOF
1023
1024 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1025 ;;
1026 *-*-solaris2* )
1027 USE_SUN=1
1028 USE_SOLARIS=1
1029 USE_SVR4=1
1030 cat >> confdefs.h <<\EOF
1031 #define __SUN__ 1
1032 EOF
1033
1034 cat >> confdefs.h <<\EOF
1035 #define __SOLARIS__ 1
1036 EOF
1037
1038 cat >> confdefs.h <<\EOF
1039 #define __SVR4__ 1
1040 EOF
1041
1042 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1043 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1044 ;;
1045 *-*-sunos4* )
1046 USE_SUN=1
1047 USE_SUNOS=1
1048 USE_BSD=1
1049 cat >> confdefs.h <<\EOF
1050 #define __SUN__ 1
1051 EOF
1052
1053 cat >> confdefs.h <<\EOF
1054 #define __SUNOS__ 1
1055 EOF
1056
1057 cat >> confdefs.h <<\EOF
1058 #define __BSD__ 1
1059 EOF
1060
1061 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1062 ;;
1063 *-*-freebsd*)
1064 USE_BSD=1
1065 USE_FREEBSD=1
1066 cat >> confdefs.h <<\EOF
1067 #define __FREEBSD__ 1
1068 EOF
1069
1070 cat >> confdefs.h <<\EOF
1071 #define __BSD__ 1
1072 EOF
1073
1074 DEFAULT_DEFAULT_wxUSE_GTK=1
1075 ;;
1076 *-*-netbsd*)
1077 USE_BSD=1
1078 USE_NETBSD=1
1079 cat >> confdefs.h <<\EOF
1080 #define __FREEBSD__ 1
1081 EOF
1082
1083 cat >> confdefs.h <<\EOF
1084 #define __NETBSD__ 1
1085 EOF
1086
1087 DEFAULT_DEFAULT_wxUSE_GTK=1
1088 ;;
1089 *-*-osf* )
1090 USE_ALPHA=1
1091 USE_OSF=1
1092 cat >> confdefs.h <<\EOF
1093 #define __ALPHA__ 1
1094 EOF
1095
1096 cat >> confdefs.h <<\EOF
1097 #define __OSF__ 1
1098 EOF
1099
1100 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1101 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1102 ;;
1103 *-*-dgux5* )
1104 USE_ALPHA=1
1105 USE_SVR4=1
1106 cat >> confdefs.h <<\EOF
1107 #define __ALPHA__ 1
1108 EOF
1109
1110 cat >> confdefs.h <<\EOF
1111 #define __SVR4__ 1
1112 EOF
1113
1114 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1115 ;;
1116 *-*-sysv5* )
1117 USE_SYSV=1
1118 USE_SVR4=1
1119 cat >> confdefs.h <<\EOF
1120 #define __SYSV__ 1
1121 EOF
1122
1123 cat >> confdefs.h <<\EOF
1124 #define __SVR4__ 1
1125 EOF
1126
1127 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1128 ;;
1129 *-*-aix* )
1130 USE_AIX=1
1131 USE_SYSV=1
1132 USE_SVR4=1
1133 cat >> confdefs.h <<\EOF
1134 #define __AIX__ 1
1135 EOF
1136
1137 cat >> confdefs.h <<\EOF
1138 #define __SYSV__ 1
1139 EOF
1140
1141 cat >> confdefs.h <<\EOF
1142 #define __SVR4__ 1
1143 EOF
1144
1145 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1146 ;;
1147
1148 *-*-cygwin32* | *-*-mingw32* )
1149 USE_UNIX=0
1150 USE_WIN32=1
1151 cat >> confdefs.h <<\EOF
1152 #define __WIN32__ 1
1153 EOF
1154
1155 cat >> confdefs.h <<\EOF
1156 #define __WIN95__ 1
1157 EOF
1158
1159 cat >> confdefs.h <<\EOF
1160 #define __WINDOWS__ 1
1161 EOF
1162
1163 cat >> confdefs.h <<\EOF
1164 #define __GNUWIN32__ 1
1165 EOF
1166
1167 cat >> confdefs.h <<\EOF
1168 #define STRICT 1
1169 EOF
1170
1171 cat >> confdefs.h <<\EOF
1172 #define WINVER 0x0400
1173 EOF
1174
1175 PROGRAM_EXT=".exe"
1176 DEFAULT_DEFAULT_wxUSE_MSW=1
1177 ;;
1178
1179 *-pc-os2_emx )
1180 cat >> confdefs.h <<\EOF
1181 #define __EMX__ 1
1182 EOF
1183
1184 PROGRAM_EXT=".exe"
1185 DEFAULT_DEFAULT_wxUSE_PM=1
1186 ;;
1187
1188 *-*-darwin* )
1189 USE_BSD=1
1190 USE_MAC=1
1191 cat >> confdefs.h <<\EOF
1192 #define __MAC__ 1
1193 EOF
1194
1195 cat >> confdefs.h <<\EOF
1196 #define __BSD__ 1
1197 EOF
1198
1199 cat >> confdefs.h <<\EOF
1200 #define __UNIX__ 1
1201 EOF
1202
1203 DEFAULT_DEFAULT_wxUSE_MAC=1
1204 ;;
1205
1206 *-*-beos* )
1207 USE_BEOS=1
1208 cat >> confdefs.h <<\EOF
1209 #define __BEOS__ 1
1210 EOF
1211
1212 ;;
1213
1214 *)
1215 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1216 esac
1217
1218 if test "$USE_UNIX" = 1 ; then
1219 wxUSE_UNIX=yes
1220 cat >> confdefs.h <<\EOF
1221 #define __UNIX__ 1
1222 EOF
1223
1224
1225 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1226 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1227 fi
1228
1229 if test "$USE_BEOS" = 1; then
1230 SRC_SUBDIRS="$SRC_SUBDIRS be"
1231 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
1232 fi
1233
1234 if test "$USE_LINUX" = 1; then
1235 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
1236 echo "configure:1237: checking for gettext in -lc" >&5
1237 ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1238 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1239 echo $ac_n "(cached) $ac_c" 1>&6
1240 else
1241 ac_save_LIBS="$LIBS"
1242 LIBS="-lc $LIBS"
1243 cat > conftest.$ac_ext <<EOF
1244 #line 1245 "configure"
1245 #include "confdefs.h"
1246 /* Override any gcc2 internal prototype to avoid an error. */
1247 /* We use char because int might match the return type of a gcc2
1248 builtin and then its argument prototype would still apply. */
1249 char gettext();
1250
1251 int main() {
1252 gettext()
1253 ; return 0; }
1254 EOF
1255 if { (eval echo configure:1256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1256 rm -rf conftest*
1257 eval "ac_cv_lib_$ac_lib_var=yes"
1258 else
1259 echo "configure: failed program was:" >&5
1260 cat conftest.$ac_ext >&5
1261 rm -rf conftest*
1262 eval "ac_cv_lib_$ac_lib_var=no"
1263 fi
1264 rm -f conftest*
1265 LIBS="$ac_save_LIBS"
1266
1267 fi
1268 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1269 echo "$ac_t""yes" 1>&6
1270 cat >> confdefs.h <<\EOF
1271 #define wxHAVE_GLIBC2 1
1272 EOF
1273
1274 else
1275 echo "$ac_t""no" 1>&6
1276 fi
1277
1278 fi
1279
1280
1281
1282
1283 wx_arg_cache_file="configarg.cache"
1284 echo "loading argument cache $wx_arg_cache_file"
1285 rm -f ${wx_arg_cache_file}.tmp
1286 touch ${wx_arg_cache_file}.tmp
1287 touch ${wx_arg_cache_file}
1288
1289
1290 DEBUG_CONFIGURE=0
1291 if test $DEBUG_CONFIGURE = 1; then
1292 DEFAULT_wxUSE_THREADS=yes
1293
1294 DEFAULT_wxUSE_SHARED=yes
1295 DEFAULT_wxUSE_BURNT_NAME=no
1296 DEFAULT_wxUSE_OPTIMISE=yes
1297 DEFAULT_wxUSE_PROFILE=no
1298 DEFAULT_wxUSE_NO_DEPS=no
1299 DEFAULT_wxUSE_NO_RTTI=no
1300 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1301 DEFAULT_wxUSE_PERMISSIVE=no
1302 DEFAULT_wxUSE_DEBUG_FLAG=yes
1303 DEFAULT_wxUSE_DEBUG_INFO=yes
1304 DEFAULT_wxUSE_DEBUG_GDB=yes
1305 DEFAULT_wxUSE_MEM_TRACING=no
1306 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1307 DEFAULT_wxUSE_DMALLOC=no
1308 DEFAULT_wxUSE_APPLE_IEEE=no
1309
1310 DEFAULT_wxUSE_LOG=yes
1311
1312 DEFAULT_wxUSE_GUI=yes
1313
1314 DEFAULT_wxUSE_ZLIB=no
1315 DEFAULT_wxUSE_LIBPNG=no
1316 DEFAULT_wxUSE_LIBJPEG=no
1317 DEFAULT_wxUSE_LIBTIFF=no
1318 DEFAULT_wxUSE_ODBC=no
1319 DEFAULT_wxUSE_FREETYPE=no
1320 DEFAULT_wxUSE_OPENGL=no
1321
1322 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1323 DEFAULT_wxUSE_STD_IOSTREAM=no
1324 DEFAULT_wxUSE_FILE=no
1325 DEFAULT_wxUSE_TEXTFILE=no
1326 DEFAULT_wxUSE_TIMEDATE=no
1327 DEFAULT_wxUSE_WAVE=no
1328 DEFAULT_wxUSE_INTL=no
1329 DEFAULT_wxUSE_CONFIG=no
1330 DEFAULT_wxUSE_STREAMS=no
1331 DEFAULT_wxUSE_SOCKETS=no
1332 DEFAULT_wxUSE_DIALUP_MANAGER=no
1333 DEFAULT_wxUSE_SERIAL=no
1334 DEFAULT_wxUSE_JOYSTICK=no
1335 DEFAULT_wxUSE_DYNLIB_CLASS=no
1336 DEFAULT_wxUSE_LONGLONG=no
1337 DEFAULT_wxUSE_GEOMETRY=no
1338
1339 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1340 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1341 DEFAULT_wxUSE_POSTSCRIPT=no
1342
1343 DEFAULT_wxUSE_X_RESOURCES=no
1344 DEFAULT_wxUSE_CLIPBOARD=no
1345 DEFAULT_wxUSE_TOOLTIPS=no
1346 DEFAULT_wxUSE_DRAG_AND_DROP=no
1347 DEFAULT_wxUSE_SPLINES=no
1348
1349 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1350 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1351 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1352
1353 DEFAULT_wxUSE_PROLOGIO=no
1354 DEFAULT_wxUSE_RESOURCES=no
1355 DEFAULT_wxUSE_CONSTRAINTS=no
1356 DEFAULT_wxUSE_IPC=no
1357 DEFAULT_wxUSE_HELP=no
1358 DEFAULT_wxUSE_WXTREE=no
1359 DEFAULT_wxUSE_METAFILE=no
1360
1361 DEFAULT_wxUSE_COMMONDLGS=no
1362 DEFAULT_wxUSE_DIRDLG=no
1363 DEFAULT_wxUSE_TEXTDLG=no
1364 DEFAULT_wxUSE_STARTUP_TIPS=no
1365 DEFAULT_wxUSE_PROGRESSDLG=no
1366 DEFAULT_wxUSE_MINIFRAME=no
1367 DEFAULT_wxUSE_HTML=no
1368 DEFAULT_wxUSE_FILESYSTEM=no
1369 DEFAULT_wxUSE_FS_INET=no
1370 DEFAULT_wxUSE_FS_ZIP=no
1371 DEFAULT_wxUSE_BUSYINFO=no
1372 DEFAULT_wxUSE_ZIPSTREAM=no
1373 DEFAULT_wxUSE_VALIDATORS=yes
1374
1375 DEFAULT_wxUSE_ACCEL=no
1376 DEFAULT_wxUSE_CARET=no
1377 DEFAULT_wxUSE_BMPBUTTON=no
1378 DEFAULT_wxUSE_CHECKBOX=no
1379 DEFAULT_wxUSE_CHECKLST=no
1380 DEFAULT_wxUSE_CHOICE=yes
1381 DEFAULT_wxUSE_COMBOBOX=no
1382 DEFAULT_wxUSE_GAUGE=no
1383 DEFAULT_wxUSE_GRID=no
1384 DEFAULT_wxUSE_NEW_GRID=no
1385 DEFAULT_wxUSE_IMAGLIST=no
1386 DEFAULT_wxUSE_LISTBOX=no
1387 DEFAULT_wxUSE_LISTCTRL=no
1388 DEFAULT_wxUSE_NOTEBOOK=no
1389 DEFAULT_wxUSE_RADIOBOX=no
1390 DEFAULT_wxUSE_RADIOBTN=no
1391 DEFAULT_wxUSE_SASH=no
1392 DEFAULT_wxUSE_SCROLLBAR=no
1393 DEFAULT_wxUSE_SLIDER=no
1394 DEFAULT_wxUSE_SPINBTN=no
1395 DEFAULT_wxUSE_SPINCTRL=no
1396 DEFAULT_wxUSE_SPLITTER=no
1397 DEFAULT_wxUSE_STATBMP=no
1398 DEFAULT_wxUSE_STATBOX=no
1399 DEFAULT_wxUSE_STATLINE=no
1400 DEFAULT_wxUSE_STATUSBAR=yes
1401 DEFAULT_wxUSE_TABDIALOG=no
1402 DEFAULT_wxUSE_TOGGLEBTN=no
1403 DEFAULT_wxUSE_TOOLBAR=no
1404 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1405 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1406 DEFAULT_wxUSE_TREECTRL=no
1407
1408 DEFAULT_wxUSE_UNICODE=no
1409 DEFAULT_wxUSE_WCSRTOMBS=no
1410
1411 DEFAULT_wxUSE_IMAGE=no
1412 DEFAULT_wxUSE_GIF=no
1413 DEFAULT_wxUSE_PCX=no
1414 DEFAULT_wxUSE_PNM=no
1415 DEFAULT_wxUSE_XPM=no
1416 else
1417 DEFAULT_wxUSE_THREADS=yes
1418
1419 DEFAULT_wxUSE_SHARED=yes
1420 DEFAULT_wxUSE_BURNT_NAME=no
1421 DEFAULT_wxUSE_OPTIMISE=yes
1422 DEFAULT_wxUSE_PROFILE=no
1423 DEFAULT_wxUSE_NO_DEPS=no
1424 DEFAULT_wxUSE_NO_RTTI=no
1425 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1426 DEFAULT_wxUSE_PERMISSIVE=no
1427 DEFAULT_wxUSE_DEBUG_FLAG=no
1428 DEFAULT_wxUSE_DEBUG_INFO=no
1429 DEFAULT_wxUSE_DEBUG_GDB=no
1430 DEFAULT_wxUSE_MEM_TRACING=no
1431 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1432 DEFAULT_wxUSE_DMALLOC=no
1433 DEFAULT_wxUSE_APPLE_IEEE=yes
1434
1435 DEFAULT_wxUSE_LOG=yes
1436
1437 DEFAULT_wxUSE_GUI=yes
1438
1439 DEFAULT_wxUSE_ZLIB=yes
1440 DEFAULT_wxUSE_LIBPNG=yes
1441 DEFAULT_wxUSE_LIBJPEG=yes
1442 DEFAULT_wxUSE_LIBTIFF=yes
1443 DEFAULT_wxUSE_ODBC=no
1444 DEFAULT_wxUSE_FREETYPE=no
1445 DEFAULT_wxUSE_OPENGL=no
1446
1447 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1448 DEFAULT_wxUSE_STD_IOSTREAM=no
1449 DEFAULT_wxUSE_FILE=yes
1450 DEFAULT_wxUSE_TEXTFILE=yes
1451 DEFAULT_wxUSE_TIMEDATE=yes
1452 DEFAULT_wxUSE_WAVE=no
1453 DEFAULT_wxUSE_INTL=yes
1454 DEFAULT_wxUSE_CONFIG=yes
1455 DEFAULT_wxUSE_STREAMS=yes
1456 DEFAULT_wxUSE_SOCKETS=yes
1457 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1458 DEFAULT_wxUSE_SERIAL=yes
1459 DEFAULT_wxUSE_JOYSTICK=yes
1460 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1461 DEFAULT_wxUSE_LONGLONG=yes
1462 DEFAULT_wxUSE_GEOMETRY=yes
1463
1464 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1465 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1466 DEFAULT_wxUSE_POSTSCRIPT=yes
1467
1468 DEFAULT_wxUSE_X_RESOURCES=no
1469 DEFAULT_wxUSE_CLIPBOARD=yes
1470 DEFAULT_wxUSE_TOOLTIPS=yes
1471 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1472 DEFAULT_wxUSE_SPLINES=yes
1473
1474 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1475 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1476 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1477
1478 DEFAULT_wxUSE_PROLOGIO=yes
1479 DEFAULT_wxUSE_RESOURCES=yes
1480 DEFAULT_wxUSE_CONSTRAINTS=yes
1481 DEFAULT_wxUSE_IPC=yes
1482 DEFAULT_wxUSE_HELP=yes
1483 DEFAULT_wxUSE_WXTREE=yes
1484 DEFAULT_wxUSE_METAFILE=yes
1485
1486 DEFAULT_wxUSE_COMMONDLGS=yes
1487 DEFAULT_wxUSE_DIRDLG=yes
1488 DEFAULT_wxUSE_TEXTDLG=yes
1489 DEFAULT_wxUSE_STARTUP_TIPS=yes
1490 DEFAULT_wxUSE_PROGRESSDLG=yes
1491 DEFAULT_wxUSE_MINIFRAME=yes
1492 DEFAULT_wxUSE_HTML=yes
1493 DEFAULT_wxUSE_FILESYSTEM=yes
1494 DEFAULT_wxUSE_FS_INET=yes
1495 DEFAULT_wxUSE_FS_ZIP=yes
1496 DEFAULT_wxUSE_BUSYINFO=yes
1497 DEFAULT_wxUSE_ZIPSTREAM=yes
1498 DEFAULT_wxUSE_VALIDATORS=yes
1499
1500 DEFAULT_wxUSE_ACCEL=yes
1501 DEFAULT_wxUSE_CARET=yes
1502 DEFAULT_wxUSE_BMPBUTTON=yes
1503 DEFAULT_wxUSE_CHECKBOX=yes
1504 DEFAULT_wxUSE_CHECKLST=yes
1505 DEFAULT_wxUSE_CHOICE=yes
1506 DEFAULT_wxUSE_COMBOBOX=yes
1507 DEFAULT_wxUSE_GAUGE=yes
1508 DEFAULT_wxUSE_GRID=yes
1509 DEFAULT_wxUSE_NEW_GRID=yes
1510 DEFAULT_wxUSE_IMAGLIST=yes
1511 DEFAULT_wxUSE_LISTBOX=yes
1512 DEFAULT_wxUSE_LISTCTRL=yes
1513 DEFAULT_wxUSE_NOTEBOOK=yes
1514 DEFAULT_wxUSE_RADIOBOX=yes
1515 DEFAULT_wxUSE_RADIOBTN=yes
1516 DEFAULT_wxUSE_SASH=yes
1517 DEFAULT_wxUSE_SCROLLBAR=yes
1518 DEFAULT_wxUSE_SLIDER=yes
1519 DEFAULT_wxUSE_SPINBTN=yes
1520 DEFAULT_wxUSE_SPINCTRL=yes
1521 DEFAULT_wxUSE_SPLITTER=yes
1522 DEFAULT_wxUSE_STATBMP=yes
1523 DEFAULT_wxUSE_STATBOX=yes
1524 DEFAULT_wxUSE_STATLINE=yes
1525 DEFAULT_wxUSE_STATUSBAR=yes
1526 DEFAULT_wxUSE_TABDIALOG=no
1527 DEFAULT_wxUSE_TOGGLEBTN=yes
1528 DEFAULT_wxUSE_TOOLBAR=yes
1529 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1530 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1531 DEFAULT_wxUSE_TREECTRL=yes
1532
1533 DEFAULT_wxUSE_UNICODE=no
1534 DEFAULT_wxUSE_WCSRTOMBS=no
1535
1536 DEFAULT_wxUSE_IMAGE=yes
1537 DEFAULT_wxUSE_GIF=yes
1538 DEFAULT_wxUSE_PCX=yes
1539 DEFAULT_wxUSE_PNM=yes
1540 DEFAULT_wxUSE_XPM=yes
1541 fi
1542
1543
1544
1545 for toolkit in `echo $ALL_TOOLKITS`; do
1546 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1547 if test "x$LINE" != x ; then
1548 has_toolkit_in_cache=1
1549 eval "DEFAULT_$LINE"
1550 eval "CACHE_$toolkit=1"
1551 fi
1552 done
1553
1554
1555
1556 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
1557 echo "configure:1558: checking "for --enable-gui"" >&5
1558 no_cache=0
1559 # Check whether --enable-gui or --disable-gui was given.
1560 if test "${enable_gui+set}" = set; then
1561 enableval="$enable_gui"
1562
1563 if test "$enableval" = yes; then
1564 ac_cv_use_gui='wxUSE_GUI=yes'
1565 else
1566 ac_cv_use_gui='wxUSE_GUI=no'
1567 fi
1568
1569 else
1570
1571 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1572 if test "x$LINE" != x ; then
1573 eval "DEFAULT_$LINE"
1574 else
1575 no_cache=1
1576 fi
1577
1578 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1579
1580 fi
1581
1582
1583 eval "$ac_cv_use_gui"
1584 if test "$no_cache" != 1; then
1585 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1586 fi
1587
1588 if test "$wxUSE_GUI" = yes; then
1589 echo "$ac_t""yes" 1>&6
1590 else
1591 echo "$ac_t""no" 1>&6
1592 fi
1593
1594
1595 if test "$wxUSE_GUI" = "yes"; then
1596
1597 # Check whether --with-gtk or --without-gtk was given.
1598 if test "${with_gtk+set}" = set; then
1599 withval="$with_gtk"
1600 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1601 fi
1602
1603 # Check whether --with-motif or --without-motif was given.
1604 if test "${with_motif+set}" = set; then
1605 withval="$with_motif"
1606 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1607 fi
1608
1609 # Check whether --with-mac or --without-mac was given.
1610 if test "${with_mac+set}" = set; then
1611 withval="$with_mac"
1612 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1613 fi
1614
1615 # Check whether --with-wine or --without-wine was given.
1616 if test "${with_wine+set}" = set; then
1617 withval="$with_wine"
1618 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1619 fi
1620
1621 # Check whether --with-cygwin or --without-cygwin was given.
1622 if test "${with_cygwin+set}" = set; then
1623 withval="$with_cygwin"
1624 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1625 fi
1626
1627 # Check whether --with-mingw or --without-mingw was given.
1628 if test "${with_mingw+set}" = set; then
1629 withval="$with_mingw"
1630 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1631 fi
1632
1633 # Check whether --with-pm or --without-pm was given.
1634 if test "${with_pm+set}" = set; then
1635 withval="$with_pm"
1636 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1637 fi
1638
1639
1640 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1641 if test "${with_gtk_prefix+set}" = set; then
1642 withval="$with_gtk_prefix"
1643 gtk_config_prefix="$withval"
1644 else
1645 gtk_config_prefix=""
1646 fi
1647
1648 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1649 if test "${with_gtk_exec_prefix+set}" = set; then
1650 withval="$with_gtk_exec_prefix"
1651 gtk_config_exec_prefix="$withval"
1652 else
1653 gtk_config_exec_prefix=""
1654 fi
1655
1656
1657
1658 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
1659 echo "configure:1660: checking "for --with-libpng"" >&5
1660 no_cache=0
1661 # Check whether --with-libpng or --without-libpng was given.
1662 if test "${with_libpng+set}" = set; then
1663 withval="$with_libpng"
1664
1665 if test "$withval" = yes; then
1666 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1667 elif test "$withval" = no; then
1668 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1669 elif test "$withval" = sys; then
1670 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1671 else
1672 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1673 fi
1674
1675 else
1676
1677 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1678 if test "x$LINE" != x ; then
1679 eval "DEFAULT_$LINE"
1680 else
1681 no_cache=1
1682 fi
1683
1684 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1685
1686 fi
1687
1688
1689 eval "$ac_cv_use_libpng"
1690 if test "$no_cache" != 1; then
1691 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1692 fi
1693
1694 if test "$wxUSE_LIBPNG" = yes; then
1695 echo "$ac_t""yes" 1>&6
1696 elif test "$wxUSE_LIBPNG" = no; then
1697 echo "$ac_t""no" 1>&6
1698 elif test "$wxUSE_LIBPNG" = sys; then
1699 echo "$ac_t""system version" 1>&6
1700 else
1701 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1702 fi
1703
1704
1705 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
1706 echo "configure:1707: checking "for --with-libjpeg"" >&5
1707 no_cache=0
1708 # Check whether --with-libjpeg or --without-libjpeg was given.
1709 if test "${with_libjpeg+set}" = set; then
1710 withval="$with_libjpeg"
1711
1712 if test "$withval" = yes; then
1713 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1714 elif test "$withval" = no; then
1715 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1716 elif test "$withval" = sys; then
1717 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1718 else
1719 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1720 fi
1721
1722 else
1723
1724 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1725 if test "x$LINE" != x ; then
1726 eval "DEFAULT_$LINE"
1727 else
1728 no_cache=1
1729 fi
1730
1731 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1732
1733 fi
1734
1735
1736 eval "$ac_cv_use_libjpeg"
1737 if test "$no_cache" != 1; then
1738 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1739 fi
1740
1741 if test "$wxUSE_LIBJPEG" = yes; then
1742 echo "$ac_t""yes" 1>&6
1743 elif test "$wxUSE_LIBJPEG" = no; then
1744 echo "$ac_t""no" 1>&6
1745 elif test "$wxUSE_LIBJPEG" = sys; then
1746 echo "$ac_t""system version" 1>&6
1747 else
1748 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1749 fi
1750
1751
1752 echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6
1753 echo "configure:1754: checking "for --with-libtiff"" >&5
1754 no_cache=0
1755 # Check whether --with-libtiff or --without-libtiff was given.
1756 if test "${with_libtiff+set}" = set; then
1757 withval="$with_libtiff"
1758
1759 if test "$withval" = yes; then
1760 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
1761 elif test "$withval" = no; then
1762 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
1763 elif test "$withval" = sys; then
1764 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1765 else
1766 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1767 fi
1768
1769 else
1770
1771 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
1772 if test "x$LINE" != x ; then
1773 eval "DEFAULT_$LINE"
1774 else
1775 no_cache=1
1776 fi
1777
1778 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
1779
1780 fi
1781
1782
1783 eval "$ac_cv_use_libtiff"
1784 if test "$no_cache" != 1; then
1785 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
1786 fi
1787
1788 if test "$wxUSE_LIBTIFF" = yes; then
1789 echo "$ac_t""yes" 1>&6
1790 elif test "$wxUSE_LIBTIFF" = no; then
1791 echo "$ac_t""no" 1>&6
1792 elif test "$wxUSE_LIBTIFF" = sys; then
1793 echo "$ac_t""system version" 1>&6
1794 else
1795 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1796 fi
1797
1798
1799 echo $ac_n "checking "for --with-freetype"""... $ac_c" 1>&6
1800 echo "configure:1801: checking "for --with-freetype"" >&5
1801 no_cache=0
1802 # Check whether --with-freetype or --without-freetype was given.
1803 if test "${with_freetype+set}" = set; then
1804 withval="$with_freetype"
1805
1806 if test "$withval" = yes; then
1807 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1808 elif test "$withval" = no; then
1809 ac_cv_use_freetype='wxUSE_FREETYPE=no'
1810 elif test "$withval" = sys; then
1811 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
1812 else
1813 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1814 fi
1815
1816 else
1817
1818 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
1819 if test "x$LINE" != x ; then
1820 eval "DEFAULT_$LINE"
1821 else
1822 no_cache=1
1823 fi
1824
1825 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
1826
1827 fi
1828
1829
1830 eval "$ac_cv_use_freetype"
1831 if test "$no_cache" != 1; then
1832 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
1833 fi
1834
1835 if test "$wxUSE_FREETYPE" = yes; then
1836 echo "$ac_t""yes" 1>&6
1837 elif test "$wxUSE_FREETYPE" = no; then
1838 echo "$ac_t""no" 1>&6
1839 elif test "$wxUSE_FREETYPE" = sys; then
1840 echo "$ac_t""system version" 1>&6
1841 else
1842 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1843 fi
1844
1845
1846 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
1847 echo "configure:1848: checking "for --with-opengl"" >&5
1848 no_cache=0
1849 # Check whether --with-opengl or --without-opengl was given.
1850 if test "${with_opengl+set}" = set; then
1851 withval="$with_opengl"
1852
1853 if test "$withval" = yes; then
1854 ac_cv_use_opengl='wxUSE_OPENGL=yes'
1855 else
1856 ac_cv_use_opengl='wxUSE_OPENGL=no'
1857 fi
1858
1859 else
1860
1861 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
1862 if test "x$LINE" != x ; then
1863 eval "DEFAULT_$LINE"
1864 else
1865 no_cache=1
1866 fi
1867
1868 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
1869
1870 fi
1871
1872
1873 eval "$ac_cv_use_opengl"
1874 if test "$no_cache" != 1; then
1875 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
1876 fi
1877
1878 if test "$wxUSE_OPENGL" = yes; then
1879 echo "$ac_t""yes" 1>&6
1880 else
1881 echo "$ac_t""no" 1>&6
1882 fi
1883
1884
1885 fi
1886
1887
1888 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
1889 echo "configure:1890: checking "for --with-dmalloc"" >&5
1890 no_cache=0
1891 # Check whether --with-dmalloc or --without-dmalloc was given.
1892 if test "${with_dmalloc+set}" = set; then
1893 withval="$with_dmalloc"
1894
1895 if test "$withval" = yes; then
1896 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
1897 else
1898 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
1899 fi
1900
1901 else
1902
1903 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
1904 if test "x$LINE" != x ; then
1905 eval "DEFAULT_$LINE"
1906 else
1907 no_cache=1
1908 fi
1909
1910 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
1911
1912 fi
1913
1914
1915 eval "$ac_cv_use_dmalloc"
1916 if test "$no_cache" != 1; then
1917 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
1918 fi
1919
1920 if test "$wxUSE_DMALLOC" = yes; then
1921 echo "$ac_t""yes" 1>&6
1922 else
1923 echo "$ac_t""no" 1>&6
1924 fi
1925
1926
1927 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
1928 echo "configure:1929: checking "for --with-zlib"" >&5
1929 no_cache=0
1930 # Check whether --with-zlib or --without-zlib was given.
1931 if test "${with_zlib+set}" = set; then
1932 withval="$with_zlib"
1933
1934 if test "$withval" = yes; then
1935 ac_cv_use_zlib='wxUSE_ZLIB=yes'
1936 elif test "$withval" = no; then
1937 ac_cv_use_zlib='wxUSE_ZLIB=no'
1938 elif test "$withval" = sys; then
1939 ac_cv_use_zlib='wxUSE_ZLIB=sys'
1940 else
1941 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
1942 fi
1943
1944 else
1945
1946 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
1947 if test "x$LINE" != x ; then
1948 eval "DEFAULT_$LINE"
1949 else
1950 no_cache=1
1951 fi
1952
1953 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
1954
1955 fi
1956
1957
1958 eval "$ac_cv_use_zlib"
1959 if test "$no_cache" != 1; then
1960 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
1961 fi
1962
1963 if test "$wxUSE_ZLIB" = yes; then
1964 echo "$ac_t""yes" 1>&6
1965 elif test "$wxUSE_ZLIB" = no; then
1966 echo "$ac_t""no" 1>&6
1967 elif test "$wxUSE_ZLIB" = sys; then
1968 echo "$ac_t""system version" 1>&6
1969 else
1970 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
1971 fi
1972
1973
1974 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
1975 echo "configure:1976: checking "for --with-odbc"" >&5
1976 no_cache=0
1977 # Check whether --with-odbc or --without-odbc was given.
1978 if test "${with_odbc+set}" = set; then
1979 withval="$with_odbc"
1980
1981 if test "$withval" = yes; then
1982 ac_cv_use_odbc='wxUSE_ODBC=yes'
1983 else
1984 ac_cv_use_odbc='wxUSE_ODBC=no'
1985 fi
1986
1987 else
1988
1989 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1990 if test "x$LINE" != x ; then
1991 eval "DEFAULT_$LINE"
1992 else
1993 no_cache=1
1994 fi
1995
1996 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1997
1998 fi
1999
2000
2001 eval "$ac_cv_use_odbc"
2002 if test "$no_cache" != 1; then
2003 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2004 fi
2005
2006 if test "$wxUSE_ODBC" = yes; then
2007 echo "$ac_t""yes" 1>&6
2008 else
2009 echo "$ac_t""no" 1>&6
2010 fi
2011
2012
2013
2014
2015
2016 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
2017 echo "configure:2018: checking "for --enable-shared"" >&5
2018 no_cache=0
2019 # Check whether --enable-shared or --disable-shared was given.
2020 if test "${enable_shared+set}" = set; then
2021 enableval="$enable_shared"
2022
2023 if test "$enableval" = yes; then
2024 ac_cv_use_shared='wxUSE_SHARED=yes'
2025 else
2026 ac_cv_use_shared='wxUSE_SHARED=no'
2027 fi
2028
2029 else
2030
2031 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2032 if test "x$LINE" != x ; then
2033 eval "DEFAULT_$LINE"
2034 else
2035 no_cache=1
2036 fi
2037
2038 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2039
2040 fi
2041
2042
2043 eval "$ac_cv_use_shared"
2044 if test "$no_cache" != 1; then
2045 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2046 fi
2047
2048 if test "$wxUSE_SHARED" = yes; then
2049 echo "$ac_t""yes" 1>&6
2050 else
2051 echo "$ac_t""no" 1>&6
2052 fi
2053
2054
2055 echo $ac_n "checking "for --enable-burnt_name"""... $ac_c" 1>&6
2056 echo "configure:2057: checking "for --enable-burnt_name"" >&5
2057 no_cache=0
2058 # Check whether --enable-burnt_name or --disable-burnt_name was given.
2059 if test "${enable_burnt_name+set}" = set; then
2060 enableval="$enable_burnt_name"
2061
2062 if test "$enableval" = yes; then
2063 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
2064 else
2065 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
2066 fi
2067
2068 else
2069
2070 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
2071 if test "x$LINE" != x ; then
2072 eval "DEFAULT_$LINE"
2073 else
2074 no_cache=1
2075 fi
2076
2077 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
2078
2079 fi
2080
2081
2082 eval "$ac_cv_use_burnt_name"
2083 if test "$no_cache" != 1; then
2084 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
2085 fi
2086
2087 if test "$wxUSE_BURNT_NAME" = yes; then
2088 echo "$ac_t""yes" 1>&6
2089 else
2090 echo "$ac_t""no" 1>&6
2091 fi
2092
2093
2094 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
2095 echo "configure:2096: checking "for --enable-optimise"" >&5
2096 no_cache=0
2097 # Check whether --enable-optimise or --disable-optimise was given.
2098 if test "${enable_optimise+set}" = set; then
2099 enableval="$enable_optimise"
2100
2101 if test "$enableval" = yes; then
2102 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2103 else
2104 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2105 fi
2106
2107 else
2108
2109 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2110 if test "x$LINE" != x ; then
2111 eval "DEFAULT_$LINE"
2112 else
2113 no_cache=1
2114 fi
2115
2116 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2117
2118 fi
2119
2120
2121 eval "$ac_cv_use_optimise"
2122 if test "$no_cache" != 1; then
2123 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2124 fi
2125
2126 if test "$wxUSE_OPTIMISE" = yes; then
2127 echo "$ac_t""yes" 1>&6
2128 else
2129 echo "$ac_t""no" 1>&6
2130 fi
2131
2132
2133 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
2134 echo "configure:2135: checking "for --enable-debug"" >&5
2135 no_cache=0
2136 # Check whether --enable-debug or --disable-debug was given.
2137 if test "${enable_debug+set}" = set; then
2138 enableval="$enable_debug"
2139
2140 if test "$enableval" = yes; then
2141 ac_cv_use_debug='wxUSE_DEBUG=yes'
2142 else
2143 ac_cv_use_debug='wxUSE_DEBUG=no'
2144 fi
2145
2146 else
2147
2148 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2149 if test "x$LINE" != x ; then
2150 eval "DEFAULT_$LINE"
2151 else
2152 no_cache=1
2153 fi
2154
2155 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2156
2157 fi
2158
2159
2160 eval "$ac_cv_use_debug"
2161 if test "$no_cache" != 1; then
2162 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2163 fi
2164
2165 if test "$wxUSE_DEBUG" = yes; then
2166 echo "$ac_t""yes" 1>&6
2167 else
2168 echo "$ac_t""no" 1>&6
2169 fi
2170
2171
2172 if test "$wxUSE_DEBUG" = "yes"; then
2173 DEFAULT_wxUSE_DEBUG_FLAG=yes
2174 DEFAULT_wxUSE_DEBUG_INFO=yes
2175 elif test "$wxUSE_DEBUG" = "no"; then
2176 DEFAULT_wxUSE_DEBUG_FLAG=no
2177 DEFAULT_wxUSE_DEBUG_INFO=no
2178 fi
2179
2180
2181 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
2182 echo "configure:2183: checking "for --enable-debug_flag"" >&5
2183 no_cache=0
2184 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2185 if test "${enable_debug_flag+set}" = set; then
2186 enableval="$enable_debug_flag"
2187
2188 if test "$enableval" = yes; then
2189 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2190 else
2191 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2192 fi
2193
2194 else
2195
2196 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2197 if test "x$LINE" != x ; then
2198 eval "DEFAULT_$LINE"
2199 else
2200 no_cache=1
2201 fi
2202
2203 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2204
2205 fi
2206
2207
2208 eval "$ac_cv_use_debug_flag"
2209 if test "$no_cache" != 1; then
2210 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2211 fi
2212
2213 if test "$wxUSE_DEBUG_FLAG" = yes; then
2214 echo "$ac_t""yes" 1>&6
2215 else
2216 echo "$ac_t""no" 1>&6
2217 fi
2218
2219
2220 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
2221 echo "configure:2222: checking "for --enable-debug_info"" >&5
2222 no_cache=0
2223 # Check whether --enable-debug_info or --disable-debug_info was given.
2224 if test "${enable_debug_info+set}" = set; then
2225 enableval="$enable_debug_info"
2226
2227 if test "$enableval" = yes; then
2228 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2229 else
2230 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2231 fi
2232
2233 else
2234
2235 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2236 if test "x$LINE" != x ; then
2237 eval "DEFAULT_$LINE"
2238 else
2239 no_cache=1
2240 fi
2241
2242 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2243
2244 fi
2245
2246
2247 eval "$ac_cv_use_debug_info"
2248 if test "$no_cache" != 1; then
2249 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2250 fi
2251
2252 if test "$wxUSE_DEBUG_INFO" = yes; then
2253 echo "$ac_t""yes" 1>&6
2254 else
2255 echo "$ac_t""no" 1>&6
2256 fi
2257
2258
2259 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
2260 echo "configure:2261: checking "for --enable-debug_gdb"" >&5
2261 no_cache=0
2262 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2263 if test "${enable_debug_gdb+set}" = set; then
2264 enableval="$enable_debug_gdb"
2265
2266 if test "$enableval" = yes; then
2267 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2268 else
2269 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2270 fi
2271
2272 else
2273
2274 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2275 if test "x$LINE" != x ; then
2276 eval "DEFAULT_$LINE"
2277 else
2278 no_cache=1
2279 fi
2280
2281 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2282
2283 fi
2284
2285
2286 eval "$ac_cv_use_debug_gdb"
2287 if test "$no_cache" != 1; then
2288 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2289 fi
2290
2291 if test "$wxUSE_DEBUG_GDB" = yes; then
2292 echo "$ac_t""yes" 1>&6
2293 else
2294 echo "$ac_t""no" 1>&6
2295 fi
2296
2297
2298 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
2299 echo "configure:2300: checking "for --enable-debug_cntxt"" >&5
2300 no_cache=0
2301 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2302 if test "${enable_debug_cntxt+set}" = set; then
2303 enableval="$enable_debug_cntxt"
2304
2305 if test "$enableval" = yes; then
2306 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2307 else
2308 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2309 fi
2310
2311 else
2312
2313 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2314 if test "x$LINE" != x ; then
2315 eval "DEFAULT_$LINE"
2316 else
2317 no_cache=1
2318 fi
2319
2320 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2321
2322 fi
2323
2324
2325 eval "$ac_cv_use_debug_cntxt"
2326 if test "$no_cache" != 1; then
2327 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2328 fi
2329
2330 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2331 echo "$ac_t""yes" 1>&6
2332 else
2333 echo "$ac_t""no" 1>&6
2334 fi
2335
2336
2337 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
2338 echo "configure:2339: checking "for --enable-mem_tracing"" >&5
2339 no_cache=0
2340 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2341 if test "${enable_mem_tracing+set}" = set; then
2342 enableval="$enable_mem_tracing"
2343
2344 if test "$enableval" = yes; then
2345 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2346 else
2347 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2348 fi
2349
2350 else
2351
2352 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2353 if test "x$LINE" != x ; then
2354 eval "DEFAULT_$LINE"
2355 else
2356 no_cache=1
2357 fi
2358
2359 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2360
2361 fi
2362
2363
2364 eval "$ac_cv_use_mem_tracing"
2365 if test "$no_cache" != 1; then
2366 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2367 fi
2368
2369 if test "$wxUSE_MEM_TRACING" = yes; then
2370 echo "$ac_t""yes" 1>&6
2371 else
2372 echo "$ac_t""no" 1>&6
2373 fi
2374
2375
2376 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
2377 echo "configure:2378: checking "for --enable-profile"" >&5
2378 no_cache=0
2379 # Check whether --enable-profile or --disable-profile was given.
2380 if test "${enable_profile+set}" = set; then
2381 enableval="$enable_profile"
2382
2383 if test "$enableval" = yes; then
2384 ac_cv_use_profile='wxUSE_PROFILE=yes'
2385 else
2386 ac_cv_use_profile='wxUSE_PROFILE=no'
2387 fi
2388
2389 else
2390
2391 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2392 if test "x$LINE" != x ; then
2393 eval "DEFAULT_$LINE"
2394 else
2395 no_cache=1
2396 fi
2397
2398 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2399
2400 fi
2401
2402
2403 eval "$ac_cv_use_profile"
2404 if test "$no_cache" != 1; then
2405 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2406 fi
2407
2408 if test "$wxUSE_PROFILE" = yes; then
2409 echo "$ac_t""yes" 1>&6
2410 else
2411 echo "$ac_t""no" 1>&6
2412 fi
2413
2414
2415 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
2416 echo "configure:2417: checking "for --enable-no_rtti"" >&5
2417 no_cache=0
2418 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2419 if test "${enable_no_rtti+set}" = set; then
2420 enableval="$enable_no_rtti"
2421
2422 if test "$enableval" = yes; then
2423 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2424 else
2425 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2426 fi
2427
2428 else
2429
2430 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2431 if test "x$LINE" != x ; then
2432 eval "DEFAULT_$LINE"
2433 else
2434 no_cache=1
2435 fi
2436
2437 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2438
2439 fi
2440
2441
2442 eval "$ac_cv_use_no_rtti"
2443 if test "$no_cache" != 1; then
2444 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2445 fi
2446
2447 if test "$wxUSE_NO_RTTI" = yes; then
2448 echo "$ac_t""yes" 1>&6
2449 else
2450 echo "$ac_t""no" 1>&6
2451 fi
2452
2453
2454 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
2455 echo "configure:2456: checking "for --enable-no_exceptions"" >&5
2456 no_cache=0
2457 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2458 if test "${enable_no_exceptions+set}" = set; then
2459 enableval="$enable_no_exceptions"
2460
2461 if test "$enableval" = yes; then
2462 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2463 else
2464 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2465 fi
2466
2467 else
2468
2469 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2470 if test "x$LINE" != x ; then
2471 eval "DEFAULT_$LINE"
2472 else
2473 no_cache=1
2474 fi
2475
2476 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2477
2478 fi
2479
2480
2481 eval "$ac_cv_use_no_exceptions"
2482 if test "$no_cache" != 1; then
2483 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2484 fi
2485
2486 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2487 echo "$ac_t""yes" 1>&6
2488 else
2489 echo "$ac_t""no" 1>&6
2490 fi
2491
2492
2493 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
2494 echo "configure:2495: checking "for --enable-permissive"" >&5
2495 no_cache=0
2496 # Check whether --enable-permissive or --disable-permissive was given.
2497 if test "${enable_permissive+set}" = set; then
2498 enableval="$enable_permissive"
2499
2500 if test "$enableval" = yes; then
2501 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2502 else
2503 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2504 fi
2505
2506 else
2507
2508 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2509 if test "x$LINE" != x ; then
2510 eval "DEFAULT_$LINE"
2511 else
2512 no_cache=1
2513 fi
2514
2515 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2516
2517 fi
2518
2519
2520 eval "$ac_cv_use_permissive"
2521 if test "$no_cache" != 1; then
2522 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2523 fi
2524
2525 if test "$wxUSE_PERMISSIVE" = yes; then
2526 echo "$ac_t""yes" 1>&6
2527 else
2528 echo "$ac_t""no" 1>&6
2529 fi
2530
2531
2532 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
2533 echo "configure:2534: checking "for --enable-no_deps"" >&5
2534 no_cache=0
2535 # Check whether --enable-no_deps or --disable-no_deps was given.
2536 if test "${enable_no_deps+set}" = set; then
2537 enableval="$enable_no_deps"
2538
2539 if test "$enableval" = yes; then
2540 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2541 else
2542 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2543 fi
2544
2545 else
2546
2547 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2548 if test "x$LINE" != x ; then
2549 eval "DEFAULT_$LINE"
2550 else
2551 no_cache=1
2552 fi
2553
2554 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2555
2556 fi
2557
2558
2559 eval "$ac_cv_use_no_deps"
2560 if test "$no_cache" != 1; then
2561 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2562 fi
2563
2564 if test "$wxUSE_NO_DEPS" = yes; then
2565 echo "$ac_t""yes" 1>&6
2566 else
2567 echo "$ac_t""no" 1>&6
2568 fi
2569
2570
2571
2572
2573 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
2574 echo "configure:2575: checking "for --enable-intl"" >&5
2575 no_cache=0
2576 # Check whether --enable-intl or --disable-intl was given.
2577 if test "${enable_intl+set}" = set; then
2578 enableval="$enable_intl"
2579
2580 if test "$enableval" = yes; then
2581 ac_cv_use_intl='wxUSE_INTL=yes'
2582 else
2583 ac_cv_use_intl='wxUSE_INTL=no'
2584 fi
2585
2586 else
2587
2588 LINE=`grep "wxUSE_INTL" ${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_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2596
2597 fi
2598
2599
2600 eval "$ac_cv_use_intl"
2601 if test "$no_cache" != 1; then
2602 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2603 fi
2604
2605 if test "$wxUSE_INTL" = 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-config"""... $ac_c" 1>&6
2613 echo "configure:2614: checking "for --enable-config"" >&5
2614 no_cache=0
2615 # Check whether --enable-config or --disable-config was given.
2616 if test "${enable_config+set}" = set; then
2617 enableval="$enable_config"
2618
2619 if test "$enableval" = yes; then
2620 ac_cv_use_config='wxUSE_CONFIG=yes'
2621 else
2622 ac_cv_use_config='wxUSE_CONFIG=no'
2623 fi
2624
2625 else
2626
2627 LINE=`grep "wxUSE_CONFIG" ${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_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2635
2636 fi
2637
2638
2639 eval "$ac_cv_use_config"
2640 if test "$no_cache" != 1; then
2641 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2642 fi
2643
2644 if test "$wxUSE_CONFIG" = yes; then
2645 echo "$ac_t""yes" 1>&6
2646 else
2647 echo "$ac_t""no" 1>&6
2648 fi
2649
2650
2651
2652 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
2653 echo "configure:2654: checking "for --enable-sockets"" >&5
2654 no_cache=0
2655 # Check whether --enable-sockets or --disable-sockets was given.
2656 if test "${enable_sockets+set}" = set; then
2657 enableval="$enable_sockets"
2658
2659 if test "$enableval" = yes; then
2660 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2661 else
2662 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2663 fi
2664
2665 else
2666
2667 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2668 if test "x$LINE" != x ; then
2669 eval "DEFAULT_$LINE"
2670 else
2671 no_cache=1
2672 fi
2673
2674 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2675
2676 fi
2677
2678
2679 eval "$ac_cv_use_sockets"
2680 if test "$no_cache" != 1; then
2681 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2682 fi
2683
2684 if test "$wxUSE_SOCKETS" = yes; then
2685 echo "$ac_t""yes" 1>&6
2686 else
2687 echo "$ac_t""no" 1>&6
2688 fi
2689
2690
2691
2692 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
2693 echo "configure:2694: checking "for --enable-ipc"" >&5
2694 no_cache=0
2695 # Check whether --enable-ipc or --disable-ipc was given.
2696 if test "${enable_ipc+set}" = set; then
2697 enableval="$enable_ipc"
2698
2699 if test "$enableval" = yes; then
2700 ac_cv_use_ipc='wxUSE_IPC=yes'
2701 else
2702 ac_cv_use_ipc='wxUSE_IPC=no'
2703 fi
2704
2705 else
2706
2707 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2708 if test "x$LINE" != x ; then
2709 eval "DEFAULT_$LINE"
2710 else
2711 no_cache=1
2712 fi
2713
2714 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2715
2716 fi
2717
2718
2719 eval "$ac_cv_use_ipc"
2720 if test "$no_cache" != 1; then
2721 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2722 fi
2723
2724 if test "$wxUSE_IPC" = yes; then
2725 echo "$ac_t""yes" 1>&6
2726 else
2727 echo "$ac_t""no" 1>&6
2728 fi
2729
2730
2731
2732 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
2733 echo "configure:2734: checking "for --enable-dialupman"" >&5
2734 no_cache=0
2735 # Check whether --enable-dialupman or --disable-dialupman was given.
2736 if test "${enable_dialupman+set}" = set; then
2737 enableval="$enable_dialupman"
2738
2739 if test "$enableval" = yes; then
2740 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
2741 else
2742 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
2743 fi
2744
2745 else
2746
2747 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
2748 if test "x$LINE" != x ; then
2749 eval "DEFAULT_$LINE"
2750 else
2751 no_cache=1
2752 fi
2753
2754 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
2755
2756 fi
2757
2758
2759 eval "$ac_cv_use_dialupman"
2760 if test "$no_cache" != 1; then
2761 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
2762 fi
2763
2764 if test "$wxUSE_DIALUP_MANAGER" = yes; then
2765 echo "$ac_t""yes" 1>&6
2766 else
2767 echo "$ac_t""no" 1>&6
2768 fi
2769
2770
2771 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
2772 echo "configure:2773: checking "for --enable-apple_ieee"" >&5
2773 no_cache=0
2774 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2775 if test "${enable_apple_ieee+set}" = set; then
2776 enableval="$enable_apple_ieee"
2777
2778 if test "$enableval" = yes; then
2779 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2780 else
2781 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2782 fi
2783
2784 else
2785
2786 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2787 if test "x$LINE" != x ; then
2788 eval "DEFAULT_$LINE"
2789 else
2790 no_cache=1
2791 fi
2792
2793 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2794
2795 fi
2796
2797
2798 eval "$ac_cv_use_apple_ieee"
2799 if test "$no_cache" != 1; then
2800 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2801 fi
2802
2803 if test "$wxUSE_APPLE_IEEE" = yes; then
2804 echo "$ac_t""yes" 1>&6
2805 else
2806 echo "$ac_t""no" 1>&6
2807 fi
2808
2809
2810 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
2811 echo "configure:2812: checking "for --enable-timedate"" >&5
2812 no_cache=0
2813 # Check whether --enable-timedate or --disable-timedate was given.
2814 if test "${enable_timedate+set}" = set; then
2815 enableval="$enable_timedate"
2816
2817 if test "$enableval" = yes; then
2818 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2819 else
2820 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2821 fi
2822
2823 else
2824
2825 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2826 if test "x$LINE" != x ; then
2827 eval "DEFAULT_$LINE"
2828 else
2829 no_cache=1
2830 fi
2831
2832 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2833
2834 fi
2835
2836
2837 eval "$ac_cv_use_timedate"
2838 if test "$no_cache" != 1; then
2839 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2840 fi
2841
2842 if test "$wxUSE_TIMEDATE" = yes; then
2843 echo "$ac_t""yes" 1>&6
2844 else
2845 echo "$ac_t""no" 1>&6
2846 fi
2847
2848
2849 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
2850 echo "configure:2851: checking "for --enable-wave"" >&5
2851 no_cache=0
2852 # Check whether --enable-wave or --disable-wave was given.
2853 if test "${enable_wave+set}" = set; then
2854 enableval="$enable_wave"
2855
2856 if test "$enableval" = yes; then
2857 ac_cv_use_wave='wxUSE_WAVE=yes'
2858 else
2859 ac_cv_use_wave='wxUSE_WAVE=no'
2860 fi
2861
2862 else
2863
2864 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2865 if test "x$LINE" != x ; then
2866 eval "DEFAULT_$LINE"
2867 else
2868 no_cache=1
2869 fi
2870
2871 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2872
2873 fi
2874
2875
2876 eval "$ac_cv_use_wave"
2877 if test "$no_cache" != 1; then
2878 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2879 fi
2880
2881 if test "$wxUSE_WAVE" = yes; then
2882 echo "$ac_t""yes" 1>&6
2883 else
2884 echo "$ac_t""no" 1>&6
2885 fi
2886
2887
2888 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
2889 echo "configure:2890: checking "for --enable-fraction"" >&5
2890 no_cache=0
2891 # Check whether --enable-fraction or --disable-fraction was given.
2892 if test "${enable_fraction+set}" = set; then
2893 enableval="$enable_fraction"
2894
2895 if test "$enableval" = yes; then
2896 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2897 else
2898 ac_cv_use_fraction='wxUSE_FRACTION=no'
2899 fi
2900
2901 else
2902
2903 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2904 if test "x$LINE" != x ; then
2905 eval "DEFAULT_$LINE"
2906 else
2907 no_cache=1
2908 fi
2909
2910 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2911
2912 fi
2913
2914
2915 eval "$ac_cv_use_fraction"
2916 if test "$no_cache" != 1; then
2917 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2918 fi
2919
2920 if test "$wxUSE_FRACTION" = yes; then
2921 echo "$ac_t""yes" 1>&6
2922 else
2923 echo "$ac_t""no" 1>&6
2924 fi
2925
2926
2927 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
2928 echo "configure:2929: checking "for --enable-dynlib"" >&5
2929 no_cache=0
2930 # Check whether --enable-dynlib or --disable-dynlib was given.
2931 if test "${enable_dynlib+set}" = set; then
2932 enableval="$enable_dynlib"
2933
2934 if test "$enableval" = yes; then
2935 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2936 else
2937 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2938 fi
2939
2940 else
2941
2942 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2943 if test "x$LINE" != x ; then
2944 eval "DEFAULT_$LINE"
2945 else
2946 no_cache=1
2947 fi
2948
2949 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2950
2951 fi
2952
2953
2954 eval "$ac_cv_use_dynlib"
2955 if test "$no_cache" != 1; then
2956 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2957 fi
2958
2959 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2960 echo "$ac_t""yes" 1>&6
2961 else
2962 echo "$ac_t""no" 1>&6
2963 fi
2964
2965
2966 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
2967 echo "configure:2968: checking "for --enable-longlong"" >&5
2968 no_cache=0
2969 # Check whether --enable-longlong or --disable-longlong was given.
2970 if test "${enable_longlong+set}" = set; then
2971 enableval="$enable_longlong"
2972
2973 if test "$enableval" = yes; then
2974 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2975 else
2976 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2977 fi
2978
2979 else
2980
2981 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2982 if test "x$LINE" != x ; then
2983 eval "DEFAULT_$LINE"
2984 else
2985 no_cache=1
2986 fi
2987
2988 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2989
2990 fi
2991
2992
2993 eval "$ac_cv_use_longlong"
2994 if test "$no_cache" != 1; then
2995 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2996 fi
2997
2998 if test "$wxUSE_LONGLONG" = yes; then
2999 echo "$ac_t""yes" 1>&6
3000 else
3001 echo "$ac_t""no" 1>&6
3002 fi
3003
3004
3005 echo $ac_n "checking "for --enable-geometry"""... $ac_c" 1>&6
3006 echo "configure:3007: checking "for --enable-geometry"" >&5
3007 no_cache=0
3008 # Check whether --enable-geometry or --disable-geometry was given.
3009 if test "${enable_geometry+set}" = set; then
3010 enableval="$enable_geometry"
3011
3012 if test "$enableval" = yes; then
3013 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3014 else
3015 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3016 fi
3017
3018 else
3019
3020 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3021 if test "x$LINE" != x ; then
3022 eval "DEFAULT_$LINE"
3023 else
3024 no_cache=1
3025 fi
3026
3027 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3028
3029 fi
3030
3031
3032 eval "$ac_cv_use_geometry"
3033 if test "$no_cache" != 1; then
3034 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3035 fi
3036
3037 if test "$wxUSE_GEOMETRY" = yes; then
3038 echo "$ac_t""yes" 1>&6
3039 else
3040 echo "$ac_t""no" 1>&6
3041 fi
3042
3043
3044 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
3045 echo "configure:3046: checking "for --enable-log"" >&5
3046 no_cache=0
3047 # Check whether --enable-log or --disable-log was given.
3048 if test "${enable_log+set}" = set; then
3049 enableval="$enable_log"
3050
3051 if test "$enableval" = yes; then
3052 ac_cv_use_log='wxUSE_LOG=yes'
3053 else
3054 ac_cv_use_log='wxUSE_LOG=no'
3055 fi
3056
3057 else
3058
3059 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3060 if test "x$LINE" != x ; then
3061 eval "DEFAULT_$LINE"
3062 else
3063 no_cache=1
3064 fi
3065
3066 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3067
3068 fi
3069
3070
3071 eval "$ac_cv_use_log"
3072 if test "$no_cache" != 1; then
3073 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3074 fi
3075
3076 if test "$wxUSE_LOG" = yes; then
3077 echo "$ac_t""yes" 1>&6
3078 else
3079 echo "$ac_t""no" 1>&6
3080 fi
3081
3082
3083 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
3084 echo "configure:3085: checking "for --enable-streams"" >&5
3085 no_cache=0
3086 # Check whether --enable-streams or --disable-streams was given.
3087 if test "${enable_streams+set}" = set; then
3088 enableval="$enable_streams"
3089
3090 if test "$enableval" = yes; then
3091 ac_cv_use_streams='wxUSE_STREAMS=yes'
3092 else
3093 ac_cv_use_streams='wxUSE_STREAMS=no'
3094 fi
3095
3096 else
3097
3098 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3099 if test "x$LINE" != x ; then
3100 eval "DEFAULT_$LINE"
3101 else
3102 no_cache=1
3103 fi
3104
3105 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3106
3107 fi
3108
3109
3110 eval "$ac_cv_use_streams"
3111 if test "$no_cache" != 1; then
3112 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3113 fi
3114
3115 if test "$wxUSE_STREAMS" = yes; then
3116 echo "$ac_t""yes" 1>&6
3117 else
3118 echo "$ac_t""no" 1>&6
3119 fi
3120
3121
3122 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
3123 echo "configure:3124: checking "for --enable-file"" >&5
3124 no_cache=0
3125 # Check whether --enable-file or --disable-file was given.
3126 if test "${enable_file+set}" = set; then
3127 enableval="$enable_file"
3128
3129 if test "$enableval" = yes; then
3130 ac_cv_use_file='wxUSE_FILE=yes'
3131 else
3132 ac_cv_use_file='wxUSE_FILE=no'
3133 fi
3134
3135 else
3136
3137 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3138 if test "x$LINE" != x ; then
3139 eval "DEFAULT_$LINE"
3140 else
3141 no_cache=1
3142 fi
3143
3144 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3145
3146 fi
3147
3148
3149 eval "$ac_cv_use_file"
3150 if test "$no_cache" != 1; then
3151 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3152 fi
3153
3154 if test "$wxUSE_FILE" = yes; then
3155 echo "$ac_t""yes" 1>&6
3156 else
3157 echo "$ac_t""no" 1>&6
3158 fi
3159
3160
3161 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
3162 echo "configure:3163: checking "for --enable-textfile"" >&5
3163 no_cache=0
3164 # Check whether --enable-textfile or --disable-textfile was given.
3165 if test "${enable_textfile+set}" = set; then
3166 enableval="$enable_textfile"
3167
3168 if test "$enableval" = yes; then
3169 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3170 else
3171 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3172 fi
3173
3174 else
3175
3176 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3177 if test "x$LINE" != x ; then
3178 eval "DEFAULT_$LINE"
3179 else
3180 no_cache=1
3181 fi
3182
3183 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3184
3185 fi
3186
3187
3188 eval "$ac_cv_use_textfile"
3189 if test "$no_cache" != 1; then
3190 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3191 fi
3192
3193 if test "$wxUSE_TEXTFILE" = yes; then
3194 echo "$ac_t""yes" 1>&6
3195 else
3196 echo "$ac_t""no" 1>&6
3197 fi
3198
3199
3200 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
3201 echo "configure:3202: checking "for --enable-unicode"" >&5
3202 no_cache=0
3203 # Check whether --enable-unicode or --disable-unicode was given.
3204 if test "${enable_unicode+set}" = set; then
3205 enableval="$enable_unicode"
3206
3207 if test "$enableval" = yes; then
3208 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3209 else
3210 ac_cv_use_unicode='wxUSE_UNICODE=no'
3211 fi
3212
3213 else
3214
3215 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3216 if test "x$LINE" != x ; then
3217 eval "DEFAULT_$LINE"
3218 else
3219 no_cache=1
3220 fi
3221
3222 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3223
3224 fi
3225
3226
3227 eval "$ac_cv_use_unicode"
3228 if test "$no_cache" != 1; then
3229 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3230 fi
3231
3232 if test "$wxUSE_UNICODE" = yes; then
3233 echo "$ac_t""yes" 1>&6
3234 else
3235 echo "$ac_t""no" 1>&6
3236 fi
3237
3238
3239 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
3240 echo "configure:3241: checking "for --enable-wcsrtombs"" >&5
3241 no_cache=0
3242 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3243 if test "${enable_wcsrtombs+set}" = set; then
3244 enableval="$enable_wcsrtombs"
3245
3246 if test "$enableval" = yes; then
3247 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3248 else
3249 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3250 fi
3251
3252 else
3253
3254 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3255 if test "x$LINE" != x ; then
3256 eval "DEFAULT_$LINE"
3257 else
3258 no_cache=1
3259 fi
3260
3261 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3262
3263 fi
3264
3265
3266 eval "$ac_cv_use_wcsrtombs"
3267 if test "$no_cache" != 1; then
3268 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3269 fi
3270
3271 if test "$wxUSE_WCSRTOMBS" = yes; then
3272 echo "$ac_t""yes" 1>&6
3273 else
3274 echo "$ac_t""no" 1>&6
3275 fi
3276
3277
3278 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
3279 echo "configure:3280: checking "for --enable-wxprintfv"" >&5
3280 no_cache=0
3281 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3282 if test "${enable_wxprintfv+set}" = set; then
3283 enableval="$enable_wxprintfv"
3284
3285 if test "$enableval" = yes; then
3286 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3287 else
3288 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3289 fi
3290
3291 else
3292
3293 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3294 if test "x$LINE" != x ; then
3295 eval "DEFAULT_$LINE"
3296 else
3297 no_cache=1
3298 fi
3299
3300 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3301
3302 fi
3303
3304
3305 eval "$ac_cv_use_wxprintfv"
3306 if test "$no_cache" != 1; then
3307 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3308 fi
3309
3310 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3311 echo "$ac_t""yes" 1>&6
3312 else
3313 echo "$ac_t""no" 1>&6
3314 fi
3315
3316
3317 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
3318 echo "configure:3319: checking "for --enable-std_iostreams"" >&5
3319 no_cache=0
3320 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3321 if test "${enable_std_iostreams+set}" = set; then
3322 enableval="$enable_std_iostreams"
3323
3324 if test "$enableval" = yes; then
3325 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3326 else
3327 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3328 fi
3329
3330 else
3331
3332 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3333 if test "x$LINE" != x ; then
3334 eval "DEFAULT_$LINE"
3335 else
3336 no_cache=1
3337 fi
3338
3339 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3340
3341 fi
3342
3343
3344 eval "$ac_cv_use_std_iostreams"
3345 if test "$no_cache" != 1; then
3346 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3347 fi
3348
3349 if test "$wxUSE_STD_IOSTREAM" = yes; then
3350 echo "$ac_t""yes" 1>&6
3351 else
3352 echo "$ac_t""no" 1>&6
3353 fi
3354
3355
3356 echo $ac_n "checking "for --enable-filesystem"""... $ac_c" 1>&6
3357 echo "configure:3358: checking "for --enable-filesystem"" >&5
3358 no_cache=0
3359 # Check whether --enable-filesystem or --disable-filesystem was given.
3360 if test "${enable_filesystem+set}" = set; then
3361 enableval="$enable_filesystem"
3362
3363 if test "$enableval" = yes; then
3364 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3365 else
3366 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3367 fi
3368
3369 else
3370
3371 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3372 if test "x$LINE" != x ; then
3373 eval "DEFAULT_$LINE"
3374 else
3375 no_cache=1
3376 fi
3377
3378 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3379
3380 fi
3381
3382
3383 eval "$ac_cv_use_filesystem"
3384 if test "$no_cache" != 1; then
3385 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3386 fi
3387
3388 if test "$wxUSE_FILESYSTEM" = yes; then
3389 echo "$ac_t""yes" 1>&6
3390 else
3391 echo "$ac_t""no" 1>&6
3392 fi
3393
3394
3395 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
3396 echo "configure:3397: checking "for --enable-fs_inet"" >&5
3397 no_cache=0
3398 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3399 if test "${enable_fs_inet+set}" = set; then
3400 enableval="$enable_fs_inet"
3401
3402 if test "$enableval" = yes; then
3403 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3404 else
3405 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3406 fi
3407
3408 else
3409
3410 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3411 if test "x$LINE" != x ; then
3412 eval "DEFAULT_$LINE"
3413 else
3414 no_cache=1
3415 fi
3416
3417 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3418
3419 fi
3420
3421
3422 eval "$ac_cv_use_fs_inet"
3423 if test "$no_cache" != 1; then
3424 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3425 fi
3426
3427 if test "$wxUSE_FS_INET" = yes; then
3428 echo "$ac_t""yes" 1>&6
3429 else
3430 echo "$ac_t""no" 1>&6
3431 fi
3432
3433
3434 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
3435 echo "configure:3436: checking "for --enable-fs_zip"" >&5
3436 no_cache=0
3437 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3438 if test "${enable_fs_zip+set}" = set; then
3439 enableval="$enable_fs_zip"
3440
3441 if test "$enableval" = yes; then
3442 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3443 else
3444 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3445 fi
3446
3447 else
3448
3449 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3450 if test "x$LINE" != x ; then
3451 eval "DEFAULT_$LINE"
3452 else
3453 no_cache=1
3454 fi
3455
3456 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3457
3458 fi
3459
3460
3461 eval "$ac_cv_use_fs_zip"
3462 if test "$no_cache" != 1; then
3463 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3464 fi
3465
3466 if test "$wxUSE_FS_ZIP" = yes; then
3467 echo "$ac_t""yes" 1>&6
3468 else
3469 echo "$ac_t""no" 1>&6
3470 fi
3471
3472
3473 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
3474 echo "configure:3475: checking "for --enable-zipstream"" >&5
3475 no_cache=0
3476 # Check whether --enable-zipstream or --disable-zipstream was given.
3477 if test "${enable_zipstream+set}" = set; then
3478 enableval="$enable_zipstream"
3479
3480 if test "$enableval" = yes; then
3481 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3482 else
3483 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3484 fi
3485
3486 else
3487
3488 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3489 if test "x$LINE" != x ; then
3490 eval "DEFAULT_$LINE"
3491 else
3492 no_cache=1
3493 fi
3494
3495 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3496
3497 fi
3498
3499
3500 eval "$ac_cv_use_zipstream"
3501 if test "$no_cache" != 1; then
3502 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3503 fi
3504
3505 if test "$wxUSE_ZIPSTREAM" = yes; then
3506 echo "$ac_t""yes" 1>&6
3507 else
3508 echo "$ac_t""no" 1>&6
3509 fi
3510
3511
3512
3513 echo $ac_n "checking "for --enable-catch_segvs"""... $ac_c" 1>&6
3514 echo "configure:3515: checking "for --enable-catch_segvs"" >&5
3515 no_cache=0
3516 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
3517 if test "${enable_catch_segvs+set}" = set; then
3518 enableval="$enable_catch_segvs"
3519
3520 if test "$enableval" = yes; then
3521 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
3522 else
3523 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
3524 fi
3525
3526 else
3527
3528 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
3529 if test "x$LINE" != x ; then
3530 eval "DEFAULT_$LINE"
3531 else
3532 no_cache=1
3533 fi
3534
3535 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
3536
3537 fi
3538
3539
3540 eval "$ac_cv_use_catch_segvs"
3541 if test "$no_cache" != 1; then
3542 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
3543 fi
3544
3545 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
3546 echo "$ac_t""yes" 1>&6
3547 else
3548 echo "$ac_t""no" 1>&6
3549 fi
3550
3551
3552
3553
3554 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
3555 echo "configure:3556: checking "for --enable-threads"" >&5
3556 no_cache=0
3557 # Check whether --enable-threads or --disable-threads was given.
3558 if test "${enable_threads+set}" = set; then
3559 enableval="$enable_threads"
3560
3561 if test "$enableval" = yes; then
3562 ac_cv_use_threads='wxUSE_THREADS=yes'
3563 else
3564 ac_cv_use_threads='wxUSE_THREADS=no'
3565 fi
3566
3567 else
3568
3569 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3570 if test "x$LINE" != x ; then
3571 eval "DEFAULT_$LINE"
3572 else
3573 no_cache=1
3574 fi
3575
3576 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3577
3578 fi
3579
3580
3581 eval "$ac_cv_use_threads"
3582 if test "$no_cache" != 1; then
3583 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3584 fi
3585
3586 if test "$wxUSE_THREADS" = yes; then
3587 echo "$ac_t""yes" 1>&6
3588 else
3589 echo "$ac_t""no" 1>&6
3590 fi
3591
3592
3593 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
3594 echo "configure:3595: checking "for --enable-serial"" >&5
3595 no_cache=0
3596 # Check whether --enable-serial or --disable-serial was given.
3597 if test "${enable_serial+set}" = set; then
3598 enableval="$enable_serial"
3599
3600 if test "$enableval" = yes; then
3601 ac_cv_use_serial='wxUSE_SERIAL=yes'
3602 else
3603 ac_cv_use_serial='wxUSE_SERIAL=no'
3604 fi
3605
3606 else
3607
3608 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3609 if test "x$LINE" != x ; then
3610 eval "DEFAULT_$LINE"
3611 else
3612 no_cache=1
3613 fi
3614
3615 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3616
3617 fi
3618
3619
3620 eval "$ac_cv_use_serial"
3621 if test "$no_cache" != 1; then
3622 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3623 fi
3624
3625 if test "$wxUSE_SERIAL" = yes; then
3626 echo "$ac_t""yes" 1>&6
3627 else
3628 echo "$ac_t""no" 1>&6
3629 fi
3630
3631
3632 if test "$wxUSE_GUI" = "yes"; then
3633
3634
3635
3636 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
3637 echo "configure:3638: checking "for --enable-docview"" >&5
3638 no_cache=0
3639 # Check whether --enable-docview or --disable-docview was given.
3640 if test "${enable_docview+set}" = set; then
3641 enableval="$enable_docview"
3642
3643 if test "$enableval" = yes; then
3644 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3645 else
3646 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3647 fi
3648
3649 else
3650
3651 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3652 if test "x$LINE" != x ; then
3653 eval "DEFAULT_$LINE"
3654 else
3655 no_cache=1
3656 fi
3657
3658 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3659
3660 fi
3661
3662
3663 eval "$ac_cv_use_docview"
3664 if test "$no_cache" != 1; then
3665 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3666 fi
3667
3668 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3669 echo "$ac_t""yes" 1>&6
3670 else
3671 echo "$ac_t""no" 1>&6
3672 fi
3673
3674
3675 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
3676 echo "configure:3677: checking "for --enable-help"" >&5
3677 no_cache=0
3678 # Check whether --enable-help or --disable-help was given.
3679 if test "${enable_help+set}" = set; then
3680 enableval="$enable_help"
3681
3682 if test "$enableval" = yes; then
3683 ac_cv_use_help='wxUSE_HELP=yes'
3684 else
3685 ac_cv_use_help='wxUSE_HELP=no'
3686 fi
3687
3688 else
3689
3690 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3691 if test "x$LINE" != x ; then
3692 eval "DEFAULT_$LINE"
3693 else
3694 no_cache=1
3695 fi
3696
3697 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3698
3699 fi
3700
3701
3702 eval "$ac_cv_use_help"
3703 if test "$no_cache" != 1; then
3704 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3705 fi
3706
3707 if test "$wxUSE_HELP" = yes; then
3708 echo "$ac_t""yes" 1>&6
3709 else
3710 echo "$ac_t""no" 1>&6
3711 fi
3712
3713
3714 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
3715 echo "configure:3716: checking "for --enable-constraints"" >&5
3716 no_cache=0
3717 # Check whether --enable-constraints or --disable-constraints was given.
3718 if test "${enable_constraints+set}" = set; then
3719 enableval="$enable_constraints"
3720
3721 if test "$enableval" = yes; then
3722 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3723 else
3724 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3725 fi
3726
3727 else
3728
3729 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3730 if test "x$LINE" != x ; then
3731 eval "DEFAULT_$LINE"
3732 else
3733 no_cache=1
3734 fi
3735
3736 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3737
3738 fi
3739
3740
3741 eval "$ac_cv_use_constraints"
3742 if test "$no_cache" != 1; then
3743 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3744 fi
3745
3746 if test "$wxUSE_CONSTRAINTS" = yes; then
3747 echo "$ac_t""yes" 1>&6
3748 else
3749 echo "$ac_t""no" 1>&6
3750 fi
3751
3752
3753 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
3754 echo "configure:3755: checking "for --enable-printarch"" >&5
3755 no_cache=0
3756 # Check whether --enable-printarch or --disable-printarch was given.
3757 if test "${enable_printarch+set}" = set; then
3758 enableval="$enable_printarch"
3759
3760 if test "$enableval" = yes; then
3761 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3762 else
3763 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3764 fi
3765
3766 else
3767
3768 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3769 if test "x$LINE" != x ; then
3770 eval "DEFAULT_$LINE"
3771 else
3772 no_cache=1
3773 fi
3774
3775 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3776
3777 fi
3778
3779
3780 eval "$ac_cv_use_printarch"
3781 if test "$no_cache" != 1; then
3782 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3783 fi
3784
3785 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3786 echo "$ac_t""yes" 1>&6
3787 else
3788 echo "$ac_t""no" 1>&6
3789 fi
3790
3791
3792 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
3793 echo "configure:3794: checking "for --enable-mdi"" >&5
3794 no_cache=0
3795 # Check whether --enable-mdi or --disable-mdi was given.
3796 if test "${enable_mdi+set}" = set; then
3797 enableval="$enable_mdi"
3798
3799 if test "$enableval" = yes; then
3800 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3801 else
3802 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3803 fi
3804
3805 else
3806
3807 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3808 if test "x$LINE" != x ; then
3809 eval "DEFAULT_$LINE"
3810 else
3811 no_cache=1
3812 fi
3813
3814 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3815
3816 fi
3817
3818
3819 eval "$ac_cv_use_mdi"
3820 if test "$no_cache" != 1; then
3821 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3822 fi
3823
3824 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3825 echo "$ac_t""yes" 1>&6
3826 else
3827 echo "$ac_t""no" 1>&6
3828 fi
3829
3830
3831
3832 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
3833 echo "configure:3834: checking "for --enable-postscript"" >&5
3834 no_cache=0
3835 # Check whether --enable-postscript or --disable-postscript was given.
3836 if test "${enable_postscript+set}" = set; then
3837 enableval="$enable_postscript"
3838
3839 if test "$enableval" = yes; then
3840 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3841 else
3842 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3843 fi
3844
3845 else
3846
3847 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3848 if test "x$LINE" != x ; then
3849 eval "DEFAULT_$LINE"
3850 else
3851 no_cache=1
3852 fi
3853
3854 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3855
3856 fi
3857
3858
3859 eval "$ac_cv_use_postscript"
3860 if test "$no_cache" != 1; then
3861 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3862 fi
3863
3864 if test "$wxUSE_POSTSCRIPT" = yes; then
3865 echo "$ac_t""yes" 1>&6
3866 else
3867 echo "$ac_t""no" 1>&6
3868 fi
3869
3870
3871
3872
3873 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
3874 echo "configure:3875: checking "for --enable-prologio"" >&5
3875 no_cache=0
3876 # Check whether --enable-prologio or --disable-prologio was given.
3877 if test "${enable_prologio+set}" = set; then
3878 enableval="$enable_prologio"
3879
3880 if test "$enableval" = yes; then
3881 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3882 else
3883 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3884 fi
3885
3886 else
3887
3888 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3889 if test "x$LINE" != x ; then
3890 eval "DEFAULT_$LINE"
3891 else
3892 no_cache=1
3893 fi
3894
3895 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3896
3897 fi
3898
3899
3900 eval "$ac_cv_use_prologio"
3901 if test "$no_cache" != 1; then
3902 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3903 fi
3904
3905 if test "$wxUSE_PROLOGIO" = yes; then
3906 echo "$ac_t""yes" 1>&6
3907 else
3908 echo "$ac_t""no" 1>&6
3909 fi
3910
3911
3912 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
3913 echo "configure:3914: checking "for --enable-resources"" >&5
3914 no_cache=0
3915 # Check whether --enable-resources or --disable-resources was given.
3916 if test "${enable_resources+set}" = set; then
3917 enableval="$enable_resources"
3918
3919 if test "$enableval" = yes; then
3920 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3921 else
3922 ac_cv_use_resources='wxUSE_RESOURCES=no'
3923 fi
3924
3925 else
3926
3927 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3928 if test "x$LINE" != x ; then
3929 eval "DEFAULT_$LINE"
3930 else
3931 no_cache=1
3932 fi
3933
3934 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3935
3936 fi
3937
3938
3939 eval "$ac_cv_use_resources"
3940 if test "$no_cache" != 1; then
3941 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3942 fi
3943
3944 if test "$wxUSE_RESOURCES" = yes; then
3945 echo "$ac_t""yes" 1>&6
3946 else
3947 echo "$ac_t""no" 1>&6
3948 fi
3949
3950
3951
3952 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
3953 echo "configure:3954: checking "for --enable-xresources"" >&5
3954 no_cache=0
3955 # Check whether --enable-xresources or --disable-xresources was given.
3956 if test "${enable_xresources+set}" = set; then
3957 enableval="$enable_xresources"
3958
3959 if test "$enableval" = yes; then
3960 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3961 else
3962 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3963 fi
3964
3965 else
3966
3967 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3968 if test "x$LINE" != x ; then
3969 eval "DEFAULT_$LINE"
3970 else
3971 no_cache=1
3972 fi
3973
3974 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3975
3976 fi
3977
3978
3979 eval "$ac_cv_use_xresources"
3980 if test "$no_cache" != 1; then
3981 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3982 fi
3983
3984 if test "$wxUSE_X_RESOURCES" = yes; then
3985 echo "$ac_t""yes" 1>&6
3986 else
3987 echo "$ac_t""no" 1>&6
3988 fi
3989
3990
3991
3992
3993 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
3994 echo "configure:3995: checking "for --enable-clipboard"" >&5
3995 no_cache=0
3996 # Check whether --enable-clipboard or --disable-clipboard was given.
3997 if test "${enable_clipboard+set}" = set; then
3998 enableval="$enable_clipboard"
3999
4000 if test "$enableval" = yes; then
4001 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4002 else
4003 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4004 fi
4005
4006 else
4007
4008 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4009 if test "x$LINE" != x ; then
4010 eval "DEFAULT_$LINE"
4011 else
4012 no_cache=1
4013 fi
4014
4015 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
4016
4017 fi
4018
4019
4020 eval "$ac_cv_use_clipboard"
4021 if test "$no_cache" != 1; then
4022 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4023 fi
4024
4025 if test "$wxUSE_CLIPBOARD" = yes; then
4026 echo "$ac_t""yes" 1>&6
4027 else
4028 echo "$ac_t""no" 1>&6
4029 fi
4030
4031
4032 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
4033 echo "configure:4034: checking "for --enable-dnd"" >&5
4034 no_cache=0
4035 # Check whether --enable-dnd or --disable-dnd was given.
4036 if test "${enable_dnd+set}" = set; then
4037 enableval="$enable_dnd"
4038
4039 if test "$enableval" = yes; then
4040 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4041 else
4042 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4043 fi
4044
4045 else
4046
4047 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4048 if test "x$LINE" != x ; then
4049 eval "DEFAULT_$LINE"
4050 else
4051 no_cache=1
4052 fi
4053
4054 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
4055
4056 fi
4057
4058
4059 eval "$ac_cv_use_dnd"
4060 if test "$no_cache" != 1; then
4061 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4062 fi
4063
4064 if test "$wxUSE_DRAG_AND_DROP" = yes; then
4065 echo "$ac_t""yes" 1>&6
4066 else
4067 echo "$ac_t""no" 1>&6
4068 fi
4069
4070
4071 echo $ac_n "checking "for --enable-metafile"""... $ac_c" 1>&6
4072 echo "configure:4073: checking "for --enable-metafile"" >&5
4073 no_cache=0
4074 # Check whether --enable-metafile or --disable-metafile was given.
4075 if test "${enable_metafile+set}" = set; then
4076 enableval="$enable_metafile"
4077
4078 if test "$enableval" = yes; then
4079 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4080 else
4081 ac_cv_use_metafile='wxUSE_METAFILE=no'
4082 fi
4083
4084 else
4085
4086 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4087 if test "x$LINE" != x ; then
4088 eval "DEFAULT_$LINE"
4089 else
4090 no_cache=1
4091 fi
4092
4093 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
4094
4095 fi
4096
4097
4098 eval "$ac_cv_use_metafile"
4099 if test "$no_cache" != 1; then
4100 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4101 fi
4102
4103 if test "$wxUSE_METAFILE" = yes; then
4104 echo "$ac_t""yes" 1>&6
4105 else
4106 echo "$ac_t""no" 1>&6
4107 fi
4108
4109
4110
4111 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
4112 echo "configure:4113: checking "for --enable-wxtree"" >&5
4113 no_cache=0
4114 # Check whether --enable-wxtree or --disable-wxtree was given.
4115 if test "${enable_wxtree+set}" = set; then
4116 enableval="$enable_wxtree"
4117
4118 if test "$enableval" = yes; then
4119 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
4120 else
4121 ac_cv_use_wxtree='wxUSE_WXTREE=no'
4122 fi
4123
4124 else
4125
4126 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
4127 if test "x$LINE" != x ; then
4128 eval "DEFAULT_$LINE"
4129 else
4130 no_cache=1
4131 fi
4132
4133 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
4134
4135 fi
4136
4137
4138 eval "$ac_cv_use_wxtree"
4139 if test "$no_cache" != 1; then
4140 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
4141 fi
4142
4143 if test "$wxUSE_WXTREE" = yes; then
4144 echo "$ac_t""yes" 1>&6
4145 else
4146 echo "$ac_t""no" 1>&6
4147 fi
4148
4149
4150
4151
4152 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
4153 echo "configure:4154: checking "for --enable-controls"" >&5
4154 no_cache=0
4155 # Check whether --enable-controls or --disable-controls was given.
4156 if test "${enable_controls+set}" = set; then
4157 enableval="$enable_controls"
4158
4159 if test "$enableval" = yes; then
4160 ac_cv_use_controls='wxUSE_CONTROLS=yes'
4161 else
4162 ac_cv_use_controls='wxUSE_CONTROLS=no'
4163 fi
4164
4165 else
4166
4167 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
4168 if test "x$LINE" != x ; then
4169 eval "DEFAULT_$LINE"
4170 else
4171 no_cache=1
4172 fi
4173
4174 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
4175
4176 fi
4177
4178
4179 eval "$ac_cv_use_controls"
4180 if test "$no_cache" != 1; then
4181 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
4182 fi
4183
4184 if test "$wxUSE_CONTROLS" = yes; then
4185 echo "$ac_t""yes" 1>&6
4186 else
4187 echo "$ac_t""no" 1>&6
4188 fi
4189
4190
4191 if test "$wxUSE_CONTROLS" = "yes"; then
4192 DEFAULT_wxUSE_ACCEL=yes
4193 DEFAULT_wxUSE_CARET=yes
4194 DEFAULT_wxUSE_COMBOBOX=yes
4195 DEFAULT_wxUSE_BMPBUTTON=yes
4196 DEFAULT_wxUSE_CHECKBOX=yes
4197 DEFAULT_wxUSE_CHECKLISTBOX=yes
4198 DEFAULT_wxUSE_CHOICE=yes
4199 DEFAULT_wxUSE_GAUGE=yes
4200 DEFAULT_wxUSE_GRID=yes
4201 DEFAULT_wxUSE_NEW_GRID=yes
4202 DEFAULT_wxUSE_IMAGLIST=yes
4203 DEFAULT_wxUSE_LISTBOX=yes
4204 DEFAULT_wxUSE_LISTCTRL=yes
4205 DEFAULT_wxUSE_NOTEBOOK=yes
4206 DEFAULT_wxUSE_RADIOBOX=yes
4207 DEFAULT_wxUSE_RADIOBTN=yes
4208 DEFAULT_wxUSE_SASH=yes
4209 DEFAULT_wxUSE_SCROLLBAR=yes
4210 DEFAULT_wxUSE_SLIDER=yes
4211 DEFAULT_wxUSE_SPINBTN=yes
4212 DEFAULT_wxUSE_SPINCTRL=yes
4213 DEFAULT_wxUSE_SPLITTER=yes
4214 DEFAULT_wxUSE_STATBMP=yes
4215 DEFAULT_wxUSE_STATBOX=yes
4216 DEFAULT_wxUSE_STATLINE=yes
4217 DEFAULT_wxUSE_STATUSBAR=yes
4218 DEFAULT_wxUSE_TAB_DIALOG=yes
4219 DEFAULT_wxUSE_TOGGLEBTN=yes
4220 DEFAULT_wxUSE_TOOLBAR=yes
4221 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
4222 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
4223 DEFAULT_wxUSE_TOOLTIPS=yes
4224 DEFAULT_wxUSE_TREECTRL=yes
4225 elif test "$wxUSE_CONTROLS" = "no"; then
4226 DEFAULT_wxUSE_ACCEL=no
4227 DEFAULT_wxUSE_CARET=no
4228 DEFAULT_wxUSE_COMBOBOX=no
4229 DEFAULT_wxUSE_BMPBUTTON=no
4230 DEFAULT_wxUSE_CHECKBOX=no
4231 DEFAULT_wxUSE_CHECKLISTBOX=no
4232 DEFAULT_wxUSE_CHOICE=no
4233 DEFAULT_wxUSE_GAUGE=no
4234 DEFAULT_wxUSE_GRID=no
4235 DEFAULT_wxUSE_NEW_GRID=no
4236 DEFAULT_wxUSE_IMAGLIST=no
4237 DEFAULT_wxUSE_LISTBOX=no
4238 DEFAULT_wxUSE_LISTCTRL=no
4239 DEFAULT_wxUSE_NOTEBOOK=no
4240 DEFAULT_wxUSE_RADIOBOX=no
4241 DEFAULT_wxUSE_RADIOBTN=no
4242 DEFAULT_wxUSE_SASH=no
4243 DEFAULT_wxUSE_SCROLLBAR=no
4244 DEFAULT_wxUSE_SLIDER=no
4245 DEFAULT_wxUSE_SPINBTN=no
4246 DEFAULT_wxUSE_SPINCTRL=no
4247 DEFAULT_wxUSE_SPLITTER=no
4248 DEFAULT_wxUSE_STATBMP=no
4249 DEFAULT_wxUSE_STATBOX=no
4250 DEFAULT_wxUSE_STATLINE=no
4251 DEFAULT_wxUSE_STATUSBAR=no
4252 DEFAULT_wxUSE_TAB_DIALOG=no
4253 DEFAULT_wxUSE_TOGGLEBTN=no
4254 DEFAULT_wxUSE_TOOLBAR=no
4255 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
4256 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
4257 DEFAULT_wxUSE_TOOLTIPS=no
4258 DEFAULT_wxUSE_TREECTRL=no
4259 fi
4260
4261
4262 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
4263 echo "configure:4264: checking "for --enable-accel"" >&5
4264 no_cache=0
4265 # Check whether --enable-accel or --disable-accel was given.
4266 if test "${enable_accel+set}" = set; then
4267 enableval="$enable_accel"
4268
4269 if test "$enableval" = yes; then
4270 ac_cv_use_accel='wxUSE_ACCEL=yes'
4271 else
4272 ac_cv_use_accel='wxUSE_ACCEL=no'
4273 fi
4274
4275 else
4276
4277 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
4278 if test "x$LINE" != x ; then
4279 eval "DEFAULT_$LINE"
4280 else
4281 no_cache=1
4282 fi
4283
4284 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
4285
4286 fi
4287
4288
4289 eval "$ac_cv_use_accel"
4290 if test "$no_cache" != 1; then
4291 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
4292 fi
4293
4294 if test "$wxUSE_ACCEL" = yes; then
4295 echo "$ac_t""yes" 1>&6
4296 else
4297 echo "$ac_t""no" 1>&6
4298 fi
4299
4300
4301 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
4302 echo "configure:4303: checking "for --enable-caret"" >&5
4303 no_cache=0
4304 # Check whether --enable-caret or --disable-caret was given.
4305 if test "${enable_caret+set}" = set; then
4306 enableval="$enable_caret"
4307
4308 if test "$enableval" = yes; then
4309 ac_cv_use_caret='wxUSE_CARET=yes'
4310 else
4311 ac_cv_use_caret='wxUSE_CARET=no'
4312 fi
4313
4314 else
4315
4316 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
4317 if test "x$LINE" != x ; then
4318 eval "DEFAULT_$LINE"
4319 else
4320 no_cache=1
4321 fi
4322
4323 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
4324
4325 fi
4326
4327
4328 eval "$ac_cv_use_caret"
4329 if test "$no_cache" != 1; then
4330 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4331 fi
4332
4333 if test "$wxUSE_CARET" = yes; then
4334 echo "$ac_t""yes" 1>&6
4335 else
4336 echo "$ac_t""no" 1>&6
4337 fi
4338
4339
4340 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
4341 echo "configure:4342: checking "for --enable-bmpbutton"" >&5
4342 no_cache=0
4343 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4344 if test "${enable_bmpbutton+set}" = set; then
4345 enableval="$enable_bmpbutton"
4346
4347 if test "$enableval" = yes; then
4348 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4349 else
4350 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4351 fi
4352
4353 else
4354
4355 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4356 if test "x$LINE" != x ; then
4357 eval "DEFAULT_$LINE"
4358 else
4359 no_cache=1
4360 fi
4361
4362 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4363
4364 fi
4365
4366
4367 eval "$ac_cv_use_bmpbutton"
4368 if test "$no_cache" != 1; then
4369 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4370 fi
4371
4372 if test "$wxUSE_BMPBUTTON" = yes; then
4373 echo "$ac_t""yes" 1>&6
4374 else
4375 echo "$ac_t""no" 1>&6
4376 fi
4377
4378
4379 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
4380 echo "configure:4381: checking "for --enable-checkbox"" >&5
4381 no_cache=0
4382 # Check whether --enable-checkbox or --disable-checkbox was given.
4383 if test "${enable_checkbox+set}" = set; then
4384 enableval="$enable_checkbox"
4385
4386 if test "$enableval" = yes; then
4387 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4388 else
4389 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4390 fi
4391
4392 else
4393
4394 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4395 if test "x$LINE" != x ; then
4396 eval "DEFAULT_$LINE"
4397 else
4398 no_cache=1
4399 fi
4400
4401 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4402
4403 fi
4404
4405
4406 eval "$ac_cv_use_checkbox"
4407 if test "$no_cache" != 1; then
4408 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4409 fi
4410
4411 if test "$wxUSE_CHECKBOX" = yes; then
4412 echo "$ac_t""yes" 1>&6
4413 else
4414 echo "$ac_t""no" 1>&6
4415 fi
4416
4417
4418 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
4419 echo "configure:4420: checking "for --enable-checklst"" >&5
4420 no_cache=0
4421 # Check whether --enable-checklst or --disable-checklst was given.
4422 if test "${enable_checklst+set}" = set; then
4423 enableval="$enable_checklst"
4424
4425 if test "$enableval" = yes; then
4426 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4427 else
4428 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4429 fi
4430
4431 else
4432
4433 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4434 if test "x$LINE" != x ; then
4435 eval "DEFAULT_$LINE"
4436 else
4437 no_cache=1
4438 fi
4439
4440 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4441
4442 fi
4443
4444
4445 eval "$ac_cv_use_checklst"
4446 if test "$no_cache" != 1; then
4447 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4448 fi
4449
4450 if test "$wxUSE_CHECKLST" = yes; then
4451 echo "$ac_t""yes" 1>&6
4452 else
4453 echo "$ac_t""no" 1>&6
4454 fi
4455
4456
4457 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
4458 echo "configure:4459: checking "for --enable-choice"" >&5
4459 no_cache=0
4460 # Check whether --enable-choice or --disable-choice was given.
4461 if test "${enable_choice+set}" = set; then
4462 enableval="$enable_choice"
4463
4464 if test "$enableval" = yes; then
4465 ac_cv_use_choice='wxUSE_CHOICE=yes'
4466 else
4467 ac_cv_use_choice='wxUSE_CHOICE=no'
4468 fi
4469
4470 else
4471
4472 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4473 if test "x$LINE" != x ; then
4474 eval "DEFAULT_$LINE"
4475 else
4476 no_cache=1
4477 fi
4478
4479 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4480
4481 fi
4482
4483
4484 eval "$ac_cv_use_choice"
4485 if test "$no_cache" != 1; then
4486 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4487 fi
4488
4489 if test "$wxUSE_CHOICE" = yes; then
4490 echo "$ac_t""yes" 1>&6
4491 else
4492 echo "$ac_t""no" 1>&6
4493 fi
4494
4495
4496 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
4497 echo "configure:4498: checking "for --enable-combobox"" >&5
4498 no_cache=0
4499 # Check whether --enable-combobox or --disable-combobox was given.
4500 if test "${enable_combobox+set}" = set; then
4501 enableval="$enable_combobox"
4502
4503 if test "$enableval" = yes; then
4504 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4505 else
4506 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4507 fi
4508
4509 else
4510
4511 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4512 if test "x$LINE" != x ; then
4513 eval "DEFAULT_$LINE"
4514 else
4515 no_cache=1
4516 fi
4517
4518 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4519
4520 fi
4521
4522
4523 eval "$ac_cv_use_combobox"
4524 if test "$no_cache" != 1; then
4525 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4526 fi
4527
4528 if test "$wxUSE_COMBOBOX" = yes; then
4529 echo "$ac_t""yes" 1>&6
4530 else
4531 echo "$ac_t""no" 1>&6
4532 fi
4533
4534
4535 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
4536 echo "configure:4537: checking "for --enable-gauge"" >&5
4537 no_cache=0
4538 # Check whether --enable-gauge or --disable-gauge was given.
4539 if test "${enable_gauge+set}" = set; then
4540 enableval="$enable_gauge"
4541
4542 if test "$enableval" = yes; then
4543 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4544 else
4545 ac_cv_use_gauge='wxUSE_GAUGE=no'
4546 fi
4547
4548 else
4549
4550 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4551 if test "x$LINE" != x ; then
4552 eval "DEFAULT_$LINE"
4553 else
4554 no_cache=1
4555 fi
4556
4557 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4558
4559 fi
4560
4561
4562 eval "$ac_cv_use_gauge"
4563 if test "$no_cache" != 1; then
4564 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4565 fi
4566
4567 if test "$wxUSE_GAUGE" = yes; then
4568 echo "$ac_t""yes" 1>&6
4569 else
4570 echo "$ac_t""no" 1>&6
4571 fi
4572
4573
4574 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
4575 echo "configure:4576: checking "for --enable-grid"" >&5
4576 no_cache=0
4577 # Check whether --enable-grid or --disable-grid was given.
4578 if test "${enable_grid+set}" = set; then
4579 enableval="$enable_grid"
4580
4581 if test "$enableval" = yes; then
4582 ac_cv_use_grid='wxUSE_GRID=yes'
4583 else
4584 ac_cv_use_grid='wxUSE_GRID=no'
4585 fi
4586
4587 else
4588
4589 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4590 if test "x$LINE" != x ; then
4591 eval "DEFAULT_$LINE"
4592 else
4593 no_cache=1
4594 fi
4595
4596 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4597
4598 fi
4599
4600
4601 eval "$ac_cv_use_grid"
4602 if test "$no_cache" != 1; then
4603 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4604 fi
4605
4606 if test "$wxUSE_GRID" = yes; then
4607 echo "$ac_t""yes" 1>&6
4608 else
4609 echo "$ac_t""no" 1>&6
4610 fi
4611
4612
4613 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
4614 echo "configure:4615: checking "for --enable-newgrid"" >&5
4615 no_cache=0
4616 # Check whether --enable-newgrid or --disable-newgrid was given.
4617 if test "${enable_newgrid+set}" = set; then
4618 enableval="$enable_newgrid"
4619
4620 if test "$enableval" = yes; then
4621 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4622 else
4623 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4624 fi
4625
4626 else
4627
4628 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4629 if test "x$LINE" != x ; then
4630 eval "DEFAULT_$LINE"
4631 else
4632 no_cache=1
4633 fi
4634
4635 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4636
4637 fi
4638
4639
4640 eval "$ac_cv_use_newgrid"
4641 if test "$no_cache" != 1; then
4642 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4643 fi
4644
4645 if test "$wxUSE_NEW_GRID" = yes; then
4646 echo "$ac_t""yes" 1>&6
4647 else
4648 echo "$ac_t""no" 1>&6
4649 fi
4650
4651
4652 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
4653 echo "configure:4654: checking "for --enable-imaglist"" >&5
4654 no_cache=0
4655 # Check whether --enable-imaglist or --disable-imaglist was given.
4656 if test "${enable_imaglist+set}" = set; then
4657 enableval="$enable_imaglist"
4658
4659 if test "$enableval" = yes; then
4660 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4661 else
4662 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4663 fi
4664
4665 else
4666
4667 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4668 if test "x$LINE" != x ; then
4669 eval "DEFAULT_$LINE"
4670 else
4671 no_cache=1
4672 fi
4673
4674 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4675
4676 fi
4677
4678
4679 eval "$ac_cv_use_imaglist"
4680 if test "$no_cache" != 1; then
4681 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4682 fi
4683
4684 if test "$wxUSE_IMAGLIST" = yes; then
4685 echo "$ac_t""yes" 1>&6
4686 else
4687 echo "$ac_t""no" 1>&6
4688 fi
4689
4690
4691 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
4692 echo "configure:4693: checking "for --enable-listbox"" >&5
4693 no_cache=0
4694 # Check whether --enable-listbox or --disable-listbox was given.
4695 if test "${enable_listbox+set}" = set; then
4696 enableval="$enable_listbox"
4697
4698 if test "$enableval" = yes; then
4699 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4700 else
4701 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4702 fi
4703
4704 else
4705
4706 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4707 if test "x$LINE" != x ; then
4708 eval "DEFAULT_$LINE"
4709 else
4710 no_cache=1
4711 fi
4712
4713 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4714
4715 fi
4716
4717
4718 eval "$ac_cv_use_listbox"
4719 if test "$no_cache" != 1; then
4720 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4721 fi
4722
4723 if test "$wxUSE_LISTBOX" = yes; then
4724 echo "$ac_t""yes" 1>&6
4725 else
4726 echo "$ac_t""no" 1>&6
4727 fi
4728
4729
4730 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
4731 echo "configure:4732: checking "for --enable-listctrl"" >&5
4732 no_cache=0
4733 # Check whether --enable-listctrl or --disable-listctrl was given.
4734 if test "${enable_listctrl+set}" = set; then
4735 enableval="$enable_listctrl"
4736
4737 if test "$enableval" = yes; then
4738 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4739 else
4740 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4741 fi
4742
4743 else
4744
4745 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4746 if test "x$LINE" != x ; then
4747 eval "DEFAULT_$LINE"
4748 else
4749 no_cache=1
4750 fi
4751
4752 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4753
4754 fi
4755
4756
4757 eval "$ac_cv_use_listctrl"
4758 if test "$no_cache" != 1; then
4759 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4760 fi
4761
4762 if test "$wxUSE_LISTCTRL" = yes; then
4763 echo "$ac_t""yes" 1>&6
4764 else
4765 echo "$ac_t""no" 1>&6
4766 fi
4767
4768
4769 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
4770 echo "configure:4771: checking "for --enable-notebook"" >&5
4771 no_cache=0
4772 # Check whether --enable-notebook or --disable-notebook was given.
4773 if test "${enable_notebook+set}" = set; then
4774 enableval="$enable_notebook"
4775
4776 if test "$enableval" = yes; then
4777 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4778 else
4779 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4780 fi
4781
4782 else
4783
4784 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4785 if test "x$LINE" != x ; then
4786 eval "DEFAULT_$LINE"
4787 else
4788 no_cache=1
4789 fi
4790
4791 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4792
4793 fi
4794
4795
4796 eval "$ac_cv_use_notebook"
4797 if test "$no_cache" != 1; then
4798 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4799 fi
4800
4801 if test "$wxUSE_NOTEBOOK" = yes; then
4802 echo "$ac_t""yes" 1>&6
4803 else
4804 echo "$ac_t""no" 1>&6
4805 fi
4806
4807
4808 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
4809 echo "configure:4810: checking "for --enable-radiobox"" >&5
4810 no_cache=0
4811 # Check whether --enable-radiobox or --disable-radiobox was given.
4812 if test "${enable_radiobox+set}" = set; then
4813 enableval="$enable_radiobox"
4814
4815 if test "$enableval" = yes; then
4816 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4817 else
4818 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4819 fi
4820
4821 else
4822
4823 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4824 if test "x$LINE" != x ; then
4825 eval "DEFAULT_$LINE"
4826 else
4827 no_cache=1
4828 fi
4829
4830 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4831
4832 fi
4833
4834
4835 eval "$ac_cv_use_radiobox"
4836 if test "$no_cache" != 1; then
4837 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4838 fi
4839
4840 if test "$wxUSE_RADIOBOX" = yes; then
4841 echo "$ac_t""yes" 1>&6
4842 else
4843 echo "$ac_t""no" 1>&6
4844 fi
4845
4846
4847 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
4848 echo "configure:4849: checking "for --enable-radiobtn"" >&5
4849 no_cache=0
4850 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4851 if test "${enable_radiobtn+set}" = set; then
4852 enableval="$enable_radiobtn"
4853
4854 if test "$enableval" = yes; then
4855 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4856 else
4857 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4858 fi
4859
4860 else
4861
4862 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4863 if test "x$LINE" != x ; then
4864 eval "DEFAULT_$LINE"
4865 else
4866 no_cache=1
4867 fi
4868
4869 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4870
4871 fi
4872
4873
4874 eval "$ac_cv_use_radiobtn"
4875 if test "$no_cache" != 1; then
4876 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4877 fi
4878
4879 if test "$wxUSE_RADIOBTN" = yes; then
4880 echo "$ac_t""yes" 1>&6
4881 else
4882 echo "$ac_t""no" 1>&6
4883 fi
4884
4885
4886 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
4887 echo "configure:4888: checking "for --enable-sash"" >&5
4888 no_cache=0
4889 # Check whether --enable-sash or --disable-sash was given.
4890 if test "${enable_sash+set}" = set; then
4891 enableval="$enable_sash"
4892
4893 if test "$enableval" = yes; then
4894 ac_cv_use_sash='wxUSE_SASH=yes'
4895 else
4896 ac_cv_use_sash='wxUSE_SASH=no'
4897 fi
4898
4899 else
4900
4901 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4902 if test "x$LINE" != x ; then
4903 eval "DEFAULT_$LINE"
4904 else
4905 no_cache=1
4906 fi
4907
4908 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4909
4910 fi
4911
4912
4913 eval "$ac_cv_use_sash"
4914 if test "$no_cache" != 1; then
4915 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4916 fi
4917
4918 if test "$wxUSE_SASH" = yes; then
4919 echo "$ac_t""yes" 1>&6
4920 else
4921 echo "$ac_t""no" 1>&6
4922 fi
4923
4924
4925 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
4926 echo "configure:4927: checking "for --enable-scrollbar"" >&5
4927 no_cache=0
4928 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4929 if test "${enable_scrollbar+set}" = set; then
4930 enableval="$enable_scrollbar"
4931
4932 if test "$enableval" = yes; then
4933 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4934 else
4935 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4936 fi
4937
4938 else
4939
4940 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4941 if test "x$LINE" != x ; then
4942 eval "DEFAULT_$LINE"
4943 else
4944 no_cache=1
4945 fi
4946
4947 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4948
4949 fi
4950
4951
4952 eval "$ac_cv_use_scrollbar"
4953 if test "$no_cache" != 1; then
4954 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4955 fi
4956
4957 if test "$wxUSE_SCROLLBAR" = yes; then
4958 echo "$ac_t""yes" 1>&6
4959 else
4960 echo "$ac_t""no" 1>&6
4961 fi
4962
4963
4964 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
4965 echo "configure:4966: checking "for --enable-slider"" >&5
4966 no_cache=0
4967 # Check whether --enable-slider or --disable-slider was given.
4968 if test "${enable_slider+set}" = set; then
4969 enableval="$enable_slider"
4970
4971 if test "$enableval" = yes; then
4972 ac_cv_use_slider='wxUSE_SLIDER=yes'
4973 else
4974 ac_cv_use_slider='wxUSE_SLIDER=no'
4975 fi
4976
4977 else
4978
4979 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4980 if test "x$LINE" != x ; then
4981 eval "DEFAULT_$LINE"
4982 else
4983 no_cache=1
4984 fi
4985
4986 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4987
4988 fi
4989
4990
4991 eval "$ac_cv_use_slider"
4992 if test "$no_cache" != 1; then
4993 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4994 fi
4995
4996 if test "$wxUSE_SLIDER" = yes; then
4997 echo "$ac_t""yes" 1>&6
4998 else
4999 echo "$ac_t""no" 1>&6
5000 fi
5001
5002
5003 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
5004 echo "configure:5005: checking "for --enable-spinbtn"" >&5
5005 no_cache=0
5006 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5007 if test "${enable_spinbtn+set}" = set; then
5008 enableval="$enable_spinbtn"
5009
5010 if test "$enableval" = yes; then
5011 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5012 else
5013 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
5014 fi
5015
5016 else
5017
5018 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
5019 if test "x$LINE" != x ; then
5020 eval "DEFAULT_$LINE"
5021 else
5022 no_cache=1
5023 fi
5024
5025 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
5026
5027 fi
5028
5029
5030 eval "$ac_cv_use_spinbtn"
5031 if test "$no_cache" != 1; then
5032 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
5033 fi
5034
5035 if test "$wxUSE_SPINBTN" = yes; then
5036 echo "$ac_t""yes" 1>&6
5037 else
5038 echo "$ac_t""no" 1>&6
5039 fi
5040
5041
5042 echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6
5043 echo "configure:5044: checking "for --enable-spinctrl"" >&5
5044 no_cache=0
5045 # Check whether --enable-spinctrl or --disable-spinctrl was given.
5046 if test "${enable_spinctrl+set}" = set; then
5047 enableval="$enable_spinctrl"
5048
5049 if test "$enableval" = yes; then
5050 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
5051 else
5052 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
5053 fi
5054
5055 else
5056
5057 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
5058 if test "x$LINE" != x ; then
5059 eval "DEFAULT_$LINE"
5060 else
5061 no_cache=1
5062 fi
5063
5064 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
5065
5066 fi
5067
5068
5069 eval "$ac_cv_use_spinctrl"
5070 if test "$no_cache" != 1; then
5071 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
5072 fi
5073
5074 if test "$wxUSE_SPINCTRL" = yes; then
5075 echo "$ac_t""yes" 1>&6
5076 else
5077 echo "$ac_t""no" 1>&6
5078 fi
5079
5080
5081 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
5082 echo "configure:5083: checking "for --enable-splitter"" >&5
5083 no_cache=0
5084 # Check whether --enable-splitter or --disable-splitter was given.
5085 if test "${enable_splitter+set}" = set; then
5086 enableval="$enable_splitter"
5087
5088 if test "$enableval" = yes; then
5089 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
5090 else
5091 ac_cv_use_splitter='wxUSE_SPLITTER=no'
5092 fi
5093
5094 else
5095
5096 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
5097 if test "x$LINE" != x ; then
5098 eval "DEFAULT_$LINE"
5099 else
5100 no_cache=1
5101 fi
5102
5103 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
5104
5105 fi
5106
5107
5108 eval "$ac_cv_use_splitter"
5109 if test "$no_cache" != 1; then
5110 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
5111 fi
5112
5113 if test "$wxUSE_SPLITTER" = yes; then
5114 echo "$ac_t""yes" 1>&6
5115 else
5116 echo "$ac_t""no" 1>&6
5117 fi
5118
5119
5120 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
5121 echo "configure:5122: checking "for --enable-statbmp"" >&5
5122 no_cache=0
5123 # Check whether --enable-statbmp or --disable-statbmp was given.
5124 if test "${enable_statbmp+set}" = set; then
5125 enableval="$enable_statbmp"
5126
5127 if test "$enableval" = yes; then
5128 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
5129 else
5130 ac_cv_use_statbmp='wxUSE_STATBMP=no'
5131 fi
5132
5133 else
5134
5135 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
5136 if test "x$LINE" != x ; then
5137 eval "DEFAULT_$LINE"
5138 else
5139 no_cache=1
5140 fi
5141
5142 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
5143
5144 fi
5145
5146
5147 eval "$ac_cv_use_statbmp"
5148 if test "$no_cache" != 1; then
5149 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
5150 fi
5151
5152 if test "$wxUSE_STATBMP" = yes; then
5153 echo "$ac_t""yes" 1>&6
5154 else
5155 echo "$ac_t""no" 1>&6
5156 fi
5157
5158
5159 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
5160 echo "configure:5161: checking "for --enable-statbox"" >&5
5161 no_cache=0
5162 # Check whether --enable-statbox or --disable-statbox was given.
5163 if test "${enable_statbox+set}" = set; then
5164 enableval="$enable_statbox"
5165
5166 if test "$enableval" = yes; then
5167 ac_cv_use_statbox='wxUSE_STATBOX=yes'
5168 else
5169 ac_cv_use_statbox='wxUSE_STATBOX=no'
5170 fi
5171
5172 else
5173
5174 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
5175 if test "x$LINE" != x ; then
5176 eval "DEFAULT_$LINE"
5177 else
5178 no_cache=1
5179 fi
5180
5181 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
5182
5183 fi
5184
5185
5186 eval "$ac_cv_use_statbox"
5187 if test "$no_cache" != 1; then
5188 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
5189 fi
5190
5191 if test "$wxUSE_STATBOX" = yes; then
5192 echo "$ac_t""yes" 1>&6
5193 else
5194 echo "$ac_t""no" 1>&6
5195 fi
5196
5197
5198 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
5199 echo "configure:5200: checking "for --enable-statline"" >&5
5200 no_cache=0
5201 # Check whether --enable-statline or --disable-statline was given.
5202 if test "${enable_statline+set}" = set; then
5203 enableval="$enable_statline"
5204
5205 if test "$enableval" = yes; then
5206 ac_cv_use_statline='wxUSE_STATLINE=yes'
5207 else
5208 ac_cv_use_statline='wxUSE_STATLINE=no'
5209 fi
5210
5211 else
5212
5213 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
5214 if test "x$LINE" != x ; then
5215 eval "DEFAULT_$LINE"
5216 else
5217 no_cache=1
5218 fi
5219
5220 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
5221
5222 fi
5223
5224
5225 eval "$ac_cv_use_statline"
5226 if test "$no_cache" != 1; then
5227 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
5228 fi
5229
5230 if test "$wxUSE_STATLINE" = yes; then
5231 echo "$ac_t""yes" 1>&6
5232 else
5233 echo "$ac_t""no" 1>&6
5234 fi
5235
5236
5237 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
5238 echo "configure:5239: checking "for --enable-statusbar"" >&5
5239 no_cache=0
5240 # Check whether --enable-statusbar or --disable-statusbar was given.
5241 if test "${enable_statusbar+set}" = set; then
5242 enableval="$enable_statusbar"
5243
5244 if test "$enableval" = yes; then
5245 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
5246 else
5247 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
5248 fi
5249
5250 else
5251
5252 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
5253 if test "x$LINE" != x ; then
5254 eval "DEFAULT_$LINE"
5255 else
5256 no_cache=1
5257 fi
5258
5259 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
5260
5261 fi
5262
5263
5264 eval "$ac_cv_use_statusbar"
5265 if test "$no_cache" != 1; then
5266 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
5267 fi
5268
5269 if test "$wxUSE_STATUSBAR" = yes; then
5270 echo "$ac_t""yes" 1>&6
5271 else
5272 echo "$ac_t""no" 1>&6
5273 fi
5274
5275
5276 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
5277 echo "configure:5278: checking "for --enable-tabdialog"" >&5
5278 no_cache=0
5279 # Check whether --enable-tabdialog or --disable-tabdialog was given.
5280 if test "${enable_tabdialog+set}" = set; then
5281 enableval="$enable_tabdialog"
5282
5283 if test "$enableval" = yes; then
5284 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
5285 else
5286 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
5287 fi
5288
5289 else
5290
5291 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
5292 if test "x$LINE" != x ; then
5293 eval "DEFAULT_$LINE"
5294 else
5295 no_cache=1
5296 fi
5297
5298 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
5299
5300 fi
5301
5302
5303 eval "$ac_cv_use_tabdialog"
5304 if test "$no_cache" != 1; then
5305 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
5306 fi
5307
5308 if test "$wxUSE_TABDIALOG" = yes; then
5309 echo "$ac_t""yes" 1>&6
5310 else
5311 echo "$ac_t""no" 1>&6
5312 fi
5313
5314
5315 echo $ac_n "checking "for --enable-togglebtn"""... $ac_c" 1>&6
5316 echo "configure:5317: checking "for --enable-togglebtn"" >&5
5317 no_cache=0
5318 # Check whether --enable-togglebtn or --disable-togglebtn was given.
5319 if test "${enable_togglebtn+set}" = set; then
5320 enableval="$enable_togglebtn"
5321
5322 if test "$enableval" = yes; then
5323 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
5324 else
5325 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
5326 fi
5327
5328 else
5329
5330 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
5331 if test "x$LINE" != x ; then
5332 eval "DEFAULT_$LINE"
5333 else
5334 no_cache=1
5335 fi
5336
5337 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
5338
5339 fi
5340
5341
5342 eval "$ac_cv_use_togglebtn"
5343 if test "$no_cache" != 1; then
5344 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
5345 fi
5346
5347 if test "$wxUSE_TOGGLEBTN" = yes; then
5348 echo "$ac_t""yes" 1>&6
5349 else
5350 echo "$ac_t""no" 1>&6
5351 fi
5352
5353
5354 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
5355 echo "configure:5356: checking "for --enable-toolbar"" >&5
5356 no_cache=0
5357 # Check whether --enable-toolbar or --disable-toolbar was given.
5358 if test "${enable_toolbar+set}" = set; then
5359 enableval="$enable_toolbar"
5360
5361 if test "$enableval" = yes; then
5362 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
5363 else
5364 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
5365 fi
5366
5367 else
5368
5369 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
5370 if test "x$LINE" != x ; then
5371 eval "DEFAULT_$LINE"
5372 else
5373 no_cache=1
5374 fi
5375
5376 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
5377
5378 fi
5379
5380
5381 eval "$ac_cv_use_toolbar"
5382 if test "$no_cache" != 1; then
5383 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
5384 fi
5385
5386 if test "$wxUSE_TOOLBAR" = yes; then
5387 echo "$ac_t""yes" 1>&6
5388 else
5389 echo "$ac_t""no" 1>&6
5390 fi
5391
5392
5393 echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6
5394 echo "configure:5395: checking "for --enable-tbarnative"" >&5
5395 no_cache=0
5396 # Check whether --enable-tbarnative or --disable-tbarnative was given.
5397 if test "${enable_tbarnative+set}" = set; then
5398 enableval="$enable_tbarnative"
5399
5400 if test "$enableval" = yes; then
5401 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
5402 else
5403 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
5404 fi
5405
5406 else
5407
5408 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
5409 if test "x$LINE" != x ; then
5410 eval "DEFAULT_$LINE"
5411 else
5412 no_cache=1
5413 fi
5414
5415 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
5416
5417 fi
5418
5419
5420 eval "$ac_cv_use_tbarnative"
5421 if test "$no_cache" != 1; then
5422 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
5423 fi
5424
5425 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
5426 echo "$ac_t""yes" 1>&6
5427 else
5428 echo "$ac_t""no" 1>&6
5429 fi
5430
5431
5432 echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6
5433 echo "configure:5434: checking "for --enable-tbarsmpl"" >&5
5434 no_cache=0
5435 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
5436 if test "${enable_tbarsmpl+set}" = set; then
5437 enableval="$enable_tbarsmpl"
5438
5439 if test "$enableval" = yes; then
5440 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
5441 else
5442 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
5443 fi
5444
5445 else
5446
5447 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
5448 if test "x$LINE" != x ; then
5449 eval "DEFAULT_$LINE"
5450 else
5451 no_cache=1
5452 fi
5453
5454 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
5455
5456 fi
5457
5458
5459 eval "$ac_cv_use_tbarsmpl"
5460 if test "$no_cache" != 1; then
5461 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
5462 fi
5463
5464 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
5465 echo "$ac_t""yes" 1>&6
5466 else
5467 echo "$ac_t""no" 1>&6
5468 fi
5469
5470
5471 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
5472 echo "configure:5473: checking "for --enable-treectrl"" >&5
5473 no_cache=0
5474 # Check whether --enable-treectrl or --disable-treectrl was given.
5475 if test "${enable_treectrl+set}" = set; then
5476 enableval="$enable_treectrl"
5477
5478 if test "$enableval" = yes; then
5479 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
5480 else
5481 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
5482 fi
5483
5484 else
5485
5486 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
5487 if test "x$LINE" != x ; then
5488 eval "DEFAULT_$LINE"
5489 else
5490 no_cache=1
5491 fi
5492
5493 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5494
5495 fi
5496
5497
5498 eval "$ac_cv_use_treectrl"
5499 if test "$no_cache" != 1; then
5500 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5501 fi
5502
5503 if test "$wxUSE_TREECTRL" = yes; then
5504 echo "$ac_t""yes" 1>&6
5505 else
5506 echo "$ac_t""no" 1>&6
5507 fi
5508
5509
5510
5511
5512 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
5513 echo "configure:5514: checking "for --enable-commondlg"" >&5
5514 no_cache=0
5515 # Check whether --enable-commondlg or --disable-commondlg was given.
5516 if test "${enable_commondlg+set}" = set; then
5517 enableval="$enable_commondlg"
5518
5519 if test "$enableval" = yes; then
5520 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5521 else
5522 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5523 fi
5524
5525 else
5526
5527 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5528 if test "x$LINE" != x ; then
5529 eval "DEFAULT_$LINE"
5530 else
5531 no_cache=1
5532 fi
5533
5534 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5535
5536 fi
5537
5538
5539 eval "$ac_cv_use_commondlg"
5540 if test "$no_cache" != 1; then
5541 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5542 fi
5543
5544 if test "$wxUSE_COMMONDLGS" = yes; then
5545 echo "$ac_t""yes" 1>&6
5546 else
5547 echo "$ac_t""no" 1>&6
5548 fi
5549
5550
5551 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
5552 echo "configure:5553: checking "for --enable-dirdlg"" >&5
5553 no_cache=0
5554 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5555 if test "${enable_dirdlg+set}" = set; then
5556 enableval="$enable_dirdlg"
5557
5558 if test "$enableval" = yes; then
5559 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5560 else
5561 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5562 fi
5563
5564 else
5565
5566 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5567 if test "x$LINE" != x ; then
5568 eval "DEFAULT_$LINE"
5569 else
5570 no_cache=1
5571 fi
5572
5573 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5574
5575 fi
5576
5577
5578 eval "$ac_cv_use_dirdlg"
5579 if test "$no_cache" != 1; then
5580 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5581 fi
5582
5583 if test "$wxUSE_DIRDLG" = yes; then
5584 echo "$ac_t""yes" 1>&6
5585 else
5586 echo "$ac_t""no" 1>&6
5587 fi
5588
5589
5590 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
5591 echo "configure:5592: checking "for --enable-textdlg"" >&5
5592 no_cache=0
5593 # Check whether --enable-textdlg or --disable-textdlg was given.
5594 if test "${enable_textdlg+set}" = set; then
5595 enableval="$enable_textdlg"
5596
5597 if test "$enableval" = yes; then
5598 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5599 else
5600 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5601 fi
5602
5603 else
5604
5605 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5606 if test "x$LINE" != x ; then
5607 eval "DEFAULT_$LINE"
5608 else
5609 no_cache=1
5610 fi
5611
5612 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5613
5614 fi
5615
5616
5617 eval "$ac_cv_use_textdlg"
5618 if test "$no_cache" != 1; then
5619 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5620 fi
5621
5622 if test "$wxUSE_TEXTDLG" = yes; then
5623 echo "$ac_t""yes" 1>&6
5624 else
5625 echo "$ac_t""no" 1>&6
5626 fi
5627
5628
5629 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
5630 echo "configure:5631: checking "for --enable-tipdlg"" >&5
5631 no_cache=0
5632 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5633 if test "${enable_tipdlg+set}" = set; then
5634 enableval="$enable_tipdlg"
5635
5636 if test "$enableval" = yes; then
5637 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5638 else
5639 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5640 fi
5641
5642 else
5643
5644 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5645 if test "x$LINE" != x ; then
5646 eval "DEFAULT_$LINE"
5647 else
5648 no_cache=1
5649 fi
5650
5651 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5652
5653 fi
5654
5655
5656 eval "$ac_cv_use_tipdlg"
5657 if test "$no_cache" != 1; then
5658 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5659 fi
5660
5661 if test "$wxUSE_STARTUP_TIPS" = yes; then
5662 echo "$ac_t""yes" 1>&6
5663 else
5664 echo "$ac_t""no" 1>&6
5665 fi
5666
5667
5668 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
5669 echo "configure:5670: checking "for --enable-progressdlg"" >&5
5670 no_cache=0
5671 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5672 if test "${enable_progressdlg+set}" = set; then
5673 enableval="$enable_progressdlg"
5674
5675 if test "$enableval" = yes; then
5676 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5677 else
5678 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5679 fi
5680
5681 else
5682
5683 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5684 if test "x$LINE" != x ; then
5685 eval "DEFAULT_$LINE"
5686 else
5687 no_cache=1
5688 fi
5689
5690 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5691
5692 fi
5693
5694
5695 eval "$ac_cv_use_progressdlg"
5696 if test "$no_cache" != 1; then
5697 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5698 fi
5699
5700 if test "$wxUSE_PROGRESSDLG" = yes; then
5701 echo "$ac_t""yes" 1>&6
5702 else
5703 echo "$ac_t""no" 1>&6
5704 fi
5705
5706
5707 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
5708 echo "configure:5709: checking "for --enable-miniframe"" >&5
5709 no_cache=0
5710 # Check whether --enable-miniframe or --disable-miniframe was given.
5711 if test "${enable_miniframe+set}" = set; then
5712 enableval="$enable_miniframe"
5713
5714 if test "$enableval" = yes; then
5715 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5716 else
5717 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5718 fi
5719
5720 else
5721
5722 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5723 if test "x$LINE" != x ; then
5724 eval "DEFAULT_$LINE"
5725 else
5726 no_cache=1
5727 fi
5728
5729 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5730
5731 fi
5732
5733
5734 eval "$ac_cv_use_miniframe"
5735 if test "$no_cache" != 1; then
5736 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5737 fi
5738
5739 if test "$wxUSE_MINIFRAME" = yes; then
5740 echo "$ac_t""yes" 1>&6
5741 else
5742 echo "$ac_t""no" 1>&6
5743 fi
5744
5745
5746 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
5747 echo "configure:5748: checking "for --enable-html"" >&5
5748 no_cache=0
5749 # Check whether --enable-html or --disable-html was given.
5750 if test "${enable_html+set}" = set; then
5751 enableval="$enable_html"
5752
5753 if test "$enableval" = yes; then
5754 ac_cv_use_html='wxUSE_HTML=yes'
5755 else
5756 ac_cv_use_html='wxUSE_HTML=no'
5757 fi
5758
5759 else
5760
5761 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5762 if test "x$LINE" != x ; then
5763 eval "DEFAULT_$LINE"
5764 else
5765 no_cache=1
5766 fi
5767
5768 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5769
5770 fi
5771
5772
5773 eval "$ac_cv_use_html"
5774 if test "$no_cache" != 1; then
5775 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5776 fi
5777
5778 if test "$wxUSE_HTML" = yes; then
5779 echo "$ac_t""yes" 1>&6
5780 else
5781 echo "$ac_t""no" 1>&6
5782 fi
5783
5784
5785 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
5786 echo "configure:5787: checking "for --enable-tooltips"" >&5
5787 no_cache=0
5788 # Check whether --enable-tooltips or --disable-tooltips was given.
5789 if test "${enable_tooltips+set}" = set; then
5790 enableval="$enable_tooltips"
5791
5792 if test "$enableval" = yes; then
5793 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5794 else
5795 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5796 fi
5797
5798 else
5799
5800 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5801 if test "x$LINE" != x ; then
5802 eval "DEFAULT_$LINE"
5803 else
5804 no_cache=1
5805 fi
5806
5807 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5808
5809 fi
5810
5811
5812 eval "$ac_cv_use_tooltips"
5813 if test "$no_cache" != 1; then
5814 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5815 fi
5816
5817 if test "$wxUSE_TOOLTIPS" = yes; then
5818 echo "$ac_t""yes" 1>&6
5819 else
5820 echo "$ac_t""no" 1>&6
5821 fi
5822
5823
5824 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
5825 echo "configure:5826: checking "for --enable-splines"" >&5
5826 no_cache=0
5827 # Check whether --enable-splines or --disable-splines was given.
5828 if test "${enable_splines+set}" = set; then
5829 enableval="$enable_splines"
5830
5831 if test "$enableval" = yes; then
5832 ac_cv_use_splines='wxUSE_SPLINES=yes'
5833 else
5834 ac_cv_use_splines='wxUSE_SPLINES=no'
5835 fi
5836
5837 else
5838
5839 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5840 if test "x$LINE" != x ; then
5841 eval "DEFAULT_$LINE"
5842 else
5843 no_cache=1
5844 fi
5845
5846 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5847
5848 fi
5849
5850
5851 eval "$ac_cv_use_splines"
5852 if test "$no_cache" != 1; then
5853 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5854 fi
5855
5856 if test "$wxUSE_SPLINES" = yes; then
5857 echo "$ac_t""yes" 1>&6
5858 else
5859 echo "$ac_t""no" 1>&6
5860 fi
5861
5862
5863 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
5864 echo "configure:5865: checking "for --enable-validators"" >&5
5865 no_cache=0
5866 # Check whether --enable-validators or --disable-validators was given.
5867 if test "${enable_validators+set}" = set; then
5868 enableval="$enable_validators"
5869
5870 if test "$enableval" = yes; then
5871 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5872 else
5873 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5874 fi
5875
5876 else
5877
5878 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5879 if test "x$LINE" != x ; then
5880 eval "DEFAULT_$LINE"
5881 else
5882 no_cache=1
5883 fi
5884
5885 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5886
5887 fi
5888
5889
5890 eval "$ac_cv_use_validators"
5891 if test "$no_cache" != 1; then
5892 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5893 fi
5894
5895 if test "$wxUSE_VALIDATORS" = yes; then
5896 echo "$ac_t""yes" 1>&6
5897 else
5898 echo "$ac_t""no" 1>&6
5899 fi
5900
5901
5902 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
5903 echo "configure:5904: checking "for --enable-busyinfo"" >&5
5904 no_cache=0
5905 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5906 if test "${enable_busyinfo+set}" = set; then
5907 enableval="$enable_busyinfo"
5908
5909 if test "$enableval" = yes; then
5910 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5911 else
5912 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5913 fi
5914
5915 else
5916
5917 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5918 if test "x$LINE" != x ; then
5919 eval "DEFAULT_$LINE"
5920 else
5921 no_cache=1
5922 fi
5923
5924 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5925
5926 fi
5927
5928
5929 eval "$ac_cv_use_busyinfo"
5930 if test "$no_cache" != 1; then
5931 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5932 fi
5933
5934 if test "$wxUSE_BUSYINFO" = yes; then
5935 echo "$ac_t""yes" 1>&6
5936 else
5937 echo "$ac_t""no" 1>&6
5938 fi
5939
5940
5941 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
5942 echo "configure:5943: checking "for --enable-joystick"" >&5
5943 no_cache=0
5944 # Check whether --enable-joystick or --disable-joystick was given.
5945 if test "${enable_joystick+set}" = set; then
5946 enableval="$enable_joystick"
5947
5948 if test "$enableval" = yes; then
5949 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
5950 else
5951 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
5952 fi
5953
5954 else
5955
5956 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
5957 if test "x$LINE" != x ; then
5958 eval "DEFAULT_$LINE"
5959 else
5960 no_cache=1
5961 fi
5962
5963 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
5964
5965 fi
5966
5967
5968 eval "$ac_cv_use_joystick"
5969 if test "$no_cache" != 1; then
5970 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
5971 fi
5972
5973 if test "$wxUSE_JOYSTICK" = yes; then
5974 echo "$ac_t""yes" 1>&6
5975 else
5976 echo "$ac_t""no" 1>&6
5977 fi
5978
5979
5980
5981
5982 echo $ac_n "checking "for --enable-image"""... $ac_c" 1>&6
5983 echo "configure:5984: checking "for --enable-image"" >&5
5984 no_cache=0
5985 # Check whether --enable-image or --disable-image was given.
5986 if test "${enable_image+set}" = set; then
5987 enableval="$enable_image"
5988
5989 if test "$enableval" = yes; then
5990 ac_cv_use_image='wxUSE_IMAGE=yes'
5991 else
5992 ac_cv_use_image='wxUSE_IMAGE=no'
5993 fi
5994
5995 else
5996
5997 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
5998 if test "x$LINE" != x ; then
5999 eval "DEFAULT_$LINE"
6000 else
6001 no_cache=1
6002 fi
6003
6004 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
6005
6006 fi
6007
6008
6009 eval "$ac_cv_use_image"
6010 if test "$no_cache" != 1; then
6011 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
6012 fi
6013
6014 if test "$wxUSE_IMAGE" = yes; then
6015 echo "$ac_t""yes" 1>&6
6016 else
6017 echo "$ac_t""no" 1>&6
6018 fi
6019
6020
6021 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
6022 echo "configure:6023: checking "for --enable-gif"" >&5
6023 no_cache=0
6024 # Check whether --enable-gif or --disable-gif was given.
6025 if test "${enable_gif+set}" = set; then
6026 enableval="$enable_gif"
6027
6028 if test "$enableval" = yes; then
6029 ac_cv_use_gif='wxUSE_GIF=yes'
6030 else
6031 ac_cv_use_gif='wxUSE_GIF=no'
6032 fi
6033
6034 else
6035
6036 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
6037 if test "x$LINE" != x ; then
6038 eval "DEFAULT_$LINE"
6039 else
6040 no_cache=1
6041 fi
6042
6043 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
6044
6045 fi
6046
6047
6048 eval "$ac_cv_use_gif"
6049 if test "$no_cache" != 1; then
6050 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
6051 fi
6052
6053 if test "$wxUSE_GIF" = yes; then
6054 echo "$ac_t""yes" 1>&6
6055 else
6056 echo "$ac_t""no" 1>&6
6057 fi
6058
6059
6060 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
6061 echo "configure:6062: checking "for --enable-pcx"" >&5
6062 no_cache=0
6063 # Check whether --enable-pcx or --disable-pcx was given.
6064 if test "${enable_pcx+set}" = set; then
6065 enableval="$enable_pcx"
6066
6067 if test "$enableval" = yes; then
6068 ac_cv_use_pcx='wxUSE_PCX=yes'
6069 else
6070 ac_cv_use_pcx='wxUSE_PCX=no'
6071 fi
6072
6073 else
6074
6075 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
6076 if test "x$LINE" != x ; then
6077 eval "DEFAULT_$LINE"
6078 else
6079 no_cache=1
6080 fi
6081
6082 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
6083
6084 fi
6085
6086
6087 eval "$ac_cv_use_pcx"
6088 if test "$no_cache" != 1; then
6089 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
6090 fi
6091
6092 if test "$wxUSE_PCX" = yes; then
6093 echo "$ac_t""yes" 1>&6
6094 else
6095 echo "$ac_t""no" 1>&6
6096 fi
6097
6098
6099 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
6100 echo "configure:6101: checking "for --enable-pnm"" >&5
6101 no_cache=0
6102 # Check whether --enable-pnm or --disable-pnm was given.
6103 if test "${enable_pnm+set}" = set; then
6104 enableval="$enable_pnm"
6105
6106 if test "$enableval" = yes; then
6107 ac_cv_use_pnm='wxUSE_PNM=yes'
6108 else
6109 ac_cv_use_pnm='wxUSE_PNM=no'
6110 fi
6111
6112 else
6113
6114 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
6115 if test "x$LINE" != x ; then
6116 eval "DEFAULT_$LINE"
6117 else
6118 no_cache=1
6119 fi
6120
6121 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
6122
6123 fi
6124
6125
6126 eval "$ac_cv_use_pnm"
6127 if test "$no_cache" != 1; then
6128 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
6129 fi
6130
6131 if test "$wxUSE_PNM" = yes; then
6132 echo "$ac_t""yes" 1>&6
6133 else
6134 echo "$ac_t""no" 1>&6
6135 fi
6136
6137
6138 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
6139 echo "configure:6140: checking "for --enable-pnm"" >&5
6140 no_cache=0
6141 # Check whether --enable-pnm or --disable-pnm was given.
6142 if test "${enable_pnm+set}" = set; then
6143 enableval="$enable_pnm"
6144
6145 if test "$enableval" = yes; then
6146 ac_cv_use_pnm='wxUSE_XPM=yes'
6147 else
6148 ac_cv_use_pnm='wxUSE_XPM=no'
6149 fi
6150
6151 else
6152
6153 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
6154 if test "x$LINE" != x ; then
6155 eval "DEFAULT_$LINE"
6156 else
6157 no_cache=1
6158 fi
6159
6160 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
6161
6162 fi
6163
6164
6165 eval "$ac_cv_use_pnm"
6166 if test "$no_cache" != 1; then
6167 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
6168 fi
6169
6170 if test "$wxUSE_XPM" = yes; then
6171 echo "$ac_t""yes" 1>&6
6172 else
6173 echo "$ac_t""no" 1>&6
6174 fi
6175
6176
6177 fi
6178
6179
6180 echo "saving argument cache $wx_arg_cache_file"
6181 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
6182
6183
6184
6185 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
6186 echo "configure:6187: checking for toolkit" >&5
6187
6188 if test "$wxUSE_GUI" = "yes"; then
6189
6190 if test "$USE_BEOS" = 1; then
6191 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
6192 fi
6193
6194 if test "$TOOLKIT_GIVEN" = 1; then
6195 for toolkit in `echo $ALL_TOOLKITS`; do
6196 var=wxUSE_$toolkit
6197 eval "value=\$${var}"
6198 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
6199 done
6200 else
6201 for toolkit in `echo $ALL_TOOLKITS`; do
6202 if test "$has_toolkit_in_cache" != 1; then
6203 var=DEFAULT_DEFAULT_wxUSE_$toolkit
6204 else
6205 var=DEFAULT_wxUSE_$toolkit
6206 fi
6207 eval "wxUSE_$toolkit=\$${var}"
6208 done
6209 fi
6210
6211 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
6212
6213 case "${host}" in
6214 *-pc-os2_emx )
6215 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
6216 # PATH_IFS is autodetected by OS/2's configure (usually ';')
6217 LEX_STEM="lexyy"
6218 ;;
6219 *)
6220 PATH_IFS=':'
6221 LEX_STEM="lex.yy"
6222 ;;
6223 esac
6224
6225 case "$NUM_TOOLKITS" in
6226 1)
6227 ;;
6228 0)
6229 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
6230 ;;
6231 *)
6232 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
6233 esac
6234
6235 for toolkit in `echo $ALL_TOOLKITS`; do
6236 var=wxUSE_$toolkit
6237 eval "value=\$${var}"
6238 if test "x$value" != x; then
6239 cache_var=CACHE_$toolkit
6240 eval "cache=\$${cache_var}"
6241 if test "$cache" = 1; then
6242 echo "$var=$value" >> ${wx_arg_cache_file}
6243 fi
6244 if test "$value" = 1; then
6245 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
6246 fi
6247 fi
6248 done
6249
6250 else
6251 PATH_IFS=':'
6252 echo "$ac_t""base only" 1>&6
6253 fi
6254
6255
6256 cat > confcache <<\EOF
6257 # This file is a shell script that caches the results of configure
6258 # tests run on this system so they can be shared between configure
6259 # scripts and configure runs. It is not useful on other systems.
6260 # If it contains results you don't want to keep, you may remove or edit it.
6261 #
6262 # By default, configure uses ./config.cache as the cache file,
6263 # creating it if it does not exist already. You can give configure
6264 # the --cache-file=FILE option to use a different cache file; that is
6265 # what configure does when it calls configure scripts in
6266 # subdirectories, so they share the cache.
6267 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6268 # config.status only pays attention to the cache file if you give it the
6269 # --recheck option to rerun configure.
6270 #
6271 EOF
6272 # The following way of writing the cache mishandles newlines in values,
6273 # but we know of no workaround that is simple, portable, and efficient.
6274 # So, don't put newlines in cache variables' values.
6275 # Ultrix sh set writes to stderr and can't be redirected directly,
6276 # and sets the high bit in the cache file unless we assign to the vars.
6277 (set) 2>&1 |
6278 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6279 *ac_space=\ *)
6280 # `set' does not quote correctly, so add quotes (double-quote substitution
6281 # turns \\\\ into \\, and sed turns \\ into \).
6282 sed -n \
6283 -e "s/'/'\\\\''/g" \
6284 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6285 ;;
6286 *)
6287 # `set' quotes correctly as required by POSIX, so do not add quotes.
6288 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6289 ;;
6290 esac >> confcache
6291 if cmp -s $cache_file confcache; then
6292 :
6293 else
6294 if test -w $cache_file; then
6295 echo "updating cache $cache_file"
6296 cat confcache > $cache_file
6297 else
6298 echo "not updating unwritable cache $cache_file"
6299 fi
6300 fi
6301 rm -f confcache
6302
6303
6304 if test "$build" != "$host" ; then
6305 CC=$host_alias-gcc
6306 CXX=$host_alias-c++
6307 AR=$host_alias-ar
6308 RANLIB=$host_alias-ranlib
6309 DLLTOOL=$host_alias-dlltool
6310 RESCOMP=$host_alias-windres
6311 LD=$host_alias-ld
6312 NM=$host_alias-nm
6313 STRIP=$host_alias-strip
6314 fi
6315
6316 # Extract the first word of "gcc", so it can be a program name with args.
6317 set dummy gcc; ac_word=$2
6318 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6319 echo "configure:6320: checking for $ac_word" >&5
6320 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6321 echo $ac_n "(cached) $ac_c" 1>&6
6322 else
6323 if test -n "$CC"; then
6324 ac_cv_prog_CC="$CC" # Let the user override the test.
6325 else
6326 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6327 ac_dummy="$PATH"
6328 for ac_dir in $ac_dummy; do
6329 test -z "$ac_dir" && ac_dir=.
6330 if test -f $ac_dir/$ac_word; then
6331 ac_cv_prog_CC="gcc"
6332 break
6333 fi
6334 done
6335 IFS="$ac_save_ifs"
6336 fi
6337 fi
6338 CC="$ac_cv_prog_CC"
6339 if test -n "$CC"; then
6340 echo "$ac_t""$CC" 1>&6
6341 else
6342 echo "$ac_t""no" 1>&6
6343 fi
6344
6345 if test -z "$CC"; then
6346 # Extract the first word of "cc", so it can be a program name with args.
6347 set dummy cc; ac_word=$2
6348 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6349 echo "configure:6350: checking for $ac_word" >&5
6350 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6351 echo $ac_n "(cached) $ac_c" 1>&6
6352 else
6353 if test -n "$CC"; then
6354 ac_cv_prog_CC="$CC" # Let the user override the test.
6355 else
6356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6357 ac_prog_rejected=no
6358 ac_dummy="$PATH"
6359 for ac_dir in $ac_dummy; do
6360 test -z "$ac_dir" && ac_dir=.
6361 if test -f $ac_dir/$ac_word; then
6362 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
6363 ac_prog_rejected=yes
6364 continue
6365 fi
6366 ac_cv_prog_CC="cc"
6367 break
6368 fi
6369 done
6370 IFS="$ac_save_ifs"
6371 if test $ac_prog_rejected = yes; then
6372 # We found a bogon in the path, so make sure we never use it.
6373 set dummy $ac_cv_prog_CC
6374 shift
6375 if test $# -gt 0; then
6376 # We chose a different compiler from the bogus one.
6377 # However, it has the same basename, so the bogon will be chosen
6378 # first if we set CC to just the basename; use the full file name.
6379 shift
6380 set dummy "$ac_dir/$ac_word" "$@"
6381 shift
6382 ac_cv_prog_CC="$@"
6383 fi
6384 fi
6385 fi
6386 fi
6387 CC="$ac_cv_prog_CC"
6388 if test -n "$CC"; then
6389 echo "$ac_t""$CC" 1>&6
6390 else
6391 echo "$ac_t""no" 1>&6
6392 fi
6393
6394 if test -z "$CC"; then
6395 case "`uname -s`" in
6396 *win32* | *WIN32*)
6397 # Extract the first word of "cl", so it can be a program name with args.
6398 set dummy cl; ac_word=$2
6399 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6400 echo "configure:6401: checking for $ac_word" >&5
6401 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6402 echo $ac_n "(cached) $ac_c" 1>&6
6403 else
6404 if test -n "$CC"; then
6405 ac_cv_prog_CC="$CC" # Let the user override the test.
6406 else
6407 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6408 ac_dummy="$PATH"
6409 for ac_dir in $ac_dummy; do
6410 test -z "$ac_dir" && ac_dir=.
6411 if test -f $ac_dir/$ac_word; then
6412 ac_cv_prog_CC="cl"
6413 break
6414 fi
6415 done
6416 IFS="$ac_save_ifs"
6417 fi
6418 fi
6419 CC="$ac_cv_prog_CC"
6420 if test -n "$CC"; then
6421 echo "$ac_t""$CC" 1>&6
6422 else
6423 echo "$ac_t""no" 1>&6
6424 fi
6425 ;;
6426 esac
6427 fi
6428 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
6429 fi
6430
6431 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
6432 echo "configure:6433: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
6433
6434 ac_ext=c
6435 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6436 ac_cpp='$CPP $CPPFLAGS'
6437 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6438 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6439 cross_compiling=$ac_cv_prog_cc_cross
6440
6441 cat > conftest.$ac_ext << EOF
6442
6443 #line 6444 "configure"
6444 #include "confdefs.h"
6445
6446 main(){return(0);}
6447 EOF
6448 if { (eval echo configure:6449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6449 ac_cv_prog_cc_works=yes
6450 # If we can't run a trivial program, we are probably using a cross compiler.
6451 if (./conftest; exit) 2>/dev/null; then
6452 ac_cv_prog_cc_cross=no
6453 else
6454 ac_cv_prog_cc_cross=yes
6455 fi
6456 else
6457 echo "configure: failed program was:" >&5
6458 cat conftest.$ac_ext >&5
6459 ac_cv_prog_cc_works=no
6460 fi
6461 rm -fr conftest*
6462 ac_ext=c
6463 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6464 ac_cpp='$CPP $CPPFLAGS'
6465 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6466 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6467 cross_compiling=$ac_cv_prog_cc_cross
6468
6469 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
6470 if test $ac_cv_prog_cc_works = no; then
6471 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
6472 fi
6473 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
6474 echo "configure:6475: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
6475 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6476 cross_compiling=$ac_cv_prog_cc_cross
6477
6478 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
6479 echo "configure:6480: checking whether we are using GNU C" >&5
6480 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
6481 echo $ac_n "(cached) $ac_c" 1>&6
6482 else
6483 cat > conftest.c <<EOF
6484 #ifdef __GNUC__
6485 yes;
6486 #endif
6487 EOF
6488 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
6489 ac_cv_prog_gcc=yes
6490 else
6491 ac_cv_prog_gcc=no
6492 fi
6493 fi
6494
6495 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6496
6497 if test $ac_cv_prog_gcc = yes; then
6498 GCC=yes
6499 else
6500 GCC=
6501 fi
6502
6503 ac_test_CFLAGS="${CFLAGS+set}"
6504 ac_save_CFLAGS="$CFLAGS"
6505 CFLAGS=
6506 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
6507 echo "configure:6508: checking whether ${CC-cc} accepts -g" >&5
6508 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
6509 echo $ac_n "(cached) $ac_c" 1>&6
6510 else
6511 echo 'void f(){}' > conftest.c
6512 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6513 ac_cv_prog_cc_g=yes
6514 else
6515 ac_cv_prog_cc_g=no
6516 fi
6517 rm -f conftest*
6518
6519 fi
6520
6521 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
6522 if test "$ac_test_CFLAGS" = set; then
6523 CFLAGS="$ac_save_CFLAGS"
6524 elif test $ac_cv_prog_cc_g = yes; then
6525 if test "$GCC" = yes; then
6526 CFLAGS="-g -O2"
6527 else
6528 CFLAGS="-g"
6529 fi
6530 else
6531 if test "$GCC" = yes; then
6532 CFLAGS="-O2"
6533 else
6534 CFLAGS=
6535 fi
6536 fi
6537
6538
6539 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
6540
6541 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
6542 echo "configure:6543: checking how to run the C preprocessor" >&5
6543 # On Suns, sometimes $CPP names a directory.
6544 if test -n "$CPP" && test -d "$CPP"; then
6545 CPP=
6546 fi
6547 if test -z "$CPP"; then
6548 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
6549 echo $ac_n "(cached) $ac_c" 1>&6
6550 else
6551 # This must be in double quotes, not single quotes, because CPP may get
6552 # substituted into the Makefile and "${CC-cc}" will confuse make.
6553 CPP="${CC-cc} -E"
6554 # On the NeXT, cc -E runs the code through the compiler's parser,
6555 # not just through cpp.
6556 cat > conftest.$ac_ext <<EOF
6557 #line 6558 "configure"
6558 #include "confdefs.h"
6559 #include <assert.h>
6560 Syntax Error
6561 EOF
6562 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6563 { (eval echo configure:6564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6564 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6565 if test -z "$ac_err"; then
6566 :
6567 else
6568 echo "$ac_err" >&5
6569 echo "configure: failed program was:" >&5
6570 cat conftest.$ac_ext >&5
6571 rm -rf conftest*
6572 CPP="${CC-cc} -E -traditional-cpp"
6573 cat > conftest.$ac_ext <<EOF
6574 #line 6575 "configure"
6575 #include "confdefs.h"
6576 #include <assert.h>
6577 Syntax Error
6578 EOF
6579 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6580 { (eval echo configure:6581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6581 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6582 if test -z "$ac_err"; then
6583 :
6584 else
6585 echo "$ac_err" >&5
6586 echo "configure: failed program was:" >&5
6587 cat conftest.$ac_ext >&5
6588 rm -rf conftest*
6589 CPP="${CC-cc} -nologo -E"
6590 cat > conftest.$ac_ext <<EOF
6591 #line 6592 "configure"
6592 #include "confdefs.h"
6593 #include <assert.h>
6594 Syntax Error
6595 EOF
6596 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6597 { (eval echo configure:6598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6598 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6599 if test -z "$ac_err"; then
6600 :
6601 else
6602 echo "$ac_err" >&5
6603 echo "configure: failed program was:" >&5
6604 cat conftest.$ac_ext >&5
6605 rm -rf conftest*
6606 CPP=/lib/cpp
6607 fi
6608 rm -f conftest*
6609 fi
6610 rm -f conftest*
6611 fi
6612 rm -f conftest*
6613 ac_cv_prog_CPP="$CPP"
6614 fi
6615 CPP="$ac_cv_prog_CPP"
6616 else
6617 ac_cv_prog_CPP="$CPP"
6618 fi
6619 echo "$ac_t""$CPP" 1>&6
6620
6621
6622 if test $ac_cv_prog_gcc = yes; then
6623 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
6624 echo "configure:6625: checking whether ${CC-cc} needs -traditional" >&5
6625 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6626 echo $ac_n "(cached) $ac_c" 1>&6
6627 else
6628 ac_pattern="Autoconf.*'x'"
6629 cat > conftest.$ac_ext <<EOF
6630 #line 6631 "configure"
6631 #include "confdefs.h"
6632 #include <sgtty.h>
6633 Autoconf TIOCGETP
6634 EOF
6635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6636 egrep "$ac_pattern" >/dev/null 2>&1; then
6637 rm -rf conftest*
6638 ac_cv_prog_gcc_traditional=yes
6639 else
6640 rm -rf conftest*
6641 ac_cv_prog_gcc_traditional=no
6642 fi
6643 rm -f conftest*
6644
6645
6646 if test $ac_cv_prog_gcc_traditional = no; then
6647 cat > conftest.$ac_ext <<EOF
6648 #line 6649 "configure"
6649 #include "confdefs.h"
6650 #include <termio.h>
6651 Autoconf TCGETA
6652 EOF
6653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6654 egrep "$ac_pattern" >/dev/null 2>&1; then
6655 rm -rf conftest*
6656 ac_cv_prog_gcc_traditional=yes
6657 fi
6658 rm -f conftest*
6659
6660 fi
6661 fi
6662
6663 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6664 if test $ac_cv_prog_gcc_traditional = yes; then
6665 CC="$CC -traditional"
6666 fi
6667 fi
6668
6669
6670
6671 ac_ext=C
6672 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6673 ac_cpp='$CXXCPP $CPPFLAGS'
6674 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6675 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6676 cross_compiling=$ac_cv_prog_cxx_cross
6677
6678
6679 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6680 do
6681 # Extract the first word of "$ac_prog", so it can be a program name with args.
6682 set dummy $ac_prog; ac_word=$2
6683 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6684 echo "configure:6685: checking for $ac_word" >&5
6685 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6686 echo $ac_n "(cached) $ac_c" 1>&6
6687 else
6688 if test -n "$CXX"; then
6689 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6690 else
6691 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6692 ac_dummy="$PATH"
6693 for ac_dir in $ac_dummy; do
6694 test -z "$ac_dir" && ac_dir=.
6695 if test -f $ac_dir/$ac_word; then
6696 ac_cv_prog_CXX="$ac_prog"
6697 break
6698 fi
6699 done
6700 IFS="$ac_save_ifs"
6701 fi
6702 fi
6703 CXX="$ac_cv_prog_CXX"
6704 if test -n "$CXX"; then
6705 echo "$ac_t""$CXX" 1>&6
6706 else
6707 echo "$ac_t""no" 1>&6
6708 fi
6709
6710 test -n "$CXX" && break
6711 done
6712 test -n "$CXX" || CXX="gcc"
6713
6714
6715 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
6716 echo "configure:6717: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
6717
6718 ac_ext=C
6719 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6720 ac_cpp='$CXXCPP $CPPFLAGS'
6721 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6722 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6723 cross_compiling=$ac_cv_prog_cxx_cross
6724
6725 cat > conftest.$ac_ext << EOF
6726
6727 #line 6728 "configure"
6728 #include "confdefs.h"
6729
6730 int main(){return(0);}
6731 EOF
6732 if { (eval echo configure:6733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6733 ac_cv_prog_cxx_works=yes
6734 # If we can't run a trivial program, we are probably using a cross compiler.
6735 if (./conftest; exit) 2>/dev/null; then
6736 ac_cv_prog_cxx_cross=no
6737 else
6738 ac_cv_prog_cxx_cross=yes
6739 fi
6740 else
6741 echo "configure: failed program was:" >&5
6742 cat conftest.$ac_ext >&5
6743 ac_cv_prog_cxx_works=no
6744 fi
6745 rm -fr conftest*
6746 ac_ext=C
6747 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6748 ac_cpp='$CXXCPP $CPPFLAGS'
6749 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6750 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6751 cross_compiling=$ac_cv_prog_cxx_cross
6752
6753 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6754 if test $ac_cv_prog_cxx_works = no; then
6755 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6756 fi
6757 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
6758 echo "configure:6759: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
6759 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6760 cross_compiling=$ac_cv_prog_cxx_cross
6761
6762 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
6763 echo "configure:6764: checking whether we are using GNU C++" >&5
6764 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6765 echo $ac_n "(cached) $ac_c" 1>&6
6766 else
6767 cat > conftest.C <<EOF
6768 #ifdef __GNUC__
6769 yes;
6770 #endif
6771 EOF
6772 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
6773 ac_cv_prog_gxx=yes
6774 else
6775 ac_cv_prog_gxx=no
6776 fi
6777 fi
6778
6779 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6780
6781 if test $ac_cv_prog_gxx = yes; then
6782 GXX=yes
6783 else
6784 GXX=
6785 fi
6786
6787 ac_test_CXXFLAGS="${CXXFLAGS+set}"
6788 ac_save_CXXFLAGS="$CXXFLAGS"
6789 CXXFLAGS=
6790 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
6791 echo "configure:6792: checking whether ${CXX-g++} accepts -g" >&5
6792 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6793 echo $ac_n "(cached) $ac_c" 1>&6
6794 else
6795 echo 'void f(){}' > conftest.cc
6796 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6797 ac_cv_prog_cxx_g=yes
6798 else
6799 ac_cv_prog_cxx_g=no
6800 fi
6801 rm -f conftest*
6802
6803 fi
6804
6805 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6806 if test "$ac_test_CXXFLAGS" = set; then
6807 CXXFLAGS="$ac_save_CXXFLAGS"
6808 elif test $ac_cv_prog_cxx_g = yes; then
6809 if test "$GXX" = yes; then
6810 CXXFLAGS="-g -O2"
6811 else
6812 CXXFLAGS="-g"
6813 fi
6814 else
6815 if test "$GXX" = yes; then
6816 CXXFLAGS="-O2"
6817 else
6818 CXXFLAGS=
6819 fi
6820 fi
6821
6822
6823 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
6824 echo "configure:6825: checking how to run the C++ preprocessor" >&5
6825 if test -z "$CXXCPP"; then
6826 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6827 echo $ac_n "(cached) $ac_c" 1>&6
6828 else
6829 ac_ext=C
6830 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6831 ac_cpp='$CXXCPP $CPPFLAGS'
6832 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6833 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6834 cross_compiling=$ac_cv_prog_cxx_cross
6835 CXXCPP="${CXX-g++} -E"
6836 cat > conftest.$ac_ext <<EOF
6837 #line 6838 "configure"
6838 #include "confdefs.h"
6839 #include <stdlib.h>
6840 EOF
6841 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6842 { (eval echo configure:6843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6843 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6844 if test -z "$ac_err"; then
6845 :
6846 else
6847 echo "$ac_err" >&5
6848 echo "configure: failed program was:" >&5
6849 cat conftest.$ac_ext >&5
6850 rm -rf conftest*
6851 CXXCPP=/lib/cpp
6852 fi
6853 rm -f conftest*
6854 ac_cv_prog_CXXCPP="$CXXCPP"
6855 ac_ext=C
6856 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6857 ac_cpp='$CXXCPP $CPPFLAGS'
6858 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6859 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6860 cross_compiling=$ac_cv_prog_cxx_cross
6861 fi
6862 fi
6863 CXXCPP="$ac_cv_prog_CXXCPP"
6864 echo "$ac_t""$CXXCPP" 1>&6
6865
6866
6867 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6868
6869 ac_ext=c
6870 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6871 ac_cpp='$CPP $CPPFLAGS'
6872 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6873 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6874 cross_compiling=$ac_cv_prog_cc_cross
6875
6876
6877 # Extract the first word of "ranlib", so it can be a program name with args.
6878 set dummy ranlib; ac_word=$2
6879 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6880 echo "configure:6881: checking for $ac_word" >&5
6881 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6882 echo $ac_n "(cached) $ac_c" 1>&6
6883 else
6884 if test -n "$RANLIB"; then
6885 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6886 else
6887 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6888 ac_dummy="$PATH"
6889 for ac_dir in $ac_dummy; do
6890 test -z "$ac_dir" && ac_dir=.
6891 if test -f $ac_dir/$ac_word; then
6892 ac_cv_prog_RANLIB="ranlib"
6893 break
6894 fi
6895 done
6896 IFS="$ac_save_ifs"
6897 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6898 fi
6899 fi
6900 RANLIB="$ac_cv_prog_RANLIB"
6901 if test -n "$RANLIB"; then
6902 echo "$ac_t""$RANLIB" 1>&6
6903 else
6904 echo "$ac_t""no" 1>&6
6905 fi
6906
6907
6908 # Extract the first word of "ar", so it can be a program name with args.
6909 set dummy ar; ac_word=$2
6910 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6911 echo "configure:6912: checking for $ac_word" >&5
6912 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6913 echo $ac_n "(cached) $ac_c" 1>&6
6914 else
6915 if test -n "$AR"; then
6916 ac_cv_prog_AR="$AR" # Let the user override the test.
6917 else
6918 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6919 ac_dummy="$PATH"
6920 for ac_dir in $ac_dummy; do
6921 test -z "$ac_dir" && ac_dir=.
6922 if test -f $ac_dir/$ac_word; then
6923 ac_cv_prog_AR="ar"
6924 break
6925 fi
6926 done
6927 IFS="$ac_save_ifs"
6928 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6929 fi
6930 fi
6931 AR="$ac_cv_prog_AR"
6932 if test -n "$AR"; then
6933 echo "$ac_t""$AR" 1>&6
6934 else
6935 echo "$ac_t""no" 1>&6
6936 fi
6937
6938
6939 # Find a good install program. We prefer a C program (faster),
6940 # so one script is as good as another. But avoid the broken or
6941 # incompatible versions:
6942 # SysV /etc/install, /usr/sbin/install
6943 # SunOS /usr/etc/install
6944 # IRIX /sbin/install
6945 # AIX /bin/install
6946 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6947 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6948 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6949 # ./install, which can be erroneously created by make from ./install.sh.
6950 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
6951 echo "configure:6952: checking for a BSD compatible install" >&5
6952 if test -z "$INSTALL"; then
6953 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6954 echo $ac_n "(cached) $ac_c" 1>&6
6955 else
6956 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6957 for ac_dir in $PATH; do
6958 # Account for people who put trailing slashes in PATH elements.
6959 case "$ac_dir/" in
6960 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6961 *)
6962 # OSF1 and SCO ODT 3.0 have their own names for install.
6963 # Don't use installbsd from OSF since it installs stuff as root
6964 # by default.
6965 for ac_prog in ginstall scoinst install; do
6966 if test -f $ac_dir/$ac_prog; then
6967 if test $ac_prog = install &&
6968 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6969 # AIX install. It has an incompatible calling convention.
6970 :
6971 else
6972 ac_cv_path_install="$ac_dir/$ac_prog -c"
6973 break 2
6974 fi
6975 fi
6976 done
6977 ;;
6978 esac
6979 done
6980 IFS="$ac_save_IFS"
6981
6982 fi
6983 if test "${ac_cv_path_install+set}" = set; then
6984 INSTALL="$ac_cv_path_install"
6985 else
6986 # As a last resort, use the slow shell script. We don't cache a
6987 # path for INSTALL within a source directory, because that will
6988 # break other packages using the cache if that directory is
6989 # removed, or if the path is relative.
6990 INSTALL="$ac_install_sh"
6991 fi
6992 fi
6993 echo "$ac_t""$INSTALL" 1>&6
6994
6995 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6996 # It thinks the first close brace ends the variable substitution.
6997 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6998
6999 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
7000
7001 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7002
7003
7004 # Extract the first word of "strip", so it can be a program name with args.
7005 set dummy strip; ac_word=$2
7006 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7007 echo "configure:7008: checking for $ac_word" >&5
7008 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
7009 echo $ac_n "(cached) $ac_c" 1>&6
7010 else
7011 if test -n "$STRIP"; then
7012 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7013 else
7014 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7015 ac_dummy="$PATH"
7016 for ac_dir in $ac_dummy; do
7017 test -z "$ac_dir" && ac_dir=.
7018 if test -f $ac_dir/$ac_word; then
7019 ac_cv_prog_STRIP="strip"
7020 break
7021 fi
7022 done
7023 IFS="$ac_save_ifs"
7024 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
7025 fi
7026 fi
7027 STRIP="$ac_cv_prog_STRIP"
7028 if test -n "$STRIP"; then
7029 echo "$ac_t""$STRIP" 1>&6
7030 else
7031 echo "$ac_t""no" 1>&6
7032 fi
7033
7034
7035 echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
7036 echo "configure:7037: checking "make for VPATH support"" >&5
7037 cat - << EOF > confMake
7038 check : file
7039 cp \$? \$@
7040 cp \$? final_file
7041 EOF
7042
7043 if test ! -d sub ; then
7044 mkdir sub
7045 fi
7046 echo dummy > sub/file
7047 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
7048 RESULT=$?
7049 rm -f sub/file check final_file confMake
7050 rmdir sub
7051 if test "$RESULT" = 0; then
7052 echo "$ac_t""yes" 1>&6
7053 else
7054 echo "$ac_t""no" 1>&6
7055 { echo "configure: error: You need a make-utility that is able to use the variable
7056 VPATH correctly.
7057 If your version of make does not support VPATH correctly" 1>&2; exit 1; }
7058 fi
7059
7060 for ac_prog in 'bison -y' byacc
7061 do
7062 # Extract the first word of "$ac_prog", so it can be a program name with args.
7063 set dummy $ac_prog; ac_word=$2
7064 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7065 echo "configure:7066: checking for $ac_word" >&5
7066 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
7067 echo $ac_n "(cached) $ac_c" 1>&6
7068 else
7069 if test -n "$YACC"; then
7070 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7071 else
7072 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7073 ac_dummy="$PATH"
7074 for ac_dir in $ac_dummy; do
7075 test -z "$ac_dir" && ac_dir=.
7076 if test -f $ac_dir/$ac_word; then
7077 ac_cv_prog_YACC="$ac_prog"
7078 break
7079 fi
7080 done
7081 IFS="$ac_save_ifs"
7082 fi
7083 fi
7084 YACC="$ac_cv_prog_YACC"
7085 if test -n "$YACC"; then
7086 echo "$ac_t""$YACC" 1>&6
7087 else
7088 echo "$ac_t""no" 1>&6
7089 fi
7090
7091 test -n "$YACC" && break
7092 done
7093 test -n "$YACC" || YACC="yacc"
7094
7095
7096 # Extract the first word of "flex", so it can be a program name with args.
7097 set dummy flex; ac_word=$2
7098 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7099 echo "configure:7100: checking for $ac_word" >&5
7100 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
7101 echo $ac_n "(cached) $ac_c" 1>&6
7102 else
7103 if test -n "$LEX"; then
7104 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7105 else
7106 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7107 ac_dummy="$PATH"
7108 for ac_dir in $ac_dummy; do
7109 test -z "$ac_dir" && ac_dir=.
7110 if test -f $ac_dir/$ac_word; then
7111 ac_cv_prog_LEX="flex"
7112 break
7113 fi
7114 done
7115 IFS="$ac_save_ifs"
7116 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
7117 fi
7118 fi
7119 LEX="$ac_cv_prog_LEX"
7120 if test -n "$LEX"; then
7121 echo "$ac_t""$LEX" 1>&6
7122 else
7123 echo "$ac_t""no" 1>&6
7124 fi
7125
7126 if test -z "$LEXLIB"
7127 then
7128 case "$LEX" in
7129 flex*) ac_lib=fl ;;
7130 *) ac_lib=l ;;
7131 esac
7132 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
7133 echo "configure:7134: checking for yywrap in -l$ac_lib" >&5
7134 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
7135 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7136 echo $ac_n "(cached) $ac_c" 1>&6
7137 else
7138 ac_save_LIBS="$LIBS"
7139 LIBS="-l$ac_lib $LIBS"
7140 cat > conftest.$ac_ext <<EOF
7141 #line 7142 "configure"
7142 #include "confdefs.h"
7143 /* Override any gcc2 internal prototype to avoid an error. */
7144 /* We use char because int might match the return type of a gcc2
7145 builtin and then its argument prototype would still apply. */
7146 char yywrap();
7147
7148 int main() {
7149 yywrap()
7150 ; return 0; }
7151 EOF
7152 if { (eval echo configure:7153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7153 rm -rf conftest*
7154 eval "ac_cv_lib_$ac_lib_var=yes"
7155 else
7156 echo "configure: failed program was:" >&5
7157 cat conftest.$ac_ext >&5
7158 rm -rf conftest*
7159 eval "ac_cv_lib_$ac_lib_var=no"
7160 fi
7161 rm -f conftest*
7162 LIBS="$ac_save_LIBS"
7163
7164 fi
7165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7166 echo "$ac_t""yes" 1>&6
7167 LEXLIB="-l$ac_lib"
7168 else
7169 echo "$ac_t""no" 1>&6
7170 fi
7171
7172 fi
7173
7174
7175 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7176 echo "configure:7177: checking whether ln -s works" >&5
7177 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
7178 echo $ac_n "(cached) $ac_c" 1>&6
7179 else
7180 rm -f conftestdata
7181 if ln -s X conftestdata 2>/dev/null
7182 then
7183 rm -f conftestdata
7184 ac_cv_prog_LN_S="ln -s"
7185 else
7186 ac_cv_prog_LN_S=ln
7187 fi
7188 fi
7189 LN_S="$ac_cv_prog_LN_S"
7190 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7191 echo "$ac_t""yes" 1>&6
7192 else
7193 echo "$ac_t""no" 1>&6
7194 fi
7195
7196
7197
7198 SEARCH_INCLUDE="\
7199 /usr/local/include \
7200 \
7201 /usr/Motif-1.2/include \
7202 /usr/Motif-2.1/include \
7203 \
7204 /usr/include/Motif1.2 \
7205 /opt/xpm/include/X11 \
7206 /opt/GBxpm/include/ \
7207 /opt/GBxpm/X11/include/ \
7208 \
7209 /usr/Motif1.2/include \
7210 /usr/dt/include \
7211 /usr/openwin/include \
7212 \
7213 /usr/include/Xm \
7214 \
7215 /usr/X11R6/include \
7216 /usr/X11R6.4/include \
7217 /usr/X11R5/include \
7218 /usr/X11R4/include \
7219 \
7220 /usr/include/X11R6 \
7221 /usr/include/X11R5 \
7222 /usr/include/X11R4 \
7223 \
7224 /usr/local/X11R6/include \
7225 /usr/local/X11R5/include \
7226 /usr/local/X11R4/include \
7227 \
7228 /usr/local/include/X11R6 \
7229 /usr/local/include/X11R5 \
7230 /usr/local/include/X11R4 \
7231 \
7232 /usr/X11/include \
7233 /usr/include/X11 \
7234 /usr/local/X11/include \
7235 /usr/local/include/X11 \
7236 \
7237 /usr/X386/include \
7238 /usr/x386/include \
7239 /usr/XFree86/include/X11 \
7240 \
7241 X:/XFree86/include \
7242 X:/XFree86/include/X11 \
7243 \
7244 /usr/include/gtk \
7245 /usr/local/include/gtk \
7246 /usr/include/glib \
7247 /usr/local/include/glib \
7248 \
7249 /usr/include/qt \
7250 /usr/local/include/qt \
7251 \
7252 /usr/include/windows \
7253 /usr/include/wine \
7254 /usr/local/include/wine \
7255 \
7256 /usr/unsupported/include \
7257 /usr/athena/include \
7258 /usr/local/x11r5/include \
7259 /usr/lpp/Xamples/include \
7260 \
7261 /usr/openwin/share/include \
7262 \
7263 /usr/include"
7264
7265 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
7266
7267
7268 cat > confcache <<\EOF
7269 # This file is a shell script that caches the results of configure
7270 # tests run on this system so they can be shared between configure
7271 # scripts and configure runs. It is not useful on other systems.
7272 # If it contains results you don't want to keep, you may remove or edit it.
7273 #
7274 # By default, configure uses ./config.cache as the cache file,
7275 # creating it if it does not exist already. You can give configure
7276 # the --cache-file=FILE option to use a different cache file; that is
7277 # what configure does when it calls configure scripts in
7278 # subdirectories, so they share the cache.
7279 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7280 # config.status only pays attention to the cache file if you give it the
7281 # --recheck option to rerun configure.
7282 #
7283 EOF
7284 # The following way of writing the cache mishandles newlines in values,
7285 # but we know of no workaround that is simple, portable, and efficient.
7286 # So, don't put newlines in cache variables' values.
7287 # Ultrix sh set writes to stderr and can't be redirected directly,
7288 # and sets the high bit in the cache file unless we assign to the vars.
7289 (set) 2>&1 |
7290 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7291 *ac_space=\ *)
7292 # `set' does not quote correctly, so add quotes (double-quote substitution
7293 # turns \\\\ into \\, and sed turns \\ into \).
7294 sed -n \
7295 -e "s/'/'\\\\''/g" \
7296 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7297 ;;
7298 *)
7299 # `set' quotes correctly as required by POSIX, so do not add quotes.
7300 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7301 ;;
7302 esac >> confcache
7303 if cmp -s $cache_file confcache; then
7304 :
7305 else
7306 if test -w $cache_file; then
7307 echo "updating cache $cache_file"
7308 cat confcache > $cache_file
7309 else
7310 echo "not updating unwritable cache $cache_file"
7311 fi
7312 fi
7313 rm -f confcache
7314
7315
7316
7317 AFMINSTALL=
7318
7319 if test "$wxUSE_GUI" = "yes"; then
7320
7321 USE_GUI=1
7322
7323 TOOLKIT=
7324 TOOLKIT_INCLUDE=
7325
7326 GUI_TK_LIBRARY=
7327 GUI_TK_LINK=
7328
7329 WXGTK12=
7330 WXGTK127=
7331 WXGTK20=
7332
7333 WXWINE=
7334
7335 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
7336 if test "$cross_compiling" = "yes" ; then
7337 echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2
7338 else
7339 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
7340 echo "configure:7341: checking for Windows headers" >&5
7341
7342 ac_find_includes=
7343 for ac_dir in $SEARCH_INCLUDE;
7344 do
7345 if test -f "$ac_dir/windows.h"; then
7346 ac_find_includes=$ac_dir
7347 break
7348 fi
7349 done
7350
7351 if test "$ac_find_includes" != "" ; then
7352 echo "$ac_t""found $ac_find_includes" 1>&6
7353 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7354 else
7355 echo "$ac_t""no" 1>&6
7356 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7357 fi
7358 fi
7359
7360 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
7361 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
7362
7363 if test "$wxUSE_ODBC" = "yes" ; then
7364 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
7365 fi
7366
7367 if test "$wxUSE_MINGW" = 1; then
7368 LDFLAGS="$LDFLAGS -mwindows"
7369 fi
7370
7371 TOOLKIT=MSW
7372 GUIDIST=MSW_DIST
7373
7374 RCINCSWITCH="--include-dir"
7375 RCDEFSWITCH="--define"
7376 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
7377 RCINPUTSWITCH="-i"
7378 RCOUTPUTSWITCH="-o"
7379 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
7380
7381 RESPROGRAM="\$(RES_PROGRAM)"
7382
7383 fi
7384
7385 if test "$wxUSE_GTK" = 1; then
7386 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
7387 if test "${with_gtk_prefix+set}" = set; then
7388 withval="$with_gtk_prefix"
7389 gtk_config_prefix="$withval"
7390 else
7391 gtk_config_prefix=""
7392 fi
7393
7394 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
7395 if test "${with_gtk_exec_prefix+set}" = set; then
7396 withval="$with_gtk_exec_prefix"
7397 gtk_config_exec_prefix="$withval"
7398 else
7399 gtk_config_exec_prefix=""
7400 fi
7401
7402 # Check whether --enable-gtktest or --disable-gtktest was given.
7403 if test "${enable_gtktest+set}" = set; then
7404 enableval="$enable_gtktest"
7405 :
7406 else
7407 enable_gtktest=yes
7408 fi
7409
7410
7411 for module in . gthread
7412 do
7413 case "$module" in
7414 gthread)
7415 gtk_config_args="$gtk_config_args gthread"
7416 ;;
7417 esac
7418 done
7419
7420 if test x$gtk_config_exec_prefix != x ; then
7421 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7422 if test x${GTK_CONFIG_2_0+set} != xset ; then
7423 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
7424 fi
7425 fi
7426 if test x$gtk_config_prefix != x ; then
7427 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7428 if test x${GTK_CONFIG_2_0+set} != xset ; then
7429 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
7430 fi
7431 fi
7432
7433 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
7434 set dummy gtk-config-2.0; ac_word=$2
7435 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7436 echo "configure:7437: checking for $ac_word" >&5
7437 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
7438 echo $ac_n "(cached) $ac_c" 1>&6
7439 else
7440 case "$GTK_CONFIG_2_0" in
7441 /*)
7442 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
7443 ;;
7444 ?:/*)
7445 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
7446 ;;
7447 *)
7448 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7449 ac_dummy="$PATH"
7450 for ac_dir in $ac_dummy; do
7451 test -z "$ac_dir" && ac_dir=.
7452 if test -f $ac_dir/$ac_word; then
7453 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
7454 break
7455 fi
7456 done
7457 IFS="$ac_save_ifs"
7458 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
7459 ;;
7460 esac
7461 fi
7462 GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
7463 if test -n "$GTK_CONFIG_2_0"; then
7464 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
7465 else
7466 echo "$ac_t""no" 1>&6
7467 fi
7468
7469 min_gtk_version=1.3.1
7470 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
7471 echo "configure:7472: checking for GTK - version >= $min_gtk_version" >&5
7472 no_gtk=""
7473 if test "$GTK_CONFIG_2_0" = "no" ; then
7474 no_gtk=yes
7475 else
7476 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
7477 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
7478 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
7479 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7480 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
7481 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7482 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
7483 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7484 if test "x$enable_gtktest" = "xyes" ; then
7485 ac_save_CFLAGS="$CFLAGS"
7486 ac_save_LIBS="$LIBS"
7487 CFLAGS="$CFLAGS $GTK_CFLAGS"
7488 LIBS="$GTK_LIBS $LIBS"
7489 rm -f conf.gtktest
7490 if test "$cross_compiling" = yes; then
7491 echo $ac_n "cross compiling; assumed OK... $ac_c"
7492 else
7493 cat > conftest.$ac_ext <<EOF
7494 #line 7495 "configure"
7495 #include "confdefs.h"
7496
7497 #include <gtk/gtk.h>
7498 #include <stdio.h>
7499 #include <stdlib.h>
7500
7501 int
7502 main ()
7503 {
7504 int major, minor, micro;
7505 char *tmp_version;
7506
7507 system ("touch conf.gtktest");
7508
7509 /* HP/UX 9 (%@#!) writes to sscanf strings */
7510 tmp_version = g_strdup("$min_gtk_version");
7511 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7512 printf("%s, bad version string\n", "$min_gtk_version");
7513 exit(1);
7514 }
7515
7516 if ((gtk_major_version != $gtk_config_major_version) ||
7517 (gtk_minor_version != $gtk_config_minor_version) ||
7518 (gtk_micro_version != $gtk_config_micro_version))
7519 {
7520 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
7521 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
7522 gtk_major_version, gtk_minor_version, gtk_micro_version);
7523 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
7524 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
7525 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7526 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7527 printf("*** required on your system.\n");
7528 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
7529 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
7530 printf("*** before re-running configure\n");
7531 }
7532 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
7533 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
7534 (gtk_minor_version != GTK_MINOR_VERSION) ||
7535 (gtk_micro_version != GTK_MICRO_VERSION))
7536 {
7537 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
7538 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
7539 printf("*** library (version %d.%d.%d)\n",
7540 gtk_major_version, gtk_minor_version, gtk_micro_version);
7541 }
7542 #endif /* defined (GTK_MAJOR_VERSION) ... */
7543 else
7544 {
7545 if ((gtk_major_version > major) ||
7546 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7547 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
7548 {
7549 return 0;
7550 }
7551 else
7552 {
7553 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
7554 gtk_major_version, gtk_minor_version, gtk_micro_version);
7555 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
7556 major, minor, micro);
7557 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
7558 printf("***\n");
7559 printf("*** If you have already installed a sufficiently new version, this error\n");
7560 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
7561 printf("*** being found. The easiest way to fix this is to remove the old version\n");
7562 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
7563 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
7564 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7565 printf("*** so that the correct libraries are found at run-time))\n");
7566 }
7567 }
7568 return 1;
7569 }
7570
7571 EOF
7572 if { (eval echo configure:7573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7573 then
7574 :
7575 else
7576 echo "configure: failed program was:" >&5
7577 cat conftest.$ac_ext >&5
7578 rm -fr conftest*
7579 no_gtk=yes
7580 fi
7581 rm -fr conftest*
7582 fi
7583
7584 CFLAGS="$ac_save_CFLAGS"
7585 LIBS="$ac_save_LIBS"
7586 fi
7587 fi
7588 if test "x$no_gtk" = x ; then
7589 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
7590 WXGTK20=1
7591 else
7592 echo "$ac_t""no" 1>&6
7593 if test "$GTK_CONFIG_2_0" = "no" ; then
7594 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
7595 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
7596 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
7597 echo "*** full path to gtk-config-2.0."
7598 else
7599 if test -f conf.gtktest ; then
7600 :
7601 else
7602 echo "*** Could not run GTK test program, checking why..."
7603 CFLAGS="$CFLAGS $GTK_CFLAGS"
7604 LIBS="$LIBS $GTK_LIBS"
7605 cat > conftest.$ac_ext <<EOF
7606 #line 7607 "configure"
7607 #include "confdefs.h"
7608
7609 #include <gtk/gtk.h>
7610 #include <stdio.h>
7611
7612 int main() {
7613 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
7614 ; return 0; }
7615 EOF
7616 if { (eval echo configure:7617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7617 rm -rf conftest*
7618 echo "*** The test program compiled, but did not run. This usually means"
7619 echo "*** that the run-time linker is not finding GTK or finding the wrong"
7620 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
7621 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7622 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7623 echo "*** is required on your system"
7624 echo "***"
7625 echo "*** If you have an old version installed, it is best to remove it, although"
7626 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7627 echo "***"
7628 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
7629 echo "*** came with the system with the command"
7630 echo "***"
7631 echo "*** rpm --erase --nodeps gtk gtk-devel"
7632 else
7633 echo "configure: failed program was:" >&5
7634 cat conftest.$ac_ext >&5
7635 rm -rf conftest*
7636 echo "*** The test program failed to compile or link. See the file config.log for the"
7637 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
7638 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
7639 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
7640 fi
7641 rm -f conftest*
7642 CFLAGS="$ac_save_CFLAGS"
7643 LIBS="$ac_save_LIBS"
7644 fi
7645 fi
7646 GTK_CFLAGS=""
7647 GTK_LIBS=""
7648
7649
7650 if test x$gtk_config_exec_prefix != x ; then
7651 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7652 if test x${GTK_CONFIG+set} != xset ; then
7653 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7654 fi
7655 fi
7656 if test x$gtk_config_prefix != x ; then
7657 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7658 if test x${GTK_CONFIG+set} != xset ; then
7659 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7660 fi
7661 fi
7662
7663 # Extract the first word of "gtk-config", so it can be a program name with args.
7664 set dummy gtk-config; ac_word=$2
7665 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7666 echo "configure:7667: checking for $ac_word" >&5
7667 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7668 echo $ac_n "(cached) $ac_c" 1>&6
7669 else
7670 case "$GTK_CONFIG" in
7671 /*)
7672 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7673 ;;
7674 ?:/*)
7675 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7676 ;;
7677 *)
7678 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7679 ac_dummy="$PATH"
7680 for ac_dir in $ac_dummy; do
7681 test -z "$ac_dir" && ac_dir=.
7682 if test -f $ac_dir/$ac_word; then
7683 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7684 break
7685 fi
7686 done
7687 IFS="$ac_save_ifs"
7688 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7689 ;;
7690 esac
7691 fi
7692 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7693 if test -n "$GTK_CONFIG"; then
7694 echo "$ac_t""$GTK_CONFIG" 1>&6
7695 else
7696 echo "$ac_t""no" 1>&6
7697 fi
7698
7699 min_gtk_version=1.2.7
7700 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
7701 echo "configure:7702: checking for GTK - version >= $min_gtk_version" >&5
7702 no_gtk=""
7703 if test "$GTK_CONFIG" != "no" ; then
7704 GTK_CFLAGS=`$GTK_CONFIG --cflags`
7705 GTK_LIBS=`$GTK_CONFIG --libs gthread`
7706 ac_save_CFLAGS="$CFLAGS"
7707 ac_save_LIBS="$LIBS"
7708 CFLAGS="$CFLAGS $GTK_CFLAGS"
7709 LIBS="$LIBS $GTK_LIBS"
7710 if test "$cross_compiling" = yes; then
7711 echo $ac_n "cross compiling; assumed OK... $ac_c"
7712 else
7713 cat > conftest.$ac_ext <<EOF
7714 #line 7715 "configure"
7715 #include "confdefs.h"
7716
7717 #include <gtk/gtk.h>
7718 #include <gtk/gtkfeatures.h>
7719 #include <stdio.h>
7720 #include <stdlib.h>
7721
7722 int
7723 main ()
7724 {
7725 int major, minor, micro;
7726
7727 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7728 printf("%s, bad version string\n", "$min_gtk_version");
7729 exit(1);
7730 }
7731
7732 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7733 (GTK_MINOR_VERSION != gtk_minor_version) ||
7734 (GTK_MICRO_VERSION != gtk_micro_version)) {
7735 printf("Headers vs. library version mismatch!\n");
7736 exit(1);
7737 }
7738
7739 if (gtk_minor_version == 1) return FALSE;
7740
7741 return !((gtk_major_version > major) ||
7742 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7743 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7744 }
7745
7746 EOF
7747 if { (eval echo configure:7748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7748 then
7749 :
7750 else
7751 echo "configure: failed program was:" >&5
7752 cat conftest.$ac_ext >&5
7753 rm -fr conftest*
7754 no_gtk=yes
7755 fi
7756 rm -fr conftest*
7757 fi
7758
7759 CFLAGS="$ac_save_CFLAGS"
7760 LIBS="$ac_save_LIBS"
7761 else
7762 no_gtk=yes
7763 fi
7764 if test "x$no_gtk" = x ; then
7765 echo "$ac_t""yes" 1>&6
7766 WXGTK127=1
7767 else
7768 echo "$ac_t""no" 1>&6
7769 GTK_CFLAGS=""
7770 GTK_LIBS=""
7771 :
7772 fi
7773
7774
7775
7776
7777 if test x$gtk_config_exec_prefix != x ; then
7778 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7779 if test x${GTK_CONFIG+set} != xset ; then
7780 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7781 fi
7782 fi
7783 if test x$gtk_config_prefix != x ; then
7784 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7785 if test x${GTK_CONFIG+set} != xset ; then
7786 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7787 fi
7788 fi
7789
7790 # Extract the first word of "gtk-config", so it can be a program name with args.
7791 set dummy gtk-config; ac_word=$2
7792 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7793 echo "configure:7794: checking for $ac_word" >&5
7794 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7795 echo $ac_n "(cached) $ac_c" 1>&6
7796 else
7797 case "$GTK_CONFIG" in
7798 /*)
7799 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7800 ;;
7801 ?:/*)
7802 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7803 ;;
7804 *)
7805 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7806 ac_dummy="$PATH"
7807 for ac_dir in $ac_dummy; do
7808 test -z "$ac_dir" && ac_dir=.
7809 if test -f $ac_dir/$ac_word; then
7810 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7811 break
7812 fi
7813 done
7814 IFS="$ac_save_ifs"
7815 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7816 ;;
7817 esac
7818 fi
7819 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7820 if test -n "$GTK_CONFIG"; then
7821 echo "$ac_t""$GTK_CONFIG" 1>&6
7822 else
7823 echo "$ac_t""no" 1>&6
7824 fi
7825
7826 min_gtk_version=1.2.3
7827 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
7828 echo "configure:7829: checking for GTK - version >= $min_gtk_version" >&5
7829 no_gtk=""
7830 if test "$GTK_CONFIG" != "no" ; then
7831 GTK_CFLAGS=`$GTK_CONFIG --cflags`
7832 GTK_LIBS=`$GTK_CONFIG --libs gthread`
7833 ac_save_CFLAGS="$CFLAGS"
7834 ac_save_LIBS="$LIBS"
7835 CFLAGS="$CFLAGS $GTK_CFLAGS"
7836 LIBS="$LIBS $GTK_LIBS"
7837 if test "$cross_compiling" = yes; then
7838 echo $ac_n "cross compiling; assumed OK... $ac_c"
7839 else
7840 cat > conftest.$ac_ext <<EOF
7841 #line 7842 "configure"
7842 #include "confdefs.h"
7843
7844 #include <gtk/gtk.h>
7845 #include <gtk/gtkfeatures.h>
7846 #include <stdio.h>
7847 #include <stdlib.h>
7848
7849 int
7850 main ()
7851 {
7852 int major, minor, micro;
7853
7854 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7855 printf("%s, bad version string\n", "$min_gtk_version");
7856 exit(1);
7857 }
7858
7859 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7860 (GTK_MINOR_VERSION != gtk_minor_version) ||
7861 (GTK_MICRO_VERSION != gtk_micro_version)) {
7862 printf("Headers vs. library version mismatch!\n");
7863 exit(1);
7864 }
7865
7866 if (gtk_minor_version == 1) return FALSE;
7867
7868 return !((gtk_major_version > major) ||
7869 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7870 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7871 }
7872
7873 EOF
7874 if { (eval echo configure:7875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7875 then
7876 :
7877 else
7878 echo "configure: failed program was:" >&5
7879 cat conftest.$ac_ext >&5
7880 rm -fr conftest*
7881 no_gtk=yes
7882 fi
7883 rm -fr conftest*
7884 fi
7885
7886 CFLAGS="$ac_save_CFLAGS"
7887 LIBS="$ac_save_LIBS"
7888 else
7889 no_gtk=yes
7890 fi
7891 if test "x$no_gtk" = x ; then
7892 echo "$ac_t""yes" 1>&6
7893 WXGTK12=1
7894 else
7895 echo "$ac_t""no" 1>&6
7896 GTK_CFLAGS=""
7897 GTK_LIBS=""
7898 :
7899 fi
7900
7901
7902
7903
7904 fi
7905
7906
7907 rm -f conf.gtktest
7908
7909
7910 if test "$WXGTK12" != 1 -a "$WXGTK20" != 1; then
7911 { echo "configure: error:
7912 Please check that gtk-config is in path, the directory
7913 where GTK+ libraries are installed (returned by
7914 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
7915 equivalent variable and GTK+ is version 1.2.3 or above.
7916 " 1>&2; exit 1; }
7917 fi
7918
7919 TOOLKIT_INCLUDE="$GTK_CFLAGS"
7920
7921
7922 GUI_TK_LIBRARY="$GTK_LIBS"
7923
7924
7925 AFMINSTALL=afminstall
7926 TOOLKIT=GTK
7927 GUIDIST=GTK_DIST
7928
7929 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
7930 echo "configure:7931: checking for gdk_im_open in -lgdk" >&5
7931 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
7932 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7933 echo $ac_n "(cached) $ac_c" 1>&6
7934 else
7935 ac_save_LIBS="$LIBS"
7936 LIBS="-lgdk $LIBS"
7937 cat > conftest.$ac_ext <<EOF
7938 #line 7939 "configure"
7939 #include "confdefs.h"
7940 /* Override any gcc2 internal prototype to avoid an error. */
7941 /* We use char because int might match the return type of a gcc2
7942 builtin and then its argument prototype would still apply. */
7943 char gdk_im_open();
7944
7945 int main() {
7946 gdk_im_open()
7947 ; return 0; }
7948 EOF
7949 if { (eval echo configure:7950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7950 rm -rf conftest*
7951 eval "ac_cv_lib_$ac_lib_var=yes"
7952 else
7953 echo "configure: failed program was:" >&5
7954 cat conftest.$ac_ext >&5
7955 rm -rf conftest*
7956 eval "ac_cv_lib_$ac_lib_var=no"
7957 fi
7958 rm -f conftest*
7959 LIBS="$ac_save_LIBS"
7960
7961 fi
7962 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7963 echo "$ac_t""yes" 1>&6
7964 cat >> confdefs.h <<\EOF
7965 #define HAVE_XIM 1
7966 EOF
7967
7968 else
7969 echo "$ac_t""no" 1>&6
7970 fi
7971
7972 fi
7973
7974 if test "$wxUSE_WINE" = 1; then
7975 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
7976 echo "configure:7977: checking for WINE includes" >&5
7977
7978 ac_find_includes=
7979 for ac_dir in $SEARCH_INCLUDE;
7980 do
7981 if test -f "$ac_dir/windows.h"; then
7982 ac_find_includes=$ac_dir
7983 break
7984 fi
7985 done
7986
7987 if test "$ac_find_includes" != "" ; then
7988 echo "$ac_t""found $ac_find_includes" 1>&6
7989 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7990 else
7991 echo "$ac_t""no" 1>&6
7992 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7993 fi
7994
7995 XPM_LINK=""
7996 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
7997 echo "configure:7998: checking for Xpm library" >&5
7998
7999 ac_find_libraries=
8000 for ac_dir in $SEARCH_LIB;
8001 do
8002 for ac_extension in a so sl; do
8003 if test -f "$ac_dir/libXpm.$ac_extension"; then
8004 ac_find_libraries=$ac_dir
8005 break 2
8006 fi
8007 done
8008 done
8009
8010 if test "$ac_find_libraries" != "" ; then
8011 GUI_TK_LIBRARY="-L$ac_find_libraries"
8012 XPM_LINK="-lXpm"
8013 cat >> confdefs.h <<\EOF
8014 #define wxHAVE_LIB_XPM 1
8015 EOF
8016
8017 echo "$ac_t""found at $ac_find_libraries" 1>&6
8018 else
8019 echo "$ac_t""no" 1>&6
8020 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
8021 fi
8022
8023 MESA_LINK=""
8024 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
8025 echo "configure:8026: checking for Mesa library" >&5
8026
8027 ac_find_libraries=
8028 for ac_dir in $SEARCH_LIB;
8029 do
8030 for ac_extension in a so sl; do
8031 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
8032 ac_find_libraries=$ac_dir
8033 break 2
8034 fi
8035 done
8036 done
8037
8038 if test "$ac_find_libraries" != "" ; then
8039 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
8040 MESA_LINK="-lMesaGL"
8041 echo "$ac_t""found at $ac_find_libraries" 1>&6
8042 else
8043 { echo "configure: error: no" 1>&2; exit 1; }
8044 fi
8045
8046 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
8047 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
8048 WXWINE=1
8049 TOOLKIT=MSW
8050 GUIDIST=MSW_DIST
8051 fi
8052
8053
8054 # If we find X, set shell vars x_includes and x_libraries to the
8055 # paths, otherwise set no_x=yes.
8056 # Uses ac_ vars as temps to allow command line to override cache and checks.
8057 # --without-x overrides everything else, but does not touch the cache.
8058 echo $ac_n "checking for X""... $ac_c" 1>&6
8059 echo "configure:8060: checking for X" >&5
8060
8061 # Check whether --with-x or --without-x was given.
8062 if test "${with_x+set}" = set; then
8063 withval="$with_x"
8064 :
8065 fi
8066
8067 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8068 if test "x$with_x" = xno; then
8069 # The user explicitly disabled X.
8070 have_x=disabled
8071 else
8072 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8073 # Both variables are already set.
8074 have_x=yes
8075 else
8076 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
8077 echo $ac_n "(cached) $ac_c" 1>&6
8078 else
8079 # One or both of the vars are not set, and there is no cached value.
8080 ac_x_includes=NO ac_x_libraries=NO
8081 rm -fr conftestdir
8082 if mkdir conftestdir; then
8083 cd conftestdir
8084 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8085 cat > Imakefile <<'EOF'
8086 acfindx:
8087 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8088 EOF
8089 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8090 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8091 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8092 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8093 for ac_extension in a so sl; do
8094 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8095 test -f $ac_im_libdir/libX11.$ac_extension; then
8096 ac_im_usrlibdir=$ac_im_libdir; break
8097 fi
8098 done
8099 # Screen out bogus values from the imake configuration. They are
8100 # bogus both because they are the default anyway, and because
8101 # using them would break gcc on systems where it needs fixed includes.
8102 case "$ac_im_incroot" in
8103 /usr/include) ;;
8104 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
8105 esac
8106 case "$ac_im_usrlibdir" in
8107 /usr/lib | /lib) ;;
8108 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
8109 esac
8110 fi
8111 cd ..
8112 rm -fr conftestdir
8113 fi
8114
8115 if test "$ac_x_includes" = NO; then
8116 # Guess where to find include files, by looking for this one X11 .h file.
8117 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
8118
8119 # First, try using that file with no special directory specified.
8120 cat > conftest.$ac_ext <<EOF
8121 #line 8122 "configure"
8122 #include "confdefs.h"
8123 #include <$x_direct_test_include>
8124 EOF
8125 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8126 { (eval echo configure:8127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8127 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8128 if test -z "$ac_err"; then
8129 rm -rf conftest*
8130 # We can compile using X headers with no special include directory.
8131 ac_x_includes=
8132 else
8133 echo "$ac_err" >&5
8134 echo "configure: failed program was:" >&5
8135 cat conftest.$ac_ext >&5
8136 rm -rf conftest*
8137 # Look for the header file in a standard set of common directories.
8138 # Check X11 before X11Rn because it is often a symlink to the current release.
8139 for ac_dir in \
8140 /usr/X11/include \
8141 /usr/X11R6/include \
8142 /usr/X11R5/include \
8143 /usr/X11R4/include \
8144 \
8145 /usr/include/X11 \
8146 /usr/include/X11R6 \
8147 /usr/include/X11R5 \
8148 /usr/include/X11R4 \
8149 \
8150 /usr/local/X11/include \
8151 /usr/local/X11R6/include \
8152 /usr/local/X11R5/include \
8153 /usr/local/X11R4/include \
8154 \
8155 /usr/local/include/X11 \
8156 /usr/local/include/X11R6 \
8157 /usr/local/include/X11R5 \
8158 /usr/local/include/X11R4 \
8159 \
8160 /usr/X386/include \
8161 /usr/x386/include \
8162 /usr/XFree86/include/X11 \
8163 \
8164 /usr/include \
8165 /usr/local/include \
8166 /usr/unsupported/include \
8167 /usr/athena/include \
8168 /usr/local/x11r5/include \
8169 /usr/lpp/Xamples/include \
8170 \
8171 /usr/openwin/include \
8172 /usr/openwin/share/include \
8173 ; \
8174 do
8175 if test -r "$ac_dir/$x_direct_test_include"; then
8176 ac_x_includes=$ac_dir
8177 break
8178 fi
8179 done
8180 fi
8181 rm -f conftest*
8182 fi # $ac_x_includes = NO
8183
8184 if test "$ac_x_libraries" = NO; then
8185 # Check for the libraries.
8186
8187 test -z "$x_direct_test_library" && x_direct_test_library=Xt
8188 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
8189
8190 # See if we find them without any special options.
8191 # Don't add to $LIBS permanently.
8192 ac_save_LIBS="$LIBS"
8193 LIBS="-l$x_direct_test_library $LIBS"
8194 cat > conftest.$ac_ext <<EOF
8195 #line 8196 "configure"
8196 #include "confdefs.h"
8197
8198 int main() {
8199 ${x_direct_test_function}()
8200 ; return 0; }
8201 EOF
8202 if { (eval echo configure:8203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8203 rm -rf conftest*
8204 LIBS="$ac_save_LIBS"
8205 # We can link X programs with no special library path.
8206 ac_x_libraries=
8207 else
8208 echo "configure: failed program was:" >&5
8209 cat conftest.$ac_ext >&5
8210 rm -rf conftest*
8211 LIBS="$ac_save_LIBS"
8212 # First see if replacing the include by lib works.
8213 # Check X11 before X11Rn because it is often a symlink to the current release.
8214 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
8215 /usr/X11/lib \
8216 /usr/X11R6/lib \
8217 /usr/X11R5/lib \
8218 /usr/X11R4/lib \
8219 \
8220 /usr/lib/X11 \
8221 /usr/lib/X11R6 \
8222 /usr/lib/X11R5 \
8223 /usr/lib/X11R4 \
8224 \
8225 /usr/local/X11/lib \
8226 /usr/local/X11R6/lib \
8227 /usr/local/X11R5/lib \
8228 /usr/local/X11R4/lib \
8229 \
8230 /usr/local/lib/X11 \
8231 /usr/local/lib/X11R6 \
8232 /usr/local/lib/X11R5 \
8233 /usr/local/lib/X11R4 \
8234 \
8235 /usr/X386/lib \
8236 /usr/x386/lib \
8237 /usr/XFree86/lib/X11 \
8238 \
8239 /usr/lib \
8240 /usr/local/lib \
8241 /usr/unsupported/lib \
8242 /usr/athena/lib \
8243 /usr/local/x11r5/lib \
8244 /usr/lpp/Xamples/lib \
8245 /lib/usr/lib/X11 \
8246 \
8247 /usr/openwin/lib \
8248 /usr/openwin/share/lib \
8249 ; \
8250 do
8251 for ac_extension in a so sl; do
8252 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
8253 ac_x_libraries=$ac_dir
8254 break 2
8255 fi
8256 done
8257 done
8258 fi
8259 rm -f conftest*
8260 fi # $ac_x_libraries = NO
8261
8262 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
8263 # Didn't find X anywhere. Cache the known absence of X.
8264 ac_cv_have_x="have_x=no"
8265 else
8266 # Record where we found X for the cache.
8267 ac_cv_have_x="have_x=yes \
8268 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8269 fi
8270 fi
8271 fi
8272 eval "$ac_cv_have_x"
8273 fi # $with_x != no
8274
8275 if test "$have_x" != yes; then
8276 echo "$ac_t""$have_x" 1>&6
8277 no_x=yes
8278 else
8279 # If each of the values was on the command line, it overrides each guess.
8280 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8281 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8282 # Update the cache value to reflect the command line values.
8283 ac_cv_have_x="have_x=yes \
8284 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8285 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
8286 fi
8287
8288 if test "$no_x" = yes; then
8289 # Not all programs may use this symbol, but it does not hurt to define it.
8290 cat >> confdefs.h <<\EOF
8291 #define X_DISPLAY_MISSING 1
8292 EOF
8293
8294 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8295 else
8296 if test -n "$x_includes"; then
8297 X_CFLAGS="$X_CFLAGS -I$x_includes"
8298 fi
8299
8300 # It would also be nice to do this for all -L options, not just this one.
8301 if test -n "$x_libraries"; then
8302 X_LIBS="$X_LIBS -L$x_libraries"
8303 # For Solaris; some versions of Sun CC require a space after -R and
8304 # others require no space. Words are not sufficient . . . .
8305 case "`(uname -sr) 2>/dev/null`" in
8306 "SunOS 5"*)
8307 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
8308 echo "configure:8309: checking whether -R must be followed by a space" >&5
8309 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
8310 cat > conftest.$ac_ext <<EOF
8311 #line 8312 "configure"
8312 #include "confdefs.h"
8313
8314 int main() {
8315
8316 ; return 0; }
8317 EOF
8318 if { (eval echo configure:8319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8319 rm -rf conftest*
8320 ac_R_nospace=yes
8321 else
8322 echo "configure: failed program was:" >&5
8323 cat conftest.$ac_ext >&5
8324 rm -rf conftest*
8325 ac_R_nospace=no
8326 fi
8327 rm -f conftest*
8328 if test $ac_R_nospace = yes; then
8329 echo "$ac_t""no" 1>&6
8330 X_LIBS="$X_LIBS -R$x_libraries"
8331 else
8332 LIBS="$ac_xsave_LIBS -R $x_libraries"
8333 cat > conftest.$ac_ext <<EOF
8334 #line 8335 "configure"
8335 #include "confdefs.h"
8336
8337 int main() {
8338
8339 ; return 0; }
8340 EOF
8341 if { (eval echo configure:8342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8342 rm -rf conftest*
8343 ac_R_space=yes
8344 else
8345 echo "configure: failed program was:" >&5
8346 cat conftest.$ac_ext >&5
8347 rm -rf conftest*
8348 ac_R_space=no
8349 fi
8350 rm -f conftest*
8351 if test $ac_R_space = yes; then
8352 echo "$ac_t""yes" 1>&6
8353 X_LIBS="$X_LIBS -R $x_libraries"
8354 else
8355 echo "$ac_t""neither works" 1>&6
8356 fi
8357 fi
8358 LIBS="$ac_xsave_LIBS"
8359 esac
8360 fi
8361
8362 # Check for system-dependent libraries X programs must link with.
8363 # Do this before checking for the system-independent R6 libraries
8364 # (-lICE), since we may need -lsocket or whatever for X linking.
8365
8366 if test "$ISC" = yes; then
8367 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8368 else
8369 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
8370 # libraries were built with DECnet support. And karl@cs.umb.edu says
8371 # the Alpha needs dnet_stub (dnet does not exist).
8372 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
8373 echo "configure:8374: checking for dnet_ntoa in -ldnet" >&5
8374 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
8375 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8376 echo $ac_n "(cached) $ac_c" 1>&6
8377 else
8378 ac_save_LIBS="$LIBS"
8379 LIBS="-ldnet $LIBS"
8380 cat > conftest.$ac_ext <<EOF
8381 #line 8382 "configure"
8382 #include "confdefs.h"
8383 /* Override any gcc2 internal prototype to avoid an error. */
8384 /* We use char because int might match the return type of a gcc2
8385 builtin and then its argument prototype would still apply. */
8386 char dnet_ntoa();
8387
8388 int main() {
8389 dnet_ntoa()
8390 ; return 0; }
8391 EOF
8392 if { (eval echo configure:8393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8393 rm -rf conftest*
8394 eval "ac_cv_lib_$ac_lib_var=yes"
8395 else
8396 echo "configure: failed program was:" >&5
8397 cat conftest.$ac_ext >&5
8398 rm -rf conftest*
8399 eval "ac_cv_lib_$ac_lib_var=no"
8400 fi
8401 rm -f conftest*
8402 LIBS="$ac_save_LIBS"
8403
8404 fi
8405 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8406 echo "$ac_t""yes" 1>&6
8407 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8408 else
8409 echo "$ac_t""no" 1>&6
8410 fi
8411
8412 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8413 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
8414 echo "configure:8415: checking for dnet_ntoa in -ldnet_stub" >&5
8415 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
8416 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8417 echo $ac_n "(cached) $ac_c" 1>&6
8418 else
8419 ac_save_LIBS="$LIBS"
8420 LIBS="-ldnet_stub $LIBS"
8421 cat > conftest.$ac_ext <<EOF
8422 #line 8423 "configure"
8423 #include "confdefs.h"
8424 /* Override any gcc2 internal prototype to avoid an error. */
8425 /* We use char because int might match the return type of a gcc2
8426 builtin and then its argument prototype would still apply. */
8427 char dnet_ntoa();
8428
8429 int main() {
8430 dnet_ntoa()
8431 ; return 0; }
8432 EOF
8433 if { (eval echo configure:8434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8434 rm -rf conftest*
8435 eval "ac_cv_lib_$ac_lib_var=yes"
8436 else
8437 echo "configure: failed program was:" >&5
8438 cat conftest.$ac_ext >&5
8439 rm -rf conftest*
8440 eval "ac_cv_lib_$ac_lib_var=no"
8441 fi
8442 rm -f conftest*
8443 LIBS="$ac_save_LIBS"
8444
8445 fi
8446 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8447 echo "$ac_t""yes" 1>&6
8448 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8449 else
8450 echo "$ac_t""no" 1>&6
8451 fi
8452
8453 fi
8454
8455 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8456 # to get the SysV transport functions.
8457 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
8458 # needs -lnsl.
8459 # The nsl library prevents programs from opening the X display
8460 # on Irix 5.2, according to dickey@clark.net.
8461 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
8462 echo "configure:8463: checking for gethostbyname" >&5
8463 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
8464 echo $ac_n "(cached) $ac_c" 1>&6
8465 else
8466 cat > conftest.$ac_ext <<EOF
8467 #line 8468 "configure"
8468 #include "confdefs.h"
8469 /* System header to define __stub macros and hopefully few prototypes,
8470 which can conflict with char gethostbyname(); below. */
8471 #include <assert.h>
8472 /* Override any gcc2 internal prototype to avoid an error. */
8473 /* We use char because int might match the return type of a gcc2
8474 builtin and then its argument prototype would still apply. */
8475 char gethostbyname();
8476
8477 int main() {
8478
8479 /* The GNU C library defines this for functions which it implements
8480 to always fail with ENOSYS. Some functions are actually named
8481 something starting with __ and the normal name is an alias. */
8482 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8483 choke me
8484 #else
8485 gethostbyname();
8486 #endif
8487
8488 ; return 0; }
8489 EOF
8490 if { (eval echo configure:8491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8491 rm -rf conftest*
8492 eval "ac_cv_func_gethostbyname=yes"
8493 else
8494 echo "configure: failed program was:" >&5
8495 cat conftest.$ac_ext >&5
8496 rm -rf conftest*
8497 eval "ac_cv_func_gethostbyname=no"
8498 fi
8499 rm -f conftest*
8500 fi
8501
8502 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
8503 echo "$ac_t""yes" 1>&6
8504 :
8505 else
8506 echo "$ac_t""no" 1>&6
8507 fi
8508
8509 if test $ac_cv_func_gethostbyname = no; then
8510 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
8511 echo "configure:8512: checking for gethostbyname in -lnsl" >&5
8512 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
8513 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8514 echo $ac_n "(cached) $ac_c" 1>&6
8515 else
8516 ac_save_LIBS="$LIBS"
8517 LIBS="-lnsl $LIBS"
8518 cat > conftest.$ac_ext <<EOF
8519 #line 8520 "configure"
8520 #include "confdefs.h"
8521 /* Override any gcc2 internal prototype to avoid an error. */
8522 /* We use char because int might match the return type of a gcc2
8523 builtin and then its argument prototype would still apply. */
8524 char gethostbyname();
8525
8526 int main() {
8527 gethostbyname()
8528 ; return 0; }
8529 EOF
8530 if { (eval echo configure:8531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8531 rm -rf conftest*
8532 eval "ac_cv_lib_$ac_lib_var=yes"
8533 else
8534 echo "configure: failed program was:" >&5
8535 cat conftest.$ac_ext >&5
8536 rm -rf conftest*
8537 eval "ac_cv_lib_$ac_lib_var=no"
8538 fi
8539 rm -f conftest*
8540 LIBS="$ac_save_LIBS"
8541
8542 fi
8543 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8544 echo "$ac_t""yes" 1>&6
8545 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8546 else
8547 echo "$ac_t""no" 1>&6
8548 fi
8549
8550 fi
8551
8552 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8553 # socket/setsockopt and other routines are undefined under SCO ODT
8554 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8555 # on later versions), says simon@lia.di.epfl.ch: it contains
8556 # gethostby* variants that don't use the nameserver (or something).
8557 # -lsocket must be given before -lnsl if both are needed.
8558 # We assume that if connect needs -lnsl, so does gethostbyname.
8559 echo $ac_n "checking for connect""... $ac_c" 1>&6
8560 echo "configure:8561: checking for connect" >&5
8561 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
8562 echo $ac_n "(cached) $ac_c" 1>&6
8563 else
8564 cat > conftest.$ac_ext <<EOF
8565 #line 8566 "configure"
8566 #include "confdefs.h"
8567 /* System header to define __stub macros and hopefully few prototypes,
8568 which can conflict with char connect(); below. */
8569 #include <assert.h>
8570 /* Override any gcc2 internal prototype to avoid an error. */
8571 /* We use char because int might match the return type of a gcc2
8572 builtin and then its argument prototype would still apply. */
8573 char connect();
8574
8575 int main() {
8576
8577 /* The GNU C library defines this for functions which it implements
8578 to always fail with ENOSYS. Some functions are actually named
8579 something starting with __ and the normal name is an alias. */
8580 #if defined (__stub_connect) || defined (__stub___connect)
8581 choke me
8582 #else
8583 connect();
8584 #endif
8585
8586 ; return 0; }
8587 EOF
8588 if { (eval echo configure:8589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8589 rm -rf conftest*
8590 eval "ac_cv_func_connect=yes"
8591 else
8592 echo "configure: failed program was:" >&5
8593 cat conftest.$ac_ext >&5
8594 rm -rf conftest*
8595 eval "ac_cv_func_connect=no"
8596 fi
8597 rm -f conftest*
8598 fi
8599
8600 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
8601 echo "$ac_t""yes" 1>&6
8602 :
8603 else
8604 echo "$ac_t""no" 1>&6
8605 fi
8606
8607 if test $ac_cv_func_connect = no; then
8608 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
8609 echo "configure:8610: checking for connect in -lsocket" >&5
8610 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
8611 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8612 echo $ac_n "(cached) $ac_c" 1>&6
8613 else
8614 ac_save_LIBS="$LIBS"
8615 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8616 cat > conftest.$ac_ext <<EOF
8617 #line 8618 "configure"
8618 #include "confdefs.h"
8619 /* Override any gcc2 internal prototype to avoid an error. */
8620 /* We use char because int might match the return type of a gcc2
8621 builtin and then its argument prototype would still apply. */
8622 char connect();
8623
8624 int main() {
8625 connect()
8626 ; return 0; }
8627 EOF
8628 if { (eval echo configure:8629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8629 rm -rf conftest*
8630 eval "ac_cv_lib_$ac_lib_var=yes"
8631 else
8632 echo "configure: failed program was:" >&5
8633 cat conftest.$ac_ext >&5
8634 rm -rf conftest*
8635 eval "ac_cv_lib_$ac_lib_var=no"
8636 fi
8637 rm -f conftest*
8638 LIBS="$ac_save_LIBS"
8639
8640 fi
8641 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8642 echo "$ac_t""yes" 1>&6
8643 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8644 else
8645 echo "$ac_t""no" 1>&6
8646 fi
8647
8648 fi
8649
8650 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
8651 echo $ac_n "checking for remove""... $ac_c" 1>&6
8652 echo "configure:8653: checking for remove" >&5
8653 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
8654 echo $ac_n "(cached) $ac_c" 1>&6
8655 else
8656 cat > conftest.$ac_ext <<EOF
8657 #line 8658 "configure"
8658 #include "confdefs.h"
8659 /* System header to define __stub macros and hopefully few prototypes,
8660 which can conflict with char remove(); below. */
8661 #include <assert.h>
8662 /* Override any gcc2 internal prototype to avoid an error. */
8663 /* We use char because int might match the return type of a gcc2
8664 builtin and then its argument prototype would still apply. */
8665 char remove();
8666
8667 int main() {
8668
8669 /* The GNU C library defines this for functions which it implements
8670 to always fail with ENOSYS. Some functions are actually named
8671 something starting with __ and the normal name is an alias. */
8672 #if defined (__stub_remove) || defined (__stub___remove)
8673 choke me
8674 #else
8675 remove();
8676 #endif
8677
8678 ; return 0; }
8679 EOF
8680 if { (eval echo configure:8681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8681 rm -rf conftest*
8682 eval "ac_cv_func_remove=yes"
8683 else
8684 echo "configure: failed program was:" >&5
8685 cat conftest.$ac_ext >&5
8686 rm -rf conftest*
8687 eval "ac_cv_func_remove=no"
8688 fi
8689 rm -f conftest*
8690 fi
8691
8692 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
8693 echo "$ac_t""yes" 1>&6
8694 :
8695 else
8696 echo "$ac_t""no" 1>&6
8697 fi
8698
8699 if test $ac_cv_func_remove = no; then
8700 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
8701 echo "configure:8702: checking for remove in -lposix" >&5
8702 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
8703 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8704 echo $ac_n "(cached) $ac_c" 1>&6
8705 else
8706 ac_save_LIBS="$LIBS"
8707 LIBS="-lposix $LIBS"
8708 cat > conftest.$ac_ext <<EOF
8709 #line 8710 "configure"
8710 #include "confdefs.h"
8711 /* Override any gcc2 internal prototype to avoid an error. */
8712 /* We use char because int might match the return type of a gcc2
8713 builtin and then its argument prototype would still apply. */
8714 char remove();
8715
8716 int main() {
8717 remove()
8718 ; return 0; }
8719 EOF
8720 if { (eval echo configure:8721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8721 rm -rf conftest*
8722 eval "ac_cv_lib_$ac_lib_var=yes"
8723 else
8724 echo "configure: failed program was:" >&5
8725 cat conftest.$ac_ext >&5
8726 rm -rf conftest*
8727 eval "ac_cv_lib_$ac_lib_var=no"
8728 fi
8729 rm -f conftest*
8730 LIBS="$ac_save_LIBS"
8731
8732 fi
8733 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8734 echo "$ac_t""yes" 1>&6
8735 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8736 else
8737 echo "$ac_t""no" 1>&6
8738 fi
8739
8740 fi
8741
8742 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8743 echo $ac_n "checking for shmat""... $ac_c" 1>&6
8744 echo "configure:8745: checking for shmat" >&5
8745 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
8746 echo $ac_n "(cached) $ac_c" 1>&6
8747 else
8748 cat > conftest.$ac_ext <<EOF
8749 #line 8750 "configure"
8750 #include "confdefs.h"
8751 /* System header to define __stub macros and hopefully few prototypes,
8752 which can conflict with char shmat(); below. */
8753 #include <assert.h>
8754 /* Override any gcc2 internal prototype to avoid an error. */
8755 /* We use char because int might match the return type of a gcc2
8756 builtin and then its argument prototype would still apply. */
8757 char shmat();
8758
8759 int main() {
8760
8761 /* The GNU C library defines this for functions which it implements
8762 to always fail with ENOSYS. Some functions are actually named
8763 something starting with __ and the normal name is an alias. */
8764 #if defined (__stub_shmat) || defined (__stub___shmat)
8765 choke me
8766 #else
8767 shmat();
8768 #endif
8769
8770 ; return 0; }
8771 EOF
8772 if { (eval echo configure:8773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8773 rm -rf conftest*
8774 eval "ac_cv_func_shmat=yes"
8775 else
8776 echo "configure: failed program was:" >&5
8777 cat conftest.$ac_ext >&5
8778 rm -rf conftest*
8779 eval "ac_cv_func_shmat=no"
8780 fi
8781 rm -f conftest*
8782 fi
8783
8784 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
8785 echo "$ac_t""yes" 1>&6
8786 :
8787 else
8788 echo "$ac_t""no" 1>&6
8789 fi
8790
8791 if test $ac_cv_func_shmat = no; then
8792 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
8793 echo "configure:8794: checking for shmat in -lipc" >&5
8794 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
8795 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8796 echo $ac_n "(cached) $ac_c" 1>&6
8797 else
8798 ac_save_LIBS="$LIBS"
8799 LIBS="-lipc $LIBS"
8800 cat > conftest.$ac_ext <<EOF
8801 #line 8802 "configure"
8802 #include "confdefs.h"
8803 /* Override any gcc2 internal prototype to avoid an error. */
8804 /* We use char because int might match the return type of a gcc2
8805 builtin and then its argument prototype would still apply. */
8806 char shmat();
8807
8808 int main() {
8809 shmat()
8810 ; return 0; }
8811 EOF
8812 if { (eval echo configure:8813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8813 rm -rf conftest*
8814 eval "ac_cv_lib_$ac_lib_var=yes"
8815 else
8816 echo "configure: failed program was:" >&5
8817 cat conftest.$ac_ext >&5
8818 rm -rf conftest*
8819 eval "ac_cv_lib_$ac_lib_var=no"
8820 fi
8821 rm -f conftest*
8822 LIBS="$ac_save_LIBS"
8823
8824 fi
8825 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8826 echo "$ac_t""yes" 1>&6
8827 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8828 else
8829 echo "$ac_t""no" 1>&6
8830 fi
8831
8832 fi
8833 fi
8834
8835 # Check for libraries that X11R6 Xt/Xaw programs need.
8836 ac_save_LDFLAGS="$LDFLAGS"
8837 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8838 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8839 # check for ICE first), but we must link in the order -lSM -lICE or
8840 # we get undefined symbols. So assume we have SM if we have ICE.
8841 # These have to be linked with before -lX11, unlike the other
8842 # libraries we check for below, so use a different variable.
8843 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
8844 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
8845 echo "configure:8846: checking for IceConnectionNumber in -lICE" >&5
8846 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
8847 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8848 echo $ac_n "(cached) $ac_c" 1>&6
8849 else
8850 ac_save_LIBS="$LIBS"
8851 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8852 cat > conftest.$ac_ext <<EOF
8853 #line 8854 "configure"
8854 #include "confdefs.h"
8855 /* Override any gcc2 internal prototype to avoid an error. */
8856 /* We use char because int might match the return type of a gcc2
8857 builtin and then its argument prototype would still apply. */
8858 char IceConnectionNumber();
8859
8860 int main() {
8861 IceConnectionNumber()
8862 ; return 0; }
8863 EOF
8864 if { (eval echo configure:8865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8865 rm -rf conftest*
8866 eval "ac_cv_lib_$ac_lib_var=yes"
8867 else
8868 echo "configure: failed program was:" >&5
8869 cat conftest.$ac_ext >&5
8870 rm -rf conftest*
8871 eval "ac_cv_lib_$ac_lib_var=no"
8872 fi
8873 rm -f conftest*
8874 LIBS="$ac_save_LIBS"
8875
8876 fi
8877 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8878 echo "$ac_t""yes" 1>&6
8879 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8880 else
8881 echo "$ac_t""no" 1>&6
8882 fi
8883
8884 LDFLAGS="$ac_save_LDFLAGS"
8885
8886 fi
8887
8888 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8889 LDFLAGS="$LDFLAGS $X_LIBS"
8890
8891 if test "$wxUSE_MOTIF" = 1; then
8892 if test "$no_x" = "yes"; then
8893 { echo "configure: error: X11 not found" 1>&2; exit 1; }
8894 fi
8895
8896 GUI_TK_LIBRARY="$X_LIBS"
8897 TOOLKIT_INCLUDE="$X_CFLAGS"
8898
8899 AFMINSTALL=afminstall
8900
8901
8902 COMPILED_X_PROGRAM=0
8903
8904 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
8905 echo "configure:8906: checking for Motif/Lesstif headers" >&5
8906
8907 ac_find_includes=
8908 for ac_dir in $SEARCH_INCLUDE;
8909 do
8910 if test -f "$ac_dir/Xm/Xm.h"; then
8911 ac_find_includes=$ac_dir
8912 break
8913 fi
8914 done
8915
8916 if test "$ac_find_includes" != "" ; then
8917 echo "$ac_t""found $ac_find_includes" 1>&6
8918 else
8919 cat > conftest.$ac_ext <<EOF
8920 #line 8921 "configure"
8921 #include "confdefs.h"
8922
8923 #include <Xm/Xm.h>
8924
8925 int main() {
8926
8927 int version;
8928
8929 version = xmUseVersion;
8930
8931 ; return 0; }
8932 EOF
8933 if { (eval echo configure:8934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8934 rm -rf conftest*
8935
8936 echo "$ac_t""found in default search path" 1>&6
8937 COMPILED_X_PROGRAM=1
8938
8939 else
8940 echo "configure: failed program was:" >&5
8941 cat conftest.$ac_ext >&5
8942 rm -rf conftest*
8943
8944 echo "$ac_t""no" 1>&6
8945 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
8946
8947
8948 fi
8949 rm -f conftest*
8950 fi
8951
8952 if test "$COMPILED_X_PROGRAM" = 0; then
8953 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
8954 echo "configure:8955: checking for Motif/Lesstif library" >&5
8955
8956 ac_find_libraries=
8957 for ac_dir in $SEARCH_LIB;
8958 do
8959 for ac_extension in a so sl; do
8960 if test -f "$ac_dir/libXm.$ac_extension"; then
8961 ac_find_libraries=$ac_dir
8962 break 2
8963 fi
8964 done
8965 done
8966
8967 if test "$ac_find_libraries" != "" ; then
8968
8969 ac_path_to_include=$ac_find_includes
8970 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
8971 result=$?
8972 if test $result = 0; then
8973 ac_path_to_include=""
8974 else
8975 ac_path_to_include="-I$ac_find_includes"
8976 fi
8977
8978
8979 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8980 result=$?
8981 if test $result = 0; then
8982 ac_path_to_link=""
8983 else
8984 ac_path_to_link="-L$ac_find_libraries"
8985 fi
8986
8987
8988 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8989 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
8990 echo "$ac_t""found at $ac_find_libraries" 1>&6
8991 else
8992 cat > conftest.$ac_ext <<EOF
8993 #line 8994 "configure"
8994 #include "confdefs.h"
8995
8996 #include <Xm/Xm.h>
8997
8998 int main() {
8999
9000 int version;
9001
9002 version = xmUseVersion;
9003
9004 ; return 0; }
9005 EOF
9006 if { (eval echo configure:9007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9007 rm -rf conftest*
9008
9009 echo "$ac_t""found in default search path" 1>&6
9010 COMPILED_X_PROGRAM=1
9011
9012 else
9013 echo "configure: failed program was:" >&5
9014 cat conftest.$ac_ext >&5
9015 rm -rf conftest*
9016
9017 echo "$ac_t""no" 1>&6
9018 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
9019
9020
9021 fi
9022 rm -f conftest*
9023 fi
9024 fi
9025
9026
9027 XPM_LINK=""
9028 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
9029 echo "configure:9030: checking for Xpm library" >&5
9030
9031 ac_find_libraries=
9032 for ac_dir in $SEARCH_LIB;
9033 do
9034 for ac_extension in a so sl; do
9035 if test -f "$ac_dir/libXpm.$ac_extension"; then
9036 ac_find_libraries=$ac_dir
9037 break 2
9038 fi
9039 done
9040 done
9041
9042 if test "$ac_find_libraries" != "" ; then
9043
9044 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
9045 result=$?
9046 if test $result = 0; then
9047 ac_path_to_link=""
9048 else
9049 ac_path_to_link="-L$ac_find_libraries"
9050 fi
9051
9052 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
9053 XPM_LINK="-lXpm "
9054 cat >> confdefs.h <<\EOF
9055 #define wxHAVE_LIB_XPM 1
9056 EOF
9057
9058 echo "$ac_t""found at $ac_find_libraries" 1>&6
9059 else
9060 cat > conftest.$ac_ext <<EOF
9061 #line 9062 "configure"
9062 #include "confdefs.h"
9063
9064 #include <X11/xpm.h>
9065
9066 int main() {
9067
9068 int version;
9069
9070 version = XpmLibraryVersion();
9071
9072 ; return 0; }
9073 EOF
9074 if { (eval echo configure:9075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9075 rm -rf conftest*
9076
9077 XPM_LINK="-lXpm "
9078 cat >> confdefs.h <<\EOF
9079 #define wxHAVE_LIB_XPM 1
9080 EOF
9081
9082 echo "$ac_t""found in default search path" 1>&6
9083 COMPILED_X_PROGRAM=0
9084
9085 else
9086 echo "configure: failed program was:" >&5
9087 cat conftest.$ac_ext >&5
9088 rm -rf conftest*
9089
9090 echo "$ac_t""no" 1>&6
9091 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9092
9093
9094 fi
9095 rm -f conftest*
9096 fi
9097
9098 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
9099 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
9100 TOOLKIT=MOTIF
9101 GUIDIST=MOTIF_DIST
9102 fi
9103
9104 if test "$wxUSE_MAC" = 1; then
9105 TOOLKIT=MAC
9106 GUIDIST=MACX_DIST
9107 fi
9108
9109 if test "$wxUSE_PM" = 1; then
9110 TOOLKIT=PM
9111 GUIDIST=GTK_DIST
9112 fi
9113
9114 if test "$TOOLKIT" != "PM" ; then
9115 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
9116 else
9117 TOOLKIT_DIR="os2"
9118 fi
9119
9120 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
9121 TOOLKIT_NAME="${TOOLKIT_DIR}d"
9122 else
9123 TOOLKIT_NAME="${TOOLKIT_DIR}"
9124 fi
9125
9126 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
9127
9128 WX_LIBRARY="wx_${TOOLKIT_NAME}"
9129
9130 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(OGLOBJS)"
9131
9132 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
9133 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
9134 fi
9135
9136 if test "$wxUSE_LIBJPEG" = "yes" ; then
9137 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
9138 fi
9139 if test "$wxUSE_LIBTIFF" = "yes" ; then
9140 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
9141 fi
9142 if test "$wxUSE_LIBPNG" = "yes" ; then
9143 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
9144 fi
9145 if test "$wxUSE_ZLIB" = "yes" ; then
9146 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
9147 fi
9148 if test "$wxUSE_FREETYPE" = "yes" ; then
9149 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
9150 fi
9151 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS) \$(OGLDEPS)"
9152
9153 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
9154 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
9155 RPM_SPEC="wx\$(TOOLKIT).spec"
9156
9157 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
9158 DISTDIR="wx\$(TOOLKIT)"
9159 else
9160 USE_GUI=0
9161
9162 TOOLKIT_DIR="base"
9163
9164 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
9165 TOOLKIT_NAME="${TOOLKIT_DIR}d"
9166 else
9167 TOOLKIT_NAME="${TOOLKIT_DIR}"
9168 fi
9169
9170 TOOLKIT_DEF="-D__WXBASE__"
9171
9172 ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)"
9173 ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)"
9174
9175 if test "$wxUSE_ZLIB" = "yes" ; then
9176 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
9177 fi
9178
9179 WX_LIBRARY="wx_${TOOLKIT_NAME}"
9180
9181 PORT_FILES="src/files.lst"
9182 RPM_FILES="src/rpmfiles.lst"
9183 RPM_SPEC="wxBase.spec"
9184
9185 GUIDIST="BASE_DIST"
9186 DISTDIR="wxBase"
9187 fi
9188
9189 WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
9190 WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
9191
9192 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
9193 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
9194
9195 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
9196 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
9197
9198 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
9199 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
9200 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
9201 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
9202 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
9203 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
9204
9205 SHARED_LD=
9206 PIC_FLAG=
9207 WX_ALL=
9208 WX_ALL_INSTALLED=
9209 BURNT_LIBRARY_NAME=
9210 WX_TARGET_LIBRARY_SONAME=
9211
9212
9213 if test "$wxUSE_SHARED" = "yes"; then
9214 case "${host}" in
9215 *-hp-hpux* )
9216 if test "$GCC" = yes ; then
9217 SHARED_LD="${CC} -shared -fPIC -o"
9218 PIC_FLAG="-fPIC"
9219 else
9220 LDFLAGS="-L/usr/lib"
9221
9222 SHARED_LD="${CXX} -b -o"
9223 PIC_FLAG="+Z"
9224 fi
9225 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
9226 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
9227 if test "$wxUSE_OPENGL" = "yes"; then
9228 WX_ALL_INSTALLED="preinstall_gl"
9229 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
9230 else
9231 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
9232 fi
9233 ;;
9234
9235 *-*-linux* )
9236 SHARED_LD="${CC} -shared -o"
9237 PIC_FLAG="-fPIC"
9238 if test "$wxUSE_BURNT_NAME" = "yes" ; then
9239 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
9240 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
9241 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
9242 fi
9243 if test "$wxUSE_OPENGL" = "yes"; then
9244 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9245 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9246 else
9247 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9248 WX_ALL="CREATE_LINKS"
9249 fi
9250 ;;
9251 *-*-irix5* | *-*-irix6* )
9252 if test "$GCC" = yes ; then
9253 SHARED_LD="${CC} -shared -o"
9254 PIC_FLAG="-fPIC"
9255 else
9256 SHARED_LD="${CXX} -shared -o"
9257 fi
9258 if test "$wxUSE_OPENGL" = "yes"; then
9259 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9260 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9261 else
9262 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9263 WX_ALL="CREATE_LINKS"
9264 fi
9265 ;;
9266 *-*-solaris2* )
9267 if test "$GCC" = yes ; then
9268 SHARED_LD="${CC} -shared -o"
9269 PIC_FLAG="-fPIC"
9270
9271 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
9272 else
9273 SHARED_LD="${CXX} -G -o"
9274 PIC_FLAG="-KPIC"
9275 fi
9276 if test "$wxUSE_OPENGL" = "yes"; then
9277 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9278 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9279 else
9280 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9281 WX_ALL="CREATE_LINKS"
9282 fi
9283 ;;
9284 *-*-sunos4* )
9285 SHARED_LD="${CC} -shared -o"
9286 PIC_FLAG="-fPIC"
9287 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9288 WX_ALL="CREATE_LINKS"
9289 ;;
9290 *-*-freebsd* | *-*-netbsd* )
9291 SHARED_LD="${CC} -shared -o"
9292 PIC_FLAG="-fPIC"
9293 if test "$wxUSE_OPENGL" = "yes"; then
9294 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9295 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9296 else
9297 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9298 WX_ALL="CREATE_LINKS"
9299 fi
9300 ;;
9301 *-*-darwin* )
9302 SHARED_LD="${CXX} -dynamiclib -o"
9303 PIC_FLAG="-dynamic -fPIC"
9304 if test "$wxUSE_OPENGL" = "yes"; then
9305 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9306 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9307 else
9308 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9309 WX_ALL="CREATE_LINKS"
9310 fi
9311 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.dylib"
9312 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.dylib"
9313 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.${WX_CURRENT}.dylib"
9314 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib"
9315 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib"
9316 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.${WX_CURRENT}.dylib"
9317 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib"
9318 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib"
9319 ;;
9320 *-*-osf* )
9321 SHARED_LD="${CXX} -shared -o"
9322 PIC_FLAG="-fPIC"
9323 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9324 WX_ALL="CREATE_LINKS"
9325 ;;
9326 *-*-dgux5* )
9327 SHARED_LD="${CXX} -shared -o"
9328 PIC_FLAG="-fPIC"
9329 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9330 WX_ALL="CREATE_LINKS"
9331 ;;
9332 *-*-sysv5* )
9333 SHARED_LD="${CC} -shared -o"
9334 PIC_FLAG="-fPIC"
9335 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9336 WX_ALL="CREATE_LINKS"
9337 ;;
9338 *-*-aix* )
9339 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
9340 WX_ALL=${WX_LIBRARY_NAME_SHARED}
9341 ;;
9342 *-*-cygwin32* )
9343 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
9344 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
9345 if test "$wxUSE_OPENGL" = "yes"; then
9346 WX_ALL_INSTALLED="preinstall_gl"
9347 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
9348 else
9349 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9350 fi
9351 ;;
9352 *-*-mingw32* )
9353 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
9354 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
9355 if test "$wxUSE_OPENGL" = "yes"; then
9356 WX_ALL_INSTALLED="preinstall_gl"
9357 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
9358 else
9359 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9360 fi
9361 ;;
9362 *-pc-os2_emx )
9363 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
9364 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9365 ;;
9366 *-*-beos* )
9367 SHARED_LD="${LD} -shared -o"
9368 PIC_FLAG="-fPIC"
9369 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9370 WX_ALL="CREATE_LINKS"
9371 ;;
9372 *)
9373 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
9374 esac
9375
9376 if test "x$WX_TARGET_LIBRARY" = "x"; then
9377 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
9378 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
9379 fi
9380 WX_TARGET_LIBRARY_TYPE="so"
9381 else
9382 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
9383 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
9384
9385 if test "$wxUSE_OPENGL" = "yes"; then
9386 WX_ALL_INSTALLED="preinstall_gl"
9387 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
9388 else
9389 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9390 fi
9391
9392 if test "$wxUSE_GUI" = "no"; then
9393 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
9394 fi
9395
9396 WX_TARGET_LIBRARY_TYPE="a"
9397 fi
9398
9399
9400 for ac_hdr in strings.h
9401 do
9402 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9403 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9404 echo "configure:9405: checking for $ac_hdr" >&5
9405 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9406 echo $ac_n "(cached) $ac_c" 1>&6
9407 else
9408 cat > conftest.$ac_ext <<EOF
9409 #line 9410 "configure"
9410 #include "confdefs.h"
9411 #include <$ac_hdr>
9412 EOF
9413 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9414 { (eval echo configure:9415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9415 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9416 if test -z "$ac_err"; then
9417 rm -rf conftest*
9418 eval "ac_cv_header_$ac_safe=yes"
9419 else
9420 echo "$ac_err" >&5
9421 echo "configure: failed program was:" >&5
9422 cat conftest.$ac_ext >&5
9423 rm -rf conftest*
9424 eval "ac_cv_header_$ac_safe=no"
9425 fi
9426 rm -f conftest*
9427 fi
9428 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9429 echo "$ac_t""yes" 1>&6
9430 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9431 cat >> confdefs.h <<EOF
9432 #define $ac_tr_hdr 1
9433 EOF
9434
9435 else
9436 echo "$ac_t""no" 1>&6
9437 fi
9438 done
9439
9440 for ac_hdr in unistd.h
9441 do
9442 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9443 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9444 echo "configure:9445: checking for $ac_hdr" >&5
9445 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9446 echo $ac_n "(cached) $ac_c" 1>&6
9447 else
9448 cat > conftest.$ac_ext <<EOF
9449 #line 9450 "configure"
9450 #include "confdefs.h"
9451 #include <$ac_hdr>
9452 EOF
9453 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9454 { (eval echo configure:9455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9455 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9456 if test -z "$ac_err"; then
9457 rm -rf conftest*
9458 eval "ac_cv_header_$ac_safe=yes"
9459 else
9460 echo "$ac_err" >&5
9461 echo "configure: failed program was:" >&5
9462 cat conftest.$ac_ext >&5
9463 rm -rf conftest*
9464 eval "ac_cv_header_$ac_safe=no"
9465 fi
9466 rm -f conftest*
9467 fi
9468 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9469 echo "$ac_t""yes" 1>&6
9470 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9471 cat >> confdefs.h <<EOF
9472 #define $ac_tr_hdr 1
9473 EOF
9474
9475 else
9476 echo "$ac_t""no" 1>&6
9477 fi
9478 done
9479
9480 for ac_hdr in fcntl.h
9481 do
9482 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9483 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9484 echo "configure:9485: checking for $ac_hdr" >&5
9485 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9486 echo $ac_n "(cached) $ac_c" 1>&6
9487 else
9488 cat > conftest.$ac_ext <<EOF
9489 #line 9490 "configure"
9490 #include "confdefs.h"
9491 #include <$ac_hdr>
9492 EOF
9493 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9494 { (eval echo configure:9495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9495 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9496 if test -z "$ac_err"; then
9497 rm -rf conftest*
9498 eval "ac_cv_header_$ac_safe=yes"
9499 else
9500 echo "$ac_err" >&5
9501 echo "configure: failed program was:" >&5
9502 cat conftest.$ac_ext >&5
9503 rm -rf conftest*
9504 eval "ac_cv_header_$ac_safe=no"
9505 fi
9506 rm -f conftest*
9507 fi
9508 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9509 echo "$ac_t""yes" 1>&6
9510 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9511 cat >> confdefs.h <<EOF
9512 #define $ac_tr_hdr 1
9513 EOF
9514
9515 else
9516 echo "$ac_t""no" 1>&6
9517 fi
9518 done
9519
9520 for ac_hdr in wchar.h
9521 do
9522 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9523 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9524 echo "configure:9525: checking for $ac_hdr" >&5
9525 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9526 echo $ac_n "(cached) $ac_c" 1>&6
9527 else
9528 cat > conftest.$ac_ext <<EOF
9529 #line 9530 "configure"
9530 #include "confdefs.h"
9531 #include <$ac_hdr>
9532 EOF
9533 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9534 { (eval echo configure:9535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9535 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9536 if test -z "$ac_err"; then
9537 rm -rf conftest*
9538 eval "ac_cv_header_$ac_safe=yes"
9539 else
9540 echo "$ac_err" >&5
9541 echo "configure: failed program was:" >&5
9542 cat conftest.$ac_ext >&5
9543 rm -rf conftest*
9544 eval "ac_cv_header_$ac_safe=no"
9545 fi
9546 rm -f conftest*
9547 fi
9548 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9549 echo "$ac_t""yes" 1>&6
9550 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9551 cat >> confdefs.h <<EOF
9552 #define $ac_tr_hdr 1
9553 EOF
9554
9555 else
9556 echo "$ac_t""no" 1>&6
9557 fi
9558 done
9559
9560 for ac_hdr in wcstr.h
9561 do
9562 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9563 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9564 echo "configure:9565: checking for $ac_hdr" >&5
9565 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9566 echo $ac_n "(cached) $ac_c" 1>&6
9567 else
9568 cat > conftest.$ac_ext <<EOF
9569 #line 9570 "configure"
9570 #include "confdefs.h"
9571 #include <$ac_hdr>
9572 EOF
9573 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9574 { (eval echo configure:9575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9575 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9576 if test -z "$ac_err"; then
9577 rm -rf conftest*
9578 eval "ac_cv_header_$ac_safe=yes"
9579 else
9580 echo "$ac_err" >&5
9581 echo "configure: failed program was:" >&5
9582 cat conftest.$ac_ext >&5
9583 rm -rf conftest*
9584 eval "ac_cv_header_$ac_safe=no"
9585 fi
9586 rm -f conftest*
9587 fi
9588 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9589 echo "$ac_t""yes" 1>&6
9590 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9591 cat >> confdefs.h <<EOF
9592 #define $ac_tr_hdr 1
9593 EOF
9594
9595 else
9596 echo "$ac_t""no" 1>&6
9597 fi
9598 done
9599
9600 for ac_hdr in fnmatch.h
9601 do
9602 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9603 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9604 echo "configure:9605: checking for $ac_hdr" >&5
9605 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9606 echo $ac_n "(cached) $ac_c" 1>&6
9607 else
9608 cat > conftest.$ac_ext <<EOF
9609 #line 9610 "configure"
9610 #include "confdefs.h"
9611 #include <$ac_hdr>
9612 EOF
9613 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9614 { (eval echo configure:9615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9615 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9616 if test -z "$ac_err"; then
9617 rm -rf conftest*
9618 eval "ac_cv_header_$ac_safe=yes"
9619 else
9620 echo "$ac_err" >&5
9621 echo "configure: failed program was:" >&5
9622 cat conftest.$ac_ext >&5
9623 rm -rf conftest*
9624 eval "ac_cv_header_$ac_safe=no"
9625 fi
9626 rm -f conftest*
9627 fi
9628 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9629 echo "$ac_t""yes" 1>&6
9630 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9631 cat >> confdefs.h <<EOF
9632 #define $ac_tr_hdr 1
9633 EOF
9634
9635 else
9636 echo "$ac_t""no" 1>&6
9637 fi
9638 done
9639
9640 for ac_hdr in iconv.h
9641 do
9642 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9643 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9644 echo "configure:9645: checking for $ac_hdr" >&5
9645 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9646 echo $ac_n "(cached) $ac_c" 1>&6
9647 else
9648 cat > conftest.$ac_ext <<EOF
9649 #line 9650 "configure"
9650 #include "confdefs.h"
9651 #include <$ac_hdr>
9652 EOF
9653 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9654 { (eval echo configure:9655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9655 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9656 if test -z "$ac_err"; then
9657 rm -rf conftest*
9658 eval "ac_cv_header_$ac_safe=yes"
9659 else
9660 echo "$ac_err" >&5
9661 echo "configure: failed program was:" >&5
9662 cat conftest.$ac_ext >&5
9663 rm -rf conftest*
9664 eval "ac_cv_header_$ac_safe=no"
9665 fi
9666 rm -f conftest*
9667 fi
9668 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9669 echo "$ac_t""yes" 1>&6
9670 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9671 cat >> confdefs.h <<EOF
9672 #define $ac_tr_hdr 1
9673 EOF
9674
9675 else
9676 echo "$ac_t""no" 1>&6
9677 fi
9678 done
9679
9680 for ac_hdr in langinfo.h
9681 do
9682 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9683 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9684 echo "configure:9685: checking for $ac_hdr" >&5
9685 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9686 echo $ac_n "(cached) $ac_c" 1>&6
9687 else
9688 cat > conftest.$ac_ext <<EOF
9689 #line 9690 "configure"
9690 #include "confdefs.h"
9691 #include <$ac_hdr>
9692 EOF
9693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9694 { (eval echo configure:9695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9695 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9696 if test -z "$ac_err"; then
9697 rm -rf conftest*
9698 eval "ac_cv_header_$ac_safe=yes"
9699 else
9700 echo "$ac_err" >&5
9701 echo "configure: failed program was:" >&5
9702 cat conftest.$ac_ext >&5
9703 rm -rf conftest*
9704 eval "ac_cv_header_$ac_safe=no"
9705 fi
9706 rm -f conftest*
9707 fi
9708 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9709 echo "$ac_t""yes" 1>&6
9710 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9711 cat >> confdefs.h <<EOF
9712 #define $ac_tr_hdr 1
9713 EOF
9714
9715 else
9716 echo "$ac_t""no" 1>&6
9717 fi
9718 done
9719
9720
9721 if test "$wxUSE_GUI" = "yes"; then
9722 if test "$wxUSE_UNIX" = "yes"; then
9723 for ac_hdr in X11/XKBlib.h
9724 do
9725 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9726 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9727 echo "configure:9728: checking for $ac_hdr" >&5
9728 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9729 echo $ac_n "(cached) $ac_c" 1>&6
9730 else
9731 cat > conftest.$ac_ext <<EOF
9732 #line 9733 "configure"
9733 #include "confdefs.h"
9734 #include <$ac_hdr>
9735 EOF
9736 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9737 { (eval echo configure:9738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9738 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9739 if test -z "$ac_err"; then
9740 rm -rf conftest*
9741 eval "ac_cv_header_$ac_safe=yes"
9742 else
9743 echo "$ac_err" >&5
9744 echo "configure: failed program was:" >&5
9745 cat conftest.$ac_ext >&5
9746 rm -rf conftest*
9747 eval "ac_cv_header_$ac_safe=no"
9748 fi
9749 rm -f conftest*
9750 fi
9751 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9752 echo "$ac_t""yes" 1>&6
9753 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9754 cat >> confdefs.h <<EOF
9755 #define $ac_tr_hdr 1
9756 EOF
9757
9758 else
9759 echo "$ac_t""no" 1>&6
9760 fi
9761 done
9762
9763 fi
9764 fi
9765
9766
9767 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9768 echo "configure:9769: checking for ANSI C header files" >&5
9769 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
9770 echo $ac_n "(cached) $ac_c" 1>&6
9771 else
9772 cat > conftest.$ac_ext <<EOF
9773 #line 9774 "configure"
9774 #include "confdefs.h"
9775 #include <stdlib.h>
9776 #include <stdarg.h>
9777 #include <string.h>
9778 #include <float.h>
9779 EOF
9780 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9781 { (eval echo configure:9782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9782 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9783 if test -z "$ac_err"; then
9784 rm -rf conftest*
9785 ac_cv_header_stdc=yes
9786 else
9787 echo "$ac_err" >&5
9788 echo "configure: failed program was:" >&5
9789 cat conftest.$ac_ext >&5
9790 rm -rf conftest*
9791 ac_cv_header_stdc=no
9792 fi
9793 rm -f conftest*
9794
9795 if test $ac_cv_header_stdc = yes; then
9796 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9797 cat > conftest.$ac_ext <<EOF
9798 #line 9799 "configure"
9799 #include "confdefs.h"
9800 #include <string.h>
9801 EOF
9802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9803 egrep "memchr" >/dev/null 2>&1; then
9804 :
9805 else
9806 rm -rf conftest*
9807 ac_cv_header_stdc=no
9808 fi
9809 rm -f conftest*
9810
9811 fi
9812
9813 if test $ac_cv_header_stdc = yes; then
9814 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9815 cat > conftest.$ac_ext <<EOF
9816 #line 9817 "configure"
9817 #include "confdefs.h"
9818 #include <stdlib.h>
9819 EOF
9820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9821 egrep "free" >/dev/null 2>&1; then
9822 :
9823 else
9824 rm -rf conftest*
9825 ac_cv_header_stdc=no
9826 fi
9827 rm -f conftest*
9828
9829 fi
9830
9831 if test $ac_cv_header_stdc = yes; then
9832 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9833 if test "$cross_compiling" = yes; then
9834 :
9835 else
9836 cat > conftest.$ac_ext <<EOF
9837 #line 9838 "configure"
9838 #include "confdefs.h"
9839 #include <ctype.h>
9840 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9841 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9842 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9843 int main () { int i; for (i = 0; i < 256; i++)
9844 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9845 exit (0); }
9846
9847 EOF
9848 if { (eval echo configure:9849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9849 then
9850 :
9851 else
9852 echo "configure: failed program was:" >&5
9853 cat conftest.$ac_ext >&5
9854 rm -fr conftest*
9855 ac_cv_header_stdc=no
9856 fi
9857 rm -fr conftest*
9858 fi
9859
9860 fi
9861 fi
9862
9863 echo "$ac_t""$ac_cv_header_stdc" 1>&6
9864 if test $ac_cv_header_stdc = yes; then
9865 cat >> confdefs.h <<\EOF
9866 #define STDC_HEADERS 1
9867 EOF
9868
9869 fi
9870
9871 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
9872 echo "configure:9873: checking for mode_t" >&5
9873 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
9874 echo $ac_n "(cached) $ac_c" 1>&6
9875 else
9876 cat > conftest.$ac_ext <<EOF
9877 #line 9878 "configure"
9878 #include "confdefs.h"
9879 #include <sys/types.h>
9880 #if STDC_HEADERS
9881 #include <stdlib.h>
9882 #include <stddef.h>
9883 #endif
9884 EOF
9885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9886 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9887 rm -rf conftest*
9888 ac_cv_type_mode_t=yes
9889 else
9890 rm -rf conftest*
9891 ac_cv_type_mode_t=no
9892 fi
9893 rm -f conftest*
9894
9895 fi
9896 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
9897 if test $ac_cv_type_mode_t = no; then
9898 cat >> confdefs.h <<\EOF
9899 #define mode_t int
9900 EOF
9901
9902 fi
9903
9904 echo $ac_n "checking for off_t""... $ac_c" 1>&6
9905 echo "configure:9906: checking for off_t" >&5
9906 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
9907 echo $ac_n "(cached) $ac_c" 1>&6
9908 else
9909 cat > conftest.$ac_ext <<EOF
9910 #line 9911 "configure"
9911 #include "confdefs.h"
9912 #include <sys/types.h>
9913 #if STDC_HEADERS
9914 #include <stdlib.h>
9915 #include <stddef.h>
9916 #endif
9917 EOF
9918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9919 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9920 rm -rf conftest*
9921 ac_cv_type_off_t=yes
9922 else
9923 rm -rf conftest*
9924 ac_cv_type_off_t=no
9925 fi
9926 rm -f conftest*
9927
9928 fi
9929 echo "$ac_t""$ac_cv_type_off_t" 1>&6
9930 if test $ac_cv_type_off_t = no; then
9931 cat >> confdefs.h <<\EOF
9932 #define off_t long
9933 EOF
9934
9935 fi
9936
9937 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
9938 echo "configure:9939: checking for pid_t" >&5
9939 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
9940 echo $ac_n "(cached) $ac_c" 1>&6
9941 else
9942 cat > conftest.$ac_ext <<EOF
9943 #line 9944 "configure"
9944 #include "confdefs.h"
9945 #include <sys/types.h>
9946 #if STDC_HEADERS
9947 #include <stdlib.h>
9948 #include <stddef.h>
9949 #endif
9950 EOF
9951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9952 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9953 rm -rf conftest*
9954 ac_cv_type_pid_t=yes
9955 else
9956 rm -rf conftest*
9957 ac_cv_type_pid_t=no
9958 fi
9959 rm -f conftest*
9960
9961 fi
9962 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
9963 if test $ac_cv_type_pid_t = no; then
9964 cat >> confdefs.h <<\EOF
9965 #define pid_t int
9966 EOF
9967
9968 fi
9969
9970 echo $ac_n "checking for size_t""... $ac_c" 1>&6
9971 echo "configure:9972: checking for size_t" >&5
9972 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
9973 echo $ac_n "(cached) $ac_c" 1>&6
9974 else
9975 cat > conftest.$ac_ext <<EOF
9976 #line 9977 "configure"
9977 #include "confdefs.h"
9978 #include <sys/types.h>
9979 #if STDC_HEADERS
9980 #include <stdlib.h>
9981 #include <stddef.h>
9982 #endif
9983 EOF
9984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9985 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9986 rm -rf conftest*
9987 ac_cv_type_size_t=yes
9988 else
9989 rm -rf conftest*
9990 ac_cv_type_size_t=no
9991 fi
9992 rm -f conftest*
9993
9994 fi
9995 echo "$ac_t""$ac_cv_type_size_t" 1>&6
9996 if test $ac_cv_type_size_t = no; then
9997 cat >> confdefs.h <<\EOF
9998 #define size_t unsigned
9999 EOF
10000
10001 fi
10002
10003 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
10004 echo "configure:10005: checking for uid_t in sys/types.h" >&5
10005 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
10006 echo $ac_n "(cached) $ac_c" 1>&6
10007 else
10008 cat > conftest.$ac_ext <<EOF
10009 #line 10010 "configure"
10010 #include "confdefs.h"
10011 #include <sys/types.h>
10012 EOF
10013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10014 egrep "uid_t" >/dev/null 2>&1; then
10015 rm -rf conftest*
10016 ac_cv_type_uid_t=yes
10017 else
10018 rm -rf conftest*
10019 ac_cv_type_uid_t=no
10020 fi
10021 rm -f conftest*
10022
10023 fi
10024
10025 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
10026 if test $ac_cv_type_uid_t = no; then
10027 cat >> confdefs.h <<\EOF
10028 #define uid_t int
10029 EOF
10030
10031 cat >> confdefs.h <<\EOF
10032 #define gid_t int
10033 EOF
10034
10035 fi
10036
10037
10038 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
10039 echo "configure:10040: checking for wchar_t" >&5
10040 if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
10041 echo $ac_n "(cached) $ac_c" 1>&6
10042 else
10043
10044 cat > conftest.$ac_ext <<EOF
10045 #line 10046 "configure"
10046 #include "confdefs.h"
10047 #include <wchar.h>
10048 int main() {
10049
10050 wchar_t wc, *ws;
10051 wc = L'a';
10052 ws = L"Hello, world!";
10053
10054 ; return 0; }
10055 EOF
10056 if { (eval echo configure:10057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10057 rm -rf conftest*
10058 wx_cv_type_wchar_t=yes
10059 else
10060 echo "configure: failed program was:" >&5
10061 cat conftest.$ac_ext >&5
10062 rm -rf conftest*
10063 wx_cv_type_wchar_t=no
10064 fi
10065 rm -f conftest*
10066
10067 fi
10068
10069 echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
10070 if test "$wx_cv_type_wchar_t" = yes ; then
10071 cat >> confdefs.h <<\EOF
10072 #define wxUSE_WCHAR_T 1
10073 EOF
10074
10075 fi
10076
10077
10078 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
10079 echo "configure:10080: checking for pw_gecos in struct passwd" >&5
10080 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
10081 echo $ac_n "(cached) $ac_c" 1>&6
10082 else
10083
10084 cat > conftest.$ac_ext <<EOF
10085 #line 10086 "configure"
10086 #include "confdefs.h"
10087 #include <pwd.h>
10088 int main() {
10089
10090 char *p;
10091 struct passwd *pw;
10092 p = pw->pw_gecos;
10093
10094 ; return 0; }
10095 EOF
10096 if { (eval echo configure:10097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10097 rm -rf conftest*
10098
10099 wx_cv_struct_pw_gecos=yes
10100
10101 else
10102 echo "configure: failed program was:" >&5
10103 cat conftest.$ac_ext >&5
10104 rm -rf conftest*
10105
10106 wx_cv_struct_pw_gecos=no
10107
10108
10109 fi
10110 rm -f conftest*
10111
10112
10113 fi
10114
10115 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
10116
10117 if test "$wx_cv_struct_pw_gecos" = "yes"; then
10118 cat >> confdefs.h <<\EOF
10119 #define HAVE_PW_GECOS 1
10120 EOF
10121
10122 fi
10123
10124
10125 echo $ac_n "checking for working const""... $ac_c" 1>&6
10126 echo "configure:10127: checking for working const" >&5
10127 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10128 echo $ac_n "(cached) $ac_c" 1>&6
10129 else
10130 cat > conftest.$ac_ext <<EOF
10131 #line 10132 "configure"
10132 #include "confdefs.h"
10133
10134 int main() {
10135
10136 /* Ultrix mips cc rejects this. */
10137 typedef int charset[2]; const charset x;
10138 /* SunOS 4.1.1 cc rejects this. */
10139 char const *const *ccp;
10140 char **p;
10141 /* NEC SVR4.0.2 mips cc rejects this. */
10142 struct point {int x, y;};
10143 static struct point const zero = {0,0};
10144 /* AIX XL C 1.02.0.0 rejects this.
10145 It does not let you subtract one const X* pointer from another in an arm
10146 of an if-expression whose if-part is not a constant expression */
10147 const char *g = "string";
10148 ccp = &g + (g ? g-g : 0);
10149 /* HPUX 7.0 cc rejects these. */
10150 ++ccp;
10151 p = (char**) ccp;
10152 ccp = (char const *const *) p;
10153 { /* SCO 3.2v4 cc rejects this. */
10154 char *t;
10155 char const *s = 0 ? (char *) 0 : (char const *) 0;
10156
10157 *t++ = 0;
10158 }
10159 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10160 int x[] = {25, 17};
10161 const int *foo = &x[0];
10162 ++foo;
10163 }
10164 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10165 typedef const int *iptr;
10166 iptr p = 0;
10167 ++p;
10168 }
10169 { /* AIX XL C 1.02.0.0 rejects this saying
10170 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10171 struct s { int j; const int *ap[3]; };
10172 struct s *b; b->j = 5;
10173 }
10174 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10175 const int foo = 10;
10176 }
10177
10178 ; return 0; }
10179 EOF
10180 if { (eval echo configure:10181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10181 rm -rf conftest*
10182 ac_cv_c_const=yes
10183 else
10184 echo "configure: failed program was:" >&5
10185 cat conftest.$ac_ext >&5
10186 rm -rf conftest*
10187 ac_cv_c_const=no
10188 fi
10189 rm -f conftest*
10190 fi
10191
10192 echo "$ac_t""$ac_cv_c_const" 1>&6
10193 if test $ac_cv_c_const = no; then
10194 cat >> confdefs.h <<\EOF
10195 #define const
10196 EOF
10197
10198 fi
10199
10200 echo $ac_n "checking for inline""... $ac_c" 1>&6
10201 echo "configure:10202: checking for inline" >&5
10202 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10203 echo $ac_n "(cached) $ac_c" 1>&6
10204 else
10205 ac_cv_c_inline=no
10206 for ac_kw in inline __inline__ __inline; do
10207 cat > conftest.$ac_ext <<EOF
10208 #line 10209 "configure"
10209 #include "confdefs.h"
10210
10211 int main() {
10212 } $ac_kw foo() {
10213 ; return 0; }
10214 EOF
10215 if { (eval echo configure:10216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10216 rm -rf conftest*
10217 ac_cv_c_inline=$ac_kw; break
10218 else
10219 echo "configure: failed program was:" >&5
10220 cat conftest.$ac_ext >&5
10221 fi
10222 rm -f conftest*
10223 done
10224
10225 fi
10226
10227 echo "$ac_t""$ac_cv_c_inline" 1>&6
10228 case "$ac_cv_c_inline" in
10229 inline | yes) ;;
10230 no) cat >> confdefs.h <<\EOF
10231 #define inline
10232 EOF
10233 ;;
10234 *) cat >> confdefs.h <<EOF
10235 #define inline $ac_cv_c_inline
10236 EOF
10237 ;;
10238 esac
10239
10240
10241 echo $ac_n "checking size of char""... $ac_c" 1>&6
10242 echo "configure:10243: checking size of char" >&5
10243 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10244 echo $ac_n "(cached) $ac_c" 1>&6
10245 else
10246 if test "$cross_compiling" = yes; then
10247 ac_cv_sizeof_char=1
10248 else
10249 cat > conftest.$ac_ext <<EOF
10250 #line 10251 "configure"
10251 #include "confdefs.h"
10252 #include <stdio.h>
10253 main()
10254 {
10255 FILE *f=fopen("conftestval", "w");
10256 if (!f) exit(1);
10257 fprintf(f, "%d\n", sizeof(char));
10258 exit(0);
10259 }
10260 EOF
10261 if { (eval echo configure:10262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10262 then
10263 ac_cv_sizeof_char=`cat conftestval`
10264 else
10265 echo "configure: failed program was:" >&5
10266 cat conftest.$ac_ext >&5
10267 rm -fr conftest*
10268 ac_cv_sizeof_char=0
10269 fi
10270 rm -fr conftest*
10271 fi
10272
10273 fi
10274 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10275 cat >> confdefs.h <<EOF
10276 #define SIZEOF_CHAR $ac_cv_sizeof_char
10277 EOF
10278
10279
10280 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
10281 echo "configure:10282: checking size of wchar_t" >&5
10282 if eval "test \"`echo '$''{'ac_cv_sizeof_wchar_t'+set}'`\" = set"; then
10283 echo $ac_n "(cached) $ac_c" 1>&6
10284 else
10285 if test "$cross_compiling" = yes; then
10286 ac_cv_sizeof_wchar_t=4
10287 else
10288 cat > conftest.$ac_ext <<EOF
10289 #line 10290 "configure"
10290 #include "confdefs.h"
10291 #include <stdio.h>
10292 main()
10293 {
10294 FILE *f=fopen("conftestval", "w");
10295 if (!f) exit(1);
10296 fprintf(f, "%d\n", sizeof(wchar_t));
10297 exit(0);
10298 }
10299 EOF
10300 if { (eval echo configure:10301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10301 then
10302 ac_cv_sizeof_wchar_t=`cat conftestval`
10303 else
10304 echo "configure: failed program was:" >&5
10305 cat conftest.$ac_ext >&5
10306 rm -fr conftest*
10307 ac_cv_sizeof_wchar_t=0
10308 fi
10309 rm -fr conftest*
10310 fi
10311
10312 fi
10313 echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6
10314 cat >> confdefs.h <<EOF
10315 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
10316 EOF
10317
10318
10319 echo $ac_n "checking size of short""... $ac_c" 1>&6
10320 echo "configure:10321: checking size of short" >&5
10321 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10322 echo $ac_n "(cached) $ac_c" 1>&6
10323 else
10324 if test "$cross_compiling" = yes; then
10325 ac_cv_sizeof_short=2
10326 else
10327 cat > conftest.$ac_ext <<EOF
10328 #line 10329 "configure"
10329 #include "confdefs.h"
10330 #include <stdio.h>
10331 main()
10332 {
10333 FILE *f=fopen("conftestval", "w");
10334 if (!f) exit(1);
10335 fprintf(f, "%d\n", sizeof(short));
10336 exit(0);
10337 }
10338 EOF
10339 if { (eval echo configure:10340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10340 then
10341 ac_cv_sizeof_short=`cat conftestval`
10342 else
10343 echo "configure: failed program was:" >&5
10344 cat conftest.$ac_ext >&5
10345 rm -fr conftest*
10346 ac_cv_sizeof_short=0
10347 fi
10348 rm -fr conftest*
10349 fi
10350
10351 fi
10352 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10353 cat >> confdefs.h <<EOF
10354 #define SIZEOF_SHORT $ac_cv_sizeof_short
10355 EOF
10356
10357
10358 echo $ac_n "checking size of int *""... $ac_c" 1>&6
10359 echo "configure:10360: checking size of int *" >&5
10360 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
10361 echo $ac_n "(cached) $ac_c" 1>&6
10362 else
10363 if test "$cross_compiling" = yes; then
10364 ac_cv_sizeof_int_p=4
10365 else
10366 cat > conftest.$ac_ext <<EOF
10367 #line 10368 "configure"
10368 #include "confdefs.h"
10369 #include <stdio.h>
10370 main()
10371 {
10372 FILE *f=fopen("conftestval", "w");
10373 if (!f) exit(1);
10374 fprintf(f, "%d\n", sizeof(int *));
10375 exit(0);
10376 }
10377 EOF
10378 if { (eval echo configure:10379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10379 then
10380 ac_cv_sizeof_int_p=`cat conftestval`
10381 else
10382 echo "configure: failed program was:" >&5
10383 cat conftest.$ac_ext >&5
10384 rm -fr conftest*
10385 ac_cv_sizeof_int_p=0
10386 fi
10387 rm -fr conftest*
10388 fi
10389
10390 fi
10391 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
10392 cat >> confdefs.h <<EOF
10393 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
10394 EOF
10395
10396
10397 echo $ac_n "checking size of int""... $ac_c" 1>&6
10398 echo "configure:10399: checking size of int" >&5
10399 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10400 echo $ac_n "(cached) $ac_c" 1>&6
10401 else
10402 if test "$cross_compiling" = yes; then
10403 ac_cv_sizeof_int=4
10404 else
10405 cat > conftest.$ac_ext <<EOF
10406 #line 10407 "configure"
10407 #include "confdefs.h"
10408 #include <stdio.h>
10409 main()
10410 {
10411 FILE *f=fopen("conftestval", "w");
10412 if (!f) exit(1);
10413 fprintf(f, "%d\n", sizeof(int));
10414 exit(0);
10415 }
10416 EOF
10417 if { (eval echo configure:10418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10418 then
10419 ac_cv_sizeof_int=`cat conftestval`
10420 else
10421 echo "configure: failed program was:" >&5
10422 cat conftest.$ac_ext >&5
10423 rm -fr conftest*
10424 ac_cv_sizeof_int=0
10425 fi
10426 rm -fr conftest*
10427 fi
10428
10429 fi
10430 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10431 cat >> confdefs.h <<EOF
10432 #define SIZEOF_INT $ac_cv_sizeof_int
10433 EOF
10434
10435
10436 echo $ac_n "checking size of long""... $ac_c" 1>&6
10437 echo "configure:10438: checking size of long" >&5
10438 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10439 echo $ac_n "(cached) $ac_c" 1>&6
10440 else
10441 if test "$cross_compiling" = yes; then
10442 ac_cv_sizeof_long=4
10443 else
10444 cat > conftest.$ac_ext <<EOF
10445 #line 10446 "configure"
10446 #include "confdefs.h"
10447 #include <stdio.h>
10448 main()
10449 {
10450 FILE *f=fopen("conftestval", "w");
10451 if (!f) exit(1);
10452 fprintf(f, "%d\n", sizeof(long));
10453 exit(0);
10454 }
10455 EOF
10456 if { (eval echo configure:10457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10457 then
10458 ac_cv_sizeof_long=`cat conftestval`
10459 else
10460 echo "configure: failed program was:" >&5
10461 cat conftest.$ac_ext >&5
10462 rm -fr conftest*
10463 ac_cv_sizeof_long=0
10464 fi
10465 rm -fr conftest*
10466 fi
10467
10468 fi
10469 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10470 cat >> confdefs.h <<EOF
10471 #define SIZEOF_LONG $ac_cv_sizeof_long
10472 EOF
10473
10474
10475 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10476 echo "configure:10477: checking size of long long" >&5
10477 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10478 echo $ac_n "(cached) $ac_c" 1>&6
10479 else
10480 if test "$cross_compiling" = yes; then
10481 ac_cv_sizeof_long_long=0
10482 else
10483 cat > conftest.$ac_ext <<EOF
10484 #line 10485 "configure"
10485 #include "confdefs.h"
10486 #include <stdio.h>
10487 main()
10488 {
10489 FILE *f=fopen("conftestval", "w");
10490 if (!f) exit(1);
10491 fprintf(f, "%d\n", sizeof(long long));
10492 exit(0);
10493 }
10494 EOF
10495 if { (eval echo configure:10496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10496 then
10497 ac_cv_sizeof_long_long=`cat conftestval`
10498 else
10499 echo "configure: failed program was:" >&5
10500 cat conftest.$ac_ext >&5
10501 rm -fr conftest*
10502 ac_cv_sizeof_long_long=0
10503 fi
10504 rm -fr conftest*
10505 fi
10506
10507 fi
10508 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10509 cat >> confdefs.h <<EOF
10510 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10511 EOF
10512
10513
10514
10515 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10516 echo "configure:10517: checking whether byte ordering is bigendian" >&5
10517 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10518 echo $ac_n "(cached) $ac_c" 1>&6
10519 else
10520 ac_cv_c_bigendian=unknown
10521 # See if sys/param.h defines the BYTE_ORDER macro.
10522 cat > conftest.$ac_ext <<EOF
10523 #line 10524 "configure"
10524 #include "confdefs.h"
10525 #include <sys/types.h>
10526 #include <sys/param.h>
10527 int main() {
10528
10529 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10530 bogus endian macros
10531 #endif
10532 ; return 0; }
10533 EOF
10534 if { (eval echo configure:10535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10535 rm -rf conftest*
10536 # It does; now see whether it defined to BIG_ENDIAN or not.
10537 cat > conftest.$ac_ext <<EOF
10538 #line 10539 "configure"
10539 #include "confdefs.h"
10540 #include <sys/types.h>
10541 #include <sys/param.h>
10542 int main() {
10543
10544 #if BYTE_ORDER != BIG_ENDIAN
10545 not big endian
10546 #endif
10547 ; return 0; }
10548 EOF
10549 if { (eval echo configure:10550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10550 rm -rf conftest*
10551 ac_cv_c_bigendian=yes
10552 else
10553 echo "configure: failed program was:" >&5
10554 cat conftest.$ac_ext >&5
10555 rm -rf conftest*
10556 ac_cv_c_bigendian=no
10557 fi
10558 rm -f conftest*
10559 else
10560 echo "configure: failed program was:" >&5
10561 cat conftest.$ac_ext >&5
10562 fi
10563 rm -f conftest*
10564 if test $ac_cv_c_bigendian = unknown; then
10565 if test "$cross_compiling" = yes; then
10566 ac_cv_c_bigendian=unknown
10567 else
10568 cat > conftest.$ac_ext <<EOF
10569 #line 10570 "configure"
10570 #include "confdefs.h"
10571 main () {
10572 /* Are we little or big endian? From Harbison&Steele. */
10573 union
10574 {
10575 long l;
10576 char c[sizeof (long)];
10577 } u;
10578 u.l = 1;
10579 exit (u.c[sizeof (long) - 1] == 1);
10580 }
10581 EOF
10582 if { (eval echo configure:10583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10583 then
10584 ac_cv_c_bigendian=no
10585 else
10586 echo "configure: failed program was:" >&5
10587 cat conftest.$ac_ext >&5
10588 rm -fr conftest*
10589 ac_cv_c_bigendian=yes
10590 fi
10591 rm -fr conftest*
10592 fi
10593
10594 fi
10595 fi
10596
10597 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10598 if test $ac_cv_c_bigendian = unknown; then
10599 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
10600 fi
10601 if test $ac_cv_c_bigendian = yes; then
10602 cat >> confdefs.h <<\EOF
10603 #define WORDS_BIGENDIAN 1
10604 EOF
10605
10606 fi
10607
10608
10609
10610 if test "$cross_compiling" = "yes"; then
10611 cat >> confdefs.h <<\EOF
10612 #define wxUSE_IOSTREAMH 1
10613 EOF
10614
10615 else
10616
10617 ac_ext=C
10618 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10619 ac_cpp='$CXXCPP $CPPFLAGS'
10620 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10621 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10622 cross_compiling=$ac_cv_prog_cxx_cross
10623
10624
10625 for ac_hdr in iostream
10626 do
10627 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10628 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10629 echo "configure:10630: checking for $ac_hdr" >&5
10630 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10631 echo $ac_n "(cached) $ac_c" 1>&6
10632 else
10633 cat > conftest.$ac_ext <<EOF
10634 #line 10635 "configure"
10635 #include "confdefs.h"
10636 #include <$ac_hdr>
10637 EOF
10638 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10639 { (eval echo configure:10640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10640 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10641 if test -z "$ac_err"; then
10642 rm -rf conftest*
10643 eval "ac_cv_header_$ac_safe=yes"
10644 else
10645 echo "$ac_err" >&5
10646 echo "configure: failed program was:" >&5
10647 cat conftest.$ac_ext >&5
10648 rm -rf conftest*
10649 eval "ac_cv_header_$ac_safe=no"
10650 fi
10651 rm -f conftest*
10652 fi
10653 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10654 echo "$ac_t""yes" 1>&6
10655 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10656 cat >> confdefs.h <<EOF
10657 #define $ac_tr_hdr 1
10658 EOF
10659
10660 else
10661 echo "$ac_t""no" 1>&6
10662 fi
10663 done
10664
10665
10666 if test "x$HAVE_IOSTREAM" = x ; then
10667 cat >> confdefs.h <<\EOF
10668 #define wxUSE_IOSTREAMH 1
10669 EOF
10670
10671 else
10672 :
10673 fi
10674
10675 ac_ext=c
10676 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10677 ac_cpp='$CPP $CPPFLAGS'
10678 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10679 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10680 cross_compiling=$ac_cv_prog_cc_cross
10681
10682 fi
10683
10684
10685
10686 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
10687 echo "configure:10688: checking if C++ compiler supports bool" >&5
10688 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
10689 echo $ac_n "(cached) $ac_c" 1>&6
10690 else
10691
10692
10693 ac_ext=C
10694 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10695 ac_cpp='$CXXCPP $CPPFLAGS'
10696 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10697 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10698 cross_compiling=$ac_cv_prog_cxx_cross
10699
10700
10701 cat > conftest.$ac_ext <<EOF
10702 #line 10703 "configure"
10703 #include "confdefs.h"
10704
10705
10706 int main() {
10707
10708 bool b = true;
10709
10710 return 0;
10711
10712 ; return 0; }
10713 EOF
10714 if { (eval echo configure:10715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10715 rm -rf conftest*
10716
10717 cat >> confdefs.h <<\EOF
10718 #define HAVE_BOOL 1
10719 EOF
10720
10721 wx_cv_cpp_bool=yes
10722
10723 else
10724 echo "configure: failed program was:" >&5
10725 cat conftest.$ac_ext >&5
10726 rm -rf conftest*
10727
10728 wx_cv_cpp_bool=no
10729
10730
10731 fi
10732 rm -f conftest*
10733
10734 ac_ext=c
10735 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10736 ac_cpp='$CPP $CPPFLAGS'
10737 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10738 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10739 cross_compiling=$ac_cv_prog_cc_cross
10740
10741
10742 fi
10743
10744 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10745
10746 if test "$wx_cv_cpp_bool" = "yes"; then
10747 cat >> confdefs.h <<\EOF
10748 #define HAVE_BOOL 1
10749 EOF
10750
10751 fi
10752
10753
10754
10755 echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
10756 echo "configure:10757: checking if you need GNU extensions" >&5
10757 if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
10758 echo $ac_n "(cached) $ac_c" 1>&6
10759 else
10760
10761 cat > conftest.$ac_ext <<EOF
10762 #line 10763 "configure"
10763 #include "confdefs.h"
10764 #include <features.h>
10765 int main() {
10766
10767
10768 #ifndef __GNU_LIBRARY__
10769 Compile error wanted
10770 #endif
10771
10772
10773 ; return 0; }
10774 EOF
10775 if { (eval echo configure:10776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10776 rm -rf conftest*
10777 wx_cv_gnu_extensions=yes
10778 else
10779 echo "configure: failed program was:" >&5
10780 cat conftest.$ac_ext >&5
10781 rm -rf conftest*
10782 wx_cv_gnu_extensions=no
10783 fi
10784 rm -f conftest*
10785
10786 fi
10787
10788
10789 echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
10790 if test "$wx_cv_gnu_extensions" = "yes"; then
10791 cat >> confdefs.h <<EOF
10792 #define _GNU_SOURCE 1
10793 EOF
10794
10795 fi
10796
10797
10798
10799 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
10800 echo "configure:10801: checking for wcslen in -lc" >&5
10801 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
10802 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10803 echo $ac_n "(cached) $ac_c" 1>&6
10804 else
10805 ac_save_LIBS="$LIBS"
10806 LIBS="-lc $LIBS"
10807 cat > conftest.$ac_ext <<EOF
10808 #line 10809 "configure"
10809 #include "confdefs.h"
10810 /* Override any gcc2 internal prototype to avoid an error. */
10811 /* We use char because int might match the return type of a gcc2
10812 builtin and then its argument prototype would still apply. */
10813 char wcslen();
10814
10815 int main() {
10816 wcslen()
10817 ; return 0; }
10818 EOF
10819 if { (eval echo configure:10820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10820 rm -rf conftest*
10821 eval "ac_cv_lib_$ac_lib_var=yes"
10822 else
10823 echo "configure: failed program was:" >&5
10824 cat conftest.$ac_ext >&5
10825 rm -rf conftest*
10826 eval "ac_cv_lib_$ac_lib_var=no"
10827 fi
10828 rm -f conftest*
10829 LIBS="$ac_save_LIBS"
10830
10831 fi
10832 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10833 echo "$ac_t""yes" 1>&6
10834
10835 cat >> confdefs.h <<\EOF
10836 #define HAVE_WCSLEN 1
10837 EOF
10838
10839 WCHAR_LINK=""
10840
10841 else
10842 echo "$ac_t""no" 1>&6
10843
10844 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
10845 echo "configure:10846: checking for wcslen in -lw" >&5
10846 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
10847 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10848 echo $ac_n "(cached) $ac_c" 1>&6
10849 else
10850 ac_save_LIBS="$LIBS"
10851 LIBS="-lw $LIBS"
10852 cat > conftest.$ac_ext <<EOF
10853 #line 10854 "configure"
10854 #include "confdefs.h"
10855 /* Override any gcc2 internal prototype to avoid an error. */
10856 /* We use char because int might match the return type of a gcc2
10857 builtin and then its argument prototype would still apply. */
10858 char wcslen();
10859
10860 int main() {
10861 wcslen()
10862 ; return 0; }
10863 EOF
10864 if { (eval echo configure:10865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10865 rm -rf conftest*
10866 eval "ac_cv_lib_$ac_lib_var=yes"
10867 else
10868 echo "configure: failed program was:" >&5
10869 cat conftest.$ac_ext >&5
10870 rm -rf conftest*
10871 eval "ac_cv_lib_$ac_lib_var=no"
10872 fi
10873 rm -f conftest*
10874 LIBS="$ac_save_LIBS"
10875
10876 fi
10877 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10878 echo "$ac_t""yes" 1>&6
10879
10880 cat >> confdefs.h <<\EOF
10881 #define HAVE_WCSLEN 1
10882 EOF
10883
10884 WCHAR_LINK="-lw"
10885
10886 else
10887 echo "$ac_t""no" 1>&6
10888 fi
10889
10890
10891 fi
10892
10893
10894 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
10895 echo "configure:10896: checking for vprintf" >&5
10896 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
10897 echo $ac_n "(cached) $ac_c" 1>&6
10898 else
10899 cat > conftest.$ac_ext <<EOF
10900 #line 10901 "configure"
10901 #include "confdefs.h"
10902 /* System header to define __stub macros and hopefully few prototypes,
10903 which can conflict with char vprintf(); below. */
10904 #include <assert.h>
10905 /* Override any gcc2 internal prototype to avoid an error. */
10906 /* We use char because int might match the return type of a gcc2
10907 builtin and then its argument prototype would still apply. */
10908 char vprintf();
10909
10910 int main() {
10911
10912 /* The GNU C library defines this for functions which it implements
10913 to always fail with ENOSYS. Some functions are actually named
10914 something starting with __ and the normal name is an alias. */
10915 #if defined (__stub_vprintf) || defined (__stub___vprintf)
10916 choke me
10917 #else
10918 vprintf();
10919 #endif
10920
10921 ; return 0; }
10922 EOF
10923 if { (eval echo configure:10924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10924 rm -rf conftest*
10925 eval "ac_cv_func_vprintf=yes"
10926 else
10927 echo "configure: failed program was:" >&5
10928 cat conftest.$ac_ext >&5
10929 rm -rf conftest*
10930 eval "ac_cv_func_vprintf=no"
10931 fi
10932 rm -f conftest*
10933 fi
10934
10935 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
10936 echo "$ac_t""yes" 1>&6
10937 cat >> confdefs.h <<\EOF
10938 #define HAVE_VPRINTF 1
10939 EOF
10940
10941 else
10942 echo "$ac_t""no" 1>&6
10943 fi
10944
10945 if test "$ac_cv_func_vprintf" != yes; then
10946 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
10947 echo "configure:10948: checking for _doprnt" >&5
10948 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
10949 echo $ac_n "(cached) $ac_c" 1>&6
10950 else
10951 cat > conftest.$ac_ext <<EOF
10952 #line 10953 "configure"
10953 #include "confdefs.h"
10954 /* System header to define __stub macros and hopefully few prototypes,
10955 which can conflict with char _doprnt(); below. */
10956 #include <assert.h>
10957 /* Override any gcc2 internal prototype to avoid an error. */
10958 /* We use char because int might match the return type of a gcc2
10959 builtin and then its argument prototype would still apply. */
10960 char _doprnt();
10961
10962 int main() {
10963
10964 /* The GNU C library defines this for functions which it implements
10965 to always fail with ENOSYS. Some functions are actually named
10966 something starting with __ and the normal name is an alias. */
10967 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10968 choke me
10969 #else
10970 _doprnt();
10971 #endif
10972
10973 ; return 0; }
10974 EOF
10975 if { (eval echo configure:10976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10976 rm -rf conftest*
10977 eval "ac_cv_func__doprnt=yes"
10978 else
10979 echo "configure: failed program was:" >&5
10980 cat conftest.$ac_ext >&5
10981 rm -rf conftest*
10982 eval "ac_cv_func__doprnt=no"
10983 fi
10984 rm -f conftest*
10985 fi
10986
10987 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
10988 echo "$ac_t""yes" 1>&6
10989 cat >> confdefs.h <<\EOF
10990 #define HAVE_DOPRNT 1
10991 EOF
10992
10993 else
10994 echo "$ac_t""no" 1>&6
10995 fi
10996
10997 fi
10998
10999
11000
11001 ac_ext=C
11002 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11003 ac_cpp='$CXXCPP $CPPFLAGS'
11004 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11005 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11006 cross_compiling=$ac_cv_prog_cxx_cross
11007
11008
11009
11010
11011
11012
11013 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
11014 echo "configure:11015: checking for vsnprintf" >&5
11015 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
11016 echo $ac_n "(cached) $ac_c" 1>&6
11017 else
11018
11019 cat > conftest.$ac_ext <<EOF
11020 #line 11021 "configure"
11021 #include "confdefs.h"
11022
11023 #include <stdio.h>
11024 #include <stdarg.h>
11025
11026 int main() {
11027
11028 int wx_test_vsnprintf(const char *, ...);
11029
11030 wx_test_vsnprintf("%s");
11031 return 0;
11032 }
11033
11034 int wx_test_vsnprintf(const char *fmt, ...)
11035 {
11036 char *s;
11037
11038 va_list argp;
11039 va_start(argp, fmt);
11040 vsnprintf(s, 42, fmt, argp);
11041 va_end(argp);
11042
11043 ; return 0; }
11044 EOF
11045 if { (eval echo configure:11046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11046 rm -rf conftest*
11047
11048 wx_cv_func_vsnprintf=yes
11049
11050 else
11051 echo "configure: failed program was:" >&5
11052 cat conftest.$ac_ext >&5
11053 rm -rf conftest*
11054
11055 cat > conftest.$ac_ext <<EOF
11056 #line 11057 "configure"
11057 #include "confdefs.h"
11058
11059 #include <stdio.h>
11060 #include <stdarg.h>
11061
11062 int main() {
11063
11064 int wx_test_vsnprintf(const char *, ...);
11065
11066 wx_test_vsnprintf("%s");
11067 return 0;
11068 }
11069
11070 int wx_test_vsnprintf(const char *fmt, ...)
11071 {
11072 char *s;
11073
11074 va_list argp;
11075 va_start(argp, fmt);
11076 _vsnprintf(s, 42, fmt, argp);
11077 va_end(argp);
11078
11079 ; return 0; }
11080 EOF
11081 if { (eval echo configure:11082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11082 rm -rf conftest*
11083
11084 wx_cv_func_vsnprintf=yes
11085
11086 else
11087 echo "configure: failed program was:" >&5
11088 cat conftest.$ac_ext >&5
11089 rm -rf conftest*
11090
11091 wx_cv_func_vsnprintf=no
11092
11093 fi
11094 rm -f conftest*
11095
11096 fi
11097 rm -f conftest*
11098
11099 fi
11100
11101 echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
11102
11103 if test "$wx_cv_func_vsnprintf" = yes; then
11104 cat >> confdefs.h <<\EOF
11105 #define HAVE_VSNPRINTF 1
11106 EOF
11107
11108 else
11109 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
11110 fi
11111
11112 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
11113 echo "configure:11114: checking for vsscanf" >&5
11114 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
11115 echo $ac_n "(cached) $ac_c" 1>&6
11116 else
11117
11118 cat > conftest.$ac_ext <<EOF
11119 #line 11120 "configure"
11120 #include "confdefs.h"
11121
11122 #include <stdio.h>
11123 #include <stdarg.h>
11124
11125 int main() {
11126
11127 int wx_test_vsscanf(const char *, ...);
11128
11129 wx_test_vsscanf("%d");
11130 return 0;
11131 }
11132
11133 int wx_test_vsscanf(const char *fmt, ...)
11134 {
11135 va_list argp;
11136 va_start(argp, fmt);
11137 vsscanf("42", fmt, argp);
11138 va_end(argp);
11139
11140 ; return 0; }
11141 EOF
11142 if { (eval echo configure:11143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11143 rm -rf conftest*
11144
11145 wx_cv_func_vsscanf=yes
11146
11147 else
11148 echo "configure: failed program was:" >&5
11149 cat conftest.$ac_ext >&5
11150 rm -rf conftest*
11151
11152 wx_cv_func_vsscanf=no
11153
11154 fi
11155 rm -f conftest*
11156
11157 fi
11158
11159 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
11160
11161 if test "$wx_cv_func_vsscanf" = yes; then
11162 cat >> confdefs.h <<\EOF
11163 #define HAVE_VSSCANF 1
11164 EOF
11165
11166 fi
11167
11168 ac_ext=c
11169 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11170 ac_cpp='$CPP $CPPFLAGS'
11171 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11172 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11173 cross_compiling=$ac_cv_prog_cc_cross
11174
11175
11176 if test "$TOOLKIT" != "MSW"; then
11177
11178 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
11179 for ac_func in sigaction
11180 do
11181 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11182 echo "configure:11183: checking for $ac_func" >&5
11183 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11184 echo $ac_n "(cached) $ac_c" 1>&6
11185 else
11186 cat > conftest.$ac_ext <<EOF
11187 #line 11188 "configure"
11188 #include "confdefs.h"
11189 /* System header to define __stub macros and hopefully few prototypes,
11190 which can conflict with char $ac_func(); below. */
11191 #include <assert.h>
11192 /* Override any gcc2 internal prototype to avoid an error. */
11193 /* We use char because int might match the return type of a gcc2
11194 builtin and then its argument prototype would still apply. */
11195 char $ac_func();
11196
11197 int main() {
11198
11199 /* The GNU C library defines this for functions which it implements
11200 to always fail with ENOSYS. Some functions are actually named
11201 something starting with __ and the normal name is an alias. */
11202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11203 choke me
11204 #else
11205 $ac_func();
11206 #endif
11207
11208 ; return 0; }
11209 EOF
11210 if { (eval echo configure:11211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11211 rm -rf conftest*
11212 eval "ac_cv_func_$ac_func=yes"
11213 else
11214 echo "configure: failed program was:" >&5
11215 cat conftest.$ac_ext >&5
11216 rm -rf conftest*
11217 eval "ac_cv_func_$ac_func=no"
11218 fi
11219 rm -f conftest*
11220 fi
11221
11222 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11223 echo "$ac_t""yes" 1>&6
11224 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11225 cat >> confdefs.h <<EOF
11226 #define $ac_tr_func 1
11227 EOF
11228
11229 else
11230 echo "$ac_t""no" 1>&6
11231 fi
11232 done
11233
11234
11235 if test "$ac_cv_func_sigaction" = "no"; then
11236 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
11237 wxUSE_ON_FATAL_EXCEPTION=no
11238 fi
11239
11240 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
11241
11242 ac_ext=C
11243 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11244 ac_cpp='$CXXCPP $CPPFLAGS'
11245 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11246 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11247 cross_compiling=$ac_cv_prog_cxx_cross
11248
11249
11250 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
11251 echo "configure:11252: checking for sa_handler type" >&5
11252 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
11253 echo $ac_n "(cached) $ac_c" 1>&6
11254 else
11255
11256 cat > conftest.$ac_ext <<EOF
11257 #line 11258 "configure"
11258 #include "confdefs.h"
11259 #include <signal.h>
11260 int main() {
11261
11262 extern void testSigHandler(int);
11263
11264 struct sigaction sa;
11265 sa.sa_handler = testSigHandler;
11266
11267 ; return 0; }
11268 EOF
11269 if { (eval echo configure:11270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11270 rm -rf conftest*
11271
11272 wx_cv_type_sa_handler=int
11273
11274 else
11275 echo "configure: failed program was:" >&5
11276 cat conftest.$ac_ext >&5
11277 rm -rf conftest*
11278
11279 wx_cv_type_sa_handler=void
11280
11281 fi
11282 rm -f conftest*
11283
11284 fi
11285
11286 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
11287
11288 ac_ext=c
11289 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11290 ac_cpp='$CPP $CPPFLAGS'
11291 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11292 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11293 cross_compiling=$ac_cv_prog_cc_cross
11294
11295
11296 cat >> confdefs.h <<EOF
11297 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
11298 EOF
11299
11300 fi
11301 fi
11302
11303 for ac_func in vfork
11304 do
11305 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11306 echo "configure:11307: checking for $ac_func" >&5
11307 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11308 echo $ac_n "(cached) $ac_c" 1>&6
11309 else
11310 cat > conftest.$ac_ext <<EOF
11311 #line 11312 "configure"
11312 #include "confdefs.h"
11313 /* System header to define __stub macros and hopefully few prototypes,
11314 which can conflict with char $ac_func(); below. */
11315 #include <assert.h>
11316 /* Override any gcc2 internal prototype to avoid an error. */
11317 /* We use char because int might match the return type of a gcc2
11318 builtin and then its argument prototype would still apply. */
11319 char $ac_func();
11320
11321 int main() {
11322
11323 /* The GNU C library defines this for functions which it implements
11324 to always fail with ENOSYS. Some functions are actually named
11325 something starting with __ and the normal name is an alias. */
11326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11327 choke me
11328 #else
11329 $ac_func();
11330 #endif
11331
11332 ; return 0; }
11333 EOF
11334 if { (eval echo configure:11335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11335 rm -rf conftest*
11336 eval "ac_cv_func_$ac_func=yes"
11337 else
11338 echo "configure: failed program was:" >&5
11339 cat conftest.$ac_ext >&5
11340 rm -rf conftest*
11341 eval "ac_cv_func_$ac_func=no"
11342 fi
11343 rm -f conftest*
11344 fi
11345
11346 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11347 echo "$ac_t""yes" 1>&6
11348 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11349 cat >> confdefs.h <<EOF
11350 #define $ac_tr_func 1
11351 EOF
11352
11353 else
11354 echo "$ac_t""no" 1>&6
11355 fi
11356 done
11357
11358
11359 for ac_func in timegm
11360 do
11361 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11362 echo "configure:11363: checking for $ac_func" >&5
11363 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11364 echo $ac_n "(cached) $ac_c" 1>&6
11365 else
11366 cat > conftest.$ac_ext <<EOF
11367 #line 11368 "configure"
11368 #include "confdefs.h"
11369 /* System header to define __stub macros and hopefully few prototypes,
11370 which can conflict with char $ac_func(); below. */
11371 #include <assert.h>
11372 /* Override any gcc2 internal prototype to avoid an error. */
11373 /* We use char because int might match the return type of a gcc2
11374 builtin and then its argument prototype would still apply. */
11375 char $ac_func();
11376
11377 int main() {
11378
11379 /* The GNU C library defines this for functions which it implements
11380 to always fail with ENOSYS. Some functions are actually named
11381 something starting with __ and the normal name is an alias. */
11382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11383 choke me
11384 #else
11385 $ac_func();
11386 #endif
11387
11388 ; return 0; }
11389 EOF
11390 if { (eval echo configure:11391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11391 rm -rf conftest*
11392 eval "ac_cv_func_$ac_func=yes"
11393 else
11394 echo "configure: failed program was:" >&5
11395 cat conftest.$ac_ext >&5
11396 rm -rf conftest*
11397 eval "ac_cv_func_$ac_func=no"
11398 fi
11399 rm -f conftest*
11400 fi
11401
11402 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11403 echo "$ac_t""yes" 1>&6
11404 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11405 cat >> confdefs.h <<EOF
11406 #define $ac_tr_func 1
11407 EOF
11408
11409 else
11410 echo "$ac_t""no" 1>&6
11411 fi
11412 done
11413
11414
11415 for ac_func in putenv setenv
11416 do
11417 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11418 echo "configure:11419: checking for $ac_func" >&5
11419 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11420 echo $ac_n "(cached) $ac_c" 1>&6
11421 else
11422 cat > conftest.$ac_ext <<EOF
11423 #line 11424 "configure"
11424 #include "confdefs.h"
11425 /* System header to define __stub macros and hopefully few prototypes,
11426 which can conflict with char $ac_func(); below. */
11427 #include <assert.h>
11428 /* Override any gcc2 internal prototype to avoid an error. */
11429 /* We use char because int might match the return type of a gcc2
11430 builtin and then its argument prototype would still apply. */
11431 char $ac_func();
11432
11433 int main() {
11434
11435 /* The GNU C library defines this for functions which it implements
11436 to always fail with ENOSYS. Some functions are actually named
11437 something starting with __ and the normal name is an alias. */
11438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11439 choke me
11440 #else
11441 $ac_func();
11442 #endif
11443
11444 ; return 0; }
11445 EOF
11446 if { (eval echo configure:11447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11447 rm -rf conftest*
11448 eval "ac_cv_func_$ac_func=yes"
11449 else
11450 echo "configure: failed program was:" >&5
11451 cat conftest.$ac_ext >&5
11452 rm -rf conftest*
11453 eval "ac_cv_func_$ac_func=no"
11454 fi
11455 rm -f conftest*
11456 fi
11457
11458 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11459 echo "$ac_t""yes" 1>&6
11460 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11461 cat >> confdefs.h <<EOF
11462 #define $ac_tr_func 1
11463 EOF
11464 break
11465 else
11466 echo "$ac_t""no" 1>&6
11467 fi
11468 done
11469
11470
11471 HAVE_SOME_SLEEP_FUNC=0
11472 if test "$USE_BEOS" = 1; then
11473 cat >> confdefs.h <<\EOF
11474 #define HAVE_SLEEP 1
11475 EOF
11476
11477 HAVE_SOME_SLEEP_FUNC=1
11478 fi
11479
11480 if test "$USE_MAC" = 1; then
11481 cat >> confdefs.h <<\EOF
11482 #define HAVE_USLEEP 1
11483 EOF
11484
11485 HAVE_SOME_SLEEP_FUNC=1
11486 fi
11487
11488 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
11489 POSIX4_LINK=
11490 for ac_func in nanosleep
11491 do
11492 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11493 echo "configure:11494: checking for $ac_func" >&5
11494 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11495 echo $ac_n "(cached) $ac_c" 1>&6
11496 else
11497 cat > conftest.$ac_ext <<EOF
11498 #line 11499 "configure"
11499 #include "confdefs.h"
11500 /* System header to define __stub macros and hopefully few prototypes,
11501 which can conflict with char $ac_func(); below. */
11502 #include <assert.h>
11503 /* Override any gcc2 internal prototype to avoid an error. */
11504 /* We use char because int might match the return type of a gcc2
11505 builtin and then its argument prototype would still apply. */
11506 char $ac_func();
11507
11508 int main() {
11509
11510 /* The GNU C library defines this for functions which it implements
11511 to always fail with ENOSYS. Some functions are actually named
11512 something starting with __ and the normal name is an alias. */
11513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11514 choke me
11515 #else
11516 $ac_func();
11517 #endif
11518
11519 ; return 0; }
11520 EOF
11521 if { (eval echo configure:11522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11522 rm -rf conftest*
11523 eval "ac_cv_func_$ac_func=yes"
11524 else
11525 echo "configure: failed program was:" >&5
11526 cat conftest.$ac_ext >&5
11527 rm -rf conftest*
11528 eval "ac_cv_func_$ac_func=no"
11529 fi
11530 rm -f conftest*
11531 fi
11532
11533 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11534 echo "$ac_t""yes" 1>&6
11535 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11536 cat >> confdefs.h <<EOF
11537 #define $ac_tr_func 1
11538 EOF
11539 cat >> confdefs.h <<\EOF
11540 #define HAVE_NANOSLEEP 1
11541 EOF
11542
11543 else
11544 echo "$ac_t""no" 1>&6
11545 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
11546 echo "configure:11547: checking for nanosleep in -lposix4" >&5
11547 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
11548 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11549 echo $ac_n "(cached) $ac_c" 1>&6
11550 else
11551 ac_save_LIBS="$LIBS"
11552 LIBS="-lposix4 $LIBS"
11553 cat > conftest.$ac_ext <<EOF
11554 #line 11555 "configure"
11555 #include "confdefs.h"
11556 /* Override any gcc2 internal prototype to avoid an error. */
11557 /* We use char because int might match the return type of a gcc2
11558 builtin and then its argument prototype would still apply. */
11559 char nanosleep();
11560
11561 int main() {
11562 nanosleep()
11563 ; return 0; }
11564 EOF
11565 if { (eval echo configure:11566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11566 rm -rf conftest*
11567 eval "ac_cv_lib_$ac_lib_var=yes"
11568 else
11569 echo "configure: failed program was:" >&5
11570 cat conftest.$ac_ext >&5
11571 rm -rf conftest*
11572 eval "ac_cv_lib_$ac_lib_var=no"
11573 fi
11574 rm -f conftest*
11575 LIBS="$ac_save_LIBS"
11576
11577 fi
11578 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11579 echo "$ac_t""yes" 1>&6
11580
11581 cat >> confdefs.h <<\EOF
11582 #define HAVE_NANOSLEEP 1
11583 EOF
11584
11585 POSIX4_LINK="-lposix4"
11586
11587 else
11588 echo "$ac_t""no" 1>&6
11589
11590 for ac_func in usleep
11591 do
11592 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11593 echo "configure:11594: checking for $ac_func" >&5
11594 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11595 echo $ac_n "(cached) $ac_c" 1>&6
11596 else
11597 cat > conftest.$ac_ext <<EOF
11598 #line 11599 "configure"
11599 #include "confdefs.h"
11600 /* System header to define __stub macros and hopefully few prototypes,
11601 which can conflict with char $ac_func(); below. */
11602 #include <assert.h>
11603 /* Override any gcc2 internal prototype to avoid an error. */
11604 /* We use char because int might match the return type of a gcc2
11605 builtin and then its argument prototype would still apply. */
11606 char $ac_func();
11607
11608 int main() {
11609
11610 /* The GNU C library defines this for functions which it implements
11611 to always fail with ENOSYS. Some functions are actually named
11612 something starting with __ and the normal name is an alias. */
11613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11614 choke me
11615 #else
11616 $ac_func();
11617 #endif
11618
11619 ; return 0; }
11620 EOF
11621 if { (eval echo configure:11622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11622 rm -rf conftest*
11623 eval "ac_cv_func_$ac_func=yes"
11624 else
11625 echo "configure: failed program was:" >&5
11626 cat conftest.$ac_ext >&5
11627 rm -rf conftest*
11628 eval "ac_cv_func_$ac_func=no"
11629 fi
11630 rm -f conftest*
11631 fi
11632
11633 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11634 echo "$ac_t""yes" 1>&6
11635 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11636 cat >> confdefs.h <<EOF
11637 #define $ac_tr_func 1
11638 EOF
11639 cat >> confdefs.h <<\EOF
11640 #define HAVE_USLEEP 1
11641 EOF
11642
11643 else
11644 echo "$ac_t""no" 1>&6
11645 fi
11646 done
11647
11648 echo "configure: warning: wxSleep() function will not work" 1>&2
11649
11650
11651 fi
11652
11653
11654
11655 fi
11656 done
11657
11658 fi
11659
11660 for ac_func in uname gethostname
11661 do
11662 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11663 echo "configure:11664: checking for $ac_func" >&5
11664 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11665 echo $ac_n "(cached) $ac_c" 1>&6
11666 else
11667 cat > conftest.$ac_ext <<EOF
11668 #line 11669 "configure"
11669 #include "confdefs.h"
11670 /* System header to define __stub macros and hopefully few prototypes,
11671 which can conflict with char $ac_func(); below. */
11672 #include <assert.h>
11673 /* Override any gcc2 internal prototype to avoid an error. */
11674 /* We use char because int might match the return type of a gcc2
11675 builtin and then its argument prototype would still apply. */
11676 char $ac_func();
11677
11678 int main() {
11679
11680 /* The GNU C library defines this for functions which it implements
11681 to always fail with ENOSYS. Some functions are actually named
11682 something starting with __ and the normal name is an alias. */
11683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11684 choke me
11685 #else
11686 $ac_func();
11687 #endif
11688
11689 ; return 0; }
11690 EOF
11691 if { (eval echo configure:11692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11692 rm -rf conftest*
11693 eval "ac_cv_func_$ac_func=yes"
11694 else
11695 echo "configure: failed program was:" >&5
11696 cat conftest.$ac_ext >&5
11697 rm -rf conftest*
11698 eval "ac_cv_func_$ac_func=no"
11699 fi
11700 rm -f conftest*
11701 fi
11702
11703 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11704 echo "$ac_t""yes" 1>&6
11705 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11706 cat >> confdefs.h <<EOF
11707 #define $ac_tr_func 1
11708 EOF
11709 break
11710 else
11711 echo "$ac_t""no" 1>&6
11712 fi
11713 done
11714
11715
11716
11717 ac_ext=C
11718 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11719 ac_cpp='$CXXCPP $CPPFLAGS'
11720 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11721 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11722 cross_compiling=$ac_cv_prog_cxx_cross
11723
11724
11725 for ac_func in strtok_r
11726 do
11727 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11728 echo "configure:11729: checking for $ac_func" >&5
11729 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11730 echo $ac_n "(cached) $ac_c" 1>&6
11731 else
11732 cat > conftest.$ac_ext <<EOF
11733 #line 11734 "configure"
11734 #include "confdefs.h"
11735 /* System header to define __stub macros and hopefully few prototypes,
11736 which can conflict with char $ac_func(); below. */
11737 #include <assert.h>
11738 /* Override any gcc2 internal prototype to avoid an error. */
11739 #ifdef __cplusplus
11740 extern "C"
11741 #endif
11742 /* We use char because int might match the return type of a gcc2
11743 builtin and then its argument prototype would still apply. */
11744 char $ac_func();
11745
11746 int main() {
11747
11748 /* The GNU C library defines this for functions which it implements
11749 to always fail with ENOSYS. Some functions are actually named
11750 something starting with __ and the normal name is an alias. */
11751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11752 choke me
11753 #else
11754 $ac_func();
11755 #endif
11756
11757 ; return 0; }
11758 EOF
11759 if { (eval echo configure:11760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11760 rm -rf conftest*
11761 eval "ac_cv_func_$ac_func=yes"
11762 else
11763 echo "configure: failed program was:" >&5
11764 cat conftest.$ac_ext >&5
11765 rm -rf conftest*
11766 eval "ac_cv_func_$ac_func=no"
11767 fi
11768 rm -f conftest*
11769 fi
11770
11771 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11772 echo "$ac_t""yes" 1>&6
11773 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11774 cat >> confdefs.h <<EOF
11775 #define $ac_tr_func 1
11776 EOF
11777
11778 else
11779 echo "$ac_t""no" 1>&6
11780 fi
11781 done
11782
11783
11784 ac_ext=c
11785 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11786 ac_cpp='$CPP $CPPFLAGS'
11787 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11788 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11789 cross_compiling=$ac_cv_prog_cc_cross
11790
11791
11792 INET_LINK=
11793 for ac_func in inet_addr
11794 do
11795 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11796 echo "configure:11797: checking for $ac_func" >&5
11797 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11798 echo $ac_n "(cached) $ac_c" 1>&6
11799 else
11800 cat > conftest.$ac_ext <<EOF
11801 #line 11802 "configure"
11802 #include "confdefs.h"
11803 /* System header to define __stub macros and hopefully few prototypes,
11804 which can conflict with char $ac_func(); below. */
11805 #include <assert.h>
11806 /* Override any gcc2 internal prototype to avoid an error. */
11807 /* We use char because int might match the return type of a gcc2
11808 builtin and then its argument prototype would still apply. */
11809 char $ac_func();
11810
11811 int main() {
11812
11813 /* The GNU C library defines this for functions which it implements
11814 to always fail with ENOSYS. Some functions are actually named
11815 something starting with __ and the normal name is an alias. */
11816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11817 choke me
11818 #else
11819 $ac_func();
11820 #endif
11821
11822 ; return 0; }
11823 EOF
11824 if { (eval echo configure:11825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11825 rm -rf conftest*
11826 eval "ac_cv_func_$ac_func=yes"
11827 else
11828 echo "configure: failed program was:" >&5
11829 cat conftest.$ac_ext >&5
11830 rm -rf conftest*
11831 eval "ac_cv_func_$ac_func=no"
11832 fi
11833 rm -f conftest*
11834 fi
11835
11836 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11837 echo "$ac_t""yes" 1>&6
11838 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11839 cat >> confdefs.h <<EOF
11840 #define $ac_tr_func 1
11841 EOF
11842 cat >> confdefs.h <<\EOF
11843 #define HAVE_INET_ADDR 1
11844 EOF
11845
11846 else
11847 echo "$ac_t""no" 1>&6
11848 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
11849 echo "configure:11850: checking for inet_addr in -lnsl" >&5
11850 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
11851 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11852 echo $ac_n "(cached) $ac_c" 1>&6
11853 else
11854 ac_save_LIBS="$LIBS"
11855 LIBS="-lnsl $LIBS"
11856 cat > conftest.$ac_ext <<EOF
11857 #line 11858 "configure"
11858 #include "confdefs.h"
11859 /* Override any gcc2 internal prototype to avoid an error. */
11860 /* We use char because int might match the return type of a gcc2
11861 builtin and then its argument prototype would still apply. */
11862 char inet_addr();
11863
11864 int main() {
11865 inet_addr()
11866 ; return 0; }
11867 EOF
11868 if { (eval echo configure:11869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11869 rm -rf conftest*
11870 eval "ac_cv_lib_$ac_lib_var=yes"
11871 else
11872 echo "configure: failed program was:" >&5
11873 cat conftest.$ac_ext >&5
11874 rm -rf conftest*
11875 eval "ac_cv_lib_$ac_lib_var=no"
11876 fi
11877 rm -f conftest*
11878 LIBS="$ac_save_LIBS"
11879
11880 fi
11881 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11882 echo "$ac_t""yes" 1>&6
11883 INET_LINK="nsl"
11884 else
11885 echo "$ac_t""no" 1>&6
11886 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
11887 echo "configure:11888: checking for inet_addr in -lresolv" >&5
11888 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
11889 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11890 echo $ac_n "(cached) $ac_c" 1>&6
11891 else
11892 ac_save_LIBS="$LIBS"
11893 LIBS="-lresolv $LIBS"
11894 cat > conftest.$ac_ext <<EOF
11895 #line 11896 "configure"
11896 #include "confdefs.h"
11897 /* Override any gcc2 internal prototype to avoid an error. */
11898 /* We use char because int might match the return type of a gcc2
11899 builtin and then its argument prototype would still apply. */
11900 char inet_addr();
11901
11902 int main() {
11903 inet_addr()
11904 ; return 0; }
11905 EOF
11906 if { (eval echo configure:11907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11907 rm -rf conftest*
11908 eval "ac_cv_lib_$ac_lib_var=yes"
11909 else
11910 echo "configure: failed program was:" >&5
11911 cat conftest.$ac_ext >&5
11912 rm -rf conftest*
11913 eval "ac_cv_lib_$ac_lib_var=no"
11914 fi
11915 rm -f conftest*
11916 LIBS="$ac_save_LIBS"
11917
11918 fi
11919 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11920 echo "$ac_t""yes" 1>&6
11921 INET_LINK="resolv"
11922
11923 else
11924 echo "$ac_t""no" 1>&6
11925 fi
11926
11927
11928 fi
11929
11930
11931
11932 fi
11933 done
11934
11935
11936 for ac_func in inet_aton
11937 do
11938 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11939 echo "configure:11940: checking for $ac_func" >&5
11940 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11941 echo $ac_n "(cached) $ac_c" 1>&6
11942 else
11943 cat > conftest.$ac_ext <<EOF
11944 #line 11945 "configure"
11945 #include "confdefs.h"
11946 /* System header to define __stub macros and hopefully few prototypes,
11947 which can conflict with char $ac_func(); below. */
11948 #include <assert.h>
11949 /* Override any gcc2 internal prototype to avoid an error. */
11950 /* We use char because int might match the return type of a gcc2
11951 builtin and then its argument prototype would still apply. */
11952 char $ac_func();
11953
11954 int main() {
11955
11956 /* The GNU C library defines this for functions which it implements
11957 to always fail with ENOSYS. Some functions are actually named
11958 something starting with __ and the normal name is an alias. */
11959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11960 choke me
11961 #else
11962 $ac_func();
11963 #endif
11964
11965 ; return 0; }
11966 EOF
11967 if { (eval echo configure:11968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11968 rm -rf conftest*
11969 eval "ac_cv_func_$ac_func=yes"
11970 else
11971 echo "configure: failed program was:" >&5
11972 cat conftest.$ac_ext >&5
11973 rm -rf conftest*
11974 eval "ac_cv_func_$ac_func=no"
11975 fi
11976 rm -f conftest*
11977 fi
11978
11979 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11980 echo "$ac_t""yes" 1>&6
11981 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11982 cat >> confdefs.h <<EOF
11983 #define $ac_tr_func 1
11984 EOF
11985 cat >> confdefs.h <<\EOF
11986 #define HAVE_INET_ATON 1
11987 EOF
11988
11989 else
11990 echo "$ac_t""no" 1>&6
11991 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
11992 echo "configure:11993: checking for inet_aton in -l$INET_LINK" >&5
11993 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
11994 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11995 echo $ac_n "(cached) $ac_c" 1>&6
11996 else
11997 ac_save_LIBS="$LIBS"
11998 LIBS="-l$INET_LINK $LIBS"
11999 cat > conftest.$ac_ext <<EOF
12000 #line 12001 "configure"
12001 #include "confdefs.h"
12002 /* Override any gcc2 internal prototype to avoid an error. */
12003 /* We use char because int might match the return type of a gcc2
12004 builtin and then its argument prototype would still apply. */
12005 char inet_aton();
12006
12007 int main() {
12008 inet_aton()
12009 ; return 0; }
12010 EOF
12011 if { (eval echo configure:12012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12012 rm -rf conftest*
12013 eval "ac_cv_lib_$ac_lib_var=yes"
12014 else
12015 echo "configure: failed program was:" >&5
12016 cat conftest.$ac_ext >&5
12017 rm -rf conftest*
12018 eval "ac_cv_lib_$ac_lib_var=no"
12019 fi
12020 rm -f conftest*
12021 LIBS="$ac_save_LIBS"
12022
12023 fi
12024 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12025 echo "$ac_t""yes" 1>&6
12026 cat >> confdefs.h <<\EOF
12027 #define HAVE_INET_ATON 1
12028 EOF
12029
12030 else
12031 echo "$ac_t""no" 1>&6
12032 fi
12033
12034
12035 fi
12036 done
12037
12038
12039 if test "x$INET_LINK" != "x"; then
12040 cat >> confdefs.h <<\EOF
12041 #define HAVE_INET_ADDR 1
12042 EOF
12043
12044 INET_LINK="-l$INET_LINK"
12045 fi
12046
12047 fi
12048
12049
12050 cat > confcache <<\EOF
12051 # This file is a shell script that caches the results of configure
12052 # tests run on this system so they can be shared between configure
12053 # scripts and configure runs. It is not useful on other systems.
12054 # If it contains results you don't want to keep, you may remove or edit it.
12055 #
12056 # By default, configure uses ./config.cache as the cache file,
12057 # creating it if it does not exist already. You can give configure
12058 # the --cache-file=FILE option to use a different cache file; that is
12059 # what configure does when it calls configure scripts in
12060 # subdirectories, so they share the cache.
12061 # Giving --cache-file=/dev/null disables caching, for debugging configure.
12062 # config.status only pays attention to the cache file if you give it the
12063 # --recheck option to rerun configure.
12064 #
12065 EOF
12066 # The following way of writing the cache mishandles newlines in values,
12067 # but we know of no workaround that is simple, portable, and efficient.
12068 # So, don't put newlines in cache variables' values.
12069 # Ultrix sh set writes to stderr and can't be redirected directly,
12070 # and sets the high bit in the cache file unless we assign to the vars.
12071 (set) 2>&1 |
12072 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12073 *ac_space=\ *)
12074 # `set' does not quote correctly, so add quotes (double-quote substitution
12075 # turns \\\\ into \\, and sed turns \\ into \).
12076 sed -n \
12077 -e "s/'/'\\\\''/g" \
12078 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12079 ;;
12080 *)
12081 # `set' quotes correctly as required by POSIX, so do not add quotes.
12082 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12083 ;;
12084 esac >> confcache
12085 if cmp -s $cache_file confcache; then
12086 :
12087 else
12088 if test -w $cache_file; then
12089 echo "updating cache $cache_file"
12090 cat confcache > $cache_file
12091 else
12092 echo "not updating unwritable cache $cache_file"
12093 fi
12094 fi
12095 rm -f confcache
12096
12097
12098
12099 if test "$TOOLKIT" != "MSW"; then
12100
12101
12102 THREADS_LINK=""
12103 THREADS_OBJ=""
12104
12105 if test "$wxUSE_THREADS" = "yes" ; then
12106 if test "$wxUSE_WINE" = 1 ; then
12107 echo "configure: warning: Threads are not supported under WINE" 1>&2
12108 wxUSE_THREADS="no"
12109 elif test "$USE_BEOS" = 1; then
12110 echo "configure: warning: BeOS threads are not yet supported" 1>&2
12111 wxUSE_THREADS="no"
12112 fi
12113 fi
12114
12115 if test "$wxUSE_THREADS" = "yes" ; then
12116
12117 if test "$USE_AIX" = 1; then
12118 THREADS_LIB=pthreads
12119 elif test "$USE_MAC" = 1; then
12120 THREADS_LIB=cc_dynamic
12121 else
12122 THREADS_LIB=pthread
12123 fi
12124
12125 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
12126 echo "configure:12127: checking for pthread_create in -l$THREADS_LIB" >&5
12127 ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
12128 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12129 echo $ac_n "(cached) $ac_c" 1>&6
12130 else
12131 ac_save_LIBS="$LIBS"
12132 LIBS="-l$THREADS_LIB $LIBS"
12133 cat > conftest.$ac_ext <<EOF
12134 #line 12135 "configure"
12135 #include "confdefs.h"
12136 /* Override any gcc2 internal prototype to avoid an error. */
12137 /* We use char because int might match the return type of a gcc2
12138 builtin and then its argument prototype would still apply. */
12139 char pthread_create();
12140
12141 int main() {
12142 pthread_create()
12143 ; return 0; }
12144 EOF
12145 if { (eval echo configure:12146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12146 rm -rf conftest*
12147 eval "ac_cv_lib_$ac_lib_var=yes"
12148 else
12149 echo "configure: failed program was:" >&5
12150 cat conftest.$ac_ext >&5
12151 rm -rf conftest*
12152 eval "ac_cv_lib_$ac_lib_var=no"
12153 fi
12154 rm -f conftest*
12155 LIBS="$ac_save_LIBS"
12156
12157 fi
12158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12159 echo "$ac_t""yes" 1>&6
12160
12161 THREADS_OBJ="threadpsx.lo"
12162 THREADS_LINK=$THREADS_LIB
12163
12164 else
12165 echo "$ac_t""no" 1>&6
12166
12167 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
12168 echo "configure:12169: checking for pthread_create in -lc_r" >&5
12169 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
12170 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12171 echo $ac_n "(cached) $ac_c" 1>&6
12172 else
12173 ac_save_LIBS="$LIBS"
12174 LIBS="-lc_r $LIBS"
12175 cat > conftest.$ac_ext <<EOF
12176 #line 12177 "configure"
12177 #include "confdefs.h"
12178 /* Override any gcc2 internal prototype to avoid an error. */
12179 /* We use char because int might match the return type of a gcc2
12180 builtin and then its argument prototype would still apply. */
12181 char pthread_create();
12182
12183 int main() {
12184 pthread_create()
12185 ; return 0; }
12186 EOF
12187 if { (eval echo configure:12188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12188 rm -rf conftest*
12189 eval "ac_cv_lib_$ac_lib_var=yes"
12190 else
12191 echo "configure: failed program was:" >&5
12192 cat conftest.$ac_ext >&5
12193 rm -rf conftest*
12194 eval "ac_cv_lib_$ac_lib_var=no"
12195 fi
12196 rm -f conftest*
12197 LIBS="$ac_save_LIBS"
12198
12199 fi
12200 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12201 echo "$ac_t""yes" 1>&6
12202
12203 THREADS_OBJ="threadpsx.lo"
12204 THREADS_LINK="c_r"
12205
12206 else
12207 echo "$ac_t""no" 1>&6
12208
12209 echo $ac_n "checking for pthread_create in -lcc_dynamic""... $ac_c" 1>&6
12210 echo "configure:12211: checking for pthread_create in -lcc_dynamic" >&5
12211 ac_lib_var=`echo cc_dynamic'_'pthread_create | sed 'y%./+-%__p_%'`
12212 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12213 echo $ac_n "(cached) $ac_c" 1>&6
12214 else
12215 ac_save_LIBS="$LIBS"
12216 LIBS="-lcc_dynamic $LIBS"
12217 cat > conftest.$ac_ext <<EOF
12218 #line 12219 "configure"
12219 #include "confdefs.h"
12220 /* Override any gcc2 internal prototype to avoid an error. */
12221 /* We use char because int might match the return type of a gcc2
12222 builtin and then its argument prototype would still apply. */
12223 char pthread_create();
12224
12225 int main() {
12226 pthread_create()
12227 ; return 0; }
12228 EOF
12229 if { (eval echo configure:12230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12230 rm -rf conftest*
12231 eval "ac_cv_lib_$ac_lib_var=yes"
12232 else
12233 echo "configure: failed program was:" >&5
12234 cat conftest.$ac_ext >&5
12235 rm -rf conftest*
12236 eval "ac_cv_lib_$ac_lib_var=no"
12237 fi
12238 rm -f conftest*
12239 LIBS="$ac_save_LIBS"
12240
12241 fi
12242 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12243 echo "$ac_t""yes" 1>&6
12244
12245 THREADS_OBJ="threadpsx.lo"
12246 THREADS_LINK="cc_dynamic"
12247
12248 else
12249 echo "$ac_t""no" 1>&6
12250
12251 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
12252 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
12253 echo "configure:12254: checking for sys/prctl.h" >&5
12254 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12255 echo $ac_n "(cached) $ac_c" 1>&6
12256 else
12257 cat > conftest.$ac_ext <<EOF
12258 #line 12259 "configure"
12259 #include "confdefs.h"
12260 #include <sys/prctl.h>
12261 EOF
12262 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12263 { (eval echo configure:12264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12264 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12265 if test -z "$ac_err"; then
12266 rm -rf conftest*
12267 eval "ac_cv_header_$ac_safe=yes"
12268 else
12269 echo "$ac_err" >&5
12270 echo "configure: failed program was:" >&5
12271 cat conftest.$ac_ext >&5
12272 rm -rf conftest*
12273 eval "ac_cv_header_$ac_safe=no"
12274 fi
12275 rm -f conftest*
12276 fi
12277 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12278 echo "$ac_t""yes" 1>&6
12279
12280 THREADS_OBJ="threadsgi.lo"
12281
12282 else
12283 echo "$ac_t""no" 1>&6
12284 fi
12285
12286
12287 fi
12288
12289
12290 fi
12291
12292
12293 fi
12294
12295
12296 if test -z "$THREADS_OBJ" ; then
12297 wxUSE_THREADS=no
12298 echo "configure: warning: No thread support on this system" 1>&2
12299 fi
12300 fi
12301
12302 if test "$wxUSE_THREADS" = "yes" ; then
12303 for ac_func in thr_setconcurrency
12304 do
12305 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12306 echo "configure:12307: checking for $ac_func" >&5
12307 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12308 echo $ac_n "(cached) $ac_c" 1>&6
12309 else
12310 cat > conftest.$ac_ext <<EOF
12311 #line 12312 "configure"
12312 #include "confdefs.h"
12313 /* System header to define __stub macros and hopefully few prototypes,
12314 which can conflict with char $ac_func(); below. */
12315 #include <assert.h>
12316 /* Override any gcc2 internal prototype to avoid an error. */
12317 /* We use char because int might match the return type of a gcc2
12318 builtin and then its argument prototype would still apply. */
12319 char $ac_func();
12320
12321 int main() {
12322
12323 /* The GNU C library defines this for functions which it implements
12324 to always fail with ENOSYS. Some functions are actually named
12325 something starting with __ and the normal name is an alias. */
12326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12327 choke me
12328 #else
12329 $ac_func();
12330 #endif
12331
12332 ; return 0; }
12333 EOF
12334 if { (eval echo configure:12335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12335 rm -rf conftest*
12336 eval "ac_cv_func_$ac_func=yes"
12337 else
12338 echo "configure: failed program was:" >&5
12339 cat conftest.$ac_ext >&5
12340 rm -rf conftest*
12341 eval "ac_cv_func_$ac_func=no"
12342 fi
12343 rm -f conftest*
12344 fi
12345
12346 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12347 echo "$ac_t""yes" 1>&6
12348 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12349 cat >> confdefs.h <<EOF
12350 #define $ac_tr_func 1
12351 EOF
12352
12353 else
12354 echo "$ac_t""no" 1>&6
12355 fi
12356 done
12357
12358
12359
12360 for ac_hdr in sched.h
12361 do
12362 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12363 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12364 echo "configure:12365: checking for $ac_hdr" >&5
12365 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12366 echo $ac_n "(cached) $ac_c" 1>&6
12367 else
12368 cat > conftest.$ac_ext <<EOF
12369 #line 12370 "configure"
12370 #include "confdefs.h"
12371 #include <$ac_hdr>
12372 EOF
12373 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12374 { (eval echo configure:12375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12375 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12376 if test -z "$ac_err"; then
12377 rm -rf conftest*
12378 eval "ac_cv_header_$ac_safe=yes"
12379 else
12380 echo "$ac_err" >&5
12381 echo "configure: failed program was:" >&5
12382 cat conftest.$ac_ext >&5
12383 rm -rf conftest*
12384 eval "ac_cv_header_$ac_safe=no"
12385 fi
12386 rm -f conftest*
12387 fi
12388 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12389 echo "$ac_t""yes" 1>&6
12390 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12391 cat >> confdefs.h <<EOF
12392 #define $ac_tr_hdr 1
12393 EOF
12394
12395 else
12396 echo "$ac_t""no" 1>&6
12397 fi
12398 done
12399
12400
12401 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
12402 echo "configure:12403: checking for sched_yield in -l$THREADS_LINK" >&5
12403 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
12404 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12405 echo $ac_n "(cached) $ac_c" 1>&6
12406 else
12407 ac_save_LIBS="$LIBS"
12408 LIBS="-l$THREADS_LINK $LIBS"
12409 cat > conftest.$ac_ext <<EOF
12410 #line 12411 "configure"
12411 #include "confdefs.h"
12412 /* Override any gcc2 internal prototype to avoid an error. */
12413 /* We use char because int might match the return type of a gcc2
12414 builtin and then its argument prototype would still apply. */
12415 char sched_yield();
12416
12417 int main() {
12418 sched_yield()
12419 ; return 0; }
12420 EOF
12421 if { (eval echo configure:12422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12422 rm -rf conftest*
12423 eval "ac_cv_lib_$ac_lib_var=yes"
12424 else
12425 echo "configure: failed program was:" >&5
12426 cat conftest.$ac_ext >&5
12427 rm -rf conftest*
12428 eval "ac_cv_lib_$ac_lib_var=no"
12429 fi
12430 rm -f conftest*
12431 LIBS="$ac_save_LIBS"
12432
12433 fi
12434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12435 echo "$ac_t""yes" 1>&6
12436 cat >> confdefs.h <<\EOF
12437 #define HAVE_SCHED_YIELD 1
12438 EOF
12439
12440 else
12441 echo "$ac_t""no" 1>&6
12442 echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
12443 echo "configure:12444: checking for sched_yield in -l"posix4"" >&5
12444 ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
12445 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12446 echo $ac_n "(cached) $ac_c" 1>&6
12447 else
12448 ac_save_LIBS="$LIBS"
12449 LIBS="-l"posix4" $LIBS"
12450 cat > conftest.$ac_ext <<EOF
12451 #line 12452 "configure"
12452 #include "confdefs.h"
12453 /* Override any gcc2 internal prototype to avoid an error. */
12454 /* We use char because int might match the return type of a gcc2
12455 builtin and then its argument prototype would still apply. */
12456 char sched_yield();
12457
12458 int main() {
12459 sched_yield()
12460 ; return 0; }
12461 EOF
12462 if { (eval echo configure:12463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12463 rm -rf conftest*
12464 eval "ac_cv_lib_$ac_lib_var=yes"
12465 else
12466 echo "configure: failed program was:" >&5
12467 cat conftest.$ac_ext >&5
12468 rm -rf conftest*
12469 eval "ac_cv_lib_$ac_lib_var=no"
12470 fi
12471 rm -f conftest*
12472 LIBS="$ac_save_LIBS"
12473
12474 fi
12475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12476 echo "$ac_t""yes" 1>&6
12477 cat >> confdefs.h <<\EOF
12478 #define HAVE_SCHED_YIELD 1
12479 EOF
12480 POSIX4_LINK="-lposix4"
12481 else
12482 echo "$ac_t""no" 1>&6
12483 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
12484
12485 fi
12486
12487
12488 fi
12489
12490
12491 HAVE_PRIOR_FUNCS=0
12492 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
12493 echo "configure:12494: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
12494 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
12495 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12496 echo $ac_n "(cached) $ac_c" 1>&6
12497 else
12498 ac_save_LIBS="$LIBS"
12499 LIBS="-l$THREADS_LINK $LIBS"
12500 cat > conftest.$ac_ext <<EOF
12501 #line 12502 "configure"
12502 #include "confdefs.h"
12503 /* Override any gcc2 internal prototype to avoid an error. */
12504 /* We use char because int might match the return type of a gcc2
12505 builtin and then its argument prototype would still apply. */
12506 char pthread_attr_getschedpolicy();
12507
12508 int main() {
12509 pthread_attr_getschedpolicy()
12510 ; return 0; }
12511 EOF
12512 if { (eval echo configure:12513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12513 rm -rf conftest*
12514 eval "ac_cv_lib_$ac_lib_var=yes"
12515 else
12516 echo "configure: failed program was:" >&5
12517 cat conftest.$ac_ext >&5
12518 rm -rf conftest*
12519 eval "ac_cv_lib_$ac_lib_var=no"
12520 fi
12521 rm -f conftest*
12522 LIBS="$ac_save_LIBS"
12523
12524 fi
12525 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12526 echo "$ac_t""yes" 1>&6
12527 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
12528 echo "configure:12529: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
12529 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
12530 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12531 echo $ac_n "(cached) $ac_c" 1>&6
12532 else
12533 ac_save_LIBS="$LIBS"
12534 LIBS="-l$THREADS_LINK $LIBS"
12535 cat > conftest.$ac_ext <<EOF
12536 #line 12537 "configure"
12537 #include "confdefs.h"
12538 /* Override any gcc2 internal prototype to avoid an error. */
12539 /* We use char because int might match the return type of a gcc2
12540 builtin and then its argument prototype would still apply. */
12541 char pthread_attr_setschedparam();
12542
12543 int main() {
12544 pthread_attr_setschedparam()
12545 ; return 0; }
12546 EOF
12547 if { (eval echo configure:12548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12548 rm -rf conftest*
12549 eval "ac_cv_lib_$ac_lib_var=yes"
12550 else
12551 echo "configure: failed program was:" >&5
12552 cat conftest.$ac_ext >&5
12553 rm -rf conftest*
12554 eval "ac_cv_lib_$ac_lib_var=no"
12555 fi
12556 rm -f conftest*
12557 LIBS="$ac_save_LIBS"
12558
12559 fi
12560 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12561 echo "$ac_t""yes" 1>&6
12562 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
12563 echo "configure:12564: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
12564 ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
12565 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12566 echo $ac_n "(cached) $ac_c" 1>&6
12567 else
12568 ac_save_LIBS="$LIBS"
12569 LIBS="-l$THREADS_LINK $LIBS"
12570 cat > conftest.$ac_ext <<EOF
12571 #line 12572 "configure"
12572 #include "confdefs.h"
12573 /* Override any gcc2 internal prototype to avoid an error. */
12574 /* We use char because int might match the return type of a gcc2
12575 builtin and then its argument prototype would still apply. */
12576 char sched_get_priority_max();
12577
12578 int main() {
12579 sched_get_priority_max()
12580 ; return 0; }
12581 EOF
12582 if { (eval echo configure:12583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12583 rm -rf conftest*
12584 eval "ac_cv_lib_$ac_lib_var=yes"
12585 else
12586 echo "configure: failed program was:" >&5
12587 cat conftest.$ac_ext >&5
12588 rm -rf conftest*
12589 eval "ac_cv_lib_$ac_lib_var=no"
12590 fi
12591 rm -f conftest*
12592 LIBS="$ac_save_LIBS"
12593
12594 fi
12595 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12596 echo "$ac_t""yes" 1>&6
12597 HAVE_PRIOR_FUNCS=1
12598 else
12599 echo "$ac_t""no" 1>&6
12600 echo $ac_n "checking for sched_get_priority_max in -l"posix4"""... $ac_c" 1>&6
12601 echo "configure:12602: checking for sched_get_priority_max in -l"posix4"" >&5
12602 ac_lib_var=`echo "posix4"'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
12603 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12604 echo $ac_n "(cached) $ac_c" 1>&6
12605 else
12606 ac_save_LIBS="$LIBS"
12607 LIBS="-l"posix4" $LIBS"
12608 cat > conftest.$ac_ext <<EOF
12609 #line 12610 "configure"
12610 #include "confdefs.h"
12611 /* Override any gcc2 internal prototype to avoid an error. */
12612 /* We use char because int might match the return type of a gcc2
12613 builtin and then its argument prototype would still apply. */
12614 char sched_get_priority_max();
12615
12616 int main() {
12617 sched_get_priority_max()
12618 ; return 0; }
12619 EOF
12620 if { (eval echo configure:12621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12621 rm -rf conftest*
12622 eval "ac_cv_lib_$ac_lib_var=yes"
12623 else
12624 echo "configure: failed program was:" >&5
12625 cat conftest.$ac_ext >&5
12626 rm -rf conftest*
12627 eval "ac_cv_lib_$ac_lib_var=no"
12628 fi
12629 rm -f conftest*
12630 LIBS="$ac_save_LIBS"
12631
12632 fi
12633 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12634 echo "$ac_t""yes" 1>&6
12635
12636 HAVE_PRIOR_FUNCS=1
12637 POSIX4_LINK="-lposix4"
12638
12639 else
12640 echo "$ac_t""no" 1>&6
12641 fi
12642
12643
12644 fi
12645
12646
12647 else
12648 echo "$ac_t""no" 1>&6
12649 fi
12650
12651
12652 else
12653 echo "$ac_t""no" 1>&6
12654 fi
12655
12656
12657 if test "$HAVE_PRIOR_FUNCS" = 1; then
12658 cat >> confdefs.h <<\EOF
12659 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
12660 EOF
12661
12662 else
12663 echo "configure: warning: Setting thread priority will not work" 1>&2
12664 fi
12665
12666 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
12667 echo "configure:12668: checking for pthread_cancel in -l$THREADS_LINK" >&5
12668 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
12669 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12670 echo $ac_n "(cached) $ac_c" 1>&6
12671 else
12672 ac_save_LIBS="$LIBS"
12673 LIBS="-l$THREADS_LINK $LIBS"
12674 cat > conftest.$ac_ext <<EOF
12675 #line 12676 "configure"
12676 #include "confdefs.h"
12677 /* Override any gcc2 internal prototype to avoid an error. */
12678 /* We use char because int might match the return type of a gcc2
12679 builtin and then its argument prototype would still apply. */
12680 char pthread_cancel();
12681
12682 int main() {
12683 pthread_cancel()
12684 ; return 0; }
12685 EOF
12686 if { (eval echo configure:12687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12687 rm -rf conftest*
12688 eval "ac_cv_lib_$ac_lib_var=yes"
12689 else
12690 echo "configure: failed program was:" >&5
12691 cat conftest.$ac_ext >&5
12692 rm -rf conftest*
12693 eval "ac_cv_lib_$ac_lib_var=no"
12694 fi
12695 rm -f conftest*
12696 LIBS="$ac_save_LIBS"
12697
12698 fi
12699 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12700 echo "$ac_t""yes" 1>&6
12701 cat >> confdefs.h <<\EOF
12702 #define HAVE_PTHREAD_CANCEL 1
12703 EOF
12704
12705 else
12706 echo "$ac_t""no" 1>&6
12707 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
12708 fi
12709
12710
12711 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
12712 echo "configure:12713: checking for pthread_cleanup_push/pop" >&5
12713 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
12714 echo $ac_n "(cached) $ac_c" 1>&6
12715 else
12716
12717 cat > conftest.$ac_ext <<EOF
12718 #line 12719 "configure"
12719 #include "confdefs.h"
12720 #include <pthread.h>
12721 int main() {
12722
12723 pthread_cleanup_push(NULL, NULL);
12724 pthread_cleanup_pop(0);
12725
12726 ; return 0; }
12727 EOF
12728 if { (eval echo configure:12729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12729 rm -rf conftest*
12730
12731 wx_cv_func_pthread_cleanup_push=yes
12732
12733 else
12734 echo "configure: failed program was:" >&5
12735 cat conftest.$ac_ext >&5
12736 rm -rf conftest*
12737
12738 wx_cv_func_pthread_cleanup_push=no
12739
12740 fi
12741 rm -f conftest*
12742
12743 fi
12744
12745 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
12746
12747 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
12748 cat >> confdefs.h <<\EOF
12749 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
12750 EOF
12751
12752 fi
12753
12754
12755 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
12756 echo "configure:12757: checking for pthread_mutexattr_t" >&5
12757 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
12758 echo $ac_n "(cached) $ac_c" 1>&6
12759 else
12760
12761 cat > conftest.$ac_ext <<EOF
12762 #line 12763 "configure"
12763 #include "confdefs.h"
12764 #include <pthread.h>
12765 int main() {
12766
12767 pthread_mutexattr_t attr;
12768 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
12769
12770 ; return 0; }
12771 EOF
12772 if { (eval echo configure:12773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12773 rm -rf conftest*
12774
12775 wx_cv_type_pthread_mutexattr_t=yes
12776
12777 else
12778 echo "configure: failed program was:" >&5
12779 cat conftest.$ac_ext >&5
12780 rm -rf conftest*
12781
12782 wx_cv_type_pthread_mutexattr_t=no
12783
12784
12785 fi
12786 rm -f conftest*
12787
12788 fi
12789
12790 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
12791
12792 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
12793 cat >> confdefs.h <<\EOF
12794 #define HAVE_PTHREAD_MUTEXATTR_T 1
12795 EOF
12796
12797 else
12798 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
12799 echo "configure:12800: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
12800 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
12801 echo $ac_n "(cached) $ac_c" 1>&6
12802 else
12803
12804 cat > conftest.$ac_ext <<EOF
12805 #line 12806 "configure"
12806 #include "confdefs.h"
12807 #include <pthread.h>
12808 int main() {
12809
12810 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
12811
12812 ; return 0; }
12813 EOF
12814 if { (eval echo configure:12815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12815 rm -rf conftest*
12816
12817 wx_cv_type_pthread_rec_mutex_init=yes
12818
12819 else
12820 echo "configure: failed program was:" >&5
12821 cat conftest.$ac_ext >&5
12822 rm -rf conftest*
12823
12824 wx_cv_type_pthread_rec_mutex_init=no
12825
12826
12827 fi
12828 rm -f conftest*
12829
12830 fi
12831
12832 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
12833 if test "$wx_cv_type_pthread_rec_mutex_init"="yes"; then
12834 cat >> confdefs.h <<\EOF
12835 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
12836 EOF
12837
12838 else
12839 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
12840 fi
12841 fi
12842
12843 THREADS_LINK="-l$THREADS_LINK"
12844
12845 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
12846 CFLAGS="${CFLAGS} -mt"
12847 CXXFLAGS="${CXXFLAGS} -mt"
12848 LDFLAGS="${LDFLAGS} -mt"
12849 fi
12850 fi
12851
12852 fi
12853
12854 if test "$wxUSE_THREADS" = "yes"; then
12855 cat >> confdefs.h <<\EOF
12856 #define wxUSE_THREADS 1
12857 EOF
12858
12859
12860 if test "$wxUSE_MAC" = "0"; then
12861 CFLAGS="${CFLAGS} -D_REENTRANT"
12862 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
12863 fi
12864
12865 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
12866 else
12867 if test "$ac_cv_func_strtok_r" = "yes"; then
12868 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
12869 echo "configure:12870: checking if -D_REENTRANT is needed" >&5
12870 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
12871 CFLAGS="${CFLAGS} -D_REENTRANT"
12872 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
12873 echo "$ac_t""yes" 1>&6
12874 else
12875 echo "$ac_t""no" 1>&6
12876 fi
12877 fi
12878 fi
12879
12880 if test "$WXGTK20" = 1 ; then
12881 cat >> confdefs.h <<EOF
12882 #define __WXGTK20__ $WXGTK20
12883 EOF
12884
12885 WXGTK12=1
12886 fi
12887
12888 if test "$WXGTK12" = 1 ; then
12889 cat >> confdefs.h <<EOF
12890 #define __WXGTK12__ $WXGTK12
12891 EOF
12892
12893 fi
12894
12895 if test "$WXGTK127" = 1 ; then
12896 cat >> confdefs.h <<EOF
12897 #define __WXGTK127__ $WXGTK127
12898 EOF
12899
12900 fi
12901
12902 if test "$WXWINE" = 1 ; then
12903 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
12904 fi
12905
12906 if test "$wxUSE_MAC" = 1 ; then
12907 TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__POWERPC__ -DTARGET_CARBON"
12908 CFLAGS="${CFLAGS} -fno-common -fpascal-strings"
12909 CPPFLAGS="${CPPFLAGS} -fno-common -fpascal-strings"
12910 fi
12911
12912 if test "$wxUSE_CYGWIN" = 1 ; then
12913 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
12914 fi
12915
12916 WXDEBUG=
12917
12918 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
12919 WXDEBUG="-g"
12920 wxUSE_OPTIMISE=no
12921 fi
12922
12923 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
12924 wxUSE_DEBUG_INFO=yes
12925 WXDEBUG="-ggdb"
12926 fi
12927
12928 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
12929 cat >> confdefs.h <<\EOF
12930 #define WXDEBUG 1
12931 EOF
12932
12933 WXDEBUG_DEFINE="-D__WXDEBUG__"
12934 else
12935 if test "$wxUSE_GTK" = 1 ; then
12936 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
12937 fi
12938 fi
12939
12940 if test "$wxUSE_MEM_TRACING" = "yes" ; then
12941 cat >> confdefs.h <<\EOF
12942 #define wxUSE_MEMORY_TRACING 1
12943 EOF
12944
12945 cat >> confdefs.h <<\EOF
12946 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
12947 EOF
12948
12949 cat >> confdefs.h <<\EOF
12950 #define wxUSE_DEBUG_NEW_ALWAYS 1
12951 EOF
12952
12953 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
12954 fi
12955
12956 if test "$wxUSE_DMALLOC" = "yes" ; then
12957 DMALLOC_LINK="-ldmalloc"
12958 fi
12959
12960 PROFILE=
12961 if test "$wxUSE_PROFILE" = "yes" ; then
12962 PROFILE="-pg"
12963 fi
12964
12965 DEP_INFO_FLAGS=
12966 CODE_GEN_FLAGS=
12967 CODE_GEN_FLAGS_CXX=
12968 if test "$GCC" = yes ; then
12969 if test "$wxUSE_NO_RTTI" = "yes" ; then
12970 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti"
12971 fi
12972 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
12973 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions"
12974 fi
12975 if test "$wxUSE_PERMISSIVE" = "yes" ; then
12976 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
12977 fi
12978 if test "$wxUSE_NO_DEPS" = "no" ; then
12979 DEP_INFO_FLAGS="-MMD"
12980 fi
12981 fi
12982
12983
12984 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
12985 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
12986 if test "$wxUSE_OPTIMISE" = "no" ; then
12987 OPTIMISE=
12988 else
12989 if test "$GCC" = yes ; then
12990 OPTIMISE="-O2"
12991 case "${host}" in
12992 i586-*-*|i686-*-* )
12993 OPTIMISE="${OPTIMISE} "
12994 ;;
12995 esac
12996 else
12997 OPTIMISE="-O"
12998 fi
12999 fi
13000
13001
13002 ZLIB_INCLUDE=
13003 if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
13004 cat >> confdefs.h <<\EOF
13005 #define wxUSE_ZLIB 1
13006 EOF
13007
13008 if test "$wxUSE_ZLIB" = "yes" ; then
13009 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
13010 else
13011 ZLIB_LINK=
13012 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
13013 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
13014 echo "configure:13015: checking for zlib.h" >&5
13015 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13016 echo $ac_n "(cached) $ac_c" 1>&6
13017 else
13018 cat > conftest.$ac_ext <<EOF
13019 #line 13020 "configure"
13020 #include "confdefs.h"
13021 #include <zlib.h>
13022 EOF
13023 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13024 { (eval echo configure:13025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13025 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13026 if test -z "$ac_err"; then
13027 rm -rf conftest*
13028 eval "ac_cv_header_$ac_safe=yes"
13029 else
13030 echo "$ac_err" >&5
13031 echo "configure: failed program was:" >&5
13032 cat conftest.$ac_ext >&5
13033 rm -rf conftest*
13034 eval "ac_cv_header_$ac_safe=no"
13035 fi
13036 rm -f conftest*
13037 fi
13038 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13039 echo "$ac_t""yes" 1>&6
13040 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
13041 echo "configure:13042: checking for deflate in -lz" >&5
13042 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
13043 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13044 echo $ac_n "(cached) $ac_c" 1>&6
13045 else
13046 ac_save_LIBS="$LIBS"
13047 LIBS="-lz $LIBS"
13048 cat > conftest.$ac_ext <<EOF
13049 #line 13050 "configure"
13050 #include "confdefs.h"
13051 /* Override any gcc2 internal prototype to avoid an error. */
13052 /* We use char because int might match the return type of a gcc2
13053 builtin and then its argument prototype would still apply. */
13054 char deflate();
13055
13056 int main() {
13057 deflate()
13058 ; return 0; }
13059 EOF
13060 if { (eval echo configure:13061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13061 rm -rf conftest*
13062 eval "ac_cv_lib_$ac_lib_var=yes"
13063 else
13064 echo "configure: failed program was:" >&5
13065 cat conftest.$ac_ext >&5
13066 rm -rf conftest*
13067 eval "ac_cv_lib_$ac_lib_var=no"
13068 fi
13069 rm -f conftest*
13070 LIBS="$ac_save_LIBS"
13071
13072 fi
13073 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13074 echo "$ac_t""yes" 1>&6
13075 ZLIB_LINK="-lz"
13076 else
13077 echo "$ac_t""no" 1>&6
13078 fi
13079
13080 else
13081 echo "$ac_t""no" 1>&6
13082 fi
13083
13084 if test "x$ZLIB_LINK" = "x" ; then
13085 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
13086 fi
13087 fi
13088 fi
13089
13090 PNG_INCLUDE=
13091 if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
13092 cat >> confdefs.h <<\EOF
13093 #define wxUSE_LIBPNG 1
13094 EOF
13095
13096 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
13097 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
13098 wxUSE_LIBPNG=yes
13099 fi
13100
13101 if test "$wxUSE_LIBPNG" = "yes" ; then
13102 PNG_INCLUDE="-I\${top_srcdir}/src/png"
13103 else
13104 PNG_LINK=
13105 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
13106 echo $ac_n "checking for png.h""... $ac_c" 1>&6
13107 echo "configure:13108: checking for png.h" >&5
13108 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13109 echo $ac_n "(cached) $ac_c" 1>&6
13110 else
13111 cat > conftest.$ac_ext <<EOF
13112 #line 13113 "configure"
13113 #include "confdefs.h"
13114 #include <png.h>
13115 EOF
13116 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13117 { (eval echo configure:13118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13118 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13119 if test -z "$ac_err"; then
13120 rm -rf conftest*
13121 eval "ac_cv_header_$ac_safe=yes"
13122 else
13123 echo "$ac_err" >&5
13124 echo "configure: failed program was:" >&5
13125 cat conftest.$ac_ext >&5
13126 rm -rf conftest*
13127 eval "ac_cv_header_$ac_safe=no"
13128 fi
13129 rm -f conftest*
13130 fi
13131 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13132 echo "$ac_t""yes" 1>&6
13133 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
13134 echo "configure:13135: checking for png_check_sig in -lpng" >&5
13135 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
13136 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13137 echo $ac_n "(cached) $ac_c" 1>&6
13138 else
13139 ac_save_LIBS="$LIBS"
13140 LIBS="-lpng -lz -lm $LIBS"
13141 cat > conftest.$ac_ext <<EOF
13142 #line 13143 "configure"
13143 #include "confdefs.h"
13144 /* Override any gcc2 internal prototype to avoid an error. */
13145 /* We use char because int might match the return type of a gcc2
13146 builtin and then its argument prototype would still apply. */
13147 char png_check_sig();
13148
13149 int main() {
13150 png_check_sig()
13151 ; return 0; }
13152 EOF
13153 if { (eval echo configure:13154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13154 rm -rf conftest*
13155 eval "ac_cv_lib_$ac_lib_var=yes"
13156 else
13157 echo "configure: failed program was:" >&5
13158 cat conftest.$ac_ext >&5
13159 rm -rf conftest*
13160 eval "ac_cv_lib_$ac_lib_var=no"
13161 fi
13162 rm -f conftest*
13163 LIBS="$ac_save_LIBS"
13164
13165 fi
13166 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13167 echo "$ac_t""yes" 1>&6
13168 PNG_LINK="-lpng"
13169 else
13170 echo "$ac_t""no" 1>&6
13171 fi
13172
13173
13174 else
13175 echo "$ac_t""no" 1>&6
13176 fi
13177
13178 if test "x$PNG_LINK" = "x" ; then
13179 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
13180 fi
13181 fi
13182
13183 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
13184 fi
13185
13186 JPEG_INCLUDE=
13187 if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
13188 cat >> confdefs.h <<\EOF
13189 #define wxUSE_LIBJPEG 1
13190 EOF
13191
13192 if test "$wxUSE_LIBJPEG" = "yes" ; then
13193 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
13194 else
13195 JPEG_LINK=
13196 ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
13197 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
13198 echo "configure:13199: checking for jpeglib.h" >&5
13199 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13200 echo $ac_n "(cached) $ac_c" 1>&6
13201 else
13202 cat > conftest.$ac_ext <<EOF
13203 #line 13204 "configure"
13204 #include "confdefs.h"
13205 #include <jpeglib.h>
13206 EOF
13207 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13208 { (eval echo configure:13209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13209 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13210 if test -z "$ac_err"; then
13211 rm -rf conftest*
13212 eval "ac_cv_header_$ac_safe=yes"
13213 else
13214 echo "$ac_err" >&5
13215 echo "configure: failed program was:" >&5
13216 cat conftest.$ac_ext >&5
13217 rm -rf conftest*
13218 eval "ac_cv_header_$ac_safe=no"
13219 fi
13220 rm -f conftest*
13221 fi
13222 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13223 echo "$ac_t""yes" 1>&6
13224 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
13225 echo "configure:13226: checking for jpeg_read_header in -ljpeg" >&5
13226 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
13227 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13228 echo $ac_n "(cached) $ac_c" 1>&6
13229 else
13230 ac_save_LIBS="$LIBS"
13231 LIBS="-ljpeg $LIBS"
13232 cat > conftest.$ac_ext <<EOF
13233 #line 13234 "configure"
13234 #include "confdefs.h"
13235 /* Override any gcc2 internal prototype to avoid an error. */
13236 /* We use char because int might match the return type of a gcc2
13237 builtin and then its argument prototype would still apply. */
13238 char jpeg_read_header();
13239
13240 int main() {
13241 jpeg_read_header()
13242 ; return 0; }
13243 EOF
13244 if { (eval echo configure:13245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13245 rm -rf conftest*
13246 eval "ac_cv_lib_$ac_lib_var=yes"
13247 else
13248 echo "configure: failed program was:" >&5
13249 cat conftest.$ac_ext >&5
13250 rm -rf conftest*
13251 eval "ac_cv_lib_$ac_lib_var=no"
13252 fi
13253 rm -f conftest*
13254 LIBS="$ac_save_LIBS"
13255
13256 fi
13257 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13258 echo "$ac_t""yes" 1>&6
13259 JPEG_LINK="-ljpeg"
13260 else
13261 echo "$ac_t""no" 1>&6
13262 fi
13263
13264 else
13265 echo "$ac_t""no" 1>&6
13266 fi
13267
13268 if test "x$JPEG_LINK" = "x" ; then
13269 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
13270 fi
13271 fi
13272 fi
13273
13274 TIFF_INCLUDE=
13275 if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
13276 cat >> confdefs.h <<\EOF
13277 #define wxUSE_LIBTIFF 1
13278 EOF
13279
13280 if test "$wxUSE_LIBTIFF" = "yes" ; then
13281 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
13282 else
13283 TIFF_LINK=
13284 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
13285 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
13286 echo "configure:13287: checking for tiffio.h" >&5
13287 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13288 echo $ac_n "(cached) $ac_c" 1>&6
13289 else
13290 cat > conftest.$ac_ext <<EOF
13291 #line 13292 "configure"
13292 #include "confdefs.h"
13293 #include <tiffio.h>
13294 EOF
13295 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13296 { (eval echo configure:13297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13297 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13298 if test -z "$ac_err"; then
13299 rm -rf conftest*
13300 eval "ac_cv_header_$ac_safe=yes"
13301 else
13302 echo "$ac_err" >&5
13303 echo "configure: failed program was:" >&5
13304 cat conftest.$ac_ext >&5
13305 rm -rf conftest*
13306 eval "ac_cv_header_$ac_safe=no"
13307 fi
13308 rm -f conftest*
13309 fi
13310 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13311 echo "$ac_t""yes" 1>&6
13312 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
13313 echo "configure:13314: checking for TIFFError in -ltiff" >&5
13314 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
13315 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13316 echo $ac_n "(cached) $ac_c" 1>&6
13317 else
13318 ac_save_LIBS="$LIBS"
13319 LIBS="-ltiff -lm $LIBS"
13320 cat > conftest.$ac_ext <<EOF
13321 #line 13322 "configure"
13322 #include "confdefs.h"
13323 /* Override any gcc2 internal prototype to avoid an error. */
13324 /* We use char because int might match the return type of a gcc2
13325 builtin and then its argument prototype would still apply. */
13326 char TIFFError();
13327
13328 int main() {
13329 TIFFError()
13330 ; return 0; }
13331 EOF
13332 if { (eval echo configure:13333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13333 rm -rf conftest*
13334 eval "ac_cv_lib_$ac_lib_var=yes"
13335 else
13336 echo "configure: failed program was:" >&5
13337 cat conftest.$ac_ext >&5
13338 rm -rf conftest*
13339 eval "ac_cv_lib_$ac_lib_var=no"
13340 fi
13341 rm -f conftest*
13342 LIBS="$ac_save_LIBS"
13343
13344 fi
13345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13346 echo "$ac_t""yes" 1>&6
13347 TIFF_LINK="-ltiff"
13348 else
13349 echo "$ac_t""no" 1>&6
13350 fi
13351
13352 else
13353 echo "$ac_t""no" 1>&6
13354 fi
13355
13356 if test "x$TIFF_LINK" = "x" ; then
13357 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
13358 fi
13359 fi
13360 fi
13361
13362 FREETYPE_INCLUDE=
13363 if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
13364 cat >> confdefs.h <<\EOF
13365 #define wxUSE_FREETYPE 1
13366 EOF
13367
13368 if test "$wxUSE_FREETYPE" = "yes" ; then
13369 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
13370 else
13371 FREETYPE_LINK=
13372 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
13373 echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
13374 echo "configure:13375: checking for freetype.h" >&5
13375 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13376 echo $ac_n "(cached) $ac_c" 1>&6
13377 else
13378 cat > conftest.$ac_ext <<EOF
13379 #line 13380 "configure"
13380 #include "confdefs.h"
13381 #include <freetype.h>
13382 EOF
13383 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13384 { (eval echo configure:13385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13385 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13386 if test -z "$ac_err"; then
13387 rm -rf conftest*
13388 eval "ac_cv_header_$ac_safe=yes"
13389 else
13390 echo "$ac_err" >&5
13391 echo "configure: failed program was:" >&5
13392 cat conftest.$ac_ext >&5
13393 rm -rf conftest*
13394 eval "ac_cv_header_$ac_safe=no"
13395 fi
13396 rm -f conftest*
13397 fi
13398 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13399 echo "$ac_t""yes" 1>&6
13400 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
13401 echo "configure:13402: checking for FT_Render_Glyph in -lfreetype" >&5
13402 ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
13403 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13404 echo $ac_n "(cached) $ac_c" 1>&6
13405 else
13406 ac_save_LIBS="$LIBS"
13407 LIBS="-lfreetype -lm $LIBS"
13408 cat > conftest.$ac_ext <<EOF
13409 #line 13410 "configure"
13410 #include "confdefs.h"
13411 /* Override any gcc2 internal prototype to avoid an error. */
13412 /* We use char because int might match the return type of a gcc2
13413 builtin and then its argument prototype would still apply. */
13414 char FT_Render_Glyph();
13415
13416 int main() {
13417 FT_Render_Glyph()
13418 ; return 0; }
13419 EOF
13420 if { (eval echo configure:13421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13421 rm -rf conftest*
13422 eval "ac_cv_lib_$ac_lib_var=yes"
13423 else
13424 echo "configure: failed program was:" >&5
13425 cat conftest.$ac_ext >&5
13426 rm -rf conftest*
13427 eval "ac_cv_lib_$ac_lib_var=no"
13428 fi
13429 rm -f conftest*
13430 LIBS="$ac_save_LIBS"
13431
13432 fi
13433 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13434 echo "$ac_t""yes" 1>&6
13435 FREETYPE_LINK="-lfreetype"
13436 else
13437 echo "$ac_t""no" 1>&6
13438 fi
13439
13440
13441 else
13442 echo "$ac_t""no" 1>&6
13443 fi
13444
13445 if test "x$FREETYPE_LINK" = "x" ; then
13446 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
13447 fi
13448 fi
13449 fi
13450
13451 if test "$wxUSE_OPENGL" = "yes"; then
13452 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
13453 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
13454 echo "configure:13455: checking for GL/gl.h" >&5
13455 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13456 echo $ac_n "(cached) $ac_c" 1>&6
13457 else
13458 cat > conftest.$ac_ext <<EOF
13459 #line 13460 "configure"
13460 #include "confdefs.h"
13461 #include <GL/gl.h>
13462 EOF
13463 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13464 { (eval echo configure:13465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13465 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13466 if test -z "$ac_err"; then
13467 rm -rf conftest*
13468 eval "ac_cv_header_$ac_safe=yes"
13469 else
13470 echo "$ac_err" >&5
13471 echo "configure: failed program was:" >&5
13472 cat conftest.$ac_ext >&5
13473 rm -rf conftest*
13474 eval "ac_cv_header_$ac_safe=no"
13475 fi
13476 rm -f conftest*
13477 fi
13478 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13479 echo "$ac_t""yes" 1>&6
13480
13481 cat >> confdefs.h <<\EOF
13482 #define wxUSE_OPENGL 1
13483 EOF
13484
13485 cat >> confdefs.h <<\EOF
13486 #define wxUSE_GLCANVAS 1
13487 EOF
13488
13489 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
13490 echo "configure:13491: checking for glFlush in -lGL" >&5
13491 ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
13492 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13493 echo $ac_n "(cached) $ac_c" 1>&6
13494 else
13495 ac_save_LIBS="$LIBS"
13496 LIBS="-lGL $LIBS"
13497 cat > conftest.$ac_ext <<EOF
13498 #line 13499 "configure"
13499 #include "confdefs.h"
13500 /* Override any gcc2 internal prototype to avoid an error. */
13501 /* We use char because int might match the return type of a gcc2
13502 builtin and then its argument prototype would still apply. */
13503 char glFlush();
13504
13505 int main() {
13506 glFlush()
13507 ; return 0; }
13508 EOF
13509 if { (eval echo configure:13510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13510 rm -rf conftest*
13511 eval "ac_cv_lib_$ac_lib_var=yes"
13512 else
13513 echo "configure: failed program was:" >&5
13514 cat conftest.$ac_ext >&5
13515 rm -rf conftest*
13516 eval "ac_cv_lib_$ac_lib_var=no"
13517 fi
13518 rm -f conftest*
13519 LIBS="$ac_save_LIBS"
13520
13521 fi
13522 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13523 echo "$ac_t""yes" 1>&6
13524
13525 OPENGL_LINK="-lGL -lGLU"
13526
13527 else
13528 echo "$ac_t""no" 1>&6
13529
13530 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
13531 echo "configure:13532: checking for glFlush in -lMesaGL" >&5
13532 ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
13533 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13534 echo $ac_n "(cached) $ac_c" 1>&6
13535 else
13536 ac_save_LIBS="$LIBS"
13537 LIBS="-lMesaGL $LIBS"
13538 cat > conftest.$ac_ext <<EOF
13539 #line 13540 "configure"
13540 #include "confdefs.h"
13541 /* Override any gcc2 internal prototype to avoid an error. */
13542 /* We use char because int might match the return type of a gcc2
13543 builtin and then its argument prototype would still apply. */
13544 char glFlush();
13545
13546 int main() {
13547 glFlush()
13548 ; return 0; }
13549 EOF
13550 if { (eval echo configure:13551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13551 rm -rf conftest*
13552 eval "ac_cv_lib_$ac_lib_var=yes"
13553 else
13554 echo "configure: failed program was:" >&5
13555 cat conftest.$ac_ext >&5
13556 rm -rf conftest*
13557 eval "ac_cv_lib_$ac_lib_var=no"
13558 fi
13559 rm -f conftest*
13560 LIBS="$ac_save_LIBS"
13561
13562 fi
13563 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13564 echo "$ac_t""yes" 1>&6
13565
13566 OPENGL_LINK="-lMesaGL -lMesaGLU"
13567
13568 else
13569 echo "$ac_t""no" 1>&6
13570 fi
13571
13572
13573 fi
13574
13575
13576 else
13577 echo "$ac_t""no" 1>&6
13578 wxUSE_OPENGL=0
13579 fi
13580
13581 fi
13582
13583
13584 if test "$wxUSE_GUI" = "yes"; then
13585 cat >> confdefs.h <<\EOF
13586 #define wxUSE_GUI 1
13587 EOF
13588
13589
13590 else
13591 cat >> confdefs.h <<\EOF
13592 #define wxUSE_NOGUI 1
13593 EOF
13594
13595 fi
13596
13597
13598 if test "$wxUSE_UNIX" = "yes"; then
13599 cat >> confdefs.h <<\EOF
13600 #define wxUSE_UNIX 1
13601 EOF
13602
13603 fi
13604
13605
13606 if test "$wxUSE_APPLE_IEEE" = "yes"; then
13607 cat >> confdefs.h <<\EOF
13608 #define wxUSE_APPLE_IEEE 1
13609 EOF
13610
13611 fi
13612
13613 if test "$wxUSE_WAVE" = "yes"; then
13614 cat >> confdefs.h <<\EOF
13615 #define wxUSE_WAVE 1
13616 EOF
13617
13618 fi
13619
13620 if test "$wxUSE_FILE" = "yes"; then
13621 cat >> confdefs.h <<\EOF
13622 #define wxUSE_FILE 1
13623 EOF
13624
13625 fi
13626
13627 if test "$wxUSE_FILESYSTEM" = "yes"; then
13628 cat >> confdefs.h <<\EOF
13629 #define wxUSE_FILESYSTEM 1
13630 EOF
13631
13632 fi
13633
13634 if test "$wxUSE_FS_INET" = "yes"; then
13635 cat >> confdefs.h <<\EOF
13636 #define wxUSE_FS_INET 1
13637 EOF
13638
13639 fi
13640
13641 if test "$wxUSE_FS_ZIP" = "yes"; then
13642 cat >> confdefs.h <<\EOF
13643 #define wxUSE_FS_ZIP 1
13644 EOF
13645
13646 fi
13647
13648 if test "$wxUSE_ZIPSTREAM" = "yes"; then
13649 cat >> confdefs.h <<\EOF
13650 #define wxUSE_ZIPSTREAM 1
13651 EOF
13652
13653 fi
13654
13655 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
13656 cat >> confdefs.h <<\EOF
13657 #define wxUSE_ON_FATAL_EXCEPTION 1
13658 EOF
13659
13660 fi
13661
13662 if test "$wxUSE_BUSYINFO" = "yes"; then
13663 cat >> confdefs.h <<\EOF
13664 #define wxUSE_BUSYINFO 1
13665 EOF
13666
13667 fi
13668
13669 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
13670 cat >> confdefs.h <<\EOF
13671 #define wxUSE_STD_IOSTREAM 1
13672 EOF
13673
13674 fi
13675
13676 if test "$wxUSE_TEXTFILE" = "yes"; then
13677 if test "$wxUSE_FILE" != "yes"; then
13678 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
13679 else
13680 cat >> confdefs.h <<\EOF
13681 #define wxUSE_TEXTFILE 1
13682 EOF
13683
13684 fi
13685 fi
13686
13687 if test "$wxUSE_CONFIG" = "yes" ; then
13688 if test "$wxUSE_TEXTFILE" != "yes"; then
13689 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
13690 else
13691 cat >> confdefs.h <<\EOF
13692 #define wxUSE_CONFIG 1
13693 EOF
13694
13695 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
13696 fi
13697 fi
13698
13699 if test "$wxUSE_INTL" = "yes" ; then
13700 if test "$wxUSE_FILE" != "yes"; then
13701 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
13702 else
13703 cat >> confdefs.h <<\EOF
13704 #define wxUSE_INTL 1
13705 EOF
13706
13707 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
13708 GUIDIST="$GUIDIST INTL_DIST"
13709 fi
13710 fi
13711
13712 if test "$wxUSE_LOG" = "yes"; then
13713 cat >> confdefs.h <<\EOF
13714 #define wxUSE_LOG 1
13715 EOF
13716
13717 fi
13718
13719 if test "$wxUSE_LONGLONG" = "yes"; then
13720 cat >> confdefs.h <<\EOF
13721 #define wxUSE_LONGLONG 1
13722 EOF
13723
13724 fi
13725
13726 if test "$wxUSE_GEOMETRY" = "yes"; then
13727 cat >> confdefs.h <<\EOF
13728 #define wxUSE_GEOMETRY 1
13729 EOF
13730
13731 fi
13732
13733 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
13734 cat >> confdefs.h <<\EOF
13735 #define wxUSE_DIALUP_MANAGER 1
13736 EOF
13737
13738 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
13739 fi
13740
13741 if test "$wxUSE_STREAMS" = "yes" ; then
13742 cat >> confdefs.h <<\EOF
13743 #define wxUSE_STREAMS 1
13744 EOF
13745
13746 fi
13747
13748
13749 if test "$wxUSE_TIMEDATE" = "yes"; then
13750 for ac_func in strptime
13751 do
13752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13753 echo "configure:13754: checking for $ac_func" >&5
13754 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13755 echo $ac_n "(cached) $ac_c" 1>&6
13756 else
13757 cat > conftest.$ac_ext <<EOF
13758 #line 13759 "configure"
13759 #include "confdefs.h"
13760 /* System header to define __stub macros and hopefully few prototypes,
13761 which can conflict with char $ac_func(); below. */
13762 #include <assert.h>
13763 /* Override any gcc2 internal prototype to avoid an error. */
13764 /* We use char because int might match the return type of a gcc2
13765 builtin and then its argument prototype would still apply. */
13766 char $ac_func();
13767
13768 int main() {
13769
13770 /* The GNU C library defines this for functions which it implements
13771 to always fail with ENOSYS. Some functions are actually named
13772 something starting with __ and the normal name is an alias. */
13773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13774 choke me
13775 #else
13776 $ac_func();
13777 #endif
13778
13779 ; return 0; }
13780 EOF
13781 if { (eval echo configure:13782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13782 rm -rf conftest*
13783 eval "ac_cv_func_$ac_func=yes"
13784 else
13785 echo "configure: failed program was:" >&5
13786 cat conftest.$ac_ext >&5
13787 rm -rf conftest*
13788 eval "ac_cv_func_$ac_func=no"
13789 fi
13790 rm -f conftest*
13791 fi
13792
13793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13794 echo "$ac_t""yes" 1>&6
13795 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13796 cat >> confdefs.h <<EOF
13797 #define $ac_tr_func 1
13798 EOF
13799
13800 else
13801 echo "$ac_t""no" 1>&6
13802 fi
13803 done
13804
13805
13806 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
13807 echo "configure:13808: checking for timezone variable in <time.h>" >&5
13808 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
13809 echo $ac_n "(cached) $ac_c" 1>&6
13810 else
13811
13812 cat > conftest.$ac_ext <<EOF
13813 #line 13814 "configure"
13814 #include "confdefs.h"
13815
13816 #include <time.h>
13817
13818 int main() {
13819
13820 int tz;
13821 tz = __timezone;
13822
13823 ; return 0; }
13824 EOF
13825 if { (eval echo configure:13826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13826 rm -rf conftest*
13827
13828 wx_cv_var_timezone=__timezone
13829
13830 else
13831 echo "configure: failed program was:" >&5
13832 cat conftest.$ac_ext >&5
13833 rm -rf conftest*
13834
13835 cat > conftest.$ac_ext <<EOF
13836 #line 13837 "configure"
13837 #include "confdefs.h"
13838
13839 #include <time.h>
13840
13841 int main() {
13842
13843 int tz;
13844 tz = _timezone;
13845
13846 ; return 0; }
13847 EOF
13848 if { (eval echo configure:13849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13849 rm -rf conftest*
13850
13851 wx_cv_var_timezone=_timezone
13852
13853 else
13854 echo "configure: failed program was:" >&5
13855 cat conftest.$ac_ext >&5
13856 rm -rf conftest*
13857
13858 cat > conftest.$ac_ext <<EOF
13859 #line 13860 "configure"
13860 #include "confdefs.h"
13861
13862 #include <time.h>
13863
13864 int main() {
13865
13866 int tz;
13867 tz = timezone;
13868
13869 ; return 0; }
13870 EOF
13871 if { (eval echo configure:13872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13872 rm -rf conftest*
13873
13874 wx_cv_var_timezone=timezone
13875
13876 else
13877 echo "configure: failed program was:" >&5
13878 cat conftest.$ac_ext >&5
13879 rm -rf conftest*
13880 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
13881
13882 fi
13883 rm -f conftest*
13884
13885
13886 fi
13887 rm -f conftest*
13888
13889
13890 fi
13891 rm -f conftest*
13892
13893
13894 fi
13895
13896 echo "$ac_t""$wx_cv_var_timezone" 1>&6
13897
13898 cat >> confdefs.h <<EOF
13899 #define WX_TIMEZONE $wx_cv_var_timezone
13900 EOF
13901
13902
13903 for ac_func in localtime
13904 do
13905 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13906 echo "configure:13907: checking for $ac_func" >&5
13907 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13908 echo $ac_n "(cached) $ac_c" 1>&6
13909 else
13910 cat > conftest.$ac_ext <<EOF
13911 #line 13912 "configure"
13912 #include "confdefs.h"
13913 /* System header to define __stub macros and hopefully few prototypes,
13914 which can conflict with char $ac_func(); below. */
13915 #include <assert.h>
13916 /* Override any gcc2 internal prototype to avoid an error. */
13917 /* We use char because int might match the return type of a gcc2
13918 builtin and then its argument prototype would still apply. */
13919 char $ac_func();
13920
13921 int main() {
13922
13923 /* The GNU C library defines this for functions which it implements
13924 to always fail with ENOSYS. Some functions are actually named
13925 something starting with __ and the normal name is an alias. */
13926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13927 choke me
13928 #else
13929 $ac_func();
13930 #endif
13931
13932 ; return 0; }
13933 EOF
13934 if { (eval echo configure:13935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13935 rm -rf conftest*
13936 eval "ac_cv_func_$ac_func=yes"
13937 else
13938 echo "configure: failed program was:" >&5
13939 cat conftest.$ac_ext >&5
13940 rm -rf conftest*
13941 eval "ac_cv_func_$ac_func=no"
13942 fi
13943 rm -f conftest*
13944 fi
13945
13946 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13947 echo "$ac_t""yes" 1>&6
13948 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13949 cat >> confdefs.h <<EOF
13950 #define $ac_tr_func 1
13951 EOF
13952
13953 else
13954 echo "$ac_t""no" 1>&6
13955 fi
13956 done
13957
13958
13959 if test "$ac_cv_func_localtime" = "yes"; then
13960 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
13961 echo "configure:13962: checking for tm_gmtoff in struct tm" >&5
13962 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
13963 echo $ac_n "(cached) $ac_c" 1>&6
13964 else
13965
13966 cat > conftest.$ac_ext <<EOF
13967 #line 13968 "configure"
13968 #include "confdefs.h"
13969
13970 #include <time.h>
13971
13972 int main() {
13973
13974 struct tm tm;
13975 tm.tm_gmtoff++;
13976
13977 ; return 0; }
13978 EOF
13979 if { (eval echo configure:13980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13980 rm -rf conftest*
13981
13982 wx_cv_struct_tm_has_gmtoff=yes
13983 cat >> confdefs.h <<\EOF
13984 #define WX_GMTOFF_IN_TM 1
13985 EOF
13986
13987
13988 else
13989 echo "configure: failed program was:" >&5
13990 cat conftest.$ac_ext >&5
13991 rm -rf conftest*
13992 wx_cv_struct_tm_has_gmtoff=no
13993
13994 fi
13995 rm -f conftest*
13996
13997 fi
13998
13999 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
14000 fi
14001
14002 for ac_func in gettimeofday ftime
14003 do
14004 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14005 echo "configure:14006: checking for $ac_func" >&5
14006 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14007 echo $ac_n "(cached) $ac_c" 1>&6
14008 else
14009 cat > conftest.$ac_ext <<EOF
14010 #line 14011 "configure"
14011 #include "confdefs.h"
14012 /* System header to define __stub macros and hopefully few prototypes,
14013 which can conflict with char $ac_func(); below. */
14014 #include <assert.h>
14015 /* Override any gcc2 internal prototype to avoid an error. */
14016 /* We use char because int might match the return type of a gcc2
14017 builtin and then its argument prototype would still apply. */
14018 char $ac_func();
14019
14020 int main() {
14021
14022 /* The GNU C library defines this for functions which it implements
14023 to always fail with ENOSYS. Some functions are actually named
14024 something starting with __ and the normal name is an alias. */
14025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14026 choke me
14027 #else
14028 $ac_func();
14029 #endif
14030
14031 ; return 0; }
14032 EOF
14033 if { (eval echo configure:14034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14034 rm -rf conftest*
14035 eval "ac_cv_func_$ac_func=yes"
14036 else
14037 echo "configure: failed program was:" >&5
14038 cat conftest.$ac_ext >&5
14039 rm -rf conftest*
14040 eval "ac_cv_func_$ac_func=no"
14041 fi
14042 rm -f conftest*
14043 fi
14044
14045 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14046 echo "$ac_t""yes" 1>&6
14047 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14048 cat >> confdefs.h <<EOF
14049 #define $ac_tr_func 1
14050 EOF
14051 break
14052 else
14053 echo "$ac_t""no" 1>&6
14054 fi
14055 done
14056
14057
14058 if test "$ac_cv_func_gettimeofday" = "yes"; then
14059 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
14060 echo "configure:14061: checking whether gettimeofday takes two arguments" >&5
14061 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
14062 echo $ac_n "(cached) $ac_c" 1>&6
14063 else
14064
14065
14066 ac_ext=C
14067 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14068 ac_cpp='$CXXCPP $CPPFLAGS'
14069 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14070 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14071 cross_compiling=$ac_cv_prog_cxx_cross
14072
14073
14074 cat > conftest.$ac_ext <<EOF
14075 #line 14076 "configure"
14076 #include "confdefs.h"
14077
14078 #include <sys/time.h>
14079 #include <unistd.h>
14080
14081 int main() {
14082
14083 struct timeval tv;
14084 struct timezone tz;
14085 gettimeofday(&tv, &tz);
14086
14087 ; return 0; }
14088 EOF
14089 if { (eval echo configure:14090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14090 rm -rf conftest*
14091 wx_cv_func_gettimeofday_has_2_args=yes
14092 else
14093 echo "configure: failed program was:" >&5
14094 cat conftest.$ac_ext >&5
14095 rm -rf conftest*
14096 cat > conftest.$ac_ext <<EOF
14097 #line 14098 "configure"
14098 #include "confdefs.h"
14099
14100 #include <sys/time.h>
14101 #include <unistd.h>
14102
14103 int main() {
14104
14105 struct timeval tv;
14106 gettimeofday(&tv);
14107
14108 ; return 0; }
14109 EOF
14110 if { (eval echo configure:14111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14111 rm -rf conftest*
14112 wx_cv_func_gettimeofday_has_2_args=no
14113 else
14114 echo "configure: failed program was:" >&5
14115 cat conftest.$ac_ext >&5
14116 rm -rf conftest*
14117 wx_cv_func_gettimeofday_has_2_args=unknown
14118
14119 fi
14120 rm -f conftest*
14121
14122 fi
14123 rm -f conftest*
14124 ac_ext=c
14125 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14126 ac_cpp='$CPP $CPPFLAGS'
14127 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14128 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14129 cross_compiling=$ac_cv_prog_cc_cross
14130
14131
14132 fi
14133
14134 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
14135
14136 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
14137 cat >> confdefs.h <<\EOF
14138 #define WX_GETTIMEOFDAY_NO_TZ 1
14139 EOF
14140
14141 fi
14142 fi
14143
14144 cat >> confdefs.h <<\EOF
14145 #define wxUSE_TIMEDATE 1
14146 EOF
14147
14148 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
14149 fi
14150
14151
14152 if test "$TOOLKIT" != "MSW"; then
14153
14154 if test "$wxUSE_SOCKETS" = "yes"; then
14155 echo $ac_n "checking for socket""... $ac_c" 1>&6
14156 echo "configure:14157: checking for socket" >&5
14157 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
14158 echo $ac_n "(cached) $ac_c" 1>&6
14159 else
14160 cat > conftest.$ac_ext <<EOF
14161 #line 14162 "configure"
14162 #include "confdefs.h"
14163 /* System header to define __stub macros and hopefully few prototypes,
14164 which can conflict with char socket(); below. */
14165 #include <assert.h>
14166 /* Override any gcc2 internal prototype to avoid an error. */
14167 /* We use char because int might match the return type of a gcc2
14168 builtin and then its argument prototype would still apply. */
14169 char socket();
14170
14171 int main() {
14172
14173 /* The GNU C library defines this for functions which it implements
14174 to always fail with ENOSYS. Some functions are actually named
14175 something starting with __ and the normal name is an alias. */
14176 #if defined (__stub_socket) || defined (__stub___socket)
14177 choke me
14178 #else
14179 socket();
14180 #endif
14181
14182 ; return 0; }
14183 EOF
14184 if { (eval echo configure:14185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14185 rm -rf conftest*
14186 eval "ac_cv_func_socket=yes"
14187 else
14188 echo "configure: failed program was:" >&5
14189 cat conftest.$ac_ext >&5
14190 rm -rf conftest*
14191 eval "ac_cv_func_socket=no"
14192 fi
14193 rm -f conftest*
14194 fi
14195
14196 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
14197 echo "$ac_t""yes" 1>&6
14198 :
14199 else
14200 echo "$ac_t""no" 1>&6
14201 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
14202 echo "configure:14203: checking for socket in -lsocket" >&5
14203 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
14204 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14205 echo $ac_n "(cached) $ac_c" 1>&6
14206 else
14207 ac_save_LIBS="$LIBS"
14208 LIBS="-lsocket $LIBS"
14209 cat > conftest.$ac_ext <<EOF
14210 #line 14211 "configure"
14211 #include "confdefs.h"
14212 /* Override any gcc2 internal prototype to avoid an error. */
14213 /* We use char because int might match the return type of a gcc2
14214 builtin and then its argument prototype would still apply. */
14215 char socket();
14216
14217 int main() {
14218 socket()
14219 ; return 0; }
14220 EOF
14221 if { (eval echo configure:14222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14222 rm -rf conftest*
14223 eval "ac_cv_lib_$ac_lib_var=yes"
14224 else
14225 echo "configure: failed program was:" >&5
14226 cat conftest.$ac_ext >&5
14227 rm -rf conftest*
14228 eval "ac_cv_lib_$ac_lib_var=no"
14229 fi
14230 rm -f conftest*
14231 LIBS="$ac_save_LIBS"
14232
14233 fi
14234 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14235 echo "$ac_t""yes" 1>&6
14236 INET_LINK="$INET_LINK -lsocket"
14237 else
14238 echo "$ac_t""no" 1>&6
14239
14240 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
14241 wxUSE_SOCKETS=no
14242
14243
14244 fi
14245
14246
14247 fi
14248
14249 fi
14250
14251
14252 if test "$wxUSE_SOCKETS" = "yes" ; then
14253 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
14254 echo "configure:14255: checking what is the type of the third argument of getsockname" >&5
14255 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
14256 echo $ac_n "(cached) $ac_c" 1>&6
14257 else
14258
14259
14260 ac_ext=C
14261 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14262 ac_cpp='$CXXCPP $CPPFLAGS'
14263 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14264 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14265 cross_compiling=$ac_cv_prog_cxx_cross
14266
14267
14268 cat > conftest.$ac_ext <<EOF
14269 #line 14270 "configure"
14270 #include "confdefs.h"
14271
14272 #include <sys/types.h>
14273 #include <sys/socket.h>
14274
14275 int main() {
14276
14277 socklen_t len;
14278 getsockname(0, 0, &len);
14279
14280 ; return 0; }
14281 EOF
14282 if { (eval echo configure:14283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14283 rm -rf conftest*
14284 wx_cv_type_getsockname3=socklen_t
14285 else
14286 echo "configure: failed program was:" >&5
14287 cat conftest.$ac_ext >&5
14288 rm -rf conftest*
14289 cat > conftest.$ac_ext <<EOF
14290 #line 14291 "configure"
14291 #include "confdefs.h"
14292
14293 #include <sys/types.h>
14294 #include <sys/socket.h>
14295
14296 int main() {
14297
14298 size_t len;
14299 getsockname(0, 0, &len);
14300
14301 ; return 0; }
14302 EOF
14303 if { (eval echo configure:14304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14304 rm -rf conftest*
14305 wx_cv_type_getsockname3=size_t
14306 else
14307 echo "configure: failed program was:" >&5
14308 cat conftest.$ac_ext >&5
14309 rm -rf conftest*
14310 cat > conftest.$ac_ext <<EOF
14311 #line 14312 "configure"
14312 #include "confdefs.h"
14313
14314 #include <sys/types.h>
14315 #include <sys/socket.h>
14316
14317 int main() {
14318
14319 int len;
14320 getsockname(0, 0, &len);
14321
14322 ; return 0; }
14323 EOF
14324 if { (eval echo configure:14325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14325 rm -rf conftest*
14326 wx_cv_type_getsockname3=int
14327 else
14328 echo "configure: failed program was:" >&5
14329 cat conftest.$ac_ext >&5
14330 rm -rf conftest*
14331 wx_cv_type_getsockname3=unknown
14332
14333 fi
14334 rm -f conftest*
14335
14336 fi
14337 rm -f conftest*
14338
14339 fi
14340 rm -f conftest*
14341
14342 ac_ext=c
14343 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14344 ac_cpp='$CPP $CPPFLAGS'
14345 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14346 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14347 cross_compiling=$ac_cv_prog_cc_cross
14348
14349
14350 fi
14351
14352 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
14353
14354 if test "$wx_cv_type_getsockname3" = "unknown"; then
14355 wxUSE_SOCKETS=no
14356 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
14357 else
14358 cat >> confdefs.h <<EOF
14359 #define SOCKLEN_T $wx_cv_type_getsockname3
14360 EOF
14361
14362 fi
14363 fi
14364
14365 fi
14366
14367 if test "$wxUSE_SOCKETS" = "yes" ; then
14368 cat >> confdefs.h <<\EOF
14369 #define wxUSE_SOCKETS 1
14370 EOF
14371
14372 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
14373 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
14374 fi
14375
14376
14377 if test "$wxUSE_GUI" = "yes"; then
14378
14379 if test "$TOOLKIT" != "MSW"; then
14380
14381 if test "$wxUSE_JOYSTICK" = "yes"; then
14382 for ac_hdr in linux/joystick.h
14383 do
14384 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14385 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14386 echo "configure:14387: checking for $ac_hdr" >&5
14387 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14388 echo $ac_n "(cached) $ac_c" 1>&6
14389 else
14390 cat > conftest.$ac_ext <<EOF
14391 #line 14392 "configure"
14392 #include "confdefs.h"
14393 #include <$ac_hdr>
14394 EOF
14395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14396 { (eval echo configure:14397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14397 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14398 if test -z "$ac_err"; then
14399 rm -rf conftest*
14400 eval "ac_cv_header_$ac_safe=yes"
14401 else
14402 echo "$ac_err" >&5
14403 echo "configure: failed program was:" >&5
14404 cat conftest.$ac_ext >&5
14405 rm -rf conftest*
14406 eval "ac_cv_header_$ac_safe=no"
14407 fi
14408 rm -f conftest*
14409 fi
14410 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14411 echo "$ac_t""yes" 1>&6
14412 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14413 cat >> confdefs.h <<EOF
14414 #define $ac_tr_hdr 1
14415 EOF
14416
14417 else
14418 echo "$ac_t""no" 1>&6
14419 fi
14420 done
14421
14422 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
14423 wxUSE_JOYSTICK=no
14424 echo "configure: warning: Joystick not supported by this system" 1>&2
14425 fi
14426 fi
14427
14428 fi
14429
14430 if test "$wxUSE_JOYSTICK" = "yes"; then
14431 cat >> confdefs.h <<\EOF
14432 #define wxUSE_JOYSTICK 1
14433 EOF
14434
14435 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
14436 fi
14437
14438 fi
14439
14440
14441 if test "$TOOLKIT" != "MSW"; then
14442
14443 HAVE_DL_FUNCS=0
14444 HAVE_SHL_FUNCS=0
14445 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
14446 if test "$USE_MAC" = 1; then
14447 HAVE_DL_FUNCS=1
14448 else
14449 for ac_func in dlopen
14450 do
14451 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14452 echo "configure:14453: checking for $ac_func" >&5
14453 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14454 echo $ac_n "(cached) $ac_c" 1>&6
14455 else
14456 cat > conftest.$ac_ext <<EOF
14457 #line 14458 "configure"
14458 #include "confdefs.h"
14459 /* System header to define __stub macros and hopefully few prototypes,
14460 which can conflict with char $ac_func(); below. */
14461 #include <assert.h>
14462 /* Override any gcc2 internal prototype to avoid an error. */
14463 /* We use char because int might match the return type of a gcc2
14464 builtin and then its argument prototype would still apply. */
14465 char $ac_func();
14466
14467 int main() {
14468
14469 /* The GNU C library defines this for functions which it implements
14470 to always fail with ENOSYS. Some functions are actually named
14471 something starting with __ and the normal name is an alias. */
14472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14473 choke me
14474 #else
14475 $ac_func();
14476 #endif
14477
14478 ; return 0; }
14479 EOF
14480 if { (eval echo configure:14481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14481 rm -rf conftest*
14482 eval "ac_cv_func_$ac_func=yes"
14483 else
14484 echo "configure: failed program was:" >&5
14485 cat conftest.$ac_ext >&5
14486 rm -rf conftest*
14487 eval "ac_cv_func_$ac_func=no"
14488 fi
14489 rm -f conftest*
14490 fi
14491
14492 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14493 echo "$ac_t""yes" 1>&6
14494 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14495 cat >> confdefs.h <<EOF
14496 #define $ac_tr_func 1
14497 EOF
14498
14499 cat >> confdefs.h <<\EOF
14500 #define HAVE_DLOPEN 1
14501 EOF
14502
14503 HAVE_DL_FUNCS=1
14504
14505 else
14506 echo "$ac_t""no" 1>&6
14507 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
14508 echo "configure:14509: checking for dlopen in -ldl" >&5
14509 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
14510 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14511 echo $ac_n "(cached) $ac_c" 1>&6
14512 else
14513 ac_save_LIBS="$LIBS"
14514 LIBS="-ldl $LIBS"
14515 cat > conftest.$ac_ext <<EOF
14516 #line 14517 "configure"
14517 #include "confdefs.h"
14518 /* Override any gcc2 internal prototype to avoid an error. */
14519 /* We use char because int might match the return type of a gcc2
14520 builtin and then its argument prototype would still apply. */
14521 char dlopen();
14522
14523 int main() {
14524 dlopen()
14525 ; return 0; }
14526 EOF
14527 if { (eval echo configure:14528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14528 rm -rf conftest*
14529 eval "ac_cv_lib_$ac_lib_var=yes"
14530 else
14531 echo "configure: failed program was:" >&5
14532 cat conftest.$ac_ext >&5
14533 rm -rf conftest*
14534 eval "ac_cv_lib_$ac_lib_var=no"
14535 fi
14536 rm -f conftest*
14537 LIBS="$ac_save_LIBS"
14538
14539 fi
14540 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14541 echo "$ac_t""yes" 1>&6
14542
14543 cat >> confdefs.h <<\EOF
14544 #define HAVE_DLOPEN 1
14545 EOF
14546
14547 HAVE_DL_FUNCS=1
14548 LIBS="$LIBS -ldl"
14549
14550 else
14551 echo "$ac_t""no" 1>&6
14552
14553 for ac_func in shl_load
14554 do
14555 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14556 echo "configure:14557: checking for $ac_func" >&5
14557 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14558 echo $ac_n "(cached) $ac_c" 1>&6
14559 else
14560 cat > conftest.$ac_ext <<EOF
14561 #line 14562 "configure"
14562 #include "confdefs.h"
14563 /* System header to define __stub macros and hopefully few prototypes,
14564 which can conflict with char $ac_func(); below. */
14565 #include <assert.h>
14566 /* Override any gcc2 internal prototype to avoid an error. */
14567 /* We use char because int might match the return type of a gcc2
14568 builtin and then its argument prototype would still apply. */
14569 char $ac_func();
14570
14571 int main() {
14572
14573 /* The GNU C library defines this for functions which it implements
14574 to always fail with ENOSYS. Some functions are actually named
14575 something starting with __ and the normal name is an alias. */
14576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14577 choke me
14578 #else
14579 $ac_func();
14580 #endif
14581
14582 ; return 0; }
14583 EOF
14584 if { (eval echo configure:14585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14585 rm -rf conftest*
14586 eval "ac_cv_func_$ac_func=yes"
14587 else
14588 echo "configure: failed program was:" >&5
14589 cat conftest.$ac_ext >&5
14590 rm -rf conftest*
14591 eval "ac_cv_func_$ac_func=no"
14592 fi
14593 rm -f conftest*
14594 fi
14595
14596 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14597 echo "$ac_t""yes" 1>&6
14598 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14599 cat >> confdefs.h <<EOF
14600 #define $ac_tr_func 1
14601 EOF
14602
14603 cat >> confdefs.h <<\EOF
14604 #define HAVE_SHL_LOAD 1
14605 EOF
14606
14607 HAVE_SHL_FUNCS=1
14608
14609 else
14610 echo "$ac_t""no" 1>&6
14611 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
14612 echo "configure:14613: checking for dld in -lshl_load" >&5
14613 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
14614 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14615 echo $ac_n "(cached) $ac_c" 1>&6
14616 else
14617 ac_save_LIBS="$LIBS"
14618 LIBS="-lshl_load $LIBS"
14619 cat > conftest.$ac_ext <<EOF
14620 #line 14621 "configure"
14621 #include "confdefs.h"
14622 /* Override any gcc2 internal prototype to avoid an error. */
14623 /* We use char because int might match the return type of a gcc2
14624 builtin and then its argument prototype would still apply. */
14625 char dld();
14626
14627 int main() {
14628 dld()
14629 ; return 0; }
14630 EOF
14631 if { (eval echo configure:14632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14632 rm -rf conftest*
14633 eval "ac_cv_lib_$ac_lib_var=yes"
14634 else
14635 echo "configure: failed program was:" >&5
14636 cat conftest.$ac_ext >&5
14637 rm -rf conftest*
14638 eval "ac_cv_lib_$ac_lib_var=no"
14639 fi
14640 rm -f conftest*
14641 LIBS="$ac_save_LIBS"
14642
14643 fi
14644 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14645 echo "$ac_t""yes" 1>&6
14646
14647 HAVE_SHL_FUNCS=1
14648 LIBS="$LIBS -ldld"
14649
14650 else
14651 echo "$ac_t""no" 1>&6
14652 fi
14653
14654
14655 fi
14656 done
14657
14658
14659 fi
14660
14661
14662 fi
14663 done
14664
14665
14666 if test "$HAVE_DL_FUNCS" = 1; then
14667 for ac_func in dlerror
14668 do
14669 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14670 echo "configure:14671: checking for $ac_func" >&5
14671 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14672 echo $ac_n "(cached) $ac_c" 1>&6
14673 else
14674 cat > conftest.$ac_ext <<EOF
14675 #line 14676 "configure"
14676 #include "confdefs.h"
14677 /* System header to define __stub macros and hopefully few prototypes,
14678 which can conflict with char $ac_func(); below. */
14679 #include <assert.h>
14680 /* Override any gcc2 internal prototype to avoid an error. */
14681 /* We use char because int might match the return type of a gcc2
14682 builtin and then its argument prototype would still apply. */
14683 char $ac_func();
14684
14685 int main() {
14686
14687 /* The GNU C library defines this for functions which it implements
14688 to always fail with ENOSYS. Some functions are actually named
14689 something starting with __ and the normal name is an alias. */
14690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14691 choke me
14692 #else
14693 $ac_func();
14694 #endif
14695
14696 ; return 0; }
14697 EOF
14698 if { (eval echo configure:14699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14699 rm -rf conftest*
14700 eval "ac_cv_func_$ac_func=yes"
14701 else
14702 echo "configure: failed program was:" >&5
14703 cat conftest.$ac_ext >&5
14704 rm -rf conftest*
14705 eval "ac_cv_func_$ac_func=no"
14706 fi
14707 rm -f conftest*
14708 fi
14709
14710 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14711 echo "$ac_t""yes" 1>&6
14712 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14713 cat >> confdefs.h <<EOF
14714 #define $ac_tr_func 1
14715 EOF
14716 cat >> confdefs.h <<\EOF
14717 #define HAVE_DLERROR 1
14718 EOF
14719
14720 else
14721 echo "$ac_t""no" 1>&6
14722 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
14723 echo "configure:14724: checking for dlerror in -ldl" >&5
14724 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
14725 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14726 echo $ac_n "(cached) $ac_c" 1>&6
14727 else
14728 ac_save_LIBS="$LIBS"
14729 LIBS="-ldl $LIBS"
14730 cat > conftest.$ac_ext <<EOF
14731 #line 14732 "configure"
14732 #include "confdefs.h"
14733 /* Override any gcc2 internal prototype to avoid an error. */
14734 /* We use char because int might match the return type of a gcc2
14735 builtin and then its argument prototype would still apply. */
14736 char dlerror();
14737
14738 int main() {
14739 dlerror()
14740 ; return 0; }
14741 EOF
14742 if { (eval echo configure:14743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14743 rm -rf conftest*
14744 eval "ac_cv_lib_$ac_lib_var=yes"
14745 else
14746 echo "configure: failed program was:" >&5
14747 cat conftest.$ac_ext >&5
14748 rm -rf conftest*
14749 eval "ac_cv_lib_$ac_lib_var=no"
14750 fi
14751 rm -f conftest*
14752 LIBS="$ac_save_LIBS"
14753
14754 fi
14755 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14756 echo "$ac_t""yes" 1>&6
14757 cat >> confdefs.h <<\EOF
14758 #define HAVE_DLERROR 1
14759 EOF
14760
14761 else
14762 echo "$ac_t""no" 1>&6
14763 fi
14764
14765 fi
14766 done
14767
14768 fi
14769 fi
14770
14771 if test "$HAVE_DL_FUNCS" = 0; then
14772 if test "$HAVE_SHL_FUNCS" = 0; then
14773 if test "$USE_UNIX" = 1; then
14774 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
14775 wxUSE_DYNLIB_CLASS=no
14776 else
14777 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
14778 fi
14779 fi
14780 fi
14781 fi
14782
14783 fi
14784
14785 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
14786 cat >> confdefs.h <<\EOF
14787 #define wxUSE_DYNLIB_CLASS 1
14788 EOF
14789
14790 else
14791 wxUSE_ODBC=no
14792 wxUSE_SERIAL=no
14793 fi
14794
14795
14796 if test "$wxUSE_UNICODE" = "yes" ; then
14797 cat >> confdefs.h <<\EOF
14798 #define wxUSE_UNICODE 1
14799 EOF
14800
14801 fi
14802
14803 if test "$wxUSE_WCSRTOMBS" = "yes" ; then
14804 cat >> confdefs.h <<\EOF
14805 #define wxUSE_WCSRTOMBS 1
14806 EOF
14807
14808 fi
14809
14810 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
14811 cat >> confdefs.h <<\EOF
14812 #define wxUSE_EXPERIMENTAL_PRINTF 1
14813 EOF
14814
14815 fi
14816
14817
14818 if test "$wxUSE_SERIAL" = "yes" ; then
14819 cat >> confdefs.h <<\EOF
14820 #define wxUSE_SERIAL 1
14821 EOF
14822
14823 fi
14824
14825
14826 IODBC_C_SRC=""
14827 if test "$wxUSE_ODBC" = "yes" ; then
14828 cat >> confdefs.h <<\EOF
14829 #define wxUSE_ODBC 1
14830 EOF
14831
14832 WXODBCFLAG="-D_IODBC_"
14833 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
14834 fi
14835
14836
14837 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
14838 cat >> confdefs.h <<\EOF
14839 #define wxUSE_POSTSCRIPT 1
14840 EOF
14841
14842 fi
14843
14844 cat >> confdefs.h <<\EOF
14845 #define wxUSE_AFM_FOR_POSTSCRIPT 1
14846 EOF
14847
14848
14849 cat >> confdefs.h <<\EOF
14850 #define wxUSE_NORMALIZED_PS_FONTS 1
14851 EOF
14852
14853
14854
14855 if test "$wxUSE_CONSTRAINTS" = "yes"; then
14856 cat >> confdefs.h <<\EOF
14857 #define wxUSE_CONSTRAINTS 1
14858 EOF
14859
14860 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
14861 fi
14862
14863 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
14864 cat >> confdefs.h <<\EOF
14865 #define wxUSE_MDI_ARCHITECTURE 1
14866 EOF
14867
14868 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
14869 fi
14870
14871 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
14872 cat >> confdefs.h <<\EOF
14873 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
14874 EOF
14875
14876 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
14877 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
14878 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
14879 fi
14880 fi
14881
14882 if test "$wxUSE_HELP" = "yes"; then
14883 cat >> confdefs.h <<\EOF
14884 #define wxUSE_HELP 1
14885 EOF
14886
14887 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
14888 fi
14889
14890 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
14891 if test "$wxUSE_CONSTRAINTS" != "yes"; then
14892 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
14893 else
14894 cat >> confdefs.h <<\EOF
14895 #define wxUSE_PRINTING_ARCHITECTURE 1
14896 EOF
14897
14898 fi
14899 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
14900 fi
14901
14902 if test "$wxUSE_PROLOGIO" = "yes" ; then
14903 cat >> confdefs.h <<\EOF
14904 #define wxUSE_PROLOGIO 1
14905 EOF
14906
14907 fi
14908
14909 if test "$wxUSE_RESOURCES" = "yes" ; then
14910 if test "$wxUSE_PROLOGIO" = "yes" ; then
14911 cat >> confdefs.h <<\EOF
14912 #define wxUSE_RESOURCES 1
14913 EOF
14914
14915 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
14916 else
14917 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
14918 fi
14919 fi
14920
14921 if test "$wxUSE_X_RESOURCES" = "yes"; then
14922 cat >> confdefs.h <<\EOF
14923 #define wxUSE_X_RESOURCES 1
14924 EOF
14925
14926 fi
14927
14928
14929 if test "$wxUSE_IPC" = "yes"; then
14930 if test "$wxUSE_SOCKETS" != "yes"; then
14931 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
14932 fi
14933
14934 cat >> confdefs.h <<\EOF
14935 #define wxUSE_IPC 1
14936 EOF
14937
14938 fi
14939
14940 if test "$wxUSE_CLIPBOARD" = "yes"; then
14941 cat >> confdefs.h <<\EOF
14942 #define wxUSE_CLIPBOARD 1
14943 EOF
14944
14945 fi
14946
14947 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
14948 if test "$wxUSE_GTK" = 1; then
14949 if test "$WXGTK12" != 1; then
14950 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
14951 wxUSE_DRAG_AND_DROP=no
14952 fi
14953 fi
14954
14955 if test "$wxUSE_MOTIF" = 1; then
14956 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
14957 wxUSE_DRAG_AND_DROP=no
14958 fi
14959
14960 if test "$wxUSE_MAC" = 1; then
14961 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
14962 wxUSE_DRAG_AND_DROP=no
14963 fi
14964
14965 if test "$USE_WIN32" = 1; then
14966
14967 for ac_hdr in ole2.h
14968 do
14969 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14970 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14971 echo "configure:14972: checking for $ac_hdr" >&5
14972 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14973 echo $ac_n "(cached) $ac_c" 1>&6
14974 else
14975 cat > conftest.$ac_ext <<EOF
14976 #line 14977 "configure"
14977 #include "confdefs.h"
14978 #include <$ac_hdr>
14979 EOF
14980 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14981 { (eval echo configure:14982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14982 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14983 if test -z "$ac_err"; then
14984 rm -rf conftest*
14985 eval "ac_cv_header_$ac_safe=yes"
14986 else
14987 echo "$ac_err" >&5
14988 echo "configure: failed program was:" >&5
14989 cat conftest.$ac_ext >&5
14990 rm -rf conftest*
14991 eval "ac_cv_header_$ac_safe=no"
14992 fi
14993 rm -f conftest*
14994 fi
14995 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14996 echo "$ac_t""yes" 1>&6
14997 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14998 cat >> confdefs.h <<EOF
14999 #define $ac_tr_hdr 1
15000 EOF
15001
15002 else
15003 echo "$ac_t""no" 1>&6
15004 fi
15005 done
15006
15007
15008 if test "$ac_cv_header_ole2_h" = "yes" ; then
15009 if test "$GCC" = yes ; then
15010 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
15011 ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)"
15012 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
15013 LIBS="$LIBS -lole32 -luuid"
15014
15015 if test "$wxUSE_METAFILE" = "yes"; then
15016 cat >> confdefs.h <<\EOF
15017 #define wxUSE_METAFILE 1
15018 EOF
15019
15020 cat >> confdefs.h <<\EOF
15021 #define wxUSE_ENH_METAFILE 1
15022 EOF
15023
15024 fi
15025 fi
15026 else
15027 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
15028 wxUSE_DRAG_AND_DROP=no
15029 fi
15030 fi
15031
15032 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
15033 cat >> confdefs.h <<\EOF
15034 #define wxUSE_DRAG_AND_DROP 1
15035 EOF
15036
15037 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
15038 fi
15039
15040 fi
15041
15042 if test "$wxUSE_SPLINES" = "yes" ; then
15043 cat >> confdefs.h <<\EOF
15044 #define wxUSE_SPLINES 1
15045 EOF
15046
15047 fi
15048
15049
15050 if test "$wxUSE_ACCEL" = "yes"; then
15051 cat >> confdefs.h <<\EOF
15052 #define wxUSE_ACCEL 1
15053 EOF
15054
15055 fi
15056
15057 if test "$wxUSE_CARET" = "yes"; then
15058 cat >> confdefs.h <<\EOF
15059 #define wxUSE_CARET 1
15060 EOF
15061
15062 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
15063 fi
15064
15065 if test "$wxUSE_COMBOBOX" = "yes"; then
15066 cat >> confdefs.h <<\EOF
15067 #define wxUSE_COMBOBOX 1
15068 EOF
15069
15070 fi
15071
15072 if test "$wxUSE_CHOICE" = "yes"; then
15073 cat >> confdefs.h <<\EOF
15074 #define wxUSE_CHOICE 1
15075 EOF
15076
15077 fi
15078
15079 if test "$wxUSE_BMPBUTTON" = "yes"; then
15080 cat >> confdefs.h <<\EOF
15081 #define wxUSE_BMPBUTTON 1
15082 EOF
15083
15084 fi
15085
15086 if test "$wxUSE_CHECKBOX" = "yes"; then
15087 cat >> confdefs.h <<\EOF
15088 #define wxUSE_CHECKBOX 1
15089 EOF
15090
15091 fi
15092
15093 if test "$wxUSE_CHECKLST" = "yes"; then
15094 cat >> confdefs.h <<\EOF
15095 #define wxUSE_CHECKLISTBOX 1
15096 EOF
15097
15098 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
15099 fi
15100
15101 if test "$wxUSE_GAUGE" = "yes"; then
15102 cat >> confdefs.h <<\EOF
15103 #define wxUSE_GAUGE 1
15104 EOF
15105
15106 fi
15107
15108 if test "$wxUSE_NEW_GRID" = "yes"; then
15109 wxUSE_GRID="yes"
15110 cat >> confdefs.h <<\EOF
15111 #define wxUSE_NEW_GRID 1
15112 EOF
15113
15114 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
15115 fi
15116
15117 if test "$wxUSE_GRID" = "yes"; then
15118 cat >> confdefs.h <<\EOF
15119 #define wxUSE_GRID 1
15120 EOF
15121
15122 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
15123 fi
15124
15125 if test "$wxUSE_IMAGLIST" = "yes"; then
15126 cat >> confdefs.h <<\EOF
15127 #define wxUSE_IMAGLIST 1
15128 EOF
15129
15130 fi
15131
15132 if test "$wxUSE_LISTBOX" = "yes"; then
15133 cat >> confdefs.h <<\EOF
15134 #define wxUSE_LISTBOX 1
15135 EOF
15136
15137 fi
15138
15139 if test "$wxUSE_LISTCTRL" = "yes"; then
15140 if test "$wxUSE_IMAGLIST" = "yes"; then
15141 cat >> confdefs.h <<\EOF
15142 #define wxUSE_LISTCTRL 1
15143 EOF
15144
15145 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
15146 else
15147 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
15148 fi
15149 fi
15150
15151 if test "$wxUSE_NOTEBOOK" = "yes"; then
15152 cat >> confdefs.h <<\EOF
15153 #define wxUSE_NOTEBOOK 1
15154 EOF
15155
15156 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
15157 fi
15158
15159 if test "$wxUSE_RADIOBOX" = "yes"; then
15160 cat >> confdefs.h <<\EOF
15161 #define wxUSE_RADIOBOX 1
15162 EOF
15163
15164 fi
15165
15166 if test "$wxUSE_RADIOBTN" = "yes"; then
15167 cat >> confdefs.h <<\EOF
15168 #define wxUSE_RADIOBTN 1
15169 EOF
15170
15171 fi
15172
15173 if test "$wxUSE_SASH" = "yes"; then
15174 cat >> confdefs.h <<\EOF
15175 #define wxUSE_SASH 1
15176 EOF
15177
15178 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
15179 fi
15180
15181 if test "$wxUSE_SCROLLBAR" = "yes"; then
15182 cat >> confdefs.h <<\EOF
15183 #define wxUSE_SCROLLBAR 1
15184 EOF
15185
15186 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
15187 fi
15188
15189 if test "$wxUSE_SLIDER" = "yes"; then
15190 cat >> confdefs.h <<\EOF
15191 #define wxUSE_SLIDER 1
15192 EOF
15193
15194 fi
15195
15196 if test "$wxUSE_SPINBTN" = "yes"; then
15197 cat >> confdefs.h <<\EOF
15198 #define wxUSE_SPINBTN 1
15199 EOF
15200
15201 fi
15202
15203 if test "$wxUSE_SPINCTRL" = "yes"; then
15204 cat >> confdefs.h <<\EOF
15205 #define wxUSE_SPINCTRL 1
15206 EOF
15207
15208 fi
15209
15210 if test "$wxUSE_SPLITTER" = "yes"; then
15211 cat >> confdefs.h <<\EOF
15212 #define wxUSE_SPLITTER 1
15213 EOF
15214
15215 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
15216 fi
15217
15218 if test "$wxUSE_STATBMP" = "yes"; then
15219 cat >> confdefs.h <<\EOF
15220 #define wxUSE_STATBMP 1
15221 EOF
15222
15223 fi
15224
15225 if test "$wxUSE_STATBOX" = "yes"; then
15226 cat >> confdefs.h <<\EOF
15227 #define wxUSE_STATBOX 1
15228 EOF
15229
15230 fi
15231
15232 if test "$wxUSE_STATLINE" = "yes"; then
15233 if test "$wxUSE_WINE" = 1 ; then
15234 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
15235 else
15236 cat >> confdefs.h <<\EOF
15237 #define wxUSE_STATLINE 1
15238 EOF
15239
15240 fi
15241 fi
15242
15243 if test "$wxUSE_STATUSBAR" = "yes"; then
15244 cat >> confdefs.h <<\EOF
15245 #define wxUSE_STATUSBAR 1
15246 EOF
15247
15248
15249 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
15250 fi
15251
15252 if test "$wxUSE_TABDIALOG" = "yes"; then
15253 cat >> confdefs.h <<\EOF
15254 #define wxUSE_TAB_DIALOG 1
15255 EOF
15256
15257 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
15258 fi
15259
15260 if test "$wxUSE_TOGGLEBTN" = "yes"; then
15261 cat >> confdefs.h <<\EOF
15262 #define wxUSE_TOGGLEBTN 1
15263 EOF
15264
15265 fi
15266
15267 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
15268 cat >> confdefs.h <<\EOF
15269 #define wxUSE_TOOLBAR_SIMPLE 1
15270 EOF
15271
15272 wxUSE_TOOLBAR="yes"
15273 fi
15274
15275 if test "$wxUSE_TOOLBAR" = "yes"; then
15276 cat >> confdefs.h <<\EOF
15277 #define wxUSE_TOOLBAR 1
15278 EOF
15279
15280
15281 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
15282 wxUSE_TOOLBAR_NATIVE="yes"
15283 fi
15284
15285 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
15286 fi
15287
15288 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
15289 cat >> confdefs.h <<\EOF
15290 #define wxUSE_TOOLBAR_NATIVE 1
15291 EOF
15292
15293 fi
15294
15295 if test "$wxUSE_TOOLTIPS" = "yes"; then
15296 if test "$wxUSE_MOTIF" = 1; then
15297 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
15298 else
15299 if test "$wxUSE_WINE" = 1; then
15300 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
15301 else
15302 cat >> confdefs.h <<\EOF
15303 #define wxUSE_TOOLTIPS 1
15304 EOF
15305
15306 fi
15307 fi
15308 fi
15309
15310 if test "$wxUSE_TREECTRL" = "yes"; then
15311 if test "$wxUSE_IMAGLIST" = "yes"; then
15312 cat >> confdefs.h <<\EOF
15313 #define wxUSE_TREECTRL 1
15314 EOF
15315
15316 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
15317 else
15318 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
15319 fi
15320 fi
15321
15322
15323
15324 if test "$wxUSE_DIRDLG" = "yes"; then
15325 if test "$wxUSE_CONSTRAINTS" != "yes"; then
15326 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
15327 else
15328 if test "$wxUSE_TREECTRL" != "yes"; then
15329 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
15330 else
15331 cat >> confdefs.h <<\EOF
15332 #define wxUSE_DIRDLG 1
15333 EOF
15334
15335 fi
15336 fi
15337 fi
15338
15339 if test "$wxUSE_TEXTDLG" = "yes"; then
15340 cat >> confdefs.h <<\EOF
15341 #define wxUSE_TEXTDLG 1
15342 EOF
15343
15344 fi
15345
15346 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
15347 if test "$wxUSE_CONSTRAINTS" != "yes"; then
15348 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
15349 else
15350 cat >> confdefs.h <<\EOF
15351 #define wxUSE_STARTUP_TIPS 1
15352 EOF
15353
15354 fi
15355 fi
15356
15357 if test "$wxUSE_PROGRESSDLG" = "yes"; then
15358 if test "$wxUSE_CONSTRAINTS" != "yes"; then
15359 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
15360 else
15361 cat >> confdefs.h <<\EOF
15362 #define wxUSE_PROGRESSDLG 1
15363 EOF
15364
15365 fi
15366 fi
15367
15368 if test "$wxUSE_MINIFRAME" = "yes"; then
15369 cat >> confdefs.h <<\EOF
15370 #define wxUSE_MINIFRAME 1
15371 EOF
15372
15373 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
15374 fi
15375
15376 if test "$wxUSE_HTML" = "yes"; then
15377 cat >> confdefs.h <<\EOF
15378 #define wxUSE_HTML 1
15379 EOF
15380
15381 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
15382 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
15383 fi
15384
15385 if test "$wxUSE_VALIDATORS" = "yes"; then
15386 cat >> confdefs.h <<\EOF
15387 #define wxUSE_VALIDATORS 1
15388 EOF
15389
15390 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
15391 fi
15392
15393 if test "$wxUSE_IMAGE" = "yes" ; then
15394 cat >> confdefs.h <<\EOF
15395 #define wxUSE_IMAGE 1
15396 EOF
15397
15398 fi
15399
15400 if test "$wxUSE_GIF" = "yes" ; then
15401 cat >> confdefs.h <<\EOF
15402 #define wxUSE_GIF 1
15403 EOF
15404
15405 fi
15406
15407 if test "$wxUSE_PCX" = "yes" ; then
15408 cat >> confdefs.h <<\EOF
15409 #define wxUSE_PCX 1
15410 EOF
15411
15412 fi
15413
15414 if test "$wxUSE_PNM" = "yes" ; then
15415 cat >> confdefs.h <<\EOF
15416 #define wxUSE_PNM 1
15417 EOF
15418
15419 fi
15420
15421 if test "$wxUSE_XPM" = "yes" ; then
15422 cat >> confdefs.h <<\EOF
15423 #define wxUSE_XPM 1
15424 EOF
15425
15426 fi
15427
15428
15429 if test "$cross_compiling" = "yes"; then
15430 OSINFO="\"$host\""
15431 else
15432 OSINFO=`uname -s -r -m`
15433 OSINFO="\"$OSINFO\""
15434 fi
15435
15436 cat >> confdefs.h <<EOF
15437 #define WXWIN_OS_DESCRIPTION $OSINFO
15438 EOF
15439
15440
15441
15442 GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
15443 OPENGL_LIBS="$OPENGL_LINK"
15444
15445 EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
15446 if test "$USE_MAC" = 1 ; then
15447 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
15448 fi
15449 if test "$wxUSE_GUI" = "yes"; then
15450 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
15451 fi
15452
15453 LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
15454
15455 INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
15456
15457 if test "$wxUSE_GTK" = 1; then
15458 WXCONFIG_INCLUDE=""
15459 else
15460 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
15461 fi
15462
15463 if test "$GXX" = yes ; then
15464 CXXWARNINGS="-Wall"
15465 fi
15466 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
15467
15468 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
15469 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
15470
15471 LDFLAGS="$LDFLAGS $PROFILE"
15472
15473 if test "$wxUSE_GUI" = "yes"; then
15474
15475 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag \
15476 drawing dynamic event font fractal image menu \
15477 minimal richedit"
15478
15479 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
15480 else
15481 SAMPLES_SUBDIRS=""
15482 fi
15483
15484 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
15572 echo "configure:15573: checking whether ${MAKE-make} sets \${MAKE}" >&5
15573 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
15574 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
15575 echo $ac_n "(cached) $ac_c" 1>&6
15576 else
15577 cat > conftestmake <<\EOF
15578 all:
15579 @echo 'ac_maketemp="${MAKE}"'
15580 EOF
15581 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15582 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
15583 if test -n "$ac_maketemp"; then
15584 eval ac_cv_prog_make_${ac_make}_set=yes
15585 else
15586 eval ac_cv_prog_make_${ac_make}_set=no
15587 fi
15588 rm -f conftestmake
15589 fi
15590 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
15591 echo "$ac_t""yes" 1>&6
15592 SET_MAKE=
15593 else
15594 echo "$ac_t""no" 1>&6
15595 SET_MAKE="MAKE=${MAKE-make}"
15596 fi
15597
15598
15599 if test -d include; then
15600 if test -d include/wx; then
15601 if test -d include/wx/${TOOLKIT_DIR}; then
15602 if test -f include/wx/${TOOLKIT_DIR}/setup.h; then
15603 mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h
15604 fi
15605 fi
15606 fi
15607 fi
15608
15609
15610
15611 if test "$wxUSE_GUI" = "yes"; then
15612 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
15613 wx_cv_path_ifs=$PATH_IFS
15614 wx_cv_program_ext=$PROGRAM_EXT
15615 wx_cv_target_library=$WX_TARGET_LIBRARY
15616 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
15617 subdirs="demos samples utils contrib"
15618
15619 fi
15620
15621 trap '' 1 2 15
15622 cat > confcache <<\EOF
15623 # This file is a shell script that caches the results of configure
15624 # tests run on this system so they can be shared between configure
15625 # scripts and configure runs. It is not useful on other systems.
15626 # If it contains results you don't want to keep, you may remove or edit it.
15627 #
15628 # By default, configure uses ./config.cache as the cache file,
15629 # creating it if it does not exist already. You can give configure
15630 # the --cache-file=FILE option to use a different cache file; that is
15631 # what configure does when it calls configure scripts in
15632 # subdirectories, so they share the cache.
15633 # Giving --cache-file=/dev/null disables caching, for debugging configure.
15634 # config.status only pays attention to the cache file if you give it the
15635 # --recheck option to rerun configure.
15636 #
15637 EOF
15638 # The following way of writing the cache mishandles newlines in values,
15639 # but we know of no workaround that is simple, portable, and efficient.
15640 # So, don't put newlines in cache variables' values.
15641 # Ultrix sh set writes to stderr and can't be redirected directly,
15642 # and sets the high bit in the cache file unless we assign to the vars.
15643 (set) 2>&1 |
15644 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15645 *ac_space=\ *)
15646 # `set' does not quote correctly, so add quotes (double-quote substitution
15647 # turns \\\\ into \\, and sed turns \\ into \).
15648 sed -n \
15649 -e "s/'/'\\\\''/g" \
15650 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15651 ;;
15652 *)
15653 # `set' quotes correctly as required by POSIX, so do not add quotes.
15654 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15655 ;;
15656 esac >> confcache
15657 if cmp -s $cache_file confcache; then
15658 :
15659 else
15660 if test -w $cache_file; then
15661 echo "updating cache $cache_file"
15662 cat confcache > $cache_file
15663 else
15664 echo "not updating unwritable cache $cache_file"
15665 fi
15666 fi
15667 rm -f confcache
15668
15669 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15670
15671 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15672 # Let make expand exec_prefix.
15673 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15674
15675 # Any assignment to VPATH causes Sun make to only execute
15676 # the first set of double-colon rules, so remove it if not needed.
15677 # If there is a colon in the path, we need to keep it.
15678 if test "x$srcdir" = x.; then
15679 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15680 fi
15681
15682 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15683
15684 DEFS=-DHAVE_CONFIG_H
15685
15686 # Without the "./", some shells look in PATH for config.status.
15687 : ${CONFIG_STATUS=./config.status}
15688
15689 echo creating $CONFIG_STATUS
15690 rm -f $CONFIG_STATUS
15691 cat > $CONFIG_STATUS <<EOF
15692 #! /bin/sh
15693 # Generated automatically by configure.
15694 # Run this file to recreate the current configuration.
15695 # This directory was configured as follows,
15696 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15697 #
15698 # $0 $ac_configure_args
15699 #
15700 # Compiler output produced by configure, useful for debugging
15701 # configure, is in ./config.log if it exists.
15702
15703 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15704 for ac_option
15705 do
15706 case "\$ac_option" in
15707 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15708 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15709 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15710 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15711 echo "$CONFIG_STATUS generated by autoconf version 2.13"
15712 exit 0 ;;
15713 -help | --help | --hel | --he | --h)
15714 echo "\$ac_cs_usage"; exit 0 ;;
15715 *) echo "\$ac_cs_usage"; exit 1 ;;
15716 esac
15717 done
15718
15719 ac_given_srcdir=$srcdir
15720 ac_given_INSTALL="$INSTALL"
15721
15722 trap 'rm -fr `echo "
15723 wx-config
15724 src/make.env
15725 src/makeprog.env
15726 src/makelib.env
15727 Makefile
15728 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15729 EOF
15730 cat >> $CONFIG_STATUS <<EOF
15731
15732 # Protect against being on the right side of a sed subst in config.status.
15733 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15734 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15735 $ac_vpsub
15736 $extrasub
15737 s%@SHELL@%$SHELL%g
15738 s%@CFLAGS@%$CFLAGS%g
15739 s%@CPPFLAGS@%$CPPFLAGS%g
15740 s%@CXXFLAGS@%$CXXFLAGS%g
15741 s%@FFLAGS@%$FFLAGS%g
15742 s%@DEFS@%$DEFS%g
15743 s%@LDFLAGS@%$LDFLAGS%g
15744 s%@LIBS@%$LIBS%g
15745 s%@exec_prefix@%$exec_prefix%g
15746 s%@prefix@%$prefix%g
15747 s%@program_transform_name@%$program_transform_name%g
15748 s%@bindir@%$bindir%g
15749 s%@sbindir@%$sbindir%g
15750 s%@libexecdir@%$libexecdir%g
15751 s%@datadir@%$datadir%g
15752 s%@sysconfdir@%$sysconfdir%g
15753 s%@sharedstatedir@%$sharedstatedir%g
15754 s%@localstatedir@%$localstatedir%g
15755 s%@libdir@%$libdir%g
15756 s%@includedir@%$includedir%g
15757 s%@oldincludedir@%$oldincludedir%g
15758 s%@infodir@%$infodir%g
15759 s%@mandir@%$mandir%g
15760 s%@host@%$host%g
15761 s%@host_alias@%$host_alias%g
15762 s%@host_cpu@%$host_cpu%g
15763 s%@host_vendor@%$host_vendor%g
15764 s%@host_os@%$host_os%g
15765 s%@target@%$target%g
15766 s%@target_alias@%$target_alias%g
15767 s%@target_cpu@%$target_cpu%g
15768 s%@target_vendor@%$target_vendor%g
15769 s%@target_os@%$target_os%g
15770 s%@build@%$build%g
15771 s%@build_alias@%$build_alias%g
15772 s%@build_cpu@%$build_cpu%g
15773 s%@build_vendor@%$build_vendor%g
15774 s%@build_os@%$build_os%g
15775 s%@CC@%$CC%g
15776 s%@CPP@%$CPP%g
15777 s%@CXX@%$CXX%g
15778 s%@CXXCPP@%$CXXCPP%g
15779 s%@RANLIB@%$RANLIB%g
15780 s%@AR@%$AR%g
15781 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15782 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15783 s%@INSTALL_DATA@%$INSTALL_DATA%g
15784 s%@STRIP@%$STRIP%g
15785 s%@YACC@%$YACC%g
15786 s%@LEX@%$LEX%g
15787 s%@LEXLIB@%$LEXLIB%g
15788 s%@LN_S@%$LN_S%g
15789 s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
15790 s%@GTK_CONFIG@%$GTK_CONFIG%g
15791 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
15792 s%@GTK_LIBS@%$GTK_LIBS%g
15793 s%@X_CFLAGS@%$X_CFLAGS%g
15794 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
15795 s%@X_LIBS@%$X_LIBS%g
15796 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
15797 s%@LEX_STEM@%$LEX_STEM%g
15798 s%@PATH_IFS@%$PATH_IFS%g
15799 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
15800 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
15801 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
15802 s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
15803 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
15804 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
15805 s%@WX_LIBRARY@%$WX_LIBRARY%g
15806 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
15807 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
15808 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
15809 s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
15810 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
15811 s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
15812 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
15813 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
15814 s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
15815 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
15816 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
15817 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
15818 s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
15819 s%@WX_ALL@%$WX_ALL%g
15820 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
15821 s%@SHARED_LD@%$SHARED_LD%g
15822 s%@PIC_FLAG@%$PIC_FLAG%g
15823 s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
15824 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
15825 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
15826 s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
15827 s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
15828 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
15829 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
15830 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
15831 s%@USE_GUI@%$USE_GUI%g
15832 s%@AFMINSTALL@%$AFMINSTALL%g
15833 s%@TOOLKIT@%$TOOLKIT%g
15834 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
15835 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
15836 s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
15837 s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
15838 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
15839 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
15840 s%@ALL_DEPFILES@%$ALL_DEPFILES%g
15841 s%@GUIDIST@%$GUIDIST%g
15842 s%@PORT_FILES@%$PORT_FILES%g
15843 s%@DISTDIR@%$DISTDIR%g
15844 s%@RPM_SPEC@%$RPM_SPEC%g
15845 s%@RPM_FILES@%$RPM_FILES%g
15846 s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
15847 s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
15848 s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
15849 s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
15850 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
15851 s%@USER_SUBDIRS@%$USER_SUBDIRS%g
15852 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
15853 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
15854 s%@EXTRADEFS@%$EXTRADEFS%g
15855 s%@LD_LIBS@%$LD_LIBS%g
15856 s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
15857 s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
15858 s%@RESPROGRAM@%$RESPROGRAM%g
15859 s%@RESCOMP@%$RESCOMP%g
15860 s%@RESFLAGS@%$RESFLAGS%g
15861 s%@DLLTOOL@%$DLLTOOL%g
15862 s%@AS@%$AS%g
15863 s%@NM@%$NM%g
15864 s%@LD@%$LD%g
15865 s%@MAKEINFO@%$MAKEINFO%g
15866 s%@SET_MAKE@%$SET_MAKE%g
15867 s%@subdirs@%$subdirs%g
15868
15869 CEOF
15870 EOF
15871
15872 cat >> $CONFIG_STATUS <<\EOF
15873
15874 # Split the substitutions into bite-sized pieces for seds with
15875 # small command number limits, like on Digital OSF/1 and HP-UX.
15876 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
15877 ac_file=1 # Number of current file.
15878 ac_beg=1 # First line for current file.
15879 ac_end=$ac_max_sed_cmds # Line after last line for current file.
15880 ac_more_lines=:
15881 ac_sed_cmds=""
15882 while $ac_more_lines; do
15883 if test $ac_beg -gt 1; then
15884 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
15885 else
15886 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
15887 fi
15888 if test ! -s conftest.s$ac_file; then
15889 ac_more_lines=false
15890 rm -f conftest.s$ac_file
15891 else
15892 if test -z "$ac_sed_cmds"; then
15893 ac_sed_cmds="sed -f conftest.s$ac_file"
15894 else
15895 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
15896 fi
15897 ac_file=`expr $ac_file + 1`
15898 ac_beg=$ac_end
15899 ac_end=`expr $ac_end + $ac_max_sed_cmds`
15900 fi
15901 done
15902 if test -z "$ac_sed_cmds"; then
15903 ac_sed_cmds=cat
15904 fi
15905 EOF
15906
15907 cat >> $CONFIG_STATUS <<EOF
15908
15909 CONFIG_FILES=\${CONFIG_FILES-"wx-config
15910 src/make.env
15911 src/makeprog.env
15912 src/makelib.env
15913 Makefile
15914 "}
15915 EOF
15916 cat >> $CONFIG_STATUS <<\EOF
15917 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
15918 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15919 case "$ac_file" in
15920 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15921 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15922 *) ac_file_in="${ac_file}.in" ;;
15923 esac
15924
15925 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
15926
15927 # Remove last slash and all that follows it. Not all systems have dirname.
15928 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15929 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15930 # The file is in a subdirectory.
15931 test ! -d "$ac_dir" && mkdir "$ac_dir"
15932 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
15933 # A "../" for each directory in $ac_dir_suffix.
15934 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
15935 else
15936 ac_dir_suffix= ac_dots=
15937 fi
15938
15939 case "$ac_given_srcdir" in
15940 .) srcdir=.
15941 if test -z "$ac_dots"; then top_srcdir=.
15942 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
15943 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
15944 *) # Relative path.
15945 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
15946 top_srcdir="$ac_dots$ac_given_srcdir" ;;
15947 esac
15948
15949 case "$ac_given_INSTALL" in
15950 [/$]*) INSTALL="$ac_given_INSTALL" ;;
15951 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
15952 esac
15953
15954 echo creating "$ac_file"
15955 rm -f "$ac_file"
15956 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
15957 case "$ac_file" in
15958 *Makefile*) ac_comsub="1i\\
15959 # $configure_input" ;;
15960 *) ac_comsub= ;;
15961 esac
15962
15963 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15964 sed -e "$ac_comsub
15965 s%@configure_input@%$configure_input%g
15966 s%@srcdir@%$srcdir%g
15967 s%@top_srcdir@%$top_srcdir%g
15968 s%@INSTALL@%$INSTALL%g
15969 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
15970 fi; done
15971 rm -f conftest.s*
15972
15973 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15974 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15975 #
15976 # ac_d sets the value in "#define NAME VALUE" lines.
15977 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15978 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
15979 ac_dC='\3'
15980 ac_dD='%g'
15981 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
15982 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15983 ac_uB='\([ ]\)%\1#\2define\3'
15984 ac_uC=' '
15985 ac_uD='\4%g'
15986 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15987 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15988 ac_eB='$%\1#\2define\3'
15989 ac_eC=' '
15990 ac_eD='%g'
15991
15992 if test "${CONFIG_HEADERS+set}" != set; then
15993 EOF
15994 cat >> $CONFIG_STATUS <<EOF
15995 CONFIG_HEADERS="setup.h:setup.h.in"
15996 EOF
15997 cat >> $CONFIG_STATUS <<\EOF
15998 fi
15999 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16000 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16001 case "$ac_file" in
16002 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16003 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16004 *) ac_file_in="${ac_file}.in" ;;
16005 esac
16006
16007 echo creating $ac_file
16008
16009 rm -f conftest.frag conftest.in conftest.out
16010 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16011 cat $ac_file_inputs > conftest.in
16012
16013 EOF
16014
16015 # Transform confdefs.h into a sed script conftest.vals that substitutes
16016 # the proper values into config.h.in to produce config.h. And first:
16017 # Protect against being on the right side of a sed subst in config.status.
16018 # Protect against being in an unquoted here document in config.status.
16019 rm -f conftest.vals
16020 cat > conftest.hdr <<\EOF
16021 s/[\\&%]/\\&/g
16022 s%[\\$`]%\\&%g
16023 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16024 s%ac_d%ac_u%gp
16025 s%ac_u%ac_e%gp
16026 EOF
16027 sed -n -f conftest.hdr confdefs.h > conftest.vals
16028 rm -f conftest.hdr
16029
16030 # This sed command replaces #undef with comments. This is necessary, for
16031 # example, in the case of _POSIX_SOURCE, which is predefined and required
16032 # on some systems where configure will not decide to define it.
16033 cat >> conftest.vals <<\EOF
16034 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16035 EOF
16036
16037 # Break up conftest.vals because some shells have a limit on
16038 # the size of here documents, and old seds have small limits too.
16039
16040 rm -f conftest.tail
16041 while :
16042 do
16043 ac_lines=`grep -c . conftest.vals`
16044 # grep -c gives empty output for an empty file on some AIX systems.
16045 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16046 # Write a limited-size here document to conftest.frag.
16047 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16048 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16049 echo 'CEOF
16050 sed -f conftest.frag conftest.in > conftest.out
16051 rm -f conftest.in
16052 mv conftest.out conftest.in
16053 ' >> $CONFIG_STATUS
16054 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16055 rm -f conftest.vals
16056 mv conftest.tail conftest.vals
16057 done
16058 rm -f conftest.vals
16059
16060 cat >> $CONFIG_STATUS <<\EOF
16061 rm -f conftest.frag conftest.h
16062 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16063 cat conftest.in >> conftest.h
16064 rm -f conftest.in
16065 if cmp -s $ac_file conftest.h 2>/dev/null; then
16066 echo "$ac_file is unchanged"
16067 rm -f conftest.h
16068 else
16069 # Remove last slash and all that follows it. Not all systems have dirname.
16070 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16071 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16072 # The file is in a subdirectory.
16073 test ! -d "$ac_dir" && mkdir "$ac_dir"
16074 fi
16075 rm -f $ac_file
16076 mv conftest.h $ac_file
16077 fi
16078 fi; done
16079
16080 EOF
16081 cat >> $CONFIG_STATUS <<EOF
16082
16083 TOOLKIT_DIR="${TOOLKIT_DIR}"
16084 TOOLKIT_NAME="${TOOLKIT_NAME}"
16085 LN_S="${LN_S}"
16086
16087
16088 EOF
16089 cat >> $CONFIG_STATUS <<\EOF
16090
16091 chmod +x wx-config
16092 mv wx-config wx${TOOLKIT_NAME}-config
16093 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
16094
16095
16096 if test ! -d lib; then
16097 mkdir lib
16098 fi
16099 if test ! -d lib/wx; then
16100 mkdir lib/wx
16101 fi
16102 if test ! -d lib/wx/include; then
16103 mkdir lib/wx/include
16104 fi
16105 if test ! -d lib/wx/include/wx; then
16106 mkdir lib/wx/include/wx
16107 fi
16108 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
16109 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
16110 fi
16111 if test -f setup.h; then
16112 cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
16113 fi
16114
16115
16116 if test ! -d include; then
16117 mkdir include
16118 fi
16119 if test ! -d include/wx; then
16120 mkdir include/wx
16121 fi
16122 if test ! -d include/wx/${TOOLKIT_DIR}; then
16123 mkdir include/wx/${TOOLKIT_DIR}
16124 fi
16125 if test -f setup.h; then
16126 cp -fp setup.h include/wx/${TOOLKIT_DIR}/setup.h
16127 fi
16128
16129
16130 exit 0
16131 EOF
16132 chmod +x $CONFIG_STATUS
16133 rm -fr confdefs* $ac_clean_files
16134 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
16135
16136 if test "$no_recursion" != yes; then
16137
16138 # Remove --cache-file and --srcdir arguments so they do not pile up.
16139 ac_sub_configure_args=
16140 ac_prev=
16141 for ac_arg in $ac_configure_args; do
16142 if test -n "$ac_prev"; then
16143 ac_prev=
16144 continue
16145 fi
16146 case "$ac_arg" in
16147 -cache-file | --cache-file | --cache-fil | --cache-fi \
16148 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16149 ac_prev=cache_file ;;
16150 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16151 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
16152 ;;
16153 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16154 ac_prev=srcdir ;;
16155 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16156 ;;
16157 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
16158 esac
16159 done
16160
16161 for ac_config_dir in demos samples utils contrib; do
16162
16163 # Do not complain, so a configure script can configure whichever
16164 # parts of a large source tree are present.
16165 if test ! -d $srcdir/$ac_config_dir; then
16166 continue
16167 fi
16168
16169 echo configuring in $ac_config_dir
16170
16171 case "$srcdir" in
16172 .) ;;
16173 *)
16174 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
16175 else
16176 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
16177 fi
16178 ;;
16179 esac
16180
16181 ac_popdir=`pwd`
16182 cd $ac_config_dir
16183
16184 # A "../" for each directory in /$ac_config_dir.
16185 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
16186
16187 case "$srcdir" in
16188 .) # No --srcdir option. We are building in place.
16189 ac_sub_srcdir=$srcdir ;;
16190 /*) # Absolute path.
16191 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
16192 *) # Relative path.
16193 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
16194 esac
16195
16196 # Check for guested configure; otherwise get Cygnus style configure.
16197 if test -f $ac_sub_srcdir/configure; then
16198 ac_sub_configure=$ac_sub_srcdir/configure
16199 elif test -f $ac_sub_srcdir/configure.in; then
16200 ac_sub_configure=$ac_configure
16201 else
16202 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
16203 ac_sub_configure=
16204 fi
16205
16206 # The recursion is here.
16207 if test -n "$ac_sub_configure"; then
16208
16209 # Make the cache file name correct relative to the subdirectory.
16210 case "$cache_file" in
16211 /*) ac_sub_cache_file=$cache_file ;;
16212 *) # Relative path.
16213 ac_sub_cache_file="$ac_dots$cache_file" ;;
16214 esac
16215 case "$ac_given_INSTALL" in
16216 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16217 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16218 esac
16219
16220 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
16221 # The eval makes quoting arguments work.
16222 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
16223 then :
16224 else
16225 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
16226 fi
16227 fi
16228
16229 cd $ac_popdir
16230 done
16231 fi
16232
16233