]> git.saurik.com Git - wxWidgets.git/blob - configure
Changed WXUNUSED to WXUNUSED_UNLESS_DEBUG
[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 USE_MAC=0
947
948 USE_LINUX=
949 USE_SGI=
950 USE_HPUX=
951 USE_SYSV=
952 USE_SVR4=
953 USE_AIX=
954 USE_SUN=
955 USE_SOLARIS=
956 USE_SUNOS=
957 USE_ALPHA=
958 USE_OSF=
959 USE_BSD=
960 USE_FREEBSD=
961 USE_OPENBSD=
962 USE_NETBSD=
963 USE_VMS=
964 USE_ULTRIX=
965 USE_CYGWIN=
966 USE_MINGW=
967 USE_DATA_GENERAL=
968
969 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
970
971 ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF MAC WINE PM"
972
973 DEFAULT_wxUSE_GTK=0
974 DEFAULT_wxUSE_MOTIF=0
975 DEFAULT_wxUSE_MSW=0
976 DEFAULT_wxUSE_MAC=0
977 DEFAULT_wxUSE_WINE=0
978 DEFAULT_wxUSE_PM=0
979
980 DEFAULT_DEFAULT_wxUSE_GTK=0
981 DEFAULT_DEFAULT_wxUSE_MOTIF=0
982 DEFAULT_DEFAULT_wxUSE_MSW=0
983 DEFAULT_DEFAULT_wxUSE_MAC=0
984 DEFAULT_DEFAULT_wxUSE_WINE=0
985 DEFAULT_DEFAULT_wxUSE_PM=0
986
987 PROGRAM_EXT=
988
989 case "${host}" in
990 *-hp-hpux* )
991 USE_HPUX=1
992 DEFAULT_DEFAULT_wxUSE_MOTIF=1
993 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
994 cat >> confdefs.h <<\EOF
995 #define __HPUX__ 1
996 EOF
997
998 ;;
999 *-*-linux* )
1000 USE_LINUX=1
1001 cat >> confdefs.h <<\EOF
1002 #define __LINUX__ 1
1003 EOF
1004
1005 TMP=`uname -m`
1006 if test "x$TMP" = "xalpha"; then
1007 USE_ALPHA=1
1008 cat >> confdefs.h <<\EOF
1009 #define __ALPHA__ 1
1010 EOF
1011
1012 fi
1013 DEFAULT_DEFAULT_wxUSE_GTK=1
1014 ;;
1015 *-*-irix5* | *-*-irix6* )
1016 USE_SGI=1
1017 USE_SVR4=1
1018 cat >> confdefs.h <<\EOF
1019 #define __SGI__ 1
1020 EOF
1021
1022 cat >> confdefs.h <<\EOF
1023 #define __SVR4__ 1
1024 EOF
1025
1026 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1027 ;;
1028 *-*-solaris2* )
1029 USE_SUN=1
1030 USE_SOLARIS=1
1031 USE_SVR4=1
1032 cat >> confdefs.h <<\EOF
1033 #define __SUN__ 1
1034 EOF
1035
1036 cat >> confdefs.h <<\EOF
1037 #define __SOLARIS__ 1
1038 EOF
1039
1040 cat >> confdefs.h <<\EOF
1041 #define __SVR4__ 1
1042 EOF
1043
1044 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1045 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1046 ;;
1047 *-*-sunos4* )
1048 USE_SUN=1
1049 USE_SUNOS=1
1050 USE_BSD=1
1051 cat >> confdefs.h <<\EOF
1052 #define __SUN__ 1
1053 EOF
1054
1055 cat >> confdefs.h <<\EOF
1056 #define __SUNOS__ 1
1057 EOF
1058
1059 cat >> confdefs.h <<\EOF
1060 #define __BSD__ 1
1061 EOF
1062
1063 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1064 ;;
1065 *-*-freebsd*)
1066 USE_BSD=1
1067 USE_FREEBSD=1
1068 cat >> confdefs.h <<\EOF
1069 #define __FREEBSD__ 1
1070 EOF
1071
1072 cat >> confdefs.h <<\EOF
1073 #define __BSD__ 1
1074 EOF
1075
1076 DEFAULT_DEFAULT_wxUSE_GTK=1
1077 ;;
1078 *-*-openbsd*)
1079 USE_BSD=1
1080 USE_OPENBSD=1
1081 cat >> confdefs.h <<\EOF
1082 #define __FREEBSD__ 1
1083 EOF
1084
1085 cat >> confdefs.h <<\EOF
1086 #define __OPENBSD__ 1
1087 EOF
1088
1089 DEFAULT_DEFAULT_wxUSE_GTK=1
1090 ;;
1091 *-*-netbsd*)
1092 USE_BSD=1
1093 USE_NETBSD=1
1094 cat >> confdefs.h <<\EOF
1095 #define __FREEBSD__ 1
1096 EOF
1097
1098 cat >> confdefs.h <<\EOF
1099 #define __NETBSD__ 1
1100 EOF
1101
1102 DEFAULT_DEFAULT_wxUSE_GTK=1
1103 ;;
1104 *-*-osf* )
1105 USE_ALPHA=1
1106 USE_OSF=1
1107 cat >> confdefs.h <<\EOF
1108 #define __ALPHA__ 1
1109 EOF
1110
1111 cat >> confdefs.h <<\EOF
1112 #define __OSF__ 1
1113 EOF
1114
1115 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1116 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1117 ;;
1118 *-*-dgux5* )
1119 USE_ALPHA=1
1120 USE_SVR4=1
1121 cat >> confdefs.h <<\EOF
1122 #define __ALPHA__ 1
1123 EOF
1124
1125 cat >> confdefs.h <<\EOF
1126 #define __SVR4__ 1
1127 EOF
1128
1129 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1130 ;;
1131 *-*-sysv5* )
1132 USE_SYSV=1
1133 USE_SVR4=1
1134 cat >> confdefs.h <<\EOF
1135 #define __SYSV__ 1
1136 EOF
1137
1138 cat >> confdefs.h <<\EOF
1139 #define __SVR4__ 1
1140 EOF
1141
1142 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1143 ;;
1144 *-*-aix* )
1145 USE_AIX=1
1146 USE_SYSV=1
1147 USE_SVR4=1
1148 cat >> confdefs.h <<\EOF
1149 #define __AIX__ 1
1150 EOF
1151
1152 cat >> confdefs.h <<\EOF
1153 #define __SYSV__ 1
1154 EOF
1155
1156 cat >> confdefs.h <<\EOF
1157 #define __SVR4__ 1
1158 EOF
1159
1160 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1161 ;;
1162
1163 *-*-cygwin32* | *-*-mingw32* )
1164 USE_UNIX=0
1165 USE_WIN32=1
1166 cat >> confdefs.h <<\EOF
1167 #define __WIN32__ 1
1168 EOF
1169
1170 cat >> confdefs.h <<\EOF
1171 #define __WIN95__ 1
1172 EOF
1173
1174 cat >> confdefs.h <<\EOF
1175 #define __WINDOWS__ 1
1176 EOF
1177
1178 cat >> confdefs.h <<\EOF
1179 #define __GNUWIN32__ 1
1180 EOF
1181
1182 cat >> confdefs.h <<\EOF
1183 #define STRICT 1
1184 EOF
1185
1186 cat >> confdefs.h <<\EOF
1187 #define WINVER 0x0400
1188 EOF
1189
1190 PROGRAM_EXT=".exe"
1191 DEFAULT_DEFAULT_wxUSE_MSW=1
1192 ;;
1193
1194 *-pc-os2_emx )
1195 cat >> confdefs.h <<\EOF
1196 #define __EMX__ 1
1197 EOF
1198
1199 PROGRAM_EXT=".exe"
1200 DEFAULT_DEFAULT_wxUSE_PM=1
1201 ;;
1202
1203 *-*-darwin* )
1204 USE_BSD=1
1205 USE_MAC=1
1206 cat >> confdefs.h <<\EOF
1207 #define __MAC__ 1
1208 EOF
1209
1210 cat >> confdefs.h <<\EOF
1211 #define __BSD__ 1
1212 EOF
1213
1214 cat >> confdefs.h <<\EOF
1215 #define __UNIX__ 1
1216 EOF
1217
1218 DEFAULT_DEFAULT_wxUSE_MAC=1
1219 ;;
1220
1221 *-*-beos* )
1222 USE_BEOS=1
1223 cat >> confdefs.h <<\EOF
1224 #define __BEOS__ 1
1225 EOF
1226
1227 ;;
1228
1229 *)
1230 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1231 esac
1232
1233 if test "$USE_UNIX" = 1 ; then
1234 wxUSE_UNIX=yes
1235 cat >> confdefs.h <<\EOF
1236 #define __UNIX__ 1
1237 EOF
1238
1239
1240 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1241 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1242 fi
1243
1244 if test "$USE_BEOS" = 1; then
1245 SRC_SUBDIRS="$SRC_SUBDIRS be"
1246 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
1247 fi
1248
1249 if test "$USE_LINUX" = 1; then
1250 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
1251 echo "configure:1252: checking for gettext in -lc" >&5
1252 ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1253 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1254 echo $ac_n "(cached) $ac_c" 1>&6
1255 else
1256 ac_save_LIBS="$LIBS"
1257 LIBS="-lc $LIBS"
1258 cat > conftest.$ac_ext <<EOF
1259 #line 1260 "configure"
1260 #include "confdefs.h"
1261 /* Override any gcc2 internal prototype to avoid an error. */
1262 /* We use char because int might match the return type of a gcc2
1263 builtin and then its argument prototype would still apply. */
1264 char gettext();
1265
1266 int main() {
1267 gettext()
1268 ; return 0; }
1269 EOF
1270 if { (eval echo configure:1271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1271 rm -rf conftest*
1272 eval "ac_cv_lib_$ac_lib_var=yes"
1273 else
1274 echo "configure: failed program was:" >&5
1275 cat conftest.$ac_ext >&5
1276 rm -rf conftest*
1277 eval "ac_cv_lib_$ac_lib_var=no"
1278 fi
1279 rm -f conftest*
1280 LIBS="$ac_save_LIBS"
1281
1282 fi
1283 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1284 echo "$ac_t""yes" 1>&6
1285 cat >> confdefs.h <<\EOF
1286 #define wxHAVE_GLIBC2 1
1287 EOF
1288
1289 else
1290 echo "$ac_t""no" 1>&6
1291 fi
1292
1293 fi
1294
1295
1296
1297
1298 wx_arg_cache_file="configarg.cache"
1299 echo "loading argument cache $wx_arg_cache_file"
1300 rm -f ${wx_arg_cache_file}.tmp
1301 touch ${wx_arg_cache_file}.tmp
1302 touch ${wx_arg_cache_file}
1303
1304
1305 DEBUG_CONFIGURE=0
1306 if test $DEBUG_CONFIGURE = 1; then
1307 DEFAULT_wxUSE_THREADS=yes
1308
1309 DEFAULT_wxUSE_SHARED=yes
1310 DEFAULT_wxUSE_BURNT_NAME=no
1311 DEFAULT_wxUSE_OPTIMISE=yes
1312 DEFAULT_wxUSE_PROFILE=no
1313 DEFAULT_wxUSE_NO_DEPS=no
1314 DEFAULT_wxUSE_NO_RTTI=no
1315 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1316 DEFAULT_wxUSE_PERMISSIVE=no
1317 DEFAULT_wxUSE_DEBUG_FLAG=yes
1318 DEFAULT_wxUSE_DEBUG_INFO=yes
1319 DEFAULT_wxUSE_DEBUG_GDB=yes
1320 DEFAULT_wxUSE_MEM_TRACING=no
1321 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1322 DEFAULT_wxUSE_DMALLOC=no
1323 DEFAULT_wxUSE_APPLE_IEEE=no
1324
1325 DEFAULT_wxUSE_LOG=yes
1326
1327 DEFAULT_wxUSE_GUI=yes
1328
1329 DEFAULT_wxUSE_ZLIB=no
1330 DEFAULT_wxUSE_LIBPNG=no
1331 DEFAULT_wxUSE_LIBJPEG=no
1332 DEFAULT_wxUSE_LIBTIFF=no
1333 DEFAULT_wxUSE_ODBC=no
1334 DEFAULT_wxUSE_FREETYPE=no
1335 DEFAULT_wxUSE_OPENGL=no
1336
1337 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1338 DEFAULT_wxUSE_STD_IOSTREAM=no
1339 DEFAULT_wxUSE_FILE=no
1340 DEFAULT_wxUSE_TEXTFILE=no
1341 DEFAULT_wxUSE_TIMEDATE=no
1342 DEFAULT_wxUSE_WAVE=no
1343 DEFAULT_wxUSE_INTL=no
1344 DEFAULT_wxUSE_CONFIG=no
1345 DEFAULT_wxUSE_STREAMS=no
1346 DEFAULT_wxUSE_SOCKETS=no
1347 DEFAULT_wxUSE_DIALUP_MANAGER=no
1348 DEFAULT_wxUSE_SERIAL=no
1349 DEFAULT_wxUSE_JOYSTICK=no
1350 DEFAULT_wxUSE_DYNLIB_CLASS=no
1351 DEFAULT_wxUSE_LONGLONG=no
1352 DEFAULT_wxUSE_GEOMETRY=no
1353
1354 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1355 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1356 DEFAULT_wxUSE_POSTSCRIPT=no
1357
1358 DEFAULT_wxUSE_X_RESOURCES=no
1359 DEFAULT_wxUSE_CLIPBOARD=no
1360 DEFAULT_wxUSE_TOOLTIPS=no
1361 DEFAULT_wxUSE_DRAG_AND_DROP=no
1362 DEFAULT_wxUSE_SPLINES=no
1363
1364 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1365 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1366 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1367
1368 DEFAULT_wxUSE_PROLOGIO=no
1369 DEFAULT_wxUSE_RESOURCES=no
1370 DEFAULT_wxUSE_CONSTRAINTS=no
1371 DEFAULT_wxUSE_IPC=no
1372 DEFAULT_wxUSE_HELP=no
1373 DEFAULT_wxUSE_WXTREE=no
1374 DEFAULT_wxUSE_METAFILE=no
1375
1376 DEFAULT_wxUSE_COMMONDLGS=no
1377 DEFAULT_wxUSE_DIRDLG=no
1378 DEFAULT_wxUSE_TEXTDLG=no
1379 DEFAULT_wxUSE_STARTUP_TIPS=no
1380 DEFAULT_wxUSE_PROGRESSDLG=no
1381 DEFAULT_wxUSE_MINIFRAME=no
1382 DEFAULT_wxUSE_HTML=no
1383 DEFAULT_wxUSE_FILESYSTEM=no
1384 DEFAULT_wxUSE_FS_INET=no
1385 DEFAULT_wxUSE_FS_ZIP=no
1386 DEFAULT_wxUSE_BUSYINFO=no
1387 DEFAULT_wxUSE_ZIPSTREAM=no
1388 DEFAULT_wxUSE_VALIDATORS=yes
1389
1390 DEFAULT_wxUSE_ACCEL=no
1391 DEFAULT_wxUSE_CARET=no
1392 DEFAULT_wxUSE_BMPBUTTON=no
1393 DEFAULT_wxUSE_CHECKBOX=no
1394 DEFAULT_wxUSE_CHECKLST=no
1395 DEFAULT_wxUSE_CHOICE=yes
1396 DEFAULT_wxUSE_COMBOBOX=no
1397 DEFAULT_wxUSE_GAUGE=no
1398 DEFAULT_wxUSE_GRID=no
1399 DEFAULT_wxUSE_NEW_GRID=no
1400 DEFAULT_wxUSE_IMAGLIST=no
1401 DEFAULT_wxUSE_LISTBOX=no
1402 DEFAULT_wxUSE_LISTCTRL=no
1403 DEFAULT_wxUSE_NOTEBOOK=no
1404 DEFAULT_wxUSE_RADIOBOX=no
1405 DEFAULT_wxUSE_RADIOBTN=no
1406 DEFAULT_wxUSE_SASH=no
1407 DEFAULT_wxUSE_SCROLLBAR=no
1408 DEFAULT_wxUSE_SLIDER=no
1409 DEFAULT_wxUSE_SPINBTN=no
1410 DEFAULT_wxUSE_SPINCTRL=no
1411 DEFAULT_wxUSE_SPLITTER=no
1412 DEFAULT_wxUSE_STATBMP=no
1413 DEFAULT_wxUSE_STATBOX=no
1414 DEFAULT_wxUSE_STATLINE=no
1415 DEFAULT_wxUSE_STATUSBAR=yes
1416 DEFAULT_wxUSE_TABDIALOG=no
1417 DEFAULT_wxUSE_TOGGLEBTN=no
1418 DEFAULT_wxUSE_TOOLBAR=no
1419 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1420 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1421 DEFAULT_wxUSE_TREECTRL=no
1422
1423 DEFAULT_wxUSE_UNICODE=no
1424 DEFAULT_wxUSE_WCSRTOMBS=no
1425
1426 DEFAULT_wxUSE_IMAGE=no
1427 DEFAULT_wxUSE_GIF=no
1428 DEFAULT_wxUSE_PCX=no
1429 DEFAULT_wxUSE_PNM=no
1430 DEFAULT_wxUSE_XPM=no
1431 else
1432 DEFAULT_wxUSE_THREADS=yes
1433
1434 DEFAULT_wxUSE_SHARED=yes
1435 DEFAULT_wxUSE_BURNT_NAME=no
1436 DEFAULT_wxUSE_OPTIMISE=yes
1437 DEFAULT_wxUSE_PROFILE=no
1438 DEFAULT_wxUSE_NO_DEPS=no
1439 DEFAULT_wxUSE_NO_RTTI=no
1440 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1441 DEFAULT_wxUSE_PERMISSIVE=no
1442 DEFAULT_wxUSE_DEBUG_FLAG=no
1443 DEFAULT_wxUSE_DEBUG_INFO=no
1444 DEFAULT_wxUSE_DEBUG_GDB=no
1445 DEFAULT_wxUSE_MEM_TRACING=no
1446 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1447 DEFAULT_wxUSE_DMALLOC=no
1448 DEFAULT_wxUSE_APPLE_IEEE=yes
1449
1450 DEFAULT_wxUSE_LOG=yes
1451
1452 DEFAULT_wxUSE_GUI=yes
1453
1454 DEFAULT_wxUSE_ZLIB=yes
1455 DEFAULT_wxUSE_LIBPNG=yes
1456 DEFAULT_wxUSE_LIBJPEG=yes
1457 DEFAULT_wxUSE_LIBTIFF=yes
1458 DEFAULT_wxUSE_ODBC=no
1459 DEFAULT_wxUSE_FREETYPE=no
1460 DEFAULT_wxUSE_OPENGL=no
1461
1462 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1463 DEFAULT_wxUSE_STD_IOSTREAM=no
1464 DEFAULT_wxUSE_FILE=yes
1465 DEFAULT_wxUSE_TEXTFILE=yes
1466 DEFAULT_wxUSE_TIMEDATE=yes
1467 DEFAULT_wxUSE_WAVE=no
1468 DEFAULT_wxUSE_INTL=yes
1469 DEFAULT_wxUSE_CONFIG=yes
1470 DEFAULT_wxUSE_STREAMS=yes
1471 DEFAULT_wxUSE_SOCKETS=yes
1472 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1473 DEFAULT_wxUSE_SERIAL=yes
1474 DEFAULT_wxUSE_JOYSTICK=yes
1475 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1476 DEFAULT_wxUSE_LONGLONG=yes
1477 DEFAULT_wxUSE_GEOMETRY=yes
1478
1479 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1480 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1481 DEFAULT_wxUSE_POSTSCRIPT=yes
1482
1483 DEFAULT_wxUSE_X_RESOURCES=no
1484 DEFAULT_wxUSE_CLIPBOARD=yes
1485 DEFAULT_wxUSE_TOOLTIPS=yes
1486 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1487 DEFAULT_wxUSE_SPLINES=yes
1488
1489 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1490 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1491 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1492
1493 DEFAULT_wxUSE_PROLOGIO=yes
1494 DEFAULT_wxUSE_RESOURCES=yes
1495 DEFAULT_wxUSE_CONSTRAINTS=yes
1496 DEFAULT_wxUSE_IPC=yes
1497 DEFAULT_wxUSE_HELP=yes
1498 DEFAULT_wxUSE_WXTREE=yes
1499 DEFAULT_wxUSE_METAFILE=yes
1500
1501 DEFAULT_wxUSE_COMMONDLGS=yes
1502 DEFAULT_wxUSE_DIRDLG=yes
1503 DEFAULT_wxUSE_TEXTDLG=yes
1504 DEFAULT_wxUSE_STARTUP_TIPS=yes
1505 DEFAULT_wxUSE_PROGRESSDLG=yes
1506 DEFAULT_wxUSE_MINIFRAME=yes
1507 DEFAULT_wxUSE_HTML=yes
1508 DEFAULT_wxUSE_FILESYSTEM=yes
1509 DEFAULT_wxUSE_FS_INET=yes
1510 DEFAULT_wxUSE_FS_ZIP=yes
1511 DEFAULT_wxUSE_BUSYINFO=yes
1512 DEFAULT_wxUSE_ZIPSTREAM=yes
1513 DEFAULT_wxUSE_VALIDATORS=yes
1514
1515 DEFAULT_wxUSE_ACCEL=yes
1516 DEFAULT_wxUSE_CARET=yes
1517 DEFAULT_wxUSE_BMPBUTTON=yes
1518 DEFAULT_wxUSE_CHECKBOX=yes
1519 DEFAULT_wxUSE_CHECKLST=yes
1520 DEFAULT_wxUSE_CHOICE=yes
1521 DEFAULT_wxUSE_COMBOBOX=yes
1522 DEFAULT_wxUSE_GAUGE=yes
1523 DEFAULT_wxUSE_GRID=yes
1524 DEFAULT_wxUSE_NEW_GRID=yes
1525 DEFAULT_wxUSE_IMAGLIST=yes
1526 DEFAULT_wxUSE_LISTBOX=yes
1527 DEFAULT_wxUSE_LISTCTRL=yes
1528 DEFAULT_wxUSE_NOTEBOOK=yes
1529 DEFAULT_wxUSE_RADIOBOX=yes
1530 DEFAULT_wxUSE_RADIOBTN=yes
1531 DEFAULT_wxUSE_SASH=yes
1532 DEFAULT_wxUSE_SCROLLBAR=yes
1533 DEFAULT_wxUSE_SLIDER=yes
1534 DEFAULT_wxUSE_SPINBTN=yes
1535 DEFAULT_wxUSE_SPINCTRL=yes
1536 DEFAULT_wxUSE_SPLITTER=yes
1537 DEFAULT_wxUSE_STATBMP=yes
1538 DEFAULT_wxUSE_STATBOX=yes
1539 DEFAULT_wxUSE_STATLINE=yes
1540 DEFAULT_wxUSE_STATUSBAR=yes
1541 DEFAULT_wxUSE_TABDIALOG=no
1542 DEFAULT_wxUSE_TOGGLEBTN=yes
1543 DEFAULT_wxUSE_TOOLBAR=yes
1544 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1545 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1546 DEFAULT_wxUSE_TREECTRL=yes
1547
1548 DEFAULT_wxUSE_UNICODE=no
1549 DEFAULT_wxUSE_WCSRTOMBS=no
1550
1551 DEFAULT_wxUSE_IMAGE=yes
1552 DEFAULT_wxUSE_GIF=yes
1553 DEFAULT_wxUSE_PCX=yes
1554 DEFAULT_wxUSE_PNM=yes
1555 DEFAULT_wxUSE_XPM=yes
1556 fi
1557
1558
1559
1560 for toolkit in `echo $ALL_TOOLKITS`; do
1561 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1562 if test "x$LINE" != x ; then
1563 has_toolkit_in_cache=1
1564 eval "DEFAULT_$LINE"
1565 eval "CACHE_$toolkit=1"
1566 fi
1567 done
1568
1569
1570
1571 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
1572 echo "configure:1573: checking "for --enable-gui"" >&5
1573 no_cache=0
1574 # Check whether --enable-gui or --disable-gui was given.
1575 if test "${enable_gui+set}" = set; then
1576 enableval="$enable_gui"
1577
1578 if test "$enableval" = yes; then
1579 ac_cv_use_gui='wxUSE_GUI=yes'
1580 else
1581 ac_cv_use_gui='wxUSE_GUI=no'
1582 fi
1583
1584 else
1585
1586 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1587 if test "x$LINE" != x ; then
1588 eval "DEFAULT_$LINE"
1589 else
1590 no_cache=1
1591 fi
1592
1593 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1594
1595 fi
1596
1597
1598 eval "$ac_cv_use_gui"
1599 if test "$no_cache" != 1; then
1600 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1601 fi
1602
1603 if test "$wxUSE_GUI" = yes; then
1604 echo "$ac_t""yes" 1>&6
1605 else
1606 echo "$ac_t""no" 1>&6
1607 fi
1608
1609
1610 if test "$wxUSE_GUI" = "yes"; then
1611
1612 # Check whether --with-gtk or --without-gtk was given.
1613 if test "${with_gtk+set}" = set; then
1614 withval="$with_gtk"
1615 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1616 fi
1617
1618 # Check whether --with-motif or --without-motif was given.
1619 if test "${with_motif+set}" = set; then
1620 withval="$with_motif"
1621 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1622 fi
1623
1624 # Check whether --with-mac or --without-mac was given.
1625 if test "${with_mac+set}" = set; then
1626 withval="$with_mac"
1627 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1628 fi
1629
1630 # Check whether --with-wine or --without-wine was given.
1631 if test "${with_wine+set}" = set; then
1632 withval="$with_wine"
1633 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1634 fi
1635
1636 # Check whether --with-cygwin or --without-cygwin was given.
1637 if test "${with_cygwin+set}" = set; then
1638 withval="$with_cygwin"
1639 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1640 fi
1641
1642 # Check whether --with-mingw or --without-mingw was given.
1643 if test "${with_mingw+set}" = set; then
1644 withval="$with_mingw"
1645 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1646 fi
1647
1648 # Check whether --with-pm or --without-pm was given.
1649 if test "${with_pm+set}" = set; then
1650 withval="$with_pm"
1651 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1652 fi
1653
1654
1655 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1656 if test "${with_gtk_prefix+set}" = set; then
1657 withval="$with_gtk_prefix"
1658 gtk_config_prefix="$withval"
1659 else
1660 gtk_config_prefix=""
1661 fi
1662
1663 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1664 if test "${with_gtk_exec_prefix+set}" = set; then
1665 withval="$with_gtk_exec_prefix"
1666 gtk_config_exec_prefix="$withval"
1667 else
1668 gtk_config_exec_prefix=""
1669 fi
1670
1671
1672
1673 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
1674 echo "configure:1675: checking "for --with-libpng"" >&5
1675 no_cache=0
1676 # Check whether --with-libpng or --without-libpng was given.
1677 if test "${with_libpng+set}" = set; then
1678 withval="$with_libpng"
1679
1680 if test "$withval" = yes; then
1681 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1682 elif test "$withval" = no; then
1683 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1684 elif test "$withval" = sys; then
1685 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1686 else
1687 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1688 fi
1689
1690 else
1691
1692 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1693 if test "x$LINE" != x ; then
1694 eval "DEFAULT_$LINE"
1695 else
1696 no_cache=1
1697 fi
1698
1699 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1700
1701 fi
1702
1703
1704 eval "$ac_cv_use_libpng"
1705 if test "$no_cache" != 1; then
1706 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1707 fi
1708
1709 if test "$wxUSE_LIBPNG" = yes; then
1710 echo "$ac_t""yes" 1>&6
1711 elif test "$wxUSE_LIBPNG" = no; then
1712 echo "$ac_t""no" 1>&6
1713 elif test "$wxUSE_LIBPNG" = sys; then
1714 echo "$ac_t""system version" 1>&6
1715 else
1716 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1717 fi
1718
1719
1720 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
1721 echo "configure:1722: checking "for --with-libjpeg"" >&5
1722 no_cache=0
1723 # Check whether --with-libjpeg or --without-libjpeg was given.
1724 if test "${with_libjpeg+set}" = set; then
1725 withval="$with_libjpeg"
1726
1727 if test "$withval" = yes; then
1728 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1729 elif test "$withval" = no; then
1730 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1731 elif test "$withval" = sys; then
1732 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1733 else
1734 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1735 fi
1736
1737 else
1738
1739 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1740 if test "x$LINE" != x ; then
1741 eval "DEFAULT_$LINE"
1742 else
1743 no_cache=1
1744 fi
1745
1746 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1747
1748 fi
1749
1750
1751 eval "$ac_cv_use_libjpeg"
1752 if test "$no_cache" != 1; then
1753 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1754 fi
1755
1756 if test "$wxUSE_LIBJPEG" = yes; then
1757 echo "$ac_t""yes" 1>&6
1758 elif test "$wxUSE_LIBJPEG" = no; then
1759 echo "$ac_t""no" 1>&6
1760 elif test "$wxUSE_LIBJPEG" = sys; then
1761 echo "$ac_t""system version" 1>&6
1762 else
1763 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1764 fi
1765
1766
1767 echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6
1768 echo "configure:1769: checking "for --with-libtiff"" >&5
1769 no_cache=0
1770 # Check whether --with-libtiff or --without-libtiff was given.
1771 if test "${with_libtiff+set}" = set; then
1772 withval="$with_libtiff"
1773
1774 if test "$withval" = yes; then
1775 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
1776 elif test "$withval" = no; then
1777 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
1778 elif test "$withval" = sys; then
1779 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1780 else
1781 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1782 fi
1783
1784 else
1785
1786 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
1787 if test "x$LINE" != x ; then
1788 eval "DEFAULT_$LINE"
1789 else
1790 no_cache=1
1791 fi
1792
1793 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
1794
1795 fi
1796
1797
1798 eval "$ac_cv_use_libtiff"
1799 if test "$no_cache" != 1; then
1800 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
1801 fi
1802
1803 if test "$wxUSE_LIBTIFF" = yes; then
1804 echo "$ac_t""yes" 1>&6
1805 elif test "$wxUSE_LIBTIFF" = no; then
1806 echo "$ac_t""no" 1>&6
1807 elif test "$wxUSE_LIBTIFF" = sys; then
1808 echo "$ac_t""system version" 1>&6
1809 else
1810 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1811 fi
1812
1813
1814 echo $ac_n "checking "for --with-freetype"""... $ac_c" 1>&6
1815 echo "configure:1816: checking "for --with-freetype"" >&5
1816 no_cache=0
1817 # Check whether --with-freetype or --without-freetype was given.
1818 if test "${with_freetype+set}" = set; then
1819 withval="$with_freetype"
1820
1821 if test "$withval" = yes; then
1822 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1823 elif test "$withval" = no; then
1824 ac_cv_use_freetype='wxUSE_FREETYPE=no'
1825 elif test "$withval" = sys; then
1826 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
1827 else
1828 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1829 fi
1830
1831 else
1832
1833 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
1834 if test "x$LINE" != x ; then
1835 eval "DEFAULT_$LINE"
1836 else
1837 no_cache=1
1838 fi
1839
1840 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
1841
1842 fi
1843
1844
1845 eval "$ac_cv_use_freetype"
1846 if test "$no_cache" != 1; then
1847 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
1848 fi
1849
1850 if test "$wxUSE_FREETYPE" = yes; then
1851 echo "$ac_t""yes" 1>&6
1852 elif test "$wxUSE_FREETYPE" = no; then
1853 echo "$ac_t""no" 1>&6
1854 elif test "$wxUSE_FREETYPE" = sys; then
1855 echo "$ac_t""system version" 1>&6
1856 else
1857 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1858 fi
1859
1860
1861 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
1862 echo "configure:1863: checking "for --with-opengl"" >&5
1863 no_cache=0
1864 # Check whether --with-opengl or --without-opengl was given.
1865 if test "${with_opengl+set}" = set; then
1866 withval="$with_opengl"
1867
1868 if test "$withval" = yes; then
1869 ac_cv_use_opengl='wxUSE_OPENGL=yes'
1870 else
1871 ac_cv_use_opengl='wxUSE_OPENGL=no'
1872 fi
1873
1874 else
1875
1876 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
1877 if test "x$LINE" != x ; then
1878 eval "DEFAULT_$LINE"
1879 else
1880 no_cache=1
1881 fi
1882
1883 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
1884
1885 fi
1886
1887
1888 eval "$ac_cv_use_opengl"
1889 if test "$no_cache" != 1; then
1890 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
1891 fi
1892
1893 if test "$wxUSE_OPENGL" = yes; then
1894 echo "$ac_t""yes" 1>&6
1895 else
1896 echo "$ac_t""no" 1>&6
1897 fi
1898
1899
1900 fi
1901
1902
1903 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
1904 echo "configure:1905: checking "for --with-dmalloc"" >&5
1905 no_cache=0
1906 # Check whether --with-dmalloc or --without-dmalloc was given.
1907 if test "${with_dmalloc+set}" = set; then
1908 withval="$with_dmalloc"
1909
1910 if test "$withval" = yes; then
1911 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
1912 else
1913 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
1914 fi
1915
1916 else
1917
1918 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
1919 if test "x$LINE" != x ; then
1920 eval "DEFAULT_$LINE"
1921 else
1922 no_cache=1
1923 fi
1924
1925 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
1926
1927 fi
1928
1929
1930 eval "$ac_cv_use_dmalloc"
1931 if test "$no_cache" != 1; then
1932 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
1933 fi
1934
1935 if test "$wxUSE_DMALLOC" = yes; then
1936 echo "$ac_t""yes" 1>&6
1937 else
1938 echo "$ac_t""no" 1>&6
1939 fi
1940
1941
1942 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
1943 echo "configure:1944: checking "for --with-zlib"" >&5
1944 no_cache=0
1945 # Check whether --with-zlib or --without-zlib was given.
1946 if test "${with_zlib+set}" = set; then
1947 withval="$with_zlib"
1948
1949 if test "$withval" = yes; then
1950 ac_cv_use_zlib='wxUSE_ZLIB=yes'
1951 elif test "$withval" = no; then
1952 ac_cv_use_zlib='wxUSE_ZLIB=no'
1953 elif test "$withval" = sys; then
1954 ac_cv_use_zlib='wxUSE_ZLIB=sys'
1955 else
1956 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
1957 fi
1958
1959 else
1960
1961 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
1962 if test "x$LINE" != x ; then
1963 eval "DEFAULT_$LINE"
1964 else
1965 no_cache=1
1966 fi
1967
1968 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
1969
1970 fi
1971
1972
1973 eval "$ac_cv_use_zlib"
1974 if test "$no_cache" != 1; then
1975 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
1976 fi
1977
1978 if test "$wxUSE_ZLIB" = yes; then
1979 echo "$ac_t""yes" 1>&6
1980 elif test "$wxUSE_ZLIB" = no; then
1981 echo "$ac_t""no" 1>&6
1982 elif test "$wxUSE_ZLIB" = sys; then
1983 echo "$ac_t""system version" 1>&6
1984 else
1985 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
1986 fi
1987
1988
1989 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
1990 echo "configure:1991: checking "for --with-odbc"" >&5
1991 no_cache=0
1992 # Check whether --with-odbc or --without-odbc was given.
1993 if test "${with_odbc+set}" = set; then
1994 withval="$with_odbc"
1995
1996 if test "$withval" = yes; then
1997 ac_cv_use_odbc='wxUSE_ODBC=yes'
1998 else
1999 ac_cv_use_odbc='wxUSE_ODBC=no'
2000 fi
2001
2002 else
2003
2004 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2005 if test "x$LINE" != x ; then
2006 eval "DEFAULT_$LINE"
2007 else
2008 no_cache=1
2009 fi
2010
2011 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2012
2013 fi
2014
2015
2016 eval "$ac_cv_use_odbc"
2017 if test "$no_cache" != 1; then
2018 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2019 fi
2020
2021 if test "$wxUSE_ODBC" = yes; then
2022 echo "$ac_t""yes" 1>&6
2023 else
2024 echo "$ac_t""no" 1>&6
2025 fi
2026
2027
2028
2029
2030
2031 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
2032 echo "configure:2033: checking "for --enable-shared"" >&5
2033 no_cache=0
2034 # Check whether --enable-shared or --disable-shared was given.
2035 if test "${enable_shared+set}" = set; then
2036 enableval="$enable_shared"
2037
2038 if test "$enableval" = yes; then
2039 ac_cv_use_shared='wxUSE_SHARED=yes'
2040 else
2041 ac_cv_use_shared='wxUSE_SHARED=no'
2042 fi
2043
2044 else
2045
2046 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2047 if test "x$LINE" != x ; then
2048 eval "DEFAULT_$LINE"
2049 else
2050 no_cache=1
2051 fi
2052
2053 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2054
2055 fi
2056
2057
2058 eval "$ac_cv_use_shared"
2059 if test "$no_cache" != 1; then
2060 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2061 fi
2062
2063 if test "$wxUSE_SHARED" = yes; then
2064 echo "$ac_t""yes" 1>&6
2065 else
2066 echo "$ac_t""no" 1>&6
2067 fi
2068
2069
2070 echo $ac_n "checking "for --enable-burnt_name"""... $ac_c" 1>&6
2071 echo "configure:2072: checking "for --enable-burnt_name"" >&5
2072 no_cache=0
2073 # Check whether --enable-burnt_name or --disable-burnt_name was given.
2074 if test "${enable_burnt_name+set}" = set; then
2075 enableval="$enable_burnt_name"
2076
2077 if test "$enableval" = yes; then
2078 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
2079 else
2080 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
2081 fi
2082
2083 else
2084
2085 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
2086 if test "x$LINE" != x ; then
2087 eval "DEFAULT_$LINE"
2088 else
2089 no_cache=1
2090 fi
2091
2092 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
2093
2094 fi
2095
2096
2097 eval "$ac_cv_use_burnt_name"
2098 if test "$no_cache" != 1; then
2099 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
2100 fi
2101
2102 if test "$wxUSE_BURNT_NAME" = yes; then
2103 echo "$ac_t""yes" 1>&6
2104 else
2105 echo "$ac_t""no" 1>&6
2106 fi
2107
2108
2109 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
2110 echo "configure:2111: checking "for --enable-optimise"" >&5
2111 no_cache=0
2112 # Check whether --enable-optimise or --disable-optimise was given.
2113 if test "${enable_optimise+set}" = set; then
2114 enableval="$enable_optimise"
2115
2116 if test "$enableval" = yes; then
2117 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2118 else
2119 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2120 fi
2121
2122 else
2123
2124 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2125 if test "x$LINE" != x ; then
2126 eval "DEFAULT_$LINE"
2127 else
2128 no_cache=1
2129 fi
2130
2131 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2132
2133 fi
2134
2135
2136 eval "$ac_cv_use_optimise"
2137 if test "$no_cache" != 1; then
2138 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2139 fi
2140
2141 if test "$wxUSE_OPTIMISE" = yes; then
2142 echo "$ac_t""yes" 1>&6
2143 else
2144 echo "$ac_t""no" 1>&6
2145 fi
2146
2147
2148 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
2149 echo "configure:2150: checking "for --enable-debug"" >&5
2150 no_cache=0
2151 # Check whether --enable-debug or --disable-debug was given.
2152 if test "${enable_debug+set}" = set; then
2153 enableval="$enable_debug"
2154
2155 if test "$enableval" = yes; then
2156 ac_cv_use_debug='wxUSE_DEBUG=yes'
2157 else
2158 ac_cv_use_debug='wxUSE_DEBUG=no'
2159 fi
2160
2161 else
2162
2163 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2164 if test "x$LINE" != x ; then
2165 eval "DEFAULT_$LINE"
2166 else
2167 no_cache=1
2168 fi
2169
2170 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2171
2172 fi
2173
2174
2175 eval "$ac_cv_use_debug"
2176 if test "$no_cache" != 1; then
2177 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2178 fi
2179
2180 if test "$wxUSE_DEBUG" = yes; then
2181 echo "$ac_t""yes" 1>&6
2182 else
2183 echo "$ac_t""no" 1>&6
2184 fi
2185
2186
2187 if test "$wxUSE_DEBUG" = "yes"; then
2188 DEFAULT_wxUSE_DEBUG_FLAG=yes
2189 DEFAULT_wxUSE_DEBUG_INFO=yes
2190 elif test "$wxUSE_DEBUG" = "no"; then
2191 DEFAULT_wxUSE_DEBUG_FLAG=no
2192 DEFAULT_wxUSE_DEBUG_INFO=no
2193 fi
2194
2195
2196 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
2197 echo "configure:2198: checking "for --enable-debug_flag"" >&5
2198 no_cache=0
2199 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2200 if test "${enable_debug_flag+set}" = set; then
2201 enableval="$enable_debug_flag"
2202
2203 if test "$enableval" = yes; then
2204 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2205 else
2206 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2207 fi
2208
2209 else
2210
2211 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2212 if test "x$LINE" != x ; then
2213 eval "DEFAULT_$LINE"
2214 else
2215 no_cache=1
2216 fi
2217
2218 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2219
2220 fi
2221
2222
2223 eval "$ac_cv_use_debug_flag"
2224 if test "$no_cache" != 1; then
2225 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2226 fi
2227
2228 if test "$wxUSE_DEBUG_FLAG" = yes; then
2229 echo "$ac_t""yes" 1>&6
2230 else
2231 echo "$ac_t""no" 1>&6
2232 fi
2233
2234
2235 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
2236 echo "configure:2237: checking "for --enable-debug_info"" >&5
2237 no_cache=0
2238 # Check whether --enable-debug_info or --disable-debug_info was given.
2239 if test "${enable_debug_info+set}" = set; then
2240 enableval="$enable_debug_info"
2241
2242 if test "$enableval" = yes; then
2243 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2244 else
2245 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2246 fi
2247
2248 else
2249
2250 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2251 if test "x$LINE" != x ; then
2252 eval "DEFAULT_$LINE"
2253 else
2254 no_cache=1
2255 fi
2256
2257 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2258
2259 fi
2260
2261
2262 eval "$ac_cv_use_debug_info"
2263 if test "$no_cache" != 1; then
2264 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2265 fi
2266
2267 if test "$wxUSE_DEBUG_INFO" = yes; then
2268 echo "$ac_t""yes" 1>&6
2269 else
2270 echo "$ac_t""no" 1>&6
2271 fi
2272
2273
2274 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
2275 echo "configure:2276: checking "for --enable-debug_gdb"" >&5
2276 no_cache=0
2277 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2278 if test "${enable_debug_gdb+set}" = set; then
2279 enableval="$enable_debug_gdb"
2280
2281 if test "$enableval" = yes; then
2282 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2283 else
2284 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2285 fi
2286
2287 else
2288
2289 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2290 if test "x$LINE" != x ; then
2291 eval "DEFAULT_$LINE"
2292 else
2293 no_cache=1
2294 fi
2295
2296 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2297
2298 fi
2299
2300
2301 eval "$ac_cv_use_debug_gdb"
2302 if test "$no_cache" != 1; then
2303 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2304 fi
2305
2306 if test "$wxUSE_DEBUG_GDB" = yes; then
2307 echo "$ac_t""yes" 1>&6
2308 else
2309 echo "$ac_t""no" 1>&6
2310 fi
2311
2312
2313 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
2314 echo "configure:2315: checking "for --enable-debug_cntxt"" >&5
2315 no_cache=0
2316 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2317 if test "${enable_debug_cntxt+set}" = set; then
2318 enableval="$enable_debug_cntxt"
2319
2320 if test "$enableval" = yes; then
2321 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2322 else
2323 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2324 fi
2325
2326 else
2327
2328 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2329 if test "x$LINE" != x ; then
2330 eval "DEFAULT_$LINE"
2331 else
2332 no_cache=1
2333 fi
2334
2335 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2336
2337 fi
2338
2339
2340 eval "$ac_cv_use_debug_cntxt"
2341 if test "$no_cache" != 1; then
2342 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2343 fi
2344
2345 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2346 echo "$ac_t""yes" 1>&6
2347 else
2348 echo "$ac_t""no" 1>&6
2349 fi
2350
2351
2352 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
2353 echo "configure:2354: checking "for --enable-mem_tracing"" >&5
2354 no_cache=0
2355 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2356 if test "${enable_mem_tracing+set}" = set; then
2357 enableval="$enable_mem_tracing"
2358
2359 if test "$enableval" = yes; then
2360 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2361 else
2362 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2363 fi
2364
2365 else
2366
2367 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2368 if test "x$LINE" != x ; then
2369 eval "DEFAULT_$LINE"
2370 else
2371 no_cache=1
2372 fi
2373
2374 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2375
2376 fi
2377
2378
2379 eval "$ac_cv_use_mem_tracing"
2380 if test "$no_cache" != 1; then
2381 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2382 fi
2383
2384 if test "$wxUSE_MEM_TRACING" = yes; then
2385 echo "$ac_t""yes" 1>&6
2386 else
2387 echo "$ac_t""no" 1>&6
2388 fi
2389
2390
2391 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
2392 echo "configure:2393: checking "for --enable-profile"" >&5
2393 no_cache=0
2394 # Check whether --enable-profile or --disable-profile was given.
2395 if test "${enable_profile+set}" = set; then
2396 enableval="$enable_profile"
2397
2398 if test "$enableval" = yes; then
2399 ac_cv_use_profile='wxUSE_PROFILE=yes'
2400 else
2401 ac_cv_use_profile='wxUSE_PROFILE=no'
2402 fi
2403
2404 else
2405
2406 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2407 if test "x$LINE" != x ; then
2408 eval "DEFAULT_$LINE"
2409 else
2410 no_cache=1
2411 fi
2412
2413 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2414
2415 fi
2416
2417
2418 eval "$ac_cv_use_profile"
2419 if test "$no_cache" != 1; then
2420 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2421 fi
2422
2423 if test "$wxUSE_PROFILE" = yes; then
2424 echo "$ac_t""yes" 1>&6
2425 else
2426 echo "$ac_t""no" 1>&6
2427 fi
2428
2429
2430 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
2431 echo "configure:2432: checking "for --enable-no_rtti"" >&5
2432 no_cache=0
2433 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2434 if test "${enable_no_rtti+set}" = set; then
2435 enableval="$enable_no_rtti"
2436
2437 if test "$enableval" = yes; then
2438 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2439 else
2440 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2441 fi
2442
2443 else
2444
2445 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2446 if test "x$LINE" != x ; then
2447 eval "DEFAULT_$LINE"
2448 else
2449 no_cache=1
2450 fi
2451
2452 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2453
2454 fi
2455
2456
2457 eval "$ac_cv_use_no_rtti"
2458 if test "$no_cache" != 1; then
2459 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2460 fi
2461
2462 if test "$wxUSE_NO_RTTI" = yes; then
2463 echo "$ac_t""yes" 1>&6
2464 else
2465 echo "$ac_t""no" 1>&6
2466 fi
2467
2468
2469 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
2470 echo "configure:2471: checking "for --enable-no_exceptions"" >&5
2471 no_cache=0
2472 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2473 if test "${enable_no_exceptions+set}" = set; then
2474 enableval="$enable_no_exceptions"
2475
2476 if test "$enableval" = yes; then
2477 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2478 else
2479 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2480 fi
2481
2482 else
2483
2484 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2485 if test "x$LINE" != x ; then
2486 eval "DEFAULT_$LINE"
2487 else
2488 no_cache=1
2489 fi
2490
2491 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2492
2493 fi
2494
2495
2496 eval "$ac_cv_use_no_exceptions"
2497 if test "$no_cache" != 1; then
2498 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2499 fi
2500
2501 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2502 echo "$ac_t""yes" 1>&6
2503 else
2504 echo "$ac_t""no" 1>&6
2505 fi
2506
2507
2508 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
2509 echo "configure:2510: checking "for --enable-permissive"" >&5
2510 no_cache=0
2511 # Check whether --enable-permissive or --disable-permissive was given.
2512 if test "${enable_permissive+set}" = set; then
2513 enableval="$enable_permissive"
2514
2515 if test "$enableval" = yes; then
2516 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2517 else
2518 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2519 fi
2520
2521 else
2522
2523 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2524 if test "x$LINE" != x ; then
2525 eval "DEFAULT_$LINE"
2526 else
2527 no_cache=1
2528 fi
2529
2530 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2531
2532 fi
2533
2534
2535 eval "$ac_cv_use_permissive"
2536 if test "$no_cache" != 1; then
2537 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2538 fi
2539
2540 if test "$wxUSE_PERMISSIVE" = yes; then
2541 echo "$ac_t""yes" 1>&6
2542 else
2543 echo "$ac_t""no" 1>&6
2544 fi
2545
2546
2547 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
2548 echo "configure:2549: checking "for --enable-no_deps"" >&5
2549 no_cache=0
2550 # Check whether --enable-no_deps or --disable-no_deps was given.
2551 if test "${enable_no_deps+set}" = set; then
2552 enableval="$enable_no_deps"
2553
2554 if test "$enableval" = yes; then
2555 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2556 else
2557 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2558 fi
2559
2560 else
2561
2562 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2563 if test "x$LINE" != x ; then
2564 eval "DEFAULT_$LINE"
2565 else
2566 no_cache=1
2567 fi
2568
2569 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2570
2571 fi
2572
2573
2574 eval "$ac_cv_use_no_deps"
2575 if test "$no_cache" != 1; then
2576 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2577 fi
2578
2579 if test "$wxUSE_NO_DEPS" = yes; then
2580 echo "$ac_t""yes" 1>&6
2581 else
2582 echo "$ac_t""no" 1>&6
2583 fi
2584
2585
2586
2587
2588 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
2589 echo "configure:2590: checking "for --enable-intl"" >&5
2590 no_cache=0
2591 # Check whether --enable-intl or --disable-intl was given.
2592 if test "${enable_intl+set}" = set; then
2593 enableval="$enable_intl"
2594
2595 if test "$enableval" = yes; then
2596 ac_cv_use_intl='wxUSE_INTL=yes'
2597 else
2598 ac_cv_use_intl='wxUSE_INTL=no'
2599 fi
2600
2601 else
2602
2603 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2604 if test "x$LINE" != x ; then
2605 eval "DEFAULT_$LINE"
2606 else
2607 no_cache=1
2608 fi
2609
2610 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2611
2612 fi
2613
2614
2615 eval "$ac_cv_use_intl"
2616 if test "$no_cache" != 1; then
2617 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2618 fi
2619
2620 if test "$wxUSE_INTL" = yes; then
2621 echo "$ac_t""yes" 1>&6
2622 else
2623 echo "$ac_t""no" 1>&6
2624 fi
2625
2626
2627 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
2628 echo "configure:2629: checking "for --enable-config"" >&5
2629 no_cache=0
2630 # Check whether --enable-config or --disable-config was given.
2631 if test "${enable_config+set}" = set; then
2632 enableval="$enable_config"
2633
2634 if test "$enableval" = yes; then
2635 ac_cv_use_config='wxUSE_CONFIG=yes'
2636 else
2637 ac_cv_use_config='wxUSE_CONFIG=no'
2638 fi
2639
2640 else
2641
2642 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2643 if test "x$LINE" != x ; then
2644 eval "DEFAULT_$LINE"
2645 else
2646 no_cache=1
2647 fi
2648
2649 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2650
2651 fi
2652
2653
2654 eval "$ac_cv_use_config"
2655 if test "$no_cache" != 1; then
2656 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2657 fi
2658
2659 if test "$wxUSE_CONFIG" = yes; then
2660 echo "$ac_t""yes" 1>&6
2661 else
2662 echo "$ac_t""no" 1>&6
2663 fi
2664
2665
2666
2667 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
2668 echo "configure:2669: checking "for --enable-sockets"" >&5
2669 no_cache=0
2670 # Check whether --enable-sockets or --disable-sockets was given.
2671 if test "${enable_sockets+set}" = set; then
2672 enableval="$enable_sockets"
2673
2674 if test "$enableval" = yes; then
2675 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2676 else
2677 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2678 fi
2679
2680 else
2681
2682 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2683 if test "x$LINE" != x ; then
2684 eval "DEFAULT_$LINE"
2685 else
2686 no_cache=1
2687 fi
2688
2689 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2690
2691 fi
2692
2693
2694 eval "$ac_cv_use_sockets"
2695 if test "$no_cache" != 1; then
2696 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2697 fi
2698
2699 if test "$wxUSE_SOCKETS" = yes; then
2700 echo "$ac_t""yes" 1>&6
2701 else
2702 echo "$ac_t""no" 1>&6
2703 fi
2704
2705
2706
2707 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
2708 echo "configure:2709: checking "for --enable-ipc"" >&5
2709 no_cache=0
2710 # Check whether --enable-ipc or --disable-ipc was given.
2711 if test "${enable_ipc+set}" = set; then
2712 enableval="$enable_ipc"
2713
2714 if test "$enableval" = yes; then
2715 ac_cv_use_ipc='wxUSE_IPC=yes'
2716 else
2717 ac_cv_use_ipc='wxUSE_IPC=no'
2718 fi
2719
2720 else
2721
2722 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2723 if test "x$LINE" != x ; then
2724 eval "DEFAULT_$LINE"
2725 else
2726 no_cache=1
2727 fi
2728
2729 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2730
2731 fi
2732
2733
2734 eval "$ac_cv_use_ipc"
2735 if test "$no_cache" != 1; then
2736 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2737 fi
2738
2739 if test "$wxUSE_IPC" = yes; then
2740 echo "$ac_t""yes" 1>&6
2741 else
2742 echo "$ac_t""no" 1>&6
2743 fi
2744
2745
2746
2747 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
2748 echo "configure:2749: checking "for --enable-dialupman"" >&5
2749 no_cache=0
2750 # Check whether --enable-dialupman or --disable-dialupman was given.
2751 if test "${enable_dialupman+set}" = set; then
2752 enableval="$enable_dialupman"
2753
2754 if test "$enableval" = yes; then
2755 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
2756 else
2757 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
2758 fi
2759
2760 else
2761
2762 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
2763 if test "x$LINE" != x ; then
2764 eval "DEFAULT_$LINE"
2765 else
2766 no_cache=1
2767 fi
2768
2769 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
2770
2771 fi
2772
2773
2774 eval "$ac_cv_use_dialupman"
2775 if test "$no_cache" != 1; then
2776 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
2777 fi
2778
2779 if test "$wxUSE_DIALUP_MANAGER" = yes; then
2780 echo "$ac_t""yes" 1>&6
2781 else
2782 echo "$ac_t""no" 1>&6
2783 fi
2784
2785
2786 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
2787 echo "configure:2788: checking "for --enable-apple_ieee"" >&5
2788 no_cache=0
2789 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2790 if test "${enable_apple_ieee+set}" = set; then
2791 enableval="$enable_apple_ieee"
2792
2793 if test "$enableval" = yes; then
2794 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2795 else
2796 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2797 fi
2798
2799 else
2800
2801 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2802 if test "x$LINE" != x ; then
2803 eval "DEFAULT_$LINE"
2804 else
2805 no_cache=1
2806 fi
2807
2808 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2809
2810 fi
2811
2812
2813 eval "$ac_cv_use_apple_ieee"
2814 if test "$no_cache" != 1; then
2815 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2816 fi
2817
2818 if test "$wxUSE_APPLE_IEEE" = yes; then
2819 echo "$ac_t""yes" 1>&6
2820 else
2821 echo "$ac_t""no" 1>&6
2822 fi
2823
2824
2825 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
2826 echo "configure:2827: checking "for --enable-timedate"" >&5
2827 no_cache=0
2828 # Check whether --enable-timedate or --disable-timedate was given.
2829 if test "${enable_timedate+set}" = set; then
2830 enableval="$enable_timedate"
2831
2832 if test "$enableval" = yes; then
2833 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2834 else
2835 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2836 fi
2837
2838 else
2839
2840 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2841 if test "x$LINE" != x ; then
2842 eval "DEFAULT_$LINE"
2843 else
2844 no_cache=1
2845 fi
2846
2847 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2848
2849 fi
2850
2851
2852 eval "$ac_cv_use_timedate"
2853 if test "$no_cache" != 1; then
2854 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2855 fi
2856
2857 if test "$wxUSE_TIMEDATE" = yes; then
2858 echo "$ac_t""yes" 1>&6
2859 else
2860 echo "$ac_t""no" 1>&6
2861 fi
2862
2863
2864 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
2865 echo "configure:2866: checking "for --enable-wave"" >&5
2866 no_cache=0
2867 # Check whether --enable-wave or --disable-wave was given.
2868 if test "${enable_wave+set}" = set; then
2869 enableval="$enable_wave"
2870
2871 if test "$enableval" = yes; then
2872 ac_cv_use_wave='wxUSE_WAVE=yes'
2873 else
2874 ac_cv_use_wave='wxUSE_WAVE=no'
2875 fi
2876
2877 else
2878
2879 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2880 if test "x$LINE" != x ; then
2881 eval "DEFAULT_$LINE"
2882 else
2883 no_cache=1
2884 fi
2885
2886 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2887
2888 fi
2889
2890
2891 eval "$ac_cv_use_wave"
2892 if test "$no_cache" != 1; then
2893 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2894 fi
2895
2896 if test "$wxUSE_WAVE" = yes; then
2897 echo "$ac_t""yes" 1>&6
2898 else
2899 echo "$ac_t""no" 1>&6
2900 fi
2901
2902
2903 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
2904 echo "configure:2905: checking "for --enable-fraction"" >&5
2905 no_cache=0
2906 # Check whether --enable-fraction or --disable-fraction was given.
2907 if test "${enable_fraction+set}" = set; then
2908 enableval="$enable_fraction"
2909
2910 if test "$enableval" = yes; then
2911 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2912 else
2913 ac_cv_use_fraction='wxUSE_FRACTION=no'
2914 fi
2915
2916 else
2917
2918 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2919 if test "x$LINE" != x ; then
2920 eval "DEFAULT_$LINE"
2921 else
2922 no_cache=1
2923 fi
2924
2925 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2926
2927 fi
2928
2929
2930 eval "$ac_cv_use_fraction"
2931 if test "$no_cache" != 1; then
2932 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2933 fi
2934
2935 if test "$wxUSE_FRACTION" = yes; then
2936 echo "$ac_t""yes" 1>&6
2937 else
2938 echo "$ac_t""no" 1>&6
2939 fi
2940
2941
2942 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
2943 echo "configure:2944: checking "for --enable-dynlib"" >&5
2944 no_cache=0
2945 # Check whether --enable-dynlib or --disable-dynlib was given.
2946 if test "${enable_dynlib+set}" = set; then
2947 enableval="$enable_dynlib"
2948
2949 if test "$enableval" = yes; then
2950 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2951 else
2952 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2953 fi
2954
2955 else
2956
2957 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2958 if test "x$LINE" != x ; then
2959 eval "DEFAULT_$LINE"
2960 else
2961 no_cache=1
2962 fi
2963
2964 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2965
2966 fi
2967
2968
2969 eval "$ac_cv_use_dynlib"
2970 if test "$no_cache" != 1; then
2971 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2972 fi
2973
2974 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2975 echo "$ac_t""yes" 1>&6
2976 else
2977 echo "$ac_t""no" 1>&6
2978 fi
2979
2980
2981 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
2982 echo "configure:2983: checking "for --enable-longlong"" >&5
2983 no_cache=0
2984 # Check whether --enable-longlong or --disable-longlong was given.
2985 if test "${enable_longlong+set}" = set; then
2986 enableval="$enable_longlong"
2987
2988 if test "$enableval" = yes; then
2989 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2990 else
2991 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2992 fi
2993
2994 else
2995
2996 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2997 if test "x$LINE" != x ; then
2998 eval "DEFAULT_$LINE"
2999 else
3000 no_cache=1
3001 fi
3002
3003 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3004
3005 fi
3006
3007
3008 eval "$ac_cv_use_longlong"
3009 if test "$no_cache" != 1; then
3010 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3011 fi
3012
3013 if test "$wxUSE_LONGLONG" = yes; then
3014 echo "$ac_t""yes" 1>&6
3015 else
3016 echo "$ac_t""no" 1>&6
3017 fi
3018
3019
3020 echo $ac_n "checking "for --enable-geometry"""... $ac_c" 1>&6
3021 echo "configure:3022: checking "for --enable-geometry"" >&5
3022 no_cache=0
3023 # Check whether --enable-geometry or --disable-geometry was given.
3024 if test "${enable_geometry+set}" = set; then
3025 enableval="$enable_geometry"
3026
3027 if test "$enableval" = yes; then
3028 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3029 else
3030 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3031 fi
3032
3033 else
3034
3035 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3036 if test "x$LINE" != x ; then
3037 eval "DEFAULT_$LINE"
3038 else
3039 no_cache=1
3040 fi
3041
3042 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3043
3044 fi
3045
3046
3047 eval "$ac_cv_use_geometry"
3048 if test "$no_cache" != 1; then
3049 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3050 fi
3051
3052 if test "$wxUSE_GEOMETRY" = yes; then
3053 echo "$ac_t""yes" 1>&6
3054 else
3055 echo "$ac_t""no" 1>&6
3056 fi
3057
3058
3059 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
3060 echo "configure:3061: checking "for --enable-log"" >&5
3061 no_cache=0
3062 # Check whether --enable-log or --disable-log was given.
3063 if test "${enable_log+set}" = set; then
3064 enableval="$enable_log"
3065
3066 if test "$enableval" = yes; then
3067 ac_cv_use_log='wxUSE_LOG=yes'
3068 else
3069 ac_cv_use_log='wxUSE_LOG=no'
3070 fi
3071
3072 else
3073
3074 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3075 if test "x$LINE" != x ; then
3076 eval "DEFAULT_$LINE"
3077 else
3078 no_cache=1
3079 fi
3080
3081 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3082
3083 fi
3084
3085
3086 eval "$ac_cv_use_log"
3087 if test "$no_cache" != 1; then
3088 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3089 fi
3090
3091 if test "$wxUSE_LOG" = yes; then
3092 echo "$ac_t""yes" 1>&6
3093 else
3094 echo "$ac_t""no" 1>&6
3095 fi
3096
3097
3098 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
3099 echo "configure:3100: checking "for --enable-streams"" >&5
3100 no_cache=0
3101 # Check whether --enable-streams or --disable-streams was given.
3102 if test "${enable_streams+set}" = set; then
3103 enableval="$enable_streams"
3104
3105 if test "$enableval" = yes; then
3106 ac_cv_use_streams='wxUSE_STREAMS=yes'
3107 else
3108 ac_cv_use_streams='wxUSE_STREAMS=no'
3109 fi
3110
3111 else
3112
3113 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3114 if test "x$LINE" != x ; then
3115 eval "DEFAULT_$LINE"
3116 else
3117 no_cache=1
3118 fi
3119
3120 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3121
3122 fi
3123
3124
3125 eval "$ac_cv_use_streams"
3126 if test "$no_cache" != 1; then
3127 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3128 fi
3129
3130 if test "$wxUSE_STREAMS" = yes; then
3131 echo "$ac_t""yes" 1>&6
3132 else
3133 echo "$ac_t""no" 1>&6
3134 fi
3135
3136
3137 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
3138 echo "configure:3139: checking "for --enable-file"" >&5
3139 no_cache=0
3140 # Check whether --enable-file or --disable-file was given.
3141 if test "${enable_file+set}" = set; then
3142 enableval="$enable_file"
3143
3144 if test "$enableval" = yes; then
3145 ac_cv_use_file='wxUSE_FILE=yes'
3146 else
3147 ac_cv_use_file='wxUSE_FILE=no'
3148 fi
3149
3150 else
3151
3152 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3153 if test "x$LINE" != x ; then
3154 eval "DEFAULT_$LINE"
3155 else
3156 no_cache=1
3157 fi
3158
3159 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3160
3161 fi
3162
3163
3164 eval "$ac_cv_use_file"
3165 if test "$no_cache" != 1; then
3166 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3167 fi
3168
3169 if test "$wxUSE_FILE" = yes; then
3170 echo "$ac_t""yes" 1>&6
3171 else
3172 echo "$ac_t""no" 1>&6
3173 fi
3174
3175
3176 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
3177 echo "configure:3178: checking "for --enable-textfile"" >&5
3178 no_cache=0
3179 # Check whether --enable-textfile or --disable-textfile was given.
3180 if test "${enable_textfile+set}" = set; then
3181 enableval="$enable_textfile"
3182
3183 if test "$enableval" = yes; then
3184 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3185 else
3186 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3187 fi
3188
3189 else
3190
3191 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3192 if test "x$LINE" != x ; then
3193 eval "DEFAULT_$LINE"
3194 else
3195 no_cache=1
3196 fi
3197
3198 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3199
3200 fi
3201
3202
3203 eval "$ac_cv_use_textfile"
3204 if test "$no_cache" != 1; then
3205 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3206 fi
3207
3208 if test "$wxUSE_TEXTFILE" = yes; then
3209 echo "$ac_t""yes" 1>&6
3210 else
3211 echo "$ac_t""no" 1>&6
3212 fi
3213
3214
3215 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
3216 echo "configure:3217: checking "for --enable-unicode"" >&5
3217 no_cache=0
3218 # Check whether --enable-unicode or --disable-unicode was given.
3219 if test "${enable_unicode+set}" = set; then
3220 enableval="$enable_unicode"
3221
3222 if test "$enableval" = yes; then
3223 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3224 else
3225 ac_cv_use_unicode='wxUSE_UNICODE=no'
3226 fi
3227
3228 else
3229
3230 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3231 if test "x$LINE" != x ; then
3232 eval "DEFAULT_$LINE"
3233 else
3234 no_cache=1
3235 fi
3236
3237 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3238
3239 fi
3240
3241
3242 eval "$ac_cv_use_unicode"
3243 if test "$no_cache" != 1; then
3244 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3245 fi
3246
3247 if test "$wxUSE_UNICODE" = yes; then
3248 echo "$ac_t""yes" 1>&6
3249 else
3250 echo "$ac_t""no" 1>&6
3251 fi
3252
3253
3254 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
3255 echo "configure:3256: checking "for --enable-wcsrtombs"" >&5
3256 no_cache=0
3257 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3258 if test "${enable_wcsrtombs+set}" = set; then
3259 enableval="$enable_wcsrtombs"
3260
3261 if test "$enableval" = yes; then
3262 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3263 else
3264 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3265 fi
3266
3267 else
3268
3269 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3270 if test "x$LINE" != x ; then
3271 eval "DEFAULT_$LINE"
3272 else
3273 no_cache=1
3274 fi
3275
3276 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3277
3278 fi
3279
3280
3281 eval "$ac_cv_use_wcsrtombs"
3282 if test "$no_cache" != 1; then
3283 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3284 fi
3285
3286 if test "$wxUSE_WCSRTOMBS" = yes; then
3287 echo "$ac_t""yes" 1>&6
3288 else
3289 echo "$ac_t""no" 1>&6
3290 fi
3291
3292
3293 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
3294 echo "configure:3295: checking "for --enable-wxprintfv"" >&5
3295 no_cache=0
3296 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3297 if test "${enable_wxprintfv+set}" = set; then
3298 enableval="$enable_wxprintfv"
3299
3300 if test "$enableval" = yes; then
3301 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3302 else
3303 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3304 fi
3305
3306 else
3307
3308 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3309 if test "x$LINE" != x ; then
3310 eval "DEFAULT_$LINE"
3311 else
3312 no_cache=1
3313 fi
3314
3315 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3316
3317 fi
3318
3319
3320 eval "$ac_cv_use_wxprintfv"
3321 if test "$no_cache" != 1; then
3322 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3323 fi
3324
3325 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3326 echo "$ac_t""yes" 1>&6
3327 else
3328 echo "$ac_t""no" 1>&6
3329 fi
3330
3331
3332 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
3333 echo "configure:3334: checking "for --enable-std_iostreams"" >&5
3334 no_cache=0
3335 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3336 if test "${enable_std_iostreams+set}" = set; then
3337 enableval="$enable_std_iostreams"
3338
3339 if test "$enableval" = yes; then
3340 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3341 else
3342 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3343 fi
3344
3345 else
3346
3347 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3348 if test "x$LINE" != x ; then
3349 eval "DEFAULT_$LINE"
3350 else
3351 no_cache=1
3352 fi
3353
3354 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3355
3356 fi
3357
3358
3359 eval "$ac_cv_use_std_iostreams"
3360 if test "$no_cache" != 1; then
3361 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3362 fi
3363
3364 if test "$wxUSE_STD_IOSTREAM" = yes; then
3365 echo "$ac_t""yes" 1>&6
3366 else
3367 echo "$ac_t""no" 1>&6
3368 fi
3369
3370
3371 echo $ac_n "checking "for --enable-filesystem"""... $ac_c" 1>&6
3372 echo "configure:3373: checking "for --enable-filesystem"" >&5
3373 no_cache=0
3374 # Check whether --enable-filesystem or --disable-filesystem was given.
3375 if test "${enable_filesystem+set}" = set; then
3376 enableval="$enable_filesystem"
3377
3378 if test "$enableval" = yes; then
3379 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3380 else
3381 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3382 fi
3383
3384 else
3385
3386 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3387 if test "x$LINE" != x ; then
3388 eval "DEFAULT_$LINE"
3389 else
3390 no_cache=1
3391 fi
3392
3393 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3394
3395 fi
3396
3397
3398 eval "$ac_cv_use_filesystem"
3399 if test "$no_cache" != 1; then
3400 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3401 fi
3402
3403 if test "$wxUSE_FILESYSTEM" = yes; then
3404 echo "$ac_t""yes" 1>&6
3405 else
3406 echo "$ac_t""no" 1>&6
3407 fi
3408
3409
3410 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
3411 echo "configure:3412: checking "for --enable-fs_inet"" >&5
3412 no_cache=0
3413 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3414 if test "${enable_fs_inet+set}" = set; then
3415 enableval="$enable_fs_inet"
3416
3417 if test "$enableval" = yes; then
3418 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3419 else
3420 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3421 fi
3422
3423 else
3424
3425 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3426 if test "x$LINE" != x ; then
3427 eval "DEFAULT_$LINE"
3428 else
3429 no_cache=1
3430 fi
3431
3432 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3433
3434 fi
3435
3436
3437 eval "$ac_cv_use_fs_inet"
3438 if test "$no_cache" != 1; then
3439 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3440 fi
3441
3442 if test "$wxUSE_FS_INET" = yes; then
3443 echo "$ac_t""yes" 1>&6
3444 else
3445 echo "$ac_t""no" 1>&6
3446 fi
3447
3448
3449 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
3450 echo "configure:3451: checking "for --enable-fs_zip"" >&5
3451 no_cache=0
3452 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3453 if test "${enable_fs_zip+set}" = set; then
3454 enableval="$enable_fs_zip"
3455
3456 if test "$enableval" = yes; then
3457 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3458 else
3459 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3460 fi
3461
3462 else
3463
3464 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3465 if test "x$LINE" != x ; then
3466 eval "DEFAULT_$LINE"
3467 else
3468 no_cache=1
3469 fi
3470
3471 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3472
3473 fi
3474
3475
3476 eval "$ac_cv_use_fs_zip"
3477 if test "$no_cache" != 1; then
3478 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3479 fi
3480
3481 if test "$wxUSE_FS_ZIP" = yes; then
3482 echo "$ac_t""yes" 1>&6
3483 else
3484 echo "$ac_t""no" 1>&6
3485 fi
3486
3487
3488 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
3489 echo "configure:3490: checking "for --enable-zipstream"" >&5
3490 no_cache=0
3491 # Check whether --enable-zipstream or --disable-zipstream was given.
3492 if test "${enable_zipstream+set}" = set; then
3493 enableval="$enable_zipstream"
3494
3495 if test "$enableval" = yes; then
3496 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3497 else
3498 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3499 fi
3500
3501 else
3502
3503 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3504 if test "x$LINE" != x ; then
3505 eval "DEFAULT_$LINE"
3506 else
3507 no_cache=1
3508 fi
3509
3510 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3511
3512 fi
3513
3514
3515 eval "$ac_cv_use_zipstream"
3516 if test "$no_cache" != 1; then
3517 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3518 fi
3519
3520 if test "$wxUSE_ZIPSTREAM" = yes; then
3521 echo "$ac_t""yes" 1>&6
3522 else
3523 echo "$ac_t""no" 1>&6
3524 fi
3525
3526
3527
3528 echo $ac_n "checking "for --enable-catch_segvs"""... $ac_c" 1>&6
3529 echo "configure:3530: checking "for --enable-catch_segvs"" >&5
3530 no_cache=0
3531 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
3532 if test "${enable_catch_segvs+set}" = set; then
3533 enableval="$enable_catch_segvs"
3534
3535 if test "$enableval" = yes; then
3536 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
3537 else
3538 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
3539 fi
3540
3541 else
3542
3543 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
3544 if test "x$LINE" != x ; then
3545 eval "DEFAULT_$LINE"
3546 else
3547 no_cache=1
3548 fi
3549
3550 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
3551
3552 fi
3553
3554
3555 eval "$ac_cv_use_catch_segvs"
3556 if test "$no_cache" != 1; then
3557 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
3558 fi
3559
3560 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
3561 echo "$ac_t""yes" 1>&6
3562 else
3563 echo "$ac_t""no" 1>&6
3564 fi
3565
3566
3567
3568
3569 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
3570 echo "configure:3571: checking "for --enable-threads"" >&5
3571 no_cache=0
3572 # Check whether --enable-threads or --disable-threads was given.
3573 if test "${enable_threads+set}" = set; then
3574 enableval="$enable_threads"
3575
3576 if test "$enableval" = yes; then
3577 ac_cv_use_threads='wxUSE_THREADS=yes'
3578 else
3579 ac_cv_use_threads='wxUSE_THREADS=no'
3580 fi
3581
3582 else
3583
3584 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3585 if test "x$LINE" != x ; then
3586 eval "DEFAULT_$LINE"
3587 else
3588 no_cache=1
3589 fi
3590
3591 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3592
3593 fi
3594
3595
3596 eval "$ac_cv_use_threads"
3597 if test "$no_cache" != 1; then
3598 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3599 fi
3600
3601 if test "$wxUSE_THREADS" = yes; then
3602 echo "$ac_t""yes" 1>&6
3603 else
3604 echo "$ac_t""no" 1>&6
3605 fi
3606
3607
3608 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
3609 echo "configure:3610: checking "for --enable-serial"" >&5
3610 no_cache=0
3611 # Check whether --enable-serial or --disable-serial was given.
3612 if test "${enable_serial+set}" = set; then
3613 enableval="$enable_serial"
3614
3615 if test "$enableval" = yes; then
3616 ac_cv_use_serial='wxUSE_SERIAL=yes'
3617 else
3618 ac_cv_use_serial='wxUSE_SERIAL=no'
3619 fi
3620
3621 else
3622
3623 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3624 if test "x$LINE" != x ; then
3625 eval "DEFAULT_$LINE"
3626 else
3627 no_cache=1
3628 fi
3629
3630 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3631
3632 fi
3633
3634
3635 eval "$ac_cv_use_serial"
3636 if test "$no_cache" != 1; then
3637 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3638 fi
3639
3640 if test "$wxUSE_SERIAL" = yes; then
3641 echo "$ac_t""yes" 1>&6
3642 else
3643 echo "$ac_t""no" 1>&6
3644 fi
3645
3646
3647 if test "$wxUSE_GUI" = "yes"; then
3648
3649
3650
3651 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
3652 echo "configure:3653: checking "for --enable-docview"" >&5
3653 no_cache=0
3654 # Check whether --enable-docview or --disable-docview was given.
3655 if test "${enable_docview+set}" = set; then
3656 enableval="$enable_docview"
3657
3658 if test "$enableval" = yes; then
3659 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3660 else
3661 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3662 fi
3663
3664 else
3665
3666 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3667 if test "x$LINE" != x ; then
3668 eval "DEFAULT_$LINE"
3669 else
3670 no_cache=1
3671 fi
3672
3673 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3674
3675 fi
3676
3677
3678 eval "$ac_cv_use_docview"
3679 if test "$no_cache" != 1; then
3680 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3681 fi
3682
3683 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3684 echo "$ac_t""yes" 1>&6
3685 else
3686 echo "$ac_t""no" 1>&6
3687 fi
3688
3689
3690 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
3691 echo "configure:3692: checking "for --enable-help"" >&5
3692 no_cache=0
3693 # Check whether --enable-help or --disable-help was given.
3694 if test "${enable_help+set}" = set; then
3695 enableval="$enable_help"
3696
3697 if test "$enableval" = yes; then
3698 ac_cv_use_help='wxUSE_HELP=yes'
3699 else
3700 ac_cv_use_help='wxUSE_HELP=no'
3701 fi
3702
3703 else
3704
3705 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3706 if test "x$LINE" != x ; then
3707 eval "DEFAULT_$LINE"
3708 else
3709 no_cache=1
3710 fi
3711
3712 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3713
3714 fi
3715
3716
3717 eval "$ac_cv_use_help"
3718 if test "$no_cache" != 1; then
3719 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3720 fi
3721
3722 if test "$wxUSE_HELP" = yes; then
3723 echo "$ac_t""yes" 1>&6
3724 else
3725 echo "$ac_t""no" 1>&6
3726 fi
3727
3728
3729 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
3730 echo "configure:3731: checking "for --enable-constraints"" >&5
3731 no_cache=0
3732 # Check whether --enable-constraints or --disable-constraints was given.
3733 if test "${enable_constraints+set}" = set; then
3734 enableval="$enable_constraints"
3735
3736 if test "$enableval" = yes; then
3737 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3738 else
3739 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3740 fi
3741
3742 else
3743
3744 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3745 if test "x$LINE" != x ; then
3746 eval "DEFAULT_$LINE"
3747 else
3748 no_cache=1
3749 fi
3750
3751 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3752
3753 fi
3754
3755
3756 eval "$ac_cv_use_constraints"
3757 if test "$no_cache" != 1; then
3758 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3759 fi
3760
3761 if test "$wxUSE_CONSTRAINTS" = yes; then
3762 echo "$ac_t""yes" 1>&6
3763 else
3764 echo "$ac_t""no" 1>&6
3765 fi
3766
3767
3768 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
3769 echo "configure:3770: checking "for --enable-printarch"" >&5
3770 no_cache=0
3771 # Check whether --enable-printarch or --disable-printarch was given.
3772 if test "${enable_printarch+set}" = set; then
3773 enableval="$enable_printarch"
3774
3775 if test "$enableval" = yes; then
3776 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3777 else
3778 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3779 fi
3780
3781 else
3782
3783 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3784 if test "x$LINE" != x ; then
3785 eval "DEFAULT_$LINE"
3786 else
3787 no_cache=1
3788 fi
3789
3790 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3791
3792 fi
3793
3794
3795 eval "$ac_cv_use_printarch"
3796 if test "$no_cache" != 1; then
3797 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3798 fi
3799
3800 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3801 echo "$ac_t""yes" 1>&6
3802 else
3803 echo "$ac_t""no" 1>&6
3804 fi
3805
3806
3807 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
3808 echo "configure:3809: checking "for --enable-mdi"" >&5
3809 no_cache=0
3810 # Check whether --enable-mdi or --disable-mdi was given.
3811 if test "${enable_mdi+set}" = set; then
3812 enableval="$enable_mdi"
3813
3814 if test "$enableval" = yes; then
3815 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3816 else
3817 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3818 fi
3819
3820 else
3821
3822 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3823 if test "x$LINE" != x ; then
3824 eval "DEFAULT_$LINE"
3825 else
3826 no_cache=1
3827 fi
3828
3829 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3830
3831 fi
3832
3833
3834 eval "$ac_cv_use_mdi"
3835 if test "$no_cache" != 1; then
3836 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3837 fi
3838
3839 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3840 echo "$ac_t""yes" 1>&6
3841 else
3842 echo "$ac_t""no" 1>&6
3843 fi
3844
3845
3846
3847 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
3848 echo "configure:3849: checking "for --enable-postscript"" >&5
3849 no_cache=0
3850 # Check whether --enable-postscript or --disable-postscript was given.
3851 if test "${enable_postscript+set}" = set; then
3852 enableval="$enable_postscript"
3853
3854 if test "$enableval" = yes; then
3855 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3856 else
3857 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3858 fi
3859
3860 else
3861
3862 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3863 if test "x$LINE" != x ; then
3864 eval "DEFAULT_$LINE"
3865 else
3866 no_cache=1
3867 fi
3868
3869 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3870
3871 fi
3872
3873
3874 eval "$ac_cv_use_postscript"
3875 if test "$no_cache" != 1; then
3876 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3877 fi
3878
3879 if test "$wxUSE_POSTSCRIPT" = yes; then
3880 echo "$ac_t""yes" 1>&6
3881 else
3882 echo "$ac_t""no" 1>&6
3883 fi
3884
3885
3886
3887
3888 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
3889 echo "configure:3890: checking "for --enable-prologio"" >&5
3890 no_cache=0
3891 # Check whether --enable-prologio or --disable-prologio was given.
3892 if test "${enable_prologio+set}" = set; then
3893 enableval="$enable_prologio"
3894
3895 if test "$enableval" = yes; then
3896 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3897 else
3898 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3899 fi
3900
3901 else
3902
3903 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3904 if test "x$LINE" != x ; then
3905 eval "DEFAULT_$LINE"
3906 else
3907 no_cache=1
3908 fi
3909
3910 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3911
3912 fi
3913
3914
3915 eval "$ac_cv_use_prologio"
3916 if test "$no_cache" != 1; then
3917 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3918 fi
3919
3920 if test "$wxUSE_PROLOGIO" = yes; then
3921 echo "$ac_t""yes" 1>&6
3922 else
3923 echo "$ac_t""no" 1>&6
3924 fi
3925
3926
3927 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
3928 echo "configure:3929: checking "for --enable-resources"" >&5
3929 no_cache=0
3930 # Check whether --enable-resources or --disable-resources was given.
3931 if test "${enable_resources+set}" = set; then
3932 enableval="$enable_resources"
3933
3934 if test "$enableval" = yes; then
3935 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3936 else
3937 ac_cv_use_resources='wxUSE_RESOURCES=no'
3938 fi
3939
3940 else
3941
3942 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3943 if test "x$LINE" != x ; then
3944 eval "DEFAULT_$LINE"
3945 else
3946 no_cache=1
3947 fi
3948
3949 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3950
3951 fi
3952
3953
3954 eval "$ac_cv_use_resources"
3955 if test "$no_cache" != 1; then
3956 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3957 fi
3958
3959 if test "$wxUSE_RESOURCES" = yes; then
3960 echo "$ac_t""yes" 1>&6
3961 else
3962 echo "$ac_t""no" 1>&6
3963 fi
3964
3965
3966
3967 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
3968 echo "configure:3969: checking "for --enable-xresources"" >&5
3969 no_cache=0
3970 # Check whether --enable-xresources or --disable-xresources was given.
3971 if test "${enable_xresources+set}" = set; then
3972 enableval="$enable_xresources"
3973
3974 if test "$enableval" = yes; then
3975 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3976 else
3977 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3978 fi
3979
3980 else
3981
3982 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3983 if test "x$LINE" != x ; then
3984 eval "DEFAULT_$LINE"
3985 else
3986 no_cache=1
3987 fi
3988
3989 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3990
3991 fi
3992
3993
3994 eval "$ac_cv_use_xresources"
3995 if test "$no_cache" != 1; then
3996 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3997 fi
3998
3999 if test "$wxUSE_X_RESOURCES" = yes; then
4000 echo "$ac_t""yes" 1>&6
4001 else
4002 echo "$ac_t""no" 1>&6
4003 fi
4004
4005
4006
4007
4008 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
4009 echo "configure:4010: checking "for --enable-clipboard"" >&5
4010 no_cache=0
4011 # Check whether --enable-clipboard or --disable-clipboard was given.
4012 if test "${enable_clipboard+set}" = set; then
4013 enableval="$enable_clipboard"
4014
4015 if test "$enableval" = yes; then
4016 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4017 else
4018 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4019 fi
4020
4021 else
4022
4023 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4024 if test "x$LINE" != x ; then
4025 eval "DEFAULT_$LINE"
4026 else
4027 no_cache=1
4028 fi
4029
4030 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
4031
4032 fi
4033
4034
4035 eval "$ac_cv_use_clipboard"
4036 if test "$no_cache" != 1; then
4037 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4038 fi
4039
4040 if test "$wxUSE_CLIPBOARD" = yes; then
4041 echo "$ac_t""yes" 1>&6
4042 else
4043 echo "$ac_t""no" 1>&6
4044 fi
4045
4046
4047 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
4048 echo "configure:4049: checking "for --enable-dnd"" >&5
4049 no_cache=0
4050 # Check whether --enable-dnd or --disable-dnd was given.
4051 if test "${enable_dnd+set}" = set; then
4052 enableval="$enable_dnd"
4053
4054 if test "$enableval" = yes; then
4055 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4056 else
4057 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4058 fi
4059
4060 else
4061
4062 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4063 if test "x$LINE" != x ; then
4064 eval "DEFAULT_$LINE"
4065 else
4066 no_cache=1
4067 fi
4068
4069 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
4070
4071 fi
4072
4073
4074 eval "$ac_cv_use_dnd"
4075 if test "$no_cache" != 1; then
4076 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4077 fi
4078
4079 if test "$wxUSE_DRAG_AND_DROP" = yes; then
4080 echo "$ac_t""yes" 1>&6
4081 else
4082 echo "$ac_t""no" 1>&6
4083 fi
4084
4085
4086 echo $ac_n "checking "for --enable-metafile"""... $ac_c" 1>&6
4087 echo "configure:4088: checking "for --enable-metafile"" >&5
4088 no_cache=0
4089 # Check whether --enable-metafile or --disable-metafile was given.
4090 if test "${enable_metafile+set}" = set; then
4091 enableval="$enable_metafile"
4092
4093 if test "$enableval" = yes; then
4094 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4095 else
4096 ac_cv_use_metafile='wxUSE_METAFILE=no'
4097 fi
4098
4099 else
4100
4101 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4102 if test "x$LINE" != x ; then
4103 eval "DEFAULT_$LINE"
4104 else
4105 no_cache=1
4106 fi
4107
4108 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
4109
4110 fi
4111
4112
4113 eval "$ac_cv_use_metafile"
4114 if test "$no_cache" != 1; then
4115 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4116 fi
4117
4118 if test "$wxUSE_METAFILE" = yes; then
4119 echo "$ac_t""yes" 1>&6
4120 else
4121 echo "$ac_t""no" 1>&6
4122 fi
4123
4124
4125
4126 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
4127 echo "configure:4128: checking "for --enable-wxtree"" >&5
4128 no_cache=0
4129 # Check whether --enable-wxtree or --disable-wxtree was given.
4130 if test "${enable_wxtree+set}" = set; then
4131 enableval="$enable_wxtree"
4132
4133 if test "$enableval" = yes; then
4134 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
4135 else
4136 ac_cv_use_wxtree='wxUSE_WXTREE=no'
4137 fi
4138
4139 else
4140
4141 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
4142 if test "x$LINE" != x ; then
4143 eval "DEFAULT_$LINE"
4144 else
4145 no_cache=1
4146 fi
4147
4148 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
4149
4150 fi
4151
4152
4153 eval "$ac_cv_use_wxtree"
4154 if test "$no_cache" != 1; then
4155 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
4156 fi
4157
4158 if test "$wxUSE_WXTREE" = yes; then
4159 echo "$ac_t""yes" 1>&6
4160 else
4161 echo "$ac_t""no" 1>&6
4162 fi
4163
4164
4165
4166
4167 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
4168 echo "configure:4169: checking "for --enable-controls"" >&5
4169 no_cache=0
4170 # Check whether --enable-controls or --disable-controls was given.
4171 if test "${enable_controls+set}" = set; then
4172 enableval="$enable_controls"
4173
4174 if test "$enableval" = yes; then
4175 ac_cv_use_controls='wxUSE_CONTROLS=yes'
4176 else
4177 ac_cv_use_controls='wxUSE_CONTROLS=no'
4178 fi
4179
4180 else
4181
4182 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
4183 if test "x$LINE" != x ; then
4184 eval "DEFAULT_$LINE"
4185 else
4186 no_cache=1
4187 fi
4188
4189 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
4190
4191 fi
4192
4193
4194 eval "$ac_cv_use_controls"
4195 if test "$no_cache" != 1; then
4196 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
4197 fi
4198
4199 if test "$wxUSE_CONTROLS" = yes; then
4200 echo "$ac_t""yes" 1>&6
4201 else
4202 echo "$ac_t""no" 1>&6
4203 fi
4204
4205
4206 if test "$wxUSE_CONTROLS" = "yes"; then
4207 DEFAULT_wxUSE_ACCEL=yes
4208 DEFAULT_wxUSE_CARET=yes
4209 DEFAULT_wxUSE_COMBOBOX=yes
4210 DEFAULT_wxUSE_BMPBUTTON=yes
4211 DEFAULT_wxUSE_CHECKBOX=yes
4212 DEFAULT_wxUSE_CHECKLISTBOX=yes
4213 DEFAULT_wxUSE_CHOICE=yes
4214 DEFAULT_wxUSE_GAUGE=yes
4215 DEFAULT_wxUSE_GRID=yes
4216 DEFAULT_wxUSE_NEW_GRID=yes
4217 DEFAULT_wxUSE_IMAGLIST=yes
4218 DEFAULT_wxUSE_LISTBOX=yes
4219 DEFAULT_wxUSE_LISTCTRL=yes
4220 DEFAULT_wxUSE_NOTEBOOK=yes
4221 DEFAULT_wxUSE_RADIOBOX=yes
4222 DEFAULT_wxUSE_RADIOBTN=yes
4223 DEFAULT_wxUSE_SASH=yes
4224 DEFAULT_wxUSE_SCROLLBAR=yes
4225 DEFAULT_wxUSE_SLIDER=yes
4226 DEFAULT_wxUSE_SPINBTN=yes
4227 DEFAULT_wxUSE_SPINCTRL=yes
4228 DEFAULT_wxUSE_SPLITTER=yes
4229 DEFAULT_wxUSE_STATBMP=yes
4230 DEFAULT_wxUSE_STATBOX=yes
4231 DEFAULT_wxUSE_STATLINE=yes
4232 DEFAULT_wxUSE_STATUSBAR=yes
4233 DEFAULT_wxUSE_TAB_DIALOG=yes
4234 DEFAULT_wxUSE_TOGGLEBTN=yes
4235 DEFAULT_wxUSE_TOOLBAR=yes
4236 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
4237 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
4238 DEFAULT_wxUSE_TOOLTIPS=yes
4239 DEFAULT_wxUSE_TREECTRL=yes
4240 elif test "$wxUSE_CONTROLS" = "no"; then
4241 DEFAULT_wxUSE_ACCEL=no
4242 DEFAULT_wxUSE_CARET=no
4243 DEFAULT_wxUSE_COMBOBOX=no
4244 DEFAULT_wxUSE_BMPBUTTON=no
4245 DEFAULT_wxUSE_CHECKBOX=no
4246 DEFAULT_wxUSE_CHECKLISTBOX=no
4247 DEFAULT_wxUSE_CHOICE=no
4248 DEFAULT_wxUSE_GAUGE=no
4249 DEFAULT_wxUSE_GRID=no
4250 DEFAULT_wxUSE_NEW_GRID=no
4251 DEFAULT_wxUSE_IMAGLIST=no
4252 DEFAULT_wxUSE_LISTBOX=no
4253 DEFAULT_wxUSE_LISTCTRL=no
4254 DEFAULT_wxUSE_NOTEBOOK=no
4255 DEFAULT_wxUSE_RADIOBOX=no
4256 DEFAULT_wxUSE_RADIOBTN=no
4257 DEFAULT_wxUSE_SASH=no
4258 DEFAULT_wxUSE_SCROLLBAR=no
4259 DEFAULT_wxUSE_SLIDER=no
4260 DEFAULT_wxUSE_SPINBTN=no
4261 DEFAULT_wxUSE_SPINCTRL=no
4262 DEFAULT_wxUSE_SPLITTER=no
4263 DEFAULT_wxUSE_STATBMP=no
4264 DEFAULT_wxUSE_STATBOX=no
4265 DEFAULT_wxUSE_STATLINE=no
4266 DEFAULT_wxUSE_STATUSBAR=no
4267 DEFAULT_wxUSE_TAB_DIALOG=no
4268 DEFAULT_wxUSE_TOGGLEBTN=no
4269 DEFAULT_wxUSE_TOOLBAR=no
4270 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
4271 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
4272 DEFAULT_wxUSE_TOOLTIPS=no
4273 DEFAULT_wxUSE_TREECTRL=no
4274 fi
4275
4276
4277 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
4278 echo "configure:4279: checking "for --enable-accel"" >&5
4279 no_cache=0
4280 # Check whether --enable-accel or --disable-accel was given.
4281 if test "${enable_accel+set}" = set; then
4282 enableval="$enable_accel"
4283
4284 if test "$enableval" = yes; then
4285 ac_cv_use_accel='wxUSE_ACCEL=yes'
4286 else
4287 ac_cv_use_accel='wxUSE_ACCEL=no'
4288 fi
4289
4290 else
4291
4292 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
4293 if test "x$LINE" != x ; then
4294 eval "DEFAULT_$LINE"
4295 else
4296 no_cache=1
4297 fi
4298
4299 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
4300
4301 fi
4302
4303
4304 eval "$ac_cv_use_accel"
4305 if test "$no_cache" != 1; then
4306 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
4307 fi
4308
4309 if test "$wxUSE_ACCEL" = yes; then
4310 echo "$ac_t""yes" 1>&6
4311 else
4312 echo "$ac_t""no" 1>&6
4313 fi
4314
4315
4316 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
4317 echo "configure:4318: checking "for --enable-caret"" >&5
4318 no_cache=0
4319 # Check whether --enable-caret or --disable-caret was given.
4320 if test "${enable_caret+set}" = set; then
4321 enableval="$enable_caret"
4322
4323 if test "$enableval" = yes; then
4324 ac_cv_use_caret='wxUSE_CARET=yes'
4325 else
4326 ac_cv_use_caret='wxUSE_CARET=no'
4327 fi
4328
4329 else
4330
4331 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
4332 if test "x$LINE" != x ; then
4333 eval "DEFAULT_$LINE"
4334 else
4335 no_cache=1
4336 fi
4337
4338 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
4339
4340 fi
4341
4342
4343 eval "$ac_cv_use_caret"
4344 if test "$no_cache" != 1; then
4345 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4346 fi
4347
4348 if test "$wxUSE_CARET" = yes; then
4349 echo "$ac_t""yes" 1>&6
4350 else
4351 echo "$ac_t""no" 1>&6
4352 fi
4353
4354
4355 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
4356 echo "configure:4357: checking "for --enable-bmpbutton"" >&5
4357 no_cache=0
4358 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4359 if test "${enable_bmpbutton+set}" = set; then
4360 enableval="$enable_bmpbutton"
4361
4362 if test "$enableval" = yes; then
4363 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4364 else
4365 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4366 fi
4367
4368 else
4369
4370 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4371 if test "x$LINE" != x ; then
4372 eval "DEFAULT_$LINE"
4373 else
4374 no_cache=1
4375 fi
4376
4377 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4378
4379 fi
4380
4381
4382 eval "$ac_cv_use_bmpbutton"
4383 if test "$no_cache" != 1; then
4384 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4385 fi
4386
4387 if test "$wxUSE_BMPBUTTON" = yes; then
4388 echo "$ac_t""yes" 1>&6
4389 else
4390 echo "$ac_t""no" 1>&6
4391 fi
4392
4393
4394 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
4395 echo "configure:4396: checking "for --enable-checkbox"" >&5
4396 no_cache=0
4397 # Check whether --enable-checkbox or --disable-checkbox was given.
4398 if test "${enable_checkbox+set}" = set; then
4399 enableval="$enable_checkbox"
4400
4401 if test "$enableval" = yes; then
4402 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4403 else
4404 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4405 fi
4406
4407 else
4408
4409 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4410 if test "x$LINE" != x ; then
4411 eval "DEFAULT_$LINE"
4412 else
4413 no_cache=1
4414 fi
4415
4416 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4417
4418 fi
4419
4420
4421 eval "$ac_cv_use_checkbox"
4422 if test "$no_cache" != 1; then
4423 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4424 fi
4425
4426 if test "$wxUSE_CHECKBOX" = yes; then
4427 echo "$ac_t""yes" 1>&6
4428 else
4429 echo "$ac_t""no" 1>&6
4430 fi
4431
4432
4433 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
4434 echo "configure:4435: checking "for --enable-checklst"" >&5
4435 no_cache=0
4436 # Check whether --enable-checklst or --disable-checklst was given.
4437 if test "${enable_checklst+set}" = set; then
4438 enableval="$enable_checklst"
4439
4440 if test "$enableval" = yes; then
4441 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4442 else
4443 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4444 fi
4445
4446 else
4447
4448 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4449 if test "x$LINE" != x ; then
4450 eval "DEFAULT_$LINE"
4451 else
4452 no_cache=1
4453 fi
4454
4455 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4456
4457 fi
4458
4459
4460 eval "$ac_cv_use_checklst"
4461 if test "$no_cache" != 1; then
4462 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4463 fi
4464
4465 if test "$wxUSE_CHECKLST" = yes; then
4466 echo "$ac_t""yes" 1>&6
4467 else
4468 echo "$ac_t""no" 1>&6
4469 fi
4470
4471
4472 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
4473 echo "configure:4474: checking "for --enable-choice"" >&5
4474 no_cache=0
4475 # Check whether --enable-choice or --disable-choice was given.
4476 if test "${enable_choice+set}" = set; then
4477 enableval="$enable_choice"
4478
4479 if test "$enableval" = yes; then
4480 ac_cv_use_choice='wxUSE_CHOICE=yes'
4481 else
4482 ac_cv_use_choice='wxUSE_CHOICE=no'
4483 fi
4484
4485 else
4486
4487 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4488 if test "x$LINE" != x ; then
4489 eval "DEFAULT_$LINE"
4490 else
4491 no_cache=1
4492 fi
4493
4494 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4495
4496 fi
4497
4498
4499 eval "$ac_cv_use_choice"
4500 if test "$no_cache" != 1; then
4501 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4502 fi
4503
4504 if test "$wxUSE_CHOICE" = yes; then
4505 echo "$ac_t""yes" 1>&6
4506 else
4507 echo "$ac_t""no" 1>&6
4508 fi
4509
4510
4511 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
4512 echo "configure:4513: checking "for --enable-combobox"" >&5
4513 no_cache=0
4514 # Check whether --enable-combobox or --disable-combobox was given.
4515 if test "${enable_combobox+set}" = set; then
4516 enableval="$enable_combobox"
4517
4518 if test "$enableval" = yes; then
4519 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4520 else
4521 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4522 fi
4523
4524 else
4525
4526 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4527 if test "x$LINE" != x ; then
4528 eval "DEFAULT_$LINE"
4529 else
4530 no_cache=1
4531 fi
4532
4533 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4534
4535 fi
4536
4537
4538 eval "$ac_cv_use_combobox"
4539 if test "$no_cache" != 1; then
4540 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4541 fi
4542
4543 if test "$wxUSE_COMBOBOX" = yes; then
4544 echo "$ac_t""yes" 1>&6
4545 else
4546 echo "$ac_t""no" 1>&6
4547 fi
4548
4549
4550 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
4551 echo "configure:4552: checking "for --enable-gauge"" >&5
4552 no_cache=0
4553 # Check whether --enable-gauge or --disable-gauge was given.
4554 if test "${enable_gauge+set}" = set; then
4555 enableval="$enable_gauge"
4556
4557 if test "$enableval" = yes; then
4558 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4559 else
4560 ac_cv_use_gauge='wxUSE_GAUGE=no'
4561 fi
4562
4563 else
4564
4565 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4566 if test "x$LINE" != x ; then
4567 eval "DEFAULT_$LINE"
4568 else
4569 no_cache=1
4570 fi
4571
4572 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4573
4574 fi
4575
4576
4577 eval "$ac_cv_use_gauge"
4578 if test "$no_cache" != 1; then
4579 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4580 fi
4581
4582 if test "$wxUSE_GAUGE" = yes; then
4583 echo "$ac_t""yes" 1>&6
4584 else
4585 echo "$ac_t""no" 1>&6
4586 fi
4587
4588
4589 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
4590 echo "configure:4591: checking "for --enable-grid"" >&5
4591 no_cache=0
4592 # Check whether --enable-grid or --disable-grid was given.
4593 if test "${enable_grid+set}" = set; then
4594 enableval="$enable_grid"
4595
4596 if test "$enableval" = yes; then
4597 ac_cv_use_grid='wxUSE_GRID=yes'
4598 else
4599 ac_cv_use_grid='wxUSE_GRID=no'
4600 fi
4601
4602 else
4603
4604 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4605 if test "x$LINE" != x ; then
4606 eval "DEFAULT_$LINE"
4607 else
4608 no_cache=1
4609 fi
4610
4611 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4612
4613 fi
4614
4615
4616 eval "$ac_cv_use_grid"
4617 if test "$no_cache" != 1; then
4618 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4619 fi
4620
4621 if test "$wxUSE_GRID" = yes; then
4622 echo "$ac_t""yes" 1>&6
4623 else
4624 echo "$ac_t""no" 1>&6
4625 fi
4626
4627
4628 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
4629 echo "configure:4630: checking "for --enable-newgrid"" >&5
4630 no_cache=0
4631 # Check whether --enable-newgrid or --disable-newgrid was given.
4632 if test "${enable_newgrid+set}" = set; then
4633 enableval="$enable_newgrid"
4634
4635 if test "$enableval" = yes; then
4636 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4637 else
4638 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4639 fi
4640
4641 else
4642
4643 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4644 if test "x$LINE" != x ; then
4645 eval "DEFAULT_$LINE"
4646 else
4647 no_cache=1
4648 fi
4649
4650 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4651
4652 fi
4653
4654
4655 eval "$ac_cv_use_newgrid"
4656 if test "$no_cache" != 1; then
4657 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4658 fi
4659
4660 if test "$wxUSE_NEW_GRID" = yes; then
4661 echo "$ac_t""yes" 1>&6
4662 else
4663 echo "$ac_t""no" 1>&6
4664 fi
4665
4666
4667 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
4668 echo "configure:4669: checking "for --enable-imaglist"" >&5
4669 no_cache=0
4670 # Check whether --enable-imaglist or --disable-imaglist was given.
4671 if test "${enable_imaglist+set}" = set; then
4672 enableval="$enable_imaglist"
4673
4674 if test "$enableval" = yes; then
4675 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4676 else
4677 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4678 fi
4679
4680 else
4681
4682 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4683 if test "x$LINE" != x ; then
4684 eval "DEFAULT_$LINE"
4685 else
4686 no_cache=1
4687 fi
4688
4689 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4690
4691 fi
4692
4693
4694 eval "$ac_cv_use_imaglist"
4695 if test "$no_cache" != 1; then
4696 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4697 fi
4698
4699 if test "$wxUSE_IMAGLIST" = yes; then
4700 echo "$ac_t""yes" 1>&6
4701 else
4702 echo "$ac_t""no" 1>&6
4703 fi
4704
4705
4706 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
4707 echo "configure:4708: checking "for --enable-listbox"" >&5
4708 no_cache=0
4709 # Check whether --enable-listbox or --disable-listbox was given.
4710 if test "${enable_listbox+set}" = set; then
4711 enableval="$enable_listbox"
4712
4713 if test "$enableval" = yes; then
4714 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4715 else
4716 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4717 fi
4718
4719 else
4720
4721 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4722 if test "x$LINE" != x ; then
4723 eval "DEFAULT_$LINE"
4724 else
4725 no_cache=1
4726 fi
4727
4728 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4729
4730 fi
4731
4732
4733 eval "$ac_cv_use_listbox"
4734 if test "$no_cache" != 1; then
4735 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4736 fi
4737
4738 if test "$wxUSE_LISTBOX" = yes; then
4739 echo "$ac_t""yes" 1>&6
4740 else
4741 echo "$ac_t""no" 1>&6
4742 fi
4743
4744
4745 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
4746 echo "configure:4747: checking "for --enable-listctrl"" >&5
4747 no_cache=0
4748 # Check whether --enable-listctrl or --disable-listctrl was given.
4749 if test "${enable_listctrl+set}" = set; then
4750 enableval="$enable_listctrl"
4751
4752 if test "$enableval" = yes; then
4753 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4754 else
4755 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4756 fi
4757
4758 else
4759
4760 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4761 if test "x$LINE" != x ; then
4762 eval "DEFAULT_$LINE"
4763 else
4764 no_cache=1
4765 fi
4766
4767 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4768
4769 fi
4770
4771
4772 eval "$ac_cv_use_listctrl"
4773 if test "$no_cache" != 1; then
4774 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4775 fi
4776
4777 if test "$wxUSE_LISTCTRL" = yes; then
4778 echo "$ac_t""yes" 1>&6
4779 else
4780 echo "$ac_t""no" 1>&6
4781 fi
4782
4783
4784 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
4785 echo "configure:4786: checking "for --enable-notebook"" >&5
4786 no_cache=0
4787 # Check whether --enable-notebook or --disable-notebook was given.
4788 if test "${enable_notebook+set}" = set; then
4789 enableval="$enable_notebook"
4790
4791 if test "$enableval" = yes; then
4792 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4793 else
4794 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4795 fi
4796
4797 else
4798
4799 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4800 if test "x$LINE" != x ; then
4801 eval "DEFAULT_$LINE"
4802 else
4803 no_cache=1
4804 fi
4805
4806 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4807
4808 fi
4809
4810
4811 eval "$ac_cv_use_notebook"
4812 if test "$no_cache" != 1; then
4813 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4814 fi
4815
4816 if test "$wxUSE_NOTEBOOK" = yes; then
4817 echo "$ac_t""yes" 1>&6
4818 else
4819 echo "$ac_t""no" 1>&6
4820 fi
4821
4822
4823 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
4824 echo "configure:4825: checking "for --enable-radiobox"" >&5
4825 no_cache=0
4826 # Check whether --enable-radiobox or --disable-radiobox was given.
4827 if test "${enable_radiobox+set}" = set; then
4828 enableval="$enable_radiobox"
4829
4830 if test "$enableval" = yes; then
4831 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4832 else
4833 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4834 fi
4835
4836 else
4837
4838 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4839 if test "x$LINE" != x ; then
4840 eval "DEFAULT_$LINE"
4841 else
4842 no_cache=1
4843 fi
4844
4845 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4846
4847 fi
4848
4849
4850 eval "$ac_cv_use_radiobox"
4851 if test "$no_cache" != 1; then
4852 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4853 fi
4854
4855 if test "$wxUSE_RADIOBOX" = yes; then
4856 echo "$ac_t""yes" 1>&6
4857 else
4858 echo "$ac_t""no" 1>&6
4859 fi
4860
4861
4862 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
4863 echo "configure:4864: checking "for --enable-radiobtn"" >&5
4864 no_cache=0
4865 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4866 if test "${enable_radiobtn+set}" = set; then
4867 enableval="$enable_radiobtn"
4868
4869 if test "$enableval" = yes; then
4870 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4871 else
4872 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4873 fi
4874
4875 else
4876
4877 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4878 if test "x$LINE" != x ; then
4879 eval "DEFAULT_$LINE"
4880 else
4881 no_cache=1
4882 fi
4883
4884 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4885
4886 fi
4887
4888
4889 eval "$ac_cv_use_radiobtn"
4890 if test "$no_cache" != 1; then
4891 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4892 fi
4893
4894 if test "$wxUSE_RADIOBTN" = yes; then
4895 echo "$ac_t""yes" 1>&6
4896 else
4897 echo "$ac_t""no" 1>&6
4898 fi
4899
4900
4901 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
4902 echo "configure:4903: checking "for --enable-sash"" >&5
4903 no_cache=0
4904 # Check whether --enable-sash or --disable-sash was given.
4905 if test "${enable_sash+set}" = set; then
4906 enableval="$enable_sash"
4907
4908 if test "$enableval" = yes; then
4909 ac_cv_use_sash='wxUSE_SASH=yes'
4910 else
4911 ac_cv_use_sash='wxUSE_SASH=no'
4912 fi
4913
4914 else
4915
4916 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4917 if test "x$LINE" != x ; then
4918 eval "DEFAULT_$LINE"
4919 else
4920 no_cache=1
4921 fi
4922
4923 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4924
4925 fi
4926
4927
4928 eval "$ac_cv_use_sash"
4929 if test "$no_cache" != 1; then
4930 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4931 fi
4932
4933 if test "$wxUSE_SASH" = yes; then
4934 echo "$ac_t""yes" 1>&6
4935 else
4936 echo "$ac_t""no" 1>&6
4937 fi
4938
4939
4940 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
4941 echo "configure:4942: checking "for --enable-scrollbar"" >&5
4942 no_cache=0
4943 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4944 if test "${enable_scrollbar+set}" = set; then
4945 enableval="$enable_scrollbar"
4946
4947 if test "$enableval" = yes; then
4948 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4949 else
4950 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4951 fi
4952
4953 else
4954
4955 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4956 if test "x$LINE" != x ; then
4957 eval "DEFAULT_$LINE"
4958 else
4959 no_cache=1
4960 fi
4961
4962 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4963
4964 fi
4965
4966
4967 eval "$ac_cv_use_scrollbar"
4968 if test "$no_cache" != 1; then
4969 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4970 fi
4971
4972 if test "$wxUSE_SCROLLBAR" = yes; then
4973 echo "$ac_t""yes" 1>&6
4974 else
4975 echo "$ac_t""no" 1>&6
4976 fi
4977
4978
4979 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
4980 echo "configure:4981: checking "for --enable-slider"" >&5
4981 no_cache=0
4982 # Check whether --enable-slider or --disable-slider was given.
4983 if test "${enable_slider+set}" = set; then
4984 enableval="$enable_slider"
4985
4986 if test "$enableval" = yes; then
4987 ac_cv_use_slider='wxUSE_SLIDER=yes'
4988 else
4989 ac_cv_use_slider='wxUSE_SLIDER=no'
4990 fi
4991
4992 else
4993
4994 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4995 if test "x$LINE" != x ; then
4996 eval "DEFAULT_$LINE"
4997 else
4998 no_cache=1
4999 fi
5000
5001 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
5002
5003 fi
5004
5005
5006 eval "$ac_cv_use_slider"
5007 if test "$no_cache" != 1; then
5008 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5009 fi
5010
5011 if test "$wxUSE_SLIDER" = yes; then
5012 echo "$ac_t""yes" 1>&6
5013 else
5014 echo "$ac_t""no" 1>&6
5015 fi
5016
5017
5018 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
5019 echo "configure:5020: checking "for --enable-spinbtn"" >&5
5020 no_cache=0
5021 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5022 if test "${enable_spinbtn+set}" = set; then
5023 enableval="$enable_spinbtn"
5024
5025 if test "$enableval" = yes; then
5026 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5027 else
5028 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
5029 fi
5030
5031 else
5032
5033 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
5034 if test "x$LINE" != x ; then
5035 eval "DEFAULT_$LINE"
5036 else
5037 no_cache=1
5038 fi
5039
5040 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
5041
5042 fi
5043
5044
5045 eval "$ac_cv_use_spinbtn"
5046 if test "$no_cache" != 1; then
5047 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
5048 fi
5049
5050 if test "$wxUSE_SPINBTN" = yes; then
5051 echo "$ac_t""yes" 1>&6
5052 else
5053 echo "$ac_t""no" 1>&6
5054 fi
5055
5056
5057 echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6
5058 echo "configure:5059: checking "for --enable-spinctrl"" >&5
5059 no_cache=0
5060 # Check whether --enable-spinctrl or --disable-spinctrl was given.
5061 if test "${enable_spinctrl+set}" = set; then
5062 enableval="$enable_spinctrl"
5063
5064 if test "$enableval" = yes; then
5065 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
5066 else
5067 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
5068 fi
5069
5070 else
5071
5072 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
5073 if test "x$LINE" != x ; then
5074 eval "DEFAULT_$LINE"
5075 else
5076 no_cache=1
5077 fi
5078
5079 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
5080
5081 fi
5082
5083
5084 eval "$ac_cv_use_spinctrl"
5085 if test "$no_cache" != 1; then
5086 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
5087 fi
5088
5089 if test "$wxUSE_SPINCTRL" = yes; then
5090 echo "$ac_t""yes" 1>&6
5091 else
5092 echo "$ac_t""no" 1>&6
5093 fi
5094
5095
5096 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
5097 echo "configure:5098: checking "for --enable-splitter"" >&5
5098 no_cache=0
5099 # Check whether --enable-splitter or --disable-splitter was given.
5100 if test "${enable_splitter+set}" = set; then
5101 enableval="$enable_splitter"
5102
5103 if test "$enableval" = yes; then
5104 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
5105 else
5106 ac_cv_use_splitter='wxUSE_SPLITTER=no'
5107 fi
5108
5109 else
5110
5111 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
5112 if test "x$LINE" != x ; then
5113 eval "DEFAULT_$LINE"
5114 else
5115 no_cache=1
5116 fi
5117
5118 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
5119
5120 fi
5121
5122
5123 eval "$ac_cv_use_splitter"
5124 if test "$no_cache" != 1; then
5125 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
5126 fi
5127
5128 if test "$wxUSE_SPLITTER" = yes; then
5129 echo "$ac_t""yes" 1>&6
5130 else
5131 echo "$ac_t""no" 1>&6
5132 fi
5133
5134
5135 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
5136 echo "configure:5137: checking "for --enable-statbmp"" >&5
5137 no_cache=0
5138 # Check whether --enable-statbmp or --disable-statbmp was given.
5139 if test "${enable_statbmp+set}" = set; then
5140 enableval="$enable_statbmp"
5141
5142 if test "$enableval" = yes; then
5143 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
5144 else
5145 ac_cv_use_statbmp='wxUSE_STATBMP=no'
5146 fi
5147
5148 else
5149
5150 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
5151 if test "x$LINE" != x ; then
5152 eval "DEFAULT_$LINE"
5153 else
5154 no_cache=1
5155 fi
5156
5157 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
5158
5159 fi
5160
5161
5162 eval "$ac_cv_use_statbmp"
5163 if test "$no_cache" != 1; then
5164 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
5165 fi
5166
5167 if test "$wxUSE_STATBMP" = yes; then
5168 echo "$ac_t""yes" 1>&6
5169 else
5170 echo "$ac_t""no" 1>&6
5171 fi
5172
5173
5174 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
5175 echo "configure:5176: checking "for --enable-statbox"" >&5
5176 no_cache=0
5177 # Check whether --enable-statbox or --disable-statbox was given.
5178 if test "${enable_statbox+set}" = set; then
5179 enableval="$enable_statbox"
5180
5181 if test "$enableval" = yes; then
5182 ac_cv_use_statbox='wxUSE_STATBOX=yes'
5183 else
5184 ac_cv_use_statbox='wxUSE_STATBOX=no'
5185 fi
5186
5187 else
5188
5189 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
5190 if test "x$LINE" != x ; then
5191 eval "DEFAULT_$LINE"
5192 else
5193 no_cache=1
5194 fi
5195
5196 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
5197
5198 fi
5199
5200
5201 eval "$ac_cv_use_statbox"
5202 if test "$no_cache" != 1; then
5203 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
5204 fi
5205
5206 if test "$wxUSE_STATBOX" = yes; then
5207 echo "$ac_t""yes" 1>&6
5208 else
5209 echo "$ac_t""no" 1>&6
5210 fi
5211
5212
5213 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
5214 echo "configure:5215: checking "for --enable-statline"" >&5
5215 no_cache=0
5216 # Check whether --enable-statline or --disable-statline was given.
5217 if test "${enable_statline+set}" = set; then
5218 enableval="$enable_statline"
5219
5220 if test "$enableval" = yes; then
5221 ac_cv_use_statline='wxUSE_STATLINE=yes'
5222 else
5223 ac_cv_use_statline='wxUSE_STATLINE=no'
5224 fi
5225
5226 else
5227
5228 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
5229 if test "x$LINE" != x ; then
5230 eval "DEFAULT_$LINE"
5231 else
5232 no_cache=1
5233 fi
5234
5235 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
5236
5237 fi
5238
5239
5240 eval "$ac_cv_use_statline"
5241 if test "$no_cache" != 1; then
5242 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
5243 fi
5244
5245 if test "$wxUSE_STATLINE" = yes; then
5246 echo "$ac_t""yes" 1>&6
5247 else
5248 echo "$ac_t""no" 1>&6
5249 fi
5250
5251
5252 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
5253 echo "configure:5254: checking "for --enable-statusbar"" >&5
5254 no_cache=0
5255 # Check whether --enable-statusbar or --disable-statusbar was given.
5256 if test "${enable_statusbar+set}" = set; then
5257 enableval="$enable_statusbar"
5258
5259 if test "$enableval" = yes; then
5260 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
5261 else
5262 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
5263 fi
5264
5265 else
5266
5267 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
5268 if test "x$LINE" != x ; then
5269 eval "DEFAULT_$LINE"
5270 else
5271 no_cache=1
5272 fi
5273
5274 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
5275
5276 fi
5277
5278
5279 eval "$ac_cv_use_statusbar"
5280 if test "$no_cache" != 1; then
5281 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
5282 fi
5283
5284 if test "$wxUSE_STATUSBAR" = yes; then
5285 echo "$ac_t""yes" 1>&6
5286 else
5287 echo "$ac_t""no" 1>&6
5288 fi
5289
5290
5291 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
5292 echo "configure:5293: checking "for --enable-tabdialog"" >&5
5293 no_cache=0
5294 # Check whether --enable-tabdialog or --disable-tabdialog was given.
5295 if test "${enable_tabdialog+set}" = set; then
5296 enableval="$enable_tabdialog"
5297
5298 if test "$enableval" = yes; then
5299 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
5300 else
5301 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
5302 fi
5303
5304 else
5305
5306 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
5307 if test "x$LINE" != x ; then
5308 eval "DEFAULT_$LINE"
5309 else
5310 no_cache=1
5311 fi
5312
5313 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
5314
5315 fi
5316
5317
5318 eval "$ac_cv_use_tabdialog"
5319 if test "$no_cache" != 1; then
5320 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
5321 fi
5322
5323 if test "$wxUSE_TABDIALOG" = yes; then
5324 echo "$ac_t""yes" 1>&6
5325 else
5326 echo "$ac_t""no" 1>&6
5327 fi
5328
5329
5330 echo $ac_n "checking "for --enable-togglebtn"""... $ac_c" 1>&6
5331 echo "configure:5332: checking "for --enable-togglebtn"" >&5
5332 no_cache=0
5333 # Check whether --enable-togglebtn or --disable-togglebtn was given.
5334 if test "${enable_togglebtn+set}" = set; then
5335 enableval="$enable_togglebtn"
5336
5337 if test "$enableval" = yes; then
5338 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
5339 else
5340 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
5341 fi
5342
5343 else
5344
5345 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
5346 if test "x$LINE" != x ; then
5347 eval "DEFAULT_$LINE"
5348 else
5349 no_cache=1
5350 fi
5351
5352 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
5353
5354 fi
5355
5356
5357 eval "$ac_cv_use_togglebtn"
5358 if test "$no_cache" != 1; then
5359 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
5360 fi
5361
5362 if test "$wxUSE_TOGGLEBTN" = yes; then
5363 echo "$ac_t""yes" 1>&6
5364 else
5365 echo "$ac_t""no" 1>&6
5366 fi
5367
5368
5369 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
5370 echo "configure:5371: checking "for --enable-toolbar"" >&5
5371 no_cache=0
5372 # Check whether --enable-toolbar or --disable-toolbar was given.
5373 if test "${enable_toolbar+set}" = set; then
5374 enableval="$enable_toolbar"
5375
5376 if test "$enableval" = yes; then
5377 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
5378 else
5379 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
5380 fi
5381
5382 else
5383
5384 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
5385 if test "x$LINE" != x ; then
5386 eval "DEFAULT_$LINE"
5387 else
5388 no_cache=1
5389 fi
5390
5391 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
5392
5393 fi
5394
5395
5396 eval "$ac_cv_use_toolbar"
5397 if test "$no_cache" != 1; then
5398 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
5399 fi
5400
5401 if test "$wxUSE_TOOLBAR" = yes; then
5402 echo "$ac_t""yes" 1>&6
5403 else
5404 echo "$ac_t""no" 1>&6
5405 fi
5406
5407
5408 echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6
5409 echo "configure:5410: checking "for --enable-tbarnative"" >&5
5410 no_cache=0
5411 # Check whether --enable-tbarnative or --disable-tbarnative was given.
5412 if test "${enable_tbarnative+set}" = set; then
5413 enableval="$enable_tbarnative"
5414
5415 if test "$enableval" = yes; then
5416 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
5417 else
5418 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
5419 fi
5420
5421 else
5422
5423 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
5424 if test "x$LINE" != x ; then
5425 eval "DEFAULT_$LINE"
5426 else
5427 no_cache=1
5428 fi
5429
5430 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
5431
5432 fi
5433
5434
5435 eval "$ac_cv_use_tbarnative"
5436 if test "$no_cache" != 1; then
5437 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
5438 fi
5439
5440 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
5441 echo "$ac_t""yes" 1>&6
5442 else
5443 echo "$ac_t""no" 1>&6
5444 fi
5445
5446
5447 echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6
5448 echo "configure:5449: checking "for --enable-tbarsmpl"" >&5
5449 no_cache=0
5450 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
5451 if test "${enable_tbarsmpl+set}" = set; then
5452 enableval="$enable_tbarsmpl"
5453
5454 if test "$enableval" = yes; then
5455 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
5456 else
5457 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
5458 fi
5459
5460 else
5461
5462 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
5463 if test "x$LINE" != x ; then
5464 eval "DEFAULT_$LINE"
5465 else
5466 no_cache=1
5467 fi
5468
5469 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
5470
5471 fi
5472
5473
5474 eval "$ac_cv_use_tbarsmpl"
5475 if test "$no_cache" != 1; then
5476 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
5477 fi
5478
5479 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
5480 echo "$ac_t""yes" 1>&6
5481 else
5482 echo "$ac_t""no" 1>&6
5483 fi
5484
5485
5486 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
5487 echo "configure:5488: checking "for --enable-treectrl"" >&5
5488 no_cache=0
5489 # Check whether --enable-treectrl or --disable-treectrl was given.
5490 if test "${enable_treectrl+set}" = set; then
5491 enableval="$enable_treectrl"
5492
5493 if test "$enableval" = yes; then
5494 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
5495 else
5496 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
5497 fi
5498
5499 else
5500
5501 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
5502 if test "x$LINE" != x ; then
5503 eval "DEFAULT_$LINE"
5504 else
5505 no_cache=1
5506 fi
5507
5508 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5509
5510 fi
5511
5512
5513 eval "$ac_cv_use_treectrl"
5514 if test "$no_cache" != 1; then
5515 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5516 fi
5517
5518 if test "$wxUSE_TREECTRL" = yes; then
5519 echo "$ac_t""yes" 1>&6
5520 else
5521 echo "$ac_t""no" 1>&6
5522 fi
5523
5524
5525
5526
5527 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
5528 echo "configure:5529: checking "for --enable-commondlg"" >&5
5529 no_cache=0
5530 # Check whether --enable-commondlg or --disable-commondlg was given.
5531 if test "${enable_commondlg+set}" = set; then
5532 enableval="$enable_commondlg"
5533
5534 if test "$enableval" = yes; then
5535 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5536 else
5537 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5538 fi
5539
5540 else
5541
5542 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5543 if test "x$LINE" != x ; then
5544 eval "DEFAULT_$LINE"
5545 else
5546 no_cache=1
5547 fi
5548
5549 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5550
5551 fi
5552
5553
5554 eval "$ac_cv_use_commondlg"
5555 if test "$no_cache" != 1; then
5556 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5557 fi
5558
5559 if test "$wxUSE_COMMONDLGS" = yes; then
5560 echo "$ac_t""yes" 1>&6
5561 else
5562 echo "$ac_t""no" 1>&6
5563 fi
5564
5565
5566 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
5567 echo "configure:5568: checking "for --enable-dirdlg"" >&5
5568 no_cache=0
5569 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5570 if test "${enable_dirdlg+set}" = set; then
5571 enableval="$enable_dirdlg"
5572
5573 if test "$enableval" = yes; then
5574 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5575 else
5576 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5577 fi
5578
5579 else
5580
5581 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5582 if test "x$LINE" != x ; then
5583 eval "DEFAULT_$LINE"
5584 else
5585 no_cache=1
5586 fi
5587
5588 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5589
5590 fi
5591
5592
5593 eval "$ac_cv_use_dirdlg"
5594 if test "$no_cache" != 1; then
5595 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5596 fi
5597
5598 if test "$wxUSE_DIRDLG" = yes; then
5599 echo "$ac_t""yes" 1>&6
5600 else
5601 echo "$ac_t""no" 1>&6
5602 fi
5603
5604
5605 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
5606 echo "configure:5607: checking "for --enable-textdlg"" >&5
5607 no_cache=0
5608 # Check whether --enable-textdlg or --disable-textdlg was given.
5609 if test "${enable_textdlg+set}" = set; then
5610 enableval="$enable_textdlg"
5611
5612 if test "$enableval" = yes; then
5613 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5614 else
5615 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5616 fi
5617
5618 else
5619
5620 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5621 if test "x$LINE" != x ; then
5622 eval "DEFAULT_$LINE"
5623 else
5624 no_cache=1
5625 fi
5626
5627 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5628
5629 fi
5630
5631
5632 eval "$ac_cv_use_textdlg"
5633 if test "$no_cache" != 1; then
5634 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5635 fi
5636
5637 if test "$wxUSE_TEXTDLG" = yes; then
5638 echo "$ac_t""yes" 1>&6
5639 else
5640 echo "$ac_t""no" 1>&6
5641 fi
5642
5643
5644 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
5645 echo "configure:5646: checking "for --enable-tipdlg"" >&5
5646 no_cache=0
5647 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5648 if test "${enable_tipdlg+set}" = set; then
5649 enableval="$enable_tipdlg"
5650
5651 if test "$enableval" = yes; then
5652 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5653 else
5654 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5655 fi
5656
5657 else
5658
5659 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5660 if test "x$LINE" != x ; then
5661 eval "DEFAULT_$LINE"
5662 else
5663 no_cache=1
5664 fi
5665
5666 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5667
5668 fi
5669
5670
5671 eval "$ac_cv_use_tipdlg"
5672 if test "$no_cache" != 1; then
5673 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5674 fi
5675
5676 if test "$wxUSE_STARTUP_TIPS" = yes; then
5677 echo "$ac_t""yes" 1>&6
5678 else
5679 echo "$ac_t""no" 1>&6
5680 fi
5681
5682
5683 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
5684 echo "configure:5685: checking "for --enable-progressdlg"" >&5
5685 no_cache=0
5686 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5687 if test "${enable_progressdlg+set}" = set; then
5688 enableval="$enable_progressdlg"
5689
5690 if test "$enableval" = yes; then
5691 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5692 else
5693 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5694 fi
5695
5696 else
5697
5698 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5699 if test "x$LINE" != x ; then
5700 eval "DEFAULT_$LINE"
5701 else
5702 no_cache=1
5703 fi
5704
5705 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5706
5707 fi
5708
5709
5710 eval "$ac_cv_use_progressdlg"
5711 if test "$no_cache" != 1; then
5712 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5713 fi
5714
5715 if test "$wxUSE_PROGRESSDLG" = yes; then
5716 echo "$ac_t""yes" 1>&6
5717 else
5718 echo "$ac_t""no" 1>&6
5719 fi
5720
5721
5722 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
5723 echo "configure:5724: checking "for --enable-miniframe"" >&5
5724 no_cache=0
5725 # Check whether --enable-miniframe or --disable-miniframe was given.
5726 if test "${enable_miniframe+set}" = set; then
5727 enableval="$enable_miniframe"
5728
5729 if test "$enableval" = yes; then
5730 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5731 else
5732 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5733 fi
5734
5735 else
5736
5737 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5738 if test "x$LINE" != x ; then
5739 eval "DEFAULT_$LINE"
5740 else
5741 no_cache=1
5742 fi
5743
5744 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5745
5746 fi
5747
5748
5749 eval "$ac_cv_use_miniframe"
5750 if test "$no_cache" != 1; then
5751 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5752 fi
5753
5754 if test "$wxUSE_MINIFRAME" = yes; then
5755 echo "$ac_t""yes" 1>&6
5756 else
5757 echo "$ac_t""no" 1>&6
5758 fi
5759
5760
5761 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
5762 echo "configure:5763: checking "for --enable-html"" >&5
5763 no_cache=0
5764 # Check whether --enable-html or --disable-html was given.
5765 if test "${enable_html+set}" = set; then
5766 enableval="$enable_html"
5767
5768 if test "$enableval" = yes; then
5769 ac_cv_use_html='wxUSE_HTML=yes'
5770 else
5771 ac_cv_use_html='wxUSE_HTML=no'
5772 fi
5773
5774 else
5775
5776 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5777 if test "x$LINE" != x ; then
5778 eval "DEFAULT_$LINE"
5779 else
5780 no_cache=1
5781 fi
5782
5783 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5784
5785 fi
5786
5787
5788 eval "$ac_cv_use_html"
5789 if test "$no_cache" != 1; then
5790 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5791 fi
5792
5793 if test "$wxUSE_HTML" = yes; then
5794 echo "$ac_t""yes" 1>&6
5795 else
5796 echo "$ac_t""no" 1>&6
5797 fi
5798
5799
5800 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
5801 echo "configure:5802: checking "for --enable-tooltips"" >&5
5802 no_cache=0
5803 # Check whether --enable-tooltips or --disable-tooltips was given.
5804 if test "${enable_tooltips+set}" = set; then
5805 enableval="$enable_tooltips"
5806
5807 if test "$enableval" = yes; then
5808 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5809 else
5810 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5811 fi
5812
5813 else
5814
5815 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5816 if test "x$LINE" != x ; then
5817 eval "DEFAULT_$LINE"
5818 else
5819 no_cache=1
5820 fi
5821
5822 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5823
5824 fi
5825
5826
5827 eval "$ac_cv_use_tooltips"
5828 if test "$no_cache" != 1; then
5829 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5830 fi
5831
5832 if test "$wxUSE_TOOLTIPS" = yes; then
5833 echo "$ac_t""yes" 1>&6
5834 else
5835 echo "$ac_t""no" 1>&6
5836 fi
5837
5838
5839 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
5840 echo "configure:5841: checking "for --enable-splines"" >&5
5841 no_cache=0
5842 # Check whether --enable-splines or --disable-splines was given.
5843 if test "${enable_splines+set}" = set; then
5844 enableval="$enable_splines"
5845
5846 if test "$enableval" = yes; then
5847 ac_cv_use_splines='wxUSE_SPLINES=yes'
5848 else
5849 ac_cv_use_splines='wxUSE_SPLINES=no'
5850 fi
5851
5852 else
5853
5854 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5855 if test "x$LINE" != x ; then
5856 eval "DEFAULT_$LINE"
5857 else
5858 no_cache=1
5859 fi
5860
5861 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5862
5863 fi
5864
5865
5866 eval "$ac_cv_use_splines"
5867 if test "$no_cache" != 1; then
5868 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5869 fi
5870
5871 if test "$wxUSE_SPLINES" = yes; then
5872 echo "$ac_t""yes" 1>&6
5873 else
5874 echo "$ac_t""no" 1>&6
5875 fi
5876
5877
5878 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
5879 echo "configure:5880: checking "for --enable-validators"" >&5
5880 no_cache=0
5881 # Check whether --enable-validators or --disable-validators was given.
5882 if test "${enable_validators+set}" = set; then
5883 enableval="$enable_validators"
5884
5885 if test "$enableval" = yes; then
5886 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5887 else
5888 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5889 fi
5890
5891 else
5892
5893 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5894 if test "x$LINE" != x ; then
5895 eval "DEFAULT_$LINE"
5896 else
5897 no_cache=1
5898 fi
5899
5900 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5901
5902 fi
5903
5904
5905 eval "$ac_cv_use_validators"
5906 if test "$no_cache" != 1; then
5907 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5908 fi
5909
5910 if test "$wxUSE_VALIDATORS" = yes; then
5911 echo "$ac_t""yes" 1>&6
5912 else
5913 echo "$ac_t""no" 1>&6
5914 fi
5915
5916
5917 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
5918 echo "configure:5919: checking "for --enable-busyinfo"" >&5
5919 no_cache=0
5920 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5921 if test "${enable_busyinfo+set}" = set; then
5922 enableval="$enable_busyinfo"
5923
5924 if test "$enableval" = yes; then
5925 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5926 else
5927 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5928 fi
5929
5930 else
5931
5932 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5933 if test "x$LINE" != x ; then
5934 eval "DEFAULT_$LINE"
5935 else
5936 no_cache=1
5937 fi
5938
5939 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5940
5941 fi
5942
5943
5944 eval "$ac_cv_use_busyinfo"
5945 if test "$no_cache" != 1; then
5946 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5947 fi
5948
5949 if test "$wxUSE_BUSYINFO" = yes; then
5950 echo "$ac_t""yes" 1>&6
5951 else
5952 echo "$ac_t""no" 1>&6
5953 fi
5954
5955
5956 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
5957 echo "configure:5958: checking "for --enable-joystick"" >&5
5958 no_cache=0
5959 # Check whether --enable-joystick or --disable-joystick was given.
5960 if test "${enable_joystick+set}" = set; then
5961 enableval="$enable_joystick"
5962
5963 if test "$enableval" = yes; then
5964 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
5965 else
5966 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
5967 fi
5968
5969 else
5970
5971 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
5972 if test "x$LINE" != x ; then
5973 eval "DEFAULT_$LINE"
5974 else
5975 no_cache=1
5976 fi
5977
5978 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
5979
5980 fi
5981
5982
5983 eval "$ac_cv_use_joystick"
5984 if test "$no_cache" != 1; then
5985 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
5986 fi
5987
5988 if test "$wxUSE_JOYSTICK" = yes; then
5989 echo "$ac_t""yes" 1>&6
5990 else
5991 echo "$ac_t""no" 1>&6
5992 fi
5993
5994
5995
5996
5997 echo $ac_n "checking "for --enable-image"""... $ac_c" 1>&6
5998 echo "configure:5999: checking "for --enable-image"" >&5
5999 no_cache=0
6000 # Check whether --enable-image or --disable-image was given.
6001 if test "${enable_image+set}" = set; then
6002 enableval="$enable_image"
6003
6004 if test "$enableval" = yes; then
6005 ac_cv_use_image='wxUSE_IMAGE=yes'
6006 else
6007 ac_cv_use_image='wxUSE_IMAGE=no'
6008 fi
6009
6010 else
6011
6012 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
6013 if test "x$LINE" != x ; then
6014 eval "DEFAULT_$LINE"
6015 else
6016 no_cache=1
6017 fi
6018
6019 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
6020
6021 fi
6022
6023
6024 eval "$ac_cv_use_image"
6025 if test "$no_cache" != 1; then
6026 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
6027 fi
6028
6029 if test "$wxUSE_IMAGE" = yes; then
6030 echo "$ac_t""yes" 1>&6
6031 else
6032 echo "$ac_t""no" 1>&6
6033 fi
6034
6035
6036 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
6037 echo "configure:6038: checking "for --enable-gif"" >&5
6038 no_cache=0
6039 # Check whether --enable-gif or --disable-gif was given.
6040 if test "${enable_gif+set}" = set; then
6041 enableval="$enable_gif"
6042
6043 if test "$enableval" = yes; then
6044 ac_cv_use_gif='wxUSE_GIF=yes'
6045 else
6046 ac_cv_use_gif='wxUSE_GIF=no'
6047 fi
6048
6049 else
6050
6051 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
6052 if test "x$LINE" != x ; then
6053 eval "DEFAULT_$LINE"
6054 else
6055 no_cache=1
6056 fi
6057
6058 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
6059
6060 fi
6061
6062
6063 eval "$ac_cv_use_gif"
6064 if test "$no_cache" != 1; then
6065 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
6066 fi
6067
6068 if test "$wxUSE_GIF" = yes; then
6069 echo "$ac_t""yes" 1>&6
6070 else
6071 echo "$ac_t""no" 1>&6
6072 fi
6073
6074
6075 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
6076 echo "configure:6077: checking "for --enable-pcx"" >&5
6077 no_cache=0
6078 # Check whether --enable-pcx or --disable-pcx was given.
6079 if test "${enable_pcx+set}" = set; then
6080 enableval="$enable_pcx"
6081
6082 if test "$enableval" = yes; then
6083 ac_cv_use_pcx='wxUSE_PCX=yes'
6084 else
6085 ac_cv_use_pcx='wxUSE_PCX=no'
6086 fi
6087
6088 else
6089
6090 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
6091 if test "x$LINE" != x ; then
6092 eval "DEFAULT_$LINE"
6093 else
6094 no_cache=1
6095 fi
6096
6097 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
6098
6099 fi
6100
6101
6102 eval "$ac_cv_use_pcx"
6103 if test "$no_cache" != 1; then
6104 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
6105 fi
6106
6107 if test "$wxUSE_PCX" = yes; then
6108 echo "$ac_t""yes" 1>&6
6109 else
6110 echo "$ac_t""no" 1>&6
6111 fi
6112
6113
6114 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
6115 echo "configure:6116: checking "for --enable-pnm"" >&5
6116 no_cache=0
6117 # Check whether --enable-pnm or --disable-pnm was given.
6118 if test "${enable_pnm+set}" = set; then
6119 enableval="$enable_pnm"
6120
6121 if test "$enableval" = yes; then
6122 ac_cv_use_pnm='wxUSE_PNM=yes'
6123 else
6124 ac_cv_use_pnm='wxUSE_PNM=no'
6125 fi
6126
6127 else
6128
6129 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
6130 if test "x$LINE" != x ; then
6131 eval "DEFAULT_$LINE"
6132 else
6133 no_cache=1
6134 fi
6135
6136 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
6137
6138 fi
6139
6140
6141 eval "$ac_cv_use_pnm"
6142 if test "$no_cache" != 1; then
6143 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
6144 fi
6145
6146 if test "$wxUSE_PNM" = yes; then
6147 echo "$ac_t""yes" 1>&6
6148 else
6149 echo "$ac_t""no" 1>&6
6150 fi
6151
6152
6153 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
6154 echo "configure:6155: checking "for --enable-pnm"" >&5
6155 no_cache=0
6156 # Check whether --enable-pnm or --disable-pnm was given.
6157 if test "${enable_pnm+set}" = set; then
6158 enableval="$enable_pnm"
6159
6160 if test "$enableval" = yes; then
6161 ac_cv_use_pnm='wxUSE_XPM=yes'
6162 else
6163 ac_cv_use_pnm='wxUSE_XPM=no'
6164 fi
6165
6166 else
6167
6168 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
6169 if test "x$LINE" != x ; then
6170 eval "DEFAULT_$LINE"
6171 else
6172 no_cache=1
6173 fi
6174
6175 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
6176
6177 fi
6178
6179
6180 eval "$ac_cv_use_pnm"
6181 if test "$no_cache" != 1; then
6182 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
6183 fi
6184
6185 if test "$wxUSE_XPM" = yes; then
6186 echo "$ac_t""yes" 1>&6
6187 else
6188 echo "$ac_t""no" 1>&6
6189 fi
6190
6191
6192 fi
6193
6194
6195 echo "saving argument cache $wx_arg_cache_file"
6196 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
6197
6198
6199
6200 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
6201 echo "configure:6202: checking for toolkit" >&5
6202
6203 if test "$wxUSE_GUI" = "yes"; then
6204
6205 if test "$USE_BEOS" = 1; then
6206 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
6207 fi
6208
6209 if test "$TOOLKIT_GIVEN" = 1; then
6210 for toolkit in `echo $ALL_TOOLKITS`; do
6211 var=wxUSE_$toolkit
6212 eval "value=\$${var}"
6213 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
6214 done
6215 else
6216 for toolkit in `echo $ALL_TOOLKITS`; do
6217 if test "$has_toolkit_in_cache" != 1; then
6218 var=DEFAULT_DEFAULT_wxUSE_$toolkit
6219 else
6220 var=DEFAULT_wxUSE_$toolkit
6221 fi
6222 eval "wxUSE_$toolkit=\$${var}"
6223 done
6224 fi
6225
6226 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
6227
6228 case "${host}" in
6229 *-pc-os2_emx )
6230 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
6231 # PATH_IFS is autodetected by OS/2's configure (usually ';')
6232 LEX_STEM="lexyy"
6233 ;;
6234 *)
6235 PATH_IFS=':'
6236 LEX_STEM="lex.yy"
6237 ;;
6238 esac
6239
6240 case "$NUM_TOOLKITS" in
6241 1)
6242 ;;
6243 0)
6244 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
6245 ;;
6246 *)
6247 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
6248 esac
6249
6250 for toolkit in `echo $ALL_TOOLKITS`; do
6251 var=wxUSE_$toolkit
6252 eval "value=\$${var}"
6253 if test "x$value" != x; then
6254 cache_var=CACHE_$toolkit
6255 eval "cache=\$${cache_var}"
6256 if test "$cache" = 1; then
6257 echo "$var=$value" >> ${wx_arg_cache_file}
6258 fi
6259 if test "$value" = 1; then
6260 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
6261 fi
6262 fi
6263 done
6264
6265 else
6266 PATH_IFS=':'
6267 echo "$ac_t""base only" 1>&6
6268 fi
6269
6270
6271 cat > confcache <<\EOF
6272 # This file is a shell script that caches the results of configure
6273 # tests run on this system so they can be shared between configure
6274 # scripts and configure runs. It is not useful on other systems.
6275 # If it contains results you don't want to keep, you may remove or edit it.
6276 #
6277 # By default, configure uses ./config.cache as the cache file,
6278 # creating it if it does not exist already. You can give configure
6279 # the --cache-file=FILE option to use a different cache file; that is
6280 # what configure does when it calls configure scripts in
6281 # subdirectories, so they share the cache.
6282 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6283 # config.status only pays attention to the cache file if you give it the
6284 # --recheck option to rerun configure.
6285 #
6286 EOF
6287 # The following way of writing the cache mishandles newlines in values,
6288 # but we know of no workaround that is simple, portable, and efficient.
6289 # So, don't put newlines in cache variables' values.
6290 # Ultrix sh set writes to stderr and can't be redirected directly,
6291 # and sets the high bit in the cache file unless we assign to the vars.
6292 (set) 2>&1 |
6293 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6294 *ac_space=\ *)
6295 # `set' does not quote correctly, so add quotes (double-quote substitution
6296 # turns \\\\ into \\, and sed turns \\ into \).
6297 sed -n \
6298 -e "s/'/'\\\\''/g" \
6299 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6300 ;;
6301 *)
6302 # `set' quotes correctly as required by POSIX, so do not add quotes.
6303 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6304 ;;
6305 esac >> confcache
6306 if cmp -s $cache_file confcache; then
6307 :
6308 else
6309 if test -w $cache_file; then
6310 echo "updating cache $cache_file"
6311 cat confcache > $cache_file
6312 else
6313 echo "not updating unwritable cache $cache_file"
6314 fi
6315 fi
6316 rm -f confcache
6317
6318
6319 if test "$build" != "$host" ; then
6320 CC=$host_alias-gcc
6321 CXX=$host_alias-c++
6322 AR=$host_alias-ar
6323 RANLIB=$host_alias-ranlib
6324 DLLTOOL=$host_alias-dlltool
6325 RESCOMP=$host_alias-windres
6326 LD=$host_alias-ld
6327 NM=$host_alias-nm
6328 STRIP=$host_alias-strip
6329 fi
6330
6331 # Extract the first word of "gcc", so it can be a program name with args.
6332 set dummy gcc; ac_word=$2
6333 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6334 echo "configure:6335: checking for $ac_word" >&5
6335 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6336 echo $ac_n "(cached) $ac_c" 1>&6
6337 else
6338 if test -n "$CC"; then
6339 ac_cv_prog_CC="$CC" # Let the user override the test.
6340 else
6341 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6342 ac_dummy="$PATH"
6343 for ac_dir in $ac_dummy; do
6344 test -z "$ac_dir" && ac_dir=.
6345 if test -f $ac_dir/$ac_word; then
6346 ac_cv_prog_CC="gcc"
6347 break
6348 fi
6349 done
6350 IFS="$ac_save_ifs"
6351 fi
6352 fi
6353 CC="$ac_cv_prog_CC"
6354 if test -n "$CC"; then
6355 echo "$ac_t""$CC" 1>&6
6356 else
6357 echo "$ac_t""no" 1>&6
6358 fi
6359
6360 if test -z "$CC"; then
6361 # Extract the first word of "cc", so it can be a program name with args.
6362 set dummy cc; ac_word=$2
6363 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6364 echo "configure:6365: checking for $ac_word" >&5
6365 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6366 echo $ac_n "(cached) $ac_c" 1>&6
6367 else
6368 if test -n "$CC"; then
6369 ac_cv_prog_CC="$CC" # Let the user override the test.
6370 else
6371 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6372 ac_prog_rejected=no
6373 ac_dummy="$PATH"
6374 for ac_dir in $ac_dummy; do
6375 test -z "$ac_dir" && ac_dir=.
6376 if test -f $ac_dir/$ac_word; then
6377 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
6378 ac_prog_rejected=yes
6379 continue
6380 fi
6381 ac_cv_prog_CC="cc"
6382 break
6383 fi
6384 done
6385 IFS="$ac_save_ifs"
6386 if test $ac_prog_rejected = yes; then
6387 # We found a bogon in the path, so make sure we never use it.
6388 set dummy $ac_cv_prog_CC
6389 shift
6390 if test $# -gt 0; then
6391 # We chose a different compiler from the bogus one.
6392 # However, it has the same basename, so the bogon will be chosen
6393 # first if we set CC to just the basename; use the full file name.
6394 shift
6395 set dummy "$ac_dir/$ac_word" "$@"
6396 shift
6397 ac_cv_prog_CC="$@"
6398 fi
6399 fi
6400 fi
6401 fi
6402 CC="$ac_cv_prog_CC"
6403 if test -n "$CC"; then
6404 echo "$ac_t""$CC" 1>&6
6405 else
6406 echo "$ac_t""no" 1>&6
6407 fi
6408
6409 if test -z "$CC"; then
6410 case "`uname -s`" in
6411 *win32* | *WIN32*)
6412 # Extract the first word of "cl", so it can be a program name with args.
6413 set dummy cl; ac_word=$2
6414 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6415 echo "configure:6416: checking for $ac_word" >&5
6416 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
6417 echo $ac_n "(cached) $ac_c" 1>&6
6418 else
6419 if test -n "$CC"; then
6420 ac_cv_prog_CC="$CC" # Let the user override the test.
6421 else
6422 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6423 ac_dummy="$PATH"
6424 for ac_dir in $ac_dummy; do
6425 test -z "$ac_dir" && ac_dir=.
6426 if test -f $ac_dir/$ac_word; then
6427 ac_cv_prog_CC="cl"
6428 break
6429 fi
6430 done
6431 IFS="$ac_save_ifs"
6432 fi
6433 fi
6434 CC="$ac_cv_prog_CC"
6435 if test -n "$CC"; then
6436 echo "$ac_t""$CC" 1>&6
6437 else
6438 echo "$ac_t""no" 1>&6
6439 fi
6440 ;;
6441 esac
6442 fi
6443 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
6444 fi
6445
6446 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
6447 echo "configure:6448: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
6448
6449 ac_ext=c
6450 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6451 ac_cpp='$CPP $CPPFLAGS'
6452 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6453 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6454 cross_compiling=$ac_cv_prog_cc_cross
6455
6456 cat > conftest.$ac_ext << EOF
6457
6458 #line 6459 "configure"
6459 #include "confdefs.h"
6460
6461 main(){return(0);}
6462 EOF
6463 if { (eval echo configure:6464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6464 ac_cv_prog_cc_works=yes
6465 # If we can't run a trivial program, we are probably using a cross compiler.
6466 if (./conftest; exit) 2>/dev/null; then
6467 ac_cv_prog_cc_cross=no
6468 else
6469 ac_cv_prog_cc_cross=yes
6470 fi
6471 else
6472 echo "configure: failed program was:" >&5
6473 cat conftest.$ac_ext >&5
6474 ac_cv_prog_cc_works=no
6475 fi
6476 rm -fr conftest*
6477 ac_ext=c
6478 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6479 ac_cpp='$CPP $CPPFLAGS'
6480 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6481 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6482 cross_compiling=$ac_cv_prog_cc_cross
6483
6484 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
6485 if test $ac_cv_prog_cc_works = no; then
6486 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
6487 fi
6488 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
6489 echo "configure:6490: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
6490 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
6491 cross_compiling=$ac_cv_prog_cc_cross
6492
6493 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
6494 echo "configure:6495: checking whether we are using GNU C" >&5
6495 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
6496 echo $ac_n "(cached) $ac_c" 1>&6
6497 else
6498 cat > conftest.c <<EOF
6499 #ifdef __GNUC__
6500 yes;
6501 #endif
6502 EOF
6503 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
6504 ac_cv_prog_gcc=yes
6505 else
6506 ac_cv_prog_gcc=no
6507 fi
6508 fi
6509
6510 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
6511
6512 if test $ac_cv_prog_gcc = yes; then
6513 GCC=yes
6514 else
6515 GCC=
6516 fi
6517
6518 ac_test_CFLAGS="${CFLAGS+set}"
6519 ac_save_CFLAGS="$CFLAGS"
6520 CFLAGS=
6521 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
6522 echo "configure:6523: checking whether ${CC-cc} accepts -g" >&5
6523 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
6524 echo $ac_n "(cached) $ac_c" 1>&6
6525 else
6526 echo 'void f(){}' > conftest.c
6527 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
6528 ac_cv_prog_cc_g=yes
6529 else
6530 ac_cv_prog_cc_g=no
6531 fi
6532 rm -f conftest*
6533
6534 fi
6535
6536 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
6537 if test "$ac_test_CFLAGS" = set; then
6538 CFLAGS="$ac_save_CFLAGS"
6539 elif test $ac_cv_prog_cc_g = yes; then
6540 if test "$GCC" = yes; then
6541 CFLAGS="-g -O2"
6542 else
6543 CFLAGS="-g"
6544 fi
6545 else
6546 if test "$GCC" = yes; then
6547 CFLAGS="-O2"
6548 else
6549 CFLAGS=
6550 fi
6551 fi
6552
6553
6554 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
6555
6556 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
6557 echo "configure:6558: checking how to run the C preprocessor" >&5
6558 # On Suns, sometimes $CPP names a directory.
6559 if test -n "$CPP" && test -d "$CPP"; then
6560 CPP=
6561 fi
6562 if test -z "$CPP"; then
6563 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
6564 echo $ac_n "(cached) $ac_c" 1>&6
6565 else
6566 # This must be in double quotes, not single quotes, because CPP may get
6567 # substituted into the Makefile and "${CC-cc}" will confuse make.
6568 CPP="${CC-cc} -E"
6569 # On the NeXT, cc -E runs the code through the compiler's parser,
6570 # not just through cpp.
6571 cat > conftest.$ac_ext <<EOF
6572 #line 6573 "configure"
6573 #include "confdefs.h"
6574 #include <assert.h>
6575 Syntax Error
6576 EOF
6577 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6578 { (eval echo configure:6579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6579 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6580 if test -z "$ac_err"; then
6581 :
6582 else
6583 echo "$ac_err" >&5
6584 echo "configure: failed program was:" >&5
6585 cat conftest.$ac_ext >&5
6586 rm -rf conftest*
6587 CPP="${CC-cc} -E -traditional-cpp"
6588 cat > conftest.$ac_ext <<EOF
6589 #line 6590 "configure"
6590 #include "confdefs.h"
6591 #include <assert.h>
6592 Syntax Error
6593 EOF
6594 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6595 { (eval echo configure:6596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6596 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6597 if test -z "$ac_err"; then
6598 :
6599 else
6600 echo "$ac_err" >&5
6601 echo "configure: failed program was:" >&5
6602 cat conftest.$ac_ext >&5
6603 rm -rf conftest*
6604 CPP="${CC-cc} -nologo -E"
6605 cat > conftest.$ac_ext <<EOF
6606 #line 6607 "configure"
6607 #include "confdefs.h"
6608 #include <assert.h>
6609 Syntax Error
6610 EOF
6611 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6612 { (eval echo configure:6613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6613 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6614 if test -z "$ac_err"; then
6615 :
6616 else
6617 echo "$ac_err" >&5
6618 echo "configure: failed program was:" >&5
6619 cat conftest.$ac_ext >&5
6620 rm -rf conftest*
6621 CPP=/lib/cpp
6622 fi
6623 rm -f conftest*
6624 fi
6625 rm -f conftest*
6626 fi
6627 rm -f conftest*
6628 ac_cv_prog_CPP="$CPP"
6629 fi
6630 CPP="$ac_cv_prog_CPP"
6631 else
6632 ac_cv_prog_CPP="$CPP"
6633 fi
6634 echo "$ac_t""$CPP" 1>&6
6635
6636
6637 if test $ac_cv_prog_gcc = yes; then
6638 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
6639 echo "configure:6640: checking whether ${CC-cc} needs -traditional" >&5
6640 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6641 echo $ac_n "(cached) $ac_c" 1>&6
6642 else
6643 ac_pattern="Autoconf.*'x'"
6644 cat > conftest.$ac_ext <<EOF
6645 #line 6646 "configure"
6646 #include "confdefs.h"
6647 #include <sgtty.h>
6648 Autoconf TIOCGETP
6649 EOF
6650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6651 egrep "$ac_pattern" >/dev/null 2>&1; then
6652 rm -rf conftest*
6653 ac_cv_prog_gcc_traditional=yes
6654 else
6655 rm -rf conftest*
6656 ac_cv_prog_gcc_traditional=no
6657 fi
6658 rm -f conftest*
6659
6660
6661 if test $ac_cv_prog_gcc_traditional = no; then
6662 cat > conftest.$ac_ext <<EOF
6663 #line 6664 "configure"
6664 #include "confdefs.h"
6665 #include <termio.h>
6666 Autoconf TCGETA
6667 EOF
6668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6669 egrep "$ac_pattern" >/dev/null 2>&1; then
6670 rm -rf conftest*
6671 ac_cv_prog_gcc_traditional=yes
6672 fi
6673 rm -f conftest*
6674
6675 fi
6676 fi
6677
6678 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6679 if test $ac_cv_prog_gcc_traditional = yes; then
6680 CC="$CC -traditional"
6681 fi
6682 fi
6683
6684
6685
6686 ac_ext=C
6687 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6688 ac_cpp='$CXXCPP $CPPFLAGS'
6689 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6690 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6691 cross_compiling=$ac_cv_prog_cxx_cross
6692
6693
6694 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6695 do
6696 # Extract the first word of "$ac_prog", so it can be a program name with args.
6697 set dummy $ac_prog; ac_word=$2
6698 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6699 echo "configure:6700: checking for $ac_word" >&5
6700 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6701 echo $ac_n "(cached) $ac_c" 1>&6
6702 else
6703 if test -n "$CXX"; then
6704 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6705 else
6706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6707 ac_dummy="$PATH"
6708 for ac_dir in $ac_dummy; do
6709 test -z "$ac_dir" && ac_dir=.
6710 if test -f $ac_dir/$ac_word; then
6711 ac_cv_prog_CXX="$ac_prog"
6712 break
6713 fi
6714 done
6715 IFS="$ac_save_ifs"
6716 fi
6717 fi
6718 CXX="$ac_cv_prog_CXX"
6719 if test -n "$CXX"; then
6720 echo "$ac_t""$CXX" 1>&6
6721 else
6722 echo "$ac_t""no" 1>&6
6723 fi
6724
6725 test -n "$CXX" && break
6726 done
6727 test -n "$CXX" || CXX="gcc"
6728
6729
6730 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
6731 echo "configure:6732: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
6732
6733 ac_ext=C
6734 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6735 ac_cpp='$CXXCPP $CPPFLAGS'
6736 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6737 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6738 cross_compiling=$ac_cv_prog_cxx_cross
6739
6740 cat > conftest.$ac_ext << EOF
6741
6742 #line 6743 "configure"
6743 #include "confdefs.h"
6744
6745 int main(){return(0);}
6746 EOF
6747 if { (eval echo configure:6748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6748 ac_cv_prog_cxx_works=yes
6749 # If we can't run a trivial program, we are probably using a cross compiler.
6750 if (./conftest; exit) 2>/dev/null; then
6751 ac_cv_prog_cxx_cross=no
6752 else
6753 ac_cv_prog_cxx_cross=yes
6754 fi
6755 else
6756 echo "configure: failed program was:" >&5
6757 cat conftest.$ac_ext >&5
6758 ac_cv_prog_cxx_works=no
6759 fi
6760 rm -fr conftest*
6761 ac_ext=C
6762 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6763 ac_cpp='$CXXCPP $CPPFLAGS'
6764 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6765 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6766 cross_compiling=$ac_cv_prog_cxx_cross
6767
6768 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6769 if test $ac_cv_prog_cxx_works = no; then
6770 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6771 fi
6772 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
6773 echo "configure:6774: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
6774 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6775 cross_compiling=$ac_cv_prog_cxx_cross
6776
6777 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
6778 echo "configure:6779: checking whether we are using GNU C++" >&5
6779 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6780 echo $ac_n "(cached) $ac_c" 1>&6
6781 else
6782 cat > conftest.C <<EOF
6783 #ifdef __GNUC__
6784 yes;
6785 #endif
6786 EOF
6787 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
6788 ac_cv_prog_gxx=yes
6789 else
6790 ac_cv_prog_gxx=no
6791 fi
6792 fi
6793
6794 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6795
6796 if test $ac_cv_prog_gxx = yes; then
6797 GXX=yes
6798 else
6799 GXX=
6800 fi
6801
6802 ac_test_CXXFLAGS="${CXXFLAGS+set}"
6803 ac_save_CXXFLAGS="$CXXFLAGS"
6804 CXXFLAGS=
6805 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
6806 echo "configure:6807: checking whether ${CXX-g++} accepts -g" >&5
6807 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6808 echo $ac_n "(cached) $ac_c" 1>&6
6809 else
6810 echo 'void f(){}' > conftest.cc
6811 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6812 ac_cv_prog_cxx_g=yes
6813 else
6814 ac_cv_prog_cxx_g=no
6815 fi
6816 rm -f conftest*
6817
6818 fi
6819
6820 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6821 if test "$ac_test_CXXFLAGS" = set; then
6822 CXXFLAGS="$ac_save_CXXFLAGS"
6823 elif test $ac_cv_prog_cxx_g = yes; then
6824 if test "$GXX" = yes; then
6825 CXXFLAGS="-g -O2"
6826 else
6827 CXXFLAGS="-g"
6828 fi
6829 else
6830 if test "$GXX" = yes; then
6831 CXXFLAGS="-O2"
6832 else
6833 CXXFLAGS=
6834 fi
6835 fi
6836
6837
6838 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
6839 echo "configure:6840: checking how to run the C++ preprocessor" >&5
6840 if test -z "$CXXCPP"; then
6841 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6842 echo $ac_n "(cached) $ac_c" 1>&6
6843 else
6844 ac_ext=C
6845 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6846 ac_cpp='$CXXCPP $CPPFLAGS'
6847 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6848 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6849 cross_compiling=$ac_cv_prog_cxx_cross
6850 CXXCPP="${CXX-g++} -E"
6851 cat > conftest.$ac_ext <<EOF
6852 #line 6853 "configure"
6853 #include "confdefs.h"
6854 #include <stdlib.h>
6855 EOF
6856 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6857 { (eval echo configure:6858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6858 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6859 if test -z "$ac_err"; then
6860 :
6861 else
6862 echo "$ac_err" >&5
6863 echo "configure: failed program was:" >&5
6864 cat conftest.$ac_ext >&5
6865 rm -rf conftest*
6866 CXXCPP=/lib/cpp
6867 fi
6868 rm -f conftest*
6869 ac_cv_prog_CXXCPP="$CXXCPP"
6870 ac_ext=C
6871 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6872 ac_cpp='$CXXCPP $CPPFLAGS'
6873 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6874 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6875 cross_compiling=$ac_cv_prog_cxx_cross
6876 fi
6877 fi
6878 CXXCPP="$ac_cv_prog_CXXCPP"
6879 echo "$ac_t""$CXXCPP" 1>&6
6880
6881
6882 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6883
6884 ac_ext=c
6885 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6886 ac_cpp='$CPP $CPPFLAGS'
6887 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6888 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6889 cross_compiling=$ac_cv_prog_cc_cross
6890
6891
6892 # Extract the first word of "ranlib", so it can be a program name with args.
6893 set dummy ranlib; ac_word=$2
6894 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6895 echo "configure:6896: checking for $ac_word" >&5
6896 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6897 echo $ac_n "(cached) $ac_c" 1>&6
6898 else
6899 if test -n "$RANLIB"; then
6900 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6901 else
6902 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6903 ac_dummy="$PATH"
6904 for ac_dir in $ac_dummy; do
6905 test -z "$ac_dir" && ac_dir=.
6906 if test -f $ac_dir/$ac_word; then
6907 ac_cv_prog_RANLIB="ranlib"
6908 break
6909 fi
6910 done
6911 IFS="$ac_save_ifs"
6912 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6913 fi
6914 fi
6915 RANLIB="$ac_cv_prog_RANLIB"
6916 if test -n "$RANLIB"; then
6917 echo "$ac_t""$RANLIB" 1>&6
6918 else
6919 echo "$ac_t""no" 1>&6
6920 fi
6921
6922
6923 # Extract the first word of "ar", so it can be a program name with args.
6924 set dummy ar; ac_word=$2
6925 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6926 echo "configure:6927: checking for $ac_word" >&5
6927 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6928 echo $ac_n "(cached) $ac_c" 1>&6
6929 else
6930 if test -n "$AR"; then
6931 ac_cv_prog_AR="$AR" # Let the user override the test.
6932 else
6933 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6934 ac_dummy="$PATH"
6935 for ac_dir in $ac_dummy; do
6936 test -z "$ac_dir" && ac_dir=.
6937 if test -f $ac_dir/$ac_word; then
6938 ac_cv_prog_AR="ar"
6939 break
6940 fi
6941 done
6942 IFS="$ac_save_ifs"
6943 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6944 fi
6945 fi
6946 AR="$ac_cv_prog_AR"
6947 if test -n "$AR"; then
6948 echo "$ac_t""$AR" 1>&6
6949 else
6950 echo "$ac_t""no" 1>&6
6951 fi
6952
6953
6954 # Find a good install program. We prefer a C program (faster),
6955 # so one script is as good as another. But avoid the broken or
6956 # incompatible versions:
6957 # SysV /etc/install, /usr/sbin/install
6958 # SunOS /usr/etc/install
6959 # IRIX /sbin/install
6960 # AIX /bin/install
6961 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6962 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6963 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6964 # ./install, which can be erroneously created by make from ./install.sh.
6965 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
6966 echo "configure:6967: checking for a BSD compatible install" >&5
6967 if test -z "$INSTALL"; then
6968 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6969 echo $ac_n "(cached) $ac_c" 1>&6
6970 else
6971 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6972 for ac_dir in $PATH; do
6973 # Account for people who put trailing slashes in PATH elements.
6974 case "$ac_dir/" in
6975 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6976 *)
6977 # OSF1 and SCO ODT 3.0 have their own names for install.
6978 # Don't use installbsd from OSF since it installs stuff as root
6979 # by default.
6980 for ac_prog in ginstall scoinst install; do
6981 if test -f $ac_dir/$ac_prog; then
6982 if test $ac_prog = install &&
6983 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6984 # AIX install. It has an incompatible calling convention.
6985 :
6986 else
6987 ac_cv_path_install="$ac_dir/$ac_prog -c"
6988 break 2
6989 fi
6990 fi
6991 done
6992 ;;
6993 esac
6994 done
6995 IFS="$ac_save_IFS"
6996
6997 fi
6998 if test "${ac_cv_path_install+set}" = set; then
6999 INSTALL="$ac_cv_path_install"
7000 else
7001 # As a last resort, use the slow shell script. We don't cache a
7002 # path for INSTALL within a source directory, because that will
7003 # break other packages using the cache if that directory is
7004 # removed, or if the path is relative.
7005 INSTALL="$ac_install_sh"
7006 fi
7007 fi
7008 echo "$ac_t""$INSTALL" 1>&6
7009
7010 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7011 # It thinks the first close brace ends the variable substitution.
7012 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7013
7014 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
7015
7016 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7017
7018
7019 # Extract the first word of "strip", so it can be a program name with args.
7020 set dummy strip; ac_word=$2
7021 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7022 echo "configure:7023: checking for $ac_word" >&5
7023 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
7024 echo $ac_n "(cached) $ac_c" 1>&6
7025 else
7026 if test -n "$STRIP"; then
7027 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7028 else
7029 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7030 ac_dummy="$PATH"
7031 for ac_dir in $ac_dummy; do
7032 test -z "$ac_dir" && ac_dir=.
7033 if test -f $ac_dir/$ac_word; then
7034 ac_cv_prog_STRIP="strip"
7035 break
7036 fi
7037 done
7038 IFS="$ac_save_ifs"
7039 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
7040 fi
7041 fi
7042 STRIP="$ac_cv_prog_STRIP"
7043 if test -n "$STRIP"; then
7044 echo "$ac_t""$STRIP" 1>&6
7045 else
7046 echo "$ac_t""no" 1>&6
7047 fi
7048
7049
7050 echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
7051 echo "configure:7052: checking "make for VPATH support"" >&5
7052 cat - << EOF > confMake
7053 check : file
7054 cp \$? \$@
7055 cp \$? final_file
7056 EOF
7057
7058 if test ! -d sub ; then
7059 mkdir sub
7060 fi
7061 echo dummy > sub/file
7062 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
7063 RESULT=$?
7064 rm -f sub/file check final_file confMake
7065 rmdir sub
7066 if test "$RESULT" = 0; then
7067 echo "$ac_t""yes" 1>&6
7068 else
7069 echo "$ac_t""no" 1>&6
7070 { echo "configure: error: You need a make-utility that is able to use the variable
7071 VPATH correctly.
7072 If your version of make does not support VPATH correctly" 1>&2; exit 1; }
7073 fi
7074
7075 for ac_prog in 'bison -y' byacc
7076 do
7077 # Extract the first word of "$ac_prog", so it can be a program name with args.
7078 set dummy $ac_prog; ac_word=$2
7079 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7080 echo "configure:7081: checking for $ac_word" >&5
7081 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
7082 echo $ac_n "(cached) $ac_c" 1>&6
7083 else
7084 if test -n "$YACC"; then
7085 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7086 else
7087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7088 ac_dummy="$PATH"
7089 for ac_dir in $ac_dummy; do
7090 test -z "$ac_dir" && ac_dir=.
7091 if test -f $ac_dir/$ac_word; then
7092 ac_cv_prog_YACC="$ac_prog"
7093 break
7094 fi
7095 done
7096 IFS="$ac_save_ifs"
7097 fi
7098 fi
7099 YACC="$ac_cv_prog_YACC"
7100 if test -n "$YACC"; then
7101 echo "$ac_t""$YACC" 1>&6
7102 else
7103 echo "$ac_t""no" 1>&6
7104 fi
7105
7106 test -n "$YACC" && break
7107 done
7108 test -n "$YACC" || YACC="yacc"
7109
7110
7111 # Extract the first word of "flex", so it can be a program name with args.
7112 set dummy flex; ac_word=$2
7113 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7114 echo "configure:7115: checking for $ac_word" >&5
7115 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
7116 echo $ac_n "(cached) $ac_c" 1>&6
7117 else
7118 if test -n "$LEX"; then
7119 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7120 else
7121 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7122 ac_dummy="$PATH"
7123 for ac_dir in $ac_dummy; do
7124 test -z "$ac_dir" && ac_dir=.
7125 if test -f $ac_dir/$ac_word; then
7126 ac_cv_prog_LEX="flex"
7127 break
7128 fi
7129 done
7130 IFS="$ac_save_ifs"
7131 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
7132 fi
7133 fi
7134 LEX="$ac_cv_prog_LEX"
7135 if test -n "$LEX"; then
7136 echo "$ac_t""$LEX" 1>&6
7137 else
7138 echo "$ac_t""no" 1>&6
7139 fi
7140
7141 if test -z "$LEXLIB"
7142 then
7143 case "$LEX" in
7144 flex*) ac_lib=fl ;;
7145 *) ac_lib=l ;;
7146 esac
7147 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
7148 echo "configure:7149: checking for yywrap in -l$ac_lib" >&5
7149 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
7150 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7151 echo $ac_n "(cached) $ac_c" 1>&6
7152 else
7153 ac_save_LIBS="$LIBS"
7154 LIBS="-l$ac_lib $LIBS"
7155 cat > conftest.$ac_ext <<EOF
7156 #line 7157 "configure"
7157 #include "confdefs.h"
7158 /* Override any gcc2 internal prototype to avoid an error. */
7159 /* We use char because int might match the return type of a gcc2
7160 builtin and then its argument prototype would still apply. */
7161 char yywrap();
7162
7163 int main() {
7164 yywrap()
7165 ; return 0; }
7166 EOF
7167 if { (eval echo configure:7168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7168 rm -rf conftest*
7169 eval "ac_cv_lib_$ac_lib_var=yes"
7170 else
7171 echo "configure: failed program was:" >&5
7172 cat conftest.$ac_ext >&5
7173 rm -rf conftest*
7174 eval "ac_cv_lib_$ac_lib_var=no"
7175 fi
7176 rm -f conftest*
7177 LIBS="$ac_save_LIBS"
7178
7179 fi
7180 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7181 echo "$ac_t""yes" 1>&6
7182 LEXLIB="-l$ac_lib"
7183 else
7184 echo "$ac_t""no" 1>&6
7185 fi
7186
7187 fi
7188
7189
7190 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7191 echo "configure:7192: checking whether ln -s works" >&5
7192 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
7193 echo $ac_n "(cached) $ac_c" 1>&6
7194 else
7195 rm -f conftestdata
7196 if ln -s X conftestdata 2>/dev/null
7197 then
7198 rm -f conftestdata
7199 ac_cv_prog_LN_S="ln -s"
7200 else
7201 ac_cv_prog_LN_S=ln
7202 fi
7203 fi
7204 LN_S="$ac_cv_prog_LN_S"
7205 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7206 echo "$ac_t""yes" 1>&6
7207 else
7208 echo "$ac_t""no" 1>&6
7209 fi
7210
7211
7212
7213 SEARCH_INCLUDE="\
7214 /usr/local/include \
7215 \
7216 /usr/Motif-1.2/include \
7217 /usr/Motif-2.1/include \
7218 \
7219 /usr/include/Motif1.2 \
7220 /opt/xpm/include/X11 \
7221 /opt/GBxpm/include/ \
7222 /opt/GBxpm/X11/include/ \
7223 \
7224 /usr/Motif1.2/include \
7225 /usr/dt/include \
7226 /usr/openwin/include \
7227 \
7228 /usr/include/Xm \
7229 \
7230 /usr/X11R6/include \
7231 /usr/X11R6.4/include \
7232 /usr/X11R5/include \
7233 /usr/X11R4/include \
7234 \
7235 /usr/include/X11R6 \
7236 /usr/include/X11R5 \
7237 /usr/include/X11R4 \
7238 \
7239 /usr/local/X11R6/include \
7240 /usr/local/X11R5/include \
7241 /usr/local/X11R4/include \
7242 \
7243 /usr/local/include/X11R6 \
7244 /usr/local/include/X11R5 \
7245 /usr/local/include/X11R4 \
7246 \
7247 /usr/X11/include \
7248 /usr/include/X11 \
7249 /usr/local/X11/include \
7250 /usr/local/include/X11 \
7251 \
7252 /usr/X386/include \
7253 /usr/x386/include \
7254 /usr/XFree86/include/X11 \
7255 \
7256 X:/XFree86/include \
7257 X:/XFree86/include/X11 \
7258 \
7259 /usr/include/gtk \
7260 /usr/local/include/gtk \
7261 /usr/include/glib \
7262 /usr/local/include/glib \
7263 \
7264 /usr/include/qt \
7265 /usr/local/include/qt \
7266 \
7267 /usr/include/windows \
7268 /usr/include/wine \
7269 /usr/local/include/wine \
7270 \
7271 /usr/unsupported/include \
7272 /usr/athena/include \
7273 /usr/local/x11r5/include \
7274 /usr/lpp/Xamples/include \
7275 \
7276 /usr/openwin/share/include \
7277 \
7278 /usr/include"
7279
7280 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
7281
7282
7283 cat > confcache <<\EOF
7284 # This file is a shell script that caches the results of configure
7285 # tests run on this system so they can be shared between configure
7286 # scripts and configure runs. It is not useful on other systems.
7287 # If it contains results you don't want to keep, you may remove or edit it.
7288 #
7289 # By default, configure uses ./config.cache as the cache file,
7290 # creating it if it does not exist already. You can give configure
7291 # the --cache-file=FILE option to use a different cache file; that is
7292 # what configure does when it calls configure scripts in
7293 # subdirectories, so they share the cache.
7294 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7295 # config.status only pays attention to the cache file if you give it the
7296 # --recheck option to rerun configure.
7297 #
7298 EOF
7299 # The following way of writing the cache mishandles newlines in values,
7300 # but we know of no workaround that is simple, portable, and efficient.
7301 # So, don't put newlines in cache variables' values.
7302 # Ultrix sh set writes to stderr and can't be redirected directly,
7303 # and sets the high bit in the cache file unless we assign to the vars.
7304 (set) 2>&1 |
7305 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7306 *ac_space=\ *)
7307 # `set' does not quote correctly, so add quotes (double-quote substitution
7308 # turns \\\\ into \\, and sed turns \\ into \).
7309 sed -n \
7310 -e "s/'/'\\\\''/g" \
7311 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7312 ;;
7313 *)
7314 # `set' quotes correctly as required by POSIX, so do not add quotes.
7315 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7316 ;;
7317 esac >> confcache
7318 if cmp -s $cache_file confcache; then
7319 :
7320 else
7321 if test -w $cache_file; then
7322 echo "updating cache $cache_file"
7323 cat confcache > $cache_file
7324 else
7325 echo "not updating unwritable cache $cache_file"
7326 fi
7327 fi
7328 rm -f confcache
7329
7330
7331
7332 AFMINSTALL=
7333
7334 if test "$wxUSE_GUI" = "yes"; then
7335
7336 USE_GUI=1
7337
7338 TOOLKIT=
7339 TOOLKIT_INCLUDE=
7340
7341 GUI_TK_LIBRARY=
7342 GUI_TK_LINK=
7343
7344 WXGTK12=
7345 WXGTK127=
7346 WXGTK20=
7347
7348 WXWINE=
7349
7350 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
7351 if test "$cross_compiling" = "yes" ; then
7352 echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2
7353 else
7354 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
7355 echo "configure:7356: checking for Windows headers" >&5
7356
7357 ac_find_includes=
7358 for ac_dir in $SEARCH_INCLUDE;
7359 do
7360 if test -f "$ac_dir/windows.h"; then
7361 ac_find_includes=$ac_dir
7362 break
7363 fi
7364 done
7365
7366 if test "$ac_find_includes" != "" ; then
7367 echo "$ac_t""found $ac_find_includes" 1>&6
7368 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7369 else
7370 echo "$ac_t""no" 1>&6
7371 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7372 fi
7373 fi
7374
7375 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
7376 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
7377
7378 if test "$wxUSE_ODBC" = "yes" ; then
7379 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
7380 fi
7381
7382 if test "$wxUSE_MINGW" = 1; then
7383 LDFLAGS="$LDFLAGS -mwindows"
7384 fi
7385
7386 TOOLKIT=MSW
7387 GUIDIST=MSW_DIST
7388
7389 RCINCSWITCH="--include-dir"
7390 RCDEFSWITCH="--define"
7391 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
7392 RCINPUTSWITCH="-i"
7393 RCOUTPUTSWITCH="-o"
7394 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
7395
7396 RESPROGRAM="\$(RES_PROGRAM)"
7397
7398 fi
7399
7400 if test "$wxUSE_GTK" = 1; then
7401 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
7402 if test "${with_gtk_prefix+set}" = set; then
7403 withval="$with_gtk_prefix"
7404 gtk_config_prefix="$withval"
7405 else
7406 gtk_config_prefix=""
7407 fi
7408
7409 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
7410 if test "${with_gtk_exec_prefix+set}" = set; then
7411 withval="$with_gtk_exec_prefix"
7412 gtk_config_exec_prefix="$withval"
7413 else
7414 gtk_config_exec_prefix=""
7415 fi
7416
7417 # Check whether --enable-gtktest or --disable-gtktest was given.
7418 if test "${enable_gtktest+set}" = set; then
7419 enableval="$enable_gtktest"
7420 :
7421 else
7422 enable_gtktest=yes
7423 fi
7424
7425
7426 for module in . gthread
7427 do
7428 case "$module" in
7429 gthread)
7430 gtk_config_args="$gtk_config_args gthread"
7431 ;;
7432 esac
7433 done
7434
7435 if test x$gtk_config_exec_prefix != x ; then
7436 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7437 if test x${GTK_CONFIG_2_0+set} != xset ; then
7438 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
7439 fi
7440 fi
7441 if test x$gtk_config_prefix != x ; then
7442 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7443 if test x${GTK_CONFIG_2_0+set} != xset ; then
7444 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
7445 fi
7446 fi
7447
7448 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
7449 set dummy gtk-config-2.0; ac_word=$2
7450 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7451 echo "configure:7452: checking for $ac_word" >&5
7452 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
7453 echo $ac_n "(cached) $ac_c" 1>&6
7454 else
7455 case "$GTK_CONFIG_2_0" in
7456 /*)
7457 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
7458 ;;
7459 ?:/*)
7460 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
7461 ;;
7462 *)
7463 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7464 ac_dummy="$PATH"
7465 for ac_dir in $ac_dummy; do
7466 test -z "$ac_dir" && ac_dir=.
7467 if test -f $ac_dir/$ac_word; then
7468 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
7469 break
7470 fi
7471 done
7472 IFS="$ac_save_ifs"
7473 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
7474 ;;
7475 esac
7476 fi
7477 GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
7478 if test -n "$GTK_CONFIG_2_0"; then
7479 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
7480 else
7481 echo "$ac_t""no" 1>&6
7482 fi
7483
7484 min_gtk_version=1.3.1
7485 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
7486 echo "configure:7487: checking for GTK - version >= $min_gtk_version" >&5
7487 no_gtk=""
7488 if test "$GTK_CONFIG_2_0" = "no" ; then
7489 no_gtk=yes
7490 else
7491 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
7492 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
7493 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
7494 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7495 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
7496 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7497 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
7498 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7499 if test "x$enable_gtktest" = "xyes" ; then
7500 ac_save_CFLAGS="$CFLAGS"
7501 ac_save_LIBS="$LIBS"
7502 CFLAGS="$CFLAGS $GTK_CFLAGS"
7503 LIBS="$GTK_LIBS $LIBS"
7504 rm -f conf.gtktest
7505 if test "$cross_compiling" = yes; then
7506 echo $ac_n "cross compiling; assumed OK... $ac_c"
7507 else
7508 cat > conftest.$ac_ext <<EOF
7509 #line 7510 "configure"
7510 #include "confdefs.h"
7511
7512 #include <gtk/gtk.h>
7513 #include <stdio.h>
7514 #include <stdlib.h>
7515
7516 int
7517 main ()
7518 {
7519 int major, minor, micro;
7520 char *tmp_version;
7521
7522 system ("touch conf.gtktest");
7523
7524 /* HP/UX 9 (%@#!) writes to sscanf strings */
7525 tmp_version = g_strdup("$min_gtk_version");
7526 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7527 printf("%s, bad version string\n", "$min_gtk_version");
7528 exit(1);
7529 }
7530
7531 if ((gtk_major_version != $gtk_config_major_version) ||
7532 (gtk_minor_version != $gtk_config_minor_version) ||
7533 (gtk_micro_version != $gtk_config_micro_version))
7534 {
7535 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
7536 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
7537 gtk_major_version, gtk_minor_version, gtk_micro_version);
7538 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
7539 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
7540 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7541 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7542 printf("*** required on your system.\n");
7543 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
7544 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
7545 printf("*** before re-running configure\n");
7546 }
7547 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
7548 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
7549 (gtk_minor_version != GTK_MINOR_VERSION) ||
7550 (gtk_micro_version != GTK_MICRO_VERSION))
7551 {
7552 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
7553 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
7554 printf("*** library (version %d.%d.%d)\n",
7555 gtk_major_version, gtk_minor_version, gtk_micro_version);
7556 }
7557 #endif /* defined (GTK_MAJOR_VERSION) ... */
7558 else
7559 {
7560 if ((gtk_major_version > major) ||
7561 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7562 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
7563 {
7564 return 0;
7565 }
7566 else
7567 {
7568 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
7569 gtk_major_version, gtk_minor_version, gtk_micro_version);
7570 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
7571 major, minor, micro);
7572 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
7573 printf("***\n");
7574 printf("*** If you have already installed a sufficiently new version, this error\n");
7575 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
7576 printf("*** being found. The easiest way to fix this is to remove the old version\n");
7577 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
7578 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
7579 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7580 printf("*** so that the correct libraries are found at run-time))\n");
7581 }
7582 }
7583 return 1;
7584 }
7585
7586 EOF
7587 if { (eval echo configure:7588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7588 then
7589 :
7590 else
7591 echo "configure: failed program was:" >&5
7592 cat conftest.$ac_ext >&5
7593 rm -fr conftest*
7594 no_gtk=yes
7595 fi
7596 rm -fr conftest*
7597 fi
7598
7599 CFLAGS="$ac_save_CFLAGS"
7600 LIBS="$ac_save_LIBS"
7601 fi
7602 fi
7603 if test "x$no_gtk" = x ; then
7604 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
7605 WXGTK20=1
7606 else
7607 echo "$ac_t""no" 1>&6
7608 if test "$GTK_CONFIG_2_0" = "no" ; then
7609 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
7610 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
7611 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
7612 echo "*** full path to gtk-config-2.0."
7613 else
7614 if test -f conf.gtktest ; then
7615 :
7616 else
7617 echo "*** Could not run GTK test program, checking why..."
7618 CFLAGS="$CFLAGS $GTK_CFLAGS"
7619 LIBS="$LIBS $GTK_LIBS"
7620 cat > conftest.$ac_ext <<EOF
7621 #line 7622 "configure"
7622 #include "confdefs.h"
7623
7624 #include <gtk/gtk.h>
7625 #include <stdio.h>
7626
7627 int main() {
7628 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
7629 ; return 0; }
7630 EOF
7631 if { (eval echo configure:7632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7632 rm -rf conftest*
7633 echo "*** The test program compiled, but did not run. This usually means"
7634 echo "*** that the run-time linker is not finding GTK or finding the wrong"
7635 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
7636 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7637 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7638 echo "*** is required on your system"
7639 echo "***"
7640 echo "*** If you have an old version installed, it is best to remove it, although"
7641 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7642 echo "***"
7643 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
7644 echo "*** came with the system with the command"
7645 echo "***"
7646 echo "*** rpm --erase --nodeps gtk gtk-devel"
7647 else
7648 echo "configure: failed program was:" >&5
7649 cat conftest.$ac_ext >&5
7650 rm -rf conftest*
7651 echo "*** The test program failed to compile or link. See the file config.log for the"
7652 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
7653 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
7654 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
7655 fi
7656 rm -f conftest*
7657 CFLAGS="$ac_save_CFLAGS"
7658 LIBS="$ac_save_LIBS"
7659 fi
7660 fi
7661 GTK_CFLAGS=""
7662 GTK_LIBS=""
7663
7664
7665 if test x$gtk_config_exec_prefix != x ; then
7666 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7667 if test x${GTK_CONFIG+set} != xset ; then
7668 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7669 fi
7670 fi
7671 if test x$gtk_config_prefix != x ; then
7672 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7673 if test x${GTK_CONFIG+set} != xset ; then
7674 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7675 fi
7676 fi
7677
7678 # Extract the first word of "gtk-config", so it can be a program name with args.
7679 set dummy gtk-config; ac_word=$2
7680 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7681 echo "configure:7682: checking for $ac_word" >&5
7682 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7683 echo $ac_n "(cached) $ac_c" 1>&6
7684 else
7685 case "$GTK_CONFIG" in
7686 /*)
7687 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7688 ;;
7689 ?:/*)
7690 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7691 ;;
7692 *)
7693 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7694 ac_dummy="$PATH"
7695 for ac_dir in $ac_dummy; do
7696 test -z "$ac_dir" && ac_dir=.
7697 if test -f $ac_dir/$ac_word; then
7698 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7699 break
7700 fi
7701 done
7702 IFS="$ac_save_ifs"
7703 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7704 ;;
7705 esac
7706 fi
7707 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7708 if test -n "$GTK_CONFIG"; then
7709 echo "$ac_t""$GTK_CONFIG" 1>&6
7710 else
7711 echo "$ac_t""no" 1>&6
7712 fi
7713
7714 min_gtk_version=1.2.7
7715 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
7716 echo "configure:7717: checking for GTK - version >= $min_gtk_version" >&5
7717 no_gtk=""
7718 if test "$GTK_CONFIG" != "no" ; then
7719 GTK_CFLAGS=`$GTK_CONFIG --cflags`
7720 GTK_LIBS=`$GTK_CONFIG --libs gthread`
7721 ac_save_CFLAGS="$CFLAGS"
7722 ac_save_LIBS="$LIBS"
7723 CFLAGS="$CFLAGS $GTK_CFLAGS"
7724 LIBS="$LIBS $GTK_LIBS"
7725 if test "$cross_compiling" = yes; then
7726 echo $ac_n "cross compiling; assumed OK... $ac_c"
7727 else
7728 cat > conftest.$ac_ext <<EOF
7729 #line 7730 "configure"
7730 #include "confdefs.h"
7731
7732 #include <gtk/gtk.h>
7733 #include <gtk/gtkfeatures.h>
7734 #include <stdio.h>
7735 #include <stdlib.h>
7736
7737 int
7738 main ()
7739 {
7740 int major, minor, micro;
7741
7742 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7743 printf("%s, bad version string\n", "$min_gtk_version");
7744 exit(1);
7745 }
7746
7747 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7748 (GTK_MINOR_VERSION != gtk_minor_version) ||
7749 (GTK_MICRO_VERSION != gtk_micro_version)) {
7750 printf("Headers vs. library version mismatch!\n");
7751 exit(1);
7752 }
7753
7754 if (gtk_minor_version == 1) return FALSE;
7755
7756 return !((gtk_major_version > major) ||
7757 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7758 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7759 }
7760
7761 EOF
7762 if { (eval echo configure:7763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7763 then
7764 :
7765 else
7766 echo "configure: failed program was:" >&5
7767 cat conftest.$ac_ext >&5
7768 rm -fr conftest*
7769 no_gtk=yes
7770 fi
7771 rm -fr conftest*
7772 fi
7773
7774 CFLAGS="$ac_save_CFLAGS"
7775 LIBS="$ac_save_LIBS"
7776 else
7777 no_gtk=yes
7778 fi
7779 if test "x$no_gtk" = x ; then
7780 echo "$ac_t""yes" 1>&6
7781 WXGTK127=1
7782 else
7783 echo "$ac_t""no" 1>&6
7784 GTK_CFLAGS=""
7785 GTK_LIBS=""
7786 :
7787 fi
7788
7789
7790
7791
7792 if test x$gtk_config_exec_prefix != x ; then
7793 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7794 if test x${GTK_CONFIG+set} != xset ; then
7795 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7796 fi
7797 fi
7798 if test x$gtk_config_prefix != x ; then
7799 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7800 if test x${GTK_CONFIG+set} != xset ; then
7801 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7802 fi
7803 fi
7804
7805 # Extract the first word of "gtk-config", so it can be a program name with args.
7806 set dummy gtk-config; ac_word=$2
7807 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7808 echo "configure:7809: checking for $ac_word" >&5
7809 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7810 echo $ac_n "(cached) $ac_c" 1>&6
7811 else
7812 case "$GTK_CONFIG" in
7813 /*)
7814 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7815 ;;
7816 ?:/*)
7817 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7818 ;;
7819 *)
7820 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7821 ac_dummy="$PATH"
7822 for ac_dir in $ac_dummy; do
7823 test -z "$ac_dir" && ac_dir=.
7824 if test -f $ac_dir/$ac_word; then
7825 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7826 break
7827 fi
7828 done
7829 IFS="$ac_save_ifs"
7830 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7831 ;;
7832 esac
7833 fi
7834 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7835 if test -n "$GTK_CONFIG"; then
7836 echo "$ac_t""$GTK_CONFIG" 1>&6
7837 else
7838 echo "$ac_t""no" 1>&6
7839 fi
7840
7841 min_gtk_version=1.2.3
7842 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
7843 echo "configure:7844: checking for GTK - version >= $min_gtk_version" >&5
7844 no_gtk=""
7845 if test "$GTK_CONFIG" != "no" ; then
7846 GTK_CFLAGS=`$GTK_CONFIG --cflags`
7847 GTK_LIBS=`$GTK_CONFIG --libs gthread`
7848 ac_save_CFLAGS="$CFLAGS"
7849 ac_save_LIBS="$LIBS"
7850 CFLAGS="$CFLAGS $GTK_CFLAGS"
7851 LIBS="$LIBS $GTK_LIBS"
7852 if test "$cross_compiling" = yes; then
7853 echo $ac_n "cross compiling; assumed OK... $ac_c"
7854 else
7855 cat > conftest.$ac_ext <<EOF
7856 #line 7857 "configure"
7857 #include "confdefs.h"
7858
7859 #include <gtk/gtk.h>
7860 #include <gtk/gtkfeatures.h>
7861 #include <stdio.h>
7862 #include <stdlib.h>
7863
7864 int
7865 main ()
7866 {
7867 int major, minor, micro;
7868
7869 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
7870 printf("%s, bad version string\n", "$min_gtk_version");
7871 exit(1);
7872 }
7873
7874 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
7875 (GTK_MINOR_VERSION != gtk_minor_version) ||
7876 (GTK_MICRO_VERSION != gtk_micro_version)) {
7877 printf("Headers vs. library version mismatch!\n");
7878 exit(1);
7879 }
7880
7881 if (gtk_minor_version == 1) return FALSE;
7882
7883 return !((gtk_major_version > major) ||
7884 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7885 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7886 }
7887
7888 EOF
7889 if { (eval echo configure:7890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7890 then
7891 :
7892 else
7893 echo "configure: failed program was:" >&5
7894 cat conftest.$ac_ext >&5
7895 rm -fr conftest*
7896 no_gtk=yes
7897 fi
7898 rm -fr conftest*
7899 fi
7900
7901 CFLAGS="$ac_save_CFLAGS"
7902 LIBS="$ac_save_LIBS"
7903 else
7904 no_gtk=yes
7905 fi
7906 if test "x$no_gtk" = x ; then
7907 echo "$ac_t""yes" 1>&6
7908 WXGTK12=1
7909 else
7910 echo "$ac_t""no" 1>&6
7911 GTK_CFLAGS=""
7912 GTK_LIBS=""
7913 :
7914 fi
7915
7916
7917
7918
7919 fi
7920
7921
7922 rm -f conf.gtktest
7923
7924
7925 if test "$WXGTK12" != 1 -a "$WXGTK20" != 1; then
7926 { echo "configure: error:
7927 Please check that gtk-config is in path, the directory
7928 where GTK+ libraries are installed (returned by
7929 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
7930 equivalent variable and GTK+ is version 1.2.3 or above.
7931 " 1>&2; exit 1; }
7932 fi
7933
7934 TOOLKIT_INCLUDE="$GTK_CFLAGS"
7935
7936
7937 GUI_TK_LIBRARY="$GTK_LIBS"
7938
7939
7940 AFMINSTALL=afminstall
7941 TOOLKIT=GTK
7942 GUIDIST=GTK_DIST
7943
7944 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
7945 echo "configure:7946: checking for gdk_im_open in -lgdk" >&5
7946 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
7947 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7948 echo $ac_n "(cached) $ac_c" 1>&6
7949 else
7950 ac_save_LIBS="$LIBS"
7951 LIBS="-lgdk $LIBS"
7952 cat > conftest.$ac_ext <<EOF
7953 #line 7954 "configure"
7954 #include "confdefs.h"
7955 /* Override any gcc2 internal prototype to avoid an error. */
7956 /* We use char because int might match the return type of a gcc2
7957 builtin and then its argument prototype would still apply. */
7958 char gdk_im_open();
7959
7960 int main() {
7961 gdk_im_open()
7962 ; return 0; }
7963 EOF
7964 if { (eval echo configure:7965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7965 rm -rf conftest*
7966 eval "ac_cv_lib_$ac_lib_var=yes"
7967 else
7968 echo "configure: failed program was:" >&5
7969 cat conftest.$ac_ext >&5
7970 rm -rf conftest*
7971 eval "ac_cv_lib_$ac_lib_var=no"
7972 fi
7973 rm -f conftest*
7974 LIBS="$ac_save_LIBS"
7975
7976 fi
7977 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7978 echo "$ac_t""yes" 1>&6
7979 cat >> confdefs.h <<\EOF
7980 #define HAVE_XIM 1
7981 EOF
7982
7983 else
7984 echo "$ac_t""no" 1>&6
7985 fi
7986
7987 fi
7988
7989 if test "$wxUSE_WINE" = 1; then
7990 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
7991 echo "configure:7992: checking for WINE includes" >&5
7992
7993 ac_find_includes=
7994 for ac_dir in $SEARCH_INCLUDE;
7995 do
7996 if test -f "$ac_dir/windows.h"; then
7997 ac_find_includes=$ac_dir
7998 break
7999 fi
8000 done
8001
8002 if test "$ac_find_includes" != "" ; then
8003 echo "$ac_t""found $ac_find_includes" 1>&6
8004 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
8005 else
8006 echo "$ac_t""no" 1>&6
8007 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
8008 fi
8009
8010 XPM_LINK=""
8011 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
8012 echo "configure:8013: checking for Xpm library" >&5
8013
8014 ac_find_libraries=
8015 for ac_dir in $SEARCH_LIB;
8016 do
8017 for ac_extension in a so sl; do
8018 if test -f "$ac_dir/libXpm.$ac_extension"; then
8019 ac_find_libraries=$ac_dir
8020 break 2
8021 fi
8022 done
8023 done
8024
8025 if test "$ac_find_libraries" != "" ; then
8026 GUI_TK_LIBRARY="-L$ac_find_libraries"
8027 XPM_LINK="-lXpm"
8028 cat >> confdefs.h <<\EOF
8029 #define wxHAVE_LIB_XPM 1
8030 EOF
8031
8032 echo "$ac_t""found at $ac_find_libraries" 1>&6
8033 else
8034 echo "$ac_t""no" 1>&6
8035 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
8036 fi
8037
8038 MESA_LINK=""
8039 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
8040 echo "configure:8041: checking for Mesa library" >&5
8041
8042 ac_find_libraries=
8043 for ac_dir in $SEARCH_LIB;
8044 do
8045 for ac_extension in a so sl; do
8046 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
8047 ac_find_libraries=$ac_dir
8048 break 2
8049 fi
8050 done
8051 done
8052
8053 if test "$ac_find_libraries" != "" ; then
8054 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
8055 MESA_LINK="-lMesaGL"
8056 echo "$ac_t""found at $ac_find_libraries" 1>&6
8057 else
8058 { echo "configure: error: no" 1>&2; exit 1; }
8059 fi
8060
8061 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
8062 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
8063 WXWINE=1
8064 TOOLKIT=MSW
8065 GUIDIST=MSW_DIST
8066 fi
8067
8068
8069 # If we find X, set shell vars x_includes and x_libraries to the
8070 # paths, otherwise set no_x=yes.
8071 # Uses ac_ vars as temps to allow command line to override cache and checks.
8072 # --without-x overrides everything else, but does not touch the cache.
8073 echo $ac_n "checking for X""... $ac_c" 1>&6
8074 echo "configure:8075: checking for X" >&5
8075
8076 # Check whether --with-x or --without-x was given.
8077 if test "${with_x+set}" = set; then
8078 withval="$with_x"
8079 :
8080 fi
8081
8082 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8083 if test "x$with_x" = xno; then
8084 # The user explicitly disabled X.
8085 have_x=disabled
8086 else
8087 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8088 # Both variables are already set.
8089 have_x=yes
8090 else
8091 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
8092 echo $ac_n "(cached) $ac_c" 1>&6
8093 else
8094 # One or both of the vars are not set, and there is no cached value.
8095 ac_x_includes=NO ac_x_libraries=NO
8096 rm -fr conftestdir
8097 if mkdir conftestdir; then
8098 cd conftestdir
8099 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8100 cat > Imakefile <<'EOF'
8101 acfindx:
8102 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8103 EOF
8104 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8105 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8106 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8107 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8108 for ac_extension in a so sl; do
8109 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8110 test -f $ac_im_libdir/libX11.$ac_extension; then
8111 ac_im_usrlibdir=$ac_im_libdir; break
8112 fi
8113 done
8114 # Screen out bogus values from the imake configuration. They are
8115 # bogus both because they are the default anyway, and because
8116 # using them would break gcc on systems where it needs fixed includes.
8117 case "$ac_im_incroot" in
8118 /usr/include) ;;
8119 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
8120 esac
8121 case "$ac_im_usrlibdir" in
8122 /usr/lib | /lib) ;;
8123 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
8124 esac
8125 fi
8126 cd ..
8127 rm -fr conftestdir
8128 fi
8129
8130 if test "$ac_x_includes" = NO; then
8131 # Guess where to find include files, by looking for this one X11 .h file.
8132 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
8133
8134 # First, try using that file with no special directory specified.
8135 cat > conftest.$ac_ext <<EOF
8136 #line 8137 "configure"
8137 #include "confdefs.h"
8138 #include <$x_direct_test_include>
8139 EOF
8140 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8141 { (eval echo configure:8142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8142 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8143 if test -z "$ac_err"; then
8144 rm -rf conftest*
8145 # We can compile using X headers with no special include directory.
8146 ac_x_includes=
8147 else
8148 echo "$ac_err" >&5
8149 echo "configure: failed program was:" >&5
8150 cat conftest.$ac_ext >&5
8151 rm -rf conftest*
8152 # Look for the header file in a standard set of common directories.
8153 # Check X11 before X11Rn because it is often a symlink to the current release.
8154 for ac_dir in \
8155 /usr/X11/include \
8156 /usr/X11R6/include \
8157 /usr/X11R5/include \
8158 /usr/X11R4/include \
8159 \
8160 /usr/include/X11 \
8161 /usr/include/X11R6 \
8162 /usr/include/X11R5 \
8163 /usr/include/X11R4 \
8164 \
8165 /usr/local/X11/include \
8166 /usr/local/X11R6/include \
8167 /usr/local/X11R5/include \
8168 /usr/local/X11R4/include \
8169 \
8170 /usr/local/include/X11 \
8171 /usr/local/include/X11R6 \
8172 /usr/local/include/X11R5 \
8173 /usr/local/include/X11R4 \
8174 \
8175 /usr/X386/include \
8176 /usr/x386/include \
8177 /usr/XFree86/include/X11 \
8178 \
8179 /usr/include \
8180 /usr/local/include \
8181 /usr/unsupported/include \
8182 /usr/athena/include \
8183 /usr/local/x11r5/include \
8184 /usr/lpp/Xamples/include \
8185 \
8186 /usr/openwin/include \
8187 /usr/openwin/share/include \
8188 ; \
8189 do
8190 if test -r "$ac_dir/$x_direct_test_include"; then
8191 ac_x_includes=$ac_dir
8192 break
8193 fi
8194 done
8195 fi
8196 rm -f conftest*
8197 fi # $ac_x_includes = NO
8198
8199 if test "$ac_x_libraries" = NO; then
8200 # Check for the libraries.
8201
8202 test -z "$x_direct_test_library" && x_direct_test_library=Xt
8203 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
8204
8205 # See if we find them without any special options.
8206 # Don't add to $LIBS permanently.
8207 ac_save_LIBS="$LIBS"
8208 LIBS="-l$x_direct_test_library $LIBS"
8209 cat > conftest.$ac_ext <<EOF
8210 #line 8211 "configure"
8211 #include "confdefs.h"
8212
8213 int main() {
8214 ${x_direct_test_function}()
8215 ; return 0; }
8216 EOF
8217 if { (eval echo configure:8218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8218 rm -rf conftest*
8219 LIBS="$ac_save_LIBS"
8220 # We can link X programs with no special library path.
8221 ac_x_libraries=
8222 else
8223 echo "configure: failed program was:" >&5
8224 cat conftest.$ac_ext >&5
8225 rm -rf conftest*
8226 LIBS="$ac_save_LIBS"
8227 # First see if replacing the include by lib works.
8228 # Check X11 before X11Rn because it is often a symlink to the current release.
8229 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
8230 /usr/X11/lib \
8231 /usr/X11R6/lib \
8232 /usr/X11R5/lib \
8233 /usr/X11R4/lib \
8234 \
8235 /usr/lib/X11 \
8236 /usr/lib/X11R6 \
8237 /usr/lib/X11R5 \
8238 /usr/lib/X11R4 \
8239 \
8240 /usr/local/X11/lib \
8241 /usr/local/X11R6/lib \
8242 /usr/local/X11R5/lib \
8243 /usr/local/X11R4/lib \
8244 \
8245 /usr/local/lib/X11 \
8246 /usr/local/lib/X11R6 \
8247 /usr/local/lib/X11R5 \
8248 /usr/local/lib/X11R4 \
8249 \
8250 /usr/X386/lib \
8251 /usr/x386/lib \
8252 /usr/XFree86/lib/X11 \
8253 \
8254 /usr/lib \
8255 /usr/local/lib \
8256 /usr/unsupported/lib \
8257 /usr/athena/lib \
8258 /usr/local/x11r5/lib \
8259 /usr/lpp/Xamples/lib \
8260 /lib/usr/lib/X11 \
8261 \
8262 /usr/openwin/lib \
8263 /usr/openwin/share/lib \
8264 ; \
8265 do
8266 for ac_extension in a so sl; do
8267 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
8268 ac_x_libraries=$ac_dir
8269 break 2
8270 fi
8271 done
8272 done
8273 fi
8274 rm -f conftest*
8275 fi # $ac_x_libraries = NO
8276
8277 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
8278 # Didn't find X anywhere. Cache the known absence of X.
8279 ac_cv_have_x="have_x=no"
8280 else
8281 # Record where we found X for the cache.
8282 ac_cv_have_x="have_x=yes \
8283 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8284 fi
8285 fi
8286 fi
8287 eval "$ac_cv_have_x"
8288 fi # $with_x != no
8289
8290 if test "$have_x" != yes; then
8291 echo "$ac_t""$have_x" 1>&6
8292 no_x=yes
8293 else
8294 # If each of the values was on the command line, it overrides each guess.
8295 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8296 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8297 # Update the cache value to reflect the command line values.
8298 ac_cv_have_x="have_x=yes \
8299 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8300 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
8301 fi
8302
8303 if test "$no_x" = yes; then
8304 # Not all programs may use this symbol, but it does not hurt to define it.
8305 cat >> confdefs.h <<\EOF
8306 #define X_DISPLAY_MISSING 1
8307 EOF
8308
8309 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8310 else
8311 if test -n "$x_includes"; then
8312 X_CFLAGS="$X_CFLAGS -I$x_includes"
8313 fi
8314
8315 # It would also be nice to do this for all -L options, not just this one.
8316 if test -n "$x_libraries"; then
8317 X_LIBS="$X_LIBS -L$x_libraries"
8318 # For Solaris; some versions of Sun CC require a space after -R and
8319 # others require no space. Words are not sufficient . . . .
8320 case "`(uname -sr) 2>/dev/null`" in
8321 "SunOS 5"*)
8322 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
8323 echo "configure:8324: checking whether -R must be followed by a space" >&5
8324 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
8325 cat > conftest.$ac_ext <<EOF
8326 #line 8327 "configure"
8327 #include "confdefs.h"
8328
8329 int main() {
8330
8331 ; return 0; }
8332 EOF
8333 if { (eval echo configure:8334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8334 rm -rf conftest*
8335 ac_R_nospace=yes
8336 else
8337 echo "configure: failed program was:" >&5
8338 cat conftest.$ac_ext >&5
8339 rm -rf conftest*
8340 ac_R_nospace=no
8341 fi
8342 rm -f conftest*
8343 if test $ac_R_nospace = yes; then
8344 echo "$ac_t""no" 1>&6
8345 X_LIBS="$X_LIBS -R$x_libraries"
8346 else
8347 LIBS="$ac_xsave_LIBS -R $x_libraries"
8348 cat > conftest.$ac_ext <<EOF
8349 #line 8350 "configure"
8350 #include "confdefs.h"
8351
8352 int main() {
8353
8354 ; return 0; }
8355 EOF
8356 if { (eval echo configure:8357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8357 rm -rf conftest*
8358 ac_R_space=yes
8359 else
8360 echo "configure: failed program was:" >&5
8361 cat conftest.$ac_ext >&5
8362 rm -rf conftest*
8363 ac_R_space=no
8364 fi
8365 rm -f conftest*
8366 if test $ac_R_space = yes; then
8367 echo "$ac_t""yes" 1>&6
8368 X_LIBS="$X_LIBS -R $x_libraries"
8369 else
8370 echo "$ac_t""neither works" 1>&6
8371 fi
8372 fi
8373 LIBS="$ac_xsave_LIBS"
8374 esac
8375 fi
8376
8377 # Check for system-dependent libraries X programs must link with.
8378 # Do this before checking for the system-independent R6 libraries
8379 # (-lICE), since we may need -lsocket or whatever for X linking.
8380
8381 if test "$ISC" = yes; then
8382 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8383 else
8384 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
8385 # libraries were built with DECnet support. And karl@cs.umb.edu says
8386 # the Alpha needs dnet_stub (dnet does not exist).
8387 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
8388 echo "configure:8389: checking for dnet_ntoa in -ldnet" >&5
8389 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
8390 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8391 echo $ac_n "(cached) $ac_c" 1>&6
8392 else
8393 ac_save_LIBS="$LIBS"
8394 LIBS="-ldnet $LIBS"
8395 cat > conftest.$ac_ext <<EOF
8396 #line 8397 "configure"
8397 #include "confdefs.h"
8398 /* Override any gcc2 internal prototype to avoid an error. */
8399 /* We use char because int might match the return type of a gcc2
8400 builtin and then its argument prototype would still apply. */
8401 char dnet_ntoa();
8402
8403 int main() {
8404 dnet_ntoa()
8405 ; return 0; }
8406 EOF
8407 if { (eval echo configure:8408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8408 rm -rf conftest*
8409 eval "ac_cv_lib_$ac_lib_var=yes"
8410 else
8411 echo "configure: failed program was:" >&5
8412 cat conftest.$ac_ext >&5
8413 rm -rf conftest*
8414 eval "ac_cv_lib_$ac_lib_var=no"
8415 fi
8416 rm -f conftest*
8417 LIBS="$ac_save_LIBS"
8418
8419 fi
8420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8421 echo "$ac_t""yes" 1>&6
8422 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8423 else
8424 echo "$ac_t""no" 1>&6
8425 fi
8426
8427 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8428 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
8429 echo "configure:8430: checking for dnet_ntoa in -ldnet_stub" >&5
8430 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
8431 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8432 echo $ac_n "(cached) $ac_c" 1>&6
8433 else
8434 ac_save_LIBS="$LIBS"
8435 LIBS="-ldnet_stub $LIBS"
8436 cat > conftest.$ac_ext <<EOF
8437 #line 8438 "configure"
8438 #include "confdefs.h"
8439 /* Override any gcc2 internal prototype to avoid an error. */
8440 /* We use char because int might match the return type of a gcc2
8441 builtin and then its argument prototype would still apply. */
8442 char dnet_ntoa();
8443
8444 int main() {
8445 dnet_ntoa()
8446 ; return 0; }
8447 EOF
8448 if { (eval echo configure:8449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8449 rm -rf conftest*
8450 eval "ac_cv_lib_$ac_lib_var=yes"
8451 else
8452 echo "configure: failed program was:" >&5
8453 cat conftest.$ac_ext >&5
8454 rm -rf conftest*
8455 eval "ac_cv_lib_$ac_lib_var=no"
8456 fi
8457 rm -f conftest*
8458 LIBS="$ac_save_LIBS"
8459
8460 fi
8461 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8462 echo "$ac_t""yes" 1>&6
8463 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8464 else
8465 echo "$ac_t""no" 1>&6
8466 fi
8467
8468 fi
8469
8470 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8471 # to get the SysV transport functions.
8472 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
8473 # needs -lnsl.
8474 # The nsl library prevents programs from opening the X display
8475 # on Irix 5.2, according to dickey@clark.net.
8476 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
8477 echo "configure:8478: checking for gethostbyname" >&5
8478 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
8479 echo $ac_n "(cached) $ac_c" 1>&6
8480 else
8481 cat > conftest.$ac_ext <<EOF
8482 #line 8483 "configure"
8483 #include "confdefs.h"
8484 /* System header to define __stub macros and hopefully few prototypes,
8485 which can conflict with char gethostbyname(); below. */
8486 #include <assert.h>
8487 /* Override any gcc2 internal prototype to avoid an error. */
8488 /* We use char because int might match the return type of a gcc2
8489 builtin and then its argument prototype would still apply. */
8490 char gethostbyname();
8491
8492 int main() {
8493
8494 /* The GNU C library defines this for functions which it implements
8495 to always fail with ENOSYS. Some functions are actually named
8496 something starting with __ and the normal name is an alias. */
8497 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8498 choke me
8499 #else
8500 gethostbyname();
8501 #endif
8502
8503 ; return 0; }
8504 EOF
8505 if { (eval echo configure:8506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8506 rm -rf conftest*
8507 eval "ac_cv_func_gethostbyname=yes"
8508 else
8509 echo "configure: failed program was:" >&5
8510 cat conftest.$ac_ext >&5
8511 rm -rf conftest*
8512 eval "ac_cv_func_gethostbyname=no"
8513 fi
8514 rm -f conftest*
8515 fi
8516
8517 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
8518 echo "$ac_t""yes" 1>&6
8519 :
8520 else
8521 echo "$ac_t""no" 1>&6
8522 fi
8523
8524 if test $ac_cv_func_gethostbyname = no; then
8525 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
8526 echo "configure:8527: checking for gethostbyname in -lnsl" >&5
8527 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
8528 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8529 echo $ac_n "(cached) $ac_c" 1>&6
8530 else
8531 ac_save_LIBS="$LIBS"
8532 LIBS="-lnsl $LIBS"
8533 cat > conftest.$ac_ext <<EOF
8534 #line 8535 "configure"
8535 #include "confdefs.h"
8536 /* Override any gcc2 internal prototype to avoid an error. */
8537 /* We use char because int might match the return type of a gcc2
8538 builtin and then its argument prototype would still apply. */
8539 char gethostbyname();
8540
8541 int main() {
8542 gethostbyname()
8543 ; return 0; }
8544 EOF
8545 if { (eval echo configure:8546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8546 rm -rf conftest*
8547 eval "ac_cv_lib_$ac_lib_var=yes"
8548 else
8549 echo "configure: failed program was:" >&5
8550 cat conftest.$ac_ext >&5
8551 rm -rf conftest*
8552 eval "ac_cv_lib_$ac_lib_var=no"
8553 fi
8554 rm -f conftest*
8555 LIBS="$ac_save_LIBS"
8556
8557 fi
8558 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8559 echo "$ac_t""yes" 1>&6
8560 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8561 else
8562 echo "$ac_t""no" 1>&6
8563 fi
8564
8565 fi
8566
8567 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8568 # socket/setsockopt and other routines are undefined under SCO ODT
8569 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8570 # on later versions), says simon@lia.di.epfl.ch: it contains
8571 # gethostby* variants that don't use the nameserver (or something).
8572 # -lsocket must be given before -lnsl if both are needed.
8573 # We assume that if connect needs -lnsl, so does gethostbyname.
8574 echo $ac_n "checking for connect""... $ac_c" 1>&6
8575 echo "configure:8576: checking for connect" >&5
8576 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
8577 echo $ac_n "(cached) $ac_c" 1>&6
8578 else
8579 cat > conftest.$ac_ext <<EOF
8580 #line 8581 "configure"
8581 #include "confdefs.h"
8582 /* System header to define __stub macros and hopefully few prototypes,
8583 which can conflict with char connect(); below. */
8584 #include <assert.h>
8585 /* Override any gcc2 internal prototype to avoid an error. */
8586 /* We use char because int might match the return type of a gcc2
8587 builtin and then its argument prototype would still apply. */
8588 char connect();
8589
8590 int main() {
8591
8592 /* The GNU C library defines this for functions which it implements
8593 to always fail with ENOSYS. Some functions are actually named
8594 something starting with __ and the normal name is an alias. */
8595 #if defined (__stub_connect) || defined (__stub___connect)
8596 choke me
8597 #else
8598 connect();
8599 #endif
8600
8601 ; return 0; }
8602 EOF
8603 if { (eval echo configure:8604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8604 rm -rf conftest*
8605 eval "ac_cv_func_connect=yes"
8606 else
8607 echo "configure: failed program was:" >&5
8608 cat conftest.$ac_ext >&5
8609 rm -rf conftest*
8610 eval "ac_cv_func_connect=no"
8611 fi
8612 rm -f conftest*
8613 fi
8614
8615 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
8616 echo "$ac_t""yes" 1>&6
8617 :
8618 else
8619 echo "$ac_t""no" 1>&6
8620 fi
8621
8622 if test $ac_cv_func_connect = no; then
8623 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
8624 echo "configure:8625: checking for connect in -lsocket" >&5
8625 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
8626 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8627 echo $ac_n "(cached) $ac_c" 1>&6
8628 else
8629 ac_save_LIBS="$LIBS"
8630 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8631 cat > conftest.$ac_ext <<EOF
8632 #line 8633 "configure"
8633 #include "confdefs.h"
8634 /* Override any gcc2 internal prototype to avoid an error. */
8635 /* We use char because int might match the return type of a gcc2
8636 builtin and then its argument prototype would still apply. */
8637 char connect();
8638
8639 int main() {
8640 connect()
8641 ; return 0; }
8642 EOF
8643 if { (eval echo configure:8644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8644 rm -rf conftest*
8645 eval "ac_cv_lib_$ac_lib_var=yes"
8646 else
8647 echo "configure: failed program was:" >&5
8648 cat conftest.$ac_ext >&5
8649 rm -rf conftest*
8650 eval "ac_cv_lib_$ac_lib_var=no"
8651 fi
8652 rm -f conftest*
8653 LIBS="$ac_save_LIBS"
8654
8655 fi
8656 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8657 echo "$ac_t""yes" 1>&6
8658 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8659 else
8660 echo "$ac_t""no" 1>&6
8661 fi
8662
8663 fi
8664
8665 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
8666 echo $ac_n "checking for remove""... $ac_c" 1>&6
8667 echo "configure:8668: checking for remove" >&5
8668 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
8669 echo $ac_n "(cached) $ac_c" 1>&6
8670 else
8671 cat > conftest.$ac_ext <<EOF
8672 #line 8673 "configure"
8673 #include "confdefs.h"
8674 /* System header to define __stub macros and hopefully few prototypes,
8675 which can conflict with char remove(); below. */
8676 #include <assert.h>
8677 /* Override any gcc2 internal prototype to avoid an error. */
8678 /* We use char because int might match the return type of a gcc2
8679 builtin and then its argument prototype would still apply. */
8680 char remove();
8681
8682 int main() {
8683
8684 /* The GNU C library defines this for functions which it implements
8685 to always fail with ENOSYS. Some functions are actually named
8686 something starting with __ and the normal name is an alias. */
8687 #if defined (__stub_remove) || defined (__stub___remove)
8688 choke me
8689 #else
8690 remove();
8691 #endif
8692
8693 ; return 0; }
8694 EOF
8695 if { (eval echo configure:8696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8696 rm -rf conftest*
8697 eval "ac_cv_func_remove=yes"
8698 else
8699 echo "configure: failed program was:" >&5
8700 cat conftest.$ac_ext >&5
8701 rm -rf conftest*
8702 eval "ac_cv_func_remove=no"
8703 fi
8704 rm -f conftest*
8705 fi
8706
8707 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
8708 echo "$ac_t""yes" 1>&6
8709 :
8710 else
8711 echo "$ac_t""no" 1>&6
8712 fi
8713
8714 if test $ac_cv_func_remove = no; then
8715 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
8716 echo "configure:8717: checking for remove in -lposix" >&5
8717 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
8718 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8719 echo $ac_n "(cached) $ac_c" 1>&6
8720 else
8721 ac_save_LIBS="$LIBS"
8722 LIBS="-lposix $LIBS"
8723 cat > conftest.$ac_ext <<EOF
8724 #line 8725 "configure"
8725 #include "confdefs.h"
8726 /* Override any gcc2 internal prototype to avoid an error. */
8727 /* We use char because int might match the return type of a gcc2
8728 builtin and then its argument prototype would still apply. */
8729 char remove();
8730
8731 int main() {
8732 remove()
8733 ; return 0; }
8734 EOF
8735 if { (eval echo configure:8736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8736 rm -rf conftest*
8737 eval "ac_cv_lib_$ac_lib_var=yes"
8738 else
8739 echo "configure: failed program was:" >&5
8740 cat conftest.$ac_ext >&5
8741 rm -rf conftest*
8742 eval "ac_cv_lib_$ac_lib_var=no"
8743 fi
8744 rm -f conftest*
8745 LIBS="$ac_save_LIBS"
8746
8747 fi
8748 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8749 echo "$ac_t""yes" 1>&6
8750 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8751 else
8752 echo "$ac_t""no" 1>&6
8753 fi
8754
8755 fi
8756
8757 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8758 echo $ac_n "checking for shmat""... $ac_c" 1>&6
8759 echo "configure:8760: checking for shmat" >&5
8760 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
8761 echo $ac_n "(cached) $ac_c" 1>&6
8762 else
8763 cat > conftest.$ac_ext <<EOF
8764 #line 8765 "configure"
8765 #include "confdefs.h"
8766 /* System header to define __stub macros and hopefully few prototypes,
8767 which can conflict with char shmat(); below. */
8768 #include <assert.h>
8769 /* Override any gcc2 internal prototype to avoid an error. */
8770 /* We use char because int might match the return type of a gcc2
8771 builtin and then its argument prototype would still apply. */
8772 char shmat();
8773
8774 int main() {
8775
8776 /* The GNU C library defines this for functions which it implements
8777 to always fail with ENOSYS. Some functions are actually named
8778 something starting with __ and the normal name is an alias. */
8779 #if defined (__stub_shmat) || defined (__stub___shmat)
8780 choke me
8781 #else
8782 shmat();
8783 #endif
8784
8785 ; return 0; }
8786 EOF
8787 if { (eval echo configure:8788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8788 rm -rf conftest*
8789 eval "ac_cv_func_shmat=yes"
8790 else
8791 echo "configure: failed program was:" >&5
8792 cat conftest.$ac_ext >&5
8793 rm -rf conftest*
8794 eval "ac_cv_func_shmat=no"
8795 fi
8796 rm -f conftest*
8797 fi
8798
8799 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
8800 echo "$ac_t""yes" 1>&6
8801 :
8802 else
8803 echo "$ac_t""no" 1>&6
8804 fi
8805
8806 if test $ac_cv_func_shmat = no; then
8807 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
8808 echo "configure:8809: checking for shmat in -lipc" >&5
8809 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
8810 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8811 echo $ac_n "(cached) $ac_c" 1>&6
8812 else
8813 ac_save_LIBS="$LIBS"
8814 LIBS="-lipc $LIBS"
8815 cat > conftest.$ac_ext <<EOF
8816 #line 8817 "configure"
8817 #include "confdefs.h"
8818 /* Override any gcc2 internal prototype to avoid an error. */
8819 /* We use char because int might match the return type of a gcc2
8820 builtin and then its argument prototype would still apply. */
8821 char shmat();
8822
8823 int main() {
8824 shmat()
8825 ; return 0; }
8826 EOF
8827 if { (eval echo configure:8828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8828 rm -rf conftest*
8829 eval "ac_cv_lib_$ac_lib_var=yes"
8830 else
8831 echo "configure: failed program was:" >&5
8832 cat conftest.$ac_ext >&5
8833 rm -rf conftest*
8834 eval "ac_cv_lib_$ac_lib_var=no"
8835 fi
8836 rm -f conftest*
8837 LIBS="$ac_save_LIBS"
8838
8839 fi
8840 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8841 echo "$ac_t""yes" 1>&6
8842 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8843 else
8844 echo "$ac_t""no" 1>&6
8845 fi
8846
8847 fi
8848 fi
8849
8850 # Check for libraries that X11R6 Xt/Xaw programs need.
8851 ac_save_LDFLAGS="$LDFLAGS"
8852 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8853 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8854 # check for ICE first), but we must link in the order -lSM -lICE or
8855 # we get undefined symbols. So assume we have SM if we have ICE.
8856 # These have to be linked with before -lX11, unlike the other
8857 # libraries we check for below, so use a different variable.
8858 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
8859 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
8860 echo "configure:8861: checking for IceConnectionNumber in -lICE" >&5
8861 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
8862 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8863 echo $ac_n "(cached) $ac_c" 1>&6
8864 else
8865 ac_save_LIBS="$LIBS"
8866 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8867 cat > conftest.$ac_ext <<EOF
8868 #line 8869 "configure"
8869 #include "confdefs.h"
8870 /* Override any gcc2 internal prototype to avoid an error. */
8871 /* We use char because int might match the return type of a gcc2
8872 builtin and then its argument prototype would still apply. */
8873 char IceConnectionNumber();
8874
8875 int main() {
8876 IceConnectionNumber()
8877 ; return 0; }
8878 EOF
8879 if { (eval echo configure:8880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8880 rm -rf conftest*
8881 eval "ac_cv_lib_$ac_lib_var=yes"
8882 else
8883 echo "configure: failed program was:" >&5
8884 cat conftest.$ac_ext >&5
8885 rm -rf conftest*
8886 eval "ac_cv_lib_$ac_lib_var=no"
8887 fi
8888 rm -f conftest*
8889 LIBS="$ac_save_LIBS"
8890
8891 fi
8892 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8893 echo "$ac_t""yes" 1>&6
8894 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8895 else
8896 echo "$ac_t""no" 1>&6
8897 fi
8898
8899 LDFLAGS="$ac_save_LDFLAGS"
8900
8901 fi
8902
8903 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8904 LDFLAGS="$LDFLAGS $X_LIBS"
8905
8906 if test "$wxUSE_MOTIF" = 1; then
8907 if test "$no_x" = "yes"; then
8908 { echo "configure: error: X11 not found" 1>&2; exit 1; }
8909 fi
8910
8911 GUI_TK_LIBRARY="$X_LIBS"
8912 TOOLKIT_INCLUDE="$X_CFLAGS"
8913
8914 AFMINSTALL=afminstall
8915
8916
8917 COMPILED_X_PROGRAM=0
8918
8919 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
8920 echo "configure:8921: checking for Motif/Lesstif headers" >&5
8921
8922 ac_find_includes=
8923 for ac_dir in $SEARCH_INCLUDE;
8924 do
8925 if test -f "$ac_dir/Xm/Xm.h"; then
8926 ac_find_includes=$ac_dir
8927 break
8928 fi
8929 done
8930
8931 if test "$ac_find_includes" != "" ; then
8932 echo "$ac_t""found $ac_find_includes" 1>&6
8933 else
8934 cat > conftest.$ac_ext <<EOF
8935 #line 8936 "configure"
8936 #include "confdefs.h"
8937
8938 #include <Xm/Xm.h>
8939
8940 int main() {
8941
8942 int version;
8943
8944 version = xmUseVersion;
8945
8946 ; return 0; }
8947 EOF
8948 if { (eval echo configure:8949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8949 rm -rf conftest*
8950
8951 echo "$ac_t""found in default search path" 1>&6
8952 COMPILED_X_PROGRAM=1
8953
8954 else
8955 echo "configure: failed program was:" >&5
8956 cat conftest.$ac_ext >&5
8957 rm -rf conftest*
8958
8959 echo "$ac_t""no" 1>&6
8960 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
8961
8962
8963 fi
8964 rm -f conftest*
8965 fi
8966
8967 if test "$COMPILED_X_PROGRAM" = 0; then
8968 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
8969 echo "configure:8970: checking for Motif/Lesstif library" >&5
8970
8971 ac_find_libraries=
8972 for ac_dir in $SEARCH_LIB;
8973 do
8974 for ac_extension in a so sl; do
8975 if test -f "$ac_dir/libXm.$ac_extension"; then
8976 ac_find_libraries=$ac_dir
8977 break 2
8978 fi
8979 done
8980 done
8981
8982 if test "$ac_find_libraries" != "" ; then
8983
8984 ac_path_to_include=$ac_find_includes
8985 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
8986 result=$?
8987 if test $result = 0; then
8988 ac_path_to_include=""
8989 else
8990 ac_path_to_include="-I$ac_find_includes"
8991 fi
8992
8993
8994 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8995 result=$?
8996 if test $result = 0; then
8997 ac_path_to_link=""
8998 else
8999 ac_path_to_link="-L$ac_find_libraries"
9000 fi
9001
9002
9003 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
9004 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
9005 echo "$ac_t""found at $ac_find_libraries" 1>&6
9006 else
9007 cat > conftest.$ac_ext <<EOF
9008 #line 9009 "configure"
9009 #include "confdefs.h"
9010
9011 #include <Xm/Xm.h>
9012
9013 int main() {
9014
9015 int version;
9016
9017 version = xmUseVersion;
9018
9019 ; return 0; }
9020 EOF
9021 if { (eval echo configure:9022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9022 rm -rf conftest*
9023
9024 echo "$ac_t""found in default search path" 1>&6
9025 COMPILED_X_PROGRAM=1
9026
9027 else
9028 echo "configure: failed program was:" >&5
9029 cat conftest.$ac_ext >&5
9030 rm -rf conftest*
9031
9032 echo "$ac_t""no" 1>&6
9033 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
9034
9035
9036 fi
9037 rm -f conftest*
9038 fi
9039 fi
9040
9041
9042 XPM_LINK=""
9043 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
9044 echo "configure:9045: checking for Xpm library" >&5
9045
9046 ac_find_libraries=
9047 for ac_dir in $SEARCH_LIB;
9048 do
9049 for ac_extension in a so sl; do
9050 if test -f "$ac_dir/libXpm.$ac_extension"; then
9051 ac_find_libraries=$ac_dir
9052 break 2
9053 fi
9054 done
9055 done
9056
9057 if test "$ac_find_libraries" != "" ; then
9058
9059 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
9060 result=$?
9061 if test $result = 0; then
9062 ac_path_to_link=""
9063 else
9064 ac_path_to_link="-L$ac_find_libraries"
9065 fi
9066
9067 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
9068 XPM_LINK="-lXpm "
9069 cat >> confdefs.h <<\EOF
9070 #define wxHAVE_LIB_XPM 1
9071 EOF
9072
9073 echo "$ac_t""found at $ac_find_libraries" 1>&6
9074 else
9075 cat > conftest.$ac_ext <<EOF
9076 #line 9077 "configure"
9077 #include "confdefs.h"
9078
9079 #include <X11/xpm.h>
9080
9081 int main() {
9082
9083 int version;
9084
9085 version = XpmLibraryVersion();
9086
9087 ; return 0; }
9088 EOF
9089 if { (eval echo configure:9090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9090 rm -rf conftest*
9091
9092 XPM_LINK="-lXpm "
9093 cat >> confdefs.h <<\EOF
9094 #define wxHAVE_LIB_XPM 1
9095 EOF
9096
9097 echo "$ac_t""found in default search path" 1>&6
9098 COMPILED_X_PROGRAM=0
9099
9100 else
9101 echo "configure: failed program was:" >&5
9102 cat conftest.$ac_ext >&5
9103 rm -rf conftest*
9104
9105 echo "$ac_t""no" 1>&6
9106 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9107
9108
9109 fi
9110 rm -f conftest*
9111 fi
9112
9113 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
9114 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
9115 TOOLKIT=MOTIF
9116 GUIDIST=MOTIF_DIST
9117 fi
9118
9119 if test "$wxUSE_MAC" = 1; then
9120 TOOLKIT=MAC
9121 GUIDIST=MACX_DIST
9122 fi
9123
9124 if test "$wxUSE_PM" = 1; then
9125 TOOLKIT=PM
9126 GUIDIST=GTK_DIST
9127 fi
9128
9129 if test "$TOOLKIT" != "PM" ; then
9130 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
9131 else
9132 TOOLKIT_DIR="os2"
9133 fi
9134
9135 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
9136 TOOLKIT_NAME="${TOOLKIT_DIR}d"
9137 else
9138 TOOLKIT_NAME="${TOOLKIT_DIR}"
9139 fi
9140
9141 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
9142
9143 WX_LIBRARY="wx_${TOOLKIT_NAME}"
9144
9145 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(OGLOBJS)"
9146
9147 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
9148 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
9149 fi
9150
9151 if test "$wxUSE_LIBJPEG" = "yes" ; then
9152 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
9153 fi
9154 if test "$wxUSE_LIBTIFF" = "yes" ; then
9155 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
9156 fi
9157 if test "$wxUSE_LIBPNG" = "yes" ; then
9158 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
9159 fi
9160 if test "$wxUSE_ZLIB" = "yes" ; then
9161 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
9162 fi
9163 if test "$wxUSE_FREETYPE" = "yes" ; then
9164 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
9165 fi
9166 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS) \$(OGLDEPS)"
9167
9168 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
9169 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
9170 RPM_SPEC="wx\$(TOOLKIT).spec"
9171
9172 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
9173 DISTDIR="wx\$(TOOLKIT)"
9174 else
9175 USE_GUI=0
9176
9177 TOOLKIT_DIR="base"
9178
9179 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
9180 TOOLKIT_NAME="${TOOLKIT_DIR}d"
9181 else
9182 TOOLKIT_NAME="${TOOLKIT_DIR}"
9183 fi
9184
9185 TOOLKIT_DEF="-D__WXBASE__"
9186
9187 ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)"
9188 ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)"
9189
9190 if test "$wxUSE_ZLIB" = "yes" ; then
9191 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
9192 fi
9193
9194 WX_LIBRARY="wx_${TOOLKIT_NAME}"
9195
9196 PORT_FILES="src/files.lst"
9197 RPM_FILES="src/rpmfiles.lst"
9198 RPM_SPEC="wxBase.spec"
9199
9200 GUIDIST="BASE_DIST"
9201 DISTDIR="wxBase"
9202 fi
9203
9204 WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
9205 WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
9206
9207 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
9208 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
9209
9210 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
9211 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
9212
9213 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
9214 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
9215 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
9216 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
9217 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
9218 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
9219
9220 SHARED_LD=
9221 PIC_FLAG=
9222 WX_ALL=
9223 WX_ALL_INSTALLED=
9224 BURNT_LIBRARY_NAME=
9225 WX_TARGET_LIBRARY_SONAME=
9226
9227
9228 if test "$wxUSE_SHARED" = "yes"; then
9229 case "${host}" in
9230 *-hp-hpux* )
9231 if test "$GCC" = yes ; then
9232 SHARED_LD="${CC} -shared -fPIC -o"
9233 PIC_FLAG="-fPIC"
9234 else
9235 LDFLAGS="-L/usr/lib"
9236
9237 SHARED_LD="${CXX} -b -o"
9238 PIC_FLAG="+Z"
9239 fi
9240 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
9241 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
9242 if test "$wxUSE_OPENGL" = "yes"; then
9243 WX_ALL_INSTALLED="preinstall_gl"
9244 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
9245 else
9246 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
9247 fi
9248 ;;
9249
9250 *-*-linux* )
9251 SHARED_LD="${CC} -shared -o"
9252 PIC_FLAG="-fPIC"
9253 if test "$wxUSE_BURNT_NAME" = "yes" ; then
9254 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
9255 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
9256 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
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 *-*-irix5* | *-*-irix6* )
9267 if test "$GCC" = yes ; then
9268 SHARED_LD="${CC} -shared -o"
9269 PIC_FLAG="-fPIC"
9270 else
9271 SHARED_LD="${CXX} -shared -o"
9272 fi
9273 if test "$wxUSE_OPENGL" = "yes"; then
9274 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9275 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9276 else
9277 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9278 WX_ALL="CREATE_LINKS"
9279 fi
9280 ;;
9281 *-*-solaris2* )
9282 if test "$GCC" = yes ; then
9283 SHARED_LD="${CC} -shared -o"
9284 PIC_FLAG="-fPIC"
9285
9286 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
9287 else
9288 SHARED_LD="${CXX} -G -o"
9289 PIC_FLAG="-KPIC"
9290 fi
9291 if test "$wxUSE_OPENGL" = "yes"; then
9292 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9293 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9294 else
9295 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9296 WX_ALL="CREATE_LINKS"
9297 fi
9298 ;;
9299 *-*-sunos4* )
9300 SHARED_LD="${CC} -shared -o"
9301 PIC_FLAG="-fPIC"
9302 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9303 WX_ALL="CREATE_LINKS"
9304 ;;
9305 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* )
9306 SHARED_LD="${CC} -shared -o"
9307 PIC_FLAG="-fPIC"
9308 if test "$wxUSE_OPENGL" = "yes"; then
9309 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9310 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9311 else
9312 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9313 WX_ALL="CREATE_LINKS"
9314 fi
9315 ;;
9316 *-*-darwin* )
9317 SHARED_LD="${CXX} -dynamiclib -o"
9318 PIC_FLAG="-dynamic -fPIC"
9319 if test "$wxUSE_OPENGL" = "yes"; then
9320 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
9321 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
9322 else
9323 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9324 WX_ALL="CREATE_LINKS"
9325 fi
9326 WX_ALL="${WX_ALL} lib${WX_LIBRARY}-${WX_RELEASE}.${WX_CURRENT}.r"
9327 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.dylib"
9328 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.dylib"
9329 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.${WX_CURRENT}.dylib"
9330 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib"
9331 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib"
9332 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.${WX_CURRENT}.dylib"
9333 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib"
9334 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib"
9335 ;;
9336 *-*-osf* )
9337 SHARED_LD="${CXX} -shared -o"
9338 PIC_FLAG="-fPIC"
9339 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9340 WX_ALL="CREATE_LINKS"
9341 ;;
9342 *-*-dgux5* )
9343 SHARED_LD="${CXX} -shared -o"
9344 PIC_FLAG="-fPIC"
9345 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9346 WX_ALL="CREATE_LINKS"
9347 ;;
9348 *-*-sysv5* )
9349 SHARED_LD="${CC} -shared -o"
9350 PIC_FLAG="-fPIC"
9351 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9352 WX_ALL="CREATE_LINKS"
9353 ;;
9354 *-*-aix* )
9355 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
9356 WX_ALL=${WX_LIBRARY_NAME_SHARED}
9357 ;;
9358 *-*-cygwin32* )
9359 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
9360 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
9361 if test "$wxUSE_OPENGL" = "yes"; then
9362 WX_ALL_INSTALLED="preinstall_gl"
9363 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
9364 else
9365 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9366 fi
9367 ;;
9368 *-*-mingw32* )
9369 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
9370 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
9371 if test "$wxUSE_OPENGL" = "yes"; then
9372 WX_ALL_INSTALLED="preinstall_gl"
9373 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
9374 else
9375 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9376 fi
9377 ;;
9378 *-pc-os2_emx )
9379 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
9380 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9381 ;;
9382 *-*-beos* )
9383 SHARED_LD="${LD} -shared -o"
9384 PIC_FLAG="-fPIC"
9385 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
9386 WX_ALL="CREATE_LINKS"
9387 ;;
9388 *)
9389 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
9390 esac
9391
9392 if test "x$WX_TARGET_LIBRARY" = "x"; then
9393 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
9394 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
9395 fi
9396 WX_TARGET_LIBRARY_TYPE="so"
9397 else
9398 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
9399 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
9400
9401 if test "$wxUSE_OPENGL" = "yes"; then
9402 WX_ALL_INSTALLED="preinstall_gl"
9403 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
9404 else
9405 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
9406 fi
9407
9408 if test "$wxUSE_GUI" = "no"; then
9409 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
9410 fi
9411
9412 WX_TARGET_LIBRARY_TYPE="a"
9413 fi
9414
9415
9416 for ac_hdr in strings.h
9417 do
9418 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9419 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9420 echo "configure:9421: checking for $ac_hdr" >&5
9421 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9422 echo $ac_n "(cached) $ac_c" 1>&6
9423 else
9424 cat > conftest.$ac_ext <<EOF
9425 #line 9426 "configure"
9426 #include "confdefs.h"
9427 #include <$ac_hdr>
9428 EOF
9429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9430 { (eval echo configure:9431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9431 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9432 if test -z "$ac_err"; then
9433 rm -rf conftest*
9434 eval "ac_cv_header_$ac_safe=yes"
9435 else
9436 echo "$ac_err" >&5
9437 echo "configure: failed program was:" >&5
9438 cat conftest.$ac_ext >&5
9439 rm -rf conftest*
9440 eval "ac_cv_header_$ac_safe=no"
9441 fi
9442 rm -f conftest*
9443 fi
9444 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9445 echo "$ac_t""yes" 1>&6
9446 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9447 cat >> confdefs.h <<EOF
9448 #define $ac_tr_hdr 1
9449 EOF
9450
9451 else
9452 echo "$ac_t""no" 1>&6
9453 fi
9454 done
9455
9456 for ac_hdr in unistd.h
9457 do
9458 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9459 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9460 echo "configure:9461: checking for $ac_hdr" >&5
9461 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9462 echo $ac_n "(cached) $ac_c" 1>&6
9463 else
9464 cat > conftest.$ac_ext <<EOF
9465 #line 9466 "configure"
9466 #include "confdefs.h"
9467 #include <$ac_hdr>
9468 EOF
9469 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9470 { (eval echo configure:9471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9471 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9472 if test -z "$ac_err"; then
9473 rm -rf conftest*
9474 eval "ac_cv_header_$ac_safe=yes"
9475 else
9476 echo "$ac_err" >&5
9477 echo "configure: failed program was:" >&5
9478 cat conftest.$ac_ext >&5
9479 rm -rf conftest*
9480 eval "ac_cv_header_$ac_safe=no"
9481 fi
9482 rm -f conftest*
9483 fi
9484 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9485 echo "$ac_t""yes" 1>&6
9486 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9487 cat >> confdefs.h <<EOF
9488 #define $ac_tr_hdr 1
9489 EOF
9490
9491 else
9492 echo "$ac_t""no" 1>&6
9493 fi
9494 done
9495
9496 for ac_hdr in fcntl.h
9497 do
9498 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9499 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9500 echo "configure:9501: checking for $ac_hdr" >&5
9501 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9502 echo $ac_n "(cached) $ac_c" 1>&6
9503 else
9504 cat > conftest.$ac_ext <<EOF
9505 #line 9506 "configure"
9506 #include "confdefs.h"
9507 #include <$ac_hdr>
9508 EOF
9509 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9510 { (eval echo configure:9511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9511 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9512 if test -z "$ac_err"; then
9513 rm -rf conftest*
9514 eval "ac_cv_header_$ac_safe=yes"
9515 else
9516 echo "$ac_err" >&5
9517 echo "configure: failed program was:" >&5
9518 cat conftest.$ac_ext >&5
9519 rm -rf conftest*
9520 eval "ac_cv_header_$ac_safe=no"
9521 fi
9522 rm -f conftest*
9523 fi
9524 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9525 echo "$ac_t""yes" 1>&6
9526 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9527 cat >> confdefs.h <<EOF
9528 #define $ac_tr_hdr 1
9529 EOF
9530
9531 else
9532 echo "$ac_t""no" 1>&6
9533 fi
9534 done
9535
9536 for ac_hdr in wchar.h
9537 do
9538 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9539 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9540 echo "configure:9541: checking for $ac_hdr" >&5
9541 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9542 echo $ac_n "(cached) $ac_c" 1>&6
9543 else
9544 cat > conftest.$ac_ext <<EOF
9545 #line 9546 "configure"
9546 #include "confdefs.h"
9547 #include <$ac_hdr>
9548 EOF
9549 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9550 { (eval echo configure:9551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9551 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9552 if test -z "$ac_err"; then
9553 rm -rf conftest*
9554 eval "ac_cv_header_$ac_safe=yes"
9555 else
9556 echo "$ac_err" >&5
9557 echo "configure: failed program was:" >&5
9558 cat conftest.$ac_ext >&5
9559 rm -rf conftest*
9560 eval "ac_cv_header_$ac_safe=no"
9561 fi
9562 rm -f conftest*
9563 fi
9564 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9565 echo "$ac_t""yes" 1>&6
9566 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9567 cat >> confdefs.h <<EOF
9568 #define $ac_tr_hdr 1
9569 EOF
9570
9571 else
9572 echo "$ac_t""no" 1>&6
9573 fi
9574 done
9575
9576 for ac_hdr in wcstr.h
9577 do
9578 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9579 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9580 echo "configure:9581: checking for $ac_hdr" >&5
9581 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9582 echo $ac_n "(cached) $ac_c" 1>&6
9583 else
9584 cat > conftest.$ac_ext <<EOF
9585 #line 9586 "configure"
9586 #include "confdefs.h"
9587 #include <$ac_hdr>
9588 EOF
9589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9590 { (eval echo configure:9591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9591 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9592 if test -z "$ac_err"; then
9593 rm -rf conftest*
9594 eval "ac_cv_header_$ac_safe=yes"
9595 else
9596 echo "$ac_err" >&5
9597 echo "configure: failed program was:" >&5
9598 cat conftest.$ac_ext >&5
9599 rm -rf conftest*
9600 eval "ac_cv_header_$ac_safe=no"
9601 fi
9602 rm -f conftest*
9603 fi
9604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9605 echo "$ac_t""yes" 1>&6
9606 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9607 cat >> confdefs.h <<EOF
9608 #define $ac_tr_hdr 1
9609 EOF
9610
9611 else
9612 echo "$ac_t""no" 1>&6
9613 fi
9614 done
9615
9616 for ac_hdr in fnmatch.h
9617 do
9618 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9619 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9620 echo "configure:9621: checking for $ac_hdr" >&5
9621 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9622 echo $ac_n "(cached) $ac_c" 1>&6
9623 else
9624 cat > conftest.$ac_ext <<EOF
9625 #line 9626 "configure"
9626 #include "confdefs.h"
9627 #include <$ac_hdr>
9628 EOF
9629 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9630 { (eval echo configure:9631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9631 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9632 if test -z "$ac_err"; then
9633 rm -rf conftest*
9634 eval "ac_cv_header_$ac_safe=yes"
9635 else
9636 echo "$ac_err" >&5
9637 echo "configure: failed program was:" >&5
9638 cat conftest.$ac_ext >&5
9639 rm -rf conftest*
9640 eval "ac_cv_header_$ac_safe=no"
9641 fi
9642 rm -f conftest*
9643 fi
9644 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9645 echo "$ac_t""yes" 1>&6
9646 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9647 cat >> confdefs.h <<EOF
9648 #define $ac_tr_hdr 1
9649 EOF
9650
9651 else
9652 echo "$ac_t""no" 1>&6
9653 fi
9654 done
9655
9656 for ac_hdr in iconv.h
9657 do
9658 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9659 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9660 echo "configure:9661: checking for $ac_hdr" >&5
9661 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9662 echo $ac_n "(cached) $ac_c" 1>&6
9663 else
9664 cat > conftest.$ac_ext <<EOF
9665 #line 9666 "configure"
9666 #include "confdefs.h"
9667 #include <$ac_hdr>
9668 EOF
9669 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9670 { (eval echo configure:9671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9671 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9672 if test -z "$ac_err"; then
9673 rm -rf conftest*
9674 eval "ac_cv_header_$ac_safe=yes"
9675 else
9676 echo "$ac_err" >&5
9677 echo "configure: failed program was:" >&5
9678 cat conftest.$ac_ext >&5
9679 rm -rf conftest*
9680 eval "ac_cv_header_$ac_safe=no"
9681 fi
9682 rm -f conftest*
9683 fi
9684 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9685 echo "$ac_t""yes" 1>&6
9686 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9687 cat >> confdefs.h <<EOF
9688 #define $ac_tr_hdr 1
9689 EOF
9690
9691 else
9692 echo "$ac_t""no" 1>&6
9693 fi
9694 done
9695
9696 for ac_hdr in langinfo.h
9697 do
9698 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9699 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9700 echo "configure:9701: checking for $ac_hdr" >&5
9701 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9702 echo $ac_n "(cached) $ac_c" 1>&6
9703 else
9704 cat > conftest.$ac_ext <<EOF
9705 #line 9706 "configure"
9706 #include "confdefs.h"
9707 #include <$ac_hdr>
9708 EOF
9709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9710 { (eval echo configure:9711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9711 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9712 if test -z "$ac_err"; then
9713 rm -rf conftest*
9714 eval "ac_cv_header_$ac_safe=yes"
9715 else
9716 echo "$ac_err" >&5
9717 echo "configure: failed program was:" >&5
9718 cat conftest.$ac_ext >&5
9719 rm -rf conftest*
9720 eval "ac_cv_header_$ac_safe=no"
9721 fi
9722 rm -f conftest*
9723 fi
9724 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9725 echo "$ac_t""yes" 1>&6
9726 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9727 cat >> confdefs.h <<EOF
9728 #define $ac_tr_hdr 1
9729 EOF
9730
9731 else
9732 echo "$ac_t""no" 1>&6
9733 fi
9734 done
9735
9736
9737 if test "$wxUSE_GUI" = "yes"; then
9738 if test "$wxUSE_UNIX" = "yes"; then
9739 for ac_hdr in X11/XKBlib.h
9740 do
9741 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9742 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9743 echo "configure:9744: checking for $ac_hdr" >&5
9744 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9745 echo $ac_n "(cached) $ac_c" 1>&6
9746 else
9747 cat > conftest.$ac_ext <<EOF
9748 #line 9749 "configure"
9749 #include "confdefs.h"
9750 #include <$ac_hdr>
9751 EOF
9752 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9753 { (eval echo configure:9754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9754 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9755 if test -z "$ac_err"; then
9756 rm -rf conftest*
9757 eval "ac_cv_header_$ac_safe=yes"
9758 else
9759 echo "$ac_err" >&5
9760 echo "configure: failed program was:" >&5
9761 cat conftest.$ac_ext >&5
9762 rm -rf conftest*
9763 eval "ac_cv_header_$ac_safe=no"
9764 fi
9765 rm -f conftest*
9766 fi
9767 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9768 echo "$ac_t""yes" 1>&6
9769 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9770 cat >> confdefs.h <<EOF
9771 #define $ac_tr_hdr 1
9772 EOF
9773
9774 else
9775 echo "$ac_t""no" 1>&6
9776 fi
9777 done
9778
9779 fi
9780 fi
9781
9782
9783 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9784 echo "configure:9785: checking for ANSI C header files" >&5
9785 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
9786 echo $ac_n "(cached) $ac_c" 1>&6
9787 else
9788 cat > conftest.$ac_ext <<EOF
9789 #line 9790 "configure"
9790 #include "confdefs.h"
9791 #include <stdlib.h>
9792 #include <stdarg.h>
9793 #include <string.h>
9794 #include <float.h>
9795 EOF
9796 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9797 { (eval echo configure:9798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9798 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9799 if test -z "$ac_err"; then
9800 rm -rf conftest*
9801 ac_cv_header_stdc=yes
9802 else
9803 echo "$ac_err" >&5
9804 echo "configure: failed program was:" >&5
9805 cat conftest.$ac_ext >&5
9806 rm -rf conftest*
9807 ac_cv_header_stdc=no
9808 fi
9809 rm -f conftest*
9810
9811 if test $ac_cv_header_stdc = yes; then
9812 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9813 cat > conftest.$ac_ext <<EOF
9814 #line 9815 "configure"
9815 #include "confdefs.h"
9816 #include <string.h>
9817 EOF
9818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9819 egrep "memchr" >/dev/null 2>&1; then
9820 :
9821 else
9822 rm -rf conftest*
9823 ac_cv_header_stdc=no
9824 fi
9825 rm -f conftest*
9826
9827 fi
9828
9829 if test $ac_cv_header_stdc = yes; then
9830 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9831 cat > conftest.$ac_ext <<EOF
9832 #line 9833 "configure"
9833 #include "confdefs.h"
9834 #include <stdlib.h>
9835 EOF
9836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9837 egrep "free" >/dev/null 2>&1; then
9838 :
9839 else
9840 rm -rf conftest*
9841 ac_cv_header_stdc=no
9842 fi
9843 rm -f conftest*
9844
9845 fi
9846
9847 if test $ac_cv_header_stdc = yes; then
9848 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9849 if test "$cross_compiling" = yes; then
9850 :
9851 else
9852 cat > conftest.$ac_ext <<EOF
9853 #line 9854 "configure"
9854 #include "confdefs.h"
9855 #include <ctype.h>
9856 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9857 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9858 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9859 int main () { int i; for (i = 0; i < 256; i++)
9860 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9861 exit (0); }
9862
9863 EOF
9864 if { (eval echo configure:9865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9865 then
9866 :
9867 else
9868 echo "configure: failed program was:" >&5
9869 cat conftest.$ac_ext >&5
9870 rm -fr conftest*
9871 ac_cv_header_stdc=no
9872 fi
9873 rm -fr conftest*
9874 fi
9875
9876 fi
9877 fi
9878
9879 echo "$ac_t""$ac_cv_header_stdc" 1>&6
9880 if test $ac_cv_header_stdc = yes; then
9881 cat >> confdefs.h <<\EOF
9882 #define STDC_HEADERS 1
9883 EOF
9884
9885 fi
9886
9887 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
9888 echo "configure:9889: checking for mode_t" >&5
9889 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
9890 echo $ac_n "(cached) $ac_c" 1>&6
9891 else
9892 cat > conftest.$ac_ext <<EOF
9893 #line 9894 "configure"
9894 #include "confdefs.h"
9895 #include <sys/types.h>
9896 #if STDC_HEADERS
9897 #include <stdlib.h>
9898 #include <stddef.h>
9899 #endif
9900 EOF
9901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9902 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9903 rm -rf conftest*
9904 ac_cv_type_mode_t=yes
9905 else
9906 rm -rf conftest*
9907 ac_cv_type_mode_t=no
9908 fi
9909 rm -f conftest*
9910
9911 fi
9912 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
9913 if test $ac_cv_type_mode_t = no; then
9914 cat >> confdefs.h <<\EOF
9915 #define mode_t int
9916 EOF
9917
9918 fi
9919
9920 echo $ac_n "checking for off_t""... $ac_c" 1>&6
9921 echo "configure:9922: checking for off_t" >&5
9922 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
9923 echo $ac_n "(cached) $ac_c" 1>&6
9924 else
9925 cat > conftest.$ac_ext <<EOF
9926 #line 9927 "configure"
9927 #include "confdefs.h"
9928 #include <sys/types.h>
9929 #if STDC_HEADERS
9930 #include <stdlib.h>
9931 #include <stddef.h>
9932 #endif
9933 EOF
9934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9935 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9936 rm -rf conftest*
9937 ac_cv_type_off_t=yes
9938 else
9939 rm -rf conftest*
9940 ac_cv_type_off_t=no
9941 fi
9942 rm -f conftest*
9943
9944 fi
9945 echo "$ac_t""$ac_cv_type_off_t" 1>&6
9946 if test $ac_cv_type_off_t = no; then
9947 cat >> confdefs.h <<\EOF
9948 #define off_t long
9949 EOF
9950
9951 fi
9952
9953 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
9954 echo "configure:9955: checking for pid_t" >&5
9955 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
9956 echo $ac_n "(cached) $ac_c" 1>&6
9957 else
9958 cat > conftest.$ac_ext <<EOF
9959 #line 9960 "configure"
9960 #include "confdefs.h"
9961 #include <sys/types.h>
9962 #if STDC_HEADERS
9963 #include <stdlib.h>
9964 #include <stddef.h>
9965 #endif
9966 EOF
9967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9968 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9969 rm -rf conftest*
9970 ac_cv_type_pid_t=yes
9971 else
9972 rm -rf conftest*
9973 ac_cv_type_pid_t=no
9974 fi
9975 rm -f conftest*
9976
9977 fi
9978 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
9979 if test $ac_cv_type_pid_t = no; then
9980 cat >> confdefs.h <<\EOF
9981 #define pid_t int
9982 EOF
9983
9984 fi
9985
9986 echo $ac_n "checking for size_t""... $ac_c" 1>&6
9987 echo "configure:9988: checking for size_t" >&5
9988 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
9989 echo $ac_n "(cached) $ac_c" 1>&6
9990 else
9991 cat > conftest.$ac_ext <<EOF
9992 #line 9993 "configure"
9993 #include "confdefs.h"
9994 #include <sys/types.h>
9995 #if STDC_HEADERS
9996 #include <stdlib.h>
9997 #include <stddef.h>
9998 #endif
9999 EOF
10000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10001 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10002 rm -rf conftest*
10003 ac_cv_type_size_t=yes
10004 else
10005 rm -rf conftest*
10006 ac_cv_type_size_t=no
10007 fi
10008 rm -f conftest*
10009
10010 fi
10011 echo "$ac_t""$ac_cv_type_size_t" 1>&6
10012 if test $ac_cv_type_size_t = no; then
10013 cat >> confdefs.h <<\EOF
10014 #define size_t unsigned
10015 EOF
10016
10017 fi
10018
10019 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
10020 echo "configure:10021: checking for uid_t in sys/types.h" >&5
10021 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
10022 echo $ac_n "(cached) $ac_c" 1>&6
10023 else
10024 cat > conftest.$ac_ext <<EOF
10025 #line 10026 "configure"
10026 #include "confdefs.h"
10027 #include <sys/types.h>
10028 EOF
10029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10030 egrep "uid_t" >/dev/null 2>&1; then
10031 rm -rf conftest*
10032 ac_cv_type_uid_t=yes
10033 else
10034 rm -rf conftest*
10035 ac_cv_type_uid_t=no
10036 fi
10037 rm -f conftest*
10038
10039 fi
10040
10041 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
10042 if test $ac_cv_type_uid_t = no; then
10043 cat >> confdefs.h <<\EOF
10044 #define uid_t int
10045 EOF
10046
10047 cat >> confdefs.h <<\EOF
10048 #define gid_t int
10049 EOF
10050
10051 fi
10052
10053
10054 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
10055 echo "configure:10056: checking for wchar_t" >&5
10056 if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
10057 echo $ac_n "(cached) $ac_c" 1>&6
10058 else
10059
10060 cat > conftest.$ac_ext <<EOF
10061 #line 10062 "configure"
10062 #include "confdefs.h"
10063 #include <wchar.h>
10064 int main() {
10065
10066 wchar_t wc, *ws;
10067 wc = L'a';
10068 ws = L"Hello, world!";
10069
10070 ; return 0; }
10071 EOF
10072 if { (eval echo configure:10073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10073 rm -rf conftest*
10074 wx_cv_type_wchar_t=yes
10075 else
10076 echo "configure: failed program was:" >&5
10077 cat conftest.$ac_ext >&5
10078 rm -rf conftest*
10079 wx_cv_type_wchar_t=no
10080 fi
10081 rm -f conftest*
10082
10083 fi
10084
10085 echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
10086 if test "$wx_cv_type_wchar_t" = yes ; then
10087 cat >> confdefs.h <<\EOF
10088 #define wxUSE_WCHAR_T 1
10089 EOF
10090
10091 fi
10092
10093
10094 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
10095 echo "configure:10096: checking for pw_gecos in struct passwd" >&5
10096 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
10097 echo $ac_n "(cached) $ac_c" 1>&6
10098 else
10099
10100 cat > conftest.$ac_ext <<EOF
10101 #line 10102 "configure"
10102 #include "confdefs.h"
10103 #include <pwd.h>
10104 int main() {
10105
10106 char *p;
10107 struct passwd *pw;
10108 p = pw->pw_gecos;
10109
10110 ; return 0; }
10111 EOF
10112 if { (eval echo configure:10113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10113 rm -rf conftest*
10114
10115 wx_cv_struct_pw_gecos=yes
10116
10117 else
10118 echo "configure: failed program was:" >&5
10119 cat conftest.$ac_ext >&5
10120 rm -rf conftest*
10121
10122 wx_cv_struct_pw_gecos=no
10123
10124
10125 fi
10126 rm -f conftest*
10127
10128
10129 fi
10130
10131 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
10132
10133 if test "$wx_cv_struct_pw_gecos" = "yes"; then
10134 cat >> confdefs.h <<\EOF
10135 #define HAVE_PW_GECOS 1
10136 EOF
10137
10138 fi
10139
10140
10141 echo $ac_n "checking for working const""... $ac_c" 1>&6
10142 echo "configure:10143: checking for working const" >&5
10143 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10144 echo $ac_n "(cached) $ac_c" 1>&6
10145 else
10146 cat > conftest.$ac_ext <<EOF
10147 #line 10148 "configure"
10148 #include "confdefs.h"
10149
10150 int main() {
10151
10152 /* Ultrix mips cc rejects this. */
10153 typedef int charset[2]; const charset x;
10154 /* SunOS 4.1.1 cc rejects this. */
10155 char const *const *ccp;
10156 char **p;
10157 /* NEC SVR4.0.2 mips cc rejects this. */
10158 struct point {int x, y;};
10159 static struct point const zero = {0,0};
10160 /* AIX XL C 1.02.0.0 rejects this.
10161 It does not let you subtract one const X* pointer from another in an arm
10162 of an if-expression whose if-part is not a constant expression */
10163 const char *g = "string";
10164 ccp = &g + (g ? g-g : 0);
10165 /* HPUX 7.0 cc rejects these. */
10166 ++ccp;
10167 p = (char**) ccp;
10168 ccp = (char const *const *) p;
10169 { /* SCO 3.2v4 cc rejects this. */
10170 char *t;
10171 char const *s = 0 ? (char *) 0 : (char const *) 0;
10172
10173 *t++ = 0;
10174 }
10175 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10176 int x[] = {25, 17};
10177 const int *foo = &x[0];
10178 ++foo;
10179 }
10180 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10181 typedef const int *iptr;
10182 iptr p = 0;
10183 ++p;
10184 }
10185 { /* AIX XL C 1.02.0.0 rejects this saying
10186 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10187 struct s { int j; const int *ap[3]; };
10188 struct s *b; b->j = 5;
10189 }
10190 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10191 const int foo = 10;
10192 }
10193
10194 ; return 0; }
10195 EOF
10196 if { (eval echo configure:10197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10197 rm -rf conftest*
10198 ac_cv_c_const=yes
10199 else
10200 echo "configure: failed program was:" >&5
10201 cat conftest.$ac_ext >&5
10202 rm -rf conftest*
10203 ac_cv_c_const=no
10204 fi
10205 rm -f conftest*
10206 fi
10207
10208 echo "$ac_t""$ac_cv_c_const" 1>&6
10209 if test $ac_cv_c_const = no; then
10210 cat >> confdefs.h <<\EOF
10211 #define const
10212 EOF
10213
10214 fi
10215
10216 echo $ac_n "checking for inline""... $ac_c" 1>&6
10217 echo "configure:10218: checking for inline" >&5
10218 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10219 echo $ac_n "(cached) $ac_c" 1>&6
10220 else
10221 ac_cv_c_inline=no
10222 for ac_kw in inline __inline__ __inline; do
10223 cat > conftest.$ac_ext <<EOF
10224 #line 10225 "configure"
10225 #include "confdefs.h"
10226
10227 int main() {
10228 } $ac_kw foo() {
10229 ; return 0; }
10230 EOF
10231 if { (eval echo configure:10232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10232 rm -rf conftest*
10233 ac_cv_c_inline=$ac_kw; break
10234 else
10235 echo "configure: failed program was:" >&5
10236 cat conftest.$ac_ext >&5
10237 fi
10238 rm -f conftest*
10239 done
10240
10241 fi
10242
10243 echo "$ac_t""$ac_cv_c_inline" 1>&6
10244 case "$ac_cv_c_inline" in
10245 inline | yes) ;;
10246 no) cat >> confdefs.h <<\EOF
10247 #define inline
10248 EOF
10249 ;;
10250 *) cat >> confdefs.h <<EOF
10251 #define inline $ac_cv_c_inline
10252 EOF
10253 ;;
10254 esac
10255
10256
10257 echo $ac_n "checking size of char""... $ac_c" 1>&6
10258 echo "configure:10259: checking size of char" >&5
10259 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10260 echo $ac_n "(cached) $ac_c" 1>&6
10261 else
10262 if test "$cross_compiling" = yes; then
10263 ac_cv_sizeof_char=1
10264 else
10265 cat > conftest.$ac_ext <<EOF
10266 #line 10267 "configure"
10267 #include "confdefs.h"
10268 #include <stdio.h>
10269 main()
10270 {
10271 FILE *f=fopen("conftestval", "w");
10272 if (!f) exit(1);
10273 fprintf(f, "%d\n", sizeof(char));
10274 exit(0);
10275 }
10276 EOF
10277 if { (eval echo configure:10278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10278 then
10279 ac_cv_sizeof_char=`cat conftestval`
10280 else
10281 echo "configure: failed program was:" >&5
10282 cat conftest.$ac_ext >&5
10283 rm -fr conftest*
10284 ac_cv_sizeof_char=0
10285 fi
10286 rm -fr conftest*
10287 fi
10288
10289 fi
10290 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10291 cat >> confdefs.h <<EOF
10292 #define SIZEOF_CHAR $ac_cv_sizeof_char
10293 EOF
10294
10295
10296 echo $ac_n "checking size of short""... $ac_c" 1>&6
10297 echo "configure:10298: checking size of short" >&5
10298 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10299 echo $ac_n "(cached) $ac_c" 1>&6
10300 else
10301 if test "$cross_compiling" = yes; then
10302 ac_cv_sizeof_short=2
10303 else
10304 cat > conftest.$ac_ext <<EOF
10305 #line 10306 "configure"
10306 #include "confdefs.h"
10307 #include <stdio.h>
10308 main()
10309 {
10310 FILE *f=fopen("conftestval", "w");
10311 if (!f) exit(1);
10312 fprintf(f, "%d\n", sizeof(short));
10313 exit(0);
10314 }
10315 EOF
10316 if { (eval echo configure:10317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10317 then
10318 ac_cv_sizeof_short=`cat conftestval`
10319 else
10320 echo "configure: failed program was:" >&5
10321 cat conftest.$ac_ext >&5
10322 rm -fr conftest*
10323 ac_cv_sizeof_short=0
10324 fi
10325 rm -fr conftest*
10326 fi
10327
10328 fi
10329 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10330 cat >> confdefs.h <<EOF
10331 #define SIZEOF_SHORT $ac_cv_sizeof_short
10332 EOF
10333
10334
10335 echo $ac_n "checking size of int *""... $ac_c" 1>&6
10336 echo "configure:10337: checking size of int *" >&5
10337 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
10338 echo $ac_n "(cached) $ac_c" 1>&6
10339 else
10340 if test "$cross_compiling" = yes; then
10341 ac_cv_sizeof_int_p=4
10342 else
10343 cat > conftest.$ac_ext <<EOF
10344 #line 10345 "configure"
10345 #include "confdefs.h"
10346 #include <stdio.h>
10347 main()
10348 {
10349 FILE *f=fopen("conftestval", "w");
10350 if (!f) exit(1);
10351 fprintf(f, "%d\n", sizeof(int *));
10352 exit(0);
10353 }
10354 EOF
10355 if { (eval echo configure:10356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10356 then
10357 ac_cv_sizeof_int_p=`cat conftestval`
10358 else
10359 echo "configure: failed program was:" >&5
10360 cat conftest.$ac_ext >&5
10361 rm -fr conftest*
10362 ac_cv_sizeof_int_p=0
10363 fi
10364 rm -fr conftest*
10365 fi
10366
10367 fi
10368 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
10369 cat >> confdefs.h <<EOF
10370 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
10371 EOF
10372
10373
10374 echo $ac_n "checking size of int""... $ac_c" 1>&6
10375 echo "configure:10376: checking size of int" >&5
10376 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10377 echo $ac_n "(cached) $ac_c" 1>&6
10378 else
10379 if test "$cross_compiling" = yes; then
10380 ac_cv_sizeof_int=4
10381 else
10382 cat > conftest.$ac_ext <<EOF
10383 #line 10384 "configure"
10384 #include "confdefs.h"
10385 #include <stdio.h>
10386 main()
10387 {
10388 FILE *f=fopen("conftestval", "w");
10389 if (!f) exit(1);
10390 fprintf(f, "%d\n", sizeof(int));
10391 exit(0);
10392 }
10393 EOF
10394 if { (eval echo configure:10395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10395 then
10396 ac_cv_sizeof_int=`cat conftestval`
10397 else
10398 echo "configure: failed program was:" >&5
10399 cat conftest.$ac_ext >&5
10400 rm -fr conftest*
10401 ac_cv_sizeof_int=0
10402 fi
10403 rm -fr conftest*
10404 fi
10405
10406 fi
10407 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10408 cat >> confdefs.h <<EOF
10409 #define SIZEOF_INT $ac_cv_sizeof_int
10410 EOF
10411
10412
10413 echo $ac_n "checking size of long""... $ac_c" 1>&6
10414 echo "configure:10415: checking size of long" >&5
10415 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10416 echo $ac_n "(cached) $ac_c" 1>&6
10417 else
10418 if test "$cross_compiling" = yes; then
10419 ac_cv_sizeof_long=4
10420 else
10421 cat > conftest.$ac_ext <<EOF
10422 #line 10423 "configure"
10423 #include "confdefs.h"
10424 #include <stdio.h>
10425 main()
10426 {
10427 FILE *f=fopen("conftestval", "w");
10428 if (!f) exit(1);
10429 fprintf(f, "%d\n", sizeof(long));
10430 exit(0);
10431 }
10432 EOF
10433 if { (eval echo configure:10434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10434 then
10435 ac_cv_sizeof_long=`cat conftestval`
10436 else
10437 echo "configure: failed program was:" >&5
10438 cat conftest.$ac_ext >&5
10439 rm -fr conftest*
10440 ac_cv_sizeof_long=0
10441 fi
10442 rm -fr conftest*
10443 fi
10444
10445 fi
10446 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10447 cat >> confdefs.h <<EOF
10448 #define SIZEOF_LONG $ac_cv_sizeof_long
10449 EOF
10450
10451
10452 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10453 echo "configure:10454: checking size of long long" >&5
10454 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10455 echo $ac_n "(cached) $ac_c" 1>&6
10456 else
10457 if test "$cross_compiling" = yes; then
10458 ac_cv_sizeof_long_long=0
10459 else
10460 cat > conftest.$ac_ext <<EOF
10461 #line 10462 "configure"
10462 #include "confdefs.h"
10463 #include <stdio.h>
10464 main()
10465 {
10466 FILE *f=fopen("conftestval", "w");
10467 if (!f) exit(1);
10468 fprintf(f, "%d\n", sizeof(long long));
10469 exit(0);
10470 }
10471 EOF
10472 if { (eval echo configure:10473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10473 then
10474 ac_cv_sizeof_long_long=`cat conftestval`
10475 else
10476 echo "configure: failed program was:" >&5
10477 cat conftest.$ac_ext >&5
10478 rm -fr conftest*
10479 ac_cv_sizeof_long_long=0
10480 fi
10481 rm -fr conftest*
10482 fi
10483
10484 fi
10485 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10486 cat >> confdefs.h <<EOF
10487 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10488 EOF
10489
10490
10491
10492 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
10493 echo "configure:10494: checking size of wchar_t" >&5
10494 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10495 echo $ac_n "(cached) $ac_c" 1>&6
10496 else
10497
10498 if test "$cross_compiling" = yes; then
10499 wx_cv_sizeof_wchar_t=4
10500
10501 else
10502 cat > conftest.$ac_ext <<EOF
10503 #line 10504 "configure"
10504 #include "confdefs.h"
10505
10506 #include <wchar.h>
10507 #include <stdio.h>
10508 int main()
10509 {
10510 FILE *f=fopen("conftestval", "w");
10511 if (!f) exit(1);
10512 fprintf(f, "%i", sizeof(wchar_t));
10513 exit(0);
10514 }
10515
10516 EOF
10517 if { (eval echo configure:10518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10518 then
10519 wx_cv_sizeof_wchar_t=`cat conftestval`
10520 else
10521 echo "configure: failed program was:" >&5
10522 cat conftest.$ac_ext >&5
10523 rm -fr conftest*
10524 wx_cv_sizeof_wchar_t=0
10525 fi
10526 rm -fr conftest*
10527 fi
10528
10529
10530 fi
10531
10532 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10533
10534 cat >> confdefs.h <<EOF
10535 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10536 EOF
10537
10538
10539
10540 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10541 echo "configure:10542: checking whether byte ordering is bigendian" >&5
10542 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10543 echo $ac_n "(cached) $ac_c" 1>&6
10544 else
10545 ac_cv_c_bigendian=unknown
10546 # See if sys/param.h defines the BYTE_ORDER macro.
10547 cat > conftest.$ac_ext <<EOF
10548 #line 10549 "configure"
10549 #include "confdefs.h"
10550 #include <sys/types.h>
10551 #include <sys/param.h>
10552 int main() {
10553
10554 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10555 bogus endian macros
10556 #endif
10557 ; return 0; }
10558 EOF
10559 if { (eval echo configure:10560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10560 rm -rf conftest*
10561 # It does; now see whether it defined to BIG_ENDIAN or not.
10562 cat > conftest.$ac_ext <<EOF
10563 #line 10564 "configure"
10564 #include "confdefs.h"
10565 #include <sys/types.h>
10566 #include <sys/param.h>
10567 int main() {
10568
10569 #if BYTE_ORDER != BIG_ENDIAN
10570 not big endian
10571 #endif
10572 ; return 0; }
10573 EOF
10574 if { (eval echo configure:10575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10575 rm -rf conftest*
10576 ac_cv_c_bigendian=yes
10577 else
10578 echo "configure: failed program was:" >&5
10579 cat conftest.$ac_ext >&5
10580 rm -rf conftest*
10581 ac_cv_c_bigendian=no
10582 fi
10583 rm -f conftest*
10584 else
10585 echo "configure: failed program was:" >&5
10586 cat conftest.$ac_ext >&5
10587 fi
10588 rm -f conftest*
10589 if test $ac_cv_c_bigendian = unknown; then
10590 if test "$cross_compiling" = yes; then
10591 ac_cv_c_bigendian=unknown
10592 else
10593 cat > conftest.$ac_ext <<EOF
10594 #line 10595 "configure"
10595 #include "confdefs.h"
10596 main () {
10597 /* Are we little or big endian? From Harbison&Steele. */
10598 union
10599 {
10600 long l;
10601 char c[sizeof (long)];
10602 } u;
10603 u.l = 1;
10604 exit (u.c[sizeof (long) - 1] == 1);
10605 }
10606 EOF
10607 if { (eval echo configure:10608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10608 then
10609 ac_cv_c_bigendian=no
10610 else
10611 echo "configure: failed program was:" >&5
10612 cat conftest.$ac_ext >&5
10613 rm -fr conftest*
10614 ac_cv_c_bigendian=yes
10615 fi
10616 rm -fr conftest*
10617 fi
10618
10619 fi
10620 fi
10621
10622 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10623 if test $ac_cv_c_bigendian = unknown; then
10624 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
10625 fi
10626 if test $ac_cv_c_bigendian = yes; then
10627 cat >> confdefs.h <<\EOF
10628 #define WORDS_BIGENDIAN 1
10629 EOF
10630
10631 fi
10632
10633
10634
10635 if test "$cross_compiling" = "yes"; then
10636 cat >> confdefs.h <<\EOF
10637 #define wxUSE_IOSTREAMH 1
10638 EOF
10639
10640 else
10641
10642 ac_ext=C
10643 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10644 ac_cpp='$CXXCPP $CPPFLAGS'
10645 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10646 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10647 cross_compiling=$ac_cv_prog_cxx_cross
10648
10649
10650 for ac_hdr in iostream
10651 do
10652 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10653 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10654 echo "configure:10655: checking for $ac_hdr" >&5
10655 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10656 echo $ac_n "(cached) $ac_c" 1>&6
10657 else
10658 cat > conftest.$ac_ext <<EOF
10659 #line 10660 "configure"
10660 #include "confdefs.h"
10661 #include <$ac_hdr>
10662 EOF
10663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10664 { (eval echo configure:10665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10665 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10666 if test -z "$ac_err"; then
10667 rm -rf conftest*
10668 eval "ac_cv_header_$ac_safe=yes"
10669 else
10670 echo "$ac_err" >&5
10671 echo "configure: failed program was:" >&5
10672 cat conftest.$ac_ext >&5
10673 rm -rf conftest*
10674 eval "ac_cv_header_$ac_safe=no"
10675 fi
10676 rm -f conftest*
10677 fi
10678 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10679 echo "$ac_t""yes" 1>&6
10680 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10681 cat >> confdefs.h <<EOF
10682 #define $ac_tr_hdr 1
10683 EOF
10684
10685 else
10686 echo "$ac_t""no" 1>&6
10687 fi
10688 done
10689
10690
10691 if test "x$HAVE_IOSTREAM" = x ; then
10692 cat >> confdefs.h <<\EOF
10693 #define wxUSE_IOSTREAMH 1
10694 EOF
10695
10696 else
10697 :
10698 fi
10699
10700 ac_ext=c
10701 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10702 ac_cpp='$CPP $CPPFLAGS'
10703 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10704 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10705 cross_compiling=$ac_cv_prog_cc_cross
10706
10707 fi
10708
10709
10710
10711 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
10712 echo "configure:10713: checking if C++ compiler supports bool" >&5
10713 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
10714 echo $ac_n "(cached) $ac_c" 1>&6
10715 else
10716
10717
10718 ac_ext=C
10719 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10720 ac_cpp='$CXXCPP $CPPFLAGS'
10721 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10722 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10723 cross_compiling=$ac_cv_prog_cxx_cross
10724
10725
10726 cat > conftest.$ac_ext <<EOF
10727 #line 10728 "configure"
10728 #include "confdefs.h"
10729
10730
10731 int main() {
10732
10733 bool b = true;
10734
10735 return 0;
10736
10737 ; return 0; }
10738 EOF
10739 if { (eval echo configure:10740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10740 rm -rf conftest*
10741
10742 cat >> confdefs.h <<\EOF
10743 #define HAVE_BOOL 1
10744 EOF
10745
10746 wx_cv_cpp_bool=yes
10747
10748 else
10749 echo "configure: failed program was:" >&5
10750 cat conftest.$ac_ext >&5
10751 rm -rf conftest*
10752
10753 wx_cv_cpp_bool=no
10754
10755
10756 fi
10757 rm -f conftest*
10758
10759 ac_ext=c
10760 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10761 ac_cpp='$CPP $CPPFLAGS'
10762 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10763 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10764 cross_compiling=$ac_cv_prog_cc_cross
10765
10766
10767 fi
10768
10769 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10770
10771 if test "$wx_cv_cpp_bool" = "yes"; then
10772 cat >> confdefs.h <<\EOF
10773 #define HAVE_BOOL 1
10774 EOF
10775
10776 fi
10777
10778
10779
10780 echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
10781 echo "configure:10782: checking if you need GNU extensions" >&5
10782 if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
10783 echo $ac_n "(cached) $ac_c" 1>&6
10784 else
10785
10786 cat > conftest.$ac_ext <<EOF
10787 #line 10788 "configure"
10788 #include "confdefs.h"
10789 #include <features.h>
10790 int main() {
10791
10792
10793 #ifndef __GNU_LIBRARY__
10794 Compile error wanted
10795 #endif
10796
10797
10798 ; return 0; }
10799 EOF
10800 if { (eval echo configure:10801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10801 rm -rf conftest*
10802 wx_cv_gnu_extensions=yes
10803 else
10804 echo "configure: failed program was:" >&5
10805 cat conftest.$ac_ext >&5
10806 rm -rf conftest*
10807 wx_cv_gnu_extensions=no
10808 fi
10809 rm -f conftest*
10810
10811 fi
10812
10813
10814 echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
10815 if test "$wx_cv_gnu_extensions" = "yes"; then
10816 cat >> confdefs.h <<EOF
10817 #define _GNU_SOURCE 1
10818 EOF
10819
10820 fi
10821
10822
10823
10824 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
10825 echo "configure:10826: checking for wcslen in -lc" >&5
10826 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
10827 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10828 echo $ac_n "(cached) $ac_c" 1>&6
10829 else
10830 ac_save_LIBS="$LIBS"
10831 LIBS="-lc $LIBS"
10832 cat > conftest.$ac_ext <<EOF
10833 #line 10834 "configure"
10834 #include "confdefs.h"
10835 /* Override any gcc2 internal prototype to avoid an error. */
10836 /* We use char because int might match the return type of a gcc2
10837 builtin and then its argument prototype would still apply. */
10838 char wcslen();
10839
10840 int main() {
10841 wcslen()
10842 ; return 0; }
10843 EOF
10844 if { (eval echo configure:10845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10845 rm -rf conftest*
10846 eval "ac_cv_lib_$ac_lib_var=yes"
10847 else
10848 echo "configure: failed program was:" >&5
10849 cat conftest.$ac_ext >&5
10850 rm -rf conftest*
10851 eval "ac_cv_lib_$ac_lib_var=no"
10852 fi
10853 rm -f conftest*
10854 LIBS="$ac_save_LIBS"
10855
10856 fi
10857 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10858 echo "$ac_t""yes" 1>&6
10859
10860 cat >> confdefs.h <<\EOF
10861 #define HAVE_WCSLEN 1
10862 EOF
10863
10864 WCHAR_LINK=""
10865
10866 else
10867 echo "$ac_t""no" 1>&6
10868
10869 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
10870 echo "configure:10871: checking for wcslen in -lw" >&5
10871 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
10872 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10873 echo $ac_n "(cached) $ac_c" 1>&6
10874 else
10875 ac_save_LIBS="$LIBS"
10876 LIBS="-lw $LIBS"
10877 cat > conftest.$ac_ext <<EOF
10878 #line 10879 "configure"
10879 #include "confdefs.h"
10880 /* Override any gcc2 internal prototype to avoid an error. */
10881 /* We use char because int might match the return type of a gcc2
10882 builtin and then its argument prototype would still apply. */
10883 char wcslen();
10884
10885 int main() {
10886 wcslen()
10887 ; return 0; }
10888 EOF
10889 if { (eval echo configure:10890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10890 rm -rf conftest*
10891 eval "ac_cv_lib_$ac_lib_var=yes"
10892 else
10893 echo "configure: failed program was:" >&5
10894 cat conftest.$ac_ext >&5
10895 rm -rf conftest*
10896 eval "ac_cv_lib_$ac_lib_var=no"
10897 fi
10898 rm -f conftest*
10899 LIBS="$ac_save_LIBS"
10900
10901 fi
10902 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10903 echo "$ac_t""yes" 1>&6
10904
10905 cat >> confdefs.h <<\EOF
10906 #define HAVE_WCSLEN 1
10907 EOF
10908
10909 WCHAR_LINK="-lw"
10910
10911 else
10912 echo "$ac_t""no" 1>&6
10913 fi
10914
10915
10916 fi
10917
10918
10919 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
10920 echo "configure:10921: checking for vprintf" >&5
10921 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
10922 echo $ac_n "(cached) $ac_c" 1>&6
10923 else
10924 cat > conftest.$ac_ext <<EOF
10925 #line 10926 "configure"
10926 #include "confdefs.h"
10927 /* System header to define __stub macros and hopefully few prototypes,
10928 which can conflict with char vprintf(); below. */
10929 #include <assert.h>
10930 /* Override any gcc2 internal prototype to avoid an error. */
10931 /* We use char because int might match the return type of a gcc2
10932 builtin and then its argument prototype would still apply. */
10933 char vprintf();
10934
10935 int main() {
10936
10937 /* The GNU C library defines this for functions which it implements
10938 to always fail with ENOSYS. Some functions are actually named
10939 something starting with __ and the normal name is an alias. */
10940 #if defined (__stub_vprintf) || defined (__stub___vprintf)
10941 choke me
10942 #else
10943 vprintf();
10944 #endif
10945
10946 ; return 0; }
10947 EOF
10948 if { (eval echo configure:10949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10949 rm -rf conftest*
10950 eval "ac_cv_func_vprintf=yes"
10951 else
10952 echo "configure: failed program was:" >&5
10953 cat conftest.$ac_ext >&5
10954 rm -rf conftest*
10955 eval "ac_cv_func_vprintf=no"
10956 fi
10957 rm -f conftest*
10958 fi
10959
10960 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
10961 echo "$ac_t""yes" 1>&6
10962 cat >> confdefs.h <<\EOF
10963 #define HAVE_VPRINTF 1
10964 EOF
10965
10966 else
10967 echo "$ac_t""no" 1>&6
10968 fi
10969
10970 if test "$ac_cv_func_vprintf" != yes; then
10971 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
10972 echo "configure:10973: checking for _doprnt" >&5
10973 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
10974 echo $ac_n "(cached) $ac_c" 1>&6
10975 else
10976 cat > conftest.$ac_ext <<EOF
10977 #line 10978 "configure"
10978 #include "confdefs.h"
10979 /* System header to define __stub macros and hopefully few prototypes,
10980 which can conflict with char _doprnt(); below. */
10981 #include <assert.h>
10982 /* Override any gcc2 internal prototype to avoid an error. */
10983 /* We use char because int might match the return type of a gcc2
10984 builtin and then its argument prototype would still apply. */
10985 char _doprnt();
10986
10987 int main() {
10988
10989 /* The GNU C library defines this for functions which it implements
10990 to always fail with ENOSYS. Some functions are actually named
10991 something starting with __ and the normal name is an alias. */
10992 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10993 choke me
10994 #else
10995 _doprnt();
10996 #endif
10997
10998 ; return 0; }
10999 EOF
11000 if { (eval echo configure:11001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11001 rm -rf conftest*
11002 eval "ac_cv_func__doprnt=yes"
11003 else
11004 echo "configure: failed program was:" >&5
11005 cat conftest.$ac_ext >&5
11006 rm -rf conftest*
11007 eval "ac_cv_func__doprnt=no"
11008 fi
11009 rm -f conftest*
11010 fi
11011
11012 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
11013 echo "$ac_t""yes" 1>&6
11014 cat >> confdefs.h <<\EOF
11015 #define HAVE_DOPRNT 1
11016 EOF
11017
11018 else
11019 echo "$ac_t""no" 1>&6
11020 fi
11021
11022 fi
11023
11024
11025
11026
11027
11028
11029
11030 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
11031 echo "configure:11032: checking for vsnprintf" >&5
11032 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
11033 echo $ac_n "(cached) $ac_c" 1>&6
11034 else
11035
11036 cat > conftest.$ac_ext <<EOF
11037 #line 11038 "configure"
11038 #include "confdefs.h"
11039
11040 #include <stdio.h>
11041 #include <stdarg.h>
11042
11043 int main() {
11044
11045 int wx_test_vsnprintf(const char *, ...);
11046
11047 wx_test_vsnprintf("%s");
11048 return 0;
11049 }
11050
11051 int wx_test_vsnprintf(const char *fmt, ...)
11052 {
11053 char *s;
11054
11055 va_list argp;
11056 va_start(argp, fmt);
11057 vsnprintf(s, 42, fmt, argp);
11058 va_end(argp);
11059
11060 ; return 0; }
11061 EOF
11062 if { (eval echo configure:11063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11063 rm -rf conftest*
11064
11065 wx_cv_func_vsnprintf=yes
11066
11067 else
11068 echo "configure: failed program was:" >&5
11069 cat conftest.$ac_ext >&5
11070 rm -rf conftest*
11071
11072 cat > conftest.$ac_ext <<EOF
11073 #line 11074 "configure"
11074 #include "confdefs.h"
11075
11076 #include <stdio.h>
11077 #include <stdarg.h>
11078
11079 int main() {
11080
11081 int wx_test_vsnprintf(const char *, ...);
11082
11083 wx_test_vsnprintf("%s");
11084 return 0;
11085 }
11086
11087 int wx_test_vsnprintf(const char *fmt, ...)
11088 {
11089 char *s;
11090
11091 va_list argp;
11092 va_start(argp, fmt);
11093 _vsnprintf(s, 42, fmt, argp);
11094 va_end(argp);
11095
11096 ; return 0; }
11097 EOF
11098 if { (eval echo configure:11099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11099 rm -rf conftest*
11100
11101 wx_cv_func_vsnprintf=yes
11102
11103 else
11104 echo "configure: failed program was:" >&5
11105 cat conftest.$ac_ext >&5
11106 rm -rf conftest*
11107
11108 wx_cv_func_vsnprintf=no
11109
11110 fi
11111 rm -f conftest*
11112
11113 fi
11114 rm -f conftest*
11115
11116 fi
11117
11118 echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
11119
11120 if test "$wx_cv_func_vsnprintf" = yes; then
11121 cat >> confdefs.h <<\EOF
11122 #define HAVE_VSNPRINTF 1
11123 EOF
11124
11125 else
11126 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
11127 fi
11128
11129 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
11130 echo "configure:11131: checking for vsscanf" >&5
11131 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
11132 echo $ac_n "(cached) $ac_c" 1>&6
11133 else
11134
11135 cat > conftest.$ac_ext <<EOF
11136 #line 11137 "configure"
11137 #include "confdefs.h"
11138
11139 #include <stdio.h>
11140 #include <stdarg.h>
11141
11142 int main() {
11143
11144 int wx_test_vsscanf(const char *, ...);
11145
11146 wx_test_vsscanf("%d");
11147 return 0;
11148 }
11149
11150 int wx_test_vsscanf(const char *fmt, ...)
11151 {
11152 va_list argp;
11153 va_start(argp, fmt);
11154 vsscanf("42", fmt, argp);
11155 va_end(argp);
11156
11157 ; return 0; }
11158 EOF
11159 if { (eval echo configure:11160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11160 rm -rf conftest*
11161
11162 wx_cv_func_vsscanf=yes
11163
11164 else
11165 echo "configure: failed program was:" >&5
11166 cat conftest.$ac_ext >&5
11167 rm -rf conftest*
11168
11169 wx_cv_func_vsscanf=no
11170
11171 fi
11172 rm -f conftest*
11173
11174 fi
11175
11176 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
11177
11178 if test "$wx_cv_func_vsscanf" = yes; then
11179 cat >> confdefs.h <<\EOF
11180 #define HAVE_VSSCANF 1
11181 EOF
11182
11183 fi
11184
11185
11186
11187 if test "$TOOLKIT" != "MSW"; then
11188
11189
11190
11191 ac_ext=C
11192 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11193 ac_cpp='$CXXCPP $CPPFLAGS'
11194 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11195 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11196 cross_compiling=$ac_cv_prog_cxx_cross
11197
11198 echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
11199 echo "configure:11200: checking if iconv() takes char**" >&5
11200 if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
11201 echo $ac_n "(cached) $ac_c" 1>&6
11202 else
11203
11204 cat > conftest.$ac_ext <<EOF
11205 #line 11206 "configure"
11206 #include "confdefs.h"
11207 #include <iconv.h>
11208 int main() {
11209
11210 char **inbuf, **outbuf;
11211 iconv_t cd;
11212 size_t insz, outsz;
11213 iconv(cd, inbuf, &insz, outbuf, &outsz);
11214
11215 ; return 0; }
11216 EOF
11217 if { (eval echo configure:11218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11218 rm -rf conftest*
11219 wx_cv_iconv_takes_char=yes
11220 else
11221 echo "configure: failed program was:" >&5
11222 cat conftest.$ac_ext >&5
11223 rm -rf conftest*
11224 wx_cv_iconv_takes_char=no
11225 fi
11226 rm -f conftest*
11227
11228 fi
11229
11230 echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
11231 ac_ext=c
11232 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11233 ac_cpp='$CPP $CPPFLAGS'
11234 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11235 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11236 cross_compiling=$ac_cv_prog_cc_cross
11237
11238 if test "$wx_cv_iconv_takes_char" = yes ; then
11239 cat >> confdefs.h <<\EOF
11240 #define WX_ICONV_TAKES_CHAR 1
11241 EOF
11242
11243 fi
11244
11245
11246 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
11247 for ac_func in sigaction
11248 do
11249 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11250 echo "configure:11251: checking for $ac_func" >&5
11251 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11252 echo $ac_n "(cached) $ac_c" 1>&6
11253 else
11254 cat > conftest.$ac_ext <<EOF
11255 #line 11256 "configure"
11256 #include "confdefs.h"
11257 /* System header to define __stub macros and hopefully few prototypes,
11258 which can conflict with char $ac_func(); below. */
11259 #include <assert.h>
11260 /* Override any gcc2 internal prototype to avoid an error. */
11261 /* We use char because int might match the return type of a gcc2
11262 builtin and then its argument prototype would still apply. */
11263 char $ac_func();
11264
11265 int main() {
11266
11267 /* The GNU C library defines this for functions which it implements
11268 to always fail with ENOSYS. Some functions are actually named
11269 something starting with __ and the normal name is an alias. */
11270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11271 choke me
11272 #else
11273 $ac_func();
11274 #endif
11275
11276 ; return 0; }
11277 EOF
11278 if { (eval echo configure:11279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11279 rm -rf conftest*
11280 eval "ac_cv_func_$ac_func=yes"
11281 else
11282 echo "configure: failed program was:" >&5
11283 cat conftest.$ac_ext >&5
11284 rm -rf conftest*
11285 eval "ac_cv_func_$ac_func=no"
11286 fi
11287 rm -f conftest*
11288 fi
11289
11290 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11291 echo "$ac_t""yes" 1>&6
11292 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11293 cat >> confdefs.h <<EOF
11294 #define $ac_tr_func 1
11295 EOF
11296
11297 else
11298 echo "$ac_t""no" 1>&6
11299 fi
11300 done
11301
11302
11303 if test "$ac_cv_func_sigaction" = "no"; then
11304 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
11305 wxUSE_ON_FATAL_EXCEPTION=no
11306 fi
11307
11308 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
11309
11310 ac_ext=C
11311 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11312 ac_cpp='$CXXCPP $CPPFLAGS'
11313 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11314 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11315 cross_compiling=$ac_cv_prog_cxx_cross
11316
11317
11318 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
11319 echo "configure:11320: checking for sa_handler type" >&5
11320 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
11321 echo $ac_n "(cached) $ac_c" 1>&6
11322 else
11323
11324 cat > conftest.$ac_ext <<EOF
11325 #line 11326 "configure"
11326 #include "confdefs.h"
11327 #include <signal.h>
11328 int main() {
11329
11330 extern void testSigHandler(int);
11331
11332 struct sigaction sa;
11333 sa.sa_handler = testSigHandler;
11334
11335 ; return 0; }
11336 EOF
11337 if { (eval echo configure:11338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11338 rm -rf conftest*
11339
11340 wx_cv_type_sa_handler=int
11341
11342 else
11343 echo "configure: failed program was:" >&5
11344 cat conftest.$ac_ext >&5
11345 rm -rf conftest*
11346
11347 wx_cv_type_sa_handler=void
11348
11349 fi
11350 rm -f conftest*
11351
11352 fi
11353
11354 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
11355
11356 ac_ext=c
11357 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11358 ac_cpp='$CPP $CPPFLAGS'
11359 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11360 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11361 cross_compiling=$ac_cv_prog_cc_cross
11362
11363
11364 cat >> confdefs.h <<EOF
11365 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
11366 EOF
11367
11368 fi
11369 fi
11370
11371 for ac_func in vfork
11372 do
11373 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11374 echo "configure:11375: checking for $ac_func" >&5
11375 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11376 echo $ac_n "(cached) $ac_c" 1>&6
11377 else
11378 cat > conftest.$ac_ext <<EOF
11379 #line 11380 "configure"
11380 #include "confdefs.h"
11381 /* System header to define __stub macros and hopefully few prototypes,
11382 which can conflict with char $ac_func(); below. */
11383 #include <assert.h>
11384 /* Override any gcc2 internal prototype to avoid an error. */
11385 /* We use char because int might match the return type of a gcc2
11386 builtin and then its argument prototype would still apply. */
11387 char $ac_func();
11388
11389 int main() {
11390
11391 /* The GNU C library defines this for functions which it implements
11392 to always fail with ENOSYS. Some functions are actually named
11393 something starting with __ and the normal name is an alias. */
11394 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11395 choke me
11396 #else
11397 $ac_func();
11398 #endif
11399
11400 ; return 0; }
11401 EOF
11402 if { (eval echo configure:11403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11403 rm -rf conftest*
11404 eval "ac_cv_func_$ac_func=yes"
11405 else
11406 echo "configure: failed program was:" >&5
11407 cat conftest.$ac_ext >&5
11408 rm -rf conftest*
11409 eval "ac_cv_func_$ac_func=no"
11410 fi
11411 rm -f conftest*
11412 fi
11413
11414 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11415 echo "$ac_t""yes" 1>&6
11416 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11417 cat >> confdefs.h <<EOF
11418 #define $ac_tr_func 1
11419 EOF
11420
11421 else
11422 echo "$ac_t""no" 1>&6
11423 fi
11424 done
11425
11426
11427 for ac_func in timegm
11428 do
11429 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11430 echo "configure:11431: checking for $ac_func" >&5
11431 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11432 echo $ac_n "(cached) $ac_c" 1>&6
11433 else
11434 cat > conftest.$ac_ext <<EOF
11435 #line 11436 "configure"
11436 #include "confdefs.h"
11437 /* System header to define __stub macros and hopefully few prototypes,
11438 which can conflict with char $ac_func(); below. */
11439 #include <assert.h>
11440 /* Override any gcc2 internal prototype to avoid an error. */
11441 /* We use char because int might match the return type of a gcc2
11442 builtin and then its argument prototype would still apply. */
11443 char $ac_func();
11444
11445 int main() {
11446
11447 /* The GNU C library defines this for functions which it implements
11448 to always fail with ENOSYS. Some functions are actually named
11449 something starting with __ and the normal name is an alias. */
11450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11451 choke me
11452 #else
11453 $ac_func();
11454 #endif
11455
11456 ; return 0; }
11457 EOF
11458 if { (eval echo configure:11459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11459 rm -rf conftest*
11460 eval "ac_cv_func_$ac_func=yes"
11461 else
11462 echo "configure: failed program was:" >&5
11463 cat conftest.$ac_ext >&5
11464 rm -rf conftest*
11465 eval "ac_cv_func_$ac_func=no"
11466 fi
11467 rm -f conftest*
11468 fi
11469
11470 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11471 echo "$ac_t""yes" 1>&6
11472 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11473 cat >> confdefs.h <<EOF
11474 #define $ac_tr_func 1
11475 EOF
11476
11477 else
11478 echo "$ac_t""no" 1>&6
11479 fi
11480 done
11481
11482
11483 for ac_func in putenv setenv
11484 do
11485 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11486 echo "configure:11487: checking for $ac_func" >&5
11487 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11488 echo $ac_n "(cached) $ac_c" 1>&6
11489 else
11490 cat > conftest.$ac_ext <<EOF
11491 #line 11492 "configure"
11492 #include "confdefs.h"
11493 /* System header to define __stub macros and hopefully few prototypes,
11494 which can conflict with char $ac_func(); below. */
11495 #include <assert.h>
11496 /* Override any gcc2 internal prototype to avoid an error. */
11497 /* We use char because int might match the return type of a gcc2
11498 builtin and then its argument prototype would still apply. */
11499 char $ac_func();
11500
11501 int main() {
11502
11503 /* The GNU C library defines this for functions which it implements
11504 to always fail with ENOSYS. Some functions are actually named
11505 something starting with __ and the normal name is an alias. */
11506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11507 choke me
11508 #else
11509 $ac_func();
11510 #endif
11511
11512 ; return 0; }
11513 EOF
11514 if { (eval echo configure:11515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11515 rm -rf conftest*
11516 eval "ac_cv_func_$ac_func=yes"
11517 else
11518 echo "configure: failed program was:" >&5
11519 cat conftest.$ac_ext >&5
11520 rm -rf conftest*
11521 eval "ac_cv_func_$ac_func=no"
11522 fi
11523 rm -f conftest*
11524 fi
11525
11526 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11527 echo "$ac_t""yes" 1>&6
11528 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11529 cat >> confdefs.h <<EOF
11530 #define $ac_tr_func 1
11531 EOF
11532 break
11533 else
11534 echo "$ac_t""no" 1>&6
11535 fi
11536 done
11537
11538
11539 HAVE_SOME_SLEEP_FUNC=0
11540 if test "$USE_BEOS" = 1; then
11541 cat >> confdefs.h <<\EOF
11542 #define HAVE_SLEEP 1
11543 EOF
11544
11545 HAVE_SOME_SLEEP_FUNC=1
11546 fi
11547
11548 if test "$USE_MAC" = 1; then
11549 cat >> confdefs.h <<\EOF
11550 #define HAVE_USLEEP 1
11551 EOF
11552
11553 HAVE_SOME_SLEEP_FUNC=1
11554 fi
11555
11556 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
11557 POSIX4_LINK=
11558 for ac_func in nanosleep
11559 do
11560 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11561 echo "configure:11562: checking for $ac_func" >&5
11562 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11563 echo $ac_n "(cached) $ac_c" 1>&6
11564 else
11565 cat > conftest.$ac_ext <<EOF
11566 #line 11567 "configure"
11567 #include "confdefs.h"
11568 /* System header to define __stub macros and hopefully few prototypes,
11569 which can conflict with char $ac_func(); below. */
11570 #include <assert.h>
11571 /* Override any gcc2 internal prototype to avoid an error. */
11572 /* We use char because int might match the return type of a gcc2
11573 builtin and then its argument prototype would still apply. */
11574 char $ac_func();
11575
11576 int main() {
11577
11578 /* The GNU C library defines this for functions which it implements
11579 to always fail with ENOSYS. Some functions are actually named
11580 something starting with __ and the normal name is an alias. */
11581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11582 choke me
11583 #else
11584 $ac_func();
11585 #endif
11586
11587 ; return 0; }
11588 EOF
11589 if { (eval echo configure:11590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11590 rm -rf conftest*
11591 eval "ac_cv_func_$ac_func=yes"
11592 else
11593 echo "configure: failed program was:" >&5
11594 cat conftest.$ac_ext >&5
11595 rm -rf conftest*
11596 eval "ac_cv_func_$ac_func=no"
11597 fi
11598 rm -f conftest*
11599 fi
11600
11601 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11602 echo "$ac_t""yes" 1>&6
11603 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11604 cat >> confdefs.h <<EOF
11605 #define $ac_tr_func 1
11606 EOF
11607 cat >> confdefs.h <<\EOF
11608 #define HAVE_NANOSLEEP 1
11609 EOF
11610
11611 else
11612 echo "$ac_t""no" 1>&6
11613 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
11614 echo "configure:11615: checking for nanosleep in -lposix4" >&5
11615 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
11616 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11617 echo $ac_n "(cached) $ac_c" 1>&6
11618 else
11619 ac_save_LIBS="$LIBS"
11620 LIBS="-lposix4 $LIBS"
11621 cat > conftest.$ac_ext <<EOF
11622 #line 11623 "configure"
11623 #include "confdefs.h"
11624 /* Override any gcc2 internal prototype to avoid an error. */
11625 /* We use char because int might match the return type of a gcc2
11626 builtin and then its argument prototype would still apply. */
11627 char nanosleep();
11628
11629 int main() {
11630 nanosleep()
11631 ; return 0; }
11632 EOF
11633 if { (eval echo configure:11634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11634 rm -rf conftest*
11635 eval "ac_cv_lib_$ac_lib_var=yes"
11636 else
11637 echo "configure: failed program was:" >&5
11638 cat conftest.$ac_ext >&5
11639 rm -rf conftest*
11640 eval "ac_cv_lib_$ac_lib_var=no"
11641 fi
11642 rm -f conftest*
11643 LIBS="$ac_save_LIBS"
11644
11645 fi
11646 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11647 echo "$ac_t""yes" 1>&6
11648
11649 cat >> confdefs.h <<\EOF
11650 #define HAVE_NANOSLEEP 1
11651 EOF
11652
11653 POSIX4_LINK="-lposix4"
11654
11655 else
11656 echo "$ac_t""no" 1>&6
11657
11658 for ac_func in usleep
11659 do
11660 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11661 echo "configure:11662: checking for $ac_func" >&5
11662 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11663 echo $ac_n "(cached) $ac_c" 1>&6
11664 else
11665 cat > conftest.$ac_ext <<EOF
11666 #line 11667 "configure"
11667 #include "confdefs.h"
11668 /* System header to define __stub macros and hopefully few prototypes,
11669 which can conflict with char $ac_func(); below. */
11670 #include <assert.h>
11671 /* Override any gcc2 internal prototype to avoid an error. */
11672 /* We use char because int might match the return type of a gcc2
11673 builtin and then its argument prototype would still apply. */
11674 char $ac_func();
11675
11676 int main() {
11677
11678 /* The GNU C library defines this for functions which it implements
11679 to always fail with ENOSYS. Some functions are actually named
11680 something starting with __ and the normal name is an alias. */
11681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11682 choke me
11683 #else
11684 $ac_func();
11685 #endif
11686
11687 ; return 0; }
11688 EOF
11689 if { (eval echo configure:11690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11690 rm -rf conftest*
11691 eval "ac_cv_func_$ac_func=yes"
11692 else
11693 echo "configure: failed program was:" >&5
11694 cat conftest.$ac_ext >&5
11695 rm -rf conftest*
11696 eval "ac_cv_func_$ac_func=no"
11697 fi
11698 rm -f conftest*
11699 fi
11700
11701 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11702 echo "$ac_t""yes" 1>&6
11703 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11704 cat >> confdefs.h <<EOF
11705 #define $ac_tr_func 1
11706 EOF
11707 cat >> confdefs.h <<\EOF
11708 #define HAVE_USLEEP 1
11709 EOF
11710
11711 else
11712 echo "$ac_t""no" 1>&6
11713 fi
11714 done
11715
11716 echo "configure: warning: wxSleep() function will not work" 1>&2
11717
11718
11719 fi
11720
11721
11722
11723 fi
11724 done
11725
11726 fi
11727
11728 for ac_func in uname gethostname
11729 do
11730 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11731 echo "configure:11732: checking for $ac_func" >&5
11732 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11733 echo $ac_n "(cached) $ac_c" 1>&6
11734 else
11735 cat > conftest.$ac_ext <<EOF
11736 #line 11737 "configure"
11737 #include "confdefs.h"
11738 /* System header to define __stub macros and hopefully few prototypes,
11739 which can conflict with char $ac_func(); below. */
11740 #include <assert.h>
11741 /* Override any gcc2 internal prototype to avoid an error. */
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 break
11778 else
11779 echo "$ac_t""no" 1>&6
11780 fi
11781 done
11782
11783
11784
11785 ac_ext=C
11786 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11787 ac_cpp='$CXXCPP $CPPFLAGS'
11788 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11789 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11790 cross_compiling=$ac_cv_prog_cxx_cross
11791
11792
11793 for ac_func in strtok_r
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 #ifdef __cplusplus
11808 extern "C"
11809 #endif
11810 /* We use char because int might match the return type of a gcc2
11811 builtin and then its argument prototype would still apply. */
11812 char $ac_func();
11813
11814 int main() {
11815
11816 /* The GNU C library defines this for functions which it implements
11817 to always fail with ENOSYS. Some functions are actually named
11818 something starting with __ and the normal name is an alias. */
11819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11820 choke me
11821 #else
11822 $ac_func();
11823 #endif
11824
11825 ; return 0; }
11826 EOF
11827 if { (eval echo configure:11828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11828 rm -rf conftest*
11829 eval "ac_cv_func_$ac_func=yes"
11830 else
11831 echo "configure: failed program was:" >&5
11832 cat conftest.$ac_ext >&5
11833 rm -rf conftest*
11834 eval "ac_cv_func_$ac_func=no"
11835 fi
11836 rm -f conftest*
11837 fi
11838
11839 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11840 echo "$ac_t""yes" 1>&6
11841 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11842 cat >> confdefs.h <<EOF
11843 #define $ac_tr_func 1
11844 EOF
11845
11846 else
11847 echo "$ac_t""no" 1>&6
11848 fi
11849 done
11850
11851
11852 ac_ext=c
11853 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11854 ac_cpp='$CPP $CPPFLAGS'
11855 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11856 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11857 cross_compiling=$ac_cv_prog_cc_cross
11858
11859
11860 INET_LINK=
11861 for ac_func in inet_addr
11862 do
11863 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11864 echo "configure:11865: checking for $ac_func" >&5
11865 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11866 echo $ac_n "(cached) $ac_c" 1>&6
11867 else
11868 cat > conftest.$ac_ext <<EOF
11869 #line 11870 "configure"
11870 #include "confdefs.h"
11871 /* System header to define __stub macros and hopefully few prototypes,
11872 which can conflict with char $ac_func(); below. */
11873 #include <assert.h>
11874 /* Override any gcc2 internal prototype to avoid an error. */
11875 /* We use char because int might match the return type of a gcc2
11876 builtin and then its argument prototype would still apply. */
11877 char $ac_func();
11878
11879 int main() {
11880
11881 /* The GNU C library defines this for functions which it implements
11882 to always fail with ENOSYS. Some functions are actually named
11883 something starting with __ and the normal name is an alias. */
11884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11885 choke me
11886 #else
11887 $ac_func();
11888 #endif
11889
11890 ; return 0; }
11891 EOF
11892 if { (eval echo configure:11893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11893 rm -rf conftest*
11894 eval "ac_cv_func_$ac_func=yes"
11895 else
11896 echo "configure: failed program was:" >&5
11897 cat conftest.$ac_ext >&5
11898 rm -rf conftest*
11899 eval "ac_cv_func_$ac_func=no"
11900 fi
11901 rm -f conftest*
11902 fi
11903
11904 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11905 echo "$ac_t""yes" 1>&6
11906 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11907 cat >> confdefs.h <<EOF
11908 #define $ac_tr_func 1
11909 EOF
11910 cat >> confdefs.h <<\EOF
11911 #define HAVE_INET_ADDR 1
11912 EOF
11913
11914 else
11915 echo "$ac_t""no" 1>&6
11916 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
11917 echo "configure:11918: checking for inet_addr in -lnsl" >&5
11918 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
11919 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11920 echo $ac_n "(cached) $ac_c" 1>&6
11921 else
11922 ac_save_LIBS="$LIBS"
11923 LIBS="-lnsl $LIBS"
11924 cat > conftest.$ac_ext <<EOF
11925 #line 11926 "configure"
11926 #include "confdefs.h"
11927 /* Override any gcc2 internal prototype to avoid an error. */
11928 /* We use char because int might match the return type of a gcc2
11929 builtin and then its argument prototype would still apply. */
11930 char inet_addr();
11931
11932 int main() {
11933 inet_addr()
11934 ; return 0; }
11935 EOF
11936 if { (eval echo configure:11937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11937 rm -rf conftest*
11938 eval "ac_cv_lib_$ac_lib_var=yes"
11939 else
11940 echo "configure: failed program was:" >&5
11941 cat conftest.$ac_ext >&5
11942 rm -rf conftest*
11943 eval "ac_cv_lib_$ac_lib_var=no"
11944 fi
11945 rm -f conftest*
11946 LIBS="$ac_save_LIBS"
11947
11948 fi
11949 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11950 echo "$ac_t""yes" 1>&6
11951 INET_LINK="nsl"
11952 else
11953 echo "$ac_t""no" 1>&6
11954 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
11955 echo "configure:11956: checking for inet_addr in -lresolv" >&5
11956 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
11957 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11958 echo $ac_n "(cached) $ac_c" 1>&6
11959 else
11960 ac_save_LIBS="$LIBS"
11961 LIBS="-lresolv $LIBS"
11962 cat > conftest.$ac_ext <<EOF
11963 #line 11964 "configure"
11964 #include "confdefs.h"
11965 /* Override any gcc2 internal prototype to avoid an error. */
11966 /* We use char because int might match the return type of a gcc2
11967 builtin and then its argument prototype would still apply. */
11968 char inet_addr();
11969
11970 int main() {
11971 inet_addr()
11972 ; return 0; }
11973 EOF
11974 if { (eval echo configure:11975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11975 rm -rf conftest*
11976 eval "ac_cv_lib_$ac_lib_var=yes"
11977 else
11978 echo "configure: failed program was:" >&5
11979 cat conftest.$ac_ext >&5
11980 rm -rf conftest*
11981 eval "ac_cv_lib_$ac_lib_var=no"
11982 fi
11983 rm -f conftest*
11984 LIBS="$ac_save_LIBS"
11985
11986 fi
11987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11988 echo "$ac_t""yes" 1>&6
11989 INET_LINK="resolv"
11990
11991 else
11992 echo "$ac_t""no" 1>&6
11993 fi
11994
11995
11996 fi
11997
11998
11999
12000 fi
12001 done
12002
12003
12004 for ac_func in inet_aton
12005 do
12006 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12007 echo "configure:12008: checking for $ac_func" >&5
12008 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12009 echo $ac_n "(cached) $ac_c" 1>&6
12010 else
12011 cat > conftest.$ac_ext <<EOF
12012 #line 12013 "configure"
12013 #include "confdefs.h"
12014 /* System header to define __stub macros and hopefully few prototypes,
12015 which can conflict with char $ac_func(); below. */
12016 #include <assert.h>
12017 /* Override any gcc2 internal prototype to avoid an error. */
12018 /* We use char because int might match the return type of a gcc2
12019 builtin and then its argument prototype would still apply. */
12020 char $ac_func();
12021
12022 int main() {
12023
12024 /* The GNU C library defines this for functions which it implements
12025 to always fail with ENOSYS. Some functions are actually named
12026 something starting with __ and the normal name is an alias. */
12027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12028 choke me
12029 #else
12030 $ac_func();
12031 #endif
12032
12033 ; return 0; }
12034 EOF
12035 if { (eval echo configure:12036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12036 rm -rf conftest*
12037 eval "ac_cv_func_$ac_func=yes"
12038 else
12039 echo "configure: failed program was:" >&5
12040 cat conftest.$ac_ext >&5
12041 rm -rf conftest*
12042 eval "ac_cv_func_$ac_func=no"
12043 fi
12044 rm -f conftest*
12045 fi
12046
12047 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12048 echo "$ac_t""yes" 1>&6
12049 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12050 cat >> confdefs.h <<EOF
12051 #define $ac_tr_func 1
12052 EOF
12053 cat >> confdefs.h <<\EOF
12054 #define HAVE_INET_ATON 1
12055 EOF
12056
12057 else
12058 echo "$ac_t""no" 1>&6
12059 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
12060 echo "configure:12061: checking for inet_aton in -l$INET_LINK" >&5
12061 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
12062 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12063 echo $ac_n "(cached) $ac_c" 1>&6
12064 else
12065 ac_save_LIBS="$LIBS"
12066 LIBS="-l$INET_LINK $LIBS"
12067 cat > conftest.$ac_ext <<EOF
12068 #line 12069 "configure"
12069 #include "confdefs.h"
12070 /* Override any gcc2 internal prototype to avoid an error. */
12071 /* We use char because int might match the return type of a gcc2
12072 builtin and then its argument prototype would still apply. */
12073 char inet_aton();
12074
12075 int main() {
12076 inet_aton()
12077 ; return 0; }
12078 EOF
12079 if { (eval echo configure:12080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12080 rm -rf conftest*
12081 eval "ac_cv_lib_$ac_lib_var=yes"
12082 else
12083 echo "configure: failed program was:" >&5
12084 cat conftest.$ac_ext >&5
12085 rm -rf conftest*
12086 eval "ac_cv_lib_$ac_lib_var=no"
12087 fi
12088 rm -f conftest*
12089 LIBS="$ac_save_LIBS"
12090
12091 fi
12092 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12093 echo "$ac_t""yes" 1>&6
12094 cat >> confdefs.h <<\EOF
12095 #define HAVE_INET_ATON 1
12096 EOF
12097
12098 else
12099 echo "$ac_t""no" 1>&6
12100 fi
12101
12102
12103 fi
12104 done
12105
12106
12107 if test "x$INET_LINK" != "x"; then
12108 cat >> confdefs.h <<\EOF
12109 #define HAVE_INET_ADDR 1
12110 EOF
12111
12112 INET_LINK="-l$INET_LINK"
12113 fi
12114
12115 fi
12116
12117
12118 cat > confcache <<\EOF
12119 # This file is a shell script that caches the results of configure
12120 # tests run on this system so they can be shared between configure
12121 # scripts and configure runs. It is not useful on other systems.
12122 # If it contains results you don't want to keep, you may remove or edit it.
12123 #
12124 # By default, configure uses ./config.cache as the cache file,
12125 # creating it if it does not exist already. You can give configure
12126 # the --cache-file=FILE option to use a different cache file; that is
12127 # what configure does when it calls configure scripts in
12128 # subdirectories, so they share the cache.
12129 # Giving --cache-file=/dev/null disables caching, for debugging configure.
12130 # config.status only pays attention to the cache file if you give it the
12131 # --recheck option to rerun configure.
12132 #
12133 EOF
12134 # The following way of writing the cache mishandles newlines in values,
12135 # but we know of no workaround that is simple, portable, and efficient.
12136 # So, don't put newlines in cache variables' values.
12137 # Ultrix sh set writes to stderr and can't be redirected directly,
12138 # and sets the high bit in the cache file unless we assign to the vars.
12139 (set) 2>&1 |
12140 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12141 *ac_space=\ *)
12142 # `set' does not quote correctly, so add quotes (double-quote substitution
12143 # turns \\\\ into \\, and sed turns \\ into \).
12144 sed -n \
12145 -e "s/'/'\\\\''/g" \
12146 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12147 ;;
12148 *)
12149 # `set' quotes correctly as required by POSIX, so do not add quotes.
12150 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12151 ;;
12152 esac >> confcache
12153 if cmp -s $cache_file confcache; then
12154 :
12155 else
12156 if test -w $cache_file; then
12157 echo "updating cache $cache_file"
12158 cat confcache > $cache_file
12159 else
12160 echo "not updating unwritable cache $cache_file"
12161 fi
12162 fi
12163 rm -f confcache
12164
12165
12166
12167 if test "$TOOLKIT" != "MSW"; then
12168
12169
12170 THREADS_LINK=""
12171 THREADS_OBJ=""
12172
12173 if test "$wxUSE_THREADS" = "yes" ; then
12174 if test "$wxUSE_WINE" = 1 ; then
12175 echo "configure: warning: Threads are not supported under WINE" 1>&2
12176 wxUSE_THREADS="no"
12177 elif test "$USE_BEOS" = 1; then
12178 echo "configure: warning: BeOS threads are not yet supported" 1>&2
12179 wxUSE_THREADS="no"
12180 fi
12181 fi
12182
12183 if test "$wxUSE_THREADS" = "yes" ; then
12184
12185 if test "$USE_AIX" = 1; then
12186 THREADS_LIB=pthreads
12187 elif test "$USE_MAC" = 1; then
12188 THREADS_LIB=cc_dynamic
12189 else
12190 THREADS_LIB=pthread
12191 fi
12192
12193 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
12194 echo "configure:12195: checking for pthread_create in -l$THREADS_LIB" >&5
12195 ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
12196 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12197 echo $ac_n "(cached) $ac_c" 1>&6
12198 else
12199 ac_save_LIBS="$LIBS"
12200 LIBS="-l$THREADS_LIB $LIBS"
12201 cat > conftest.$ac_ext <<EOF
12202 #line 12203 "configure"
12203 #include "confdefs.h"
12204 /* Override any gcc2 internal prototype to avoid an error. */
12205 /* We use char because int might match the return type of a gcc2
12206 builtin and then its argument prototype would still apply. */
12207 char pthread_create();
12208
12209 int main() {
12210 pthread_create()
12211 ; return 0; }
12212 EOF
12213 if { (eval echo configure:12214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12214 rm -rf conftest*
12215 eval "ac_cv_lib_$ac_lib_var=yes"
12216 else
12217 echo "configure: failed program was:" >&5
12218 cat conftest.$ac_ext >&5
12219 rm -rf conftest*
12220 eval "ac_cv_lib_$ac_lib_var=no"
12221 fi
12222 rm -f conftest*
12223 LIBS="$ac_save_LIBS"
12224
12225 fi
12226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12227 echo "$ac_t""yes" 1>&6
12228
12229 THREADS_OBJ="threadpsx.lo"
12230 THREADS_LINK=$THREADS_LIB
12231
12232 else
12233 echo "$ac_t""no" 1>&6
12234
12235 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
12236 echo "configure:12237: checking for pthread_create in -lc_r" >&5
12237 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
12238 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12239 echo $ac_n "(cached) $ac_c" 1>&6
12240 else
12241 ac_save_LIBS="$LIBS"
12242 LIBS="-lc_r $LIBS"
12243 cat > conftest.$ac_ext <<EOF
12244 #line 12245 "configure"
12245 #include "confdefs.h"
12246 /* Override any gcc2 internal prototype to avoid an error. */
12247 /* We use char because int might match the return type of a gcc2
12248 builtin and then its argument prototype would still apply. */
12249 char pthread_create();
12250
12251 int main() {
12252 pthread_create()
12253 ; return 0; }
12254 EOF
12255 if { (eval echo configure:12256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12256 rm -rf conftest*
12257 eval "ac_cv_lib_$ac_lib_var=yes"
12258 else
12259 echo "configure: failed program was:" >&5
12260 cat conftest.$ac_ext >&5
12261 rm -rf conftest*
12262 eval "ac_cv_lib_$ac_lib_var=no"
12263 fi
12264 rm -f conftest*
12265 LIBS="$ac_save_LIBS"
12266
12267 fi
12268 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12269 echo "$ac_t""yes" 1>&6
12270
12271 THREADS_OBJ="threadpsx.lo"
12272 THREADS_LINK="c_r"
12273
12274 else
12275 echo "$ac_t""no" 1>&6
12276
12277 echo $ac_n "checking for pthread_create in -lcc_dynamic""... $ac_c" 1>&6
12278 echo "configure:12279: checking for pthread_create in -lcc_dynamic" >&5
12279 ac_lib_var=`echo cc_dynamic'_'pthread_create | sed 'y%./+-%__p_%'`
12280 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12281 echo $ac_n "(cached) $ac_c" 1>&6
12282 else
12283 ac_save_LIBS="$LIBS"
12284 LIBS="-lcc_dynamic $LIBS"
12285 cat > conftest.$ac_ext <<EOF
12286 #line 12287 "configure"
12287 #include "confdefs.h"
12288 /* Override any gcc2 internal prototype to avoid an error. */
12289 /* We use char because int might match the return type of a gcc2
12290 builtin and then its argument prototype would still apply. */
12291 char pthread_create();
12292
12293 int main() {
12294 pthread_create()
12295 ; return 0; }
12296 EOF
12297 if { (eval echo configure:12298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12298 rm -rf conftest*
12299 eval "ac_cv_lib_$ac_lib_var=yes"
12300 else
12301 echo "configure: failed program was:" >&5
12302 cat conftest.$ac_ext >&5
12303 rm -rf conftest*
12304 eval "ac_cv_lib_$ac_lib_var=no"
12305 fi
12306 rm -f conftest*
12307 LIBS="$ac_save_LIBS"
12308
12309 fi
12310 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12311 echo "$ac_t""yes" 1>&6
12312
12313 THREADS_OBJ="threadpsx.lo"
12314 THREADS_LINK="cc_dynamic"
12315
12316 else
12317 echo "$ac_t""no" 1>&6
12318
12319 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
12320 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
12321 echo "configure:12322: checking for sys/prctl.h" >&5
12322 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12323 echo $ac_n "(cached) $ac_c" 1>&6
12324 else
12325 cat > conftest.$ac_ext <<EOF
12326 #line 12327 "configure"
12327 #include "confdefs.h"
12328 #include <sys/prctl.h>
12329 EOF
12330 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12331 { (eval echo configure:12332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12332 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12333 if test -z "$ac_err"; then
12334 rm -rf conftest*
12335 eval "ac_cv_header_$ac_safe=yes"
12336 else
12337 echo "$ac_err" >&5
12338 echo "configure: failed program was:" >&5
12339 cat conftest.$ac_ext >&5
12340 rm -rf conftest*
12341 eval "ac_cv_header_$ac_safe=no"
12342 fi
12343 rm -f conftest*
12344 fi
12345 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12346 echo "$ac_t""yes" 1>&6
12347
12348 THREADS_OBJ="threadsgi.lo"
12349
12350 else
12351 echo "$ac_t""no" 1>&6
12352 fi
12353
12354
12355 fi
12356
12357
12358 fi
12359
12360
12361 fi
12362
12363
12364 if test -z "$THREADS_OBJ" ; then
12365 wxUSE_THREADS=no
12366 echo "configure: warning: No thread support on this system" 1>&2
12367 fi
12368 fi
12369
12370 if test "$wxUSE_THREADS" = "yes" ; then
12371 for ac_func in thr_setconcurrency
12372 do
12373 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12374 echo "configure:12375: checking for $ac_func" >&5
12375 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12376 echo $ac_n "(cached) $ac_c" 1>&6
12377 else
12378 cat > conftest.$ac_ext <<EOF
12379 #line 12380 "configure"
12380 #include "confdefs.h"
12381 /* System header to define __stub macros and hopefully few prototypes,
12382 which can conflict with char $ac_func(); below. */
12383 #include <assert.h>
12384 /* Override any gcc2 internal prototype to avoid an error. */
12385 /* We use char because int might match the return type of a gcc2
12386 builtin and then its argument prototype would still apply. */
12387 char $ac_func();
12388
12389 int main() {
12390
12391 /* The GNU C library defines this for functions which it implements
12392 to always fail with ENOSYS. Some functions are actually named
12393 something starting with __ and the normal name is an alias. */
12394 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12395 choke me
12396 #else
12397 $ac_func();
12398 #endif
12399
12400 ; return 0; }
12401 EOF
12402 if { (eval echo configure:12403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12403 rm -rf conftest*
12404 eval "ac_cv_func_$ac_func=yes"
12405 else
12406 echo "configure: failed program was:" >&5
12407 cat conftest.$ac_ext >&5
12408 rm -rf conftest*
12409 eval "ac_cv_func_$ac_func=no"
12410 fi
12411 rm -f conftest*
12412 fi
12413
12414 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12415 echo "$ac_t""yes" 1>&6
12416 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12417 cat >> confdefs.h <<EOF
12418 #define $ac_tr_func 1
12419 EOF
12420
12421 else
12422 echo "$ac_t""no" 1>&6
12423 fi
12424 done
12425
12426
12427
12428 for ac_hdr in sched.h
12429 do
12430 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12431 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12432 echo "configure:12433: checking for $ac_hdr" >&5
12433 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12434 echo $ac_n "(cached) $ac_c" 1>&6
12435 else
12436 cat > conftest.$ac_ext <<EOF
12437 #line 12438 "configure"
12438 #include "confdefs.h"
12439 #include <$ac_hdr>
12440 EOF
12441 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12442 { (eval echo configure:12443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12443 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12444 if test -z "$ac_err"; then
12445 rm -rf conftest*
12446 eval "ac_cv_header_$ac_safe=yes"
12447 else
12448 echo "$ac_err" >&5
12449 echo "configure: failed program was:" >&5
12450 cat conftest.$ac_ext >&5
12451 rm -rf conftest*
12452 eval "ac_cv_header_$ac_safe=no"
12453 fi
12454 rm -f conftest*
12455 fi
12456 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12457 echo "$ac_t""yes" 1>&6
12458 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12459 cat >> confdefs.h <<EOF
12460 #define $ac_tr_hdr 1
12461 EOF
12462
12463 else
12464 echo "$ac_t""no" 1>&6
12465 fi
12466 done
12467
12468
12469 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
12470 echo "configure:12471: checking for sched_yield in -l$THREADS_LINK" >&5
12471 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
12472 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12473 echo $ac_n "(cached) $ac_c" 1>&6
12474 else
12475 ac_save_LIBS="$LIBS"
12476 LIBS="-l$THREADS_LINK $LIBS"
12477 cat > conftest.$ac_ext <<EOF
12478 #line 12479 "configure"
12479 #include "confdefs.h"
12480 /* Override any gcc2 internal prototype to avoid an error. */
12481 /* We use char because int might match the return type of a gcc2
12482 builtin and then its argument prototype would still apply. */
12483 char sched_yield();
12484
12485 int main() {
12486 sched_yield()
12487 ; return 0; }
12488 EOF
12489 if { (eval echo configure:12490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12490 rm -rf conftest*
12491 eval "ac_cv_lib_$ac_lib_var=yes"
12492 else
12493 echo "configure: failed program was:" >&5
12494 cat conftest.$ac_ext >&5
12495 rm -rf conftest*
12496 eval "ac_cv_lib_$ac_lib_var=no"
12497 fi
12498 rm -f conftest*
12499 LIBS="$ac_save_LIBS"
12500
12501 fi
12502 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12503 echo "$ac_t""yes" 1>&6
12504 cat >> confdefs.h <<\EOF
12505 #define HAVE_SCHED_YIELD 1
12506 EOF
12507
12508 else
12509 echo "$ac_t""no" 1>&6
12510 echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
12511 echo "configure:12512: checking for sched_yield in -l"posix4"" >&5
12512 ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
12513 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12514 echo $ac_n "(cached) $ac_c" 1>&6
12515 else
12516 ac_save_LIBS="$LIBS"
12517 LIBS="-l"posix4" $LIBS"
12518 cat > conftest.$ac_ext <<EOF
12519 #line 12520 "configure"
12520 #include "confdefs.h"
12521 /* Override any gcc2 internal prototype to avoid an error. */
12522 /* We use char because int might match the return type of a gcc2
12523 builtin and then its argument prototype would still apply. */
12524 char sched_yield();
12525
12526 int main() {
12527 sched_yield()
12528 ; return 0; }
12529 EOF
12530 if { (eval echo configure:12531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12531 rm -rf conftest*
12532 eval "ac_cv_lib_$ac_lib_var=yes"
12533 else
12534 echo "configure: failed program was:" >&5
12535 cat conftest.$ac_ext >&5
12536 rm -rf conftest*
12537 eval "ac_cv_lib_$ac_lib_var=no"
12538 fi
12539 rm -f conftest*
12540 LIBS="$ac_save_LIBS"
12541
12542 fi
12543 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12544 echo "$ac_t""yes" 1>&6
12545 cat >> confdefs.h <<\EOF
12546 #define HAVE_SCHED_YIELD 1
12547 EOF
12548 POSIX4_LINK="-lposix4"
12549 else
12550 echo "$ac_t""no" 1>&6
12551 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
12552
12553 fi
12554
12555
12556 fi
12557
12558
12559 HAVE_PRIOR_FUNCS=0
12560 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
12561 echo "configure:12562: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
12562 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
12563 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12564 echo $ac_n "(cached) $ac_c" 1>&6
12565 else
12566 ac_save_LIBS="$LIBS"
12567 LIBS="-l$THREADS_LINK $LIBS"
12568 cat > conftest.$ac_ext <<EOF
12569 #line 12570 "configure"
12570 #include "confdefs.h"
12571 /* Override any gcc2 internal prototype to avoid an error. */
12572 /* We use char because int might match the return type of a gcc2
12573 builtin and then its argument prototype would still apply. */
12574 char pthread_attr_getschedpolicy();
12575
12576 int main() {
12577 pthread_attr_getschedpolicy()
12578 ; return 0; }
12579 EOF
12580 if { (eval echo configure:12581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12581 rm -rf conftest*
12582 eval "ac_cv_lib_$ac_lib_var=yes"
12583 else
12584 echo "configure: failed program was:" >&5
12585 cat conftest.$ac_ext >&5
12586 rm -rf conftest*
12587 eval "ac_cv_lib_$ac_lib_var=no"
12588 fi
12589 rm -f conftest*
12590 LIBS="$ac_save_LIBS"
12591
12592 fi
12593 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12594 echo "$ac_t""yes" 1>&6
12595 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
12596 echo "configure:12597: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
12597 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
12598 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12599 echo $ac_n "(cached) $ac_c" 1>&6
12600 else
12601 ac_save_LIBS="$LIBS"
12602 LIBS="-l$THREADS_LINK $LIBS"
12603 cat > conftest.$ac_ext <<EOF
12604 #line 12605 "configure"
12605 #include "confdefs.h"
12606 /* Override any gcc2 internal prototype to avoid an error. */
12607 /* We use char because int might match the return type of a gcc2
12608 builtin and then its argument prototype would still apply. */
12609 char pthread_attr_setschedparam();
12610
12611 int main() {
12612 pthread_attr_setschedparam()
12613 ; return 0; }
12614 EOF
12615 if { (eval echo configure:12616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12616 rm -rf conftest*
12617 eval "ac_cv_lib_$ac_lib_var=yes"
12618 else
12619 echo "configure: failed program was:" >&5
12620 cat conftest.$ac_ext >&5
12621 rm -rf conftest*
12622 eval "ac_cv_lib_$ac_lib_var=no"
12623 fi
12624 rm -f conftest*
12625 LIBS="$ac_save_LIBS"
12626
12627 fi
12628 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12629 echo "$ac_t""yes" 1>&6
12630 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
12631 echo "configure:12632: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
12632 ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
12633 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12634 echo $ac_n "(cached) $ac_c" 1>&6
12635 else
12636 ac_save_LIBS="$LIBS"
12637 LIBS="-l$THREADS_LINK $LIBS"
12638 cat > conftest.$ac_ext <<EOF
12639 #line 12640 "configure"
12640 #include "confdefs.h"
12641 /* Override any gcc2 internal prototype to avoid an error. */
12642 /* We use char because int might match the return type of a gcc2
12643 builtin and then its argument prototype would still apply. */
12644 char sched_get_priority_max();
12645
12646 int main() {
12647 sched_get_priority_max()
12648 ; return 0; }
12649 EOF
12650 if { (eval echo configure:12651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12651 rm -rf conftest*
12652 eval "ac_cv_lib_$ac_lib_var=yes"
12653 else
12654 echo "configure: failed program was:" >&5
12655 cat conftest.$ac_ext >&5
12656 rm -rf conftest*
12657 eval "ac_cv_lib_$ac_lib_var=no"
12658 fi
12659 rm -f conftest*
12660 LIBS="$ac_save_LIBS"
12661
12662 fi
12663 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12664 echo "$ac_t""yes" 1>&6
12665 HAVE_PRIOR_FUNCS=1
12666 else
12667 echo "$ac_t""no" 1>&6
12668 echo $ac_n "checking for sched_get_priority_max in -l"posix4"""... $ac_c" 1>&6
12669 echo "configure:12670: checking for sched_get_priority_max in -l"posix4"" >&5
12670 ac_lib_var=`echo "posix4"'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
12671 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12672 echo $ac_n "(cached) $ac_c" 1>&6
12673 else
12674 ac_save_LIBS="$LIBS"
12675 LIBS="-l"posix4" $LIBS"
12676 cat > conftest.$ac_ext <<EOF
12677 #line 12678 "configure"
12678 #include "confdefs.h"
12679 /* Override any gcc2 internal prototype to avoid an error. */
12680 /* We use char because int might match the return type of a gcc2
12681 builtin and then its argument prototype would still apply. */
12682 char sched_get_priority_max();
12683
12684 int main() {
12685 sched_get_priority_max()
12686 ; return 0; }
12687 EOF
12688 if { (eval echo configure:12689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12689 rm -rf conftest*
12690 eval "ac_cv_lib_$ac_lib_var=yes"
12691 else
12692 echo "configure: failed program was:" >&5
12693 cat conftest.$ac_ext >&5
12694 rm -rf conftest*
12695 eval "ac_cv_lib_$ac_lib_var=no"
12696 fi
12697 rm -f conftest*
12698 LIBS="$ac_save_LIBS"
12699
12700 fi
12701 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12702 echo "$ac_t""yes" 1>&6
12703
12704 HAVE_PRIOR_FUNCS=1
12705 POSIX4_LINK="-lposix4"
12706
12707 else
12708 echo "$ac_t""no" 1>&6
12709 fi
12710
12711
12712 fi
12713
12714
12715 else
12716 echo "$ac_t""no" 1>&6
12717 fi
12718
12719
12720 else
12721 echo "$ac_t""no" 1>&6
12722 fi
12723
12724
12725 if test "$HAVE_PRIOR_FUNCS" = 1; then
12726 cat >> confdefs.h <<\EOF
12727 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
12728 EOF
12729
12730 else
12731 echo "configure: warning: Setting thread priority will not work" 1>&2
12732 fi
12733
12734 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
12735 echo "configure:12736: checking for pthread_cancel in -l$THREADS_LINK" >&5
12736 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
12737 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12738 echo $ac_n "(cached) $ac_c" 1>&6
12739 else
12740 ac_save_LIBS="$LIBS"
12741 LIBS="-l$THREADS_LINK $LIBS"
12742 cat > conftest.$ac_ext <<EOF
12743 #line 12744 "configure"
12744 #include "confdefs.h"
12745 /* Override any gcc2 internal prototype to avoid an error. */
12746 /* We use char because int might match the return type of a gcc2
12747 builtin and then its argument prototype would still apply. */
12748 char pthread_cancel();
12749
12750 int main() {
12751 pthread_cancel()
12752 ; return 0; }
12753 EOF
12754 if { (eval echo configure:12755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12755 rm -rf conftest*
12756 eval "ac_cv_lib_$ac_lib_var=yes"
12757 else
12758 echo "configure: failed program was:" >&5
12759 cat conftest.$ac_ext >&5
12760 rm -rf conftest*
12761 eval "ac_cv_lib_$ac_lib_var=no"
12762 fi
12763 rm -f conftest*
12764 LIBS="$ac_save_LIBS"
12765
12766 fi
12767 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12768 echo "$ac_t""yes" 1>&6
12769 cat >> confdefs.h <<\EOF
12770 #define HAVE_PTHREAD_CANCEL 1
12771 EOF
12772
12773 else
12774 echo "$ac_t""no" 1>&6
12775 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
12776 fi
12777
12778
12779 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
12780 echo "configure:12781: checking for pthread_cleanup_push/pop" >&5
12781 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
12782 echo $ac_n "(cached) $ac_c" 1>&6
12783 else
12784
12785 cat > conftest.$ac_ext <<EOF
12786 #line 12787 "configure"
12787 #include "confdefs.h"
12788 #include <pthread.h>
12789 int main() {
12790
12791 pthread_cleanup_push(NULL, NULL);
12792 pthread_cleanup_pop(0);
12793
12794 ; return 0; }
12795 EOF
12796 if { (eval echo configure:12797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12797 rm -rf conftest*
12798
12799 wx_cv_func_pthread_cleanup_push=yes
12800
12801 else
12802 echo "configure: failed program was:" >&5
12803 cat conftest.$ac_ext >&5
12804 rm -rf conftest*
12805
12806 wx_cv_func_pthread_cleanup_push=no
12807
12808 fi
12809 rm -f conftest*
12810
12811 fi
12812
12813 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
12814
12815 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
12816 cat >> confdefs.h <<\EOF
12817 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
12818 EOF
12819
12820 fi
12821
12822
12823 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
12824 echo "configure:12825: checking for pthread_mutexattr_t" >&5
12825 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
12826 echo $ac_n "(cached) $ac_c" 1>&6
12827 else
12828
12829 cat > conftest.$ac_ext <<EOF
12830 #line 12831 "configure"
12831 #include "confdefs.h"
12832 #include <pthread.h>
12833 int main() {
12834
12835 pthread_mutexattr_t attr;
12836 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
12837
12838 ; return 0; }
12839 EOF
12840 if { (eval echo configure:12841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12841 rm -rf conftest*
12842
12843 wx_cv_type_pthread_mutexattr_t=yes
12844
12845 else
12846 echo "configure: failed program was:" >&5
12847 cat conftest.$ac_ext >&5
12848 rm -rf conftest*
12849
12850 wx_cv_type_pthread_mutexattr_t=no
12851
12852
12853 fi
12854 rm -f conftest*
12855
12856 fi
12857
12858 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
12859
12860 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
12861 cat >> confdefs.h <<\EOF
12862 #define HAVE_PTHREAD_MUTEXATTR_T 1
12863 EOF
12864
12865 else
12866 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
12867 echo "configure:12868: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
12868 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
12869 echo $ac_n "(cached) $ac_c" 1>&6
12870 else
12871
12872 cat > conftest.$ac_ext <<EOF
12873 #line 12874 "configure"
12874 #include "confdefs.h"
12875 #include <pthread.h>
12876 int main() {
12877
12878 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
12879
12880 ; return 0; }
12881 EOF
12882 if { (eval echo configure:12883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12883 rm -rf conftest*
12884
12885 wx_cv_type_pthread_rec_mutex_init=yes
12886
12887 else
12888 echo "configure: failed program was:" >&5
12889 cat conftest.$ac_ext >&5
12890 rm -rf conftest*
12891
12892 wx_cv_type_pthread_rec_mutex_init=no
12893
12894
12895 fi
12896 rm -f conftest*
12897
12898 fi
12899
12900 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
12901 if test "$wx_cv_type_pthread_rec_mutex_init"="yes"; then
12902 cat >> confdefs.h <<\EOF
12903 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
12904 EOF
12905
12906 else
12907 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
12908 fi
12909 fi
12910
12911 THREADS_LINK="-l$THREADS_LINK"
12912
12913 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
12914 CFLAGS="${CFLAGS} -mt"
12915 CXXFLAGS="${CXXFLAGS} -mt"
12916 LDFLAGS="${LDFLAGS} -mt"
12917 fi
12918 fi
12919
12920 fi
12921
12922 if test "$wxUSE_THREADS" = "yes"; then
12923 cat >> confdefs.h <<\EOF
12924 #define wxUSE_THREADS 1
12925 EOF
12926
12927
12928 if test "$wxUSE_MAC" = "0"; then
12929 CFLAGS="${CFLAGS} -D_REENTRANT"
12930 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
12931 fi
12932
12933 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
12934 else
12935 if test "$ac_cv_func_strtok_r" = "yes"; then
12936 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
12937 echo "configure:12938: checking if -D_REENTRANT is needed" >&5
12938 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
12939 CFLAGS="${CFLAGS} -D_REENTRANT"
12940 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
12941 echo "$ac_t""yes" 1>&6
12942 else
12943 echo "$ac_t""no" 1>&6
12944 fi
12945 fi
12946 fi
12947
12948 if test "$WXGTK20" = 1 ; then
12949 cat >> confdefs.h <<EOF
12950 #define __WXGTK20__ $WXGTK20
12951 EOF
12952
12953 WXGTK12=1
12954 fi
12955
12956 if test "$WXGTK12" = 1 ; then
12957 cat >> confdefs.h <<EOF
12958 #define __WXGTK12__ $WXGTK12
12959 EOF
12960
12961 fi
12962
12963 if test "$WXGTK127" = 1 ; then
12964 cat >> confdefs.h <<EOF
12965 #define __WXGTK127__ $WXGTK127
12966 EOF
12967
12968 fi
12969
12970 if test "$WXWINE" = 1 ; then
12971 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
12972 fi
12973
12974 if test "$wxUSE_MAC" = 1 ; then
12975 TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__POWERPC__ -DTARGET_CARBON"
12976 CFLAGS="${CFLAGS} -fno-common -fpascal-strings"
12977 CPPFLAGS="${CPPFLAGS} -fno-common -fpascal-strings"
12978 # Extract the first word of "Rez", so it can be a program name with args.
12979 set dummy Rez; ac_word=$2
12980 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12981 echo "configure:12982: checking for $ac_word" >&5
12982 if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then
12983 echo $ac_n "(cached) $ac_c" 1>&6
12984 else
12985 if test -n "$REZ"; then
12986 ac_cv_prog_REZ="$REZ" # Let the user override the test.
12987 else
12988 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12989 ac_dummy="$PATH"
12990 for ac_dir in $ac_dummy; do
12991 test -z "$ac_dir" && ac_dir=.
12992 if test -f $ac_dir/$ac_word; then
12993 ac_cv_prog_REZ="Rez"
12994 break
12995 fi
12996 done
12997 IFS="$ac_save_ifs"
12998 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
12999 fi
13000 fi
13001 REZ="$ac_cv_prog_REZ"
13002 if test -n "$REZ"; then
13003 echo "$ac_t""$REZ" 1>&6
13004 else
13005 echo "$ac_t""no" 1>&6
13006 fi
13007
13008 # Extract the first word of "Derez", so it can be a program name with args.
13009 set dummy Derez; ac_word=$2
13010 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13011 echo "configure:13012: checking for $ac_word" >&5
13012 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
13013 echo $ac_n "(cached) $ac_c" 1>&6
13014 else
13015 if test -n "$DEREZ"; then
13016 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
13017 else
13018 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13019 ac_dummy="$PATH"
13020 for ac_dir in $ac_dummy; do
13021 test -z "$ac_dir" && ac_dir=.
13022 if test -f $ac_dir/$ac_word; then
13023 ac_cv_prog_DEREZ="Derez"
13024 break
13025 fi
13026 done
13027 IFS="$ac_save_ifs"
13028 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
13029 fi
13030 fi
13031 DEREZ="$ac_cv_prog_DEREZ"
13032 if test -n "$DEREZ"; then
13033 echo "$ac_t""$DEREZ" 1>&6
13034 else
13035 echo "$ac_t""no" 1>&6
13036 fi
13037
13038 RESCOMP=${REZ}
13039 REZFLAGS="-d __UNIX__ -useDF"
13040 DEREZFLAGS="Carbon.r -useDF"
13041 RESFLAGS="Carbon.r -t APPL"
13042 LIBWXMACRES="\$(LIBWX_MACRES)"
13043 LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)"
13044 fi
13045
13046 if test "$wxUSE_CYGWIN" = 1 ; then
13047 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
13048 fi
13049
13050 WXDEBUG=
13051
13052 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
13053 WXDEBUG="-g"
13054 wxUSE_OPTIMISE=no
13055 fi
13056
13057 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
13058 wxUSE_DEBUG_INFO=yes
13059 WXDEBUG="-ggdb"
13060 fi
13061
13062 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
13063 cat >> confdefs.h <<\EOF
13064 #define WXDEBUG 1
13065 EOF
13066
13067 WXDEBUG_DEFINE="-D__WXDEBUG__"
13068 else
13069 if test "$wxUSE_GTK" = 1 ; then
13070 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
13071 fi
13072 fi
13073
13074 if test "$wxUSE_MEM_TRACING" = "yes" ; then
13075 cat >> confdefs.h <<\EOF
13076 #define wxUSE_MEMORY_TRACING 1
13077 EOF
13078
13079 cat >> confdefs.h <<\EOF
13080 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
13081 EOF
13082
13083 cat >> confdefs.h <<\EOF
13084 #define wxUSE_DEBUG_NEW_ALWAYS 1
13085 EOF
13086
13087 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
13088 fi
13089
13090 if test "$wxUSE_DMALLOC" = "yes" ; then
13091 DMALLOC_LINK="-ldmalloc"
13092 fi
13093
13094 PROFILE=
13095 if test "$wxUSE_PROFILE" = "yes" ; then
13096 PROFILE="-pg"
13097 fi
13098
13099 DEP_INFO_FLAGS=
13100 CODE_GEN_FLAGS=
13101 CODE_GEN_FLAGS_CXX=
13102 if test "$GCC" = yes ; then
13103 if test "$wxUSE_NO_RTTI" = "yes" ; then
13104 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti"
13105 fi
13106 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
13107 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions"
13108 fi
13109 if test "$wxUSE_PERMISSIVE" = "yes" ; then
13110 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
13111 fi
13112 if test "$wxUSE_NO_DEPS" = "no" ; then
13113 DEP_INFO_FLAGS="-MMD"
13114 fi
13115 fi
13116
13117
13118 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
13119 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
13120 if test "$wxUSE_OPTIMISE" = "no" ; then
13121 OPTIMISE=
13122 else
13123 if test "$GCC" = yes ; then
13124 OPTIMISE="-O2"
13125 case "${host}" in
13126 i586-*-*|i686-*-* )
13127 OPTIMISE="${OPTIMISE} "
13128 ;;
13129 esac
13130 else
13131 OPTIMISE="-O"
13132 fi
13133 fi
13134
13135
13136 ZLIB_INCLUDE=
13137 if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
13138 cat >> confdefs.h <<\EOF
13139 #define wxUSE_ZLIB 1
13140 EOF
13141
13142 if test "$wxUSE_ZLIB" = "yes" ; then
13143 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
13144 else
13145 ZLIB_LINK=
13146 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
13147 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
13148 echo "configure:13149: checking for zlib.h" >&5
13149 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13150 echo $ac_n "(cached) $ac_c" 1>&6
13151 else
13152 cat > conftest.$ac_ext <<EOF
13153 #line 13154 "configure"
13154 #include "confdefs.h"
13155 #include <zlib.h>
13156 EOF
13157 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13158 { (eval echo configure:13159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13159 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13160 if test -z "$ac_err"; then
13161 rm -rf conftest*
13162 eval "ac_cv_header_$ac_safe=yes"
13163 else
13164 echo "$ac_err" >&5
13165 echo "configure: failed program was:" >&5
13166 cat conftest.$ac_ext >&5
13167 rm -rf conftest*
13168 eval "ac_cv_header_$ac_safe=no"
13169 fi
13170 rm -f conftest*
13171 fi
13172 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13173 echo "$ac_t""yes" 1>&6
13174 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
13175 echo "configure:13176: checking for deflate in -lz" >&5
13176 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
13177 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13178 echo $ac_n "(cached) $ac_c" 1>&6
13179 else
13180 ac_save_LIBS="$LIBS"
13181 LIBS="-lz $LIBS"
13182 cat > conftest.$ac_ext <<EOF
13183 #line 13184 "configure"
13184 #include "confdefs.h"
13185 /* Override any gcc2 internal prototype to avoid an error. */
13186 /* We use char because int might match the return type of a gcc2
13187 builtin and then its argument prototype would still apply. */
13188 char deflate();
13189
13190 int main() {
13191 deflate()
13192 ; return 0; }
13193 EOF
13194 if { (eval echo configure:13195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13195 rm -rf conftest*
13196 eval "ac_cv_lib_$ac_lib_var=yes"
13197 else
13198 echo "configure: failed program was:" >&5
13199 cat conftest.$ac_ext >&5
13200 rm -rf conftest*
13201 eval "ac_cv_lib_$ac_lib_var=no"
13202 fi
13203 rm -f conftest*
13204 LIBS="$ac_save_LIBS"
13205
13206 fi
13207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13208 echo "$ac_t""yes" 1>&6
13209 ZLIB_LINK="-lz"
13210 else
13211 echo "$ac_t""no" 1>&6
13212 fi
13213
13214 else
13215 echo "$ac_t""no" 1>&6
13216 fi
13217
13218 if test "x$ZLIB_LINK" = "x" ; then
13219 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
13220 fi
13221 fi
13222 fi
13223
13224 PNG_INCLUDE=
13225 if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
13226 cat >> confdefs.h <<\EOF
13227 #define wxUSE_LIBPNG 1
13228 EOF
13229
13230 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
13231 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
13232 wxUSE_LIBPNG=yes
13233 fi
13234
13235 if test "$wxUSE_LIBPNG" = "yes" ; then
13236 PNG_INCLUDE="-I\${top_srcdir}/src/png"
13237 else
13238 PNG_LINK=
13239 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
13240 echo $ac_n "checking for png.h""... $ac_c" 1>&6
13241 echo "configure:13242: checking for png.h" >&5
13242 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13243 echo $ac_n "(cached) $ac_c" 1>&6
13244 else
13245 cat > conftest.$ac_ext <<EOF
13246 #line 13247 "configure"
13247 #include "confdefs.h"
13248 #include <png.h>
13249 EOF
13250 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13251 { (eval echo configure:13252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13252 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13253 if test -z "$ac_err"; then
13254 rm -rf conftest*
13255 eval "ac_cv_header_$ac_safe=yes"
13256 else
13257 echo "$ac_err" >&5
13258 echo "configure: failed program was:" >&5
13259 cat conftest.$ac_ext >&5
13260 rm -rf conftest*
13261 eval "ac_cv_header_$ac_safe=no"
13262 fi
13263 rm -f conftest*
13264 fi
13265 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13266 echo "$ac_t""yes" 1>&6
13267 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
13268 echo "configure:13269: checking for png_check_sig in -lpng" >&5
13269 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
13270 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13271 echo $ac_n "(cached) $ac_c" 1>&6
13272 else
13273 ac_save_LIBS="$LIBS"
13274 LIBS="-lpng -lz -lm $LIBS"
13275 cat > conftest.$ac_ext <<EOF
13276 #line 13277 "configure"
13277 #include "confdefs.h"
13278 /* Override any gcc2 internal prototype to avoid an error. */
13279 /* We use char because int might match the return type of a gcc2
13280 builtin and then its argument prototype would still apply. */
13281 char png_check_sig();
13282
13283 int main() {
13284 png_check_sig()
13285 ; return 0; }
13286 EOF
13287 if { (eval echo configure:13288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13288 rm -rf conftest*
13289 eval "ac_cv_lib_$ac_lib_var=yes"
13290 else
13291 echo "configure: failed program was:" >&5
13292 cat conftest.$ac_ext >&5
13293 rm -rf conftest*
13294 eval "ac_cv_lib_$ac_lib_var=no"
13295 fi
13296 rm -f conftest*
13297 LIBS="$ac_save_LIBS"
13298
13299 fi
13300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13301 echo "$ac_t""yes" 1>&6
13302 PNG_LINK="-lpng"
13303 else
13304 echo "$ac_t""no" 1>&6
13305 fi
13306
13307
13308 else
13309 echo "$ac_t""no" 1>&6
13310 fi
13311
13312 if test "x$PNG_LINK" = "x" ; then
13313 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
13314 fi
13315 fi
13316
13317 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
13318 fi
13319
13320 JPEG_INCLUDE=
13321 if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
13322 cat >> confdefs.h <<\EOF
13323 #define wxUSE_LIBJPEG 1
13324 EOF
13325
13326 if test "$wxUSE_LIBJPEG" = "yes" ; then
13327 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
13328 else
13329 JPEG_LINK=
13330 ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
13331 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
13332 echo "configure:13333: checking for jpeglib.h" >&5
13333 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13334 echo $ac_n "(cached) $ac_c" 1>&6
13335 else
13336 cat > conftest.$ac_ext <<EOF
13337 #line 13338 "configure"
13338 #include "confdefs.h"
13339 #include <jpeglib.h>
13340 EOF
13341 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13342 { (eval echo configure:13343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13343 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13344 if test -z "$ac_err"; then
13345 rm -rf conftest*
13346 eval "ac_cv_header_$ac_safe=yes"
13347 else
13348 echo "$ac_err" >&5
13349 echo "configure: failed program was:" >&5
13350 cat conftest.$ac_ext >&5
13351 rm -rf conftest*
13352 eval "ac_cv_header_$ac_safe=no"
13353 fi
13354 rm -f conftest*
13355 fi
13356 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13357 echo "$ac_t""yes" 1>&6
13358 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
13359 echo "configure:13360: checking for jpeg_read_header in -ljpeg" >&5
13360 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
13361 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13362 echo $ac_n "(cached) $ac_c" 1>&6
13363 else
13364 ac_save_LIBS="$LIBS"
13365 LIBS="-ljpeg $LIBS"
13366 cat > conftest.$ac_ext <<EOF
13367 #line 13368 "configure"
13368 #include "confdefs.h"
13369 /* Override any gcc2 internal prototype to avoid an error. */
13370 /* We use char because int might match the return type of a gcc2
13371 builtin and then its argument prototype would still apply. */
13372 char jpeg_read_header();
13373
13374 int main() {
13375 jpeg_read_header()
13376 ; return 0; }
13377 EOF
13378 if { (eval echo configure:13379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13379 rm -rf conftest*
13380 eval "ac_cv_lib_$ac_lib_var=yes"
13381 else
13382 echo "configure: failed program was:" >&5
13383 cat conftest.$ac_ext >&5
13384 rm -rf conftest*
13385 eval "ac_cv_lib_$ac_lib_var=no"
13386 fi
13387 rm -f conftest*
13388 LIBS="$ac_save_LIBS"
13389
13390 fi
13391 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13392 echo "$ac_t""yes" 1>&6
13393 JPEG_LINK="-ljpeg"
13394 else
13395 echo "$ac_t""no" 1>&6
13396 fi
13397
13398 else
13399 echo "$ac_t""no" 1>&6
13400 fi
13401
13402 if test "x$JPEG_LINK" = "x" ; then
13403 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
13404 fi
13405 fi
13406 fi
13407
13408 TIFF_INCLUDE=
13409 if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
13410 cat >> confdefs.h <<\EOF
13411 #define wxUSE_LIBTIFF 1
13412 EOF
13413
13414 if test "$wxUSE_LIBTIFF" = "yes" ; then
13415 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
13416 else
13417 TIFF_LINK=
13418 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
13419 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
13420 echo "configure:13421: checking for tiffio.h" >&5
13421 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13422 echo $ac_n "(cached) $ac_c" 1>&6
13423 else
13424 cat > conftest.$ac_ext <<EOF
13425 #line 13426 "configure"
13426 #include "confdefs.h"
13427 #include <tiffio.h>
13428 EOF
13429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13430 { (eval echo configure:13431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13431 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13432 if test -z "$ac_err"; then
13433 rm -rf conftest*
13434 eval "ac_cv_header_$ac_safe=yes"
13435 else
13436 echo "$ac_err" >&5
13437 echo "configure: failed program was:" >&5
13438 cat conftest.$ac_ext >&5
13439 rm -rf conftest*
13440 eval "ac_cv_header_$ac_safe=no"
13441 fi
13442 rm -f conftest*
13443 fi
13444 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13445 echo "$ac_t""yes" 1>&6
13446 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
13447 echo "configure:13448: checking for TIFFError in -ltiff" >&5
13448 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
13449 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13450 echo $ac_n "(cached) $ac_c" 1>&6
13451 else
13452 ac_save_LIBS="$LIBS"
13453 LIBS="-ltiff -lm $LIBS"
13454 cat > conftest.$ac_ext <<EOF
13455 #line 13456 "configure"
13456 #include "confdefs.h"
13457 /* Override any gcc2 internal prototype to avoid an error. */
13458 /* We use char because int might match the return type of a gcc2
13459 builtin and then its argument prototype would still apply. */
13460 char TIFFError();
13461
13462 int main() {
13463 TIFFError()
13464 ; return 0; }
13465 EOF
13466 if { (eval echo configure:13467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13467 rm -rf conftest*
13468 eval "ac_cv_lib_$ac_lib_var=yes"
13469 else
13470 echo "configure: failed program was:" >&5
13471 cat conftest.$ac_ext >&5
13472 rm -rf conftest*
13473 eval "ac_cv_lib_$ac_lib_var=no"
13474 fi
13475 rm -f conftest*
13476 LIBS="$ac_save_LIBS"
13477
13478 fi
13479 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13480 echo "$ac_t""yes" 1>&6
13481 TIFF_LINK="-ltiff"
13482 else
13483 echo "$ac_t""no" 1>&6
13484 fi
13485
13486 else
13487 echo "$ac_t""no" 1>&6
13488 fi
13489
13490 if test "x$TIFF_LINK" = "x" ; then
13491 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
13492 fi
13493 fi
13494 fi
13495
13496 FREETYPE_INCLUDE=
13497 if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
13498 cat >> confdefs.h <<\EOF
13499 #define wxUSE_FREETYPE 1
13500 EOF
13501
13502 if test "$wxUSE_FREETYPE" = "yes" ; then
13503 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
13504 else
13505 FREETYPE_LINK=
13506 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
13507 echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
13508 echo "configure:13509: checking for freetype.h" >&5
13509 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13510 echo $ac_n "(cached) $ac_c" 1>&6
13511 else
13512 cat > conftest.$ac_ext <<EOF
13513 #line 13514 "configure"
13514 #include "confdefs.h"
13515 #include <freetype.h>
13516 EOF
13517 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13518 { (eval echo configure:13519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13519 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13520 if test -z "$ac_err"; then
13521 rm -rf conftest*
13522 eval "ac_cv_header_$ac_safe=yes"
13523 else
13524 echo "$ac_err" >&5
13525 echo "configure: failed program was:" >&5
13526 cat conftest.$ac_ext >&5
13527 rm -rf conftest*
13528 eval "ac_cv_header_$ac_safe=no"
13529 fi
13530 rm -f conftest*
13531 fi
13532 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13533 echo "$ac_t""yes" 1>&6
13534 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
13535 echo "configure:13536: checking for FT_Render_Glyph in -lfreetype" >&5
13536 ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
13537 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13538 echo $ac_n "(cached) $ac_c" 1>&6
13539 else
13540 ac_save_LIBS="$LIBS"
13541 LIBS="-lfreetype -lm $LIBS"
13542 cat > conftest.$ac_ext <<EOF
13543 #line 13544 "configure"
13544 #include "confdefs.h"
13545 /* Override any gcc2 internal prototype to avoid an error. */
13546 /* We use char because int might match the return type of a gcc2
13547 builtin and then its argument prototype would still apply. */
13548 char FT_Render_Glyph();
13549
13550 int main() {
13551 FT_Render_Glyph()
13552 ; return 0; }
13553 EOF
13554 if { (eval echo configure:13555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13555 rm -rf conftest*
13556 eval "ac_cv_lib_$ac_lib_var=yes"
13557 else
13558 echo "configure: failed program was:" >&5
13559 cat conftest.$ac_ext >&5
13560 rm -rf conftest*
13561 eval "ac_cv_lib_$ac_lib_var=no"
13562 fi
13563 rm -f conftest*
13564 LIBS="$ac_save_LIBS"
13565
13566 fi
13567 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13568 echo "$ac_t""yes" 1>&6
13569 FREETYPE_LINK="-lfreetype"
13570 else
13571 echo "$ac_t""no" 1>&6
13572 fi
13573
13574
13575 else
13576 echo "$ac_t""no" 1>&6
13577 fi
13578
13579 if test "x$FREETYPE_LINK" = "x" ; then
13580 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
13581 fi
13582 fi
13583 fi
13584
13585 if test "$wxUSE_OPENGL" = "yes"; then
13586 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
13587 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
13588 echo "configure:13589: checking for GL/gl.h" >&5
13589 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13590 echo $ac_n "(cached) $ac_c" 1>&6
13591 else
13592 cat > conftest.$ac_ext <<EOF
13593 #line 13594 "configure"
13594 #include "confdefs.h"
13595 #include <GL/gl.h>
13596 EOF
13597 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13598 { (eval echo configure:13599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13599 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13600 if test -z "$ac_err"; then
13601 rm -rf conftest*
13602 eval "ac_cv_header_$ac_safe=yes"
13603 else
13604 echo "$ac_err" >&5
13605 echo "configure: failed program was:" >&5
13606 cat conftest.$ac_ext >&5
13607 rm -rf conftest*
13608 eval "ac_cv_header_$ac_safe=no"
13609 fi
13610 rm -f conftest*
13611 fi
13612 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13613 echo "$ac_t""yes" 1>&6
13614
13615 cat >> confdefs.h <<\EOF
13616 #define wxUSE_OPENGL 1
13617 EOF
13618
13619 cat >> confdefs.h <<\EOF
13620 #define wxUSE_GLCANVAS 1
13621 EOF
13622
13623 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
13624 echo "configure:13625: checking for glFlush in -lGL" >&5
13625 ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
13626 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13627 echo $ac_n "(cached) $ac_c" 1>&6
13628 else
13629 ac_save_LIBS="$LIBS"
13630 LIBS="-lGL $LIBS"
13631 cat > conftest.$ac_ext <<EOF
13632 #line 13633 "configure"
13633 #include "confdefs.h"
13634 /* Override any gcc2 internal prototype to avoid an error. */
13635 /* We use char because int might match the return type of a gcc2
13636 builtin and then its argument prototype would still apply. */
13637 char glFlush();
13638
13639 int main() {
13640 glFlush()
13641 ; return 0; }
13642 EOF
13643 if { (eval echo configure:13644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13644 rm -rf conftest*
13645 eval "ac_cv_lib_$ac_lib_var=yes"
13646 else
13647 echo "configure: failed program was:" >&5
13648 cat conftest.$ac_ext >&5
13649 rm -rf conftest*
13650 eval "ac_cv_lib_$ac_lib_var=no"
13651 fi
13652 rm -f conftest*
13653 LIBS="$ac_save_LIBS"
13654
13655 fi
13656 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13657 echo "$ac_t""yes" 1>&6
13658
13659 OPENGL_LINK="-lGL -lGLU"
13660
13661 else
13662 echo "$ac_t""no" 1>&6
13663
13664 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
13665 echo "configure:13666: checking for glFlush in -lMesaGL" >&5
13666 ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
13667 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13668 echo $ac_n "(cached) $ac_c" 1>&6
13669 else
13670 ac_save_LIBS="$LIBS"
13671 LIBS="-lMesaGL $LIBS"
13672 cat > conftest.$ac_ext <<EOF
13673 #line 13674 "configure"
13674 #include "confdefs.h"
13675 /* Override any gcc2 internal prototype to avoid an error. */
13676 /* We use char because int might match the return type of a gcc2
13677 builtin and then its argument prototype would still apply. */
13678 char glFlush();
13679
13680 int main() {
13681 glFlush()
13682 ; return 0; }
13683 EOF
13684 if { (eval echo configure:13685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13685 rm -rf conftest*
13686 eval "ac_cv_lib_$ac_lib_var=yes"
13687 else
13688 echo "configure: failed program was:" >&5
13689 cat conftest.$ac_ext >&5
13690 rm -rf conftest*
13691 eval "ac_cv_lib_$ac_lib_var=no"
13692 fi
13693 rm -f conftest*
13694 LIBS="$ac_save_LIBS"
13695
13696 fi
13697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13698 echo "$ac_t""yes" 1>&6
13699
13700 OPENGL_LINK="-lMesaGL -lMesaGLU"
13701
13702 else
13703 echo "$ac_t""no" 1>&6
13704 fi
13705
13706
13707 fi
13708
13709
13710 else
13711 echo "$ac_t""no" 1>&6
13712 wxUSE_OPENGL=0
13713 fi
13714
13715 fi
13716
13717
13718 if test "$wxUSE_GUI" = "yes"; then
13719 cat >> confdefs.h <<\EOF
13720 #define wxUSE_GUI 1
13721 EOF
13722
13723
13724 else
13725 cat >> confdefs.h <<\EOF
13726 #define wxUSE_NOGUI 1
13727 EOF
13728
13729 fi
13730
13731
13732 if test "$wxUSE_UNIX" = "yes"; then
13733 cat >> confdefs.h <<\EOF
13734 #define wxUSE_UNIX 1
13735 EOF
13736
13737 fi
13738
13739
13740 if test "$wxUSE_APPLE_IEEE" = "yes"; then
13741 cat >> confdefs.h <<\EOF
13742 #define wxUSE_APPLE_IEEE 1
13743 EOF
13744
13745 fi
13746
13747 if test "$wxUSE_WAVE" = "yes"; then
13748 cat >> confdefs.h <<\EOF
13749 #define wxUSE_WAVE 1
13750 EOF
13751
13752 fi
13753
13754 if test "$wxUSE_FILE" = "yes"; then
13755 cat >> confdefs.h <<\EOF
13756 #define wxUSE_FILE 1
13757 EOF
13758
13759 fi
13760
13761 if test "$wxUSE_FILESYSTEM" = "yes"; then
13762 cat >> confdefs.h <<\EOF
13763 #define wxUSE_FILESYSTEM 1
13764 EOF
13765
13766 fi
13767
13768 if test "$wxUSE_FS_INET" = "yes"; then
13769 cat >> confdefs.h <<\EOF
13770 #define wxUSE_FS_INET 1
13771 EOF
13772
13773 fi
13774
13775 if test "$wxUSE_FS_ZIP" = "yes"; then
13776 cat >> confdefs.h <<\EOF
13777 #define wxUSE_FS_ZIP 1
13778 EOF
13779
13780 fi
13781
13782 if test "$wxUSE_ZIPSTREAM" = "yes"; then
13783 cat >> confdefs.h <<\EOF
13784 #define wxUSE_ZIPSTREAM 1
13785 EOF
13786
13787 fi
13788
13789 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
13790 cat >> confdefs.h <<\EOF
13791 #define wxUSE_ON_FATAL_EXCEPTION 1
13792 EOF
13793
13794 fi
13795
13796 if test "$wxUSE_BUSYINFO" = "yes"; then
13797 cat >> confdefs.h <<\EOF
13798 #define wxUSE_BUSYINFO 1
13799 EOF
13800
13801 fi
13802
13803 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
13804 cat >> confdefs.h <<\EOF
13805 #define wxUSE_STD_IOSTREAM 1
13806 EOF
13807
13808 fi
13809
13810 if test "$wxUSE_TEXTFILE" = "yes"; then
13811 if test "$wxUSE_FILE" != "yes"; then
13812 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
13813 else
13814 cat >> confdefs.h <<\EOF
13815 #define wxUSE_TEXTFILE 1
13816 EOF
13817
13818 fi
13819 fi
13820
13821 if test "$wxUSE_CONFIG" = "yes" ; then
13822 if test "$wxUSE_TEXTFILE" != "yes"; then
13823 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
13824 else
13825 cat >> confdefs.h <<\EOF
13826 #define wxUSE_CONFIG 1
13827 EOF
13828
13829 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
13830 fi
13831 fi
13832
13833 if test "$wxUSE_INTL" = "yes" ; then
13834 if test "$wxUSE_FILE" != "yes"; then
13835 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
13836 else
13837 cat >> confdefs.h <<\EOF
13838 #define wxUSE_INTL 1
13839 EOF
13840
13841 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
13842 GUIDIST="$GUIDIST INTL_DIST"
13843 fi
13844 fi
13845
13846 if test "$wxUSE_LOG" = "yes"; then
13847 cat >> confdefs.h <<\EOF
13848 #define wxUSE_LOG 1
13849 EOF
13850
13851 fi
13852
13853 if test "$wxUSE_LONGLONG" = "yes"; then
13854 cat >> confdefs.h <<\EOF
13855 #define wxUSE_LONGLONG 1
13856 EOF
13857
13858 fi
13859
13860 if test "$wxUSE_GEOMETRY" = "yes"; then
13861 cat >> confdefs.h <<\EOF
13862 #define wxUSE_GEOMETRY 1
13863 EOF
13864
13865 fi
13866
13867 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
13868 cat >> confdefs.h <<\EOF
13869 #define wxUSE_DIALUP_MANAGER 1
13870 EOF
13871
13872 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
13873 fi
13874
13875 if test "$wxUSE_STREAMS" = "yes" ; then
13876 cat >> confdefs.h <<\EOF
13877 #define wxUSE_STREAMS 1
13878 EOF
13879
13880 fi
13881
13882
13883 if test "$wxUSE_TIMEDATE" = "yes"; then
13884 for ac_func in strptime
13885 do
13886 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13887 echo "configure:13888: checking for $ac_func" >&5
13888 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13889 echo $ac_n "(cached) $ac_c" 1>&6
13890 else
13891 cat > conftest.$ac_ext <<EOF
13892 #line 13893 "configure"
13893 #include "confdefs.h"
13894 /* System header to define __stub macros and hopefully few prototypes,
13895 which can conflict with char $ac_func(); below. */
13896 #include <assert.h>
13897 /* Override any gcc2 internal prototype to avoid an error. */
13898 /* We use char because int might match the return type of a gcc2
13899 builtin and then its argument prototype would still apply. */
13900 char $ac_func();
13901
13902 int main() {
13903
13904 /* The GNU C library defines this for functions which it implements
13905 to always fail with ENOSYS. Some functions are actually named
13906 something starting with __ and the normal name is an alias. */
13907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13908 choke me
13909 #else
13910 $ac_func();
13911 #endif
13912
13913 ; return 0; }
13914 EOF
13915 if { (eval echo configure:13916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13916 rm -rf conftest*
13917 eval "ac_cv_func_$ac_func=yes"
13918 else
13919 echo "configure: failed program was:" >&5
13920 cat conftest.$ac_ext >&5
13921 rm -rf conftest*
13922 eval "ac_cv_func_$ac_func=no"
13923 fi
13924 rm -f conftest*
13925 fi
13926
13927 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13928 echo "$ac_t""yes" 1>&6
13929 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13930 cat >> confdefs.h <<EOF
13931 #define $ac_tr_func 1
13932 EOF
13933
13934 else
13935 echo "$ac_t""no" 1>&6
13936 fi
13937 done
13938
13939
13940 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
13941 echo "configure:13942: checking for timezone variable in <time.h>" >&5
13942 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
13943 echo $ac_n "(cached) $ac_c" 1>&6
13944 else
13945
13946 cat > conftest.$ac_ext <<EOF
13947 #line 13948 "configure"
13948 #include "confdefs.h"
13949
13950 #include <time.h>
13951
13952 int main() {
13953
13954 int tz;
13955 tz = __timezone;
13956
13957 ; return 0; }
13958 EOF
13959 if { (eval echo configure:13960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13960 rm -rf conftest*
13961
13962 wx_cv_var_timezone=__timezone
13963
13964 else
13965 echo "configure: failed program was:" >&5
13966 cat conftest.$ac_ext >&5
13967 rm -rf conftest*
13968
13969 cat > conftest.$ac_ext <<EOF
13970 #line 13971 "configure"
13971 #include "confdefs.h"
13972
13973 #include <time.h>
13974
13975 int main() {
13976
13977 int tz;
13978 tz = _timezone;
13979
13980 ; return 0; }
13981 EOF
13982 if { (eval echo configure:13983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13983 rm -rf conftest*
13984
13985 wx_cv_var_timezone=_timezone
13986
13987 else
13988 echo "configure: failed program was:" >&5
13989 cat conftest.$ac_ext >&5
13990 rm -rf conftest*
13991
13992 cat > conftest.$ac_ext <<EOF
13993 #line 13994 "configure"
13994 #include "confdefs.h"
13995
13996 #include <time.h>
13997
13998 int main() {
13999
14000 int tz;
14001 tz = timezone;
14002
14003 ; return 0; }
14004 EOF
14005 if { (eval echo configure:14006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14006 rm -rf conftest*
14007
14008 wx_cv_var_timezone=timezone
14009
14010 else
14011 echo "configure: failed program was:" >&5
14012 cat conftest.$ac_ext >&5
14013 rm -rf conftest*
14014 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
14015
14016 fi
14017 rm -f conftest*
14018
14019
14020 fi
14021 rm -f conftest*
14022
14023
14024 fi
14025 rm -f conftest*
14026
14027
14028 fi
14029
14030 echo "$ac_t""$wx_cv_var_timezone" 1>&6
14031
14032 cat >> confdefs.h <<EOF
14033 #define WX_TIMEZONE $wx_cv_var_timezone
14034 EOF
14035
14036
14037 for ac_func in localtime
14038 do
14039 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14040 echo "configure:14041: checking for $ac_func" >&5
14041 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14042 echo $ac_n "(cached) $ac_c" 1>&6
14043 else
14044 cat > conftest.$ac_ext <<EOF
14045 #line 14046 "configure"
14046 #include "confdefs.h"
14047 /* System header to define __stub macros and hopefully few prototypes,
14048 which can conflict with char $ac_func(); below. */
14049 #include <assert.h>
14050 /* Override any gcc2 internal prototype to avoid an error. */
14051 /* We use char because int might match the return type of a gcc2
14052 builtin and then its argument prototype would still apply. */
14053 char $ac_func();
14054
14055 int main() {
14056
14057 /* The GNU C library defines this for functions which it implements
14058 to always fail with ENOSYS. Some functions are actually named
14059 something starting with __ and the normal name is an alias. */
14060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14061 choke me
14062 #else
14063 $ac_func();
14064 #endif
14065
14066 ; return 0; }
14067 EOF
14068 if { (eval echo configure:14069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14069 rm -rf conftest*
14070 eval "ac_cv_func_$ac_func=yes"
14071 else
14072 echo "configure: failed program was:" >&5
14073 cat conftest.$ac_ext >&5
14074 rm -rf conftest*
14075 eval "ac_cv_func_$ac_func=no"
14076 fi
14077 rm -f conftest*
14078 fi
14079
14080 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14081 echo "$ac_t""yes" 1>&6
14082 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14083 cat >> confdefs.h <<EOF
14084 #define $ac_tr_func 1
14085 EOF
14086
14087 else
14088 echo "$ac_t""no" 1>&6
14089 fi
14090 done
14091
14092
14093 if test "$ac_cv_func_localtime" = "yes"; then
14094 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
14095 echo "configure:14096: checking for tm_gmtoff in struct tm" >&5
14096 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
14097 echo $ac_n "(cached) $ac_c" 1>&6
14098 else
14099
14100 cat > conftest.$ac_ext <<EOF
14101 #line 14102 "configure"
14102 #include "confdefs.h"
14103
14104 #include <time.h>
14105
14106 int main() {
14107
14108 struct tm tm;
14109 tm.tm_gmtoff++;
14110
14111 ; return 0; }
14112 EOF
14113 if { (eval echo configure:14114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14114 rm -rf conftest*
14115
14116 wx_cv_struct_tm_has_gmtoff=yes
14117 cat >> confdefs.h <<\EOF
14118 #define WX_GMTOFF_IN_TM 1
14119 EOF
14120
14121
14122 else
14123 echo "configure: failed program was:" >&5
14124 cat conftest.$ac_ext >&5
14125 rm -rf conftest*
14126 wx_cv_struct_tm_has_gmtoff=no
14127
14128 fi
14129 rm -f conftest*
14130
14131 fi
14132
14133 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
14134 fi
14135
14136 for ac_func in gettimeofday ftime
14137 do
14138 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14139 echo "configure:14140: checking for $ac_func" >&5
14140 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14141 echo $ac_n "(cached) $ac_c" 1>&6
14142 else
14143 cat > conftest.$ac_ext <<EOF
14144 #line 14145 "configure"
14145 #include "confdefs.h"
14146 /* System header to define __stub macros and hopefully few prototypes,
14147 which can conflict with char $ac_func(); below. */
14148 #include <assert.h>
14149 /* Override any gcc2 internal prototype to avoid an error. */
14150 /* We use char because int might match the return type of a gcc2
14151 builtin and then its argument prototype would still apply. */
14152 char $ac_func();
14153
14154 int main() {
14155
14156 /* The GNU C library defines this for functions which it implements
14157 to always fail with ENOSYS. Some functions are actually named
14158 something starting with __ and the normal name is an alias. */
14159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14160 choke me
14161 #else
14162 $ac_func();
14163 #endif
14164
14165 ; return 0; }
14166 EOF
14167 if { (eval echo configure:14168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14168 rm -rf conftest*
14169 eval "ac_cv_func_$ac_func=yes"
14170 else
14171 echo "configure: failed program was:" >&5
14172 cat conftest.$ac_ext >&5
14173 rm -rf conftest*
14174 eval "ac_cv_func_$ac_func=no"
14175 fi
14176 rm -f conftest*
14177 fi
14178
14179 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14180 echo "$ac_t""yes" 1>&6
14181 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14182 cat >> confdefs.h <<EOF
14183 #define $ac_tr_func 1
14184 EOF
14185 break
14186 else
14187 echo "$ac_t""no" 1>&6
14188 fi
14189 done
14190
14191
14192 if test "$ac_cv_func_gettimeofday" = "yes"; then
14193 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
14194 echo "configure:14195: checking whether gettimeofday takes two arguments" >&5
14195 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
14196 echo $ac_n "(cached) $ac_c" 1>&6
14197 else
14198
14199
14200 ac_ext=C
14201 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14202 ac_cpp='$CXXCPP $CPPFLAGS'
14203 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14204 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14205 cross_compiling=$ac_cv_prog_cxx_cross
14206
14207
14208 cat > conftest.$ac_ext <<EOF
14209 #line 14210 "configure"
14210 #include "confdefs.h"
14211
14212 #include <sys/time.h>
14213 #include <unistd.h>
14214
14215 int main() {
14216
14217 struct timeval tv;
14218 struct timezone tz;
14219 gettimeofday(&tv, &tz);
14220
14221 ; return 0; }
14222 EOF
14223 if { (eval echo configure:14224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14224 rm -rf conftest*
14225 wx_cv_func_gettimeofday_has_2_args=yes
14226 else
14227 echo "configure: failed program was:" >&5
14228 cat conftest.$ac_ext >&5
14229 rm -rf conftest*
14230 cat > conftest.$ac_ext <<EOF
14231 #line 14232 "configure"
14232 #include "confdefs.h"
14233
14234 #include <sys/time.h>
14235 #include <unistd.h>
14236
14237 int main() {
14238
14239 struct timeval tv;
14240 gettimeofday(&tv);
14241
14242 ; return 0; }
14243 EOF
14244 if { (eval echo configure:14245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14245 rm -rf conftest*
14246 wx_cv_func_gettimeofday_has_2_args=no
14247 else
14248 echo "configure: failed program was:" >&5
14249 cat conftest.$ac_ext >&5
14250 rm -rf conftest*
14251 wx_cv_func_gettimeofday_has_2_args=unknown
14252
14253 fi
14254 rm -f conftest*
14255
14256 fi
14257 rm -f conftest*
14258 ac_ext=c
14259 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14260 ac_cpp='$CPP $CPPFLAGS'
14261 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14262 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14263 cross_compiling=$ac_cv_prog_cc_cross
14264
14265
14266 fi
14267
14268 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
14269
14270 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
14271 cat >> confdefs.h <<\EOF
14272 #define WX_GETTIMEOFDAY_NO_TZ 1
14273 EOF
14274
14275 fi
14276 fi
14277
14278 cat >> confdefs.h <<\EOF
14279 #define wxUSE_TIMEDATE 1
14280 EOF
14281
14282 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
14283 fi
14284
14285
14286 if test "$TOOLKIT" != "MSW"; then
14287
14288 if test "$wxUSE_SOCKETS" = "yes"; then
14289 echo $ac_n "checking for socket""... $ac_c" 1>&6
14290 echo "configure:14291: checking for socket" >&5
14291 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
14292 echo $ac_n "(cached) $ac_c" 1>&6
14293 else
14294 cat > conftest.$ac_ext <<EOF
14295 #line 14296 "configure"
14296 #include "confdefs.h"
14297 /* System header to define __stub macros and hopefully few prototypes,
14298 which can conflict with char socket(); below. */
14299 #include <assert.h>
14300 /* Override any gcc2 internal prototype to avoid an error. */
14301 /* We use char because int might match the return type of a gcc2
14302 builtin and then its argument prototype would still apply. */
14303 char socket();
14304
14305 int main() {
14306
14307 /* The GNU C library defines this for functions which it implements
14308 to always fail with ENOSYS. Some functions are actually named
14309 something starting with __ and the normal name is an alias. */
14310 #if defined (__stub_socket) || defined (__stub___socket)
14311 choke me
14312 #else
14313 socket();
14314 #endif
14315
14316 ; return 0; }
14317 EOF
14318 if { (eval echo configure:14319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14319 rm -rf conftest*
14320 eval "ac_cv_func_socket=yes"
14321 else
14322 echo "configure: failed program was:" >&5
14323 cat conftest.$ac_ext >&5
14324 rm -rf conftest*
14325 eval "ac_cv_func_socket=no"
14326 fi
14327 rm -f conftest*
14328 fi
14329
14330 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
14331 echo "$ac_t""yes" 1>&6
14332 :
14333 else
14334 echo "$ac_t""no" 1>&6
14335 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
14336 echo "configure:14337: checking for socket in -lsocket" >&5
14337 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
14338 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14339 echo $ac_n "(cached) $ac_c" 1>&6
14340 else
14341 ac_save_LIBS="$LIBS"
14342 LIBS="-lsocket $LIBS"
14343 cat > conftest.$ac_ext <<EOF
14344 #line 14345 "configure"
14345 #include "confdefs.h"
14346 /* Override any gcc2 internal prototype to avoid an error. */
14347 /* We use char because int might match the return type of a gcc2
14348 builtin and then its argument prototype would still apply. */
14349 char socket();
14350
14351 int main() {
14352 socket()
14353 ; return 0; }
14354 EOF
14355 if { (eval echo configure:14356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14356 rm -rf conftest*
14357 eval "ac_cv_lib_$ac_lib_var=yes"
14358 else
14359 echo "configure: failed program was:" >&5
14360 cat conftest.$ac_ext >&5
14361 rm -rf conftest*
14362 eval "ac_cv_lib_$ac_lib_var=no"
14363 fi
14364 rm -f conftest*
14365 LIBS="$ac_save_LIBS"
14366
14367 fi
14368 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14369 echo "$ac_t""yes" 1>&6
14370 INET_LINK="$INET_LINK -lsocket"
14371 else
14372 echo "$ac_t""no" 1>&6
14373
14374 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
14375 wxUSE_SOCKETS=no
14376
14377
14378 fi
14379
14380
14381 fi
14382
14383 fi
14384
14385
14386 if test "$wxUSE_SOCKETS" = "yes" ; then
14387 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
14388 echo "configure:14389: checking what is the type of the third argument of getsockname" >&5
14389 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
14390 echo $ac_n "(cached) $ac_c" 1>&6
14391 else
14392
14393
14394 ac_ext=C
14395 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14396 ac_cpp='$CXXCPP $CPPFLAGS'
14397 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14398 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14399 cross_compiling=$ac_cv_prog_cxx_cross
14400
14401
14402 cat > conftest.$ac_ext <<EOF
14403 #line 14404 "configure"
14404 #include "confdefs.h"
14405
14406 #include <sys/types.h>
14407 #include <sys/socket.h>
14408
14409 int main() {
14410
14411 socklen_t len;
14412 getsockname(0, 0, &len);
14413
14414 ; return 0; }
14415 EOF
14416 if { (eval echo configure:14417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14417 rm -rf conftest*
14418 wx_cv_type_getsockname3=socklen_t
14419 else
14420 echo "configure: failed program was:" >&5
14421 cat conftest.$ac_ext >&5
14422 rm -rf conftest*
14423 cat > conftest.$ac_ext <<EOF
14424 #line 14425 "configure"
14425 #include "confdefs.h"
14426
14427 #include <sys/types.h>
14428 #include <sys/socket.h>
14429
14430 int main() {
14431
14432 size_t len;
14433 getsockname(0, 0, &len);
14434
14435 ; return 0; }
14436 EOF
14437 if { (eval echo configure:14438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14438 rm -rf conftest*
14439 wx_cv_type_getsockname3=size_t
14440 else
14441 echo "configure: failed program was:" >&5
14442 cat conftest.$ac_ext >&5
14443 rm -rf conftest*
14444 cat > conftest.$ac_ext <<EOF
14445 #line 14446 "configure"
14446 #include "confdefs.h"
14447
14448 #include <sys/types.h>
14449 #include <sys/socket.h>
14450
14451 int main() {
14452
14453 int len;
14454 getsockname(0, 0, &len);
14455
14456 ; return 0; }
14457 EOF
14458 if { (eval echo configure:14459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14459 rm -rf conftest*
14460 wx_cv_type_getsockname3=int
14461 else
14462 echo "configure: failed program was:" >&5
14463 cat conftest.$ac_ext >&5
14464 rm -rf conftest*
14465 wx_cv_type_getsockname3=unknown
14466
14467 fi
14468 rm -f conftest*
14469
14470 fi
14471 rm -f conftest*
14472
14473 fi
14474 rm -f conftest*
14475
14476 ac_ext=c
14477 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14478 ac_cpp='$CPP $CPPFLAGS'
14479 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14480 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14481 cross_compiling=$ac_cv_prog_cc_cross
14482
14483
14484 fi
14485
14486 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
14487
14488 if test "$wx_cv_type_getsockname3" = "unknown"; then
14489 wxUSE_SOCKETS=no
14490 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
14491 else
14492 cat >> confdefs.h <<EOF
14493 #define SOCKLEN_T $wx_cv_type_getsockname3
14494 EOF
14495
14496 fi
14497 fi
14498
14499 fi
14500
14501 if test "$wxUSE_SOCKETS" = "yes" ; then
14502 cat >> confdefs.h <<\EOF
14503 #define wxUSE_SOCKETS 1
14504 EOF
14505
14506 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
14507 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
14508 fi
14509
14510
14511 if test "$wxUSE_GUI" = "yes"; then
14512
14513 if test "$TOOLKIT" != "MSW"; then
14514
14515 if test "$wxUSE_JOYSTICK" = "yes"; then
14516 for ac_hdr in linux/joystick.h
14517 do
14518 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14519 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14520 echo "configure:14521: checking for $ac_hdr" >&5
14521 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14522 echo $ac_n "(cached) $ac_c" 1>&6
14523 else
14524 cat > conftest.$ac_ext <<EOF
14525 #line 14526 "configure"
14526 #include "confdefs.h"
14527 #include <$ac_hdr>
14528 EOF
14529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14530 { (eval echo configure:14531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14532 if test -z "$ac_err"; then
14533 rm -rf conftest*
14534 eval "ac_cv_header_$ac_safe=yes"
14535 else
14536 echo "$ac_err" >&5
14537 echo "configure: failed program was:" >&5
14538 cat conftest.$ac_ext >&5
14539 rm -rf conftest*
14540 eval "ac_cv_header_$ac_safe=no"
14541 fi
14542 rm -f conftest*
14543 fi
14544 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14545 echo "$ac_t""yes" 1>&6
14546 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14547 cat >> confdefs.h <<EOF
14548 #define $ac_tr_hdr 1
14549 EOF
14550
14551 else
14552 echo "$ac_t""no" 1>&6
14553 fi
14554 done
14555
14556 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
14557 wxUSE_JOYSTICK=no
14558 echo "configure: warning: Joystick not supported by this system" 1>&2
14559 fi
14560 fi
14561
14562 fi
14563
14564 if test "$wxUSE_JOYSTICK" = "yes"; then
14565 cat >> confdefs.h <<\EOF
14566 #define wxUSE_JOYSTICK 1
14567 EOF
14568
14569 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
14570 fi
14571
14572 fi
14573
14574
14575 if test "$TOOLKIT" != "MSW"; then
14576
14577 HAVE_DL_FUNCS=0
14578 HAVE_SHL_FUNCS=0
14579 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
14580 if test "$USE_MAC" = 1; then
14581 HAVE_DL_FUNCS=1
14582 else
14583 for ac_func in dlopen
14584 do
14585 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14586 echo "configure:14587: checking for $ac_func" >&5
14587 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14588 echo $ac_n "(cached) $ac_c" 1>&6
14589 else
14590 cat > conftest.$ac_ext <<EOF
14591 #line 14592 "configure"
14592 #include "confdefs.h"
14593 /* System header to define __stub macros and hopefully few prototypes,
14594 which can conflict with char $ac_func(); below. */
14595 #include <assert.h>
14596 /* Override any gcc2 internal prototype to avoid an error. */
14597 /* We use char because int might match the return type of a gcc2
14598 builtin and then its argument prototype would still apply. */
14599 char $ac_func();
14600
14601 int main() {
14602
14603 /* The GNU C library defines this for functions which it implements
14604 to always fail with ENOSYS. Some functions are actually named
14605 something starting with __ and the normal name is an alias. */
14606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14607 choke me
14608 #else
14609 $ac_func();
14610 #endif
14611
14612 ; return 0; }
14613 EOF
14614 if { (eval echo configure:14615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14615 rm -rf conftest*
14616 eval "ac_cv_func_$ac_func=yes"
14617 else
14618 echo "configure: failed program was:" >&5
14619 cat conftest.$ac_ext >&5
14620 rm -rf conftest*
14621 eval "ac_cv_func_$ac_func=no"
14622 fi
14623 rm -f conftest*
14624 fi
14625
14626 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14627 echo "$ac_t""yes" 1>&6
14628 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14629 cat >> confdefs.h <<EOF
14630 #define $ac_tr_func 1
14631 EOF
14632
14633 cat >> confdefs.h <<\EOF
14634 #define HAVE_DLOPEN 1
14635 EOF
14636
14637 HAVE_DL_FUNCS=1
14638
14639 else
14640 echo "$ac_t""no" 1>&6
14641 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
14642 echo "configure:14643: checking for dlopen in -ldl" >&5
14643 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
14644 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14645 echo $ac_n "(cached) $ac_c" 1>&6
14646 else
14647 ac_save_LIBS="$LIBS"
14648 LIBS="-ldl $LIBS"
14649 cat > conftest.$ac_ext <<EOF
14650 #line 14651 "configure"
14651 #include "confdefs.h"
14652 /* Override any gcc2 internal prototype to avoid an error. */
14653 /* We use char because int might match the return type of a gcc2
14654 builtin and then its argument prototype would still apply. */
14655 char dlopen();
14656
14657 int main() {
14658 dlopen()
14659 ; return 0; }
14660 EOF
14661 if { (eval echo configure:14662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14662 rm -rf conftest*
14663 eval "ac_cv_lib_$ac_lib_var=yes"
14664 else
14665 echo "configure: failed program was:" >&5
14666 cat conftest.$ac_ext >&5
14667 rm -rf conftest*
14668 eval "ac_cv_lib_$ac_lib_var=no"
14669 fi
14670 rm -f conftest*
14671 LIBS="$ac_save_LIBS"
14672
14673 fi
14674 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14675 echo "$ac_t""yes" 1>&6
14676
14677 cat >> confdefs.h <<\EOF
14678 #define HAVE_DLOPEN 1
14679 EOF
14680
14681 HAVE_DL_FUNCS=1
14682 LIBS="$LIBS -ldl"
14683
14684 else
14685 echo "$ac_t""no" 1>&6
14686
14687 for ac_func in shl_load
14688 do
14689 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14690 echo "configure:14691: checking for $ac_func" >&5
14691 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14692 echo $ac_n "(cached) $ac_c" 1>&6
14693 else
14694 cat > conftest.$ac_ext <<EOF
14695 #line 14696 "configure"
14696 #include "confdefs.h"
14697 /* System header to define __stub macros and hopefully few prototypes,
14698 which can conflict with char $ac_func(); below. */
14699 #include <assert.h>
14700 /* Override any gcc2 internal prototype to avoid an error. */
14701 /* We use char because int might match the return type of a gcc2
14702 builtin and then its argument prototype would still apply. */
14703 char $ac_func();
14704
14705 int main() {
14706
14707 /* The GNU C library defines this for functions which it implements
14708 to always fail with ENOSYS. Some functions are actually named
14709 something starting with __ and the normal name is an alias. */
14710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14711 choke me
14712 #else
14713 $ac_func();
14714 #endif
14715
14716 ; return 0; }
14717 EOF
14718 if { (eval echo configure:14719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14719 rm -rf conftest*
14720 eval "ac_cv_func_$ac_func=yes"
14721 else
14722 echo "configure: failed program was:" >&5
14723 cat conftest.$ac_ext >&5
14724 rm -rf conftest*
14725 eval "ac_cv_func_$ac_func=no"
14726 fi
14727 rm -f conftest*
14728 fi
14729
14730 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14731 echo "$ac_t""yes" 1>&6
14732 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14733 cat >> confdefs.h <<EOF
14734 #define $ac_tr_func 1
14735 EOF
14736
14737 cat >> confdefs.h <<\EOF
14738 #define HAVE_SHL_LOAD 1
14739 EOF
14740
14741 HAVE_SHL_FUNCS=1
14742
14743 else
14744 echo "$ac_t""no" 1>&6
14745 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
14746 echo "configure:14747: checking for dld in -lshl_load" >&5
14747 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
14748 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14749 echo $ac_n "(cached) $ac_c" 1>&6
14750 else
14751 ac_save_LIBS="$LIBS"
14752 LIBS="-lshl_load $LIBS"
14753 cat > conftest.$ac_ext <<EOF
14754 #line 14755 "configure"
14755 #include "confdefs.h"
14756 /* Override any gcc2 internal prototype to avoid an error. */
14757 /* We use char because int might match the return type of a gcc2
14758 builtin and then its argument prototype would still apply. */
14759 char dld();
14760
14761 int main() {
14762 dld()
14763 ; return 0; }
14764 EOF
14765 if { (eval echo configure:14766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14766 rm -rf conftest*
14767 eval "ac_cv_lib_$ac_lib_var=yes"
14768 else
14769 echo "configure: failed program was:" >&5
14770 cat conftest.$ac_ext >&5
14771 rm -rf conftest*
14772 eval "ac_cv_lib_$ac_lib_var=no"
14773 fi
14774 rm -f conftest*
14775 LIBS="$ac_save_LIBS"
14776
14777 fi
14778 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14779 echo "$ac_t""yes" 1>&6
14780
14781 HAVE_SHL_FUNCS=1
14782 LIBS="$LIBS -ldld"
14783
14784 else
14785 echo "$ac_t""no" 1>&6
14786 fi
14787
14788
14789 fi
14790 done
14791
14792
14793 fi
14794
14795
14796 fi
14797 done
14798
14799
14800 if test "$HAVE_DL_FUNCS" = 1; then
14801 for ac_func in dlerror
14802 do
14803 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14804 echo "configure:14805: checking for $ac_func" >&5
14805 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14806 echo $ac_n "(cached) $ac_c" 1>&6
14807 else
14808 cat > conftest.$ac_ext <<EOF
14809 #line 14810 "configure"
14810 #include "confdefs.h"
14811 /* System header to define __stub macros and hopefully few prototypes,
14812 which can conflict with char $ac_func(); below. */
14813 #include <assert.h>
14814 /* Override any gcc2 internal prototype to avoid an error. */
14815 /* We use char because int might match the return type of a gcc2
14816 builtin and then its argument prototype would still apply. */
14817 char $ac_func();
14818
14819 int main() {
14820
14821 /* The GNU C library defines this for functions which it implements
14822 to always fail with ENOSYS. Some functions are actually named
14823 something starting with __ and the normal name is an alias. */
14824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14825 choke me
14826 #else
14827 $ac_func();
14828 #endif
14829
14830 ; return 0; }
14831 EOF
14832 if { (eval echo configure:14833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14833 rm -rf conftest*
14834 eval "ac_cv_func_$ac_func=yes"
14835 else
14836 echo "configure: failed program was:" >&5
14837 cat conftest.$ac_ext >&5
14838 rm -rf conftest*
14839 eval "ac_cv_func_$ac_func=no"
14840 fi
14841 rm -f conftest*
14842 fi
14843
14844 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14845 echo "$ac_t""yes" 1>&6
14846 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14847 cat >> confdefs.h <<EOF
14848 #define $ac_tr_func 1
14849 EOF
14850 cat >> confdefs.h <<\EOF
14851 #define HAVE_DLERROR 1
14852 EOF
14853
14854 else
14855 echo "$ac_t""no" 1>&6
14856 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
14857 echo "configure:14858: checking for dlerror in -ldl" >&5
14858 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
14859 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14860 echo $ac_n "(cached) $ac_c" 1>&6
14861 else
14862 ac_save_LIBS="$LIBS"
14863 LIBS="-ldl $LIBS"
14864 cat > conftest.$ac_ext <<EOF
14865 #line 14866 "configure"
14866 #include "confdefs.h"
14867 /* Override any gcc2 internal prototype to avoid an error. */
14868 /* We use char because int might match the return type of a gcc2
14869 builtin and then its argument prototype would still apply. */
14870 char dlerror();
14871
14872 int main() {
14873 dlerror()
14874 ; return 0; }
14875 EOF
14876 if { (eval echo configure:14877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14877 rm -rf conftest*
14878 eval "ac_cv_lib_$ac_lib_var=yes"
14879 else
14880 echo "configure: failed program was:" >&5
14881 cat conftest.$ac_ext >&5
14882 rm -rf conftest*
14883 eval "ac_cv_lib_$ac_lib_var=no"
14884 fi
14885 rm -f conftest*
14886 LIBS="$ac_save_LIBS"
14887
14888 fi
14889 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14890 echo "$ac_t""yes" 1>&6
14891 cat >> confdefs.h <<\EOF
14892 #define HAVE_DLERROR 1
14893 EOF
14894
14895 else
14896 echo "$ac_t""no" 1>&6
14897 fi
14898
14899 fi
14900 done
14901
14902 fi
14903 fi
14904
14905 if test "$HAVE_DL_FUNCS" = 0; then
14906 if test "$HAVE_SHL_FUNCS" = 0; then
14907 if test "$USE_UNIX" = 1; then
14908 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
14909 wxUSE_DYNLIB_CLASS=no
14910 else
14911 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
14912 fi
14913 fi
14914 fi
14915 fi
14916
14917 fi
14918
14919 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
14920 cat >> confdefs.h <<\EOF
14921 #define wxUSE_DYNLIB_CLASS 1
14922 EOF
14923
14924 else
14925 wxUSE_ODBC=no
14926 wxUSE_SERIAL=no
14927 fi
14928
14929
14930 if test "$wxUSE_UNICODE" = "yes" ; then
14931 cat >> confdefs.h <<\EOF
14932 #define wxUSE_UNICODE 1
14933 EOF
14934
14935 fi
14936
14937 if test "$wxUSE_WCSRTOMBS" = "yes" ; then
14938 cat >> confdefs.h <<\EOF
14939 #define wxUSE_WCSRTOMBS 1
14940 EOF
14941
14942 fi
14943
14944 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
14945 cat >> confdefs.h <<\EOF
14946 #define wxUSE_EXPERIMENTAL_PRINTF 1
14947 EOF
14948
14949 fi
14950
14951
14952 if test "$wxUSE_SERIAL" = "yes" ; then
14953 cat >> confdefs.h <<\EOF
14954 #define wxUSE_SERIAL 1
14955 EOF
14956
14957 fi
14958
14959
14960 IODBC_C_SRC=""
14961 if test "$wxUSE_ODBC" = "yes" ; then
14962 cat >> confdefs.h <<\EOF
14963 #define wxUSE_ODBC 1
14964 EOF
14965
14966 WXODBCFLAG="-D_IODBC_"
14967 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
14968 fi
14969
14970
14971 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
14972 cat >> confdefs.h <<\EOF
14973 #define wxUSE_POSTSCRIPT 1
14974 EOF
14975
14976 fi
14977
14978 cat >> confdefs.h <<\EOF
14979 #define wxUSE_AFM_FOR_POSTSCRIPT 1
14980 EOF
14981
14982
14983 cat >> confdefs.h <<\EOF
14984 #define wxUSE_NORMALIZED_PS_FONTS 1
14985 EOF
14986
14987
14988
14989 if test "$wxUSE_CONSTRAINTS" = "yes"; then
14990 cat >> confdefs.h <<\EOF
14991 #define wxUSE_CONSTRAINTS 1
14992 EOF
14993
14994 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
14995 fi
14996
14997 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
14998 cat >> confdefs.h <<\EOF
14999 #define wxUSE_MDI_ARCHITECTURE 1
15000 EOF
15001
15002 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
15003 fi
15004
15005 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
15006 cat >> confdefs.h <<\EOF
15007 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
15008 EOF
15009
15010 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
15011 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
15012 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
15013 fi
15014 fi
15015
15016 if test "$wxUSE_HELP" = "yes"; then
15017 cat >> confdefs.h <<\EOF
15018 #define wxUSE_HELP 1
15019 EOF
15020
15021 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
15022 fi
15023
15024 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
15025 if test "$wxUSE_CONSTRAINTS" != "yes"; then
15026 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
15027 else
15028 cat >> confdefs.h <<\EOF
15029 #define wxUSE_PRINTING_ARCHITECTURE 1
15030 EOF
15031
15032 fi
15033 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
15034 fi
15035
15036 if test "$wxUSE_PROLOGIO" = "yes" ; then
15037 cat >> confdefs.h <<\EOF
15038 #define wxUSE_PROLOGIO 1
15039 EOF
15040
15041 fi
15042
15043 if test "$wxUSE_RESOURCES" = "yes" ; then
15044 if test "$wxUSE_PROLOGIO" = "yes" ; then
15045 cat >> confdefs.h <<\EOF
15046 #define wxUSE_RESOURCES 1
15047 EOF
15048
15049 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
15050 else
15051 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
15052 fi
15053 fi
15054
15055 if test "$wxUSE_X_RESOURCES" = "yes"; then
15056 cat >> confdefs.h <<\EOF
15057 #define wxUSE_X_RESOURCES 1
15058 EOF
15059
15060 fi
15061
15062
15063 if test "$wxUSE_IPC" = "yes"; then
15064 if test "$wxUSE_SOCKETS" != "yes"; then
15065 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
15066 fi
15067
15068 cat >> confdefs.h <<\EOF
15069 #define wxUSE_IPC 1
15070 EOF
15071
15072 fi
15073
15074 if test "$wxUSE_CLIPBOARD" = "yes"; then
15075 cat >> confdefs.h <<\EOF
15076 #define wxUSE_CLIPBOARD 1
15077 EOF
15078
15079 fi
15080
15081 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
15082 if test "$wxUSE_GTK" = 1; then
15083 if test "$WXGTK12" != 1; then
15084 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
15085 wxUSE_DRAG_AND_DROP=no
15086 fi
15087 fi
15088
15089 if test "$wxUSE_MOTIF" = 1; then
15090 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
15091 wxUSE_DRAG_AND_DROP=no
15092 fi
15093
15094 if test "$wxUSE_MAC" = 1; then
15095 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
15096 wxUSE_DRAG_AND_DROP=no
15097 fi
15098
15099 if test "$USE_WIN32" = 1; then
15100
15101 for ac_hdr in ole2.h
15102 do
15103 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15104 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15105 echo "configure:15106: checking for $ac_hdr" >&5
15106 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15107 echo $ac_n "(cached) $ac_c" 1>&6
15108 else
15109 cat > conftest.$ac_ext <<EOF
15110 #line 15111 "configure"
15111 #include "confdefs.h"
15112 #include <$ac_hdr>
15113 EOF
15114 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15115 { (eval echo configure:15116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15116 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15117 if test -z "$ac_err"; then
15118 rm -rf conftest*
15119 eval "ac_cv_header_$ac_safe=yes"
15120 else
15121 echo "$ac_err" >&5
15122 echo "configure: failed program was:" >&5
15123 cat conftest.$ac_ext >&5
15124 rm -rf conftest*
15125 eval "ac_cv_header_$ac_safe=no"
15126 fi
15127 rm -f conftest*
15128 fi
15129 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15130 echo "$ac_t""yes" 1>&6
15131 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15132 cat >> confdefs.h <<EOF
15133 #define $ac_tr_hdr 1
15134 EOF
15135
15136 else
15137 echo "$ac_t""no" 1>&6
15138 fi
15139 done
15140
15141
15142 if test "$ac_cv_header_ole2_h" = "yes" ; then
15143 if test "$GCC" = yes ; then
15144 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
15145 ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)"
15146 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
15147 LIBS="$LIBS -lole32 -luuid"
15148
15149 if test "$wxUSE_METAFILE" = "yes"; then
15150 cat >> confdefs.h <<\EOF
15151 #define wxUSE_METAFILE 1
15152 EOF
15153
15154 cat >> confdefs.h <<\EOF
15155 #define wxUSE_ENH_METAFILE 1
15156 EOF
15157
15158 fi
15159 fi
15160 else
15161 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
15162 wxUSE_DRAG_AND_DROP=no
15163 fi
15164 fi
15165
15166 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
15167 cat >> confdefs.h <<\EOF
15168 #define wxUSE_DRAG_AND_DROP 1
15169 EOF
15170
15171 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
15172 fi
15173
15174 fi
15175
15176 if test "$wxUSE_SPLINES" = "yes" ; then
15177 cat >> confdefs.h <<\EOF
15178 #define wxUSE_SPLINES 1
15179 EOF
15180
15181 fi
15182
15183
15184 if test "$wxUSE_ACCEL" = "yes"; then
15185 cat >> confdefs.h <<\EOF
15186 #define wxUSE_ACCEL 1
15187 EOF
15188
15189 fi
15190
15191 if test "$wxUSE_CARET" = "yes"; then
15192 cat >> confdefs.h <<\EOF
15193 #define wxUSE_CARET 1
15194 EOF
15195
15196 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
15197 fi
15198
15199 if test "$wxUSE_COMBOBOX" = "yes"; then
15200 cat >> confdefs.h <<\EOF
15201 #define wxUSE_COMBOBOX 1
15202 EOF
15203
15204 fi
15205
15206 if test "$wxUSE_CHOICE" = "yes"; then
15207 cat >> confdefs.h <<\EOF
15208 #define wxUSE_CHOICE 1
15209 EOF
15210
15211 fi
15212
15213 if test "$wxUSE_BMPBUTTON" = "yes"; then
15214 cat >> confdefs.h <<\EOF
15215 #define wxUSE_BMPBUTTON 1
15216 EOF
15217
15218 fi
15219
15220 if test "$wxUSE_CHECKBOX" = "yes"; then
15221 cat >> confdefs.h <<\EOF
15222 #define wxUSE_CHECKBOX 1
15223 EOF
15224
15225 fi
15226
15227 if test "$wxUSE_CHECKLST" = "yes"; then
15228 cat >> confdefs.h <<\EOF
15229 #define wxUSE_CHECKLISTBOX 1
15230 EOF
15231
15232 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
15233 fi
15234
15235 if test "$wxUSE_GAUGE" = "yes"; then
15236 cat >> confdefs.h <<\EOF
15237 #define wxUSE_GAUGE 1
15238 EOF
15239
15240 fi
15241
15242 if test "$wxUSE_NEW_GRID" = "yes"; then
15243 wxUSE_GRID="yes"
15244 cat >> confdefs.h <<\EOF
15245 #define wxUSE_NEW_GRID 1
15246 EOF
15247
15248 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
15249 fi
15250
15251 if test "$wxUSE_GRID" = "yes"; then
15252 cat >> confdefs.h <<\EOF
15253 #define wxUSE_GRID 1
15254 EOF
15255
15256 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
15257 fi
15258
15259 if test "$wxUSE_IMAGLIST" = "yes"; then
15260 cat >> confdefs.h <<\EOF
15261 #define wxUSE_IMAGLIST 1
15262 EOF
15263
15264 fi
15265
15266 if test "$wxUSE_LISTBOX" = "yes"; then
15267 cat >> confdefs.h <<\EOF
15268 #define wxUSE_LISTBOX 1
15269 EOF
15270
15271 fi
15272
15273 if test "$wxUSE_LISTCTRL" = "yes"; then
15274 if test "$wxUSE_IMAGLIST" = "yes"; then
15275 cat >> confdefs.h <<\EOF
15276 #define wxUSE_LISTCTRL 1
15277 EOF
15278
15279 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
15280 else
15281 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
15282 fi
15283 fi
15284
15285 if test "$wxUSE_NOTEBOOK" = "yes"; then
15286 cat >> confdefs.h <<\EOF
15287 #define wxUSE_NOTEBOOK 1
15288 EOF
15289
15290 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
15291 fi
15292
15293 if test "$wxUSE_RADIOBOX" = "yes"; then
15294 cat >> confdefs.h <<\EOF
15295 #define wxUSE_RADIOBOX 1
15296 EOF
15297
15298 fi
15299
15300 if test "$wxUSE_RADIOBTN" = "yes"; then
15301 cat >> confdefs.h <<\EOF
15302 #define wxUSE_RADIOBTN 1
15303 EOF
15304
15305 fi
15306
15307 if test "$wxUSE_SASH" = "yes"; then
15308 cat >> confdefs.h <<\EOF
15309 #define wxUSE_SASH 1
15310 EOF
15311
15312 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
15313 fi
15314
15315 if test "$wxUSE_SCROLLBAR" = "yes"; then
15316 cat >> confdefs.h <<\EOF
15317 #define wxUSE_SCROLLBAR 1
15318 EOF
15319
15320 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
15321 fi
15322
15323 if test "$wxUSE_SLIDER" = "yes"; then
15324 cat >> confdefs.h <<\EOF
15325 #define wxUSE_SLIDER 1
15326 EOF
15327
15328 fi
15329
15330 if test "$wxUSE_SPINBTN" = "yes"; then
15331 cat >> confdefs.h <<\EOF
15332 #define wxUSE_SPINBTN 1
15333 EOF
15334
15335 fi
15336
15337 if test "$wxUSE_SPINCTRL" = "yes"; then
15338 cat >> confdefs.h <<\EOF
15339 #define wxUSE_SPINCTRL 1
15340 EOF
15341
15342 fi
15343
15344 if test "$wxUSE_SPLITTER" = "yes"; then
15345 cat >> confdefs.h <<\EOF
15346 #define wxUSE_SPLITTER 1
15347 EOF
15348
15349 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
15350 fi
15351
15352 if test "$wxUSE_STATBMP" = "yes"; then
15353 cat >> confdefs.h <<\EOF
15354 #define wxUSE_STATBMP 1
15355 EOF
15356
15357 fi
15358
15359 if test "$wxUSE_STATBOX" = "yes"; then
15360 cat >> confdefs.h <<\EOF
15361 #define wxUSE_STATBOX 1
15362 EOF
15363
15364 fi
15365
15366 if test "$wxUSE_STATLINE" = "yes"; then
15367 if test "$wxUSE_WINE" = 1 ; then
15368 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
15369 else
15370 cat >> confdefs.h <<\EOF
15371 #define wxUSE_STATLINE 1
15372 EOF
15373
15374 fi
15375 fi
15376
15377 if test "$wxUSE_STATUSBAR" = "yes"; then
15378 cat >> confdefs.h <<\EOF
15379 #define wxUSE_STATUSBAR 1
15380 EOF
15381
15382
15383 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
15384 fi
15385
15386 if test "$wxUSE_TABDIALOG" = "yes"; then
15387 cat >> confdefs.h <<\EOF
15388 #define wxUSE_TAB_DIALOG 1
15389 EOF
15390
15391 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
15392 fi
15393
15394 if test "$wxUSE_TOGGLEBTN" = "yes"; then
15395 cat >> confdefs.h <<\EOF
15396 #define wxUSE_TOGGLEBTN 1
15397 EOF
15398
15399 fi
15400
15401 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
15402 cat >> confdefs.h <<\EOF
15403 #define wxUSE_TOOLBAR_SIMPLE 1
15404 EOF
15405
15406 wxUSE_TOOLBAR="yes"
15407 fi
15408
15409 if test "$wxUSE_TOOLBAR" = "yes"; then
15410 cat >> confdefs.h <<\EOF
15411 #define wxUSE_TOOLBAR 1
15412 EOF
15413
15414
15415 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
15416 wxUSE_TOOLBAR_NATIVE="yes"
15417 fi
15418
15419 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
15420 fi
15421
15422 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
15423 cat >> confdefs.h <<\EOF
15424 #define wxUSE_TOOLBAR_NATIVE 1
15425 EOF
15426
15427 fi
15428
15429 if test "$wxUSE_TOOLTIPS" = "yes"; then
15430 if test "$wxUSE_MOTIF" = 1; then
15431 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
15432 else
15433 if test "$wxUSE_WINE" = 1; then
15434 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
15435 else
15436 cat >> confdefs.h <<\EOF
15437 #define wxUSE_TOOLTIPS 1
15438 EOF
15439
15440 fi
15441 fi
15442 fi
15443
15444 if test "$wxUSE_TREECTRL" = "yes"; then
15445 if test "$wxUSE_IMAGLIST" = "yes"; then
15446 cat >> confdefs.h <<\EOF
15447 #define wxUSE_TREECTRL 1
15448 EOF
15449
15450 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
15451 else
15452 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
15453 fi
15454 fi
15455
15456
15457
15458 if test "$wxUSE_DIRDLG" = "yes"; then
15459 if test "$wxUSE_CONSTRAINTS" != "yes"; then
15460 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
15461 else
15462 if test "$wxUSE_TREECTRL" != "yes"; then
15463 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
15464 else
15465 cat >> confdefs.h <<\EOF
15466 #define wxUSE_DIRDLG 1
15467 EOF
15468
15469 fi
15470 fi
15471 fi
15472
15473 if test "$wxUSE_TEXTDLG" = "yes"; then
15474 cat >> confdefs.h <<\EOF
15475 #define wxUSE_TEXTDLG 1
15476 EOF
15477
15478 fi
15479
15480 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
15481 if test "$wxUSE_CONSTRAINTS" != "yes"; then
15482 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
15483 else
15484 cat >> confdefs.h <<\EOF
15485 #define wxUSE_STARTUP_TIPS 1
15486 EOF
15487
15488 fi
15489 fi
15490
15491 if test "$wxUSE_PROGRESSDLG" = "yes"; then
15492 if test "$wxUSE_CONSTRAINTS" != "yes"; then
15493 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
15494 else
15495 cat >> confdefs.h <<\EOF
15496 #define wxUSE_PROGRESSDLG 1
15497 EOF
15498
15499 fi
15500 fi
15501
15502 if test "$wxUSE_MINIFRAME" = "yes"; then
15503 cat >> confdefs.h <<\EOF
15504 #define wxUSE_MINIFRAME 1
15505 EOF
15506
15507 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
15508 fi
15509
15510 if test "$wxUSE_HTML" = "yes"; then
15511 cat >> confdefs.h <<\EOF
15512 #define wxUSE_HTML 1
15513 EOF
15514
15515 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
15516 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
15517 fi
15518
15519 if test "$wxUSE_VALIDATORS" = "yes"; then
15520 cat >> confdefs.h <<\EOF
15521 #define wxUSE_VALIDATORS 1
15522 EOF
15523
15524 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
15525 fi
15526
15527 if test "$wxUSE_IMAGE" = "yes" ; then
15528 cat >> confdefs.h <<\EOF
15529 #define wxUSE_IMAGE 1
15530 EOF
15531
15532 fi
15533
15534 if test "$wxUSE_GIF" = "yes" ; then
15535 cat >> confdefs.h <<\EOF
15536 #define wxUSE_GIF 1
15537 EOF
15538
15539 fi
15540
15541 if test "$wxUSE_PCX" = "yes" ; then
15542 cat >> confdefs.h <<\EOF
15543 #define wxUSE_PCX 1
15544 EOF
15545
15546 fi
15547
15548 if test "$wxUSE_PNM" = "yes" ; then
15549 cat >> confdefs.h <<\EOF
15550 #define wxUSE_PNM 1
15551 EOF
15552
15553 fi
15554
15555 if test "$wxUSE_XPM" = "yes" ; then
15556 cat >> confdefs.h <<\EOF
15557 #define wxUSE_XPM 1
15558 EOF
15559
15560 fi
15561
15562
15563 if test "$cross_compiling" = "yes"; then
15564 OSINFO="\"$host\""
15565 else
15566 OSINFO=`uname -s -r -m`
15567 OSINFO="\"$OSINFO\""
15568 fi
15569
15570 cat >> confdefs.h <<EOF
15571 #define WXWIN_OS_DESCRIPTION $OSINFO
15572 EOF
15573
15574
15575
15576 GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
15577 OPENGL_LIBS="$OPENGL_LINK"
15578
15579 EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
15580 if test "$USE_MAC" = 1 ; then
15581 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
15582 fi
15583 if test "$wxUSE_GUI" = "yes"; then
15584 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
15585 fi
15586
15587 LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
15588
15589 INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
15590
15591 if test "$wxUSE_GTK" = 1; then
15592 WXCONFIG_INCLUDE=""
15593 else
15594 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
15595 fi
15596
15597 if test "$GXX" = yes ; then
15598 CXXWARNINGS="-Wall"
15599 fi
15600 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
15601
15602 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
15603 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
15604
15605 LDFLAGS="$LDFLAGS $PROFILE"
15606
15607 if test "$wxUSE_GUI" = "yes"; then
15608
15609 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag \
15610 drawing dynamic event font fractal image menu \
15611 minimal richedit"
15612
15613 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
15614 else
15615 SAMPLES_SUBDIRS=""
15616 fi
15617
15618 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
15712 echo "configure:15713: checking whether ${MAKE-make} sets \${MAKE}" >&5
15713 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
15714 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
15715 echo $ac_n "(cached) $ac_c" 1>&6
15716 else
15717 cat > conftestmake <<\EOF
15718 all:
15719 @echo 'ac_maketemp="${MAKE}"'
15720 EOF
15721 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15722 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
15723 if test -n "$ac_maketemp"; then
15724 eval ac_cv_prog_make_${ac_make}_set=yes
15725 else
15726 eval ac_cv_prog_make_${ac_make}_set=no
15727 fi
15728 rm -f conftestmake
15729 fi
15730 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
15731 echo "$ac_t""yes" 1>&6
15732 SET_MAKE=
15733 else
15734 echo "$ac_t""no" 1>&6
15735 SET_MAKE="MAKE=${MAKE-make}"
15736 fi
15737
15738
15739 if test -d include; then
15740 if test -d include/wx; then
15741 if test -d include/wx/${TOOLKIT_DIR}; then
15742 if test -f include/wx/${TOOLKIT_DIR}/setup.h; then
15743 mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h
15744 fi
15745 fi
15746 fi
15747 fi
15748
15749
15750
15751 if test "$wxUSE_GUI" = "yes"; then
15752 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
15753 wx_cv_path_ifs=$PATH_IFS
15754 wx_cv_program_ext=$PROGRAM_EXT
15755 wx_cv_target_library=$WX_TARGET_LIBRARY
15756 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
15757 subdirs="demos samples utils contrib"
15758
15759 fi
15760
15761 trap '' 1 2 15
15762 cat > confcache <<\EOF
15763 # This file is a shell script that caches the results of configure
15764 # tests run on this system so they can be shared between configure
15765 # scripts and configure runs. It is not useful on other systems.
15766 # If it contains results you don't want to keep, you may remove or edit it.
15767 #
15768 # By default, configure uses ./config.cache as the cache file,
15769 # creating it if it does not exist already. You can give configure
15770 # the --cache-file=FILE option to use a different cache file; that is
15771 # what configure does when it calls configure scripts in
15772 # subdirectories, so they share the cache.
15773 # Giving --cache-file=/dev/null disables caching, for debugging configure.
15774 # config.status only pays attention to the cache file if you give it the
15775 # --recheck option to rerun configure.
15776 #
15777 EOF
15778 # The following way of writing the cache mishandles newlines in values,
15779 # but we know of no workaround that is simple, portable, and efficient.
15780 # So, don't put newlines in cache variables' values.
15781 # Ultrix sh set writes to stderr and can't be redirected directly,
15782 # and sets the high bit in the cache file unless we assign to the vars.
15783 (set) 2>&1 |
15784 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15785 *ac_space=\ *)
15786 # `set' does not quote correctly, so add quotes (double-quote substitution
15787 # turns \\\\ into \\, and sed turns \\ into \).
15788 sed -n \
15789 -e "s/'/'\\\\''/g" \
15790 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15791 ;;
15792 *)
15793 # `set' quotes correctly as required by POSIX, so do not add quotes.
15794 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15795 ;;
15796 esac >> confcache
15797 if cmp -s $cache_file confcache; then
15798 :
15799 else
15800 if test -w $cache_file; then
15801 echo "updating cache $cache_file"
15802 cat confcache > $cache_file
15803 else
15804 echo "not updating unwritable cache $cache_file"
15805 fi
15806 fi
15807 rm -f confcache
15808
15809 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15810
15811 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15812 # Let make expand exec_prefix.
15813 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15814
15815 # Any assignment to VPATH causes Sun make to only execute
15816 # the first set of double-colon rules, so remove it if not needed.
15817 # If there is a colon in the path, we need to keep it.
15818 if test "x$srcdir" = x.; then
15819 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15820 fi
15821
15822 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15823
15824 DEFS=-DHAVE_CONFIG_H
15825
15826 # Without the "./", some shells look in PATH for config.status.
15827 : ${CONFIG_STATUS=./config.status}
15828
15829 echo creating $CONFIG_STATUS
15830 rm -f $CONFIG_STATUS
15831 cat > $CONFIG_STATUS <<EOF
15832 #! /bin/sh
15833 # Generated automatically by configure.
15834 # Run this file to recreate the current configuration.
15835 # This directory was configured as follows,
15836 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15837 #
15838 # $0 $ac_configure_args
15839 #
15840 # Compiler output produced by configure, useful for debugging
15841 # configure, is in ./config.log if it exists.
15842
15843 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15844 for ac_option
15845 do
15846 case "\$ac_option" in
15847 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15848 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15849 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15850 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15851 echo "$CONFIG_STATUS generated by autoconf version 2.13"
15852 exit 0 ;;
15853 -help | --help | --hel | --he | --h)
15854 echo "\$ac_cs_usage"; exit 0 ;;
15855 *) echo "\$ac_cs_usage"; exit 1 ;;
15856 esac
15857 done
15858
15859 ac_given_srcdir=$srcdir
15860 ac_given_INSTALL="$INSTALL"
15861
15862 trap 'rm -fr `echo "
15863 wx-config
15864 src/make.env
15865 src/makeprog.env
15866 src/makelib.env
15867 Makefile
15868 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15869 EOF
15870 cat >> $CONFIG_STATUS <<EOF
15871
15872 # Protect against being on the right side of a sed subst in config.status.
15873 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15874 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15875 $ac_vpsub
15876 $extrasub
15877 s%@SHELL@%$SHELL%g
15878 s%@CFLAGS@%$CFLAGS%g
15879 s%@CPPFLAGS@%$CPPFLAGS%g
15880 s%@CXXFLAGS@%$CXXFLAGS%g
15881 s%@FFLAGS@%$FFLAGS%g
15882 s%@DEFS@%$DEFS%g
15883 s%@LDFLAGS@%$LDFLAGS%g
15884 s%@LIBS@%$LIBS%g
15885 s%@exec_prefix@%$exec_prefix%g
15886 s%@prefix@%$prefix%g
15887 s%@program_transform_name@%$program_transform_name%g
15888 s%@bindir@%$bindir%g
15889 s%@sbindir@%$sbindir%g
15890 s%@libexecdir@%$libexecdir%g
15891 s%@datadir@%$datadir%g
15892 s%@sysconfdir@%$sysconfdir%g
15893 s%@sharedstatedir@%$sharedstatedir%g
15894 s%@localstatedir@%$localstatedir%g
15895 s%@libdir@%$libdir%g
15896 s%@includedir@%$includedir%g
15897 s%@oldincludedir@%$oldincludedir%g
15898 s%@infodir@%$infodir%g
15899 s%@mandir@%$mandir%g
15900 s%@host@%$host%g
15901 s%@host_alias@%$host_alias%g
15902 s%@host_cpu@%$host_cpu%g
15903 s%@host_vendor@%$host_vendor%g
15904 s%@host_os@%$host_os%g
15905 s%@target@%$target%g
15906 s%@target_alias@%$target_alias%g
15907 s%@target_cpu@%$target_cpu%g
15908 s%@target_vendor@%$target_vendor%g
15909 s%@target_os@%$target_os%g
15910 s%@build@%$build%g
15911 s%@build_alias@%$build_alias%g
15912 s%@build_cpu@%$build_cpu%g
15913 s%@build_vendor@%$build_vendor%g
15914 s%@build_os@%$build_os%g
15915 s%@CC@%$CC%g
15916 s%@CPP@%$CPP%g
15917 s%@CXX@%$CXX%g
15918 s%@CXXCPP@%$CXXCPP%g
15919 s%@RANLIB@%$RANLIB%g
15920 s%@AR@%$AR%g
15921 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15922 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15923 s%@INSTALL_DATA@%$INSTALL_DATA%g
15924 s%@STRIP@%$STRIP%g
15925 s%@YACC@%$YACC%g
15926 s%@LEX@%$LEX%g
15927 s%@LEXLIB@%$LEXLIB%g
15928 s%@LN_S@%$LN_S%g
15929 s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
15930 s%@GTK_CONFIG@%$GTK_CONFIG%g
15931 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
15932 s%@GTK_LIBS@%$GTK_LIBS%g
15933 s%@X_CFLAGS@%$X_CFLAGS%g
15934 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
15935 s%@X_LIBS@%$X_LIBS%g
15936 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
15937 s%@REZ@%$REZ%g
15938 s%@DEREZ@%$DEREZ%g
15939 s%@LEX_STEM@%$LEX_STEM%g
15940 s%@PATH_IFS@%$PATH_IFS%g
15941 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
15942 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
15943 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
15944 s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
15945 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
15946 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
15947 s%@WX_LIBRARY@%$WX_LIBRARY%g
15948 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
15949 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
15950 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
15951 s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
15952 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
15953 s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
15954 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
15955 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
15956 s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
15957 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
15958 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
15959 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
15960 s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
15961 s%@WX_ALL@%$WX_ALL%g
15962 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
15963 s%@SHARED_LD@%$SHARED_LD%g
15964 s%@PIC_FLAG@%$PIC_FLAG%g
15965 s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
15966 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
15967 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
15968 s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
15969 s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
15970 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
15971 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
15972 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
15973 s%@USE_GUI@%$USE_GUI%g
15974 s%@AFMINSTALL@%$AFMINSTALL%g
15975 s%@TOOLKIT@%$TOOLKIT%g
15976 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
15977 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
15978 s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
15979 s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
15980 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
15981 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
15982 s%@ALL_DEPFILES@%$ALL_DEPFILES%g
15983 s%@GUIDIST@%$GUIDIST%g
15984 s%@PORT_FILES@%$PORT_FILES%g
15985 s%@DISTDIR@%$DISTDIR%g
15986 s%@RPM_SPEC@%$RPM_SPEC%g
15987 s%@RPM_FILES@%$RPM_FILES%g
15988 s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
15989 s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
15990 s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
15991 s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
15992 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
15993 s%@USER_SUBDIRS@%$USER_SUBDIRS%g
15994 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
15995 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
15996 s%@EXTRADEFS@%$EXTRADEFS%g
15997 s%@LD_LIBS@%$LD_LIBS%g
15998 s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
15999 s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
16000 s%@RESPROGRAM@%$RESPROGRAM%g
16001 s%@RESCOMP@%$RESCOMP%g
16002 s%@RESFLAGS@%$RESFLAGS%g
16003 s%@REZFLAGS@%$REZFLAGS%g
16004 s%@DEREZFLAGS@%$DEREZFLAGS%g
16005 s%@LIBWXMACRES@%$LIBWXMACRES%g
16006 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
16007 s%@DLLTOOL@%$DLLTOOL%g
16008 s%@AS@%$AS%g
16009 s%@NM@%$NM%g
16010 s%@LD@%$LD%g
16011 s%@MAKEINFO@%$MAKEINFO%g
16012 s%@SET_MAKE@%$SET_MAKE%g
16013 s%@subdirs@%$subdirs%g
16014
16015 CEOF
16016 EOF
16017
16018 cat >> $CONFIG_STATUS <<\EOF
16019
16020 # Split the substitutions into bite-sized pieces for seds with
16021 # small command number limits, like on Digital OSF/1 and HP-UX.
16022 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16023 ac_file=1 # Number of current file.
16024 ac_beg=1 # First line for current file.
16025 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16026 ac_more_lines=:
16027 ac_sed_cmds=""
16028 while $ac_more_lines; do
16029 if test $ac_beg -gt 1; then
16030 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16031 else
16032 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16033 fi
16034 if test ! -s conftest.s$ac_file; then
16035 ac_more_lines=false
16036 rm -f conftest.s$ac_file
16037 else
16038 if test -z "$ac_sed_cmds"; then
16039 ac_sed_cmds="sed -f conftest.s$ac_file"
16040 else
16041 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16042 fi
16043 ac_file=`expr $ac_file + 1`
16044 ac_beg=$ac_end
16045 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16046 fi
16047 done
16048 if test -z "$ac_sed_cmds"; then
16049 ac_sed_cmds=cat
16050 fi
16051 EOF
16052
16053 cat >> $CONFIG_STATUS <<EOF
16054
16055 CONFIG_FILES=\${CONFIG_FILES-"wx-config
16056 src/make.env
16057 src/makeprog.env
16058 src/makelib.env
16059 Makefile
16060 "}
16061 EOF
16062 cat >> $CONFIG_STATUS <<\EOF
16063 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16064 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16065 case "$ac_file" in
16066 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16067 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16068 *) ac_file_in="${ac_file}.in" ;;
16069 esac
16070
16071 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16072
16073 # Remove last slash and all that follows it. Not all systems have dirname.
16074 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16075 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16076 # The file is in a subdirectory.
16077 test ! -d "$ac_dir" && mkdir "$ac_dir"
16078 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16079 # A "../" for each directory in $ac_dir_suffix.
16080 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16081 else
16082 ac_dir_suffix= ac_dots=
16083 fi
16084
16085 case "$ac_given_srcdir" in
16086 .) srcdir=.
16087 if test -z "$ac_dots"; then top_srcdir=.
16088 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16089 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16090 *) # Relative path.
16091 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16092 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16093 esac
16094
16095 case "$ac_given_INSTALL" in
16096 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16097 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16098 esac
16099
16100 echo creating "$ac_file"
16101 rm -f "$ac_file"
16102 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16103 case "$ac_file" in
16104 *Makefile*) ac_comsub="1i\\
16105 # $configure_input" ;;
16106 *) ac_comsub= ;;
16107 esac
16108
16109 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16110 sed -e "$ac_comsub
16111 s%@configure_input@%$configure_input%g
16112 s%@srcdir@%$srcdir%g
16113 s%@top_srcdir@%$top_srcdir%g
16114 s%@INSTALL@%$INSTALL%g
16115 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16116 fi; done
16117 rm -f conftest.s*
16118
16119 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16120 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16121 #
16122 # ac_d sets the value in "#define NAME VALUE" lines.
16123 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16124 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16125 ac_dC='\3'
16126 ac_dD='%g'
16127 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16128 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16129 ac_uB='\([ ]\)%\1#\2define\3'
16130 ac_uC=' '
16131 ac_uD='\4%g'
16132 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16133 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16134 ac_eB='$%\1#\2define\3'
16135 ac_eC=' '
16136 ac_eD='%g'
16137
16138 if test "${CONFIG_HEADERS+set}" != set; then
16139 EOF
16140 cat >> $CONFIG_STATUS <<EOF
16141 CONFIG_HEADERS="setup.h:setup.h.in"
16142 EOF
16143 cat >> $CONFIG_STATUS <<\EOF
16144 fi
16145 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16146 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16147 case "$ac_file" in
16148 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16149 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16150 *) ac_file_in="${ac_file}.in" ;;
16151 esac
16152
16153 echo creating $ac_file
16154
16155 rm -f conftest.frag conftest.in conftest.out
16156 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16157 cat $ac_file_inputs > conftest.in
16158
16159 EOF
16160
16161 # Transform confdefs.h into a sed script conftest.vals that substitutes
16162 # the proper values into config.h.in to produce config.h. And first:
16163 # Protect against being on the right side of a sed subst in config.status.
16164 # Protect against being in an unquoted here document in config.status.
16165 rm -f conftest.vals
16166 cat > conftest.hdr <<\EOF
16167 s/[\\&%]/\\&/g
16168 s%[\\$`]%\\&%g
16169 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16170 s%ac_d%ac_u%gp
16171 s%ac_u%ac_e%gp
16172 EOF
16173 sed -n -f conftest.hdr confdefs.h > conftest.vals
16174 rm -f conftest.hdr
16175
16176 # This sed command replaces #undef with comments. This is necessary, for
16177 # example, in the case of _POSIX_SOURCE, which is predefined and required
16178 # on some systems where configure will not decide to define it.
16179 cat >> conftest.vals <<\EOF
16180 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16181 EOF
16182
16183 # Break up conftest.vals because some shells have a limit on
16184 # the size of here documents, and old seds have small limits too.
16185
16186 rm -f conftest.tail
16187 while :
16188 do
16189 ac_lines=`grep -c . conftest.vals`
16190 # grep -c gives empty output for an empty file on some AIX systems.
16191 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16192 # Write a limited-size here document to conftest.frag.
16193 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16194 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16195 echo 'CEOF
16196 sed -f conftest.frag conftest.in > conftest.out
16197 rm -f conftest.in
16198 mv conftest.out conftest.in
16199 ' >> $CONFIG_STATUS
16200 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16201 rm -f conftest.vals
16202 mv conftest.tail conftest.vals
16203 done
16204 rm -f conftest.vals
16205
16206 cat >> $CONFIG_STATUS <<\EOF
16207 rm -f conftest.frag conftest.h
16208 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16209 cat conftest.in >> conftest.h
16210 rm -f conftest.in
16211 if cmp -s $ac_file conftest.h 2>/dev/null; then
16212 echo "$ac_file is unchanged"
16213 rm -f conftest.h
16214 else
16215 # Remove last slash and all that follows it. Not all systems have dirname.
16216 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16217 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16218 # The file is in a subdirectory.
16219 test ! -d "$ac_dir" && mkdir "$ac_dir"
16220 fi
16221 rm -f $ac_file
16222 mv conftest.h $ac_file
16223 fi
16224 fi; done
16225
16226 EOF
16227 cat >> $CONFIG_STATUS <<EOF
16228
16229 TOOLKIT_DIR="${TOOLKIT_DIR}"
16230 TOOLKIT_NAME="${TOOLKIT_NAME}"
16231 LN_S="${LN_S}"
16232
16233
16234 EOF
16235 cat >> $CONFIG_STATUS <<\EOF
16236
16237 chmod +x wx-config
16238 mv wx-config wx${TOOLKIT_NAME}-config
16239 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
16240
16241
16242 if test ! -d lib; then
16243 mkdir lib
16244 fi
16245 if test ! -d lib/wx; then
16246 mkdir lib/wx
16247 fi
16248 if test ! -d lib/wx/include; then
16249 mkdir lib/wx/include
16250 fi
16251 if test ! -d lib/wx/include/wx; then
16252 mkdir lib/wx/include/wx
16253 fi
16254 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
16255 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
16256 fi
16257 if test -f setup.h; then
16258 cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
16259 fi
16260
16261
16262 if test ! -d include; then
16263 mkdir include
16264 fi
16265 if test ! -d include/wx; then
16266 mkdir include/wx
16267 fi
16268 if test ! -d include/wx/${TOOLKIT_DIR}; then
16269 mkdir include/wx/${TOOLKIT_DIR}
16270 fi
16271 if test -f setup.h; then
16272 cp -fp setup.h include/wx/${TOOLKIT_DIR}/setup.h
16273 fi
16274
16275
16276 exit 0
16277 EOF
16278 chmod +x $CONFIG_STATUS
16279 rm -fr confdefs* $ac_clean_files
16280 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
16281
16282 if test "$no_recursion" != yes; then
16283
16284 # Remove --cache-file and --srcdir arguments so they do not pile up.
16285 ac_sub_configure_args=
16286 ac_prev=
16287 for ac_arg in $ac_configure_args; do
16288 if test -n "$ac_prev"; then
16289 ac_prev=
16290 continue
16291 fi
16292 case "$ac_arg" in
16293 -cache-file | --cache-file | --cache-fil | --cache-fi \
16294 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16295 ac_prev=cache_file ;;
16296 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16297 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
16298 ;;
16299 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16300 ac_prev=srcdir ;;
16301 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16302 ;;
16303 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
16304 esac
16305 done
16306
16307 for ac_config_dir in demos samples utils contrib; do
16308
16309 # Do not complain, so a configure script can configure whichever
16310 # parts of a large source tree are present.
16311 if test ! -d $srcdir/$ac_config_dir; then
16312 continue
16313 fi
16314
16315 echo configuring in $ac_config_dir
16316
16317 case "$srcdir" in
16318 .) ;;
16319 *)
16320 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
16321 else
16322 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
16323 fi
16324 ;;
16325 esac
16326
16327 ac_popdir=`pwd`
16328 cd $ac_config_dir
16329
16330 # A "../" for each directory in /$ac_config_dir.
16331 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
16332
16333 case "$srcdir" in
16334 .) # No --srcdir option. We are building in place.
16335 ac_sub_srcdir=$srcdir ;;
16336 /*) # Absolute path.
16337 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
16338 *) # Relative path.
16339 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
16340 esac
16341
16342 # Check for guested configure; otherwise get Cygnus style configure.
16343 if test -f $ac_sub_srcdir/configure; then
16344 ac_sub_configure=$ac_sub_srcdir/configure
16345 elif test -f $ac_sub_srcdir/configure.in; then
16346 ac_sub_configure=$ac_configure
16347 else
16348 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
16349 ac_sub_configure=
16350 fi
16351
16352 # The recursion is here.
16353 if test -n "$ac_sub_configure"; then
16354
16355 # Make the cache file name correct relative to the subdirectory.
16356 case "$cache_file" in
16357 /*) ac_sub_cache_file=$cache_file ;;
16358 *) # Relative path.
16359 ac_sub_cache_file="$ac_dots$cache_file" ;;
16360 esac
16361 case "$ac_given_INSTALL" in
16362 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16363 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16364 esac
16365
16366 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
16367 # The eval makes quoting arguments work.
16368 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
16369 then :
16370 else
16371 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
16372 fi
16373 fi
16374
16375 cd $ac_popdir
16376 done
16377 fi
16378
16379