]> git.saurik.com Git - wxWidgets.git/blob - configure
Added wxPalette, wxRegion, wxRegionIterator, wxTaskbarIcon
[wxWidgets.git] / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --with-x use the X Window System"
16 ac_help="$ac_help
17 **--with-gtk use GTK"
18 ac_help="$ac_help
19 **--with-qt use Qt"
20 ac_help="$ac_help
21 **--with-motif use Motif/Lesstif"
22 ac_help="$ac_help
23 **--with-shared create shared libraries"
24 ac_help="$ac_help
25 **--with-optimise create optimised code"
26 ac_help="$ac_help
27 **--with-debug_flag create code with WXDEBUG define set to 1"
28 ac_help="$ac_help
29 **--with-debug_info create code with debuging information"
30 ac_help="$ac_help
31 **--with-mem_traing create code with memory tracing"
32 ac_help="$ac_help
33 **--with-dmalloc use dmalloc memory debug library (www.letters.com/dmalloc/)"
34 ac_help="$ac_help
35 **--with-profile create code with profiling information"
36 ac_help="$ac_help
37 **--with_apple_ieee use the Apple IEEE codec"
38 ac_help="$ac_help
39 **--with-zlib use zlib for LZW comression"
40 ac_help="$ac_help
41 **--with-libpng use libpng (PNG image format)"
42 ac_help="$ac_help
43 **--with-odbc use iODBC and wxODBC classes"
44 ac_help="$ac_help
45 **--with-opengl use OpenGL (or Mesa)"
46 ac_help="$ac_help
47 **--with-gauge use wxGauge class"
48 ac_help="$ac_help
49 **--with-combobox use wxComboBox class"
50 ac_help="$ac_help
51 **--with-scrollbar use wxScrollbar class"
52 ac_help="$ac_help
53 **--with-listctrl use wxListCtrl class"
54 ac_help="$ac_help
55 **--with-treectrl use wxTreeCtrl class"
56 ac_help="$ac_help
57 **--with-grid use wxGrid class"
58 ac_help="$ac_help
59 **--with-tab_dialog use wxTabDia class"
60 ac_help="$ac_help
61 **--with-notebook use wxNotebook class"
62 ac_help="$ac_help
63 **--with-timedate use wxTime and wxDate classes"
64 ac_help="$ac_help
65 **--with-fraction use wxFraction class"
66 ac_help="$ac_help
67 **--with-log use logging system"
68 ac_help="$ac_help
69 **--with-intl use internationalization system"
70 ac_help="$ac_help
71 **--with-config use wxConfig class"
72 ac_help="$ac_help
73 **--with-streams use wxStream etc classes"
74 ac_help="$ac_help
75 **--with-serial use class serialization"
76 ac_help="$ac_help
77 **--with-file use wxFile class"
78 ac_help="$ac_help
79 **--with-textfile use wxTextFile class"
80 ac_help="$ac_help
81 **--with-afmfonts use Adobe Font Metric Font table"
82 ac_help="$ac_help
83 **--with-PS-normalized use normalized PS fonts"
84 ac_help="$ac_help
85 **--with-postscript use wxPostscriptDC device context"
86 ac_help="$ac_help
87 **--with-unicode compile wxString with Unicode support"
88 ac_help="$ac_help
89 **--with-wcsrtombs use wcsrtombs instead of (buggy in GNU libc5) wcstombs"
90 ac_help="$ac_help
91 **--with-wxresources use wxWindows's resources"
92 ac_help="$ac_help
93 **--with-prologio use Prolog IO library"
94 ac_help="$ac_help
95 **--with-rpc use Prolog's remote procedure calls"
96 ac_help="$ac_help
97 **--with-ipc use interprocess communication (wxSocket etc.)"
98 ac_help="$ac_help
99 **--with-resources use X resources for saving information"
100 ac_help="$ac_help
101 **--with-clipboard use wxClipboard classes"
102 ac_help="$ac_help
103 **--with-dnd use Drag'n'Drop classes"
104 ac_help="$ac_help
105 **--with-constraints use layout-constraints system"
106 ac_help="$ac_help
107 **--with-mdi use multiple document interface architecture"
108 ac_help="$ac_help
109 **--with-docview use document view architecture"
110 ac_help="$ac_help
111 **--with-printarch use printing architecture"
112 ac_help="$ac_help
113 **--with-help use help (using external browser at present)"
114 ac_help="$ac_help
115 **--with-gtk-prefix=PFX Prefix where GTK is installed"
116 ac_help="$ac_help
117 **--with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
118 ac_help="$ac_help
119 **--without-threads Force disabling threads"
120
121 # Initialize some variables set by options.
122 # The variables have the same names as the options, with
123 # dashes changed to underlines.
124 build=NONE
125 cache_file=./config.cache
126 exec_prefix=NONE
127 host=NONE
128 no_create=
129 nonopt=NONE
130 no_recursion=
131 prefix=NONE
132 program_prefix=NONE
133 program_suffix=NONE
134 program_transform_name=s,x,x,
135 silent=
136 site=
137 srcdir=
138 target=NONE
139 verbose=
140 x_includes=NONE
141 x_libraries=NONE
142 bindir='${exec_prefix}/bin'
143 sbindir='${exec_prefix}/sbin'
144 libexecdir='${exec_prefix}/libexec'
145 datadir='${prefix}/share'
146 sysconfdir='${prefix}/etc'
147 sharedstatedir='${prefix}/com'
148 localstatedir='${prefix}/var'
149 libdir='${exec_prefix}/lib'
150 includedir='${prefix}/include'
151 oldincludedir='/usr/include'
152 infodir='${prefix}/info'
153 mandir='${prefix}/man'
154
155 # Initialize some other variables.
156 subdirs=
157 MFLAGS= MAKEFLAGS=
158 # Maximum number of lines to put in a shell here document.
159 ac_max_here_lines=12
160
161 ac_prev=
162 for ac_option
163 do
164
165 # If the previous option needs an argument, assign it.
166 if test -n "$ac_prev"; then
167 eval "$ac_prev=\$ac_option"
168 ac_prev=
169 continue
170 fi
171
172 case "$ac_option" in
173 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
174 *) ac_optarg= ;;
175 esac
176
177 # Accept the important Cygnus configure options, so we can diagnose typos.
178
179 case "$ac_option" in
180
181 -bindir | --bindir | --bindi | --bind | --bin | --bi)
182 ac_prev=bindir ;;
183 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
184 bindir="$ac_optarg" ;;
185
186 -build | --build | --buil | --bui | --bu)
187 ac_prev=build ;;
188 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
189 build="$ac_optarg" ;;
190
191 -cache-file | --cache-file | --cache-fil | --cache-fi \
192 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
193 ac_prev=cache_file ;;
194 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
195 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
196 cache_file="$ac_optarg" ;;
197
198 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
199 ac_prev=datadir ;;
200 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
201 | --da=*)
202 datadir="$ac_optarg" ;;
203
204 -disable-* | --disable-*)
205 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
206 # Reject names that are not valid shell variable names.
207 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
208 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
209 fi
210 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
211 eval "enable_${ac_feature}=no" ;;
212
213 -enable-* | --enable-*)
214 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
215 # Reject names that are not valid shell variable names.
216 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
217 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
218 fi
219 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
220 case "$ac_option" in
221 *=*) ;;
222 *) ac_optarg=yes ;;
223 esac
224 eval "enable_${ac_feature}='$ac_optarg'" ;;
225
226 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
227 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
228 | --exec | --exe | --ex)
229 ac_prev=exec_prefix ;;
230 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
231 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
232 | --exec=* | --exe=* | --ex=*)
233 exec_prefix="$ac_optarg" ;;
234
235 -gas | --gas | --ga | --g)
236 # Obsolete; use --with-gas.
237 with_gas=yes ;;
238
239 -help | --help | --hel | --he)
240 # Omit some internal or obsolete options to make the list less imposing.
241 # This message is too long to be a string in the A/UX 3.1 sh.
242 cat << EOF
243 Usage: configure [options] [host]
244 Options: [defaults in brackets after descriptions]
245 Configuration:
246 --cache-file=FILE cache test results in FILE
247 --help print this message
248 --no-create do not create output files
249 --quiet, --silent do not print \`checking...' messages
250 --version print the version of autoconf that created configure
251 Directory and file names:
252 --prefix=PREFIX install architecture-independent files in PREFIX
253 [$ac_default_prefix]
254 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
255 [same as prefix]
256 --bindir=DIR user executables in DIR [EPREFIX/bin]
257 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
258 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
259 --datadir=DIR read-only architecture-independent data in DIR
260 [PREFIX/share]
261 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
262 --sharedstatedir=DIR modifiable architecture-independent data in DIR
263 [PREFIX/com]
264 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
265 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
266 --includedir=DIR C header files in DIR [PREFIX/include]
267 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
268 --infodir=DIR info documentation in DIR [PREFIX/info]
269 --mandir=DIR man documentation in DIR [PREFIX/man]
270 --srcdir=DIR find the sources in DIR [configure dir or ..]
271 --program-prefix=PREFIX prepend PREFIX to installed program names
272 --program-suffix=SUFFIX append SUFFIX to installed program names
273 --program-transform-name=PROGRAM
274 run sed PROGRAM on installed program names
275 EOF
276 cat << EOF
277 Host type:
278 --build=BUILD configure for building on BUILD [BUILD=HOST]
279 --host=HOST configure for HOST [guessed]
280 --target=TARGET configure for TARGET [TARGET=HOST]
281 Features and packages:
282 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
283 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
284 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
285 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
286 --x-includes=DIR X include files are in DIR
287 --x-libraries=DIR X library files are in DIR
288 EOF
289 if test -n "$ac_help"; then
290 echo "--enable and --with options recognized:$ac_help"
291 fi
292 exit 0 ;;
293
294 -host | --host | --hos | --ho)
295 ac_prev=host ;;
296 -host=* | --host=* | --hos=* | --ho=*)
297 host="$ac_optarg" ;;
298
299 -includedir | --includedir | --includedi | --included | --include \
300 | --includ | --inclu | --incl | --inc)
301 ac_prev=includedir ;;
302 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
303 | --includ=* | --inclu=* | --incl=* | --inc=*)
304 includedir="$ac_optarg" ;;
305
306 -infodir | --infodir | --infodi | --infod | --info | --inf)
307 ac_prev=infodir ;;
308 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
309 infodir="$ac_optarg" ;;
310
311 -libdir | --libdir | --libdi | --libd)
312 ac_prev=libdir ;;
313 -libdir=* | --libdir=* | --libdi=* | --libd=*)
314 libdir="$ac_optarg" ;;
315
316 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
317 | --libexe | --libex | --libe)
318 ac_prev=libexecdir ;;
319 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
320 | --libexe=* | --libex=* | --libe=*)
321 libexecdir="$ac_optarg" ;;
322
323 -localstatedir | --localstatedir | --localstatedi | --localstated \
324 | --localstate | --localstat | --localsta | --localst \
325 | --locals | --local | --loca | --loc | --lo)
326 ac_prev=localstatedir ;;
327 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
328 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
329 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
330 localstatedir="$ac_optarg" ;;
331
332 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
333 ac_prev=mandir ;;
334 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
335 mandir="$ac_optarg" ;;
336
337 -nfp | --nfp | --nf)
338 # Obsolete; use --without-fp.
339 with_fp=no ;;
340
341 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
342 | --no-cr | --no-c)
343 no_create=yes ;;
344
345 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
346 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
347 no_recursion=yes ;;
348
349 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
350 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
351 | --oldin | --oldi | --old | --ol | --o)
352 ac_prev=oldincludedir ;;
353 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
354 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
355 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
356 oldincludedir="$ac_optarg" ;;
357
358 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
359 ac_prev=prefix ;;
360 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
361 prefix="$ac_optarg" ;;
362
363 -program-prefix | --program-prefix | --program-prefi | --program-pref \
364 | --program-pre | --program-pr | --program-p)
365 ac_prev=program_prefix ;;
366 -program-prefix=* | --program-prefix=* | --program-prefi=* \
367 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
368 program_prefix="$ac_optarg" ;;
369
370 -program-suffix | --program-suffix | --program-suffi | --program-suff \
371 | --program-suf | --program-su | --program-s)
372 ac_prev=program_suffix ;;
373 -program-suffix=* | --program-suffix=* | --program-suffi=* \
374 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
375 program_suffix="$ac_optarg" ;;
376
377 -program-transform-name | --program-transform-name \
378 | --program-transform-nam | --program-transform-na \
379 | --program-transform-n | --program-transform- \
380 | --program-transform | --program-transfor \
381 | --program-transfo | --program-transf \
382 | --program-trans | --program-tran \
383 | --progr-tra | --program-tr | --program-t)
384 ac_prev=program_transform_name ;;
385 -program-transform-name=* | --program-transform-name=* \
386 | --program-transform-nam=* | --program-transform-na=* \
387 | --program-transform-n=* | --program-transform-=* \
388 | --program-transform=* | --program-transfor=* \
389 | --program-transfo=* | --program-transf=* \
390 | --program-trans=* | --program-tran=* \
391 | --progr-tra=* | --program-tr=* | --program-t=*)
392 program_transform_name="$ac_optarg" ;;
393
394 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
395 | -silent | --silent | --silen | --sile | --sil)
396 silent=yes ;;
397
398 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
399 ac_prev=sbindir ;;
400 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
401 | --sbi=* | --sb=*)
402 sbindir="$ac_optarg" ;;
403
404 -sharedstatedir | --sharedstatedir | --sharedstatedi \
405 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
406 | --sharedst | --shareds | --shared | --share | --shar \
407 | --sha | --sh)
408 ac_prev=sharedstatedir ;;
409 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
410 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
411 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
412 | --sha=* | --sh=*)
413 sharedstatedir="$ac_optarg" ;;
414
415 -site | --site | --sit)
416 ac_prev=site ;;
417 -site=* | --site=* | --sit=*)
418 site="$ac_optarg" ;;
419
420 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
421 ac_prev=srcdir ;;
422 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
423 srcdir="$ac_optarg" ;;
424
425 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
426 | --syscon | --sysco | --sysc | --sys | --sy)
427 ac_prev=sysconfdir ;;
428 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
429 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
430 sysconfdir="$ac_optarg" ;;
431
432 -target | --target | --targe | --targ | --tar | --ta | --t)
433 ac_prev=target ;;
434 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
435 target="$ac_optarg" ;;
436
437 -v | -verbose | --verbose | --verbos | --verbo | --verb)
438 verbose=yes ;;
439
440 -version | --version | --versio | --versi | --vers)
441 echo "configure generated by autoconf version 2.12"
442 exit 0 ;;
443
444 -with-* | --with-*)
445 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
446 # Reject names that are not valid shell variable names.
447 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
448 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
449 fi
450 ac_package=`echo $ac_package| sed 's/-/_/g'`
451 case "$ac_option" in
452 *=*) ;;
453 *) ac_optarg=yes ;;
454 esac
455 eval "with_${ac_package}='$ac_optarg'" ;;
456
457 -without-* | --without-*)
458 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
459 # Reject names that are not valid shell variable names.
460 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
461 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
462 fi
463 ac_package=`echo $ac_package| sed 's/-/_/g'`
464 eval "with_${ac_package}=no" ;;
465
466 --x)
467 # Obsolete; use --with-x.
468 with_x=yes ;;
469
470 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
471 | --x-incl | --x-inc | --x-in | --x-i)
472 ac_prev=x_includes ;;
473 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
474 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
475 x_includes="$ac_optarg" ;;
476
477 -x-libraries | --x-libraries | --x-librarie | --x-librari \
478 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
479 ac_prev=x_libraries ;;
480 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
481 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
482 x_libraries="$ac_optarg" ;;
483
484 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
485 ;;
486
487 *)
488 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
489 echo "configure: warning: $ac_option: invalid host type" 1>&2
490 fi
491 if test "x$nonopt" != xNONE; then
492 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
493 fi
494 nonopt="$ac_option"
495 ;;
496
497 esac
498 done
499
500 if test -n "$ac_prev"; then
501 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
502 fi
503
504 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
505
506 # File descriptor usage:
507 # 0 standard input
508 # 1 file creation
509 # 2 errors and warnings
510 # 3 some systems may open it to /dev/tty
511 # 4 used on the Kubota Titan
512 # 6 checking for... messages and results
513 # 5 compiler messages saved in config.log
514 if test "$silent" = yes; then
515 exec 6>/dev/null
516 else
517 exec 6>&1
518 fi
519 exec 5>./config.log
520
521 echo "\
522 This file contains any messages produced by compilers while
523 running configure, to aid debugging if configure makes a mistake.
524 " 1>&5
525
526 # Strip out --no-create and --no-recursion so they do not pile up.
527 # Also quote any args containing shell metacharacters.
528 ac_configure_args=
529 for ac_arg
530 do
531 case "$ac_arg" in
532 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
533 | --no-cr | --no-c) ;;
534 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
535 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
536 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
537 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
538 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
539 esac
540 done
541
542 # NLS nuisances.
543 # Only set these to C if already set. These must not be set unconditionally
544 # because not all systems understand e.g. LANG=C (notably SCO).
545 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
546 # Non-C LC_CTYPE values break the ctype check.
547 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
548 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
549 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
550 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
551
552 # confdefs.h avoids OS command line length limits that DEFS can exceed.
553 rm -rf conftest* confdefs.h
554 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
555 echo > confdefs.h
556
557 # A filename unique to this package, relative to the directory that
558 # configure is in, which we can look for to find out if srcdir is correct.
559 ac_unique_file=configure.in
560
561 # Find the source files, if location was not specified.
562 if test -z "$srcdir"; then
563 ac_srcdir_defaulted=yes
564 # Try the directory containing this script, then its parent.
565 ac_prog=$0
566 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
567 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
568 srcdir=$ac_confdir
569 if test ! -r $srcdir/$ac_unique_file; then
570 srcdir=..
571 fi
572 else
573 ac_srcdir_defaulted=no
574 fi
575 if test ! -r $srcdir/$ac_unique_file; then
576 if test "$ac_srcdir_defaulted" = yes; then
577 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
578 else
579 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
580 fi
581 fi
582 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
583
584 # Prefer explicitly selected file to automatically selected ones.
585 if test -z "$CONFIG_SITE"; then
586 if test "x$prefix" != xNONE; then
587 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
588 else
589 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
590 fi
591 fi
592 for ac_site_file in $CONFIG_SITE; do
593 if test -r "$ac_site_file"; then
594 echo "loading site script $ac_site_file"
595 . "$ac_site_file"
596 fi
597 done
598
599 if test -r "$cache_file"; then
600 echo "loading cache $cache_file"
601 . $cache_file
602 else
603 echo "creating cache $cache_file"
604 > $cache_file
605 fi
606
607 ac_ext=c
608 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
609 ac_cpp='$CPP $CPPFLAGS'
610 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
611 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
612 cross_compiling=$ac_cv_prog_cc_cross
613
614 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
615 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
616 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
617 ac_n= ac_c='
618 ' ac_t=' '
619 else
620 ac_n=-n ac_c= ac_t=
621 fi
622 else
623 ac_n= ac_c='\c' ac_t=
624 fi
625
626
627
628
629 OS="${OSTYPE}"
630
631 if test "x$OS" = "x"; then
632 UNAME=`uname`
633 { echo "configure: error: "The system variable OS has not been set"
634 "please set is everytime befor compiling on this system"
635 "A good example for this system would be:"
636 "setenv OSTYPE $UNAME for csh as a SHELL"
637 "EXPORT OSTYPE=$UNAME for sh as SHELL"
638 "please set this and restart again."
639 " 1>&2; exit 1; }
640 fi
641
642
643 WXBASEDIR=`pwd`
644
645
646
647 SEARCH_INCLUDE="\
648 /usr/Motif1.2/include \
649 \
650 /usr/X11R6/include \
651 /usr/X11R5/include \
652 /usr/X11R4/include \
653 \
654 /usr/X11R6/lib \
655 /usr/X11R5/lib \
656 /usr/X11R4/lib \
657 \
658 /usr/include/X11R6 \
659 /usr/include/X11R5 \
660 /usr/include/X11R4 \
661 \
662 /usr/local/X11R6/include \
663 /usr/local/X11R5/include \
664 /usr/local/X11R4/include \
665 \
666 /usr/local/include/X11R6 \
667 /usr/local/include/X11R5 \
668 /usr/local/include/X11R4 \
669 \
670 /usr/X11/include \
671 /usr/include/X11 \
672 /usr/local/X11/include \
673 /usr/local/include/X11 \
674 \
675 /usr/X386/include \
676 /usr/x386/include \
677 /usr/XFree86/include/X11 \
678 \
679 /usr/include \
680 /usr/local/include \
681 /usr/unsupported/include \
682 /usr/athena/include \
683 /usr/local/x11r5/include \
684 /usr/lpp/Xamples/include \
685 \
686 /usr/local/include/gtk \
687 /usr/local/include/Xm \
688 /usr/local/include/qt \
689 /usr/X11R6/include/Xm \
690 /usr/X11/include/Xm \
691 /usr/include/qt \
692 \
693 /usr/openwin/include \
694 /usr/openwin/share/include \
695 "
696
697 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` \
698 "
699
700
701
702 # Extract the first word of "gcc", so it can be a program name with args.
703 set dummy gcc; ac_word=$2
704 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
705 echo "configure:706: checking for $ac_word" >&5
706 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
707 echo $ac_n "(cached) $ac_c" 1>&6
708 else
709 if test -n "$CC"; then
710 ac_cv_prog_CC="$CC" # Let the user override the test.
711 else
712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
713 for ac_dir in $PATH; do
714 test -z "$ac_dir" && ac_dir=.
715 if test -f $ac_dir/$ac_word; then
716 ac_cv_prog_CC="gcc"
717 break
718 fi
719 done
720 IFS="$ac_save_ifs"
721 fi
722 fi
723 CC="$ac_cv_prog_CC"
724 if test -n "$CC"; then
725 echo "$ac_t""$CC" 1>&6
726 else
727 echo "$ac_t""no" 1>&6
728 fi
729
730 if test -z "$CC"; then
731 # Extract the first word of "cc", so it can be a program name with args.
732 set dummy cc; ac_word=$2
733 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
734 echo "configure:735: checking for $ac_word" >&5
735 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
736 echo $ac_n "(cached) $ac_c" 1>&6
737 else
738 if test -n "$CC"; then
739 ac_cv_prog_CC="$CC" # Let the user override the test.
740 else
741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
742 ac_prog_rejected=no
743 for ac_dir in $PATH; do
744 test -z "$ac_dir" && ac_dir=.
745 if test -f $ac_dir/$ac_word; then
746 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
747 ac_prog_rejected=yes
748 continue
749 fi
750 ac_cv_prog_CC="cc"
751 break
752 fi
753 done
754 IFS="$ac_save_ifs"
755 if test $ac_prog_rejected = yes; then
756 # We found a bogon in the path, so make sure we never use it.
757 set dummy $ac_cv_prog_CC
758 shift
759 if test $# -gt 0; then
760 # We chose a different compiler from the bogus one.
761 # However, it has the same basename, so the bogon will be chosen
762 # first if we set CC to just the basename; use the full file name.
763 shift
764 set dummy "$ac_dir/$ac_word" "$@"
765 shift
766 ac_cv_prog_CC="$@"
767 fi
768 fi
769 fi
770 fi
771 CC="$ac_cv_prog_CC"
772 if test -n "$CC"; then
773 echo "$ac_t""$CC" 1>&6
774 else
775 echo "$ac_t""no" 1>&6
776 fi
777
778 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
779 fi
780
781 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
782 echo "configure:783: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
783
784 ac_ext=c
785 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
786 ac_cpp='$CPP $CPPFLAGS'
787 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
788 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
789 cross_compiling=$ac_cv_prog_cc_cross
790
791 cat > conftest.$ac_ext <<EOF
792 #line 793 "configure"
793 #include "confdefs.h"
794 main(){return(0);}
795 EOF
796 if { (eval echo configure:797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
797 ac_cv_prog_cc_works=yes
798 # If we can't run a trivial program, we are probably using a cross compiler.
799 if (./conftest; exit) 2>/dev/null; then
800 ac_cv_prog_cc_cross=no
801 else
802 ac_cv_prog_cc_cross=yes
803 fi
804 else
805 echo "configure: failed program was:" >&5
806 cat conftest.$ac_ext >&5
807 ac_cv_prog_cc_works=no
808 fi
809 rm -fr conftest*
810
811 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
812 if test $ac_cv_prog_cc_works = no; then
813 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
814 fi
815 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
816 echo "configure:817: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
817 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
818 cross_compiling=$ac_cv_prog_cc_cross
819
820 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
821 echo "configure:822: checking whether we are using GNU C" >&5
822 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
823 echo $ac_n "(cached) $ac_c" 1>&6
824 else
825 cat > conftest.c <<EOF
826 #ifdef __GNUC__
827 yes;
828 #endif
829 EOF
830 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
831 ac_cv_prog_gcc=yes
832 else
833 ac_cv_prog_gcc=no
834 fi
835 fi
836
837 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
838
839 if test $ac_cv_prog_gcc = yes; then
840 GCC=yes
841 ac_test_CFLAGS="${CFLAGS+set}"
842 ac_save_CFLAGS="$CFLAGS"
843 CFLAGS=
844 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
845 echo "configure:846: checking whether ${CC-cc} accepts -g" >&5
846 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
847 echo $ac_n "(cached) $ac_c" 1>&6
848 else
849 echo 'void f(){}' > conftest.c
850 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
851 ac_cv_prog_cc_g=yes
852 else
853 ac_cv_prog_cc_g=no
854 fi
855 rm -f conftest*
856
857 fi
858
859 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
860 if test "$ac_test_CFLAGS" = set; then
861 CFLAGS="$ac_save_CFLAGS"
862 elif test $ac_cv_prog_cc_g = yes; then
863 CFLAGS="-g -O2"
864 else
865 CFLAGS="-O2"
866 fi
867 else
868 GCC=
869 test "${CFLAGS+set}" = set || CFLAGS="-g"
870 fi
871
872
873 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
874
875 if test "x$CC" != xcc; then
876 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
877 echo "configure:878: checking whether $CC and cc understand -c and -o together" >&5
878 else
879 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
880 echo "configure:881: checking whether cc understands -c and -o together" >&5
881 fi
882 set dummy $CC; ac_cc="`echo $2 |
883 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
884 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
885 echo $ac_n "(cached) $ac_c" 1>&6
886 else
887 echo 'foo(){}' > conftest.c
888 # Make sure it works both with $CC and with simple cc.
889 # We do the test twice because some compilers refuse to overwrite an
890 # existing .o file with -o, though they will create one.
891 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
892 if { (eval echo configure:893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
893 test -f conftest.o && { (eval echo configure:894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
894 then
895 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
896 if test "x$CC" != xcc; then
897 # Test first that cc exists at all.
898 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
899 ac_try='cc -c conftest.c -o conftest.o 1>&5'
900 if { (eval echo configure:901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
901 test -f conftest.o && { (eval echo configure:902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
902 then
903 # cc works too.
904 :
905 else
906 # cc exists but doesn't like -o.
907 eval ac_cv_prog_cc_${ac_cc}_c_o=no
908 fi
909 fi
910 fi
911 else
912 eval ac_cv_prog_cc_${ac_cc}_c_o=no
913 fi
914 rm -f conftest*
915
916 fi
917 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
918 echo "$ac_t""yes" 1>&6
919 else
920 echo "$ac_t""no" 1>&6
921 cat >> confdefs.h <<\EOF
922 #define NO_MINUS_C_MINUS_O 1
923 EOF
924
925 fi
926
927 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
928 echo "configure:929: checking how to run the C preprocessor" >&5
929 # On Suns, sometimes $CPP names a directory.
930 if test -n "$CPP" && test -d "$CPP"; then
931 CPP=
932 fi
933 if test -z "$CPP"; then
934 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
935 echo $ac_n "(cached) $ac_c" 1>&6
936 else
937 # This must be in double quotes, not single quotes, because CPP may get
938 # substituted into the Makefile and "${CC-cc}" will confuse make.
939 CPP="${CC-cc} -E"
940 # On the NeXT, cc -E runs the code through the compiler's parser,
941 # not just through cpp.
942 cat > conftest.$ac_ext <<EOF
943 #line 944 "configure"
944 #include "confdefs.h"
945 #include <assert.h>
946 Syntax Error
947 EOF
948 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
949 { (eval echo configure:950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
950 ac_err=`grep -v '^ *+' conftest.out`
951 if test -z "$ac_err"; then
952 :
953 else
954 echo "$ac_err" >&5
955 echo "configure: failed program was:" >&5
956 cat conftest.$ac_ext >&5
957 rm -rf conftest*
958 CPP="${CC-cc} -E -traditional-cpp"
959 cat > conftest.$ac_ext <<EOF
960 #line 961 "configure"
961 #include "confdefs.h"
962 #include <assert.h>
963 Syntax Error
964 EOF
965 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
966 { (eval echo configure:967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
967 ac_err=`grep -v '^ *+' conftest.out`
968 if test -z "$ac_err"; then
969 :
970 else
971 echo "$ac_err" >&5
972 echo "configure: failed program was:" >&5
973 cat conftest.$ac_ext >&5
974 rm -rf conftest*
975 CPP=/lib/cpp
976 fi
977 rm -f conftest*
978 fi
979 rm -f conftest*
980 ac_cv_prog_CPP="$CPP"
981 fi
982 CPP="$ac_cv_prog_CPP"
983 else
984 ac_cv_prog_CPP="$CPP"
985 fi
986 echo "$ac_t""$CPP" 1>&6
987
988 if test $ac_cv_prog_gcc = yes; then
989 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
990 echo "configure:991: checking whether ${CC-cc} needs -traditional" >&5
991 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
992 echo $ac_n "(cached) $ac_c" 1>&6
993 else
994 ac_pattern="Autoconf.*'x'"
995 cat > conftest.$ac_ext <<EOF
996 #line 997 "configure"
997 #include "confdefs.h"
998 #include <sgtty.h>
999 Autoconf TIOCGETP
1000 EOF
1001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1002 egrep "$ac_pattern" >/dev/null 2>&1; then
1003 rm -rf conftest*
1004 ac_cv_prog_gcc_traditional=yes
1005 else
1006 rm -rf conftest*
1007 ac_cv_prog_gcc_traditional=no
1008 fi
1009 rm -f conftest*
1010
1011
1012 if test $ac_cv_prog_gcc_traditional = no; then
1013 cat > conftest.$ac_ext <<EOF
1014 #line 1015 "configure"
1015 #include "confdefs.h"
1016 #include <termio.h>
1017 Autoconf TCGETA
1018 EOF
1019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1020 egrep "$ac_pattern" >/dev/null 2>&1; then
1021 rm -rf conftest*
1022 ac_cv_prog_gcc_traditional=yes
1023 fi
1024 rm -f conftest*
1025
1026 fi
1027 fi
1028
1029 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1030 if test $ac_cv_prog_gcc_traditional = yes; then
1031 CC="$CC -traditional"
1032 fi
1033 fi
1034
1035
1036
1037
1038 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1039 do
1040 # Extract the first word of "$ac_prog", so it can be a program name with args.
1041 set dummy $ac_prog; ac_word=$2
1042 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1043 echo "configure:1044: checking for $ac_word" >&5
1044 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1045 echo $ac_n "(cached) $ac_c" 1>&6
1046 else
1047 if test -n "$CXX"; then
1048 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1049 else
1050 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1051 for ac_dir in $PATH; do
1052 test -z "$ac_dir" && ac_dir=.
1053 if test -f $ac_dir/$ac_word; then
1054 ac_cv_prog_CXX="$ac_prog"
1055 break
1056 fi
1057 done
1058 IFS="$ac_save_ifs"
1059 fi
1060 fi
1061 CXX="$ac_cv_prog_CXX"
1062 if test -n "$CXX"; then
1063 echo "$ac_t""$CXX" 1>&6
1064 else
1065 echo "$ac_t""no" 1>&6
1066 fi
1067
1068 test -n "$CXX" && break
1069 done
1070 test -n "$CXX" || CXX="gcc"
1071
1072
1073 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1074 echo "configure:1075: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1075
1076 ac_ext=C
1077 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1078 ac_cpp='$CXXCPP $CPPFLAGS'
1079 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1080 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1081 cross_compiling=$ac_cv_prog_cxx_cross
1082
1083 cat > conftest.$ac_ext <<EOF
1084 #line 1085 "configure"
1085 #include "confdefs.h"
1086 main(){return(0);}
1087 EOF
1088 if { (eval echo configure:1089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1089 ac_cv_prog_cxx_works=yes
1090 # If we can't run a trivial program, we are probably using a cross compiler.
1091 if (./conftest; exit) 2>/dev/null; then
1092 ac_cv_prog_cxx_cross=no
1093 else
1094 ac_cv_prog_cxx_cross=yes
1095 fi
1096 else
1097 echo "configure: failed program was:" >&5
1098 cat conftest.$ac_ext >&5
1099 ac_cv_prog_cxx_works=no
1100 fi
1101 rm -fr conftest*
1102 ac_ext=c
1103 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1104 ac_cpp='$CPP $CPPFLAGS'
1105 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1106 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1107 cross_compiling=$ac_cv_prog_cc_cross
1108
1109 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1110 if test $ac_cv_prog_cxx_works = no; then
1111 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1112 fi
1113 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1114 echo "configure:1115: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1115 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1116 cross_compiling=$ac_cv_prog_cxx_cross
1117
1118 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1119 echo "configure:1120: checking whether we are using GNU C++" >&5
1120 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1121 echo $ac_n "(cached) $ac_c" 1>&6
1122 else
1123 cat > conftest.C <<EOF
1124 #ifdef __GNUC__
1125 yes;
1126 #endif
1127 EOF
1128 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1129 ac_cv_prog_gxx=yes
1130 else
1131 ac_cv_prog_gxx=no
1132 fi
1133 fi
1134
1135 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1136
1137 if test $ac_cv_prog_gxx = yes; then
1138 GXX=yes
1139 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1140 ac_save_CXXFLAGS="$CXXFLAGS"
1141 CXXFLAGS=
1142 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1143 echo "configure:1144: checking whether ${CXX-g++} accepts -g" >&5
1144 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1145 echo $ac_n "(cached) $ac_c" 1>&6
1146 else
1147 echo 'void f(){}' > conftest.cc
1148 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1149 ac_cv_prog_cxx_g=yes
1150 else
1151 ac_cv_prog_cxx_g=no
1152 fi
1153 rm -f conftest*
1154
1155 fi
1156
1157 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1158 if test "$ac_test_CXXFLAGS" = set; then
1159 CXXFLAGS="$ac_save_CXXFLAGS"
1160 elif test $ac_cv_prog_cxx_g = yes; then
1161 CXXFLAGS="-g -O2"
1162 else
1163 CXXFLAGS="-O2"
1164 fi
1165 else
1166 GXX=
1167 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1168 fi
1169
1170 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1171 echo "configure:1172: checking how to run the C++ preprocessor" >&5
1172 if test -z "$CXXCPP"; then
1173 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1174 echo $ac_n "(cached) $ac_c" 1>&6
1175 else
1176 ac_ext=C
1177 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1178 ac_cpp='$CXXCPP $CPPFLAGS'
1179 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1180 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1181 cross_compiling=$ac_cv_prog_cxx_cross
1182 CXXCPP="${CXX-g++} -E"
1183 cat > conftest.$ac_ext <<EOF
1184 #line 1185 "configure"
1185 #include "confdefs.h"
1186 #include <stdlib.h>
1187 EOF
1188 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1189 { (eval echo configure:1190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1190 ac_err=`grep -v '^ *+' conftest.out`
1191 if test -z "$ac_err"; then
1192 :
1193 else
1194 echo "$ac_err" >&5
1195 echo "configure: failed program was:" >&5
1196 cat conftest.$ac_ext >&5
1197 rm -rf conftest*
1198 CXXCPP=/lib/cpp
1199 fi
1200 rm -f conftest*
1201 ac_cv_prog_CXXCPP="$CXXCPP"
1202 ac_ext=c
1203 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1204 ac_cpp='$CPP $CPPFLAGS'
1205 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1206 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1207 cross_compiling=$ac_cv_prog_cc_cross
1208 fi
1209 fi
1210 CXXCPP="$ac_cv_prog_CXXCPP"
1211 echo "$ac_t""$CXXCPP" 1>&6
1212
1213
1214 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
1215
1216
1217
1218 # Extract the first word of "ranlib", so it can be a program name with args.
1219 set dummy ranlib; ac_word=$2
1220 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1221 echo "configure:1222: checking for $ac_word" >&5
1222 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1223 echo $ac_n "(cached) $ac_c" 1>&6
1224 else
1225 if test -n "$RANLIB"; then
1226 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1227 else
1228 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1229 for ac_dir in $PATH; do
1230 test -z "$ac_dir" && ac_dir=.
1231 if test -f $ac_dir/$ac_word; then
1232 ac_cv_prog_RANLIB="ranlib"
1233 break
1234 fi
1235 done
1236 IFS="$ac_save_ifs"
1237 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1238 fi
1239 fi
1240 RANLIB="$ac_cv_prog_RANLIB"
1241 if test -n "$RANLIB"; then
1242 echo "$ac_t""$RANLIB" 1>&6
1243 else
1244 echo "$ac_t""no" 1>&6
1245 fi
1246
1247
1248 # Extract the first word of "ar", so it can be a program name with args.
1249 set dummy ar; ac_word=$2
1250 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1251 echo "configure:1252: checking for $ac_word" >&5
1252 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1253 echo $ac_n "(cached) $ac_c" 1>&6
1254 else
1255 if test -n "$AR"; then
1256 ac_cv_prog_AR="$AR" # Let the user override the test.
1257 else
1258 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1259 for ac_dir in $PATH; do
1260 test -z "$ac_dir" && ac_dir=.
1261 if test -f $ac_dir/$ac_word; then
1262 ac_cv_prog_AR="ar"
1263 break
1264 fi
1265 done
1266 IFS="$ac_save_ifs"
1267 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1268 fi
1269 fi
1270 AR="$ac_cv_prog_AR"
1271 if test -n "$AR"; then
1272 echo "$ac_t""$AR" 1>&6
1273 else
1274 echo "$ac_t""no" 1>&6
1275 fi
1276
1277
1278 ac_aux_dir=
1279 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1280 if test -f $ac_dir/install-sh; then
1281 ac_aux_dir=$ac_dir
1282 ac_install_sh="$ac_aux_dir/install-sh -c"
1283 break
1284 elif test -f $ac_dir/install.sh; then
1285 ac_aux_dir=$ac_dir
1286 ac_install_sh="$ac_aux_dir/install.sh -c"
1287 break
1288 fi
1289 done
1290 if test -z "$ac_aux_dir"; then
1291 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1292 fi
1293 ac_config_guess=$ac_aux_dir/config.guess
1294 ac_config_sub=$ac_aux_dir/config.sub
1295 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1296
1297 # Find a good install program. We prefer a C program (faster),
1298 # so one script is as good as another. But avoid the broken or
1299 # incompatible versions:
1300 # SysV /etc/install, /usr/sbin/install
1301 # SunOS /usr/etc/install
1302 # IRIX /sbin/install
1303 # AIX /bin/install
1304 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1305 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1306 # ./install, which can be erroneously created by make from ./install.sh.
1307 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1308 echo "configure:1309: checking for a BSD compatible install" >&5
1309 if test -z "$INSTALL"; then
1310 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1311 echo $ac_n "(cached) $ac_c" 1>&6
1312 else
1313 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1314 for ac_dir in $PATH; do
1315 # Account for people who put trailing slashes in PATH elements.
1316 case "$ac_dir/" in
1317 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1318 *)
1319 # OSF1 and SCO ODT 3.0 have their own names for install.
1320 for ac_prog in ginstall installbsd scoinst install; do
1321 if test -f $ac_dir/$ac_prog; then
1322 if test $ac_prog = install &&
1323 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1324 # AIX install. It has an incompatible calling convention.
1325 # OSF/1 installbsd also uses dspmsg, but is usable.
1326 :
1327 else
1328 ac_cv_path_install="$ac_dir/$ac_prog -c"
1329 break 2
1330 fi
1331 fi
1332 done
1333 ;;
1334 esac
1335 done
1336 IFS="$ac_save_IFS"
1337
1338 fi
1339 if test "${ac_cv_path_install+set}" = set; then
1340 INSTALL="$ac_cv_path_install"
1341 else
1342 # As a last resort, use the slow shell script. We don't cache a
1343 # path for INSTALL within a source directory, because that will
1344 # break other packages using the cache if that directory is
1345 # removed, or if the path is relative.
1346 INSTALL="$ac_install_sh"
1347 fi
1348 fi
1349 echo "$ac_t""$INSTALL" 1>&6
1350
1351 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1352 # It thinks the first close brace ends the variable substitution.
1353 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1354
1355 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1356
1357
1358 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1359 echo "configure:1360: checking whether ln -s works" >&5
1360 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1361 echo $ac_n "(cached) $ac_c" 1>&6
1362 else
1363 rm -f conftestdata
1364 if ln -s X conftestdata 2>/dev/null
1365 then
1366 rm -f conftestdata
1367 ac_cv_prog_LN_S="ln -s"
1368 else
1369 ac_cv_prog_LN_S=ln
1370 fi
1371 fi
1372 LN_S="$ac_cv_prog_LN_S"
1373 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1374 echo "$ac_t""yes" 1>&6
1375 else
1376 echo "$ac_t""no" 1>&6
1377 fi
1378
1379
1380 for ac_prog in mawk gawk nawk awk
1381 do
1382 # Extract the first word of "$ac_prog", so it can be a program name with args.
1383 set dummy $ac_prog; ac_word=$2
1384 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1385 echo "configure:1386: checking for $ac_word" >&5
1386 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1387 echo $ac_n "(cached) $ac_c" 1>&6
1388 else
1389 if test -n "$AWK"; then
1390 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1391 else
1392 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1393 for ac_dir in $PATH; do
1394 test -z "$ac_dir" && ac_dir=.
1395 if test -f $ac_dir/$ac_word; then
1396 ac_cv_prog_AWK="$ac_prog"
1397 break
1398 fi
1399 done
1400 IFS="$ac_save_ifs"
1401 fi
1402 fi
1403 AWK="$ac_cv_prog_AWK"
1404 if test -n "$AWK"; then
1405 echo "$ac_t""$AWK" 1>&6
1406 else
1407 echo "$ac_t""no" 1>&6
1408 fi
1409
1410 test -n "$AWK" && break
1411 done
1412
1413
1414 echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
1415 echo "configure:1416: checking "make for VPATH support"" >&5
1416 cat - << EOF > confMake
1417 check : file
1418 cp \$? \$@
1419 cp \$? final_file
1420 EOF
1421
1422 if test ! -d sub ; then
1423 mkdir sub
1424 fi
1425 echo dummy > sub/file
1426 ${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null
1427 RESULT=$?
1428 rm -f sub/file check final_file confMake
1429 rmdir sub
1430 if test "$RESULT" = 0; then
1431 echo "$ac_t""yes" 1>&6
1432 else
1433 echo "$ac_t""no" 1>&6
1434 { echo "configure: error: You need a make-utility that is able to use the variable
1435 VPATH correctly.
1436 If your version of make does not support VPATH correctly" 1>&2; exit 1; }
1437 fi
1438
1439
1440 # If we find X, set shell vars x_includes and x_libraries to the
1441 # paths, otherwise set no_x=yes.
1442 # Uses ac_ vars as temps to allow command line to override cache and checks.
1443 # --without-x overrides everything else, but does not touch the cache.
1444 echo $ac_n "checking for X""... $ac_c" 1>&6
1445 echo "configure:1446: checking for X" >&5
1446
1447 # Check whether --with-x or --without-x was given.
1448 if test "${with_x+set}" = set; then
1449 withval="$with_x"
1450 :
1451 fi
1452
1453 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1454 if test "x$with_x" = xno; then
1455 # The user explicitly disabled X.
1456 have_x=disabled
1457 else
1458 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1459 # Both variables are already set.
1460 have_x=yes
1461 else
1462 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1463 echo $ac_n "(cached) $ac_c" 1>&6
1464 else
1465 # One or both of the vars are not set, and there is no cached value.
1466 ac_x_includes=NO ac_x_libraries=NO
1467 rm -fr conftestdir
1468 if mkdir conftestdir; then
1469 cd conftestdir
1470 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1471 cat > Imakefile <<'EOF'
1472 acfindx:
1473 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1474 EOF
1475 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1476 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1477 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1478 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1479 for ac_extension in a so sl; do
1480 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1481 test -f $ac_im_libdir/libX11.$ac_extension; then
1482 ac_im_usrlibdir=$ac_im_libdir; break
1483 fi
1484 done
1485 # Screen out bogus values from the imake configuration. They are
1486 # bogus both because they are the default anyway, and because
1487 # using them would break gcc on systems where it needs fixed includes.
1488 case "$ac_im_incroot" in
1489 /usr/include) ;;
1490 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1491 esac
1492 case "$ac_im_usrlibdir" in
1493 /usr/lib | /lib) ;;
1494 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1495 esac
1496 fi
1497 cd ..
1498 rm -fr conftestdir
1499 fi
1500
1501 if test "$ac_x_includes" = NO; then
1502 # Guess where to find include files, by looking for this one X11 .h file.
1503 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1504
1505 # First, try using that file with no special directory specified.
1506 cat > conftest.$ac_ext <<EOF
1507 #line 1508 "configure"
1508 #include "confdefs.h"
1509 #include <$x_direct_test_include>
1510 EOF
1511 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1512 { (eval echo configure:1513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1513 ac_err=`grep -v '^ *+' conftest.out`
1514 if test -z "$ac_err"; then
1515 rm -rf conftest*
1516 # We can compile using X headers with no special include directory.
1517 ac_x_includes=
1518 else
1519 echo "$ac_err" >&5
1520 echo "configure: failed program was:" >&5
1521 cat conftest.$ac_ext >&5
1522 rm -rf conftest*
1523 # Look for the header file in a standard set of common directories.
1524 # Check X11 before X11Rn because it is often a symlink to the current release.
1525 for ac_dir in \
1526 /usr/X11/include \
1527 /usr/X11R6/include \
1528 /usr/X11R5/include \
1529 /usr/X11R4/include \
1530 \
1531 /usr/include/X11 \
1532 /usr/include/X11R6 \
1533 /usr/include/X11R5 \
1534 /usr/include/X11R4 \
1535 \
1536 /usr/local/X11/include \
1537 /usr/local/X11R6/include \
1538 /usr/local/X11R5/include \
1539 /usr/local/X11R4/include \
1540 \
1541 /usr/local/include/X11 \
1542 /usr/local/include/X11R6 \
1543 /usr/local/include/X11R5 \
1544 /usr/local/include/X11R4 \
1545 \
1546 /usr/X386/include \
1547 /usr/x386/include \
1548 /usr/XFree86/include/X11 \
1549 \
1550 /usr/include \
1551 /usr/local/include \
1552 /usr/unsupported/include \
1553 /usr/athena/include \
1554 /usr/local/x11r5/include \
1555 /usr/lpp/Xamples/include \
1556 \
1557 /usr/openwin/include \
1558 /usr/openwin/share/include \
1559 ; \
1560 do
1561 if test -r "$ac_dir/$x_direct_test_include"; then
1562 ac_x_includes=$ac_dir
1563 break
1564 fi
1565 done
1566 fi
1567 rm -f conftest*
1568 fi # $ac_x_includes = NO
1569
1570 if test "$ac_x_libraries" = NO; then
1571 # Check for the libraries.
1572
1573 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1574 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1575
1576 # See if we find them without any special options.
1577 # Don't add to $LIBS permanently.
1578 ac_save_LIBS="$LIBS"
1579 LIBS="-l$x_direct_test_library $LIBS"
1580 cat > conftest.$ac_ext <<EOF
1581 #line 1582 "configure"
1582 #include "confdefs.h"
1583
1584 int main() {
1585 ${x_direct_test_function}()
1586 ; return 0; }
1587 EOF
1588 if { (eval echo configure:1589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1589 rm -rf conftest*
1590 LIBS="$ac_save_LIBS"
1591 # We can link X programs with no special library path.
1592 ac_x_libraries=
1593 else
1594 echo "configure: failed program was:" >&5
1595 cat conftest.$ac_ext >&5
1596 rm -rf conftest*
1597 LIBS="$ac_save_LIBS"
1598 # First see if replacing the include by lib works.
1599 # Check X11 before X11Rn because it is often a symlink to the current release.
1600 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1601 /usr/X11/lib \
1602 /usr/X11R6/lib \
1603 /usr/X11R5/lib \
1604 /usr/X11R4/lib \
1605 \
1606 /usr/lib/X11 \
1607 /usr/lib/X11R6 \
1608 /usr/lib/X11R5 \
1609 /usr/lib/X11R4 \
1610 \
1611 /usr/local/X11/lib \
1612 /usr/local/X11R6/lib \
1613 /usr/local/X11R5/lib \
1614 /usr/local/X11R4/lib \
1615 \
1616 /usr/local/lib/X11 \
1617 /usr/local/lib/X11R6 \
1618 /usr/local/lib/X11R5 \
1619 /usr/local/lib/X11R4 \
1620 \
1621 /usr/X386/lib \
1622 /usr/x386/lib \
1623 /usr/XFree86/lib/X11 \
1624 \
1625 /usr/lib \
1626 /usr/local/lib \
1627 /usr/unsupported/lib \
1628 /usr/athena/lib \
1629 /usr/local/x11r5/lib \
1630 /usr/lpp/Xamples/lib \
1631 /lib/usr/lib/X11 \
1632 \
1633 /usr/openwin/lib \
1634 /usr/openwin/share/lib \
1635 ; \
1636 do
1637 for ac_extension in a so sl; do
1638 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1639 ac_x_libraries=$ac_dir
1640 break 2
1641 fi
1642 done
1643 done
1644 fi
1645 rm -f conftest*
1646 fi # $ac_x_libraries = NO
1647
1648 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1649 # Didn't find X anywhere. Cache the known absence of X.
1650 ac_cv_have_x="have_x=no"
1651 else
1652 # Record where we found X for the cache.
1653 ac_cv_have_x="have_x=yes \
1654 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1655 fi
1656 fi
1657 fi
1658 eval "$ac_cv_have_x"
1659 fi # $with_x != no
1660
1661 if test "$have_x" != yes; then
1662 echo "$ac_t""$have_x" 1>&6
1663 no_x=yes
1664 else
1665 # If each of the values was on the command line, it overrides each guess.
1666 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1667 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1668 # Update the cache value to reflect the command line values.
1669 ac_cv_have_x="have_x=yes \
1670 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1671 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1672 fi
1673
1674 if test "$no_x" = yes; then
1675 # Not all programs may use this symbol, but it does not hurt to define it.
1676 cat >> confdefs.h <<\EOF
1677 #define X_DISPLAY_MISSING 1
1678 EOF
1679
1680 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1681 else
1682 if test -n "$x_includes"; then
1683 X_CFLAGS="$X_CFLAGS -I$x_includes"
1684 fi
1685
1686 # It would also be nice to do this for all -L options, not just this one.
1687 if test -n "$x_libraries"; then
1688 X_LIBS="$X_LIBS -L$x_libraries"
1689 # For Solaris; some versions of Sun CC require a space after -R and
1690 # others require no space. Words are not sufficient . . . .
1691 case "`(uname -sr) 2>/dev/null`" in
1692 "SunOS 5"*)
1693 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1694 echo "configure:1695: checking whether -R must be followed by a space" >&5
1695 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1696 cat > conftest.$ac_ext <<EOF
1697 #line 1698 "configure"
1698 #include "confdefs.h"
1699
1700 int main() {
1701
1702 ; return 0; }
1703 EOF
1704 if { (eval echo configure:1705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1705 rm -rf conftest*
1706 ac_R_nospace=yes
1707 else
1708 echo "configure: failed program was:" >&5
1709 cat conftest.$ac_ext >&5
1710 rm -rf conftest*
1711 ac_R_nospace=no
1712 fi
1713 rm -f conftest*
1714 if test $ac_R_nospace = yes; then
1715 echo "$ac_t""no" 1>&6
1716 X_LIBS="$X_LIBS -R$x_libraries"
1717 else
1718 LIBS="$ac_xsave_LIBS -R $x_libraries"
1719 cat > conftest.$ac_ext <<EOF
1720 #line 1721 "configure"
1721 #include "confdefs.h"
1722
1723 int main() {
1724
1725 ; return 0; }
1726 EOF
1727 if { (eval echo configure:1728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1728 rm -rf conftest*
1729 ac_R_space=yes
1730 else
1731 echo "configure: failed program was:" >&5
1732 cat conftest.$ac_ext >&5
1733 rm -rf conftest*
1734 ac_R_space=no
1735 fi
1736 rm -f conftest*
1737 if test $ac_R_space = yes; then
1738 echo "$ac_t""yes" 1>&6
1739 X_LIBS="$X_LIBS -R $x_libraries"
1740 else
1741 echo "$ac_t""neither works" 1>&6
1742 fi
1743 fi
1744 LIBS="$ac_xsave_LIBS"
1745 esac
1746 fi
1747
1748 # Check for system-dependent libraries X programs must link with.
1749 # Do this before checking for the system-independent R6 libraries
1750 # (-lICE), since we may need -lsocket or whatever for X linking.
1751
1752 if test "$ISC" = yes; then
1753 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1754 else
1755 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1756 # libraries were built with DECnet support. And karl@cs.umb.edu says
1757 # the Alpha needs dnet_stub (dnet does not exist).
1758 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1759 echo "configure:1760: checking for dnet_ntoa in -ldnet" >&5
1760 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1761 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1763 else
1764 ac_save_LIBS="$LIBS"
1765 LIBS="-ldnet $LIBS"
1766 cat > conftest.$ac_ext <<EOF
1767 #line 1768 "configure"
1768 #include "confdefs.h"
1769 /* Override any gcc2 internal prototype to avoid an error. */
1770 /* We use char because int might match the return type of a gcc2
1771 builtin and then its argument prototype would still apply. */
1772 char dnet_ntoa();
1773
1774 int main() {
1775 dnet_ntoa()
1776 ; return 0; }
1777 EOF
1778 if { (eval echo configure:1779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1779 rm -rf conftest*
1780 eval "ac_cv_lib_$ac_lib_var=yes"
1781 else
1782 echo "configure: failed program was:" >&5
1783 cat conftest.$ac_ext >&5
1784 rm -rf conftest*
1785 eval "ac_cv_lib_$ac_lib_var=no"
1786 fi
1787 rm -f conftest*
1788 LIBS="$ac_save_LIBS"
1789
1790 fi
1791 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1792 echo "$ac_t""yes" 1>&6
1793 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1794 else
1795 echo "$ac_t""no" 1>&6
1796 fi
1797
1798 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1799 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1800 echo "configure:1801: checking for dnet_ntoa in -ldnet_stub" >&5
1801 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1802 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1803 echo $ac_n "(cached) $ac_c" 1>&6
1804 else
1805 ac_save_LIBS="$LIBS"
1806 LIBS="-ldnet_stub $LIBS"
1807 cat > conftest.$ac_ext <<EOF
1808 #line 1809 "configure"
1809 #include "confdefs.h"
1810 /* Override any gcc2 internal prototype to avoid an error. */
1811 /* We use char because int might match the return type of a gcc2
1812 builtin and then its argument prototype would still apply. */
1813 char dnet_ntoa();
1814
1815 int main() {
1816 dnet_ntoa()
1817 ; return 0; }
1818 EOF
1819 if { (eval echo configure:1820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1820 rm -rf conftest*
1821 eval "ac_cv_lib_$ac_lib_var=yes"
1822 else
1823 echo "configure: failed program was:" >&5
1824 cat conftest.$ac_ext >&5
1825 rm -rf conftest*
1826 eval "ac_cv_lib_$ac_lib_var=no"
1827 fi
1828 rm -f conftest*
1829 LIBS="$ac_save_LIBS"
1830
1831 fi
1832 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1833 echo "$ac_t""yes" 1>&6
1834 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1835 else
1836 echo "$ac_t""no" 1>&6
1837 fi
1838
1839 fi
1840
1841 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1842 # to get the SysV transport functions.
1843 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1844 # needs -lnsl.
1845 # The nsl library prevents programs from opening the X display
1846 # on Irix 5.2, according to dickey@clark.net.
1847 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1848 echo "configure:1849: checking for gethostbyname" >&5
1849 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1850 echo $ac_n "(cached) $ac_c" 1>&6
1851 else
1852 cat > conftest.$ac_ext <<EOF
1853 #line 1854 "configure"
1854 #include "confdefs.h"
1855 /* System header to define __stub macros and hopefully few prototypes,
1856 which can conflict with char gethostbyname(); below. */
1857 #include <assert.h>
1858 /* Override any gcc2 internal prototype to avoid an error. */
1859 /* We use char because int might match the return type of a gcc2
1860 builtin and then its argument prototype would still apply. */
1861 char gethostbyname();
1862
1863 int main() {
1864
1865 /* The GNU C library defines this for functions which it implements
1866 to always fail with ENOSYS. Some functions are actually named
1867 something starting with __ and the normal name is an alias. */
1868 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1869 choke me
1870 #else
1871 gethostbyname();
1872 #endif
1873
1874 ; return 0; }
1875 EOF
1876 if { (eval echo configure:1877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1877 rm -rf conftest*
1878 eval "ac_cv_func_gethostbyname=yes"
1879 else
1880 echo "configure: failed program was:" >&5
1881 cat conftest.$ac_ext >&5
1882 rm -rf conftest*
1883 eval "ac_cv_func_gethostbyname=no"
1884 fi
1885 rm -f conftest*
1886 fi
1887
1888 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1889 echo "$ac_t""yes" 1>&6
1890 :
1891 else
1892 echo "$ac_t""no" 1>&6
1893 fi
1894
1895 if test $ac_cv_func_gethostbyname = no; then
1896 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1897 echo "configure:1898: checking for gethostbyname in -lnsl" >&5
1898 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1899 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1900 echo $ac_n "(cached) $ac_c" 1>&6
1901 else
1902 ac_save_LIBS="$LIBS"
1903 LIBS="-lnsl $LIBS"
1904 cat > conftest.$ac_ext <<EOF
1905 #line 1906 "configure"
1906 #include "confdefs.h"
1907 /* Override any gcc2 internal prototype to avoid an error. */
1908 /* We use char because int might match the return type of a gcc2
1909 builtin and then its argument prototype would still apply. */
1910 char gethostbyname();
1911
1912 int main() {
1913 gethostbyname()
1914 ; return 0; }
1915 EOF
1916 if { (eval echo configure:1917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1917 rm -rf conftest*
1918 eval "ac_cv_lib_$ac_lib_var=yes"
1919 else
1920 echo "configure: failed program was:" >&5
1921 cat conftest.$ac_ext >&5
1922 rm -rf conftest*
1923 eval "ac_cv_lib_$ac_lib_var=no"
1924 fi
1925 rm -f conftest*
1926 LIBS="$ac_save_LIBS"
1927
1928 fi
1929 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1930 echo "$ac_t""yes" 1>&6
1931 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1932 else
1933 echo "$ac_t""no" 1>&6
1934 fi
1935
1936 fi
1937
1938 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1939 # socket/setsockopt and other routines are undefined under SCO ODT
1940 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1941 # on later versions), says simon@lia.di.epfl.ch: it contains
1942 # gethostby* variants that don't use the nameserver (or something).
1943 # -lsocket must be given before -lnsl if both are needed.
1944 # We assume that if connect needs -lnsl, so does gethostbyname.
1945 echo $ac_n "checking for connect""... $ac_c" 1>&6
1946 echo "configure:1947: checking for connect" >&5
1947 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1948 echo $ac_n "(cached) $ac_c" 1>&6
1949 else
1950 cat > conftest.$ac_ext <<EOF
1951 #line 1952 "configure"
1952 #include "confdefs.h"
1953 /* System header to define __stub macros and hopefully few prototypes,
1954 which can conflict with char connect(); below. */
1955 #include <assert.h>
1956 /* Override any gcc2 internal prototype to avoid an error. */
1957 /* We use char because int might match the return type of a gcc2
1958 builtin and then its argument prototype would still apply. */
1959 char connect();
1960
1961 int main() {
1962
1963 /* The GNU C library defines this for functions which it implements
1964 to always fail with ENOSYS. Some functions are actually named
1965 something starting with __ and the normal name is an alias. */
1966 #if defined (__stub_connect) || defined (__stub___connect)
1967 choke me
1968 #else
1969 connect();
1970 #endif
1971
1972 ; return 0; }
1973 EOF
1974 if { (eval echo configure:1975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1975 rm -rf conftest*
1976 eval "ac_cv_func_connect=yes"
1977 else
1978 echo "configure: failed program was:" >&5
1979 cat conftest.$ac_ext >&5
1980 rm -rf conftest*
1981 eval "ac_cv_func_connect=no"
1982 fi
1983 rm -f conftest*
1984 fi
1985
1986 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1987 echo "$ac_t""yes" 1>&6
1988 :
1989 else
1990 echo "$ac_t""no" 1>&6
1991 fi
1992
1993 if test $ac_cv_func_connect = no; then
1994 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1995 echo "configure:1996: checking for connect in -lsocket" >&5
1996 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1997 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1998 echo $ac_n "(cached) $ac_c" 1>&6
1999 else
2000 ac_save_LIBS="$LIBS"
2001 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
2002 cat > conftest.$ac_ext <<EOF
2003 #line 2004 "configure"
2004 #include "confdefs.h"
2005 /* Override any gcc2 internal prototype to avoid an error. */
2006 /* We use char because int might match the return type of a gcc2
2007 builtin and then its argument prototype would still apply. */
2008 char connect();
2009
2010 int main() {
2011 connect()
2012 ; return 0; }
2013 EOF
2014 if { (eval echo configure:2015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2015 rm -rf conftest*
2016 eval "ac_cv_lib_$ac_lib_var=yes"
2017 else
2018 echo "configure: failed program was:" >&5
2019 cat conftest.$ac_ext >&5
2020 rm -rf conftest*
2021 eval "ac_cv_lib_$ac_lib_var=no"
2022 fi
2023 rm -f conftest*
2024 LIBS="$ac_save_LIBS"
2025
2026 fi
2027 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2028 echo "$ac_t""yes" 1>&6
2029 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
2030 else
2031 echo "$ac_t""no" 1>&6
2032 fi
2033
2034 fi
2035
2036 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2037 echo $ac_n "checking for remove""... $ac_c" 1>&6
2038 echo "configure:2039: checking for remove" >&5
2039 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2040 echo $ac_n "(cached) $ac_c" 1>&6
2041 else
2042 cat > conftest.$ac_ext <<EOF
2043 #line 2044 "configure"
2044 #include "confdefs.h"
2045 /* System header to define __stub macros and hopefully few prototypes,
2046 which can conflict with char remove(); below. */
2047 #include <assert.h>
2048 /* Override any gcc2 internal prototype to avoid an error. */
2049 /* We use char because int might match the return type of a gcc2
2050 builtin and then its argument prototype would still apply. */
2051 char remove();
2052
2053 int main() {
2054
2055 /* The GNU C library defines this for functions which it implements
2056 to always fail with ENOSYS. Some functions are actually named
2057 something starting with __ and the normal name is an alias. */
2058 #if defined (__stub_remove) || defined (__stub___remove)
2059 choke me
2060 #else
2061 remove();
2062 #endif
2063
2064 ; return 0; }
2065 EOF
2066 if { (eval echo configure:2067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2067 rm -rf conftest*
2068 eval "ac_cv_func_remove=yes"
2069 else
2070 echo "configure: failed program was:" >&5
2071 cat conftest.$ac_ext >&5
2072 rm -rf conftest*
2073 eval "ac_cv_func_remove=no"
2074 fi
2075 rm -f conftest*
2076 fi
2077
2078 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2079 echo "$ac_t""yes" 1>&6
2080 :
2081 else
2082 echo "$ac_t""no" 1>&6
2083 fi
2084
2085 if test $ac_cv_func_remove = no; then
2086 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2087 echo "configure:2088: checking for remove in -lposix" >&5
2088 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2089 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2090 echo $ac_n "(cached) $ac_c" 1>&6
2091 else
2092 ac_save_LIBS="$LIBS"
2093 LIBS="-lposix $LIBS"
2094 cat > conftest.$ac_ext <<EOF
2095 #line 2096 "configure"
2096 #include "confdefs.h"
2097 /* Override any gcc2 internal prototype to avoid an error. */
2098 /* We use char because int might match the return type of a gcc2
2099 builtin and then its argument prototype would still apply. */
2100 char remove();
2101
2102 int main() {
2103 remove()
2104 ; return 0; }
2105 EOF
2106 if { (eval echo configure:2107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2107 rm -rf conftest*
2108 eval "ac_cv_lib_$ac_lib_var=yes"
2109 else
2110 echo "configure: failed program was:" >&5
2111 cat conftest.$ac_ext >&5
2112 rm -rf conftest*
2113 eval "ac_cv_lib_$ac_lib_var=no"
2114 fi
2115 rm -f conftest*
2116 LIBS="$ac_save_LIBS"
2117
2118 fi
2119 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2120 echo "$ac_t""yes" 1>&6
2121 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
2122 else
2123 echo "$ac_t""no" 1>&6
2124 fi
2125
2126 fi
2127
2128 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2129 echo $ac_n "checking for shmat""... $ac_c" 1>&6
2130 echo "configure:2131: checking for shmat" >&5
2131 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2132 echo $ac_n "(cached) $ac_c" 1>&6
2133 else
2134 cat > conftest.$ac_ext <<EOF
2135 #line 2136 "configure"
2136 #include "confdefs.h"
2137 /* System header to define __stub macros and hopefully few prototypes,
2138 which can conflict with char shmat(); below. */
2139 #include <assert.h>
2140 /* Override any gcc2 internal prototype to avoid an error. */
2141 /* We use char because int might match the return type of a gcc2
2142 builtin and then its argument prototype would still apply. */
2143 char shmat();
2144
2145 int main() {
2146
2147 /* The GNU C library defines this for functions which it implements
2148 to always fail with ENOSYS. Some functions are actually named
2149 something starting with __ and the normal name is an alias. */
2150 #if defined (__stub_shmat) || defined (__stub___shmat)
2151 choke me
2152 #else
2153 shmat();
2154 #endif
2155
2156 ; return 0; }
2157 EOF
2158 if { (eval echo configure:2159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2159 rm -rf conftest*
2160 eval "ac_cv_func_shmat=yes"
2161 else
2162 echo "configure: failed program was:" >&5
2163 cat conftest.$ac_ext >&5
2164 rm -rf conftest*
2165 eval "ac_cv_func_shmat=no"
2166 fi
2167 rm -f conftest*
2168 fi
2169
2170 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2171 echo "$ac_t""yes" 1>&6
2172 :
2173 else
2174 echo "$ac_t""no" 1>&6
2175 fi
2176
2177 if test $ac_cv_func_shmat = no; then
2178 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2179 echo "configure:2180: checking for shmat in -lipc" >&5
2180 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2181 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2182 echo $ac_n "(cached) $ac_c" 1>&6
2183 else
2184 ac_save_LIBS="$LIBS"
2185 LIBS="-lipc $LIBS"
2186 cat > conftest.$ac_ext <<EOF
2187 #line 2188 "configure"
2188 #include "confdefs.h"
2189 /* Override any gcc2 internal prototype to avoid an error. */
2190 /* We use char because int might match the return type of a gcc2
2191 builtin and then its argument prototype would still apply. */
2192 char shmat();
2193
2194 int main() {
2195 shmat()
2196 ; return 0; }
2197 EOF
2198 if { (eval echo configure:2199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2199 rm -rf conftest*
2200 eval "ac_cv_lib_$ac_lib_var=yes"
2201 else
2202 echo "configure: failed program was:" >&5
2203 cat conftest.$ac_ext >&5
2204 rm -rf conftest*
2205 eval "ac_cv_lib_$ac_lib_var=no"
2206 fi
2207 rm -f conftest*
2208 LIBS="$ac_save_LIBS"
2209
2210 fi
2211 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2212 echo "$ac_t""yes" 1>&6
2213 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
2214 else
2215 echo "$ac_t""no" 1>&6
2216 fi
2217
2218 fi
2219 fi
2220
2221 # Check for libraries that X11R6 Xt/Xaw programs need.
2222 ac_save_LDFLAGS="$LDFLAGS"
2223 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
2224 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2225 # check for ICE first), but we must link in the order -lSM -lICE or
2226 # we get undefined symbols. So assume we have SM if we have ICE.
2227 # These have to be linked with before -lX11, unlike the other
2228 # libraries we check for below, so use a different variable.
2229 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2230 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2231 echo "configure:2232: checking for IceConnectionNumber in -lICE" >&5
2232 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2233 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2234 echo $ac_n "(cached) $ac_c" 1>&6
2235 else
2236 ac_save_LIBS="$LIBS"
2237 LIBS="-lICE $LIBS"
2238 cat > conftest.$ac_ext <<EOF
2239 #line 2240 "configure"
2240 #include "confdefs.h"
2241 /* Override any gcc2 internal prototype to avoid an error. */
2242 /* We use char because int might match the return type of a gcc2
2243 builtin and then its argument prototype would still apply. */
2244 char IceConnectionNumber();
2245
2246 int main() {
2247 IceConnectionNumber()
2248 ; return 0; }
2249 EOF
2250 if { (eval echo configure:2251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2251 rm -rf conftest*
2252 eval "ac_cv_lib_$ac_lib_var=yes"
2253 else
2254 echo "configure: failed program was:" >&5
2255 cat conftest.$ac_ext >&5
2256 rm -rf conftest*
2257 eval "ac_cv_lib_$ac_lib_var=no"
2258 fi
2259 rm -f conftest*
2260 LIBS="$ac_save_LIBS"
2261
2262 fi
2263 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2264 echo "$ac_t""yes" 1>&6
2265 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
2266 else
2267 echo "$ac_t""no" 1>&6
2268 fi
2269
2270 LDFLAGS="$ac_save_LDFLAGS"
2271
2272 fi
2273
2274
2275 ac_header_dirent=no
2276 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2277 do
2278 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2279 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2280 echo "configure:2281: checking for $ac_hdr that defines DIR" >&5
2281 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2282 echo $ac_n "(cached) $ac_c" 1>&6
2283 else
2284 cat > conftest.$ac_ext <<EOF
2285 #line 2286 "configure"
2286 #include "confdefs.h"
2287 #include <sys/types.h>
2288 #include <$ac_hdr>
2289 int main() {
2290 DIR *dirp = 0;
2291 ; return 0; }
2292 EOF
2293 if { (eval echo configure:2294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2294 rm -rf conftest*
2295 eval "ac_cv_header_dirent_$ac_safe=yes"
2296 else
2297 echo "configure: failed program was:" >&5
2298 cat conftest.$ac_ext >&5
2299 rm -rf conftest*
2300 eval "ac_cv_header_dirent_$ac_safe=no"
2301 fi
2302 rm -f conftest*
2303 fi
2304 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2305 echo "$ac_t""yes" 1>&6
2306 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2307 cat >> confdefs.h <<EOF
2308 #define $ac_tr_hdr 1
2309 EOF
2310 ac_header_dirent=$ac_hdr; break
2311 else
2312 echo "$ac_t""no" 1>&6
2313 fi
2314 done
2315 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2316 if test $ac_header_dirent = dirent.h; then
2317 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2318 echo "configure:2319: checking for opendir in -ldir" >&5
2319 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2320 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2321 echo $ac_n "(cached) $ac_c" 1>&6
2322 else
2323 ac_save_LIBS="$LIBS"
2324 LIBS="-ldir $LIBS"
2325 cat > conftest.$ac_ext <<EOF
2326 #line 2327 "configure"
2327 #include "confdefs.h"
2328 /* Override any gcc2 internal prototype to avoid an error. */
2329 /* We use char because int might match the return type of a gcc2
2330 builtin and then its argument prototype would still apply. */
2331 char opendir();
2332
2333 int main() {
2334 opendir()
2335 ; return 0; }
2336 EOF
2337 if { (eval echo configure:2338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2338 rm -rf conftest*
2339 eval "ac_cv_lib_$ac_lib_var=yes"
2340 else
2341 echo "configure: failed program was:" >&5
2342 cat conftest.$ac_ext >&5
2343 rm -rf conftest*
2344 eval "ac_cv_lib_$ac_lib_var=no"
2345 fi
2346 rm -f conftest*
2347 LIBS="$ac_save_LIBS"
2348
2349 fi
2350 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2351 echo "$ac_t""yes" 1>&6
2352 LIBS="$LIBS -ldir"
2353 else
2354 echo "$ac_t""no" 1>&6
2355 fi
2356
2357 else
2358 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2359 echo "configure:2360: checking for opendir in -lx" >&5
2360 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2361 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2362 echo $ac_n "(cached) $ac_c" 1>&6
2363 else
2364 ac_save_LIBS="$LIBS"
2365 LIBS="-lx $LIBS"
2366 cat > conftest.$ac_ext <<EOF
2367 #line 2368 "configure"
2368 #include "confdefs.h"
2369 /* Override any gcc2 internal prototype to avoid an error. */
2370 /* We use char because int might match the return type of a gcc2
2371 builtin and then its argument prototype would still apply. */
2372 char opendir();
2373
2374 int main() {
2375 opendir()
2376 ; return 0; }
2377 EOF
2378 if { (eval echo configure:2379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2379 rm -rf conftest*
2380 eval "ac_cv_lib_$ac_lib_var=yes"
2381 else
2382 echo "configure: failed program was:" >&5
2383 cat conftest.$ac_ext >&5
2384 rm -rf conftest*
2385 eval "ac_cv_lib_$ac_lib_var=no"
2386 fi
2387 rm -f conftest*
2388 LIBS="$ac_save_LIBS"
2389
2390 fi
2391 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2392 echo "$ac_t""yes" 1>&6
2393 LIBS="$LIBS -lx"
2394 else
2395 echo "$ac_t""no" 1>&6
2396 fi
2397
2398 fi
2399
2400 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2401 echo "configure:2402: checking for ANSI C header files" >&5
2402 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2403 echo $ac_n "(cached) $ac_c" 1>&6
2404 else
2405 cat > conftest.$ac_ext <<EOF
2406 #line 2407 "configure"
2407 #include "confdefs.h"
2408 #include <stdlib.h>
2409 #include <stdarg.h>
2410 #include <string.h>
2411 #include <float.h>
2412 EOF
2413 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2414 { (eval echo configure:2415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2415 ac_err=`grep -v '^ *+' conftest.out`
2416 if test -z "$ac_err"; then
2417 rm -rf conftest*
2418 ac_cv_header_stdc=yes
2419 else
2420 echo "$ac_err" >&5
2421 echo "configure: failed program was:" >&5
2422 cat conftest.$ac_ext >&5
2423 rm -rf conftest*
2424 ac_cv_header_stdc=no
2425 fi
2426 rm -f conftest*
2427
2428 if test $ac_cv_header_stdc = yes; then
2429 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2430 cat > conftest.$ac_ext <<EOF
2431 #line 2432 "configure"
2432 #include "confdefs.h"
2433 #include <string.h>
2434 EOF
2435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2436 egrep "memchr" >/dev/null 2>&1; then
2437 :
2438 else
2439 rm -rf conftest*
2440 ac_cv_header_stdc=no
2441 fi
2442 rm -f conftest*
2443
2444 fi
2445
2446 if test $ac_cv_header_stdc = yes; then
2447 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2448 cat > conftest.$ac_ext <<EOF
2449 #line 2450 "configure"
2450 #include "confdefs.h"
2451 #include <stdlib.h>
2452 EOF
2453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2454 egrep "free" >/dev/null 2>&1; then
2455 :
2456 else
2457 rm -rf conftest*
2458 ac_cv_header_stdc=no
2459 fi
2460 rm -f conftest*
2461
2462 fi
2463
2464 if test $ac_cv_header_stdc = yes; then
2465 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2466 if test "$cross_compiling" = yes; then
2467 :
2468 else
2469 cat > conftest.$ac_ext <<EOF
2470 #line 2471 "configure"
2471 #include "confdefs.h"
2472 #include <ctype.h>
2473 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2474 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2475 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2476 int main () { int i; for (i = 0; i < 256; i++)
2477 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2478 exit (0); }
2479
2480 EOF
2481 if { (eval echo configure:2482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2482 then
2483 :
2484 else
2485 echo "configure: failed program was:" >&5
2486 cat conftest.$ac_ext >&5
2487 rm -fr conftest*
2488 ac_cv_header_stdc=no
2489 fi
2490 rm -fr conftest*
2491 fi
2492
2493 fi
2494 fi
2495
2496 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2497 if test $ac_cv_header_stdc = yes; then
2498 cat >> confdefs.h <<\EOF
2499 #define STDC_HEADERS 1
2500 EOF
2501
2502 fi
2503
2504 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2505 echo "configure:2506: checking for sys/wait.h that is POSIX.1 compatible" >&5
2506 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2507 echo $ac_n "(cached) $ac_c" 1>&6
2508 else
2509 cat > conftest.$ac_ext <<EOF
2510 #line 2511 "configure"
2511 #include "confdefs.h"
2512 #include <sys/types.h>
2513 #include <sys/wait.h>
2514 #ifndef WEXITSTATUS
2515 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2516 #endif
2517 #ifndef WIFEXITED
2518 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2519 #endif
2520 int main() {
2521 int s;
2522 wait (&s);
2523 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2524 ; return 0; }
2525 EOF
2526 if { (eval echo configure:2527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2527 rm -rf conftest*
2528 ac_cv_header_sys_wait_h=yes
2529 else
2530 echo "configure: failed program was:" >&5
2531 cat conftest.$ac_ext >&5
2532 rm -rf conftest*
2533 ac_cv_header_sys_wait_h=no
2534 fi
2535 rm -f conftest*
2536 fi
2537
2538 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2539 if test $ac_cv_header_sys_wait_h = yes; then
2540 cat >> confdefs.h <<\EOF
2541 #define HAVE_SYS_WAIT_H 1
2542 EOF
2543
2544 fi
2545
2546 for ac_hdr in fcntl.h
2547 do
2548 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2549 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2550 echo "configure:2551: checking for $ac_hdr" >&5
2551 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2552 echo $ac_n "(cached) $ac_c" 1>&6
2553 else
2554 cat > conftest.$ac_ext <<EOF
2555 #line 2556 "configure"
2556 #include "confdefs.h"
2557 #include <$ac_hdr>
2558 EOF
2559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2560 { (eval echo configure:2561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2561 ac_err=`grep -v '^ *+' conftest.out`
2562 if test -z "$ac_err"; then
2563 rm -rf conftest*
2564 eval "ac_cv_header_$ac_safe=yes"
2565 else
2566 echo "$ac_err" >&5
2567 echo "configure: failed program was:" >&5
2568 cat conftest.$ac_ext >&5
2569 rm -rf conftest*
2570 eval "ac_cv_header_$ac_safe=no"
2571 fi
2572 rm -f conftest*
2573 fi
2574 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2575 echo "$ac_t""yes" 1>&6
2576 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2577 cat >> confdefs.h <<EOF
2578 #define $ac_tr_hdr 1
2579 EOF
2580
2581 else
2582 echo "$ac_t""no" 1>&6
2583 fi
2584 done
2585
2586 for ac_hdr in limits.h
2587 do
2588 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2589 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2590 echo "configure:2591: checking for $ac_hdr" >&5
2591 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2592 echo $ac_n "(cached) $ac_c" 1>&6
2593 else
2594 cat > conftest.$ac_ext <<EOF
2595 #line 2596 "configure"
2596 #include "confdefs.h"
2597 #include <$ac_hdr>
2598 EOF
2599 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2600 { (eval echo configure:2601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2601 ac_err=`grep -v '^ *+' conftest.out`
2602 if test -z "$ac_err"; then
2603 rm -rf conftest*
2604 eval "ac_cv_header_$ac_safe=yes"
2605 else
2606 echo "$ac_err" >&5
2607 echo "configure: failed program was:" >&5
2608 cat conftest.$ac_ext >&5
2609 rm -rf conftest*
2610 eval "ac_cv_header_$ac_safe=no"
2611 fi
2612 rm -f conftest*
2613 fi
2614 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2615 echo "$ac_t""yes" 1>&6
2616 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2617 cat >> confdefs.h <<EOF
2618 #define $ac_tr_hdr 1
2619 EOF
2620
2621 else
2622 echo "$ac_t""no" 1>&6
2623 fi
2624 done
2625
2626 for ac_hdr in sys/file.h
2627 do
2628 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2629 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2630 echo "configure:2631: checking for $ac_hdr" >&5
2631 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2632 echo $ac_n "(cached) $ac_c" 1>&6
2633 else
2634 cat > conftest.$ac_ext <<EOF
2635 #line 2636 "configure"
2636 #include "confdefs.h"
2637 #include <$ac_hdr>
2638 EOF
2639 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2640 { (eval echo configure:2641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2641 ac_err=`grep -v '^ *+' conftest.out`
2642 if test -z "$ac_err"; then
2643 rm -rf conftest*
2644 eval "ac_cv_header_$ac_safe=yes"
2645 else
2646 echo "$ac_err" >&5
2647 echo "configure: failed program was:" >&5
2648 cat conftest.$ac_ext >&5
2649 rm -rf conftest*
2650 eval "ac_cv_header_$ac_safe=no"
2651 fi
2652 rm -f conftest*
2653 fi
2654 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2655 echo "$ac_t""yes" 1>&6
2656 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2657 cat >> confdefs.h <<EOF
2658 #define $ac_tr_hdr 1
2659 EOF
2660
2661 else
2662 echo "$ac_t""no" 1>&6
2663 fi
2664 done
2665
2666 for ac_hdr in sys/time.h
2667 do
2668 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2669 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2670 echo "configure:2671: checking for $ac_hdr" >&5
2671 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2672 echo $ac_n "(cached) $ac_c" 1>&6
2673 else
2674 cat > conftest.$ac_ext <<EOF
2675 #line 2676 "configure"
2676 #include "confdefs.h"
2677 #include <$ac_hdr>
2678 EOF
2679 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2680 { (eval echo configure:2681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2681 ac_err=`grep -v '^ *+' conftest.out`
2682 if test -z "$ac_err"; then
2683 rm -rf conftest*
2684 eval "ac_cv_header_$ac_safe=yes"
2685 else
2686 echo "$ac_err" >&5
2687 echo "configure: failed program was:" >&5
2688 cat conftest.$ac_ext >&5
2689 rm -rf conftest*
2690 eval "ac_cv_header_$ac_safe=no"
2691 fi
2692 rm -f conftest*
2693 fi
2694 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2695 echo "$ac_t""yes" 1>&6
2696 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2697 cat >> confdefs.h <<EOF
2698 #define $ac_tr_hdr 1
2699 EOF
2700
2701 else
2702 echo "$ac_t""no" 1>&6
2703 fi
2704 done
2705
2706 for ac_hdr in unistd.h
2707 do
2708 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2709 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2710 echo "configure:2711: checking for $ac_hdr" >&5
2711 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2712 echo $ac_n "(cached) $ac_c" 1>&6
2713 else
2714 cat > conftest.$ac_ext <<EOF
2715 #line 2716 "configure"
2716 #include "confdefs.h"
2717 #include <$ac_hdr>
2718 EOF
2719 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2720 { (eval echo configure:2721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2721 ac_err=`grep -v '^ *+' conftest.out`
2722 if test -z "$ac_err"; then
2723 rm -rf conftest*
2724 eval "ac_cv_header_$ac_safe=yes"
2725 else
2726 echo "$ac_err" >&5
2727 echo "configure: failed program was:" >&5
2728 cat conftest.$ac_ext >&5
2729 rm -rf conftest*
2730 eval "ac_cv_header_$ac_safe=no"
2731 fi
2732 rm -f conftest*
2733 fi
2734 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2735 echo "$ac_t""yes" 1>&6
2736 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2737 cat >> confdefs.h <<EOF
2738 #define $ac_tr_hdr 1
2739 EOF
2740
2741 else
2742 echo "$ac_t""no" 1>&6
2743 fi
2744 done
2745
2746 for ac_hdr in fnmatch.h
2747 do
2748 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2749 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2750 echo "configure:2751: checking for $ac_hdr" >&5
2751 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2752 echo $ac_n "(cached) $ac_c" 1>&6
2753 else
2754 cat > conftest.$ac_ext <<EOF
2755 #line 2756 "configure"
2756 #include "confdefs.h"
2757 #include <$ac_hdr>
2758 EOF
2759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2760 { (eval echo configure:2761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2761 ac_err=`grep -v '^ *+' conftest.out`
2762 if test -z "$ac_err"; then
2763 rm -rf conftest*
2764 eval "ac_cv_header_$ac_safe=yes"
2765 else
2766 echo "$ac_err" >&5
2767 echo "configure: failed program was:" >&5
2768 cat conftest.$ac_ext >&5
2769 rm -rf conftest*
2770 eval "ac_cv_header_$ac_safe=no"
2771 fi
2772 rm -f conftest*
2773 fi
2774 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2775 echo "$ac_t""yes" 1>&6
2776 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2777 cat >> confdefs.h <<EOF
2778 #define $ac_tr_hdr 1
2779 EOF
2780
2781 else
2782 echo "$ac_t""no" 1>&6
2783 fi
2784 done
2785
2786 for ac_hdr in linux/joystick.h
2787 do
2788 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2789 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2790 echo "configure:2791: checking for $ac_hdr" >&5
2791 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2792 echo $ac_n "(cached) $ac_c" 1>&6
2793 else
2794 cat > conftest.$ac_ext <<EOF
2795 #line 2796 "configure"
2796 #include "confdefs.h"
2797 #include <$ac_hdr>
2798 EOF
2799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2800 { (eval echo configure:2801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2801 ac_err=`grep -v '^ *+' conftest.out`
2802 if test -z "$ac_err"; then
2803 rm -rf conftest*
2804 eval "ac_cv_header_$ac_safe=yes"
2805 else
2806 echo "$ac_err" >&5
2807 echo "configure: failed program was:" >&5
2808 cat conftest.$ac_ext >&5
2809 rm -rf conftest*
2810 eval "ac_cv_header_$ac_safe=no"
2811 fi
2812 rm -f conftest*
2813 fi
2814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2815 echo "$ac_t""yes" 1>&6
2816 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2817 cat >> confdefs.h <<EOF
2818 #define $ac_tr_hdr 1
2819 EOF
2820
2821 else
2822 echo "$ac_t""no" 1>&6
2823 fi
2824 done
2825
2826 GTK_JOYSTICK=""
2827 if test "$ac_cv_header_linux_joystick_h" = "yes"; then
2828 GTK_JOYSTICK="gtk/joystick.cpp"
2829 fi
2830
2831
2832
2833 ac_ext=C
2834 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2835 ac_cpp='$CXXCPP $CPPFLAGS'
2836 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2837 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2838 cross_compiling=$ac_cv_prog_cxx_cross
2839
2840 for ac_hdr in iostream
2841 do
2842 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2843 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2844 echo "configure:2845: checking for $ac_hdr" >&5
2845 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2846 echo $ac_n "(cached) $ac_c" 1>&6
2847 else
2848 cat > conftest.$ac_ext <<EOF
2849 #line 2850 "configure"
2850 #include "confdefs.h"
2851 #include <$ac_hdr>
2852 EOF
2853 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2854 { (eval echo configure:2855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2855 ac_err=`grep -v '^ *+' conftest.out`
2856 if test -z "$ac_err"; then
2857 rm -rf conftest*
2858 eval "ac_cv_header_$ac_safe=yes"
2859 else
2860 echo "$ac_err" >&5
2861 echo "configure: failed program was:" >&5
2862 cat conftest.$ac_ext >&5
2863 rm -rf conftest*
2864 eval "ac_cv_header_$ac_safe=no"
2865 fi
2866 rm -f conftest*
2867 fi
2868 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2869 echo "$ac_t""yes" 1>&6
2870 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2871 cat >> confdefs.h <<EOF
2872 #define $ac_tr_hdr 1
2873 EOF
2874
2875 else
2876 echo "$ac_t""no" 1>&6
2877 fi
2878 done
2879
2880 if test "x$HAVE_IOSTREAM" = "x" ; then
2881 cat >> confdefs.h <<\EOF
2882 #define wxUSE_IOSTREAMH 1
2883 EOF
2884
2885 fi
2886 ac_ext=c
2887 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2888 ac_cpp='$CPP $CPPFLAGS'
2889 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2890 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2891 cross_compiling=$ac_cv_prog_cc_cross
2892
2893
2894 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2895 echo "configure:2896: checking for uid_t in sys/types.h" >&5
2896 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2897 echo $ac_n "(cached) $ac_c" 1>&6
2898 else
2899 cat > conftest.$ac_ext <<EOF
2900 #line 2901 "configure"
2901 #include "confdefs.h"
2902 #include <sys/types.h>
2903 EOF
2904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2905 egrep "uid_t" >/dev/null 2>&1; then
2906 rm -rf conftest*
2907 ac_cv_type_uid_t=yes
2908 else
2909 rm -rf conftest*
2910 ac_cv_type_uid_t=no
2911 fi
2912 rm -f conftest*
2913
2914 fi
2915
2916 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2917 if test $ac_cv_type_uid_t = no; then
2918 cat >> confdefs.h <<\EOF
2919 #define uid_t int
2920 EOF
2921
2922 cat >> confdefs.h <<\EOF
2923 #define gid_t int
2924 EOF
2925
2926 fi
2927
2928 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2929 echo "configure:2930: checking type of array argument to getgroups" >&5
2930 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2931 echo $ac_n "(cached) $ac_c" 1>&6
2932 else
2933 if test "$cross_compiling" = yes; then
2934 ac_cv_type_getgroups=cross
2935 else
2936 cat > conftest.$ac_ext <<EOF
2937 #line 2938 "configure"
2938 #include "confdefs.h"
2939
2940 /* Thanks to Mike Rendell for this test. */
2941 #include <sys/types.h>
2942 #define NGID 256
2943 #undef MAX
2944 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2945 main()
2946 {
2947 gid_t gidset[NGID];
2948 int i, n;
2949 union { gid_t gval; long lval; } val;
2950
2951 val.lval = -1;
2952 for (i = 0; i < NGID; i++)
2953 gidset[i] = val.gval;
2954 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2955 gidset);
2956 /* Exit non-zero if getgroups seems to require an array of ints. This
2957 happens when gid_t is short but getgroups modifies an array of ints. */
2958 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2959 }
2960
2961 EOF
2962 if { (eval echo configure:2963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2963 then
2964 ac_cv_type_getgroups=gid_t
2965 else
2966 echo "configure: failed program was:" >&5
2967 cat conftest.$ac_ext >&5
2968 rm -fr conftest*
2969 ac_cv_type_getgroups=int
2970 fi
2971 rm -fr conftest*
2972 fi
2973
2974 if test $ac_cv_type_getgroups = cross; then
2975 cat > conftest.$ac_ext <<EOF
2976 #line 2977 "configure"
2977 #include "confdefs.h"
2978 #include <unistd.h>
2979 EOF
2980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2981 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
2982 rm -rf conftest*
2983 ac_cv_type_getgroups=gid_t
2984 else
2985 rm -rf conftest*
2986 ac_cv_type_getgroups=int
2987 fi
2988 rm -f conftest*
2989
2990 fi
2991 fi
2992
2993 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2994 cat >> confdefs.h <<EOF
2995 #define GETGROUPS_T $ac_cv_type_getgroups
2996 EOF
2997
2998
2999 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3000 echo "configure:3001: checking for mode_t" >&5
3001 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3002 echo $ac_n "(cached) $ac_c" 1>&6
3003 else
3004 cat > conftest.$ac_ext <<EOF
3005 #line 3006 "configure"
3006 #include "confdefs.h"
3007 #include <sys/types.h>
3008 #if STDC_HEADERS
3009 #include <stdlib.h>
3010 #include <stddef.h>
3011 #endif
3012 EOF
3013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3014 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3015 rm -rf conftest*
3016 ac_cv_type_mode_t=yes
3017 else
3018 rm -rf conftest*
3019 ac_cv_type_mode_t=no
3020 fi
3021 rm -f conftest*
3022
3023 fi
3024 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3025 if test $ac_cv_type_mode_t = no; then
3026 cat >> confdefs.h <<\EOF
3027 #define mode_t int
3028 EOF
3029
3030 fi
3031
3032 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3033 echo "configure:3034: checking for off_t" >&5
3034 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3035 echo $ac_n "(cached) $ac_c" 1>&6
3036 else
3037 cat > conftest.$ac_ext <<EOF
3038 #line 3039 "configure"
3039 #include "confdefs.h"
3040 #include <sys/types.h>
3041 #if STDC_HEADERS
3042 #include <stdlib.h>
3043 #include <stddef.h>
3044 #endif
3045 EOF
3046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3047 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3048 rm -rf conftest*
3049 ac_cv_type_off_t=yes
3050 else
3051 rm -rf conftest*
3052 ac_cv_type_off_t=no
3053 fi
3054 rm -f conftest*
3055
3056 fi
3057 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3058 if test $ac_cv_type_off_t = no; then
3059 cat >> confdefs.h <<\EOF
3060 #define off_t long
3061 EOF
3062
3063 fi
3064
3065 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3066 echo "configure:3067: checking for pid_t" >&5
3067 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3068 echo $ac_n "(cached) $ac_c" 1>&6
3069 else
3070 cat > conftest.$ac_ext <<EOF
3071 #line 3072 "configure"
3072 #include "confdefs.h"
3073 #include <sys/types.h>
3074 #if STDC_HEADERS
3075 #include <stdlib.h>
3076 #include <stddef.h>
3077 #endif
3078 EOF
3079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3080 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3081 rm -rf conftest*
3082 ac_cv_type_pid_t=yes
3083 else
3084 rm -rf conftest*
3085 ac_cv_type_pid_t=no
3086 fi
3087 rm -f conftest*
3088
3089 fi
3090 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3091 if test $ac_cv_type_pid_t = no; then
3092 cat >> confdefs.h <<\EOF
3093 #define pid_t int
3094 EOF
3095
3096 fi
3097
3098 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3099 echo "configure:3100: checking return type of signal handlers" >&5
3100 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3101 echo $ac_n "(cached) $ac_c" 1>&6
3102 else
3103 cat > conftest.$ac_ext <<EOF
3104 #line 3105 "configure"
3105 #include "confdefs.h"
3106 #include <sys/types.h>
3107 #include <signal.h>
3108 #ifdef signal
3109 #undef signal
3110 #endif
3111 #ifdef __cplusplus
3112 extern "C" void (*signal (int, void (*)(int)))(int);
3113 #else
3114 void (*signal ()) ();
3115 #endif
3116
3117 int main() {
3118 int i;
3119 ; return 0; }
3120 EOF
3121 if { (eval echo configure:3122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3122 rm -rf conftest*
3123 ac_cv_type_signal=void
3124 else
3125 echo "configure: failed program was:" >&5
3126 cat conftest.$ac_ext >&5
3127 rm -rf conftest*
3128 ac_cv_type_signal=int
3129 fi
3130 rm -f conftest*
3131 fi
3132
3133 echo "$ac_t""$ac_cv_type_signal" 1>&6
3134 cat >> confdefs.h <<EOF
3135 #define RETSIGTYPE $ac_cv_type_signal
3136 EOF
3137
3138
3139 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3140 echo "configure:3141: checking for size_t" >&5
3141 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3142 echo $ac_n "(cached) $ac_c" 1>&6
3143 else
3144 cat > conftest.$ac_ext <<EOF
3145 #line 3146 "configure"
3146 #include "confdefs.h"
3147 #include <sys/types.h>
3148 #if STDC_HEADERS
3149 #include <stdlib.h>
3150 #include <stddef.h>
3151 #endif
3152 EOF
3153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3154 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3155 rm -rf conftest*
3156 ac_cv_type_size_t=yes
3157 else
3158 rm -rf conftest*
3159 ac_cv_type_size_t=no
3160 fi
3161 rm -f conftest*
3162
3163 fi
3164 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3165 if test $ac_cv_type_size_t = no; then
3166 cat >> confdefs.h <<\EOF
3167 #define size_t unsigned
3168 EOF
3169
3170 fi
3171
3172 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3173 echo "configure:3174: checking for uid_t in sys/types.h" >&5
3174 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3175 echo $ac_n "(cached) $ac_c" 1>&6
3176 else
3177 cat > conftest.$ac_ext <<EOF
3178 #line 3179 "configure"
3179 #include "confdefs.h"
3180 #include <sys/types.h>
3181 EOF
3182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3183 egrep "uid_t" >/dev/null 2>&1; then
3184 rm -rf conftest*
3185 ac_cv_type_uid_t=yes
3186 else
3187 rm -rf conftest*
3188 ac_cv_type_uid_t=no
3189 fi
3190 rm -f conftest*
3191
3192 fi
3193
3194 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3195 if test $ac_cv_type_uid_t = no; then
3196 cat >> confdefs.h <<\EOF
3197 #define uid_t int
3198 EOF
3199
3200 cat >> confdefs.h <<\EOF
3201 #define gid_t int
3202 EOF
3203
3204 fi
3205
3206
3207
3208 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3209 echo "configure:3210: checking whether stat file-mode macros are broken" >&5
3210 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3211 echo $ac_n "(cached) $ac_c" 1>&6
3212 else
3213 cat > conftest.$ac_ext <<EOF
3214 #line 3215 "configure"
3215 #include "confdefs.h"
3216 #include <sys/types.h>
3217 #include <sys/stat.h>
3218
3219 #if defined(S_ISBLK) && defined(S_IFDIR)
3220 # if S_ISBLK (S_IFDIR)
3221 You lose.
3222 # endif
3223 #endif
3224
3225 #if defined(S_ISBLK) && defined(S_IFCHR)
3226 # if S_ISBLK (S_IFCHR)
3227 You lose.
3228 # endif
3229 #endif
3230
3231 #if defined(S_ISLNK) && defined(S_IFREG)
3232 # if S_ISLNK (S_IFREG)
3233 You lose.
3234 # endif
3235 #endif
3236
3237 #if defined(S_ISSOCK) && defined(S_IFREG)
3238 # if S_ISSOCK (S_IFREG)
3239 You lose.
3240 # endif
3241 #endif
3242
3243 EOF
3244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3245 egrep "You lose" >/dev/null 2>&1; then
3246 rm -rf conftest*
3247 ac_cv_header_stat_broken=yes
3248 else
3249 rm -rf conftest*
3250 ac_cv_header_stat_broken=no
3251 fi
3252 rm -f conftest*
3253
3254 fi
3255
3256 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3257 if test $ac_cv_header_stat_broken = yes; then
3258 cat >> confdefs.h <<\EOF
3259 #define STAT_MACROS_BROKEN 1
3260 EOF
3261
3262 fi
3263
3264 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3265 echo "configure:3266: checking whether time.h and sys/time.h may both be included" >&5
3266 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3267 echo $ac_n "(cached) $ac_c" 1>&6
3268 else
3269 cat > conftest.$ac_ext <<EOF
3270 #line 3271 "configure"
3271 #include "confdefs.h"
3272 #include <sys/types.h>
3273 #include <sys/time.h>
3274 #include <time.h>
3275 int main() {
3276 struct tm *tp;
3277 ; return 0; }
3278 EOF
3279 if { (eval echo configure:3280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3280 rm -rf conftest*
3281 ac_cv_header_time=yes
3282 else
3283 echo "configure: failed program was:" >&5
3284 cat conftest.$ac_ext >&5
3285 rm -rf conftest*
3286 ac_cv_header_time=no
3287 fi
3288 rm -f conftest*
3289 fi
3290
3291 echo "$ac_t""$ac_cv_header_time" 1>&6
3292 if test $ac_cv_header_time = yes; then
3293 cat >> confdefs.h <<\EOF
3294 #define TIME_WITH_SYS_TIME 1
3295 EOF
3296
3297 fi
3298
3299 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
3300 echo "configure:3301: checking for st_blksize in struct stat" >&5
3301 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
3302 echo $ac_n "(cached) $ac_c" 1>&6
3303 else
3304 cat > conftest.$ac_ext <<EOF
3305 #line 3306 "configure"
3306 #include "confdefs.h"
3307 #include <sys/types.h>
3308 #include <sys/stat.h>
3309 int main() {
3310 struct stat s; s.st_blksize;
3311 ; return 0; }
3312 EOF
3313 if { (eval echo configure:3314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3314 rm -rf conftest*
3315 ac_cv_struct_st_blksize=yes
3316 else
3317 echo "configure: failed program was:" >&5
3318 cat conftest.$ac_ext >&5
3319 rm -rf conftest*
3320 ac_cv_struct_st_blksize=no
3321 fi
3322 rm -f conftest*
3323 fi
3324
3325 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
3326 if test $ac_cv_struct_st_blksize = yes; then
3327 cat >> confdefs.h <<\EOF
3328 #define HAVE_ST_BLKSIZE 1
3329 EOF
3330
3331 fi
3332
3333 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
3334 echo "configure:3335: checking for st_blocks in struct stat" >&5
3335 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
3336 echo $ac_n "(cached) $ac_c" 1>&6
3337 else
3338 cat > conftest.$ac_ext <<EOF
3339 #line 3340 "configure"
3340 #include "confdefs.h"
3341 #include <sys/types.h>
3342 #include <sys/stat.h>
3343 int main() {
3344 struct stat s; s.st_blocks;
3345 ; return 0; }
3346 EOF
3347 if { (eval echo configure:3348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3348 rm -rf conftest*
3349 ac_cv_struct_st_blocks=yes
3350 else
3351 echo "configure: failed program was:" >&5
3352 cat conftest.$ac_ext >&5
3353 rm -rf conftest*
3354 ac_cv_struct_st_blocks=no
3355 fi
3356 rm -f conftest*
3357 fi
3358
3359 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
3360 if test $ac_cv_struct_st_blocks = yes; then
3361 cat >> confdefs.h <<\EOF
3362 #define HAVE_ST_BLOCKS 1
3363 EOF
3364
3365 else
3366 LIBOBJS="$LIBOBJS fileblocks.o"
3367 fi
3368
3369 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3370 echo "configure:3371: checking for st_rdev in struct stat" >&5
3371 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3372 echo $ac_n "(cached) $ac_c" 1>&6
3373 else
3374 cat > conftest.$ac_ext <<EOF
3375 #line 3376 "configure"
3376 #include "confdefs.h"
3377 #include <sys/types.h>
3378 #include <sys/stat.h>
3379 int main() {
3380 struct stat s; s.st_rdev;
3381 ; return 0; }
3382 EOF
3383 if { (eval echo configure:3384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3384 rm -rf conftest*
3385 ac_cv_struct_st_rdev=yes
3386 else
3387 echo "configure: failed program was:" >&5
3388 cat conftest.$ac_ext >&5
3389 rm -rf conftest*
3390 ac_cv_struct_st_rdev=no
3391 fi
3392 rm -f conftest*
3393 fi
3394
3395 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3396 if test $ac_cv_struct_st_rdev = yes; then
3397 cat >> confdefs.h <<\EOF
3398 #define HAVE_ST_RDEV 1
3399 EOF
3400
3401 fi
3402
3403 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3404 echo "configure:3405: checking whether struct tm is in sys/time.h or time.h" >&5
3405 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3406 echo $ac_n "(cached) $ac_c" 1>&6
3407 else
3408 cat > conftest.$ac_ext <<EOF
3409 #line 3410 "configure"
3410 #include "confdefs.h"
3411 #include <sys/types.h>
3412 #include <time.h>
3413 int main() {
3414 struct tm *tp; tp->tm_sec;
3415 ; return 0; }
3416 EOF
3417 if { (eval echo configure:3418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3418 rm -rf conftest*
3419 ac_cv_struct_tm=time.h
3420 else
3421 echo "configure: failed program was:" >&5
3422 cat conftest.$ac_ext >&5
3423 rm -rf conftest*
3424 ac_cv_struct_tm=sys/time.h
3425 fi
3426 rm -f conftest*
3427 fi
3428
3429 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3430 if test $ac_cv_struct_tm = sys/time.h; then
3431 cat >> confdefs.h <<\EOF
3432 #define TM_IN_SYS_TIME 1
3433 EOF
3434
3435 fi
3436
3437 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3438 echo "configure:3439: checking for tm_zone in struct tm" >&5
3439 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
3440 echo $ac_n "(cached) $ac_c" 1>&6
3441 else
3442 cat > conftest.$ac_ext <<EOF
3443 #line 3444 "configure"
3444 #include "confdefs.h"
3445 #include <sys/types.h>
3446 #include <$ac_cv_struct_tm>
3447 int main() {
3448 struct tm tm; tm.tm_zone;
3449 ; return 0; }
3450 EOF
3451 if { (eval echo configure:3452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3452 rm -rf conftest*
3453 ac_cv_struct_tm_zone=yes
3454 else
3455 echo "configure: failed program was:" >&5
3456 cat conftest.$ac_ext >&5
3457 rm -rf conftest*
3458 ac_cv_struct_tm_zone=no
3459 fi
3460 rm -f conftest*
3461 fi
3462
3463 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3464 if test "$ac_cv_struct_tm_zone" = yes; then
3465 cat >> confdefs.h <<\EOF
3466 #define HAVE_TM_ZONE 1
3467 EOF
3468
3469 else
3470 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3471 echo "configure:3472: checking for tzname" >&5
3472 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
3473 echo $ac_n "(cached) $ac_c" 1>&6
3474 else
3475 cat > conftest.$ac_ext <<EOF
3476 #line 3477 "configure"
3477 #include "confdefs.h"
3478 #include <time.h>
3479 #ifndef tzname /* For SGI. */
3480 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3481 #endif
3482 int main() {
3483 atoi(*tzname);
3484 ; return 0; }
3485 EOF
3486 if { (eval echo configure:3487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3487 rm -rf conftest*
3488 ac_cv_var_tzname=yes
3489 else
3490 echo "configure: failed program was:" >&5
3491 cat conftest.$ac_ext >&5
3492 rm -rf conftest*
3493 ac_cv_var_tzname=no
3494 fi
3495 rm -f conftest*
3496 fi
3497
3498 echo "$ac_t""$ac_cv_var_tzname" 1>&6
3499 if test $ac_cv_var_tzname = yes; then
3500 cat >> confdefs.h <<\EOF
3501 #define HAVE_TZNAME 1
3502 EOF
3503
3504 fi
3505 fi
3506
3507
3508
3509 echo $ac_n "checking for working const""... $ac_c" 1>&6
3510 echo "configure:3511: checking for working const" >&5
3511 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3512 echo $ac_n "(cached) $ac_c" 1>&6
3513 else
3514 cat > conftest.$ac_ext <<EOF
3515 #line 3516 "configure"
3516 #include "confdefs.h"
3517
3518 int main() {
3519
3520 /* Ultrix mips cc rejects this. */
3521 typedef int charset[2]; const charset x;
3522 /* SunOS 4.1.1 cc rejects this. */
3523 char const *const *ccp;
3524 char **p;
3525 /* NEC SVR4.0.2 mips cc rejects this. */
3526 struct point {int x, y;};
3527 static struct point const zero = {0,0};
3528 /* AIX XL C 1.02.0.0 rejects this.
3529 It does not let you subtract one const X* pointer from another in an arm
3530 of an if-expression whose if-part is not a constant expression */
3531 const char *g = "string";
3532 ccp = &g + (g ? g-g : 0);
3533 /* HPUX 7.0 cc rejects these. */
3534 ++ccp;
3535 p = (char**) ccp;
3536 ccp = (char const *const *) p;
3537 { /* SCO 3.2v4 cc rejects this. */
3538 char *t;
3539 char const *s = 0 ? (char *) 0 : (char const *) 0;
3540
3541 *t++ = 0;
3542 }
3543 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3544 int x[] = {25, 17};
3545 const int *foo = &x[0];
3546 ++foo;
3547 }
3548 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3549 typedef const int *iptr;
3550 iptr p = 0;
3551 ++p;
3552 }
3553 { /* AIX XL C 1.02.0.0 rejects this saying
3554 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3555 struct s { int j; const int *ap[3]; };
3556 struct s *b; b->j = 5;
3557 }
3558 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3559 const int foo = 10;
3560 }
3561
3562 ; return 0; }
3563 EOF
3564 if { (eval echo configure:3565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3565 rm -rf conftest*
3566 ac_cv_c_const=yes
3567 else
3568 echo "configure: failed program was:" >&5
3569 cat conftest.$ac_ext >&5
3570 rm -rf conftest*
3571 ac_cv_c_const=no
3572 fi
3573 rm -f conftest*
3574 fi
3575
3576 echo "$ac_t""$ac_cv_c_const" 1>&6
3577 if test $ac_cv_c_const = no; then
3578 cat >> confdefs.h <<\EOF
3579 #define const
3580 EOF
3581
3582 fi
3583
3584 echo $ac_n "checking for inline""... $ac_c" 1>&6
3585 echo "configure:3586: checking for inline" >&5
3586 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3587 echo $ac_n "(cached) $ac_c" 1>&6
3588 else
3589 ac_cv_c_inline=no
3590 for ac_kw in inline __inline__ __inline; do
3591 cat > conftest.$ac_ext <<EOF
3592 #line 3593 "configure"
3593 #include "confdefs.h"
3594
3595 int main() {
3596 } $ac_kw foo() {
3597 ; return 0; }
3598 EOF
3599 if { (eval echo configure:3600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3600 rm -rf conftest*
3601 ac_cv_c_inline=$ac_kw; break
3602 else
3603 echo "configure: failed program was:" >&5
3604 cat conftest.$ac_ext >&5
3605 fi
3606 rm -f conftest*
3607 done
3608
3609 fi
3610
3611 echo "$ac_t""$ac_cv_c_inline" 1>&6
3612 case "$ac_cv_c_inline" in
3613 inline | yes) ;;
3614 no) cat >> confdefs.h <<\EOF
3615 #define inline
3616 EOF
3617 ;;
3618 *) cat >> confdefs.h <<EOF
3619 #define inline $ac_cv_c_inline
3620 EOF
3621 ;;
3622 esac
3623
3624 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3625 echo "configure:3626: checking whether char is unsigned" >&5
3626 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3627 echo $ac_n "(cached) $ac_c" 1>&6
3628 else
3629 if test "$GCC" = yes; then
3630 # GCC predefines this symbol on systems where it applies.
3631 cat > conftest.$ac_ext <<EOF
3632 #line 3633 "configure"
3633 #include "confdefs.h"
3634 #ifdef __CHAR_UNSIGNED__
3635 yes
3636 #endif
3637
3638 EOF
3639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3640 egrep "yes" >/dev/null 2>&1; then
3641 rm -rf conftest*
3642 ac_cv_c_char_unsigned=yes
3643 else
3644 rm -rf conftest*
3645 ac_cv_c_char_unsigned=no
3646 fi
3647 rm -f conftest*
3648
3649 else
3650 if test "$cross_compiling" = yes; then
3651 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3652 else
3653 cat > conftest.$ac_ext <<EOF
3654 #line 3655 "configure"
3655 #include "confdefs.h"
3656 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3657 #if !defined(__STDC__) || __STDC__ != 1
3658 #define volatile
3659 #endif
3660 main() {
3661 volatile char c = 255; exit(c < 0);
3662 }
3663 EOF
3664 if { (eval echo configure:3665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3665 then
3666 ac_cv_c_char_unsigned=yes
3667 else
3668 echo "configure: failed program was:" >&5
3669 cat conftest.$ac_ext >&5
3670 rm -fr conftest*
3671 ac_cv_c_char_unsigned=no
3672 fi
3673 rm -fr conftest*
3674 fi
3675
3676 fi
3677 fi
3678
3679 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3680 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3681 cat >> confdefs.h <<\EOF
3682 #define __CHAR_UNSIGNED__ 1
3683 EOF
3684
3685 fi
3686
3687 echo $ac_n "checking for long double""... $ac_c" 1>&6
3688 echo "configure:3689: checking for long double" >&5
3689 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
3690 echo $ac_n "(cached) $ac_c" 1>&6
3691 else
3692 if test "$GCC" = yes; then
3693 ac_cv_c_long_double=yes
3694 else
3695 if test "$cross_compiling" = yes; then
3696 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3697 else
3698 cat > conftest.$ac_ext <<EOF
3699 #line 3700 "configure"
3700 #include "confdefs.h"
3701 int main() {
3702 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
3703 long double foo = 0.0;
3704 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
3705 exit(sizeof(long double) < sizeof(double)); }
3706 EOF
3707 if { (eval echo configure:3708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3708 then
3709 ac_cv_c_long_double=yes
3710 else
3711 echo "configure: failed program was:" >&5
3712 cat conftest.$ac_ext >&5
3713 rm -fr conftest*
3714 ac_cv_c_long_double=no
3715 fi
3716 rm -fr conftest*
3717 fi
3718
3719 fi
3720 fi
3721
3722 echo "$ac_t""$ac_cv_c_long_double" 1>&6
3723 if test $ac_cv_c_long_double = yes; then
3724 cat >> confdefs.h <<\EOF
3725 #define HAVE_LONG_DOUBLE 1
3726 EOF
3727
3728 fi
3729
3730
3731 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3732 echo "configure:3733: checking whether byte ordering is bigendian" >&5
3733 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3734 echo $ac_n "(cached) $ac_c" 1>&6
3735 else
3736 ac_cv_c_bigendian=unknown
3737 # See if sys/param.h defines the BYTE_ORDER macro.
3738 cat > conftest.$ac_ext <<EOF
3739 #line 3740 "configure"
3740 #include "confdefs.h"
3741 #include <sys/types.h>
3742 #include <sys/param.h>
3743 int main() {
3744
3745 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3746 bogus endian macros
3747 #endif
3748 ; return 0; }
3749 EOF
3750 if { (eval echo configure:3751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3751 rm -rf conftest*
3752 # It does; now see whether it defined to BIG_ENDIAN or not.
3753 cat > conftest.$ac_ext <<EOF
3754 #line 3755 "configure"
3755 #include "confdefs.h"
3756 #include <sys/types.h>
3757 #include <sys/param.h>
3758 int main() {
3759
3760 #if BYTE_ORDER != BIG_ENDIAN
3761 not big endian
3762 #endif
3763 ; return 0; }
3764 EOF
3765 if { (eval echo configure:3766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3766 rm -rf conftest*
3767 ac_cv_c_bigendian=yes
3768 else
3769 echo "configure: failed program was:" >&5
3770 cat conftest.$ac_ext >&5
3771 rm -rf conftest*
3772 ac_cv_c_bigendian=no
3773 fi
3774 rm -f conftest*
3775 else
3776 echo "configure: failed program was:" >&5
3777 cat conftest.$ac_ext >&5
3778 fi
3779 rm -f conftest*
3780 if test $ac_cv_c_bigendian = unknown; then
3781 if test "$cross_compiling" = yes; then
3782 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3783 else
3784 cat > conftest.$ac_ext <<EOF
3785 #line 3786 "configure"
3786 #include "confdefs.h"
3787 main () {
3788 /* Are we little or big endian? From Harbison&Steele. */
3789 union
3790 {
3791 long l;
3792 char c[sizeof (long)];
3793 } u;
3794 u.l = 1;
3795 exit (u.c[sizeof (long) - 1] == 1);
3796 }
3797 EOF
3798 if { (eval echo configure:3799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3799 then
3800 ac_cv_c_bigendian=no
3801 else
3802 echo "configure: failed program was:" >&5
3803 cat conftest.$ac_ext >&5
3804 rm -fr conftest*
3805 ac_cv_c_bigendian=yes
3806 fi
3807 rm -fr conftest*
3808 fi
3809
3810 fi
3811 fi
3812
3813 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3814 if test $ac_cv_c_bigendian = yes; then
3815 cat >> confdefs.h <<\EOF
3816 #define WORDS_BIGENDIAN 1
3817 EOF
3818
3819 fi
3820
3821
3822 echo $ac_n "checking size of int *""... $ac_c" 1>&6
3823 echo "configure:3824: checking size of int *" >&5
3824 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
3825 echo $ac_n "(cached) $ac_c" 1>&6
3826 else
3827 if test "$cross_compiling" = yes; then
3828 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3829 else
3830 cat > conftest.$ac_ext <<EOF
3831 #line 3832 "configure"
3832 #include "confdefs.h"
3833 #include <stdio.h>
3834 main()
3835 {
3836 FILE *f=fopen("conftestval", "w");
3837 if (!f) exit(1);
3838 fprintf(f, "%d\n", sizeof(int *));
3839 exit(0);
3840 }
3841 EOF
3842 if { (eval echo configure:3843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3843 then
3844 ac_cv_sizeof_int_p=`cat conftestval`
3845 else
3846 echo "configure: failed program was:" >&5
3847 cat conftest.$ac_ext >&5
3848 rm -fr conftest*
3849 ac_cv_sizeof_int_p=0
3850 fi
3851 rm -fr conftest*
3852 fi
3853
3854 fi
3855 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
3856 cat >> confdefs.h <<EOF
3857 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
3858 EOF
3859
3860
3861 echo $ac_n "checking size of int""... $ac_c" 1>&6
3862 echo "configure:3863: checking size of int" >&5
3863 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3864 echo $ac_n "(cached) $ac_c" 1>&6
3865 else
3866 if test "$cross_compiling" = yes; then
3867 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3868 else
3869 cat > conftest.$ac_ext <<EOF
3870 #line 3871 "configure"
3871 #include "confdefs.h"
3872 #include <stdio.h>
3873 main()
3874 {
3875 FILE *f=fopen("conftestval", "w");
3876 if (!f) exit(1);
3877 fprintf(f, "%d\n", sizeof(int));
3878 exit(0);
3879 }
3880 EOF
3881 if { (eval echo configure:3882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3882 then
3883 ac_cv_sizeof_int=`cat conftestval`
3884 else
3885 echo "configure: failed program was:" >&5
3886 cat conftest.$ac_ext >&5
3887 rm -fr conftest*
3888 ac_cv_sizeof_int=0
3889 fi
3890 rm -fr conftest*
3891 fi
3892
3893 fi
3894 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3895 cat >> confdefs.h <<EOF
3896 #define SIZEOF_INT $ac_cv_sizeof_int
3897 EOF
3898
3899
3900 echo $ac_n "checking size of long""... $ac_c" 1>&6
3901 echo "configure:3902: checking size of long" >&5
3902 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3903 echo $ac_n "(cached) $ac_c" 1>&6
3904 else
3905 if test "$cross_compiling" = yes; then
3906 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3907 else
3908 cat > conftest.$ac_ext <<EOF
3909 #line 3910 "configure"
3910 #include "confdefs.h"
3911 #include <stdio.h>
3912 main()
3913 {
3914 FILE *f=fopen("conftestval", "w");
3915 if (!f) exit(1);
3916 fprintf(f, "%d\n", sizeof(long));
3917 exit(0);
3918 }
3919 EOF
3920 if { (eval echo configure:3921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3921 then
3922 ac_cv_sizeof_long=`cat conftestval`
3923 else
3924 echo "configure: failed program was:" >&5
3925 cat conftest.$ac_ext >&5
3926 rm -fr conftest*
3927 ac_cv_sizeof_long=0
3928 fi
3929 rm -fr conftest*
3930 fi
3931
3932 fi
3933 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3934 cat >> confdefs.h <<EOF
3935 #define SIZEOF_LONG $ac_cv_sizeof_long
3936 EOF
3937
3938
3939
3940
3941
3942
3943 echo $ac_n "checking for long file names""... $ac_c" 1>&6
3944 echo "configure:3945: checking for long file names" >&5
3945 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
3946 echo $ac_n "(cached) $ac_c" 1>&6
3947 else
3948 ac_cv_sys_long_file_names=yes
3949 # Test for long file names in all the places we know might matter:
3950 # . the current directory, where building will happen
3951 # $prefix/lib where we will be installing things
3952 # $exec_prefix/lib likewise
3953 # eval it to expand exec_prefix.
3954 # $TMPDIR if set, where it might want to write temporary files
3955 # if $TMPDIR is not set:
3956 # /tmp where it might want to write temporary files
3957 # /var/tmp likewise
3958 # /usr/tmp likewise
3959 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3960 ac_tmpdirs="$TMPDIR"
3961 else
3962 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3963 fi
3964 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3965 test -d $ac_dir || continue
3966 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3967 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
3968 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
3969 val=`cat $ac_dir/conftest9012345 2>/dev/null`
3970 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
3971 ac_cv_sys_long_file_names=no
3972 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
3973 break
3974 fi
3975 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
3976 done
3977 fi
3978
3979 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
3980 if test $ac_cv_sys_long_file_names = yes; then
3981 cat >> confdefs.h <<\EOF
3982 #define HAVE_LONG_FILE_NAMES 1
3983 EOF
3984
3985 fi
3986
3987
3988
3989
3990 for ac_prog in 'bison -y' byacc
3991 do
3992 # Extract the first word of "$ac_prog", so it can be a program name with args.
3993 set dummy $ac_prog; ac_word=$2
3994 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3995 echo "configure:3996: checking for $ac_word" >&5
3996 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3997 echo $ac_n "(cached) $ac_c" 1>&6
3998 else
3999 if test -n "$YACC"; then
4000 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4001 else
4002 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4003 for ac_dir in $PATH; do
4004 test -z "$ac_dir" && ac_dir=.
4005 if test -f $ac_dir/$ac_word; then
4006 ac_cv_prog_YACC="$ac_prog"
4007 break
4008 fi
4009 done
4010 IFS="$ac_save_ifs"
4011 fi
4012 fi
4013 YACC="$ac_cv_prog_YACC"
4014 if test -n "$YACC"; then
4015 echo "$ac_t""$YACC" 1>&6
4016 else
4017 echo "$ac_t""no" 1>&6
4018 fi
4019
4020 test -n "$YACC" && break
4021 done
4022 test -n "$YACC" || YACC="yacc"
4023
4024
4025 # Extract the first word of "flex", so it can be a program name with args.
4026 set dummy flex; ac_word=$2
4027 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4028 echo "configure:4029: checking for $ac_word" >&5
4029 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
4030 echo $ac_n "(cached) $ac_c" 1>&6
4031 else
4032 if test -n "$LEX"; then
4033 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4034 else
4035 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4036 for ac_dir in $PATH; do
4037 test -z "$ac_dir" && ac_dir=.
4038 if test -f $ac_dir/$ac_word; then
4039 ac_cv_prog_LEX="flex"
4040 break
4041 fi
4042 done
4043 IFS="$ac_save_ifs"
4044 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
4045 fi
4046 fi
4047 LEX="$ac_cv_prog_LEX"
4048 if test -n "$LEX"; then
4049 echo "$ac_t""$LEX" 1>&6
4050 else
4051 echo "$ac_t""no" 1>&6
4052 fi
4053
4054 if test -z "$LEXLIB"
4055 then
4056 case "$LEX" in
4057 flex*) ac_lib=fl ;;
4058 *) ac_lib=l ;;
4059 esac
4060 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
4061 echo "configure:4062: checking for yywrap in -l$ac_lib" >&5
4062 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
4063 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4064 echo $ac_n "(cached) $ac_c" 1>&6
4065 else
4066 ac_save_LIBS="$LIBS"
4067 LIBS="-l$ac_lib $LIBS"
4068 cat > conftest.$ac_ext <<EOF
4069 #line 4070 "configure"
4070 #include "confdefs.h"
4071 /* Override any gcc2 internal prototype to avoid an error. */
4072 /* We use char because int might match the return type of a gcc2
4073 builtin and then its argument prototype would still apply. */
4074 char yywrap();
4075
4076 int main() {
4077 yywrap()
4078 ; return 0; }
4079 EOF
4080 if { (eval echo configure:4081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4081 rm -rf conftest*
4082 eval "ac_cv_lib_$ac_lib_var=yes"
4083 else
4084 echo "configure: failed program was:" >&5
4085 cat conftest.$ac_ext >&5
4086 rm -rf conftest*
4087 eval "ac_cv_lib_$ac_lib_var=no"
4088 fi
4089 rm -f conftest*
4090 LIBS="$ac_save_LIBS"
4091
4092 fi
4093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4094 echo "$ac_t""yes" 1>&6
4095 LEXLIB="-l$ac_lib"
4096 else
4097 echo "$ac_t""no" 1>&6
4098 fi
4099
4100 fi
4101
4102 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
4103 echo "configure:4104: checking lex output file root" >&5
4104 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
4105 echo $ac_n "(cached) $ac_c" 1>&6
4106 else
4107 # The minimal lex program is just a single line: %%. But some broken lexes
4108 # (Solaris, I think it was) want two %% lines, so accommodate them.
4109 echo '%%
4110 %%' | $LEX
4111 if test -f lex.yy.c; then
4112 ac_cv_prog_lex_root=lex.yy
4113 elif test -f lexyy.c; then
4114 ac_cv_prog_lex_root=lexyy
4115 else
4116 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
4117 fi
4118 fi
4119
4120 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
4121 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4122
4123 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
4124 echo "configure:4125: checking whether yytext is a pointer" >&5
4125 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
4126 echo $ac_n "(cached) $ac_c" 1>&6
4127 else
4128 # POSIX says lex can declare yytext either as a pointer or an array; the
4129 # default is implementation-dependent. Figure out which it is, since
4130 # not all implementations provide the %pointer and %array declarations.
4131 ac_cv_prog_lex_yytext_pointer=no
4132 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4133 ac_save_LIBS="$LIBS"
4134 LIBS="$LIBS $LEXLIB"
4135 cat > conftest.$ac_ext <<EOF
4136 #line 4137 "configure"
4137 #include "confdefs.h"
4138 `cat $LEX_OUTPUT_ROOT.c`
4139 int main() {
4140
4141 ; return 0; }
4142 EOF
4143 if { (eval echo configure:4144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4144 rm -rf conftest*
4145 ac_cv_prog_lex_yytext_pointer=yes
4146 else
4147 echo "configure: failed program was:" >&5
4148 cat conftest.$ac_ext >&5
4149 fi
4150 rm -f conftest*
4151 LIBS="$ac_save_LIBS"
4152 rm -f "${LEX_OUTPUT_ROOT}.c"
4153
4154 fi
4155
4156 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
4157 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4158 cat >> confdefs.h <<\EOF
4159 #define YYTEXT_POINTER 1
4160 EOF
4161
4162 fi
4163
4164
4165
4166 CHECK_INCLUDE="-I/usr/include $X_CFLAGS"
4167 CHECK_LIB="-L/lib -L/usr/lib $X_LIBS"
4168
4169
4170
4171 # Make sure we can run config.sub.
4172 if $ac_config_sub sun4 >/dev/null 2>&1; then :
4173 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
4174 fi
4175
4176 echo $ac_n "checking host system type""... $ac_c" 1>&6
4177 echo "configure:4178: checking host system type" >&5
4178
4179 host_alias=$host
4180 case "$host_alias" in
4181 NONE)
4182 case $nonopt in
4183 NONE)
4184 if host_alias=`$ac_config_guess`; then :
4185 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
4186 fi ;;
4187 *) host_alias=$nonopt ;;
4188 esac ;;
4189 esac
4190
4191 host=`$ac_config_sub $host_alias`
4192 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4193 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4194 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4195 echo "$ac_t""$host" 1>&6
4196
4197 canonical=$host
4198 configuration=$host_alias
4199
4200
4201 USE_UNIX=1
4202
4203
4204 USE_LINUX=
4205 USE_SGI=
4206 USE_HPUX=
4207 USE_SYSV=
4208 USE_SVR4=
4209 USE_AIX=
4210 USE_SUN=
4211 USE_SOLARIS=
4212 USE_SUNOS=
4213 USE_ALPHA=
4214 USE_OSF=
4215 USE_BSD=
4216 USE_FREEBSD=
4217 USE_VMS=
4218 USE_ULTRIX=
4219 USE_DATA_GENERAL=
4220
4221 case "${canonical}" in
4222 *-hp-hpux* )
4223 USE_HPUX=1
4224 cat >> confdefs.h <<\EOF
4225 #define __HPUX__ 1
4226 EOF
4227
4228 ;;
4229 *-*-linux* )
4230 USE_LINUX=1
4231 cat >> confdefs.h <<\EOF
4232 #define __LINUX__ 1
4233 EOF
4234
4235 ;;
4236 *-*-irix5* | *-*-irix6* )
4237 USE_SGI=1
4238 USE_SVR4=1
4239 cat >> confdefs.h <<\EOF
4240 #define __SGI__ 1
4241 EOF
4242
4243 cat >> confdefs.h <<\EOF
4244 #define __SVR4__ 1
4245 EOF
4246
4247 ;;
4248 *-*-solaris2* )
4249 USE_SUN=1
4250 USE_SOLARIS=1
4251 USE_SVR4=1
4252 cat >> confdefs.h <<\EOF
4253 #define __SUN__ 1
4254 EOF
4255
4256 cat >> confdefs.h <<\EOF
4257 #define __SOLARIS__ 1
4258 EOF
4259
4260 cat >> confdefs.h <<\EOF
4261 #define __SVR4__ 1
4262 EOF
4263
4264 ;;
4265 *-*-sunos4* )
4266 USE_SUN=1
4267 USE_SUNOS=1
4268 USE_BSD=1
4269 cat >> confdefs.h <<\EOF
4270 #define __SUN__ 1
4271 EOF
4272
4273 cat >> confdefs.h <<\EOF
4274 #define __SUNOS__ 1
4275 EOF
4276
4277 cat >> confdefs.h <<\EOF
4278 #define __BSD__ 1
4279 EOF
4280
4281 ;;
4282 *-*-freebsd* | *-*-netbsd*)
4283 USE_BSD=1
4284 USE_FREEBSD=1
4285 cat >> confdefs.h <<\EOF
4286 #define __FREEBSD__ 1
4287 EOF
4288
4289 cat >> confdefs.h <<\EOF
4290 #define __BSD__ 1
4291 EOF
4292
4293 ;;
4294 *-*-osf* )
4295 USE_ALPHA=1
4296 USE_OSF=1
4297 cat >> confdefs.h <<\EOF
4298 #define __ALPHA__ 1
4299 EOF
4300
4301 cat >> confdefs.h <<\EOF
4302 #define __OSF__ 1
4303 EOF
4304
4305 ;;
4306 *-*-dgux5* )
4307 USE_ALPHA=1
4308 USE_SVR4=1
4309 cat >> confdefs.h <<\EOF
4310 #define __ALPHA__ 1
4311 EOF
4312
4313 cat >> confdefs.h <<\EOF
4314 #define __SVR4__ 1
4315 EOF
4316
4317 ;;
4318 *-*-sysv5* )
4319 USE_SYSV=1
4320 USE_SVR4=1
4321 cat >> confdefs.h <<\EOF
4322 #define __SYSV__ 1
4323 EOF
4324
4325 cat >> confdefs.h <<\EOF
4326 #define __SVR4__ 1
4327 EOF
4328
4329 ;;
4330 *-*-aix* )
4331 USE_AIX=1
4332 USE_SYSV=1
4333 USE_SVR4=1
4334 cat >> confdefs.h <<\EOF
4335 #define __AIX__ 1
4336 EOF
4337
4338 cat >> confdefs.h <<\EOF
4339 #define __SYSV__ 1
4340 EOF
4341
4342 cat >> confdefs.h <<\EOF
4343 #define __SVR4__ 1
4344 EOF
4345
4346 ;;
4347 *)
4348 { echo "configure: error: I don't know your system type." 1>&2; exit 1; }
4349 esac
4350
4351
4352
4353 rm -f ${OSTYPE}.system.cache.tmp
4354 touch ${OSTYPE}.system.cache.tmp
4355 touch ${OSTYPE}.system.cache
4356
4357
4358 DEFAULT_wxUSE_GTK=1
4359 DEFAULT_wxUSE_QT=0
4360 DEFAULT_wxUSE_MOTIF=0
4361
4362 DEFAULT_wxUSE_THREADS=1
4363
4364 DEFAULT_wxUSE_SHARED=1
4365 DEFAULT_wxUSE_OPTIMISE=1
4366 DEFAULT_wxUSE_PROFILE=0
4367 DEFAULT_wxUSE_DEBUG_FLAG=0
4368 DEFAULT_wxUSE_DEBUG_INFO=0
4369 DEFAULT_wxUSE_MEM_TRACING=0
4370 DEFAULT_wxUSE_DMALLOC=0
4371 DEFAULT_wxUSE_APPLE_IEEE=1
4372 DEFAULT_wxUSE_IOSTREAMH=1
4373
4374 DEFAULT_wxUSE_ZLIB=1
4375 DEFAULT_wxUSE_LIBPNG=1
4376 DEFAULT_wxUSE_ODBC=0
4377
4378 DEFAULT_wxUSE_COMBOBOX=1
4379 DEFAULT_wxUSE_GAUGE=1
4380 DEFAULT_wxUSE_SCROLLBAR=1
4381 DEFAULT_wxUSE_LISTCTRL=1
4382 DEFAULT_wxUSE_TREECTRL=1
4383 DEFAULT_wxUSE_GRID=1
4384 DEFAULT_wxUSE_TAB_DIALOG=1
4385 DEFAULT_wxUSE_NOTEBOOK=1
4386
4387 DEFAULT_wxUSE_TIMEDATE=1
4388 DEFAULT_wxUSE_FRACTION=1
4389 DEFAULT_wxUSE_LOG=1
4390 DEFAULT_wxUSE_INTL=1
4391 DEFAULT_wxUSE_CONFIG=1
4392 DEFAULT_wxUSE_STREAMS=1
4393 DEFAULT_wxUSE_SERIAL=1
4394 DEFAULT_wxUSE_FILE=1
4395 DEFAULT_wxUSE_TEXTFILE=1
4396
4397 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=1
4398 DEFAULT_WX_NORMALIZED_PS_FONTS=1
4399 DEFAULT_wxUSE_POSTSCRIPT=1
4400
4401 DEFAULT_wxUSE_IPC=1
4402 DEFAULT_wxUSE_RESOURCES=1
4403 DEFAULT_wxUSE_CONSTRAINTS=1
4404 DEFAULT_wxUSE_CLIPBOARD=0
4405 DEFAULT_wxUSE_DND=1
4406
4407 DEFAULT_wxUSE_MDI_ARCHITECTURE=1
4408 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=1
4409 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=1
4410
4411 DEFAULT_wxUSE_PROLOGIO=1
4412 DEFAULT_wxUSE_WX_RESOURCES=1
4413 DEFAULT_wxUSE_RPC=0
4414
4415 DEFAULT_wxUSE_OPENGL=0
4416 DEFAULT_wxUSE_METAFILE=0
4417 DEFAULT_wxUSE_WXGRAPH=0
4418 DEFAULT_wxUSE_WXTREE=0
4419 DEFAULT_wxUSE_HELP=1
4420
4421 DEFAULT_wxUSE_UNICODE=1
4422 DEFAULT_wxUSE_WCSRTOMBS=0
4423
4424
4425
4426 echo $ac_n "checking "for gtk"""... $ac_c" 1>&6
4427 echo "configure:4428: checking "for gtk"" >&5
4428 # Check whether --with-gtk or --without-gtk was given.
4429 if test "${with_gtk+set}" = set; then
4430 withval="$with_gtk"
4431 if test "x$with_gtk" = xyes; then
4432 ac_cv_use_gtk='wxUSE_GTK="1"'
4433 else
4434 ac_cv_use_gtk='wxUSE_GTK="0"'
4435 fi
4436 else
4437
4438 LINE=`grep "wxUSE_GTK" ${OSTYPE}.system.cache`
4439 if test "x$LINE" != x ; then
4440 eval "DEFAULT_$LINE"
4441 fi
4442 ac_cv_use_gtk='wxUSE_GTK='$DEFAULT_wxUSE_GTK
4443
4444 fi
4445
4446 eval "$ac_cv_use_gtk"
4447 echo $ac_cv_use_gtk >> ${OSTYPE}.system.cache.tmp
4448 if test "$wxUSE_GTK" = 1; then
4449 echo "$ac_t""yes" 1>&6
4450 else
4451 echo "$ac_t""no" 1>&6
4452 fi
4453
4454
4455
4456 echo $ac_n "checking "for qt"""... $ac_c" 1>&6
4457 echo "configure:4458: checking "for qt"" >&5
4458 # Check whether --with-qt or --without-qt was given.
4459 if test "${with_qt+set}" = set; then
4460 withval="$with_qt"
4461 if test "x$with_qt" = xyes; then
4462 ac_cv_use_qt='wxUSE_QT="1"'
4463 else
4464 ac_cv_use_qt='wxUSE_QT="0"'
4465 fi
4466 else
4467
4468 LINE=`grep "wxUSE_QT" ${OSTYPE}.system.cache`
4469 if test "x$LINE" != x ; then
4470 eval "DEFAULT_$LINE"
4471 fi
4472 ac_cv_use_qt='wxUSE_QT='$DEFAULT_wxUSE_QT
4473
4474 fi
4475
4476 eval "$ac_cv_use_qt"
4477 echo $ac_cv_use_qt >> ${OSTYPE}.system.cache.tmp
4478 if test "$wxUSE_QT" = 1; then
4479 echo "$ac_t""yes" 1>&6
4480 else
4481 echo "$ac_t""no" 1>&6
4482 fi
4483
4484
4485
4486 echo $ac_n "checking "for motif"""... $ac_c" 1>&6
4487 echo "configure:4488: checking "for motif"" >&5
4488 # Check whether --with-motif or --without-motif was given.
4489 if test "${with_motif+set}" = set; then
4490 withval="$with_motif"
4491 if test "x$with_motif" = xyes; then
4492 ac_cv_use_motif='wxUSE_MOTIF="1"'
4493 else
4494 ac_cv_use_motif='wxUSE_MOTIF="0"'
4495 fi
4496 else
4497
4498 LINE=`grep "wxUSE_MOTIF" ${OSTYPE}.system.cache`
4499 if test "x$LINE" != x ; then
4500 eval "DEFAULT_$LINE"
4501 fi
4502 ac_cv_use_motif='wxUSE_MOTIF='$DEFAULT_wxUSE_MOTIF
4503
4504 fi
4505
4506 eval "$ac_cv_use_motif"
4507 echo $ac_cv_use_motif >> ${OSTYPE}.system.cache.tmp
4508 if test "$wxUSE_MOTIF" = 1; then
4509 echo "$ac_t""yes" 1>&6
4510 else
4511 echo "$ac_t""no" 1>&6
4512 fi
4513
4514
4515
4516
4517 echo $ac_n "checking "for shared"""... $ac_c" 1>&6
4518 echo "configure:4519: checking "for shared"" >&5
4519 # Check whether --with-shared or --without-shared was given.
4520 if test "${with_shared+set}" = set; then
4521 withval="$with_shared"
4522 if test "x$with_shared" = xyes; then
4523 ac_cv_use_shared='wxUSE_SHARED="1"'
4524 else
4525 ac_cv_use_shared='wxUSE_SHARED="0"'
4526 fi
4527 else
4528
4529 LINE=`grep "wxUSE_SHARED" ${OSTYPE}.system.cache`
4530 if test "x$LINE" != x ; then
4531 eval "DEFAULT_$LINE"
4532 fi
4533 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
4534
4535 fi
4536
4537 eval "$ac_cv_use_shared"
4538 echo $ac_cv_use_shared >> ${OSTYPE}.system.cache.tmp
4539 if test "$wxUSE_SHARED" = 1; then
4540 echo "$ac_t""yes" 1>&6
4541 else
4542 echo "$ac_t""no" 1>&6
4543 fi
4544
4545
4546
4547 echo $ac_n "checking "for optimise"""... $ac_c" 1>&6
4548 echo "configure:4549: checking "for optimise"" >&5
4549 # Check whether --with-optimise or --without-optimise was given.
4550 if test "${with_optimise+set}" = set; then
4551 withval="$with_optimise"
4552 if test "x$with_optimise" = xyes; then
4553 ac_cv_use_optimise='wxUSE_OPTIMISE="1"'
4554 else
4555 ac_cv_use_optimise='wxUSE_OPTIMISE="0"'
4556 fi
4557 else
4558
4559 LINE=`grep "wxUSE_OPTIMISE" ${OSTYPE}.system.cache`
4560 if test "x$LINE" != x ; then
4561 eval "DEFAULT_$LINE"
4562 fi
4563 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
4564
4565 fi
4566
4567 eval "$ac_cv_use_optimise"
4568 echo $ac_cv_use_optimise >> ${OSTYPE}.system.cache.tmp
4569 if test "$wxUSE_OPTIMISE" = 1; then
4570 echo "$ac_t""yes" 1>&6
4571 else
4572 echo "$ac_t""no" 1>&6
4573 fi
4574
4575
4576
4577 echo $ac_n "checking "for debug_flag"""... $ac_c" 1>&6
4578 echo "configure:4579: checking "for debug_flag"" >&5
4579 # Check whether --with-debug_flag or --without-debug_flag was given.
4580 if test "${with_debug_flag+set}" = set; then
4581 withval="$with_debug_flag"
4582 if test "x$with_debug_flag" = xyes; then
4583 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG="1"'
4584 else
4585 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG="0"'
4586 fi
4587 else
4588
4589 LINE=`grep "wxUSE_DEBUG_FLAG" ${OSTYPE}.system.cache`
4590 if test "x$LINE" != x ; then
4591 eval "DEFAULT_$LINE"
4592 fi
4593 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
4594
4595 fi
4596
4597 eval "$ac_cv_use_debug_flag"
4598 echo $ac_cv_use_debug_flag >> ${OSTYPE}.system.cache.tmp
4599 if test "$wxUSE_DEBUG_FLAG" = 1; then
4600 echo "$ac_t""yes" 1>&6
4601 else
4602 echo "$ac_t""no" 1>&6
4603 fi
4604
4605
4606
4607 echo $ac_n "checking "for debug_info"""... $ac_c" 1>&6
4608 echo "configure:4609: checking "for debug_info"" >&5
4609 # Check whether --with-debug_info or --without-debug_info was given.
4610 if test "${with_debug_info+set}" = set; then
4611 withval="$with_debug_info"
4612 if test "x$with_debug_info" = xyes; then
4613 ac_cv_use_debug_info='wxUSE_DEBUG_INFO="1"'
4614 else
4615 ac_cv_use_debug_info='wxUSE_DEBUG_INFO="0"'
4616 fi
4617 else
4618
4619 LINE=`grep "wxUSE_DEBUG_INFO" ${OSTYPE}.system.cache`
4620 if test "x$LINE" != x ; then
4621 eval "DEFAULT_$LINE"
4622 fi
4623 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
4624
4625 fi
4626
4627 eval "$ac_cv_use_debug_info"
4628 echo $ac_cv_use_debug_info >> ${OSTYPE}.system.cache.tmp
4629 if test "$wxUSE_DEBUG_INFO" = 1; then
4630 echo "$ac_t""yes" 1>&6
4631 else
4632 echo "$ac_t""no" 1>&6
4633 fi
4634
4635
4636
4637 echo $ac_n "checking "for mem_tracing"""... $ac_c" 1>&6
4638 echo "configure:4639: checking "for mem_tracing"" >&5
4639 # Check whether --with-mem_tracing or --without-mem_tracing was given.
4640 if test "${with_mem_tracing+set}" = set; then
4641 withval="$with_mem_tracing"
4642 if test "x$with_mem_tracing" = xyes; then
4643 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING="1"'
4644 else
4645 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING="0"'
4646 fi
4647 else
4648
4649 LINE=`grep "wxUSE_MEM_TRACING" ${OSTYPE}.system.cache`
4650 if test "x$LINE" != x ; then
4651 eval "DEFAULT_$LINE"
4652 fi
4653 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4654
4655 fi
4656
4657 eval "$ac_cv_use_mem_tracing"
4658 echo $ac_cv_use_mem_tracing >> ${OSTYPE}.system.cache.tmp
4659 if test "$wxUSE_MEM_TRACING" = 1; then
4660 echo "$ac_t""yes" 1>&6
4661 else
4662 echo "$ac_t""no" 1>&6
4663 fi
4664
4665
4666
4667 echo $ac_n "checking "for dmalloc"""... $ac_c" 1>&6
4668 echo "configure:4669: checking "for dmalloc"" >&5
4669 # Check whether --with-dmalloc or --without-dmalloc was given.
4670 if test "${with_dmalloc+set}" = set; then
4671 withval="$with_dmalloc"
4672 if test "x$with_dmalloc" = xyes; then
4673 ac_cv_use_dmalloc='wxUSE_DMALLOC="1"'
4674 else
4675 ac_cv_use_dmalloc='wxUSE_DMALLOC="0"'
4676 fi
4677 else
4678
4679 LINE=`grep "wxUSE_DMALLOC" ${OSTYPE}.system.cache`
4680 if test "x$LINE" != x ; then
4681 eval "DEFAULT_$LINE"
4682 fi
4683 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
4684
4685 fi
4686
4687 eval "$ac_cv_use_dmalloc"
4688 echo $ac_cv_use_dmalloc >> ${OSTYPE}.system.cache.tmp
4689 if test "$wxUSE_DMALLOC" = 1; then
4690 echo "$ac_t""yes" 1>&6
4691 else
4692 echo "$ac_t""no" 1>&6
4693 fi
4694
4695
4696
4697 echo $ac_n "checking "for profile"""... $ac_c" 1>&6
4698 echo "configure:4699: checking "for profile"" >&5
4699 # Check whether --with-profile or --without-profile was given.
4700 if test "${with_profile+set}" = set; then
4701 withval="$with_profile"
4702 if test "x$with_profile" = xyes; then
4703 ac_cv_use_profile='wxUSE_PROFILE="1"'
4704 else
4705 ac_cv_use_profile='wxUSE_PROFILE="0"'
4706 fi
4707 else
4708
4709 LINE=`grep "wxUSE_PROFILE" ${OSTYPE}.system.cache`
4710 if test "x$LINE" != x ; then
4711 eval "DEFAULT_$LINE"
4712 fi
4713 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4714
4715 fi
4716
4717 eval "$ac_cv_use_profile"
4718 echo $ac_cv_use_profile >> ${OSTYPE}.system.cache.tmp
4719 if test "$wxUSE_PROFILE" = 1; then
4720 echo "$ac_t""yes" 1>&6
4721 else
4722 echo "$ac_t""no" 1>&6
4723 fi
4724
4725
4726
4727 echo $ac_n "checking "for apple_ieee"""... $ac_c" 1>&6
4728 echo "configure:4729: checking "for apple_ieee"" >&5
4729 # Check whether --with-apple_ieee or --without-apple_ieee was given.
4730 if test "${with_apple_ieee+set}" = set; then
4731 withval="$with_apple_ieee"
4732 if test "x$with_apple_ieee" = xyes; then
4733 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE="1"'
4734 else
4735 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE="0"'
4736 fi
4737 else
4738
4739 LINE=`grep "wxUSE_APPLE_IEEE" ${OSTYPE}.system.cache`
4740 if test "x$LINE" != x ; then
4741 eval "DEFAULT_$LINE"
4742 fi
4743 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4744
4745 fi
4746
4747 eval "$ac_cv_use_apple_ieee"
4748 echo $ac_cv_use_apple_ieee >> ${OSTYPE}.system.cache.tmp
4749 if test "$wxUSE_APPLE_IEEE" = 1; then
4750 echo "$ac_t""yes" 1>&6
4751 else
4752 echo "$ac_t""no" 1>&6
4753 fi
4754
4755
4756
4757
4758 echo $ac_n "checking "for zlib"""... $ac_c" 1>&6
4759 echo "configure:4760: checking "for zlib"" >&5
4760 # Check whether --with-zlib or --without-zlib was given.
4761 if test "${with_zlib+set}" = set; then
4762 withval="$with_zlib"
4763 if test "x$with_zlib" = xyes; then
4764 ac_cv_use_zlib='wxUSE_ZLIB="1"'
4765 else
4766 ac_cv_use_zlib='wxUSE_ZLIB="0"'
4767 fi
4768 else
4769
4770 LINE=`grep "wxUSE_ZLIB" ${OSTYPE}.system.cache`
4771 if test "x$LINE" != x ; then
4772 eval "DEFAULT_$LINE"
4773 fi
4774 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
4775
4776 fi
4777
4778 eval "$ac_cv_use_zlib"
4779 echo $ac_cv_use_zlib >> ${OSTYPE}.system.cache.tmp
4780 if test "$wxUSE_ZLIB" = 1; then
4781 echo "$ac_t""yes" 1>&6
4782 else
4783 echo "$ac_t""no" 1>&6
4784 fi
4785
4786
4787
4788 echo $ac_n "checking "for libpng"""... $ac_c" 1>&6
4789 echo "configure:4790: checking "for libpng"" >&5
4790 # Check whether --with-libpng or --without-libpng was given.
4791 if test "${with_libpng+set}" = set; then
4792 withval="$with_libpng"
4793 if test "x$with_libpng" = xyes; then
4794 ac_cv_use_libpng='wxUSE_LIBPNG="1"'
4795 else
4796 ac_cv_use_libpng='wxUSE_LIBPNG="0"'
4797 fi
4798 else
4799
4800 LINE=`grep "wxUSE_LIBPNG" ${OSTYPE}.system.cache`
4801 if test "x$LINE" != x ; then
4802 eval "DEFAULT_$LINE"
4803 fi
4804 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
4805
4806 fi
4807
4808 eval "$ac_cv_use_libpng"
4809 echo $ac_cv_use_libpng >> ${OSTYPE}.system.cache.tmp
4810 if test "$wxUSE_LIBPNG" = 1; then
4811 echo "$ac_t""yes" 1>&6
4812 else
4813 echo "$ac_t""no" 1>&6
4814 fi
4815
4816
4817
4818 echo $ac_n "checking "for odbc"""... $ac_c" 1>&6
4819 echo "configure:4820: checking "for odbc"" >&5
4820 # Check whether --with-odbc or --without-odbc was given.
4821 if test "${with_odbc+set}" = set; then
4822 withval="$with_odbc"
4823 if test "x$with_odbc" = xyes; then
4824 ac_cv_use_odbc='wxUSE_ODBC="1"'
4825 else
4826 ac_cv_use_odbc='wxUSE_ODBC="0"'
4827 fi
4828 else
4829
4830 LINE=`grep "wxUSE_ODBC" ${OSTYPE}.system.cache`
4831 if test "x$LINE" != x ; then
4832 eval "DEFAULT_$LINE"
4833 fi
4834 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
4835
4836 fi
4837
4838 eval "$ac_cv_use_odbc"
4839 echo $ac_cv_use_odbc >> ${OSTYPE}.system.cache.tmp
4840 if test "$wxUSE_ODBC" = 1; then
4841 echo "$ac_t""yes" 1>&6
4842 else
4843 echo "$ac_t""no" 1>&6
4844 fi
4845
4846
4847
4848 echo $ac_n "checking "for opengl"""... $ac_c" 1>&6
4849 echo "configure:4850: checking "for opengl"" >&5
4850 # Check whether --with-opengl or --without-opengl was given.
4851 if test "${with_opengl+set}" = set; then
4852 withval="$with_opengl"
4853 if test "x$with_opengl" = xyes; then
4854 ac_cv_use_opengl='wxUSE_OPENGL="1"'
4855 else
4856 ac_cv_use_opengl='wxUSE_OPENGL="0"'
4857 fi
4858 else
4859
4860 LINE=`grep "wxUSE_OPENGL" ${OSTYPE}.system.cache`
4861 if test "x$LINE" != x ; then
4862 eval "DEFAULT_$LINE"
4863 fi
4864 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
4865
4866 fi
4867
4868 eval "$ac_cv_use_opengl"
4869 echo $ac_cv_use_opengl >> ${OSTYPE}.system.cache.tmp
4870 if test "$wxUSE_OPENGL" = 1; then
4871 echo "$ac_t""yes" 1>&6
4872 else
4873 echo "$ac_t""no" 1>&6
4874 fi
4875
4876
4877
4878
4879 echo $ac_n "checking "for gauge"""... $ac_c" 1>&6
4880 echo "configure:4881: checking "for gauge"" >&5
4881 # Check whether --with-gauge or --without-gauge was given.
4882 if test "${with_gauge+set}" = set; then
4883 withval="$with_gauge"
4884 if test "x$with_gauge" = xyes; then
4885 ac_cv_use_gauge='wxUSE_GAUGE="1"'
4886 else
4887 ac_cv_use_gauge='wxUSE_GAUGE="0"'
4888 fi
4889 else
4890
4891 LINE=`grep "wxUSE_GAUGE" ${OSTYPE}.system.cache`
4892 if test "x$LINE" != x ; then
4893 eval "DEFAULT_$LINE"
4894 fi
4895 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4896
4897 fi
4898
4899 eval "$ac_cv_use_gauge"
4900 echo $ac_cv_use_gauge >> ${OSTYPE}.system.cache.tmp
4901 if test "$wxUSE_GAUGE" = 1; then
4902 echo "$ac_t""yes" 1>&6
4903 else
4904 echo "$ac_t""no" 1>&6
4905 fi
4906
4907
4908
4909 echo $ac_n "checking "for combobox"""... $ac_c" 1>&6
4910 echo "configure:4911: checking "for combobox"" >&5
4911 # Check whether --with-combobox or --without-combobox was given.
4912 if test "${with_combobox+set}" = set; then
4913 withval="$with_combobox"
4914 if test "x$with_combobox" = xyes; then
4915 ac_cv_use_combobox='wxUSE_COMBOBOX="1"'
4916 else
4917 ac_cv_use_combobox='wxUSE_COMBOBOX="0"'
4918 fi
4919 else
4920
4921 LINE=`grep "wxUSE_COMBOBOX" ${OSTYPE}.system.cache`
4922 if test "x$LINE" != x ; then
4923 eval "DEFAULT_$LINE"
4924 fi
4925 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4926
4927 fi
4928
4929 eval "$ac_cv_use_combobox"
4930 echo $ac_cv_use_combobox >> ${OSTYPE}.system.cache.tmp
4931 if test "$wxUSE_COMBOBOX" = 1; then
4932 echo "$ac_t""yes" 1>&6
4933 else
4934 echo "$ac_t""no" 1>&6
4935 fi
4936
4937
4938
4939 echo $ac_n "checking "for scrollbar"""... $ac_c" 1>&6
4940 echo "configure:4941: checking "for scrollbar"" >&5
4941 # Check whether --with-scrollbar or --without-scrollbar was given.
4942 if test "${with_scrollbar+set}" = set; then
4943 withval="$with_scrollbar"
4944 if test "x$with_scrollbar" = xyes; then
4945 ac_cv_use_scrollbar='wxUSE_SCROLLBAR="1"'
4946 else
4947 ac_cv_use_scrollbar='wxUSE_SCROLLBAR="0"'
4948 fi
4949 else
4950
4951 LINE=`grep "wxUSE_SCROLLBAR" ${OSTYPE}.system.cache`
4952 if test "x$LINE" != x ; then
4953 eval "DEFAULT_$LINE"
4954 fi
4955 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4956
4957 fi
4958
4959 eval "$ac_cv_use_scrollbar"
4960 echo $ac_cv_use_scrollbar >> ${OSTYPE}.system.cache.tmp
4961 if test "$wxUSE_SCROLLBAR" = 1; then
4962 echo "$ac_t""yes" 1>&6
4963 else
4964 echo "$ac_t""no" 1>&6
4965 fi
4966
4967
4968
4969 echo $ac_n "checking "for listctrl"""... $ac_c" 1>&6
4970 echo "configure:4971: checking "for listctrl"" >&5
4971 # Check whether --with-listctrl or --without-listctrl was given.
4972 if test "${with_listctrl+set}" = set; then
4973 withval="$with_listctrl"
4974 if test "x$with_listctrl" = xyes; then
4975 ac_cv_use_listctrl='wxUSE_LISTCTRL="1"'
4976 else
4977 ac_cv_use_listctrl='wxUSE_LISTCTRL="0"'
4978 fi
4979 else
4980
4981 LINE=`grep "wxUSE_LISTCTRL" ${OSTYPE}.system.cache`
4982 if test "x$LINE" != x ; then
4983 eval "DEFAULT_$LINE"
4984 fi
4985 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4986
4987 fi
4988
4989 eval "$ac_cv_use_listctrl"
4990 echo $ac_cv_use_listctrl >> ${OSTYPE}.system.cache.tmp
4991 if test "$wxUSE_LISTCTRL" = 1; then
4992 echo "$ac_t""yes" 1>&6
4993 else
4994 echo "$ac_t""no" 1>&6
4995 fi
4996
4997
4998
4999 echo $ac_n "checking "for treectrl"""... $ac_c" 1>&6
5000 echo "configure:5001: checking "for treectrl"" >&5
5001 # Check whether --with-treectrl or --without-treectrl was given.
5002 if test "${with_treectrl+set}" = set; then
5003 withval="$with_treectrl"
5004 if test "x$with_treectrl" = xyes; then
5005 ac_cv_use_treectrl='wxUSE_TREECTRL="1"'
5006 else
5007 ac_cv_use_treectrl='wxUSE_TREECTRL="0"'
5008 fi
5009 else
5010
5011 LINE=`grep "wxUSE_TREECTRL" ${OSTYPE}.system.cache`
5012 if test "x$LINE" != x ; then
5013 eval "DEFAULT_$LINE"
5014 fi
5015 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5016
5017 fi
5018
5019 eval "$ac_cv_use_treectrl"
5020 echo $ac_cv_use_treectrl >> ${OSTYPE}.system.cache.tmp
5021 if test "$wxUSE_TREECTRL" = 1; then
5022 echo "$ac_t""yes" 1>&6
5023 else
5024 echo "$ac_t""no" 1>&6
5025 fi
5026
5027
5028
5029 echo $ac_n "checking "for grid"""... $ac_c" 1>&6
5030 echo "configure:5031: checking "for grid"" >&5
5031 # Check whether --with-grid or --without-grid was given.
5032 if test "${with_grid+set}" = set; then
5033 withval="$with_grid"
5034 if test "x$with_grid" = xyes; then
5035 ac_cv_use_grid='wxUSE_GRID="1"'
5036 else
5037 ac_cv_use_grid='wxUSE_GRID="0"'
5038 fi
5039 else
5040
5041 LINE=`grep "wxUSE_GRID" ${OSTYPE}.system.cache`
5042 if test "x$LINE" != x ; then
5043 eval "DEFAULT_$LINE"
5044 fi
5045 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
5046
5047 fi
5048
5049 eval "$ac_cv_use_grid"
5050 echo $ac_cv_use_grid >> ${OSTYPE}.system.cache.tmp
5051 if test "$wxUSE_GRID" = 1; then
5052 echo "$ac_t""yes" 1>&6
5053 else
5054 echo "$ac_t""no" 1>&6
5055 fi
5056
5057
5058
5059 echo $ac_n "checking "for tab_dialog"""... $ac_c" 1>&6
5060 echo "configure:5061: checking "for tab_dialog"" >&5
5061 # Check whether --with-tab_dialog or --without-tab_dialog was given.
5062 if test "${with_tab_dialog+set}" = set; then
5063 withval="$with_tab_dialog"
5064 if test "x$with_tab_dialog" = xyes; then
5065 ac_cv_use_tab_dialog='wxUSE_TAB_DIALOG="1"'
5066 else
5067 ac_cv_use_tab_dialog='wxUSE_TAB_DIALOG="0"'
5068 fi
5069 else
5070
5071 LINE=`grep "wxUSE_TAB_DIALOG" ${OSTYPE}.system.cache`
5072 if test "x$LINE" != x ; then
5073 eval "DEFAULT_$LINE"
5074 fi
5075 ac_cv_use_tab_dialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
5076
5077 fi
5078
5079 eval "$ac_cv_use_tab_dialog"
5080 echo $ac_cv_use_tab_dialog >> ${OSTYPE}.system.cache.tmp
5081 if test "$wxUSE_TAB_DIALOG" = 1; then
5082 echo "$ac_t""yes" 1>&6
5083 else
5084 echo "$ac_t""no" 1>&6
5085 fi
5086
5087
5088
5089 echo $ac_n "checking "for notebook"""... $ac_c" 1>&6
5090 echo "configure:5091: checking "for notebook"" >&5
5091 # Check whether --with-notebook or --without-notebook was given.
5092 if test "${with_notebook+set}" = set; then
5093 withval="$with_notebook"
5094 if test "x$with_notebook" = xyes; then
5095 ac_cv_use_notebook='wxUSE_NOTEBOOK="1"'
5096 else
5097 ac_cv_use_notebook='wxUSE_NOTEBOOK="0"'
5098 fi
5099 else
5100
5101 LINE=`grep "wxUSE_NOTEBOOK" ${OSTYPE}.system.cache`
5102 if test "x$LINE" != x ; then
5103 eval "DEFAULT_$LINE"
5104 fi
5105 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
5106
5107 fi
5108
5109 eval "$ac_cv_use_notebook"
5110 echo $ac_cv_use_notebook >> ${OSTYPE}.system.cache.tmp
5111 if test "$wxUSE_NOTEBOOK" = 1; then
5112 echo "$ac_t""yes" 1>&6
5113 else
5114 echo "$ac_t""no" 1>&6
5115 fi
5116
5117
5118
5119
5120 echo $ac_n "checking "for timedate"""... $ac_c" 1>&6
5121 echo "configure:5122: checking "for timedate"" >&5
5122 # Check whether --with-timedate or --without-timedate was given.
5123 if test "${with_timedate+set}" = set; then
5124 withval="$with_timedate"
5125 if test "x$with_timedate" = xyes; then
5126 ac_cv_use_timedate='wxUSE_TIMEDATE="1"'
5127 else
5128 ac_cv_use_timedate='wxUSE_TIMEDATE="0"'
5129 fi
5130 else
5131
5132 LINE=`grep "wxUSE_TIMEDATE" ${OSTYPE}.system.cache`
5133 if test "x$LINE" != x ; then
5134 eval "DEFAULT_$LINE"
5135 fi
5136 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
5137
5138 fi
5139
5140 eval "$ac_cv_use_timedate"
5141 echo $ac_cv_use_timedate >> ${OSTYPE}.system.cache.tmp
5142 if test "$wxUSE_TIMEDATE" = 1; then
5143 echo "$ac_t""yes" 1>&6
5144 else
5145 echo "$ac_t""no" 1>&6
5146 fi
5147
5148
5149
5150 echo $ac_n "checking "for fraction"""... $ac_c" 1>&6
5151 echo "configure:5152: checking "for fraction"" >&5
5152 # Check whether --with-fraction or --without-fraction was given.
5153 if test "${with_fraction+set}" = set; then
5154 withval="$with_fraction"
5155 if test "x$with_fraction" = xyes; then
5156 ac_cv_use_fraction='wxUSE_FRACTION="1"'
5157 else
5158 ac_cv_use_fraction='wxUSE_FRACTION="0"'
5159 fi
5160 else
5161
5162 LINE=`grep "wxUSE_FRACTION" ${OSTYPE}.system.cache`
5163 if test "x$LINE" != x ; then
5164 eval "DEFAULT_$LINE"
5165 fi
5166 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
5167
5168 fi
5169
5170 eval "$ac_cv_use_fraction"
5171 echo $ac_cv_use_fraction >> ${OSTYPE}.system.cache.tmp
5172 if test "$wxUSE_FRACTION" = 1; then
5173 echo "$ac_t""yes" 1>&6
5174 else
5175 echo "$ac_t""no" 1>&6
5176 fi
5177
5178
5179
5180 echo $ac_n "checking "for log"""... $ac_c" 1>&6
5181 echo "configure:5182: checking "for log"" >&5
5182 # Check whether --with-log or --without-log was given.
5183 if test "${with_log+set}" = set; then
5184 withval="$with_log"
5185 if test "x$with_log" = xyes; then
5186 ac_cv_use_log='wxUSE_LOG="1"'
5187 else
5188 ac_cv_use_log='wxUSE_LOG="0"'
5189 fi
5190 else
5191
5192 LINE=`grep "wxUSE_LOG" ${OSTYPE}.system.cache`
5193 if test "x$LINE" != x ; then
5194 eval "DEFAULT_$LINE"
5195 fi
5196 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5197
5198 fi
5199
5200 eval "$ac_cv_use_log"
5201 echo $ac_cv_use_log >> ${OSTYPE}.system.cache.tmp
5202 if test "$wxUSE_LOG" = 1; then
5203 echo "$ac_t""yes" 1>&6
5204 else
5205 echo "$ac_t""no" 1>&6
5206 fi
5207
5208
5209
5210 echo $ac_n "checking "for intl"""... $ac_c" 1>&6
5211 echo "configure:5212: checking "for intl"" >&5
5212 # Check whether --with-intl or --without-intl was given.
5213 if test "${with_intl+set}" = set; then
5214 withval="$with_intl"
5215 if test "x$with_intl" = xyes; then
5216 ac_cv_use_intl='wxUSE_INTL="1"'
5217 else
5218 ac_cv_use_intl='wxUSE_INTL="0"'
5219 fi
5220 else
5221
5222 LINE=`grep "wxUSE_INTL" ${OSTYPE}.system.cache`
5223 if test "x$LINE" != x ; then
5224 eval "DEFAULT_$LINE"
5225 fi
5226 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
5227
5228 fi
5229
5230 eval "$ac_cv_use_intl"
5231 echo $ac_cv_use_intl >> ${OSTYPE}.system.cache.tmp
5232 if test "$wxUSE_INTL" = 1; then
5233 echo "$ac_t""yes" 1>&6
5234 else
5235 echo "$ac_t""no" 1>&6
5236 fi
5237
5238
5239
5240 echo $ac_n "checking "for config"""... $ac_c" 1>&6
5241 echo "configure:5242: checking "for config"" >&5
5242 # Check whether --with-config or --without-config was given.
5243 if test "${with_config+set}" = set; then
5244 withval="$with_config"
5245 if test "x$with_config" = xyes; then
5246 ac_cv_use_config='wxUSE_CONFIG="1"'
5247 else
5248 ac_cv_use_config='wxUSE_CONFIG="0"'
5249 fi
5250 else
5251
5252 LINE=`grep "wxUSE_CONFIG" ${OSTYPE}.system.cache`
5253 if test "x$LINE" != x ; then
5254 eval "DEFAULT_$LINE"
5255 fi
5256 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
5257
5258 fi
5259
5260 eval "$ac_cv_use_config"
5261 echo $ac_cv_use_config >> ${OSTYPE}.system.cache.tmp
5262 if test "$wxUSE_CONFIG" = 1; then
5263 echo "$ac_t""yes" 1>&6
5264 else
5265 echo "$ac_t""no" 1>&6
5266 fi
5267
5268
5269
5270 echo $ac_n "checking "for streams"""... $ac_c" 1>&6
5271 echo "configure:5272: checking "for streams"" >&5
5272 # Check whether --with-streams or --without-streams was given.
5273 if test "${with_streams+set}" = set; then
5274 withval="$with_streams"
5275 if test "x$with_streams" = xyes; then
5276 ac_cv_use_streams='wxUSE_STREAMS="1"'
5277 else
5278 ac_cv_use_streams='wxUSE_STREAMS="0"'
5279 fi
5280 else
5281
5282 LINE=`grep "wxUSE_STREAMS" ${OSTYPE}.system.cache`
5283 if test "x$LINE" != x ; then
5284 eval "DEFAULT_$LINE"
5285 fi
5286 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5287
5288 fi
5289
5290 eval "$ac_cv_use_streams"
5291 echo $ac_cv_use_streams >> ${OSTYPE}.system.cache.tmp
5292 if test "$wxUSE_STREAMS" = 1; then
5293 echo "$ac_t""yes" 1>&6
5294 else
5295 echo "$ac_t""no" 1>&6
5296 fi
5297
5298
5299
5300 echo $ac_n "checking "for serial"""... $ac_c" 1>&6
5301 echo "configure:5302: checking "for serial"" >&5
5302 # Check whether --with-serial or --without-serial was given.
5303 if test "${with_serial+set}" = set; then
5304 withval="$with_serial"
5305 if test "x$with_serial" = xyes; then
5306 ac_cv_use_serial='wxUSE_SERIAL="1"'
5307 else
5308 ac_cv_use_serial='wxUSE_SERIAL="0"'
5309 fi
5310 else
5311
5312 LINE=`grep "wxUSE_SERIAL" ${OSTYPE}.system.cache`
5313 if test "x$LINE" != x ; then
5314 eval "DEFAULT_$LINE"
5315 fi
5316 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
5317
5318 fi
5319
5320 eval "$ac_cv_use_serial"
5321 echo $ac_cv_use_serial >> ${OSTYPE}.system.cache.tmp
5322 if test "$wxUSE_SERIAL" = 1; then
5323 echo "$ac_t""yes" 1>&6
5324 else
5325 echo "$ac_t""no" 1>&6
5326 fi
5327
5328
5329
5330 echo $ac_n "checking "for file"""... $ac_c" 1>&6
5331 echo "configure:5332: checking "for file"" >&5
5332 # Check whether --with-file or --without-file was given.
5333 if test "${with_file+set}" = set; then
5334 withval="$with_file"
5335 if test "x$with_file" = xyes; then
5336 ac_cv_use_file='wxUSE_FILE="1"'
5337 else
5338 ac_cv_use_file='wxUSE_FILE="0"'
5339 fi
5340 else
5341
5342 LINE=`grep "wxUSE_FILE" ${OSTYPE}.system.cache`
5343 if test "x$LINE" != x ; then
5344 eval "DEFAULT_$LINE"
5345 fi
5346 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5347
5348 fi
5349
5350 eval "$ac_cv_use_file"
5351 echo $ac_cv_use_file >> ${OSTYPE}.system.cache.tmp
5352 if test "$wxUSE_FILE" = 1; then
5353 echo "$ac_t""yes" 1>&6
5354 else
5355 echo "$ac_t""no" 1>&6
5356 fi
5357
5358
5359
5360 echo $ac_n "checking "for textfile"""... $ac_c" 1>&6
5361 echo "configure:5362: checking "for textfile"" >&5
5362 # Check whether --with-textfile or --without-textfile was given.
5363 if test "${with_textfile+set}" = set; then
5364 withval="$with_textfile"
5365 if test "x$with_textfile" = xyes; then
5366 ac_cv_use_textfile='wxUSE_TEXTFILE="1"'
5367 else
5368 ac_cv_use_textfile='wxUSE_TEXTFILE="0"'
5369 fi
5370 else
5371
5372 LINE=`grep "wxUSE_TEXTFILE" ${OSTYPE}.system.cache`
5373 if test "x$LINE" != x ; then
5374 eval "DEFAULT_$LINE"
5375 fi
5376 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5377
5378 fi
5379
5380 eval "$ac_cv_use_textfile"
5381 echo $ac_cv_use_textfile >> ${OSTYPE}.system.cache.tmp
5382 if test "$wxUSE_TEXTFILE" = 1; then
5383 echo "$ac_t""yes" 1>&6
5384 else
5385 echo "$ac_t""no" 1>&6
5386 fi
5387
5388
5389
5390
5391 echo $ac_n "checking "for afmfonts"""... $ac_c" 1>&6
5392 echo "configure:5393: checking "for afmfonts"" >&5
5393 # Check whether --with-afmfonts or --without-afmfonts was given.
5394 if test "${with_afmfonts+set}" = set; then
5395 withval="$with_afmfonts"
5396 if test "x$with_afmfonts" = xyes; then
5397 ac_cv_use_afmfonts='wxUSE_AFM_FOR_POSTSCRIPT="1"'
5398 else
5399 ac_cv_use_afmfonts='wxUSE_AFM_FOR_POSTSCRIPT="0"'
5400 fi
5401 else
5402
5403 LINE=`grep "wxUSE_AFM_FOR_POSTSCRIPT" ${OSTYPE}.system.cache`
5404 if test "x$LINE" != x ; then
5405 eval "DEFAULT_$LINE"
5406 fi
5407 ac_cv_use_afmfonts='wxUSE_AFM_FOR_POSTSCRIPT='$DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT
5408
5409 fi
5410
5411 eval "$ac_cv_use_afmfonts"
5412 echo $ac_cv_use_afmfonts >> ${OSTYPE}.system.cache.tmp
5413 if test "$wxUSE_AFM_FOR_POSTSCRIPT" = 1; then
5414 echo "$ac_t""yes" 1>&6
5415 else
5416 echo "$ac_t""no" 1>&6
5417 fi
5418
5419
5420
5421 echo $ac_n "checking "for normalized"""... $ac_c" 1>&6
5422 echo "configure:5423: checking "for normalized"" >&5
5423 # Check whether --with-normalized or --without-normalized was given.
5424 if test "${with_normalized+set}" = set; then
5425 withval="$with_normalized"
5426 if test "x$with_normalized" = xyes; then
5427 ac_cv_use_normalized='WX_NORMALIZED_PS_FONTS="1"'
5428 else
5429 ac_cv_use_normalized='WX_NORMALIZED_PS_FONTS="0"'
5430 fi
5431 else
5432
5433 LINE=`grep "WX_NORMALIZED_PS_FONTS" ${OSTYPE}.system.cache`
5434 if test "x$LINE" != x ; then
5435 eval "DEFAULT_$LINE"
5436 fi
5437 ac_cv_use_normalized='WX_NORMALIZED_PS_FONTS='$DEFAULT_WX_NORMALIZED_PS_FONTS
5438
5439 fi
5440
5441 eval "$ac_cv_use_normalized"
5442 echo $ac_cv_use_normalized >> ${OSTYPE}.system.cache.tmp
5443 if test "$WX_NORMALIZED_PS_FONTS" = 1; then
5444 echo "$ac_t""yes" 1>&6
5445 else
5446 echo "$ac_t""no" 1>&6
5447 fi
5448
5449
5450
5451 echo $ac_n "checking "for postscript"""... $ac_c" 1>&6
5452 echo "configure:5453: checking "for postscript"" >&5
5453 # Check whether --with-postscript or --without-postscript was given.
5454 if test "${with_postscript+set}" = set; then
5455 withval="$with_postscript"
5456 if test "x$with_postscript" = xyes; then
5457 ac_cv_use_postscript='wxUSE_POSTSCRIPT="1"'
5458 else
5459 ac_cv_use_postscript='wxUSE_POSTSCRIPT="0"'
5460 fi
5461 else
5462
5463 LINE=`grep "wxUSE_POSTSCRIPT" ${OSTYPE}.system.cache`
5464 if test "x$LINE" != x ; then
5465 eval "DEFAULT_$LINE"
5466 fi
5467 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5468
5469 fi
5470
5471 eval "$ac_cv_use_postscript"
5472 echo $ac_cv_use_postscript >> ${OSTYPE}.system.cache.tmp
5473 if test "$wxUSE_POSTSCRIPT" = 1; then
5474 echo "$ac_t""yes" 1>&6
5475 else
5476 echo "$ac_t""no" 1>&6
5477 fi
5478
5479
5480
5481
5482 echo $ac_n "checking "for unicode"""... $ac_c" 1>&6
5483 echo "configure:5484: checking "for unicode"" >&5
5484 # Check whether --with-unicode or --without-unicode was given.
5485 if test "${with_unicode+set}" = set; then
5486 withval="$with_unicode"
5487 if test "x$with_unicode" = xyes; then
5488 ac_cv_use_unicode='wxUSE_UNICODE="1"'
5489 else
5490 ac_cv_use_unicode='wxUSE_UNICODE="0"'
5491 fi
5492 else
5493
5494 LINE=`grep "wxUSE_UNICODE" ${OSTYPE}.system.cache`
5495 if test "x$LINE" != x ; then
5496 eval "DEFAULT_$LINE"
5497 fi
5498 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5499
5500 fi
5501
5502 eval "$ac_cv_use_unicode"
5503 echo $ac_cv_use_unicode >> ${OSTYPE}.system.cache.tmp
5504 if test "$wxUSE_UNICODE" = 1; then
5505 echo "$ac_t""yes" 1>&6
5506 else
5507 echo "$ac_t""no" 1>&6
5508 fi
5509
5510
5511
5512 echo $ac_n "checking "for wcsrtombs"""... $ac_c" 1>&6
5513 echo "configure:5514: checking "for wcsrtombs"" >&5
5514 # Check whether --with-wcsrtombs or --without-wcsrtombs was given.
5515 if test "${with_wcsrtombs+set}" = set; then
5516 withval="$with_wcsrtombs"
5517 if test "x$with_wcsrtombs" = xyes; then
5518 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS="1"'
5519 else
5520 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS="0"'
5521 fi
5522 else
5523
5524 LINE=`grep "wxUSE_WCSRTOMBS" ${OSTYPE}.system.cache`
5525 if test "x$LINE" != x ; then
5526 eval "DEFAULT_$LINE"
5527 fi
5528 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
5529
5530 fi
5531
5532 eval "$ac_cv_use_wcsrtombs"
5533 echo $ac_cv_use_wcsrtombs >> ${OSTYPE}.system.cache.tmp
5534 if test "$wxUSE_WCSRTOMBS" = 1; then
5535 echo "$ac_t""yes" 1>&6
5536 else
5537 echo "$ac_t""no" 1>&6
5538 fi
5539
5540
5541
5542
5543 echo $ac_n "checking "for wxresources"""... $ac_c" 1>&6
5544 echo "configure:5545: checking "for wxresources"" >&5
5545 # Check whether --with-wxresources or --without-wxresources was given.
5546 if test "${with_wxresources+set}" = set; then
5547 withval="$with_wxresources"
5548 if test "x$with_wxresources" = xyes; then
5549 ac_cv_use_wxresources='wxUSE_WX_RESOURCES="1"'
5550 else
5551 ac_cv_use_wxresources='wxUSE_WX_RESOURCES="0"'
5552 fi
5553 else
5554
5555 LINE=`grep "wxUSE_WX_RESOURCES" ${OSTYPE}.system.cache`
5556 if test "x$LINE" != x ; then
5557 eval "DEFAULT_$LINE"
5558 fi
5559 ac_cv_use_wxresources='wxUSE_WX_RESOURCES='$DEFAULT_wxUSE_WX_RESOURCES
5560
5561 fi
5562
5563 eval "$ac_cv_use_wxresources"
5564 echo $ac_cv_use_wxresources >> ${OSTYPE}.system.cache.tmp
5565 if test "$wxUSE_WX_RESOURCES" = 1; then
5566 echo "$ac_t""yes" 1>&6
5567 else
5568 echo "$ac_t""no" 1>&6
5569 fi
5570
5571
5572
5573 echo $ac_n "checking "for prologio"""... $ac_c" 1>&6
5574 echo "configure:5575: checking "for prologio"" >&5
5575 # Check whether --with-prologio or --without-prologio was given.
5576 if test "${with_prologio+set}" = set; then
5577 withval="$with_prologio"
5578 if test "x$with_prologio" = xyes; then
5579 ac_cv_use_prologio='wxUSE_PROLOGIO="1"'
5580 else
5581 ac_cv_use_prologio='wxUSE_PROLOGIO="0"'
5582 fi
5583 else
5584
5585 LINE=`grep "wxUSE_PROLOGIO" ${OSTYPE}.system.cache`
5586 if test "x$LINE" != x ; then
5587 eval "DEFAULT_$LINE"
5588 fi
5589 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5590
5591 fi
5592
5593 eval "$ac_cv_use_prologio"
5594 echo $ac_cv_use_prologio >> ${OSTYPE}.system.cache.tmp
5595 if test "$wxUSE_PROLOGIO" = 1; then
5596 echo "$ac_t""yes" 1>&6
5597 else
5598 echo "$ac_t""no" 1>&6
5599 fi
5600
5601
5602
5603 echo $ac_n "checking "for RPC"""... $ac_c" 1>&6
5604 echo "configure:5605: checking "for RPC"" >&5
5605 # Check whether --with-rpc or --without-rpc was given.
5606 if test "${with_rpc+set}" = set; then
5607 withval="$with_rpc"
5608 if test "x$with_rpc" = xyes; then
5609 ac_cv_use_rpc='wxUSE_RPC="1"'
5610 else
5611 ac_cv_use_rpc='wxUSE_RPC="0"'
5612 fi
5613 else
5614
5615 LINE=`grep "wxUSE_RPC" ${OSTYPE}.system.cache`
5616 if test "x$LINE" != x ; then
5617 eval "DEFAULT_$LINE"
5618 fi
5619 ac_cv_use_rpc='wxUSE_RPC='$DEFAULT_wxUSE_RPC
5620
5621 fi
5622
5623 eval "$ac_cv_use_rpc"
5624 echo $ac_cv_use_rpc >> ${OSTYPE}.system.cache.tmp
5625 if test "$wxUSE_RPC" = 1; then
5626 echo "$ac_t""yes" 1>&6
5627 else
5628 echo "$ac_t""no" 1>&6
5629 fi
5630
5631
5632
5633
5634 echo $ac_n "checking "for IPC"""... $ac_c" 1>&6
5635 echo "configure:5636: checking "for IPC"" >&5
5636 # Check whether --with-ipc or --without-ipc was given.
5637 if test "${with_ipc+set}" = set; then
5638 withval="$with_ipc"
5639 if test "x$with_ipc" = xyes; then
5640 ac_cv_use_ipc='wxUSE_IPC="1"'
5641 else
5642 ac_cv_use_ipc='wxUSE_IPC="0"'
5643 fi
5644 else
5645
5646 LINE=`grep "wxUSE_IPC" ${OSTYPE}.system.cache`
5647 if test "x$LINE" != x ; then
5648 eval "DEFAULT_$LINE"
5649 fi
5650 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
5651
5652 fi
5653
5654 eval "$ac_cv_use_ipc"
5655 echo $ac_cv_use_ipc >> ${OSTYPE}.system.cache.tmp
5656 if test "$wxUSE_IPC" = 1; then
5657 echo "$ac_t""yes" 1>&6
5658 else
5659 echo "$ac_t""no" 1>&6
5660 fi
5661
5662
5663
5664 echo $ac_n "checking "for resources"""... $ac_c" 1>&6
5665 echo "configure:5666: checking "for resources"" >&5
5666 # Check whether --with-resources or --without-resources was given.
5667 if test "${with_resources+set}" = set; then
5668 withval="$with_resources"
5669 if test "x$with_resources" = xyes; then
5670 ac_cv_use_resources='wxUSE_RESOURCES="1"'
5671 else
5672 ac_cv_use_resources='wxUSE_RESOURCES="0"'
5673 fi
5674 else
5675
5676 LINE=`grep "wxUSE_RESOURCES" ${OSTYPE}.system.cache`
5677 if test "x$LINE" != x ; then
5678 eval "DEFAULT_$LINE"
5679 fi
5680 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5681
5682 fi
5683
5684 eval "$ac_cv_use_resources"
5685 echo $ac_cv_use_resources >> ${OSTYPE}.system.cache.tmp
5686 if test "$wxUSE_RESOURCES" = 1; then
5687 echo "$ac_t""yes" 1>&6
5688 else
5689 echo "$ac_t""no" 1>&6
5690 fi
5691
5692
5693
5694 echo $ac_n "checking "for clipboard"""... $ac_c" 1>&6
5695 echo "configure:5696: checking "for clipboard"" >&5
5696 # Check whether --with-clipboard or --without-clipboard was given.
5697 if test "${with_clipboard+set}" = set; then
5698 withval="$with_clipboard"
5699 if test "x$with_clipboard" = xyes; then
5700 ac_cv_use_clipboard='wxUSE_CLIPBOARD="1"'
5701 else
5702 ac_cv_use_clipboard='wxUSE_CLIPBOARD="0"'
5703 fi
5704 else
5705
5706 LINE=`grep "wxUSE_CLIPBOARD" ${OSTYPE}.system.cache`
5707 if test "x$LINE" != x ; then
5708 eval "DEFAULT_$LINE"
5709 fi
5710 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5711
5712 fi
5713
5714 eval "$ac_cv_use_clipboard"
5715 echo $ac_cv_use_clipboard >> ${OSTYPE}.system.cache.tmp
5716 if test "$wxUSE_CLIPBOARD" = 1; then
5717 echo "$ac_t""yes" 1>&6
5718 else
5719 echo "$ac_t""no" 1>&6
5720 fi
5721
5722
5723
5724 echo $ac_n "checking "for dnd"""... $ac_c" 1>&6
5725 echo "configure:5726: checking "for dnd"" >&5
5726 # Check whether --with-dnd or --without-dnd was given.
5727 if test "${with_dnd+set}" = set; then
5728 withval="$with_dnd"
5729 if test "x$with_dnd" = xyes; then
5730 ac_cv_use_dnd='wxUSE_DND="1"'
5731 else
5732 ac_cv_use_dnd='wxUSE_DND="0"'
5733 fi
5734 else
5735
5736 LINE=`grep "wxUSE_DND" ${OSTYPE}.system.cache`
5737 if test "x$LINE" != x ; then
5738 eval "DEFAULT_$LINE"
5739 fi
5740 ac_cv_use_dnd='wxUSE_DND='$DEFAULT_wxUSE_DND
5741
5742 fi
5743
5744 eval "$ac_cv_use_dnd"
5745 echo $ac_cv_use_dnd >> ${OSTYPE}.system.cache.tmp
5746 if test "$wxUSE_DND" = 1; then
5747 echo "$ac_t""yes" 1>&6
5748 else
5749 echo "$ac_t""no" 1>&6
5750 fi
5751
5752
5753
5754 echo $ac_n "checking "for constrains"""... $ac_c" 1>&6
5755 echo "configure:5756: checking "for constrains"" >&5
5756 # Check whether --with-constraints or --without-constraints was given.
5757 if test "${with_constraints+set}" = set; then
5758 withval="$with_constraints"
5759 if test "x$with_constraints" = xyes; then
5760 ac_cv_use_constraints='wxUSE_CONSTRAINTS="1"'
5761 else
5762 ac_cv_use_constraints='wxUSE_CONSTRAINTS="0"'
5763 fi
5764 else
5765
5766 LINE=`grep "wxUSE_CONSTRAINTS" ${OSTYPE}.system.cache`
5767 if test "x$LINE" != x ; then
5768 eval "DEFAULT_$LINE"
5769 fi
5770 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5771
5772 fi
5773
5774 eval "$ac_cv_use_constraints"
5775 echo $ac_cv_use_constraints >> ${OSTYPE}.system.cache.tmp
5776 if test "$wxUSE_CONSTRAINTS" = 1; then
5777 echo "$ac_t""yes" 1>&6
5778 else
5779 echo "$ac_t""no" 1>&6
5780 fi
5781
5782
5783
5784
5785 echo $ac_n "checking "for mdi"""... $ac_c" 1>&6
5786 echo "configure:5787: checking "for mdi"" >&5
5787 # Check whether --with-mdi or --without-mdi was given.
5788 if test "${with_mdi+set}" = set; then
5789 withval="$with_mdi"
5790 if test "x$with_mdi" = xyes; then
5791 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE="1"'
5792 else
5793 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE="0"'
5794 fi
5795 else
5796
5797 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${OSTYPE}.system.cache`
5798 if test "x$LINE" != x ; then
5799 eval "DEFAULT_$LINE"
5800 fi
5801 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5802
5803 fi
5804
5805 eval "$ac_cv_use_mdi"
5806 echo $ac_cv_use_mdi >> ${OSTYPE}.system.cache.tmp
5807 if test "$wxUSE_MDI_ARCHITECTURE" = 1; then
5808 echo "$ac_t""yes" 1>&6
5809 else
5810 echo "$ac_t""no" 1>&6
5811 fi
5812
5813
5814
5815 echo $ac_n "checking "for docview"""... $ac_c" 1>&6
5816 echo "configure:5817: checking "for docview"" >&5
5817 # Check whether --with-docview or --without-docview was given.
5818 if test "${with_docview+set}" = set; then
5819 withval="$with_docview"
5820 if test "x$with_docview" = xyes; then
5821 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE="1"'
5822 else
5823 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE="0"'
5824 fi
5825 else
5826
5827 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${OSTYPE}.system.cache`
5828 if test "x$LINE" != x ; then
5829 eval "DEFAULT_$LINE"
5830 fi
5831 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
5832
5833 fi
5834
5835 eval "$ac_cv_use_docview"
5836 echo $ac_cv_use_docview >> ${OSTYPE}.system.cache.tmp
5837 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = 1; then
5838 echo "$ac_t""yes" 1>&6
5839 else
5840 echo "$ac_t""no" 1>&6
5841 fi
5842
5843
5844
5845 echo $ac_n "checking "for printarch"""... $ac_c" 1>&6
5846 echo "configure:5847: checking "for printarch"" >&5
5847 # Check whether --with-printarch or --without-printarch was given.
5848 if test "${with_printarch+set}" = set; then
5849 withval="$with_printarch"
5850 if test "x$with_printarch" = xyes; then
5851 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE="1"'
5852 else
5853 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE="0"'
5854 fi
5855 else
5856
5857 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${OSTYPE}.system.cache`
5858 if test "x$LINE" != x ; then
5859 eval "DEFAULT_$LINE"
5860 fi
5861 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5862
5863 fi
5864
5865 eval "$ac_cv_use_printarch"
5866 echo $ac_cv_use_printarch >> ${OSTYPE}.system.cache.tmp
5867 if test "$wxUSE_PRINTING_ARCHITECTURE" = 1; then
5868 echo "$ac_t""yes" 1>&6
5869 else
5870 echo "$ac_t""no" 1>&6
5871 fi
5872
5873
5874
5875 echo $ac_n "checking "for help"""... $ac_c" 1>&6
5876 echo "configure:5877: checking "for help"" >&5
5877 # Check whether --with-help or --without-help was given.
5878 if test "${with_help+set}" = set; then
5879 withval="$with_help"
5880 if test "x$with_help" = xyes; then
5881 ac_cv_use_help='wxUSE_HELP="1"'
5882 else
5883 ac_cv_use_help='wxUSE_HELP="0"'
5884 fi
5885 else
5886
5887 LINE=`grep "wxUSE_HELP" ${OSTYPE}.system.cache`
5888 if test "x$LINE" != x ; then
5889 eval "DEFAULT_$LINE"
5890 fi
5891 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
5892
5893 fi
5894
5895 eval "$ac_cv_use_help"
5896 echo $ac_cv_use_help >> ${OSTYPE}.system.cache.tmp
5897 if test "$wxUSE_HELP" = 1; then
5898 echo "$ac_t""yes" 1>&6
5899 else
5900 echo "$ac_t""no" 1>&6
5901 fi
5902
5903
5904
5905 if test "$wxUSE_UNIX" = 1 ; then
5906 cat >> confdefs.h <<\EOF
5907 #define __UNIX__ 1
5908 EOF
5909
5910 fi
5911
5912
5913 TOOLKIT=
5914 TOOLKIT_DEF=
5915
5916 GUI_TK_INCLUDE=
5917 GUI_TK_LIBRARY=
5918 GUI_TK_LINK=
5919
5920 WX_LINK=
5921
5922 MAKEINCLUDE=
5923
5924 if test "$wxUSE_GTK" = 1; then
5925 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
5926 if test "${with_gtk_prefix+set}" = set; then
5927 withval="$with_gtk_prefix"
5928 gtk_config_prefix="$withval"
5929 else
5930 gtk_config_prefix=""
5931 fi
5932
5933 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
5934 if test "${with_gtk_exec_prefix+set}" = set; then
5935 withval="$with_gtk_exec_prefix"
5936 gtk_config_exec_prefix="$withval"
5937 else
5938 gtk_config_exec_prefix=""
5939 fi
5940
5941
5942 if test x$gtk_config_exec_prefix != x ; then
5943 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
5944 if test x${GTK_CONFIG+set} != xset ; then
5945 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
5946 fi
5947 fi
5948 if test x$gtk_config_prefix != x ; then
5949 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
5950 if test x${GTK_CONFIG+set} != xset ; then
5951 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
5952 fi
5953 fi
5954
5955 # Extract the first word of "gtk-config", so it can be a program name with args.
5956 set dummy gtk-config; ac_word=$2
5957 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5958 echo "configure:5959: checking for $ac_word" >&5
5959 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
5960 echo $ac_n "(cached) $ac_c" 1>&6
5961 else
5962 case "$GTK_CONFIG" in
5963 /*)
5964 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
5965 ;;
5966 *)
5967 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5968 for ac_dir in $PATH; do
5969 test -z "$ac_dir" && ac_dir=.
5970 if test -f $ac_dir/$ac_word; then
5971 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
5972 break
5973 fi
5974 done
5975 IFS="$ac_save_ifs"
5976 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
5977 ;;
5978 esac
5979 fi
5980 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
5981 if test -n "$GTK_CONFIG"; then
5982 echo "$ac_t""$GTK_CONFIG" 1>&6
5983 else
5984 echo "$ac_t""no" 1>&6
5985 fi
5986
5987 min_gtk_version=1.0.4
5988 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
5989 echo "configure:5990: checking for GTK - version >= $min_gtk_version" >&5
5990 no_gtk=""
5991 if test "$GTK_CONFIG" != "no" ; then
5992 GTK_CFLAGS=`$GTK_CONFIG --cflags`
5993 GTK_LIBS=`$GTK_CONFIG --libs`
5994 ac_save_CFLAGS="$CFLAGS"
5995 ac_save_LIBS="$LIBS"
5996 CFLAGS="$CFLAGS $GTK_CFLAGS"
5997 LIBS="$LIBS $GTK_LIBS"
5998 if test "$cross_compiling" = yes; then
5999 echo $ac_n "cross compiling; assumed OK... $ac_c"
6000 else
6001 cat > conftest.$ac_ext <<EOF
6002 #line 6003 "configure"
6003 #include "confdefs.h"
6004
6005 #include <gtk/gtk.h>
6006 #include <stdio.h>
6007
6008 int
6009 main ()
6010 {
6011 int major, minor, micro;
6012
6013 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
6014 printf("%s, bad version string\n", "$min_gtk_version");
6015 exit(1);
6016 }
6017
6018 return !((gtk_major_version > major) ||
6019 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6020 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
6021 }
6022
6023 EOF
6024 if { (eval echo configure:6025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6025 then
6026 :
6027 else
6028 echo "configure: failed program was:" >&5
6029 cat conftest.$ac_ext >&5
6030 rm -fr conftest*
6031 no_gtk=yes
6032 fi
6033 rm -fr conftest*
6034 fi
6035
6036 CFLAGS="$ac_save_CFLAGS"
6037 LIBS="$ac_save_LIBS"
6038 else
6039 no_gtk=yes
6040 fi
6041 if test "x$no_gtk" = x ; then
6042 echo "$ac_t""yes" 1>&6
6043
6044 GUI_TK_INCLUDE="$GTK_CFLAGS"
6045 GUI_TK_LIBRARY="$GTK_LIBS"
6046
6047 else
6048 echo "$ac_t""no" 1>&6
6049 GTK_CFLAGS=""
6050 GTK_LIBS=""
6051 { echo "configure: error: Is gtk-config in path and GTK+ is version 1.0.4?" 1>&2; exit 1; }
6052 fi
6053
6054
6055
6056 TOOLKIT=GTK
6057 TOOLKIT_DEF=__WXGTK__
6058 WX_LINK=-lwx_gtk
6059 MAKEINCLUDE=../gtk.inc
6060 fi
6061
6062 if test "$wxUSE_QT" = 1; then
6063 echo $ac_n "checking for Qt includes""... $ac_c" 1>&6
6064 echo "configure:6065: checking for Qt includes" >&5
6065
6066 ac_find_includes=
6067 for ac_dir in $SEARCH_INCLUDE;
6068 do
6069 if test -f "$ac_dir/qapp.h"; then
6070 ac_find_includes=$ac_dir
6071 break
6072 fi
6073 done
6074
6075 if test "$ac_find_includes" != "" ; then
6076 echo "$ac_t""found $ac_find_includes" 1>&6
6077 echo $ac_n "checking for Qt library""... $ac_c" 1>&6
6078 echo "configure:6079: checking for Qt library" >&5
6079
6080 ac_find_libraries=
6081 for ac_dir in $SEARCH_LIB;
6082 do
6083 for ac_extension in a so sl; do
6084 if test -f "$ac_dir/libqt.$ac_extension"; then
6085 ac_find_libraries=$ac_dir
6086 break 2
6087 fi
6088 done
6089 done
6090
6091 if test "$ac_find_libraries" != "" ; then
6092
6093 ac_path_to_include=$ac_find_includes
6094 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
6095 result=$?
6096 if test $result = 0; then
6097 ac_path_to_include=""
6098 else
6099 ac_path_to_include="-I$ac_find_includes"
6100 fi
6101
6102
6103 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev/null
6104 result=$?
6105 if test $result = 0; then
6106 ac_path_to_link=""
6107 else
6108 ac_path_to_link="-L$ac_find_libraries"
6109 fi
6110
6111 CHECK_LINK="$CHECK_INCLUDE $ac_path_to_link"
6112 CHECK_INCLUDE="$CHECK_INCLUDE $ac_path_to_include"
6113 echo "$ac_t""found Qt at $ac_find_libraries" 1>&6
6114 else
6115 { echo "configure: error: no" 1>&2; exit 1; }
6116 fi
6117 else
6118 { echo "configure: error: no" 1>&2; exit 1; }
6119 fi
6120 GUI_TK_LINK="-lX11 -lqt -lm"
6121 TOOLKIT=QT
6122 TOOLKIT_DEF=__WXQT__
6123 WX_LINK=-lwx_qt
6124 MAKEINCLUDE=../qt.inc
6125 fi
6126
6127 if test "$wxUSE_MOTIF" = 1; then
6128 echo $ac_n "checking for Motif/Lesstif includes""... $ac_c" 1>&6
6129 echo "configure:6130: checking for Motif/Lesstif includes" >&5
6130
6131 ac_find_includes=
6132 for ac_dir in $SEARCH_INCLUDE;
6133 do
6134 if test -f "$ac_dir/Xm.h"; then
6135 ac_find_includes=$ac_dir
6136 break
6137 fi
6138 done
6139
6140 if test "$ac_find_includes" != "" ; then
6141 echo "$ac_t""found $ac_find_includes" 1>&6
6142 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
6143 echo "configure:6144: checking for Motif/Lesstif library" >&5
6144
6145 ac_find_libraries=
6146 for ac_dir in $SEARCH_LIB;
6147 do
6148 for ac_extension in a so sl; do
6149 if test -f "$ac_dir/libXm.$ac_extension"; then
6150 ac_find_libraries=$ac_dir
6151 break 2
6152 fi
6153 done
6154 done
6155
6156 if test "$ac_find_libraries" != "" ; then
6157
6158 ac_path_to_include=$ac_find_includes
6159 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
6160 result=$?
6161 if test $result = 0; then
6162 ac_path_to_include=""
6163 else
6164 ac_path_to_include="-I$ac_find_includes"
6165 fi
6166
6167
6168 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev/null
6169 result=$?
6170 if test $result = 0; then
6171 ac_path_to_link=""
6172 else
6173 ac_path_to_link="-L$ac_find_libraries"
6174 fi
6175
6176 CHECK_LINK="$CHECK_LIB $ac_path_to_link"
6177 CHECK_INCLUDE="$CHECK_INCLUDE $ac_path_to_include"
6178 echo "$ac_t""found at $ac_find_libraries" 1>&6
6179 echo $ac_n "checking for Xt library""... $ac_c" 1>&6
6180 echo "configure:6181: checking for Xt library" >&5
6181
6182 ac_find_libraries=
6183 for ac_dir in $SEARCH_LIB;
6184 do
6185 for ac_extension in a so sl; do
6186 if test -f "$ac_dir/libXt.$ac_extension"; then
6187 ac_find_libraries=$ac_dir
6188 break 2
6189 fi
6190 done
6191 done
6192
6193 if test "$ac_find_libraries" != "" ; then
6194
6195 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev/null
6196 result=$?
6197 if test $result = 0; then
6198 ac_path_to_link=""
6199 else
6200 ac_path_to_link="-L$ac_find_libraries"
6201 fi
6202
6203 CHECK_LINK="$CHECK_LIB $ac_path_to_link"
6204 echo "$ac_t""found at $ac_find_libraries" 1>&6
6205 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
6206 echo "configure:6207: checking for Xpm library" >&5
6207
6208 ac_find_libraries=
6209 for ac_dir in $SEARCH_LIB;
6210 do
6211 for ac_extension in a so sl; do
6212 if test -f "$ac_dir/libXpm.$ac_extension"; then
6213 ac_find_libraries=$ac_dir
6214 break 2
6215 fi
6216 done
6217 done
6218
6219 if test "$ac_find_libraries" != "" ; then
6220
6221 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev/null
6222 result=$?
6223 if test $result = 0; then
6224 ac_path_to_link=""
6225 else
6226 ac_path_to_link="-L$ac_find_libraries"
6227 fi
6228
6229 CHECK_LINK="$CHECK_LIB $ac_path_to_link"
6230 echo "$ac_t""found at $ac_find_libraries" 1>&6
6231 else
6232 { echo "configure: error: no" 1>&2; exit 1; }
6233 fi
6234 else
6235 { echo "configure: error: no" 1>&2; exit 1; }
6236 fi
6237 else
6238 { echo "configure: error: no" 1>&2; exit 1; }
6239 fi
6240 else
6241 { echo "configure: error: no" 1>&2; exit 1; }
6242 fi
6243 GUI_TK_LINK="-lXt -lXmu -lXpm -lX11 -lXm -lm"
6244 GUI_TK_LINK="$CHECK_LINK $GUI_TK_LINK"
6245 TOOLKIT=MOTIF
6246 TOOLKIT_DEF=__WXMOTIF__
6247 WX_LINK=-lwx_motif
6248 MAKEINCLUDE=../motif.inc
6249 fi
6250
6251 if test "$TOOLKIT" = ""; then
6252 { echo "configure: error: You must specify a toolkit: --with-gtk --with-qt --with-motif" 1>&2; exit 1; }
6253 fi
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267 WXDEBUG=
6268 if test "$wxUSE_DEBUG_INFO" = 1 ; then
6269 WXDEBUG="-g -O0"
6270 fi
6271
6272
6273 if test "$wxUSE_DEBUG_FLAG" = 1 ; then
6274 cat >> confdefs.h <<EOF
6275 #define WXDEBUG $wxUSE_DEBUG_FLAG
6276 EOF
6277
6278 WXDEBUG_DEFINE="-D__WXDEBUG__"
6279
6280 else
6281 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
6282
6283 fi
6284
6285 if test "$wxUSE_MEM_TRACING" = 1 ; then
6286 cat >> confdefs.h <<EOF
6287 #define wxUSE_MEMORY_TRACING $wxUSE_MEM_TRACING
6288 EOF
6289
6290 cat >> confdefs.h <<EOF
6291 #define wxUSE_GLOBAL_MEMORY_OPERATORS $wxUSE_MEM_TRACING
6292 EOF
6293
6294 fi
6295
6296 EXTRA_LINK=
6297 if test "$wxUSE_DMALLOC" = 1 ; then
6298 EXTRA_LINK="$EXTRA_LINK -ldmalloc"
6299 fi
6300
6301
6302 PROFILE=
6303 if test "$wxUSE_PROFILE" = 1 ; then
6304 PROFILE="-pg"
6305 fi
6306
6307
6308 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
6309 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
6310 if test "$wxUSE_OPTIMISE" = 0 ; then
6311 OPTIMISE=
6312 else
6313 if test "$GCC" = yes ; then
6314 OPTIMISE="-O2"
6315 case "${canonical}" in
6316 i586-*-*|i686-*-* )
6317 OPTIMISE="${OPTIMISE} "
6318 ;;
6319 esac
6320 else
6321 OPTIMISE="-O"
6322 fi
6323 fi
6324
6325
6326 APPLE_IEEE=NONE
6327 if test "$wxUSE_APPLE_IEEE" = 1 ; then
6328 APPLE_IEEE="APPLE_IEEE"
6329 cat >> confdefs.h <<EOF
6330 #define wxUSE_APPLE_IEEE $wxUSE_APPLE_IEEE
6331 EOF
6332
6333 fi
6334
6335 wxUSE_IOSTREAMH=$DEFAULT_wxUSE_IOSTREAMH
6336 cat >> confdefs.h <<EOF
6337 #define wxUSE_IOSTREAMH $wxUSE_IOSTREAMH
6338 EOF
6339
6340
6341
6342 if test "$wxUSE_ZLIB" = 1 ; then
6343 cat >> confdefs.h <<EOF
6344 #define wxUSE_ZLIB $wxUSE_ZLIB
6345 EOF
6346
6347 fi
6348
6349 if test "$wxUSE_LIBPNG" = 1 ; then
6350 cat >> confdefs.h <<EOF
6351 #define wxUSE_LIBPNG $wxUSE_LIBPNG
6352 EOF
6353
6354 fi
6355
6356 IODBC_C_SRC=""
6357 if test "$wxUSE_ODBC" = 1 ; then
6358 cat >> confdefs.h <<EOF
6359 #define wxUSE_ODBC $wxUSE_ODBC
6360 EOF
6361
6362 IODBC_C_SRC="\$(IODBC_C_SRC)"
6363 fi
6364
6365
6366
6367 if test "$wxUSE_GAUGE" = 1 ; then
6368 cat >> confdefs.h <<EOF
6369 #define wxUSE_GAUGE $wxUSE_GAUGE
6370 EOF
6371
6372 fi
6373
6374 if test "$wxUSE_COMBOBOX" = 1 ; then
6375 cat >> confdefs.h <<EOF
6376 #define wxUSE_COMBOBOX $wxUSE_COMBOBOX
6377 EOF
6378
6379 fi
6380
6381 if test "$wxUSE_SCROLLBAR" = 1 ; then
6382 cat >> confdefs.h <<EOF
6383 #define wxUSE_SCROLLBAR $wxUSE_SCROLLBAR
6384 EOF
6385
6386 fi
6387
6388 if test "$wxUSE_LISTCTRL" = 1 ; then
6389 cat >> confdefs.h <<EOF
6390 #define wxUSE_LISTCTRL $wxUSE_LISTCTRL
6391 EOF
6392
6393 fi
6394
6395 if test "$wxUSE_TREECTRL" = 1 ; then
6396 cat >> confdefs.h <<EOF
6397 #define wxUSE_TREECTRL $wxUSE_TREECTRL
6398 EOF
6399
6400 fi
6401
6402 if test "$wxUSE_GRID" = 1 ; then
6403 cat >> confdefs.h <<EOF
6404 #define wxUSE_GRID $wxUSE_GRID
6405 EOF
6406
6407 fi
6408
6409 if test "$wxUSE_TAB_DIALOG" = 1 ; then
6410 cat >> confdefs.h <<EOF
6411 #define wxUSE_TAB_DIALOG $wxUSE_TAB_DIALOG
6412 EOF
6413
6414 fi
6415
6416 if test "$wxUSE_NOTEBOOK" = 1 ; then
6417 cat >> confdefs.h <<EOF
6418 #define wxUSE_NOTEBOOK $wxUSE_NOTEBOOK
6419 EOF
6420
6421 fi
6422
6423
6424 if test "$wxUSE_CONFIG" = 1 ; then
6425 cat >> confdefs.h <<EOF
6426 #define wxUSE_CONFIG $wxUSE_CONFIG
6427 EOF
6428
6429 fi
6430
6431 if test "$wxUSE_TIMEDATE" = 1 ; then
6432 cat >> confdefs.h <<EOF
6433 #define wxUSE_TIMEDATE $wxUSE_TIMEDATE
6434 EOF
6435
6436 fi
6437
6438 if test "$wxUSE_FRACTION" = 1 ; then
6439 cat >> confdefs.h <<EOF
6440 #define wxUSE_FRACTION $wxUSE_FRACTION
6441 EOF
6442
6443 fi
6444
6445 if test "$wxUSE_LOG" = 1 ; then
6446 cat >> confdefs.h <<EOF
6447 #define wxUSE_LOG $wxUSE_LOG
6448 EOF
6449
6450 fi
6451
6452 if test "$wxUSE_INTL" = 1 ; then
6453 cat >> confdefs.h <<EOF
6454 #define wxUSE_INTL $wxUSE_INTL
6455 EOF
6456
6457 fi
6458
6459 if test "$wxUSE_STREAMS" = 1 ; then
6460 cat >> confdefs.h <<EOF
6461 #define wxUSE_STREAMS $wxUSE_STREAMS
6462 EOF
6463
6464 fi
6465
6466 if test "$wxUSE_SERIAL" = 1 ; then
6467 cat >> confdefs.h <<EOF
6468 #define wxUSE_SERIAL $wxUSE_SERIAL
6469 EOF
6470
6471 fi
6472
6473 if test "$wxUSE_FILE" = 1 ; then
6474 cat >> confdefs.h <<EOF
6475 #define wxUSE_FILE $wxUSE_FILE
6476 EOF
6477
6478 fi
6479
6480 if test "$wxUSE_TEXTFILE" = 1 ; then
6481 cat >> confdefs.h <<EOF
6482 #define wxUSE_TEXTFILE $wxUSE_TEXTFILE
6483 EOF
6484
6485 fi
6486
6487
6488 if test "$wxUSE_RPC" = 1 ; then
6489 cat >> confdefs.h <<EOF
6490 #define wxUSE_RPC $wxUSE_RPC
6491 EOF
6492
6493 fi
6494
6495 if test "$wxUSE_WX_RESOURCES" = 1 ; then
6496 cat >> confdefs.h <<EOF
6497 #define wxUSE_WX_RESOURCES $wxUSE_WX_RESOURCES
6498 EOF
6499
6500 fi
6501
6502 if test "$wxUSE_PROLOGIO" = 1 ; then
6503 cat >> confdefs.h <<EOF
6504 #define wxUSE_PROLOGIO 1
6505 EOF
6506
6507 fi
6508
6509
6510 if test "$wxUSE_POSTSCRIPT" = 1 ; then
6511 cat >> confdefs.h <<EOF
6512 #define wxUSE_POSTSCRIPT 1
6513 EOF
6514
6515 fi
6516
6517 cat >> confdefs.h <<EOF
6518 #define wxUSE_AFM_FOR_POSTSCRIPT $wxUSE_AFM_FOR_POSTSCRIPT
6519 EOF
6520
6521
6522 cat >> confdefs.h <<EOF
6523 #define WX_NORMALIZED_PS_FONTS $WX_NORMALIZED_PS_FONTS
6524 EOF
6525
6526
6527
6528 if test "$wxUSE_MDI_ARCHITECTURE" = 1 ; then
6529 cat >> confdefs.h <<EOF
6530 #define wxUSE_MDI_ARCHITECTURE $wxUSE_MDI_ARCHITECTURE
6531 EOF
6532
6533 fi
6534
6535 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = 1 ; then
6536 cat >> confdefs.h <<EOF
6537 #define wxUSE_DOC_VIEW_ARCHITECTURE $wxUSE_DOC_VIEW_ARCHITECTURE
6538 EOF
6539
6540 fi
6541
6542 if test "$wxUSE_PRINTING_ARCHITECTURE" = 1 ; then
6543 cat >> confdefs.h <<EOF
6544 #define wxUSE_PRINTING_ARCHITECTURE $wxUSE_PRINTING_ARCHITECTURE
6545 EOF
6546
6547 fi
6548
6549
6550 if test "$wxUSE_UNICODE" = 1 ; then
6551 cat >> confdefs.h <<EOF
6552 #define wxUSE_UNICODE 1
6553 EOF
6554
6555 fi
6556
6557 if test "$wxUSE_WCSRTOMBS" = 1 ; then
6558 cat >> confdefs.h <<EOF
6559 #define wxUSE_WCSRTOMBS 1
6560 EOF
6561
6562 fi
6563
6564
6565 if test "$wxUSE_IPC" = 1 ; then
6566 cat >> confdefs.h <<EOF
6567 #define wxUSE_IPC 1
6568 EOF
6569
6570 fi
6571
6572 if test "$wxUSE_RESOURCES" = 1 ; then
6573 cat >> confdefs.h <<EOF
6574 #define wxUSE_RESOURCES $wxUSE_RESOURCES
6575 EOF
6576
6577 fi
6578
6579 if test "$wxUSE_CLIPBOARD" = 1 ; then
6580 cat >> confdefs.h <<EOF
6581 #define wxUSE_CLIPBOARD $wxUSE_CLIPBOARD
6582 EOF
6583
6584 fi
6585
6586 if test "$wxUSE_DND" = 1 ; then
6587 cat >> confdefs.h <<EOF
6588 #define wxUSE_DND $wxUSE_DND
6589 EOF
6590
6591 fi
6592
6593 if test "$wxUSE_CONSTRAINTS" = 1 ; then
6594 cat >> confdefs.h <<EOF
6595 #define wxUSE_CONSTRAINTS $wxUSE_CONSTRAINTS
6596 EOF
6597
6598 fi
6599
6600
6601 METAFILE=NONE
6602 if test "$wxUSE_METAFILE" = 1 ; then
6603 METAFILE="METAFILE"
6604 cat >> confdefs.h <<EOF
6605 #define wxUSE_METAFILE $wxUSE_METAFILE
6606 EOF
6607
6608 fi
6609
6610
6611 HELP=NONE
6612 if test "$wxUSE_HELP" = 1 ; then
6613 HELP="HELP"
6614 cat >> confdefs.h <<EOF
6615 #define wxUSE_HELP $wxUSE_HELP
6616 EOF
6617
6618 fi
6619
6620
6621 WXGRAPH=NONE
6622 if test "$wxUSE_WXGRAPH" = 1 ; then
6623 WXGRAPH="WXGRAPH"
6624 cat >> confdefs.h <<EOF
6625 #define wxUSE_WXGRAPH $wxUSE_WXGRAPH
6626 EOF
6627
6628 fi
6629
6630
6631 WXTREE=NONE
6632 if test "$wxUSE_WXTREE" = 1 ; then
6633 WXTREE="WXTREE"
6634 cat >> confdefs.h <<EOF
6635 #define wxUSE_WXTREE $wxUSE_WXTREE
6636 EOF
6637
6638 fi
6639
6640
6641 GLCANVAS=NONE
6642 if test "$wxUSE_OPENGL" = 1 ; then
6643 GLCANVAS="GLCANVAS"
6644 fi
6645
6646
6647 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
6648 echo "configure:6649: checking for main in -ldl" >&5
6649 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
6650 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6651 echo $ac_n "(cached) $ac_c" 1>&6
6652 else
6653 ac_save_LIBS="$LIBS"
6654 LIBS="-ldl $LIBS"
6655 cat > conftest.$ac_ext <<EOF
6656 #line 6657 "configure"
6657 #include "confdefs.h"
6658
6659 int main() {
6660 main()
6661 ; return 0; }
6662 EOF
6663 if { (eval echo configure:6664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6664 rm -rf conftest*
6665 eval "ac_cv_lib_$ac_lib_var=yes"
6666 else
6667 echo "configure: failed program was:" >&5
6668 cat conftest.$ac_ext >&5
6669 rm -rf conftest*
6670 eval "ac_cv_lib_$ac_lib_var=no"
6671 fi
6672 rm -f conftest*
6673 LIBS="$ac_save_LIBS"
6674
6675 fi
6676 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6677 echo "$ac_t""yes" 1>&6
6678 DL_LIBRARY=-ldl
6679 else
6680 echo "$ac_t""no" 1>&6
6681 DL_LIBRARY=
6682 fi
6683
6684
6685
6686
6687 wxUSE_THREADS=1
6688 THREADS_LINK=""
6689 UNIX_THREAD="gtk/threadno.cpp"
6690
6691
6692 echo $ac_n "checking "for threads"""... $ac_c" 1>&6
6693 echo "configure:6694: checking "for threads"" >&5
6694 # Check whether --with-threads or --without-threads was given.
6695 if test "${with_threads+set}" = set; then
6696 withval="$with_threads"
6697 if test "x$with_threads" = xyes; then
6698 ac_cv_use_threads='wxUSE_THREADS="1"'
6699 else
6700 ac_cv_use_threads='wxUSE_THREADS="0"'
6701 fi
6702 else
6703
6704 LINE=`grep "wxUSE_THREADS" ${OSTYPE}.system.cache`
6705 if test "x$LINE" != x ; then
6706 eval "DEFAULT_$LINE"
6707 fi
6708 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6709
6710 fi
6711
6712 eval "$ac_cv_use_threads"
6713 echo $ac_cv_use_threads >> ${OSTYPE}.system.cache.tmp
6714 if test "$wxUSE_THREADS" = 1; then
6715 echo "$ac_t""yes" 1>&6
6716 else
6717 echo "$ac_t""no" 1>&6
6718 fi
6719
6720
6721
6722 if test "$wxUSE_THREADS" = "1"; then
6723 UNIX_THREAD="gtk/threadno.cpp"
6724
6725
6726 echo $ac_n "checking for pthread_create in -lpthread-0.7""... $ac_c" 1>&6
6727 echo "configure:6728: checking for pthread_create in -lpthread-0.7" >&5
6728 ac_lib_var=`echo pthread-0.7'_'pthread_create | sed 'y%./+-%__p_%'`
6729 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6730 echo $ac_n "(cached) $ac_c" 1>&6
6731 else
6732 ac_save_LIBS="$LIBS"
6733 LIBS="-lpthread-0.7 $LIBS"
6734 cat > conftest.$ac_ext <<EOF
6735 #line 6736 "configure"
6736 #include "confdefs.h"
6737 /* Override any gcc2 internal prototype to avoid an error. */
6738 /* We use char because int might match the return type of a gcc2
6739 builtin and then its argument prototype would still apply. */
6740 char pthread_create();
6741
6742 int main() {
6743 pthread_create()
6744 ; return 0; }
6745 EOF
6746 if { (eval echo configure:6747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6747 rm -rf conftest*
6748 eval "ac_cv_lib_$ac_lib_var=yes"
6749 else
6750 echo "configure: failed program was:" >&5
6751 cat conftest.$ac_ext >&5
6752 rm -rf conftest*
6753 eval "ac_cv_lib_$ac_lib_var=no"
6754 fi
6755 rm -f conftest*
6756 LIBS="$ac_save_LIBS"
6757
6758 fi
6759 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6760 echo "$ac_t""yes" 1>&6
6761
6762 UNIX_THREAD="gtk/threadpsx.cpp"
6763 THREADS_LINK="-lpthread-0.7"
6764
6765 else
6766 echo "$ac_t""no" 1>&6
6767
6768 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
6769 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
6770 echo "configure:6771: checking for sys/prctl.h" >&5
6771 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6772 echo $ac_n "(cached) $ac_c" 1>&6
6773 else
6774 cat > conftest.$ac_ext <<EOF
6775 #line 6776 "configure"
6776 #include "confdefs.h"
6777 #include <sys/prctl.h>
6778 EOF
6779 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6780 { (eval echo configure:6781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6781 ac_err=`grep -v '^ *+' conftest.out`
6782 if test -z "$ac_err"; then
6783 rm -rf conftest*
6784 eval "ac_cv_header_$ac_safe=yes"
6785 else
6786 echo "$ac_err" >&5
6787 echo "configure: failed program was:" >&5
6788 cat conftest.$ac_ext >&5
6789 rm -rf conftest*
6790 eval "ac_cv_header_$ac_safe=no"
6791 fi
6792 rm -f conftest*
6793 fi
6794 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6795 echo "$ac_t""yes" 1>&6
6796
6797 UNIX_THREAD="gtk/threadsgi.cpp"
6798
6799 else
6800 echo "$ac_t""no" 1>&6
6801 fi
6802
6803
6804
6805 echo $ac_n "checking for pthread_setcanceltype in -lpthread""... $ac_c" 1>&6
6806 echo "configure:6807: checking for pthread_setcanceltype in -lpthread" >&5
6807 ac_lib_var=`echo pthread'_'pthread_setcanceltype | sed 'y%./+-%__p_%'`
6808 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6809 echo $ac_n "(cached) $ac_c" 1>&6
6810 else
6811 ac_save_LIBS="$LIBS"
6812 LIBS="-lpthread $LIBS"
6813 cat > conftest.$ac_ext <<EOF
6814 #line 6815 "configure"
6815 #include "confdefs.h"
6816 /* Override any gcc2 internal prototype to avoid an error. */
6817 /* We use char because int might match the return type of a gcc2
6818 builtin and then its argument prototype would still apply. */
6819 char pthread_setcanceltype();
6820
6821 int main() {
6822 pthread_setcanceltype()
6823 ; return 0; }
6824 EOF
6825 if { (eval echo configure:6826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6826 rm -rf conftest*
6827 eval "ac_cv_lib_$ac_lib_var=yes"
6828 else
6829 echo "configure: failed program was:" >&5
6830 cat conftest.$ac_ext >&5
6831 rm -rf conftest*
6832 eval "ac_cv_lib_$ac_lib_var=no"
6833 fi
6834 rm -f conftest*
6835 LIBS="$ac_save_LIBS"
6836
6837 fi
6838 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6839 echo "$ac_t""yes" 1>&6
6840
6841 UNIX_THREAD="gtk/threadpsx.cpp"
6842 THREADS_LINK="-lpthread"
6843
6844 else
6845 echo "$ac_t""no" 1>&6
6846 fi
6847
6848
6849 fi
6850
6851 echo $ac_n "checking for pthread_setcanceltype in -lpthreads""... $ac_c" 1>&6
6852 echo "configure:6853: checking for pthread_setcanceltype in -lpthreads" >&5
6853 ac_lib_var=`echo pthreads'_'pthread_setcanceltype | sed 'y%./+-%__p_%'`
6854 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6855 echo $ac_n "(cached) $ac_c" 1>&6
6856 else
6857 ac_save_LIBS="$LIBS"
6858 LIBS="-lpthreads $LIBS"
6859 cat > conftest.$ac_ext <<EOF
6860 #line 6861 "configure"
6861 #include "confdefs.h"
6862 /* Override any gcc2 internal prototype to avoid an error. */
6863 /* We use char because int might match the return type of a gcc2
6864 builtin and then its argument prototype would still apply. */
6865 char pthread_setcanceltype();
6866
6867 int main() {
6868 pthread_setcanceltype()
6869 ; return 0; }
6870 EOF
6871 if { (eval echo configure:6872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6872 rm -rf conftest*
6873 eval "ac_cv_lib_$ac_lib_var=yes"
6874 else
6875 echo "configure: failed program was:" >&5
6876 cat conftest.$ac_ext >&5
6877 rm -rf conftest*
6878 eval "ac_cv_lib_$ac_lib_var=no"
6879 fi
6880 rm -f conftest*
6881 LIBS="$ac_save_LIBS"
6882
6883 fi
6884 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6885 echo "$ac_t""yes" 1>&6
6886
6887 UNIX_THREAD="gtk/threadpsx.cpp"
6888 THREADS_LINK="-lpthreads"
6889
6890 else
6891 echo "$ac_t""no" 1>&6
6892 fi
6893
6894 fi
6895
6896 if test "$wxUSE_MOTIF" = "1"; then
6897 UNIX_THREAD="motif/thread.cpp"
6898 fi
6899
6900 if test -z "$UNIX_THREAD"; then
6901 wxUSE_THREADS=0
6902 fi
6903
6904
6905
6906 cat >> confdefs.h <<\EOF
6907 #define wxUSE_THREADS 1
6908 EOF
6909
6910
6911
6912
6913 OPENGL_INCLUDE=
6914 OPENGL_LIBRARY=
6915 OPENGL_LINK=
6916
6917 if test "$wxUSE_OPENGL" = 1; then
6918 echo $ac_n "checking for OpenGL includes""... $ac_c" 1>&6
6919 echo "configure:6920: checking for OpenGL includes" >&5
6920
6921 ac_find_includes=
6922 for ac_dir in $SEARCH_INCLUDE;
6923 do
6924 if test -f "$ac_dir/GL/gl.h"; then
6925 ac_find_includes=$ac_dir
6926 break
6927 fi
6928 done
6929
6930 if test "$ac_find_includes" != "" ; then
6931 OPENGL_INCLUDE="-I$ac_find_includes"
6932 echo "$ac_t""found $ac_find_includes" 1>&6
6933 echo $ac_n "checking for OpenGL library""... $ac_c" 1>&6
6934 echo "configure:6935: checking for OpenGL library" >&5
6935
6936 ac_find_libraries=
6937 for ac_dir in $SEARCH_LIB;
6938 do
6939 for ac_extension in a so sl; do
6940 if test -f "$ac_dir/libGL.$ac_extension"; then
6941 ac_find_libraries=$ac_dir
6942 break 2
6943 fi
6944 done
6945 done
6946
6947 if test "$ac_find_libraries" != "" ; then
6948
6949 ac_path_to_include=$ac_find_includes
6950 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
6951 result=$?
6952 if test $result = 0; then
6953 ac_path_to_include=""
6954 else
6955 ac_path_to_include="-I$ac_find_includes"
6956 fi
6957
6958
6959 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev/null
6960 result=$?
6961 if test $result = 0; then
6962 ac_path_to_link=""
6963 else
6964 ac_path_to_link="-L$ac_find_libraries"
6965 fi
6966
6967 CHECK_LINK="$CHECK_INCLUDE $ac_path_to_link"
6968 CHECK_INCLUDE="$CHECK_INCLUDE $ac_path_to_include"
6969 OPENGL_LIBRARY="$ac_path_to_link"
6970 OPENGL_INCLUDE="$ac_path_to_include"
6971 OPENGL_LINK="-lGL"
6972 echo "$ac_t""found OpenGL at $ac_find_libraries" 1>&6
6973 else
6974
6975 ac_find_libraries=
6976 for ac_dir in $SEARCH_LIB;
6977 do
6978 for ac_extension in a so sl; do
6979 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
6980 ac_find_libraries=$ac_dir
6981 break 2
6982 fi
6983 done
6984 done
6985
6986 if test "$ac_find_libraries" != "" ; then
6987
6988 ac_path_to_include=$ac_find_includes
6989 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
6990 result=$?
6991 if test $result = 0; then
6992 ac_path_to_include=""
6993 else
6994 ac_path_to_include="-I$ac_find_includes"
6995 fi
6996
6997
6998 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev/null
6999 result=$?
7000 if test $result = 0; then
7001 ac_path_to_link=""
7002 else
7003 ac_path_to_link="-L$ac_find_libraries"
7004 fi
7005
7006 CHECK_LINK="$CHECK_INCLUDE $ac_path_to_link"
7007 CHECK_INCLUDE="$CHECK_INCLUDE $ac_path_to_include"
7008 OPENGL_LIBRARY="$ac_path_to_link"
7009 OPENGL_INCLUDE="$ac_path_to_include"
7010 OPENGL_LINK="-lMesaGL"
7011 echo "$ac_t""found MESA at $ac_find_libraries" 1>&6
7012 else
7013 { echo "configure: error: no" 1>&2; exit 1; }
7014 fi
7015 fi
7016 else
7017 { echo "configure: error: no" 1>&2; exit 1; }
7018 fi
7019 fi
7020
7021
7022 wxUSE_GLX=$wxUSE_OPENGL
7023 if test "$wxUSE_OPENGL" != 1; then
7024 OPENGL_LIBRARIES=
7025 OPENGL_INCLUDE=
7026 OPENGL_LINK=
7027 GLCANVAS=NONE
7028 fi
7029
7030 cat >> confdefs.h <<EOF
7031 #define wxUSE_GLX $wxUSE_GLX
7032 EOF
7033
7034
7035
7036
7037
7038
7039
7040 PICFLAGS=
7041 CREATE_SHARED=
7042 case "${canonical}" in
7043
7044 *-hp-hpux* )
7045 if test "$GCC" != "yes" ; then
7046 CXXFLAGS="${CXXFLAGS} +a1 -z -Aa -D_HPUX_SOURCE"
7047 CFLAGS="${CFLAGS} -z -D_HPUX_SOURCE"
7048 PICFLAGS="+z"
7049 else
7050 PICFLAGS="-fPIC"
7051 fi
7052 LDFLAGS="-Wl,+s"
7053 CREATE_SHARED=sharedHpux
7054 ;;
7055
7056 *-*-linux* )
7057 PICFLAGS=-fPIC
7058 CREATE_SHARED=sharedLinux
7059 ;;
7060
7061 *-*-irix5* | *-*-irix6* )
7062 # PICFLAGS can remain empty, as pic is the default
7063 LDFLAGS="-Wl,+s"
7064 CREATE_SHARED=sharedIrix
7065 cat >> confdefs.h <<\EOF
7066 #define SVR4 1
7067 EOF
7068
7069 ;;
7070
7071 *-*-solaris2* )
7072 if test "$GCC" != "yes" ; then
7073 PICFLAGS="-KPIC"
7074 else
7075 PICFLAGS="-fPIC"
7076 fi
7077 CREATE_SHARED=sharedSolaris2
7078 cat >> confdefs.h <<\EOF
7079 #define SVR4 1
7080 EOF
7081
7082 ;;
7083
7084 *-*-sunos4* )
7085 if test "$GCC" != "yes" ; then
7086 PICFLAGS="-PIC"
7087 else
7088 PICFLAGS="-fPIC"
7089 fi
7090 LDFLAGS="-Wl,+s"
7091 CREATE_SHARED=sharedSunos4
7092 cat >> confdefs.h <<\EOF
7093 #define BSD 1
7094 EOF
7095
7096 ;;
7097
7098 *-*-freebsd* | *-*-netbsd*)
7099 PICFLAGS=-fPIC
7100 CREATE_SHARED=sharedBsd
7101 cat >> confdefs.h <<\EOF
7102 #define BSD 1
7103 EOF
7104
7105 ;;
7106
7107 *-*-osf* )
7108 PICFLAGS="-fPIC"
7109 CREATE_SHARED=sharedOSF
7110 ;;
7111
7112 *-*-dgux5* )
7113 if test "$GCC" != "yes" ; then
7114 PICFLAGS="-K PIC"
7115 else
7116 PICFLAGS="-fPIC"
7117 fi
7118 CREATE_SHARED=sharedDgux
7119 cat >> confdefs.h <<\EOF
7120 #define SVR4 1
7121 EOF
7122
7123 ;;
7124
7125 *-*-sysv5* )
7126 if test "$GCC" != "yes" ; then
7127 PICFLAGS="-K PIC"
7128 else
7129 PICFLAGS="-fPIC"
7130 fi
7131 CREATE_SHARED=sharedSysV
7132 cat >> confdefs.h <<\EOF
7133 #define SVR4 1
7134 EOF
7135
7136 ;;
7137
7138 *-*-aix* )
7139 if test "$GCC" != "yes" ; then
7140 PICFLAGS="-bM\:SRE"
7141 else
7142 PICFLAGS="-fPIC"
7143 fi
7144 CREATE_SHARED=sharedAIX
7145 cat >> confdefs.h <<\EOF
7146 #define SYSV 1
7147 EOF
7148
7149 ;;
7150
7151 *)
7152 CREATE_SHARED=
7153 PICFLAGS=
7154 esac
7155
7156 if test "x$GCC" = xyes; then
7157 CFLAGS="${CFLAGS} -Wall"
7158 fi
7159
7160 if test "x$GXX" = xyes; then
7161 CXXFLAGS="${CXXFLAGS} -Wall"
7162 fi
7163
7164 if test "$wxUSE_SHARED" != 1; then
7165 CREATE_SHARED=
7166 PICFLAGS=
7167 fi
7168
7169
7170
7171
7172
7173
7174 echo $OS >> system.list
7175
7176
7177 trap '' 1 2 15
7178 cat > confcache <<\EOF
7179 # This file is a shell script that caches the results of configure
7180 # tests run on this system so they can be shared between configure
7181 # scripts and configure runs. It is not useful on other systems.
7182 # If it contains results you don't want to keep, you may remove or edit it.
7183 #
7184 # By default, configure uses ./config.cache as the cache file,
7185 # creating it if it does not exist already. You can give configure
7186 # the --cache-file=FILE option to use a different cache file; that is
7187 # what configure does when it calls configure scripts in
7188 # subdirectories, so they share the cache.
7189 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7190 # config.status only pays attention to the cache file if you give it the
7191 # --recheck option to rerun configure.
7192 #
7193 EOF
7194 # The following way of writing the cache mishandles newlines in values,
7195 # but we know of no workaround that is simple, portable, and efficient.
7196 # So, don't put newlines in cache variables' values.
7197 # Ultrix sh set writes to stderr and can't be redirected directly,
7198 # and sets the high bit in the cache file unless we assign to the vars.
7199 (set) 2>&1 |
7200 case `(ac_space=' '; set) 2>&1` in
7201 *ac_space=\ *)
7202 # `set' does not quote correctly, so add quotes (double-quote substitution
7203 # turns \\\\ into \\, and sed turns \\ into \).
7204 sed -n \
7205 -e "s/'/'\\\\''/g" \
7206 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7207 ;;
7208 *)
7209 # `set' quotes correctly as required by POSIX, so do not add quotes.
7210 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7211 ;;
7212 esac >> confcache
7213 if cmp -s $cache_file confcache; then
7214 :
7215 else
7216 if test -w $cache_file; then
7217 echo "updating cache $cache_file"
7218 cat confcache > $cache_file
7219 else
7220 echo "not updating unwritable cache $cache_file"
7221 fi
7222 fi
7223 rm -f confcache
7224
7225 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7226
7227 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7228 # Let make expand exec_prefix.
7229 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7230
7231 # Any assignment to VPATH causes Sun make to only execute
7232 # the first set of double-colon rules, so remove it if not needed.
7233 # If there is a colon in the path, we need to keep it.
7234 if test "x$srcdir" = x.; then
7235 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7236 fi
7237
7238 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7239
7240 DEFS=-DHAVE_CONFIG_H
7241
7242 # Without the "./", some shells look in PATH for config.status.
7243 : ${CONFIG_STATUS=./config.status}
7244
7245 echo creating $CONFIG_STATUS
7246 rm -f $CONFIG_STATUS
7247 cat > $CONFIG_STATUS <<EOF
7248 #! /bin/sh
7249 # Generated automatically by configure.
7250 # Run this file to recreate the current configuration.
7251 # This directory was configured as follows,
7252 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7253 #
7254 # $0 $ac_configure_args
7255 #
7256 # Compiler output produced by configure, useful for debugging
7257 # configure, is in ./config.log if it exists.
7258
7259 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7260 for ac_option
7261 do
7262 case "\$ac_option" in
7263 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7264 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7265 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7266 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7267 echo "$CONFIG_STATUS generated by autoconf version 2.12"
7268 exit 0 ;;
7269 -help | --help | --hel | --he | --h)
7270 echo "\$ac_cs_usage"; exit 0 ;;
7271 *) echo "\$ac_cs_usage"; exit 1 ;;
7272 esac
7273 done
7274
7275 ac_given_srcdir=$srcdir
7276 ac_given_INSTALL="$INSTALL"
7277
7278 trap 'rm -fr `echo "./setup/substit ./wx-config:./wx-config.in ./include/wx/gtk/setup.h:./setup/setup.hin" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7279 EOF
7280 cat >> $CONFIG_STATUS <<EOF
7281
7282 # Protect against being on the right side of a sed subst in config.status.
7283 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7284 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7285 $ac_vpsub
7286 $extrasub
7287 s%@CFLAGS@%$CFLAGS%g
7288 s%@CPPFLAGS@%$CPPFLAGS%g
7289 s%@CXXFLAGS@%$CXXFLAGS%g
7290 s%@DEFS@%$DEFS%g
7291 s%@LDFLAGS@%$LDFLAGS%g
7292 s%@LIBS@%$LIBS%g
7293 s%@exec_prefix@%$exec_prefix%g
7294 s%@prefix@%$prefix%g
7295 s%@program_transform_name@%$program_transform_name%g
7296 s%@bindir@%$bindir%g
7297 s%@sbindir@%$sbindir%g
7298 s%@libexecdir@%$libexecdir%g
7299 s%@datadir@%$datadir%g
7300 s%@sysconfdir@%$sysconfdir%g
7301 s%@sharedstatedir@%$sharedstatedir%g
7302 s%@localstatedir@%$localstatedir%g
7303 s%@libdir@%$libdir%g
7304 s%@includedir@%$includedir%g
7305 s%@oldincludedir@%$oldincludedir%g
7306 s%@infodir@%$infodir%g
7307 s%@mandir@%$mandir%g
7308 s%@WXBASEDIR@%$WXBASEDIR%g
7309 s%@CC@%$CC%g
7310 s%@CPP@%$CPP%g
7311 s%@CXX@%$CXX%g
7312 s%@CXXCPP@%$CXXCPP%g
7313 s%@RANLIB@%$RANLIB%g
7314 s%@AR@%$AR%g
7315 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7316 s%@INSTALL_DATA@%$INSTALL_DATA%g
7317 s%@LN_S@%$LN_S%g
7318 s%@AWK@%$AWK%g
7319 s%@X_CFLAGS@%$X_CFLAGS%g
7320 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7321 s%@X_LIBS@%$X_LIBS%g
7322 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7323 s%@GTK_JOYSTICK@%$GTK_JOYSTICK%g
7324 s%@LIBOBJS@%$LIBOBJS%g
7325 s%@YACC@%$YACC%g
7326 s%@LEX@%$LEX%g
7327 s%@LEXLIB@%$LEXLIB%g
7328 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
7329 s%@host@%$host%g
7330 s%@host_alias@%$host_alias%g
7331 s%@host_cpu@%$host_cpu%g
7332 s%@host_vendor@%$host_vendor%g
7333 s%@host_os@%$host_os%g
7334 s%@GTK_CONFIG@%$GTK_CONFIG%g
7335 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
7336 s%@GTK_LIBS@%$GTK_LIBS%g
7337 s%@GUI_TK_INCLUDE@%$GUI_TK_INCLUDE%g
7338 s%@GUI_TK_LIBRARY@%$GUI_TK_LIBRARY%g
7339 s%@GUI_TK_LINK@%$GUI_TK_LINK%g
7340 s%@WX_LINK@%$WX_LINK%g
7341 s%@TOOLKIT@%$TOOLKIT%g
7342 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
7343 s%@MAKEINCLUDE@%$MAKEINCLUDE%g
7344 s%@WXDEBUG@%$WXDEBUG%g
7345 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
7346 s%@EXTRA_LINK@%$EXTRA_LINK%g
7347 s%@PROFILE@%$PROFILE%g
7348 s%@OPTIMISE@%$OPTIMISE%g
7349 s%@IODBC_C_SRC@%$IODBC_C_SRC%g
7350 s%@METAFILE@%$METAFILE%g
7351 s%@HELP@%$HELP%g
7352 s%@WXGRAPH@%$WXGRAPH%g
7353 s%@WXTREE@%$WXTREE%g
7354 s%@DL_LIBRARY@%$DL_LIBRARY%g
7355 s%@UNIX_THREAD@%$UNIX_THREAD%g
7356 s%@THREADS_LINK@%$THREADS_LINK%g
7357 s%@OPENGL_INCLUDE@%$OPENGL_INCLUDE%g
7358 s%@OPENGL_LIBRARY@%$OPENGL_LIBRARY%g
7359 s%@OPENGL_LINK@%$OPENGL_LINK%g
7360 s%@GLCANVAS@%$GLCANVAS%g
7361 s%@OS@%$OS%g
7362 s%@PICFLAGS@%$PICFLAGS%g
7363 s%@CREATE_SHARED@%$CREATE_SHARED%g
7364
7365 CEOF
7366 EOF
7367
7368 cat >> $CONFIG_STATUS <<\EOF
7369
7370 # Split the substitutions into bite-sized pieces for seds with
7371 # small command number limits, like on Digital OSF/1 and HP-UX.
7372 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7373 ac_file=1 # Number of current file.
7374 ac_beg=1 # First line for current file.
7375 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7376 ac_more_lines=:
7377 ac_sed_cmds=""
7378 while $ac_more_lines; do
7379 if test $ac_beg -gt 1; then
7380 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7381 else
7382 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7383 fi
7384 if test ! -s conftest.s$ac_file; then
7385 ac_more_lines=false
7386 rm -f conftest.s$ac_file
7387 else
7388 if test -z "$ac_sed_cmds"; then
7389 ac_sed_cmds="sed -f conftest.s$ac_file"
7390 else
7391 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7392 fi
7393 ac_file=`expr $ac_file + 1`
7394 ac_beg=$ac_end
7395 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7396 fi
7397 done
7398 if test -z "$ac_sed_cmds"; then
7399 ac_sed_cmds=cat
7400 fi
7401 EOF
7402
7403 cat >> $CONFIG_STATUS <<EOF
7404
7405 CONFIG_FILES=\${CONFIG_FILES-"./setup/substit ./wx-config:./wx-config.in"}
7406 EOF
7407 cat >> $CONFIG_STATUS <<\EOF
7408 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7409 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7410 case "$ac_file" in
7411 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7412 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7413 *) ac_file_in="${ac_file}.in" ;;
7414 esac
7415
7416 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7417
7418 # Remove last slash and all that follows it. Not all systems have dirname.
7419 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7420 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7421 # The file is in a subdirectory.
7422 test ! -d "$ac_dir" && mkdir "$ac_dir"
7423 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7424 # A "../" for each directory in $ac_dir_suffix.
7425 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7426 else
7427 ac_dir_suffix= ac_dots=
7428 fi
7429
7430 case "$ac_given_srcdir" in
7431 .) srcdir=.
7432 if test -z "$ac_dots"; then top_srcdir=.
7433 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7434 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7435 *) # Relative path.
7436 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7437 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7438 esac
7439
7440 case "$ac_given_INSTALL" in
7441 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7442 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7443 esac
7444
7445 echo creating "$ac_file"
7446 rm -f "$ac_file"
7447 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7448 case "$ac_file" in
7449 *Makefile*) ac_comsub="1i\\
7450 # $configure_input" ;;
7451 *) ac_comsub= ;;
7452 esac
7453
7454 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7455 sed -e "$ac_comsub
7456 s%@configure_input@%$configure_input%g
7457 s%@srcdir@%$srcdir%g
7458 s%@top_srcdir@%$top_srcdir%g
7459 s%@INSTALL@%$INSTALL%g
7460 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7461 fi; done
7462 rm -f conftest.s*
7463
7464 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7465 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7466 #
7467 # ac_d sets the value in "#define NAME VALUE" lines.
7468 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7469 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7470 ac_dC='\3'
7471 ac_dD='%g'
7472 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7473 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7474 ac_uB='\([ ]\)%\1#\2define\3'
7475 ac_uC=' '
7476 ac_uD='\4%g'
7477 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7478 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7479 ac_eB='$%\1#\2define\3'
7480 ac_eC=' '
7481 ac_eD='%g'
7482
7483 if test "${CONFIG_HEADERS+set}" != set; then
7484 EOF
7485 cat >> $CONFIG_STATUS <<EOF
7486 CONFIG_HEADERS="./include/wx/gtk/setup.h:./setup/setup.hin"
7487 EOF
7488 cat >> $CONFIG_STATUS <<\EOF
7489 fi
7490 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7491 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7492 case "$ac_file" in
7493 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7494 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7495 *) ac_file_in="${ac_file}.in" ;;
7496 esac
7497
7498 echo creating $ac_file
7499
7500 rm -f conftest.frag conftest.in conftest.out
7501 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7502 cat $ac_file_inputs > conftest.in
7503
7504 EOF
7505
7506 # Transform confdefs.h into a sed script conftest.vals that substitutes
7507 # the proper values into config.h.in to produce config.h. And first:
7508 # Protect against being on the right side of a sed subst in config.status.
7509 # Protect against being in an unquoted here document in config.status.
7510 rm -f conftest.vals
7511 cat > conftest.hdr <<\EOF
7512 s/[\\&%]/\\&/g
7513 s%[\\$`]%\\&%g
7514 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7515 s%ac_d%ac_u%gp
7516 s%ac_u%ac_e%gp
7517 EOF
7518 sed -n -f conftest.hdr confdefs.h > conftest.vals
7519 rm -f conftest.hdr
7520
7521 # This sed command replaces #undef with comments. This is necessary, for
7522 # example, in the case of _POSIX_SOURCE, which is predefined and required
7523 # on some systems where configure will not decide to define it.
7524 cat >> conftest.vals <<\EOF
7525 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7526 EOF
7527
7528 # Break up conftest.vals because some shells have a limit on
7529 # the size of here documents, and old seds have small limits too.
7530
7531 rm -f conftest.tail
7532 while :
7533 do
7534 ac_lines=`grep -c . conftest.vals`
7535 # grep -c gives empty output for an empty file on some AIX systems.
7536 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7537 # Write a limited-size here document to conftest.frag.
7538 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7539 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7540 echo 'CEOF
7541 sed -f conftest.frag conftest.in > conftest.out
7542 rm -f conftest.in
7543 mv conftest.out conftest.in
7544 ' >> $CONFIG_STATUS
7545 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7546 rm -f conftest.vals
7547 mv conftest.tail conftest.vals
7548 done
7549 rm -f conftest.vals
7550
7551 cat >> $CONFIG_STATUS <<\EOF
7552 rm -f conftest.frag conftest.h
7553 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7554 cat conftest.in >> conftest.h
7555 rm -f conftest.in
7556 if cmp -s $ac_file conftest.h 2>/dev/null; then
7557 echo "$ac_file is unchanged"
7558 rm -f conftest.h
7559 else
7560 # Remove last slash and all that follows it. Not all systems have dirname.
7561 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7562 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7563 # The file is in a subdirectory.
7564 test ! -d "$ac_dir" && mkdir "$ac_dir"
7565 fi
7566 rm -f $ac_file
7567 mv conftest.h $ac_file
7568 fi
7569 fi; done
7570
7571 EOF
7572 cat >> $CONFIG_STATUS <<EOF
7573
7574 EOF
7575 cat >> $CONFIG_STATUS <<\EOF
7576 ./setup/general/createall
7577 exit 0
7578 EOF
7579 chmod +x $CONFIG_STATUS
7580 rm -fr confdefs* $ac_clean_files
7581 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7582
7583
7584
7585 mv ${OSTYPE}.system.cache.tmp ${OSTYPE}.system.cache
7586