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