Added writing META_ESCAPE records.
[wine.git] / configure
blobd70360a6efc0a96c7139820a5357caf77b04d14c
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52 for Wine 20020310.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Avoid depending upon Character Ranges.
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits='0123456789'
15 as_cr_alnum=$as_cr_Letters$as_cr_digits
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 emulate sh
26 NULLCMD=:
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28 set -o posix
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34 if expr a : '\(a\)' >/dev/null 2>&1; then
35 as_expr=expr
36 else
37 as_expr=false
40 rm -f conf$$ conf$$.exe conf$$.file
41 echo >conf$$.file
42 if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
47 as_ln_s='cp -p'
48 else
49 as_ln_s='ln -s'
51 elif ln conf$$.file conf$$ 2>/dev/null; then
52 as_ln_s=ln
53 else
54 as_ln_s='cp -p'
56 rm -f conf$$ conf$$.exe conf$$.file
58 as_executable_p="test -f"
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
62 as_unset=unset
63 else
64 as_unset=false
67 # NLS nuisances.
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
77 # IFS
78 # We need space, tab and new line, in precisely that order.
79 as_nl='
81 IFS=" $as_nl"
83 # CDPATH.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
86 # Name of the host.
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
91 exec 6>&1
94 # Initializations.
96 ac_default_prefix=/usr/local
97 cross_compiling=no
98 subdirs=
99 MFLAGS= MAKEFLAGS=
100 SHELL=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
107 ac_unique_file="server/atom.c"
108 # Factoring default headers for most tests.
109 ac_includes_default="\
110 #include <stdio.h>
111 #if HAVE_SYS_TYPES_H
112 # include <sys/types.h>
113 #endif
114 #if HAVE_SYS_STAT_H
115 # include <sys/stat.h>
116 #endif
117 #if STDC_HEADERS
118 # include <stdlib.h>
119 # include <stddef.h>
120 #else
121 # if HAVE_STDLIB_H
122 # include <stdlib.h>
123 # endif
124 #endif
125 #if HAVE_STRING_H
126 # if !STDC_HEADERS && HAVE_MEMORY_H
127 # include <memory.h>
128 # endif
129 # include <string.h>
130 #endif
131 #if HAVE_STRINGS_H
132 # include <strings.h>
133 #endif
134 #if HAVE_INTTYPES_H
135 # include <inttypes.h>
136 #else
137 # if HAVE_STDINT_H
138 # include <stdint.h>
139 # endif
140 #endif
141 #if HAVE_UNISTD_H
142 # include <unistd.h>
143 #endif"
145 # Initialize some variables set by options.
146 ac_init_help=
147 ac_init_version=false
148 # The variables have the same names as the options, with
149 # dashes changed to underlines.
150 cache_file=/dev/null
151 exec_prefix=NONE
152 no_create=
153 no_recursion=
154 prefix=NONE
155 program_prefix=NONE
156 program_suffix=NONE
157 program_transform_name=s,x,x,
158 silent=
159 site=
160 srcdir=
161 verbose=
162 x_includes=NONE
163 x_libraries=NONE
165 # Installation directory options.
166 # These are left unexpanded so users can "make install exec_prefix=/foo"
167 # and all the variables that are supposed to be based on exec_prefix
168 # by default will actually change.
169 # Use braces instead of parens because sh, perl, etc. also accept them.
170 bindir='${exec_prefix}/bin'
171 sbindir='${exec_prefix}/sbin'
172 libexecdir='${exec_prefix}/libexec'
173 datadir='${prefix}/share'
174 sysconfdir='${prefix}/etc'
175 sharedstatedir='${prefix}/com'
176 localstatedir='${prefix}/var'
177 libdir='${exec_prefix}/lib'
178 includedir='${prefix}/include'
179 oldincludedir='/usr/include'
180 infodir='${prefix}/info'
181 mandir='${prefix}/man'
183 # Identity of this package.
184 PACKAGE_NAME='Wine'
185 PACKAGE_TARNAME='wine'
186 PACKAGE_VERSION='20020310'
187 PACKAGE_STRING='Wine 20020310'
188 PACKAGE_BUGREPORT=''
190 ac_prev=
191 for ac_option
193 # If the previous option needs an argument, assign it.
194 if test -n "$ac_prev"; then
195 eval "$ac_prev=\$ac_option"
196 ac_prev=
197 continue
200 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202 # Accept the important Cygnus configure options, so we can diagnose typos.
204 case $ac_option in
206 -bindir | --bindir | --bindi | --bind | --bin | --bi)
207 ac_prev=bindir ;;
208 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
209 bindir=$ac_optarg ;;
211 -build | --build | --buil | --bui | --bu)
212 ac_prev=build_alias ;;
213 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
214 build_alias=$ac_optarg ;;
216 -cache-file | --cache-file | --cache-fil | --cache-fi \
217 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
218 ac_prev=cache_file ;;
219 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
220 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
221 cache_file=$ac_optarg ;;
223 --config-cache | -C)
224 cache_file=config.cache ;;
226 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
227 ac_prev=datadir ;;
228 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
229 | --da=*)
230 datadir=$ac_optarg ;;
232 -disable-* | --disable-*)
233 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
234 # Reject names that are not valid shell variable names.
235 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
236 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
237 { (exit 1); exit 1; }; }
238 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
239 eval "enable_$ac_feature=no" ;;
241 -enable-* | --enable-*)
242 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
248 case $ac_option in
249 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
250 *) ac_optarg=yes ;;
251 esac
252 eval "enable_$ac_feature='$ac_optarg'" ;;
254 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
255 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
256 | --exec | --exe | --ex)
257 ac_prev=exec_prefix ;;
258 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
259 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
260 | --exec=* | --exe=* | --ex=*)
261 exec_prefix=$ac_optarg ;;
263 -gas | --gas | --ga | --g)
264 # Obsolete; use --with-gas.
265 with_gas=yes ;;
267 -help | --help | --hel | --he | -h)
268 ac_init_help=long ;;
269 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
270 ac_init_help=recursive ;;
271 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
272 ac_init_help=short ;;
274 -host | --host | --hos | --ho)
275 ac_prev=host_alias ;;
276 -host=* | --host=* | --hos=* | --ho=*)
277 host_alias=$ac_optarg ;;
279 -includedir | --includedir | --includedi | --included | --include \
280 | --includ | --inclu | --incl | --inc)
281 ac_prev=includedir ;;
282 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
283 | --includ=* | --inclu=* | --incl=* | --inc=*)
284 includedir=$ac_optarg ;;
286 -infodir | --infodir | --infodi | --infod | --info | --inf)
287 ac_prev=infodir ;;
288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
289 infodir=$ac_optarg ;;
291 -libdir | --libdir | --libdi | --libd)
292 ac_prev=libdir ;;
293 -libdir=* | --libdir=* | --libdi=* | --libd=*)
294 libdir=$ac_optarg ;;
296 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
297 | --libexe | --libex | --libe)
298 ac_prev=libexecdir ;;
299 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
300 | --libexe=* | --libex=* | --libe=*)
301 libexecdir=$ac_optarg ;;
303 -localstatedir | --localstatedir | --localstatedi | --localstated \
304 | --localstate | --localstat | --localsta | --localst \
305 | --locals | --local | --loca | --loc | --lo)
306 ac_prev=localstatedir ;;
307 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
308 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
309 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
310 localstatedir=$ac_optarg ;;
312 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
313 ac_prev=mandir ;;
314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
315 mandir=$ac_optarg ;;
317 -nfp | --nfp | --nf)
318 # Obsolete; use --without-fp.
319 with_fp=no ;;
321 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
322 | --no-cr | --no-c)
323 no_create=yes ;;
325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
327 no_recursion=yes ;;
329 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
330 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
331 | --oldin | --oldi | --old | --ol | --o)
332 ac_prev=oldincludedir ;;
333 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
334 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
335 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
336 oldincludedir=$ac_optarg ;;
338 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
339 ac_prev=prefix ;;
340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
341 prefix=$ac_optarg ;;
343 -program-prefix | --program-prefix | --program-prefi | --program-pref \
344 | --program-pre | --program-pr | --program-p)
345 ac_prev=program_prefix ;;
346 -program-prefix=* | --program-prefix=* | --program-prefi=* \
347 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
348 program_prefix=$ac_optarg ;;
350 -program-suffix | --program-suffix | --program-suffi | --program-suff \
351 | --program-suf | --program-su | --program-s)
352 ac_prev=program_suffix ;;
353 -program-suffix=* | --program-suffix=* | --program-suffi=* \
354 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
355 program_suffix=$ac_optarg ;;
357 -program-transform-name | --program-transform-name \
358 | --program-transform-nam | --program-transform-na \
359 | --program-transform-n | --program-transform- \
360 | --program-transform | --program-transfor \
361 | --program-transfo | --program-transf \
362 | --program-trans | --program-tran \
363 | --progr-tra | --program-tr | --program-t)
364 ac_prev=program_transform_name ;;
365 -program-transform-name=* | --program-transform-name=* \
366 | --program-transform-nam=* | --program-transform-na=* \
367 | --program-transform-n=* | --program-transform-=* \
368 | --program-transform=* | --program-transfor=* \
369 | --program-transfo=* | --program-transf=* \
370 | --program-trans=* | --program-tran=* \
371 | --progr-tra=* | --program-tr=* | --program-t=*)
372 program_transform_name=$ac_optarg ;;
374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
375 | -silent | --silent | --silen | --sile | --sil)
376 silent=yes ;;
378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
379 ac_prev=sbindir ;;
380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
381 | --sbi=* | --sb=*)
382 sbindir=$ac_optarg ;;
384 -sharedstatedir | --sharedstatedir | --sharedstatedi \
385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
386 | --sharedst | --shareds | --shared | --share | --shar \
387 | --sha | --sh)
388 ac_prev=sharedstatedir ;;
389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
392 | --sha=* | --sh=*)
393 sharedstatedir=$ac_optarg ;;
395 -site | --site | --sit)
396 ac_prev=site ;;
397 -site=* | --site=* | --sit=*)
398 site=$ac_optarg ;;
400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
401 ac_prev=srcdir ;;
402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
403 srcdir=$ac_optarg ;;
405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
406 | --syscon | --sysco | --sysc | --sys | --sy)
407 ac_prev=sysconfdir ;;
408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
410 sysconfdir=$ac_optarg ;;
412 -target | --target | --targe | --targ | --tar | --ta | --t)
413 ac_prev=target_alias ;;
414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
415 target_alias=$ac_optarg ;;
417 -v | -verbose | --verbose | --verbos | --verbo | --verb)
418 verbose=yes ;;
420 -version | --version | --versio | --versi | --vers | -V)
421 ac_init_version=: ;;
423 -with-* | --with-*)
424 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
425 # Reject names that are not valid shell variable names.
426 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
427 { echo "$as_me: error: invalid package name: $ac_package" >&2
428 { (exit 1); exit 1; }; }
429 ac_package=`echo $ac_package| sed 's/-/_/g'`
430 case $ac_option in
431 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
432 *) ac_optarg=yes ;;
433 esac
434 eval "with_$ac_package='$ac_optarg'" ;;
436 -without-* | --without-*)
437 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
438 # Reject names that are not valid shell variable names.
439 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
440 { echo "$as_me: error: invalid package name: $ac_package" >&2
441 { (exit 1); exit 1; }; }
442 ac_package=`echo $ac_package | sed 's/-/_/g'`
443 eval "with_$ac_package=no" ;;
445 --x)
446 # Obsolete; use --with-x.
447 with_x=yes ;;
449 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
450 | --x-incl | --x-inc | --x-in | --x-i)
451 ac_prev=x_includes ;;
452 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
453 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
454 x_includes=$ac_optarg ;;
456 -x-libraries | --x-libraries | --x-librarie | --x-librari \
457 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
458 ac_prev=x_libraries ;;
459 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
460 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
461 x_libraries=$ac_optarg ;;
463 -*) { echo "$as_me: error: unrecognized option: $ac_option
464 Try \`$0 --help' for more information." >&2
465 { (exit 1); exit 1; }; }
468 *=*)
469 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
470 # Reject names that are not valid shell variable names.
471 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
472 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
473 { (exit 1); exit 1; }; }
474 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
475 eval "$ac_envvar='$ac_optarg'"
476 export $ac_envvar ;;
479 # FIXME: should be removed in autoconf 3.0.
480 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
481 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
482 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
483 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
486 esac
487 done
489 if test -n "$ac_prev"; then
490 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
491 { echo "$as_me: error: missing argument to $ac_option" >&2
492 { (exit 1); exit 1; }; }
495 # Be sure to have absolute paths.
496 for ac_var in exec_prefix prefix
498 eval ac_val=$`echo $ac_var`
499 case $ac_val in
500 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
502 { (exit 1); exit 1; }; };;
503 esac
504 done
506 # Be sure to have absolute paths.
507 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
508 localstatedir libdir includedir oldincludedir infodir mandir
510 eval ac_val=$`echo $ac_var`
511 case $ac_val in
512 [\\/$]* | ?:[\\/]* ) ;;
513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
514 { (exit 1); exit 1; }; };;
515 esac
516 done
518 # There might be people who depend on the old broken behavior: `$host'
519 # used to hold the argument of --host etc.
520 build=$build_alias
521 host=$host_alias
522 target=$target_alias
524 # FIXME: should be removed in autoconf 3.0.
525 if test "x$host_alias" != x; then
526 if test "x$build_alias" = x; then
527 cross_compiling=maybe
528 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
529 If a cross compiler is detected then cross compile mode will be used." >&2
530 elif test "x$build_alias" != "x$host_alias"; then
531 cross_compiling=yes
535 ac_tool_prefix=
536 test -n "$host_alias" && ac_tool_prefix=$host_alias-
538 test "$silent" = yes && exec 6>/dev/null
540 # Find the source files, if location was not specified.
541 if test -z "$srcdir"; then
542 ac_srcdir_defaulted=yes
543 # Try the directory containing this script, then its parent.
544 ac_prog=$0
545 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
547 srcdir=$ac_confdir
548 if test ! -r $srcdir/$ac_unique_file; then
549 srcdir=..
551 else
552 ac_srcdir_defaulted=no
554 if test ! -r $srcdir/$ac_unique_file; then
555 if test "$ac_srcdir_defaulted" = yes; then
556 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
557 { (exit 1); exit 1; }; }
558 else
559 { echo "$as_me: error: cannot find sources in $srcdir" >&2
560 { (exit 1); exit 1; }; }
563 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
564 ac_env_build_alias_set=${build_alias+set}
565 ac_env_build_alias_value=$build_alias
566 ac_cv_env_build_alias_set=${build_alias+set}
567 ac_cv_env_build_alias_value=$build_alias
568 ac_env_host_alias_set=${host_alias+set}
569 ac_env_host_alias_value=$host_alias
570 ac_cv_env_host_alias_set=${host_alias+set}
571 ac_cv_env_host_alias_value=$host_alias
572 ac_env_target_alias_set=${target_alias+set}
573 ac_env_target_alias_value=$target_alias
574 ac_cv_env_target_alias_set=${target_alias+set}
575 ac_cv_env_target_alias_value=$target_alias
576 ac_env_CC_set=${CC+set}
577 ac_env_CC_value=$CC
578 ac_cv_env_CC_set=${CC+set}
579 ac_cv_env_CC_value=$CC
580 ac_env_CFLAGS_set=${CFLAGS+set}
581 ac_env_CFLAGS_value=$CFLAGS
582 ac_cv_env_CFLAGS_set=${CFLAGS+set}
583 ac_cv_env_CFLAGS_value=$CFLAGS
584 ac_env_LDFLAGS_set=${LDFLAGS+set}
585 ac_env_LDFLAGS_value=$LDFLAGS
586 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
587 ac_cv_env_LDFLAGS_value=$LDFLAGS
588 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
589 ac_env_CPPFLAGS_value=$CPPFLAGS
590 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
591 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
592 ac_env_CPP_set=${CPP+set}
593 ac_env_CPP_value=$CPP
594 ac_cv_env_CPP_set=${CPP+set}
595 ac_cv_env_CPP_value=$CPP
598 # Report the --help message.
600 if test "$ac_init_help" = "long"; then
601 # Omit some internal or obsolete options to make the list less imposing.
602 # This message is too long to be a string in the A/UX 3.1 sh.
603 cat <<EOF
604 \`configure' configures Wine 20020310 to adapt to many kinds of systems.
606 Usage: $0 [OPTION]... [VAR=VALUE]...
608 To assign environment variables (e.g., CC, CFLAGS...), specify them as
609 VAR=VALUE. See below for descriptions of some of the useful variables.
611 Defaults for the options are specified in brackets.
613 Configuration:
614 -h, --help display this help and exit
615 --help=short display options specific to this package
616 --help=recursive display the short help of all the included packages
617 -V, --version display version information and exit
618 -q, --quiet, --silent do not print \`checking...' messages
619 --cache-file=FILE cache test results in FILE [disabled]
620 -C, --config-cache alias for \`--cache-file=config.cache'
621 -n, --no-create do not create output files
622 --srcdir=DIR find the sources in DIR [configure dir or \`..']
626 cat <<EOF
627 Installation directories:
628 --prefix=PREFIX install architecture-independent files in PREFIX
629 [$ac_default_prefix]
630 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
631 [PREFIX]
633 By default, \`make install' will install all the files in
634 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
635 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
636 for instance \`--prefix=\$HOME'.
638 For better control, use the options below.
640 Fine tuning of the installation directories:
641 --bindir=DIR user executables [EPREFIX/bin]
642 --sbindir=DIR system admin executables [EPREFIX/sbin]
643 --libexecdir=DIR program executables [EPREFIX/libexec]
644 --datadir=DIR read-only architecture-independent data [PREFIX/share]
645 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
646 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
647 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
648 --libdir=DIR object code libraries [EPREFIX/lib]
649 --includedir=DIR C header files [PREFIX/include]
650 --oldincludedir=DIR C header files for non-gcc [/usr/include]
651 --infodir=DIR info documentation [PREFIX/info]
652 --mandir=DIR man documentation [PREFIX/man]
655 cat <<\EOF
657 X features:
658 --x-includes=DIR X include files are in DIR
659 --x-libraries=DIR X library files are in DIR
661 System types:
662 --build=BUILD configure for building on BUILD [guessed]
663 --host=HOST build programs to run on HOST [BUILD]
664 --target=TARGET configure for building compilers for TARGET [HOST]
668 if test -n "$ac_init_help"; then
669 case $ac_init_help in
670 short | recursive ) echo "Configuration of Wine 20020310:";;
671 esac
672 cat <<\EOF
674 Optional Features:
675 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
676 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
677 --disable-debug compile out all debugging messages
678 --disable-trace compile out TRACE messages
679 --enable-opengl force usage of OpenGL even if the latter is
680 thread-safe via pthread
682 Optional Packages:
683 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
684 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
685 --without-curses do not use curses
686 --without-reentrant-x compile for use with non-reentrant X libraries
687 --with-x use the X Window System
689 Some influential environment variables:
690 CC C compiler command
691 CFLAGS C compiler flags
692 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
693 nonstandard directory <lib dir>
694 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
695 headers in a nonstandard directory <include dir>
696 CPP C preprocessor
698 Use these variables to override the choices made by `configure' or to help
699 it to find libraries and programs with nonstandard names/locations.
704 if test "$ac_init_help" = "recursive"; then
705 # If there are subdirs, report their specific --help.
706 ac_popdir=`pwd`
707 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
708 cd $ac_subdir
709 # A "../" for each directory in /$ac_subdir.
710 ac_dots=`echo $ac_subdir |
711 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
713 case $srcdir in
714 .) # No --srcdir option. We are building in place.
715 ac_sub_srcdir=$srcdir ;;
716 [\\/]* | ?:[\\/]* ) # Absolute path.
717 ac_sub_srcdir=$srcdir/$ac_subdir ;;
718 *) # Relative path.
719 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
720 esac
722 # Check for guested configure; otherwise get Cygnus style configure.
723 if test -f $ac_sub_srcdir/configure.gnu; then
724 echo
725 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
726 elif test -f $ac_sub_srcdir/configure; then
727 echo
728 $SHELL $ac_sub_srcdir/configure --help=recursive
729 elif test -f $ac_sub_srcdir/configure.ac ||
730 test -f $ac_sub_srcdir/configure.in; then
731 echo
732 $ac_configure --help
733 else
734 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
736 cd $ac_popdir
737 done
740 test -n "$ac_init_help" && exit 0
741 if $ac_init_version; then
742 cat <<\EOF
743 Wine configure 20020310
744 generated by GNU Autoconf 2.52
746 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
747 Free Software Foundation, Inc.
748 This configure script is free software; the Free Software Foundation
749 gives unlimited permission to copy, distribute and modify it.
751 exit 0
753 exec 5>config.log
754 cat >&5 <<EOF
755 This file contains any messages produced by compilers while
756 running configure, to aid debugging if configure makes a mistake.
758 It was created by Wine $as_me 20020310, which was
759 generated by GNU Autoconf 2.52. Invocation command line was
761 $ $0 $@
765 cat <<_ASUNAME
766 ## ---------- ##
767 ## Platform. ##
768 ## ---------- ##
770 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
771 uname -m = `(uname -m) 2>/dev/null || echo unknown`
772 uname -r = `(uname -r) 2>/dev/null || echo unknown`
773 uname -s = `(uname -s) 2>/dev/null || echo unknown`
774 uname -v = `(uname -v) 2>/dev/null || echo unknown`
776 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
777 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
779 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
780 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
781 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
782 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
783 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
784 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
785 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
787 PATH = $PATH
789 _ASUNAME
790 } >&5
792 cat >&5 <<EOF
793 ## ------------ ##
794 ## Core tests. ##
795 ## ------------ ##
799 # Keep a trace of the command line.
800 # Strip out --no-create and --no-recursion so they do not pile up.
801 # Also quote any args containing shell meta-characters.
802 ac_configure_args=
803 ac_sep=
804 for ac_arg
806 case $ac_arg in
807 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
808 | --no-cr | --no-c) ;;
809 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
810 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
811 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
812 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
813 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
814 ac_sep=" " ;;
815 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
816 ac_sep=" " ;;
817 esac
818 # Get rid of the leading space.
819 done
821 # When interrupted or exit'd, cleanup temporary files, and complete
822 # config.log. We remove comments because anyway the quotes in there
823 # would cause problems or look ugly.
824 trap 'exit_status=$?
825 # Save into config.log some information that might help in debugging.
826 echo >&5
827 echo "## ----------------- ##" >&5
828 echo "## Cache variables. ##" >&5
829 echo "## ----------------- ##" >&5
830 echo >&5
831 # The following way of writing the cache mishandles newlines in values,
833 (set) 2>&1 |
834 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
835 *ac_space=\ *)
836 sed -n \
837 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
838 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
841 sed -n \
842 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
844 esac;
845 } >&5
846 sed "/^$/d" confdefs.h >conftest.log
847 if test -s conftest.log; then
848 echo >&5
849 echo "## ------------ ##" >&5
850 echo "## confdefs.h. ##" >&5
851 echo "## ------------ ##" >&5
852 echo >&5
853 cat conftest.log >&5
855 (echo; echo) >&5
856 test "$ac_signal" != 0 &&
857 echo "$as_me: caught signal $ac_signal" >&5
858 echo "$as_me: exit $exit_status" >&5
859 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
860 exit $exit_status
862 for ac_signal in 1 2 13 15; do
863 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
864 done
865 ac_signal=0
867 # confdefs.h avoids OS command line length limits that DEFS can exceed.
868 rm -rf conftest* confdefs.h
869 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
870 echo >confdefs.h
872 # Let the site file select an alternate cache file if it wants to.
873 # Prefer explicitly selected file to automatically selected ones.
874 if test -z "$CONFIG_SITE"; then
875 if test "x$prefix" != xNONE; then
876 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
877 else
878 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
881 for ac_site_file in $CONFIG_SITE; do
882 if test -r "$ac_site_file"; then
883 { echo "$as_me:883: loading site script $ac_site_file" >&5
884 echo "$as_me: loading site script $ac_site_file" >&6;}
885 cat "$ac_site_file" >&5
886 . "$ac_site_file"
888 done
890 if test -r "$cache_file"; then
891 # Some versions of bash will fail to source /dev/null (special
892 # files actually), so we avoid doing that.
893 if test -f "$cache_file"; then
894 { echo "$as_me:894: loading cache $cache_file" >&5
895 echo "$as_me: loading cache $cache_file" >&6;}
896 case $cache_file in
897 [\\/]* | ?:[\\/]* ) . $cache_file;;
898 *) . ./$cache_file;;
899 esac
901 else
902 { echo "$as_me:902: creating cache $cache_file" >&5
903 echo "$as_me: creating cache $cache_file" >&6;}
904 >$cache_file
907 # Check that the precious variables saved in the cache have kept the same
908 # value.
909 ac_cache_corrupted=false
910 for ac_var in `(set) 2>&1 |
911 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
912 eval ac_old_set=\$ac_cv_env_${ac_var}_set
913 eval ac_new_set=\$ac_env_${ac_var}_set
914 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
915 eval ac_new_val="\$ac_env_${ac_var}_value"
916 case $ac_old_set,$ac_new_set in
917 set,)
918 { echo "$as_me:918: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
919 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
920 ac_cache_corrupted=: ;;
921 ,set)
922 { echo "$as_me:922: error: \`$ac_var' was not set in the previous run" >&5
923 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
924 ac_cache_corrupted=: ;;
925 ,);;
927 if test "x$ac_old_val" != "x$ac_new_val"; then
928 { echo "$as_me:928: error: \`$ac_var' has changed since the previous run:" >&5
929 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
930 { echo "$as_me:930: former value: $ac_old_val" >&5
931 echo "$as_me: former value: $ac_old_val" >&2;}
932 { echo "$as_me:932: current value: $ac_new_val" >&5
933 echo "$as_me: current value: $ac_new_val" >&2;}
934 ac_cache_corrupted=:
935 fi;;
936 esac
937 # Pass precious variables to config.status. It doesn't matter if
938 # we pass some twice (in addition to the command line arguments).
939 if test "$ac_new_set" = set; then
940 case $ac_new_val in
941 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
942 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
943 ac_configure_args="$ac_configure_args '$ac_arg'"
945 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
947 esac
949 done
950 if $ac_cache_corrupted; then
951 { echo "$as_me:951: error: changes in the environment can compromise the build" >&5
952 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
953 { { echo "$as_me:953: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
954 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
955 { (exit 1); exit 1; }; }
958 ac_ext=c
959 ac_cpp='$CPP $CPPFLAGS'
960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
964 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
965 *c*,-n*) ECHO_N= ECHO_C='
966 ' ECHO_T=' ' ;;
967 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
968 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
969 esac
970 echo "#! $SHELL" >conftest.sh
971 echo "exit 0" >>conftest.sh
972 chmod +x conftest.sh
973 if { (echo "$as_me:973: PATH=\".;.\"; conftest.sh") >&5
974 (PATH=".;."; conftest.sh) 2>&5
975 ac_status=$?
976 echo "$as_me:976: \$? = $ac_status" >&5
977 (exit $ac_status); }; then
978 ac_path_separator=';'
979 else
980 ac_path_separator=:
982 PATH_SEPARATOR="$ac_path_separator"
983 rm -f conftest.sh
985 ac_config_headers="$ac_config_headers include/config.h"
987 ac_aux_dir=
988 for ac_dir in tools $srcdir/tools; do
989 if test -f $ac_dir/install-sh; then
990 ac_aux_dir=$ac_dir
991 ac_install_sh="$ac_aux_dir/install-sh -c"
992 break
993 elif test -f $ac_dir/install.sh; then
994 ac_aux_dir=$ac_dir
995 ac_install_sh="$ac_aux_dir/install.sh -c"
996 break
997 elif test -f $ac_dir/shtool; then
998 ac_aux_dir=$ac_dir
999 ac_install_sh="$ac_aux_dir/shtool install -c"
1000 break
1002 done
1003 if test -z "$ac_aux_dir"; then
1004 { { echo "$as_me:1004: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1005 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1006 { (exit 1); exit 1; }; }
1008 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1009 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1010 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1012 LIBEXT=so # library type .so or .a
1014 # Check whether --enable-debug or --disable-debug was given.
1015 if test "${enable_debug+set}" = set; then
1016 enableval="$enable_debug"
1019 # Check whether --enable-trace or --disable-trace was given.
1020 if test "${enable_trace+set}" = set; then
1021 enableval="$enable_trace"
1024 # Check whether --enable-opengl or --disable-opengl was given.
1025 if test "${enable_opengl+set}" = set; then
1026 enableval="$enable_opengl"
1030 # Check whether --with-curses or --without-curses was given.
1031 if test "${with_curses+set}" = set; then
1032 withval="$with_curses"
1036 # Check whether --with-reentrant-x or --without-reentrant-x was given.
1037 if test "${with_reentrant_x+set}" = set; then
1038 withval="$with_reentrant_x"
1042 if test "x$enable_debug" = "xno"
1043 then
1045 cat >>confdefs.h <<\EOF
1046 #define NO_DEBUG_MSGS 1
1050 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1051 then
1053 cat >>confdefs.h <<\EOF
1054 #define NO_TRACE_MSGS 1
1059 # Make sure we can run config.sub.
1060 $ac_config_sub sun4 >/dev/null 2>&1 ||
1061 { { echo "$as_me:1061: error: cannot run $ac_config_sub" >&5
1062 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1063 { (exit 1); exit 1; }; }
1065 echo "$as_me:1065: checking build system type" >&5
1066 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1067 if test "${ac_cv_build+set}" = set; then
1068 echo $ECHO_N "(cached) $ECHO_C" >&6
1069 else
1070 ac_cv_build_alias=$build_alias
1071 test -z "$ac_cv_build_alias" &&
1072 ac_cv_build_alias=`$ac_config_guess`
1073 test -z "$ac_cv_build_alias" &&
1074 { { echo "$as_me:1074: error: cannot guess build type; you must specify one" >&5
1075 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1076 { (exit 1); exit 1; }; }
1077 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1078 { { echo "$as_me:1078: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1079 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1080 { (exit 1); exit 1; }; }
1083 echo "$as_me:1083: result: $ac_cv_build" >&5
1084 echo "${ECHO_T}$ac_cv_build" >&6
1085 build=$ac_cv_build
1086 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1087 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1088 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1090 echo "$as_me:1090: checking host system type" >&5
1091 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1092 if test "${ac_cv_host+set}" = set; then
1093 echo $ECHO_N "(cached) $ECHO_C" >&6
1094 else
1095 ac_cv_host_alias=$host_alias
1096 test -z "$ac_cv_host_alias" &&
1097 ac_cv_host_alias=$ac_cv_build_alias
1098 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1099 { { echo "$as_me:1099: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1100 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1101 { (exit 1); exit 1; }; }
1104 echo "$as_me:1104: result: $ac_cv_host" >&5
1105 echo "${ECHO_T}$ac_cv_host" >&6
1106 host=$ac_cv_host
1107 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1108 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1109 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1111 echo "$as_me:1111: checking target system type" >&5
1112 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1113 if test "${ac_cv_target+set}" = set; then
1114 echo $ECHO_N "(cached) $ECHO_C" >&6
1115 else
1116 ac_cv_target_alias=$target_alias
1117 test "x$ac_cv_target_alias" = "x" &&
1118 ac_cv_target_alias=$ac_cv_host_alias
1119 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1120 { { echo "$as_me:1120: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1121 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1122 { (exit 1); exit 1; }; }
1125 echo "$as_me:1125: result: $ac_cv_target" >&5
1126 echo "${ECHO_T}$ac_cv_target" >&6
1127 target=$ac_cv_target
1128 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1129 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1130 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1132 # The aliases save the names the user supplied, while $host etc.
1133 # will get canonicalized.
1134 test -n "$target_alias" &&
1135 test "$program_prefix$program_suffix$program_transform_name" = \
1136 NONENONEs,x,x, &&
1137 program_prefix=${target_alias}-
1138 echo "$as_me:1138: checking whether ${MAKE-make} sets \${MAKE}" >&5
1139 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1140 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1141 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1142 echo $ECHO_N "(cached) $ECHO_C" >&6
1143 else
1144 cat >conftest.make <<\EOF
1145 all:
1146 @echo 'ac_maketemp="${MAKE}"'
1148 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1149 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1150 if test -n "$ac_maketemp"; then
1151 eval ac_cv_prog_make_${ac_make}_set=yes
1152 else
1153 eval ac_cv_prog_make_${ac_make}_set=no
1155 rm -f conftest.make
1157 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1158 echo "$as_me:1158: result: yes" >&5
1159 echo "${ECHO_T}yes" >&6
1160 SET_MAKE=
1161 else
1162 echo "$as_me:1162: result: no" >&5
1163 echo "${ECHO_T}no" >&6
1164 SET_MAKE="MAKE=${MAKE-make}"
1167 ac_ext=c
1168 ac_cpp='$CPP $CPPFLAGS'
1169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1172 if test -n "$ac_tool_prefix"; then
1173 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1174 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1175 echo "$as_me:1175: checking for $ac_word" >&5
1176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1177 if test "${ac_cv_prog_CC+set}" = set; then
1178 echo $ECHO_N "(cached) $ECHO_C" >&6
1179 else
1180 if test -n "$CC"; then
1181 ac_cv_prog_CC="$CC" # Let the user override the test.
1182 else
1183 ac_save_IFS=$IFS; IFS=$ac_path_separator
1184 ac_dummy="$PATH"
1185 for ac_dir in $ac_dummy; do
1186 IFS=$ac_save_IFS
1187 test -z "$ac_dir" && ac_dir=.
1188 $as_executable_p "$ac_dir/$ac_word" || continue
1189 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1190 echo "$as_me:1190: found $ac_dir/$ac_word" >&5
1191 break
1192 done
1196 CC=$ac_cv_prog_CC
1197 if test -n "$CC"; then
1198 echo "$as_me:1198: result: $CC" >&5
1199 echo "${ECHO_T}$CC" >&6
1200 else
1201 echo "$as_me:1201: result: no" >&5
1202 echo "${ECHO_T}no" >&6
1206 if test -z "$ac_cv_prog_CC"; then
1207 ac_ct_CC=$CC
1208 # Extract the first word of "gcc", so it can be a program name with args.
1209 set dummy gcc; ac_word=$2
1210 echo "$as_me:1210: checking for $ac_word" >&5
1211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1212 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1213 echo $ECHO_N "(cached) $ECHO_C" >&6
1214 else
1215 if test -n "$ac_ct_CC"; then
1216 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1217 else
1218 ac_save_IFS=$IFS; IFS=$ac_path_separator
1219 ac_dummy="$PATH"
1220 for ac_dir in $ac_dummy; do
1221 IFS=$ac_save_IFS
1222 test -z "$ac_dir" && ac_dir=.
1223 $as_executable_p "$ac_dir/$ac_word" || continue
1224 ac_cv_prog_ac_ct_CC="gcc"
1225 echo "$as_me:1225: found $ac_dir/$ac_word" >&5
1226 break
1227 done
1231 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1232 if test -n "$ac_ct_CC"; then
1233 echo "$as_me:1233: result: $ac_ct_CC" >&5
1234 echo "${ECHO_T}$ac_ct_CC" >&6
1235 else
1236 echo "$as_me:1236: result: no" >&5
1237 echo "${ECHO_T}no" >&6
1240 CC=$ac_ct_CC
1241 else
1242 CC="$ac_cv_prog_CC"
1245 if test -z "$CC"; then
1246 if test -n "$ac_tool_prefix"; then
1247 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1248 set dummy ${ac_tool_prefix}cc; ac_word=$2
1249 echo "$as_me:1249: checking for $ac_word" >&5
1250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1251 if test "${ac_cv_prog_CC+set}" = set; then
1252 echo $ECHO_N "(cached) $ECHO_C" >&6
1253 else
1254 if test -n "$CC"; then
1255 ac_cv_prog_CC="$CC" # Let the user override the test.
1256 else
1257 ac_save_IFS=$IFS; IFS=$ac_path_separator
1258 ac_dummy="$PATH"
1259 for ac_dir in $ac_dummy; do
1260 IFS=$ac_save_IFS
1261 test -z "$ac_dir" && ac_dir=.
1262 $as_executable_p "$ac_dir/$ac_word" || continue
1263 ac_cv_prog_CC="${ac_tool_prefix}cc"
1264 echo "$as_me:1264: found $ac_dir/$ac_word" >&5
1265 break
1266 done
1270 CC=$ac_cv_prog_CC
1271 if test -n "$CC"; then
1272 echo "$as_me:1272: result: $CC" >&5
1273 echo "${ECHO_T}$CC" >&6
1274 else
1275 echo "$as_me:1275: result: no" >&5
1276 echo "${ECHO_T}no" >&6
1280 if test -z "$ac_cv_prog_CC"; then
1281 ac_ct_CC=$CC
1282 # Extract the first word of "cc", so it can be a program name with args.
1283 set dummy cc; ac_word=$2
1284 echo "$as_me:1284: checking for $ac_word" >&5
1285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1286 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1287 echo $ECHO_N "(cached) $ECHO_C" >&6
1288 else
1289 if test -n "$ac_ct_CC"; then
1290 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1291 else
1292 ac_save_IFS=$IFS; IFS=$ac_path_separator
1293 ac_dummy="$PATH"
1294 for ac_dir in $ac_dummy; do
1295 IFS=$ac_save_IFS
1296 test -z "$ac_dir" && ac_dir=.
1297 $as_executable_p "$ac_dir/$ac_word" || continue
1298 ac_cv_prog_ac_ct_CC="cc"
1299 echo "$as_me:1299: found $ac_dir/$ac_word" >&5
1300 break
1301 done
1305 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1306 if test -n "$ac_ct_CC"; then
1307 echo "$as_me:1307: result: $ac_ct_CC" >&5
1308 echo "${ECHO_T}$ac_ct_CC" >&6
1309 else
1310 echo "$as_me:1310: result: no" >&5
1311 echo "${ECHO_T}no" >&6
1314 CC=$ac_ct_CC
1315 else
1316 CC="$ac_cv_prog_CC"
1320 if test -z "$CC"; then
1321 # Extract the first word of "cc", so it can be a program name with args.
1322 set dummy cc; ac_word=$2
1323 echo "$as_me:1323: checking for $ac_word" >&5
1324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1325 if test "${ac_cv_prog_CC+set}" = set; then
1326 echo $ECHO_N "(cached) $ECHO_C" >&6
1327 else
1328 if test -n "$CC"; then
1329 ac_cv_prog_CC="$CC" # Let the user override the test.
1330 else
1331 ac_prog_rejected=no
1332 ac_save_IFS=$IFS; IFS=$ac_path_separator
1333 ac_dummy="$PATH"
1334 for ac_dir in $ac_dummy; do
1335 IFS=$ac_save_IFS
1336 test -z "$ac_dir" && ac_dir=.
1337 $as_executable_p "$ac_dir/$ac_word" || continue
1338 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1339 ac_prog_rejected=yes
1340 continue
1342 ac_cv_prog_CC="cc"
1343 echo "$as_me:1343: found $ac_dir/$ac_word" >&5
1344 break
1345 done
1347 if test $ac_prog_rejected = yes; then
1348 # We found a bogon in the path, so make sure we never use it.
1349 set dummy $ac_cv_prog_CC
1350 shift
1351 if test $# != 0; then
1352 # We chose a different compiler from the bogus one.
1353 # However, it has the same basename, so the bogon will be chosen
1354 # first if we set CC to just the basename; use the full file name.
1355 shift
1356 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1357 shift
1358 ac_cv_prog_CC="$@"
1363 CC=$ac_cv_prog_CC
1364 if test -n "$CC"; then
1365 echo "$as_me:1365: result: $CC" >&5
1366 echo "${ECHO_T}$CC" >&6
1367 else
1368 echo "$as_me:1368: result: no" >&5
1369 echo "${ECHO_T}no" >&6
1373 if test -z "$CC"; then
1374 if test -n "$ac_tool_prefix"; then
1375 for ac_prog in cl
1377 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1378 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1379 echo "$as_me:1379: checking for $ac_word" >&5
1380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1381 if test "${ac_cv_prog_CC+set}" = set; then
1382 echo $ECHO_N "(cached) $ECHO_C" >&6
1383 else
1384 if test -n "$CC"; then
1385 ac_cv_prog_CC="$CC" # Let the user override the test.
1386 else
1387 ac_save_IFS=$IFS; IFS=$ac_path_separator
1388 ac_dummy="$PATH"
1389 for ac_dir in $ac_dummy; do
1390 IFS=$ac_save_IFS
1391 test -z "$ac_dir" && ac_dir=.
1392 $as_executable_p "$ac_dir/$ac_word" || continue
1393 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1394 echo "$as_me:1394: found $ac_dir/$ac_word" >&5
1395 break
1396 done
1400 CC=$ac_cv_prog_CC
1401 if test -n "$CC"; then
1402 echo "$as_me:1402: result: $CC" >&5
1403 echo "${ECHO_T}$CC" >&6
1404 else
1405 echo "$as_me:1405: result: no" >&5
1406 echo "${ECHO_T}no" >&6
1409 test -n "$CC" && break
1410 done
1412 if test -z "$CC"; then
1413 ac_ct_CC=$CC
1414 for ac_prog in cl
1416 # Extract the first word of "$ac_prog", so it can be a program name with args.
1417 set dummy $ac_prog; ac_word=$2
1418 echo "$as_me:1418: checking for $ac_word" >&5
1419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1420 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1421 echo $ECHO_N "(cached) $ECHO_C" >&6
1422 else
1423 if test -n "$ac_ct_CC"; then
1424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1425 else
1426 ac_save_IFS=$IFS; IFS=$ac_path_separator
1427 ac_dummy="$PATH"
1428 for ac_dir in $ac_dummy; do
1429 IFS=$ac_save_IFS
1430 test -z "$ac_dir" && ac_dir=.
1431 $as_executable_p "$ac_dir/$ac_word" || continue
1432 ac_cv_prog_ac_ct_CC="$ac_prog"
1433 echo "$as_me:1433: found $ac_dir/$ac_word" >&5
1434 break
1435 done
1439 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1440 if test -n "$ac_ct_CC"; then
1441 echo "$as_me:1441: result: $ac_ct_CC" >&5
1442 echo "${ECHO_T}$ac_ct_CC" >&6
1443 else
1444 echo "$as_me:1444: result: no" >&5
1445 echo "${ECHO_T}no" >&6
1448 test -n "$ac_ct_CC" && break
1449 done
1451 CC=$ac_ct_CC
1456 test -z "$CC" && { { echo "$as_me:1456: error: no acceptable cc found in \$PATH" >&5
1457 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1458 { (exit 1); exit 1; }; }
1460 # Provide some information about the compiler.
1461 echo "$as_me:1461:" \
1462 "checking for C compiler version" >&5
1463 ac_compiler=`set X $ac_compile; echo $2`
1464 { (eval echo "$as_me:1464: \"$ac_compiler --version </dev/null >&5\"") >&5
1465 (eval $ac_compiler --version </dev/null >&5) 2>&5
1466 ac_status=$?
1467 echo "$as_me:1467: \$? = $ac_status" >&5
1468 (exit $ac_status); }
1469 { (eval echo "$as_me:1469: \"$ac_compiler -v </dev/null >&5\"") >&5
1470 (eval $ac_compiler -v </dev/null >&5) 2>&5
1471 ac_status=$?
1472 echo "$as_me:1472: \$? = $ac_status" >&5
1473 (exit $ac_status); }
1474 { (eval echo "$as_me:1474: \"$ac_compiler -V </dev/null >&5\"") >&5
1475 (eval $ac_compiler -V </dev/null >&5) 2>&5
1476 ac_status=$?
1477 echo "$as_me:1477: \$? = $ac_status" >&5
1478 (exit $ac_status); }
1480 cat >conftest.$ac_ext <<_ACEOF
1481 #line 1481 "configure"
1482 #include "confdefs.h"
1485 main ()
1489 return 0;
1491 _ACEOF
1492 ac_clean_files_save=$ac_clean_files
1493 ac_clean_files="$ac_clean_files a.out a.exe"
1494 # Try to create an executable without -o first, disregard a.out.
1495 # It will help us diagnose broken compilers, and finding out an intuition
1496 # of exeext.
1497 echo "$as_me:1497: checking for C compiler default output" >&5
1498 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1499 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1500 if { (eval echo "$as_me:1500: \"$ac_link_default\"") >&5
1501 (eval $ac_link_default) 2>&5
1502 ac_status=$?
1503 echo "$as_me:1503: \$? = $ac_status" >&5
1504 (exit $ac_status); }; then
1505 # Find the output, starting from the most likely. This scheme is
1506 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1507 # resort.
1508 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1509 ls a.out conftest 2>/dev/null;
1510 ls a.* conftest.* 2>/dev/null`; do
1511 case $ac_file in
1512 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1513 a.out ) # We found the default executable, but exeext='' is most
1514 # certainly right.
1515 break;;
1516 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1517 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1518 export ac_cv_exeext
1519 break;;
1520 * ) break;;
1521 esac
1522 done
1523 else
1524 echo "$as_me: failed program was:" >&5
1525 cat conftest.$ac_ext >&5
1526 { { echo "$as_me:1526: error: C compiler cannot create executables" >&5
1527 echo "$as_me: error: C compiler cannot create executables" >&2;}
1528 { (exit 77); exit 77; }; }
1531 ac_exeext=$ac_cv_exeext
1532 echo "$as_me:1532: result: $ac_file" >&5
1533 echo "${ECHO_T}$ac_file" >&6
1535 # Check the compiler produces executables we can run. If not, either
1536 # the compiler is broken, or we cross compile.
1537 echo "$as_me:1537: checking whether the C compiler works" >&5
1538 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1539 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1540 # If not cross compiling, check that we can run a simple program.
1541 if test "$cross_compiling" != yes; then
1542 if { ac_try='./$ac_file'
1543 { (eval echo "$as_me:1543: \"$ac_try\"") >&5
1544 (eval $ac_try) 2>&5
1545 ac_status=$?
1546 echo "$as_me:1546: \$? = $ac_status" >&5
1547 (exit $ac_status); }; }; then
1548 cross_compiling=no
1549 else
1550 if test "$cross_compiling" = maybe; then
1551 cross_compiling=yes
1552 else
1553 { { echo "$as_me:1553: error: cannot run C compiled programs.
1554 If you meant to cross compile, use \`--host'." >&5
1555 echo "$as_me: error: cannot run C compiled programs.
1556 If you meant to cross compile, use \`--host'." >&2;}
1557 { (exit 1); exit 1; }; }
1561 echo "$as_me:1561: result: yes" >&5
1562 echo "${ECHO_T}yes" >&6
1564 rm -f a.out a.exe conftest$ac_cv_exeext
1565 ac_clean_files=$ac_clean_files_save
1566 # Check the compiler produces executables we can run. If not, either
1567 # the compiler is broken, or we cross compile.
1568 echo "$as_me:1568: checking whether we are cross compiling" >&5
1569 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1570 echo "$as_me:1570: result: $cross_compiling" >&5
1571 echo "${ECHO_T}$cross_compiling" >&6
1573 echo "$as_me:1573: checking for executable suffix" >&5
1574 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1575 if { (eval echo "$as_me:1575: \"$ac_link\"") >&5
1576 (eval $ac_link) 2>&5
1577 ac_status=$?
1578 echo "$as_me:1578: \$? = $ac_status" >&5
1579 (exit $ac_status); }; then
1580 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1581 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1582 # work properly (i.e., refer to `conftest.exe'), while it won't with
1583 # `rm'.
1584 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1585 case $ac_file in
1586 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1587 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1588 export ac_cv_exeext
1589 break;;
1590 * ) break;;
1591 esac
1592 done
1593 else
1594 { { echo "$as_me:1594: error: cannot compute EXEEXT: cannot compile and link" >&5
1595 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1596 { (exit 1); exit 1; }; }
1599 rm -f conftest$ac_cv_exeext
1600 echo "$as_me:1600: result: $ac_cv_exeext" >&5
1601 echo "${ECHO_T}$ac_cv_exeext" >&6
1603 rm -f conftest.$ac_ext
1604 EXEEXT=$ac_cv_exeext
1605 ac_exeext=$EXEEXT
1606 echo "$as_me:1606: checking for object suffix" >&5
1607 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1608 if test "${ac_cv_objext+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1610 else
1611 cat >conftest.$ac_ext <<_ACEOF
1612 #line 1612 "configure"
1613 #include "confdefs.h"
1616 main ()
1620 return 0;
1622 _ACEOF
1623 rm -f conftest.o conftest.obj
1624 if { (eval echo "$as_me:1624: \"$ac_compile\"") >&5
1625 (eval $ac_compile) 2>&5
1626 ac_status=$?
1627 echo "$as_me:1627: \$? = $ac_status" >&5
1628 (exit $ac_status); }; then
1629 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1630 case $ac_file in
1631 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1632 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1633 break;;
1634 esac
1635 done
1636 else
1637 echo "$as_me: failed program was:" >&5
1638 cat conftest.$ac_ext >&5
1639 { { echo "$as_me:1639: error: cannot compute OBJEXT: cannot compile" >&5
1640 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1641 { (exit 1); exit 1; }; }
1644 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1646 echo "$as_me:1646: result: $ac_cv_objext" >&5
1647 echo "${ECHO_T}$ac_cv_objext" >&6
1648 OBJEXT=$ac_cv_objext
1649 ac_objext=$OBJEXT
1650 echo "$as_me:1650: checking whether we are using the GNU C compiler" >&5
1651 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1652 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 else
1655 cat >conftest.$ac_ext <<_ACEOF
1656 #line 1656 "configure"
1657 #include "confdefs.h"
1660 main ()
1662 #ifndef __GNUC__
1663 choke me
1664 #endif
1667 return 0;
1669 _ACEOF
1670 rm -f conftest.$ac_objext
1671 if { (eval echo "$as_me:1671: \"$ac_compile\"") >&5
1672 (eval $ac_compile) 2>&5
1673 ac_status=$?
1674 echo "$as_me:1674: \$? = $ac_status" >&5
1675 (exit $ac_status); } &&
1676 { ac_try='test -s conftest.$ac_objext'
1677 { (eval echo "$as_me:1677: \"$ac_try\"") >&5
1678 (eval $ac_try) 2>&5
1679 ac_status=$?
1680 echo "$as_me:1680: \$? = $ac_status" >&5
1681 (exit $ac_status); }; }; then
1682 ac_compiler_gnu=yes
1683 else
1684 echo "$as_me: failed program was:" >&5
1685 cat conftest.$ac_ext >&5
1686 ac_compiler_gnu=no
1688 rm -f conftest.$ac_objext conftest.$ac_ext
1689 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1692 echo "$as_me:1692: result: $ac_cv_c_compiler_gnu" >&5
1693 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1694 GCC=`test $ac_compiler_gnu = yes && echo yes`
1695 ac_test_CFLAGS=${CFLAGS+set}
1696 ac_save_CFLAGS=$CFLAGS
1697 CFLAGS="-g"
1698 echo "$as_me:1698: checking whether $CC accepts -g" >&5
1699 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1700 if test "${ac_cv_prog_cc_g+set}" = set; then
1701 echo $ECHO_N "(cached) $ECHO_C" >&6
1702 else
1703 cat >conftest.$ac_ext <<_ACEOF
1704 #line 1704 "configure"
1705 #include "confdefs.h"
1708 main ()
1712 return 0;
1714 _ACEOF
1715 rm -f conftest.$ac_objext
1716 if { (eval echo "$as_me:1716: \"$ac_compile\"") >&5
1717 (eval $ac_compile) 2>&5
1718 ac_status=$?
1719 echo "$as_me:1719: \$? = $ac_status" >&5
1720 (exit $ac_status); } &&
1721 { ac_try='test -s conftest.$ac_objext'
1722 { (eval echo "$as_me:1722: \"$ac_try\"") >&5
1723 (eval $ac_try) 2>&5
1724 ac_status=$?
1725 echo "$as_me:1725: \$? = $ac_status" >&5
1726 (exit $ac_status); }; }; then
1727 ac_cv_prog_cc_g=yes
1728 else
1729 echo "$as_me: failed program was:" >&5
1730 cat conftest.$ac_ext >&5
1731 ac_cv_prog_cc_g=no
1733 rm -f conftest.$ac_objext conftest.$ac_ext
1735 echo "$as_me:1735: result: $ac_cv_prog_cc_g" >&5
1736 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1737 if test "$ac_test_CFLAGS" = set; then
1738 CFLAGS=$ac_save_CFLAGS
1739 elif test $ac_cv_prog_cc_g = yes; then
1740 if test "$GCC" = yes; then
1741 CFLAGS="-g -O2"
1742 else
1743 CFLAGS="-g"
1745 else
1746 if test "$GCC" = yes; then
1747 CFLAGS="-O2"
1748 else
1749 CFLAGS=
1752 # Some people use a C++ compiler to compile C. Since we use `exit',
1753 # in C++ we need to declare it. In case someone uses the same compiler
1754 # for both compiling C and C++ we need to have the C++ compiler decide
1755 # the declaration of exit, since it's the most demanding environment.
1756 cat >conftest.$ac_ext <<_ACEOF
1757 #ifndef __cplusplus
1758 choke me
1759 #endif
1760 _ACEOF
1761 rm -f conftest.$ac_objext
1762 if { (eval echo "$as_me:1762: \"$ac_compile\"") >&5
1763 (eval $ac_compile) 2>&5
1764 ac_status=$?
1765 echo "$as_me:1765: \$? = $ac_status" >&5
1766 (exit $ac_status); } &&
1767 { ac_try='test -s conftest.$ac_objext'
1768 { (eval echo "$as_me:1768: \"$ac_try\"") >&5
1769 (eval $ac_try) 2>&5
1770 ac_status=$?
1771 echo "$as_me:1771: \$? = $ac_status" >&5
1772 (exit $ac_status); }; }; then
1773 for ac_declaration in \
1775 '#include <stdlib.h>' \
1776 'extern "C" void std::exit (int) throw (); using std::exit;' \
1777 'extern "C" void std::exit (int); using std::exit;' \
1778 'extern "C" void exit (int) throw ();' \
1779 'extern "C" void exit (int);' \
1780 'void exit (int);'
1782 cat >conftest.$ac_ext <<_ACEOF
1783 #line 1783 "configure"
1784 #include "confdefs.h"
1785 #include <stdlib.h>
1786 $ac_declaration
1788 main ()
1790 exit (42);
1792 return 0;
1794 _ACEOF
1795 rm -f conftest.$ac_objext
1796 if { (eval echo "$as_me:1796: \"$ac_compile\"") >&5
1797 (eval $ac_compile) 2>&5
1798 ac_status=$?
1799 echo "$as_me:1799: \$? = $ac_status" >&5
1800 (exit $ac_status); } &&
1801 { ac_try='test -s conftest.$ac_objext'
1802 { (eval echo "$as_me:1802: \"$ac_try\"") >&5
1803 (eval $ac_try) 2>&5
1804 ac_status=$?
1805 echo "$as_me:1805: \$? = $ac_status" >&5
1806 (exit $ac_status); }; }; then
1808 else
1809 echo "$as_me: failed program was:" >&5
1810 cat conftest.$ac_ext >&5
1811 continue
1813 rm -f conftest.$ac_objext conftest.$ac_ext
1814 cat >conftest.$ac_ext <<_ACEOF
1815 #line 1815 "configure"
1816 #include "confdefs.h"
1817 $ac_declaration
1819 main ()
1821 exit (42);
1823 return 0;
1825 _ACEOF
1826 rm -f conftest.$ac_objext
1827 if { (eval echo "$as_me:1827: \"$ac_compile\"") >&5
1828 (eval $ac_compile) 2>&5
1829 ac_status=$?
1830 echo "$as_me:1830: \$? = $ac_status" >&5
1831 (exit $ac_status); } &&
1832 { ac_try='test -s conftest.$ac_objext'
1833 { (eval echo "$as_me:1833: \"$ac_try\"") >&5
1834 (eval $ac_try) 2>&5
1835 ac_status=$?
1836 echo "$as_me:1836: \$? = $ac_status" >&5
1837 (exit $ac_status); }; }; then
1838 break
1839 else
1840 echo "$as_me: failed program was:" >&5
1841 cat conftest.$ac_ext >&5
1843 rm -f conftest.$ac_objext conftest.$ac_ext
1844 done
1845 rm -f conftest*
1846 if test -n "$ac_declaration"; then
1847 echo '#ifdef __cplusplus' >>confdefs.h
1848 echo $ac_declaration >>confdefs.h
1849 echo '#endif' >>confdefs.h
1852 else
1853 echo "$as_me: failed program was:" >&5
1854 cat conftest.$ac_ext >&5
1856 rm -f conftest.$ac_objext conftest.$ac_ext
1857 ac_ext=c
1858 ac_cpp='$CPP $CPPFLAGS'
1859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1863 ac_ext=c
1864 ac_cpp='$CPP $CPPFLAGS'
1865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1868 echo "$as_me:1868: checking how to run the C preprocessor" >&5
1869 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1870 # On Suns, sometimes $CPP names a directory.
1871 if test -n "$CPP" && test -d "$CPP"; then
1872 CPP=
1874 if test -z "$CPP"; then
1875 if test "${ac_cv_prog_CPP+set}" = set; then
1876 echo $ECHO_N "(cached) $ECHO_C" >&6
1877 else
1878 # Double quotes because CPP needs to be expanded
1879 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1881 ac_preproc_ok=false
1882 for ac_c_preproc_warn_flag in '' yes
1884 # Use a header file that comes with gcc, so configuring glibc
1885 # with a fresh cross-compiler works.
1886 # On the NeXT, cc -E runs the code through the compiler's parser,
1887 # not just through cpp. "Syntax error" is here to catch this case.
1888 cat >conftest.$ac_ext <<_ACEOF
1889 #line 1889 "configure"
1890 #include "confdefs.h"
1891 #include <assert.h>
1892 Syntax error
1893 _ACEOF
1894 if { (eval echo "$as_me:1894: \"$ac_cpp conftest.$ac_ext\"") >&5
1895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1896 ac_status=$?
1897 egrep -v '^ *\+' conftest.er1 >conftest.err
1898 rm -f conftest.er1
1899 cat conftest.err >&5
1900 echo "$as_me:1900: \$? = $ac_status" >&5
1901 (exit $ac_status); } >/dev/null; then
1902 if test -s conftest.err; then
1903 ac_cpp_err=$ac_c_preproc_warn_flag
1904 else
1905 ac_cpp_err=
1907 else
1908 ac_cpp_err=yes
1910 if test -z "$ac_cpp_err"; then
1912 else
1913 echo "$as_me: failed program was:" >&5
1914 cat conftest.$ac_ext >&5
1915 # Broken: fails on valid input.
1916 continue
1918 rm -f conftest.err conftest.$ac_ext
1920 # OK, works on sane cases. Now check whether non-existent headers
1921 # can be detected and how.
1922 cat >conftest.$ac_ext <<_ACEOF
1923 #line 1923 "configure"
1924 #include "confdefs.h"
1925 #include <ac_nonexistent.h>
1926 _ACEOF
1927 if { (eval echo "$as_me:1927: \"$ac_cpp conftest.$ac_ext\"") >&5
1928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1929 ac_status=$?
1930 egrep -v '^ *\+' conftest.er1 >conftest.err
1931 rm -f conftest.er1
1932 cat conftest.err >&5
1933 echo "$as_me:1933: \$? = $ac_status" >&5
1934 (exit $ac_status); } >/dev/null; then
1935 if test -s conftest.err; then
1936 ac_cpp_err=$ac_c_preproc_warn_flag
1937 else
1938 ac_cpp_err=
1940 else
1941 ac_cpp_err=yes
1943 if test -z "$ac_cpp_err"; then
1944 # Broken: success on invalid input.
1945 continue
1946 else
1947 echo "$as_me: failed program was:" >&5
1948 cat conftest.$ac_ext >&5
1949 # Passes both tests.
1950 ac_preproc_ok=:
1951 break
1953 rm -f conftest.err conftest.$ac_ext
1955 done
1956 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1957 rm -f conftest.err conftest.$ac_ext
1958 if $ac_preproc_ok; then
1959 break
1962 done
1963 ac_cv_prog_CPP=$CPP
1966 CPP=$ac_cv_prog_CPP
1967 else
1968 ac_cv_prog_CPP=$CPP
1970 echo "$as_me:1970: result: $CPP" >&5
1971 echo "${ECHO_T}$CPP" >&6
1972 ac_preproc_ok=false
1973 for ac_c_preproc_warn_flag in '' yes
1975 # Use a header file that comes with gcc, so configuring glibc
1976 # with a fresh cross-compiler works.
1977 # On the NeXT, cc -E runs the code through the compiler's parser,
1978 # not just through cpp. "Syntax error" is here to catch this case.
1979 cat >conftest.$ac_ext <<_ACEOF
1980 #line 1980 "configure"
1981 #include "confdefs.h"
1982 #include <assert.h>
1983 Syntax error
1984 _ACEOF
1985 if { (eval echo "$as_me:1985: \"$ac_cpp conftest.$ac_ext\"") >&5
1986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1987 ac_status=$?
1988 egrep -v '^ *\+' conftest.er1 >conftest.err
1989 rm -f conftest.er1
1990 cat conftest.err >&5
1991 echo "$as_me:1991: \$? = $ac_status" >&5
1992 (exit $ac_status); } >/dev/null; then
1993 if test -s conftest.err; then
1994 ac_cpp_err=$ac_c_preproc_warn_flag
1995 else
1996 ac_cpp_err=
1998 else
1999 ac_cpp_err=yes
2001 if test -z "$ac_cpp_err"; then
2003 else
2004 echo "$as_me: failed program was:" >&5
2005 cat conftest.$ac_ext >&5
2006 # Broken: fails on valid input.
2007 continue
2009 rm -f conftest.err conftest.$ac_ext
2011 # OK, works on sane cases. Now check whether non-existent headers
2012 # can be detected and how.
2013 cat >conftest.$ac_ext <<_ACEOF
2014 #line 2014 "configure"
2015 #include "confdefs.h"
2016 #include <ac_nonexistent.h>
2017 _ACEOF
2018 if { (eval echo "$as_me:2018: \"$ac_cpp conftest.$ac_ext\"") >&5
2019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2020 ac_status=$?
2021 egrep -v '^ *\+' conftest.er1 >conftest.err
2022 rm -f conftest.er1
2023 cat conftest.err >&5
2024 echo "$as_me:2024: \$? = $ac_status" >&5
2025 (exit $ac_status); } >/dev/null; then
2026 if test -s conftest.err; then
2027 ac_cpp_err=$ac_c_preproc_warn_flag
2028 else
2029 ac_cpp_err=
2031 else
2032 ac_cpp_err=yes
2034 if test -z "$ac_cpp_err"; then
2035 # Broken: success on invalid input.
2036 continue
2037 else
2038 echo "$as_me: failed program was:" >&5
2039 cat conftest.$ac_ext >&5
2040 # Passes both tests.
2041 ac_preproc_ok=:
2042 break
2044 rm -f conftest.err conftest.$ac_ext
2046 done
2047 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2048 rm -f conftest.err conftest.$ac_ext
2049 if $ac_preproc_ok; then
2051 else
2052 { { echo "$as_me:2052: error: C preprocessor \"$CPP\" fails sanity check" >&5
2053 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2054 { (exit 1); exit 1; }; }
2057 ac_ext=c
2058 ac_cpp='$CPP $CPPFLAGS'
2059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2063 echo "$as_me:2063: checking for X" >&5
2064 echo $ECHO_N "checking for X... $ECHO_C" >&6
2066 # Check whether --with-x or --without-x was given.
2067 if test "${with_x+set}" = set; then
2068 withval="$with_x"
2071 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2072 if test "x$with_x" = xno; then
2073 # The user explicitly disabled X.
2074 have_x=disabled
2075 else
2076 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2077 # Both variables are already set.
2078 have_x=yes
2079 else
2080 if test "${ac_cv_have_x+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2082 else
2083 # One or both of the vars are not set, and there is no cached value.
2084 ac_x_includes=no ac_x_libraries=no
2085 rm -fr conftest.dir
2086 if mkdir conftest.dir; then
2087 cd conftest.dir
2088 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2089 cat >Imakefile <<'EOF'
2090 acfindx:
2091 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2093 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2094 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2095 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2096 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2097 for ac_extension in a so sl; do
2098 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2099 test -f $ac_im_libdir/libX11.$ac_extension; then
2100 ac_im_usrlibdir=$ac_im_libdir; break
2102 done
2103 # Screen out bogus values from the imake configuration. They are
2104 # bogus both because they are the default anyway, and because
2105 # using them would break gcc on systems where it needs fixed includes.
2106 case $ac_im_incroot in
2107 /usr/include) ;;
2108 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2109 esac
2110 case $ac_im_usrlibdir in
2111 /usr/lib | /lib) ;;
2112 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2113 esac
2115 cd ..
2116 rm -fr conftest.dir
2119 # Standard set of common directories for X headers.
2120 # Check X11 before X11Rn because it is often a symlink to the current release.
2121 ac_x_header_dirs='
2122 /usr/X11/include
2123 /usr/X11R6/include
2124 /usr/X11R5/include
2125 /usr/X11R4/include
2127 /usr/include/X11
2128 /usr/include/X11R6
2129 /usr/include/X11R5
2130 /usr/include/X11R4
2132 /usr/local/X11/include
2133 /usr/local/X11R6/include
2134 /usr/local/X11R5/include
2135 /usr/local/X11R4/include
2137 /usr/local/include/X11
2138 /usr/local/include/X11R6
2139 /usr/local/include/X11R5
2140 /usr/local/include/X11R4
2142 /usr/X386/include
2143 /usr/x386/include
2144 /usr/XFree86/include/X11
2146 /usr/include
2147 /usr/local/include
2148 /usr/unsupported/include
2149 /usr/athena/include
2150 /usr/local/x11r5/include
2151 /usr/lpp/Xamples/include
2153 /usr/openwin/include
2154 /usr/openwin/share/include'
2156 if test "$ac_x_includes" = no; then
2157 # Guess where to find include files, by looking for Intrinsic.h.
2158 # First, try using that file with no special directory specified.
2159 cat >conftest.$ac_ext <<_ACEOF
2160 #line 2160 "configure"
2161 #include "confdefs.h"
2162 #include <X11/Intrinsic.h>
2163 _ACEOF
2164 if { (eval echo "$as_me:2164: \"$ac_cpp conftest.$ac_ext\"") >&5
2165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2166 ac_status=$?
2167 egrep -v '^ *\+' conftest.er1 >conftest.err
2168 rm -f conftest.er1
2169 cat conftest.err >&5
2170 echo "$as_me:2170: \$? = $ac_status" >&5
2171 (exit $ac_status); } >/dev/null; then
2172 if test -s conftest.err; then
2173 ac_cpp_err=$ac_c_preproc_warn_flag
2174 else
2175 ac_cpp_err=
2177 else
2178 ac_cpp_err=yes
2180 if test -z "$ac_cpp_err"; then
2181 # We can compile using X headers with no special include directory.
2182 ac_x_includes=
2183 else
2184 echo "$as_me: failed program was:" >&5
2185 cat conftest.$ac_ext >&5
2186 for ac_dir in $ac_x_header_dirs; do
2187 if test -r "$ac_dir/X11/Intrinsic.h"; then
2188 ac_x_includes=$ac_dir
2189 break
2191 done
2193 rm -f conftest.err conftest.$ac_ext
2194 fi # $ac_x_includes = no
2196 if test "$ac_x_libraries" = no; then
2197 # Check for the libraries.
2198 # See if we find them without any special options.
2199 # Don't add to $LIBS permanently.
2200 ac_save_LIBS=$LIBS
2201 LIBS="-lXt $LIBS"
2202 cat >conftest.$ac_ext <<_ACEOF
2203 #line 2203 "configure"
2204 #include "confdefs.h"
2205 #include <X11/Intrinsic.h>
2207 main ()
2209 XtMalloc (0)
2211 return 0;
2213 _ACEOF
2214 rm -f conftest.$ac_objext conftest$ac_exeext
2215 if { (eval echo "$as_me:2215: \"$ac_link\"") >&5
2216 (eval $ac_link) 2>&5
2217 ac_status=$?
2218 echo "$as_me:2218: \$? = $ac_status" >&5
2219 (exit $ac_status); } &&
2220 { ac_try='test -s conftest$ac_exeext'
2221 { (eval echo "$as_me:2221: \"$ac_try\"") >&5
2222 (eval $ac_try) 2>&5
2223 ac_status=$?
2224 echo "$as_me:2224: \$? = $ac_status" >&5
2225 (exit $ac_status); }; }; then
2226 LIBS=$ac_save_LIBS
2227 # We can link X programs with no special library path.
2228 ac_x_libraries=
2229 else
2230 echo "$as_me: failed program was:" >&5
2231 cat conftest.$ac_ext >&5
2232 LIBS=$ac_save_LIBS
2233 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2235 # Don't even attempt the hair of trying to link an X program!
2236 for ac_extension in a so sl; do
2237 if test -r $ac_dir/libXt.$ac_extension; then
2238 ac_x_libraries=$ac_dir
2239 break 2
2241 done
2242 done
2244 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2245 fi # $ac_x_libraries = no
2247 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2248 # Didn't find X anywhere. Cache the known absence of X.
2249 ac_cv_have_x="have_x=no"
2250 else
2251 # Record where we found X for the cache.
2252 ac_cv_have_x="have_x=yes \
2253 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2258 eval "$ac_cv_have_x"
2259 fi # $with_x != no
2261 if test "$have_x" != yes; then
2262 echo "$as_me:2262: result: $have_x" >&5
2263 echo "${ECHO_T}$have_x" >&6
2264 no_x=yes
2265 else
2266 # If each of the values was on the command line, it overrides each guess.
2267 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2268 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2269 # Update the cache value to reflect the command line values.
2270 ac_cv_have_x="have_x=yes \
2271 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2272 echo "$as_me:2272: result: libraries $x_libraries, headers $x_includes" >&5
2273 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2276 if test "$no_x" = yes; then
2277 # Not all programs may use this symbol, but it does not hurt to define it.
2279 cat >>confdefs.h <<\EOF
2280 #define X_DISPLAY_MISSING 1
2283 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2284 else
2285 if test -n "$x_includes"; then
2286 X_CFLAGS="$X_CFLAGS -I$x_includes"
2289 # It would also be nice to do this for all -L options, not just this one.
2290 if test -n "$x_libraries"; then
2291 X_LIBS="$X_LIBS -L$x_libraries"
2292 # For Solaris; some versions of Sun CC require a space after -R and
2293 # others require no space. Words are not sufficient . . . .
2294 case `(uname -sr) 2>/dev/null` in
2295 "SunOS 5"*)
2296 echo "$as_me:2296: checking whether -R must be followed by a space" >&5
2297 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2298 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2299 cat >conftest.$ac_ext <<_ACEOF
2300 #line 2300 "configure"
2301 #include "confdefs.h"
2304 main ()
2308 return 0;
2310 _ACEOF
2311 rm -f conftest.$ac_objext conftest$ac_exeext
2312 if { (eval echo "$as_me:2312: \"$ac_link\"") >&5
2313 (eval $ac_link) 2>&5
2314 ac_status=$?
2315 echo "$as_me:2315: \$? = $ac_status" >&5
2316 (exit $ac_status); } &&
2317 { ac_try='test -s conftest$ac_exeext'
2318 { (eval echo "$as_me:2318: \"$ac_try\"") >&5
2319 (eval $ac_try) 2>&5
2320 ac_status=$?
2321 echo "$as_me:2321: \$? = $ac_status" >&5
2322 (exit $ac_status); }; }; then
2323 ac_R_nospace=yes
2324 else
2325 echo "$as_me: failed program was:" >&5
2326 cat conftest.$ac_ext >&5
2327 ac_R_nospace=no
2329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2330 if test $ac_R_nospace = yes; then
2331 echo "$as_me:2331: result: no" >&5
2332 echo "${ECHO_T}no" >&6
2333 X_LIBS="$X_LIBS -R$x_libraries"
2334 else
2335 LIBS="$ac_xsave_LIBS -R $x_libraries"
2336 cat >conftest.$ac_ext <<_ACEOF
2337 #line 2337 "configure"
2338 #include "confdefs.h"
2341 main ()
2345 return 0;
2347 _ACEOF
2348 rm -f conftest.$ac_objext conftest$ac_exeext
2349 if { (eval echo "$as_me:2349: \"$ac_link\"") >&5
2350 (eval $ac_link) 2>&5
2351 ac_status=$?
2352 echo "$as_me:2352: \$? = $ac_status" >&5
2353 (exit $ac_status); } &&
2354 { ac_try='test -s conftest$ac_exeext'
2355 { (eval echo "$as_me:2355: \"$ac_try\"") >&5
2356 (eval $ac_try) 2>&5
2357 ac_status=$?
2358 echo "$as_me:2358: \$? = $ac_status" >&5
2359 (exit $ac_status); }; }; then
2360 ac_R_space=yes
2361 else
2362 echo "$as_me: failed program was:" >&5
2363 cat conftest.$ac_ext >&5
2364 ac_R_space=no
2366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2367 if test $ac_R_space = yes; then
2368 echo "$as_me:2368: result: yes" >&5
2369 echo "${ECHO_T}yes" >&6
2370 X_LIBS="$X_LIBS -R $x_libraries"
2371 else
2372 echo "$as_me:2372: result: neither works" >&5
2373 echo "${ECHO_T}neither works" >&6
2376 LIBS=$ac_xsave_LIBS
2377 esac
2380 # Check for system-dependent libraries X programs must link with.
2381 # Do this before checking for the system-independent R6 libraries
2382 # (-lICE), since we may need -lsocket or whatever for X linking.
2384 if test "$ISC" = yes; then
2385 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2386 else
2387 # Martyn Johnson says this is needed for Ultrix, if the X
2388 # libraries were built with DECnet support. And Karl Berry says
2389 # the Alpha needs dnet_stub (dnet does not exist).
2390 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2391 cat >conftest.$ac_ext <<_ACEOF
2392 #line 2392 "configure"
2393 #include "confdefs.h"
2395 /* Override any gcc2 internal prototype to avoid an error. */
2396 #ifdef __cplusplus
2397 extern "C"
2398 #endif
2399 /* We use char because int might match the return type of a gcc2
2400 builtin and then its argument prototype would still apply. */
2401 char XOpenDisplay ();
2403 main ()
2405 XOpenDisplay ();
2407 return 0;
2409 _ACEOF
2410 rm -f conftest.$ac_objext conftest$ac_exeext
2411 if { (eval echo "$as_me:2411: \"$ac_link\"") >&5
2412 (eval $ac_link) 2>&5
2413 ac_status=$?
2414 echo "$as_me:2414: \$? = $ac_status" >&5
2415 (exit $ac_status); } &&
2416 { ac_try='test -s conftest$ac_exeext'
2417 { (eval echo "$as_me:2417: \"$ac_try\"") >&5
2418 (eval $ac_try) 2>&5
2419 ac_status=$?
2420 echo "$as_me:2420: \$? = $ac_status" >&5
2421 (exit $ac_status); }; }; then
2423 else
2424 echo "$as_me: failed program was:" >&5
2425 cat conftest.$ac_ext >&5
2426 echo "$as_me:2426: checking for dnet_ntoa in -ldnet" >&5
2427 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2428 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
2430 else
2431 ac_check_lib_save_LIBS=$LIBS
2432 LIBS="-ldnet $LIBS"
2433 cat >conftest.$ac_ext <<_ACEOF
2434 #line 2434 "configure"
2435 #include "confdefs.h"
2437 /* Override any gcc2 internal prototype to avoid an error. */
2438 #ifdef __cplusplus
2439 extern "C"
2440 #endif
2441 /* We use char because int might match the return type of a gcc2
2442 builtin and then its argument prototype would still apply. */
2443 char dnet_ntoa ();
2445 main ()
2447 dnet_ntoa ();
2449 return 0;
2451 _ACEOF
2452 rm -f conftest.$ac_objext conftest$ac_exeext
2453 if { (eval echo "$as_me:2453: \"$ac_link\"") >&5
2454 (eval $ac_link) 2>&5
2455 ac_status=$?
2456 echo "$as_me:2456: \$? = $ac_status" >&5
2457 (exit $ac_status); } &&
2458 { ac_try='test -s conftest$ac_exeext'
2459 { (eval echo "$as_me:2459: \"$ac_try\"") >&5
2460 (eval $ac_try) 2>&5
2461 ac_status=$?
2462 echo "$as_me:2462: \$? = $ac_status" >&5
2463 (exit $ac_status); }; }; then
2464 ac_cv_lib_dnet_dnet_ntoa=yes
2465 else
2466 echo "$as_me: failed program was:" >&5
2467 cat conftest.$ac_ext >&5
2468 ac_cv_lib_dnet_dnet_ntoa=no
2470 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2471 LIBS=$ac_check_lib_save_LIBS
2473 echo "$as_me:2473: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
2474 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
2475 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
2476 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2479 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2480 echo "$as_me:2480: checking for dnet_ntoa in -ldnet_stub" >&5
2481 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
2482 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485 ac_check_lib_save_LIBS=$LIBS
2486 LIBS="-ldnet_stub $LIBS"
2487 cat >conftest.$ac_ext <<_ACEOF
2488 #line 2488 "configure"
2489 #include "confdefs.h"
2491 /* Override any gcc2 internal prototype to avoid an error. */
2492 #ifdef __cplusplus
2493 extern "C"
2494 #endif
2495 /* We use char because int might match the return type of a gcc2
2496 builtin and then its argument prototype would still apply. */
2497 char dnet_ntoa ();
2499 main ()
2501 dnet_ntoa ();
2503 return 0;
2505 _ACEOF
2506 rm -f conftest.$ac_objext conftest$ac_exeext
2507 if { (eval echo "$as_me:2507: \"$ac_link\"") >&5
2508 (eval $ac_link) 2>&5
2509 ac_status=$?
2510 echo "$as_me:2510: \$? = $ac_status" >&5
2511 (exit $ac_status); } &&
2512 { ac_try='test -s conftest$ac_exeext'
2513 { (eval echo "$as_me:2513: \"$ac_try\"") >&5
2514 (eval $ac_try) 2>&5
2515 ac_status=$?
2516 echo "$as_me:2516: \$? = $ac_status" >&5
2517 (exit $ac_status); }; }; then
2518 ac_cv_lib_dnet_stub_dnet_ntoa=yes
2519 else
2520 echo "$as_me: failed program was:" >&5
2521 cat conftest.$ac_ext >&5
2522 ac_cv_lib_dnet_stub_dnet_ntoa=no
2524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2525 LIBS=$ac_check_lib_save_LIBS
2527 echo "$as_me:2527: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
2528 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
2529 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
2530 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2536 LIBS="$ac_xsave_LIBS"
2538 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2539 # to get the SysV transport functions.
2540 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
2541 # needs -lnsl.
2542 # The nsl library prevents programs from opening the X display
2543 # on Irix 5.2, according to T.E. Dickey.
2544 # The functions gethostbyname, getservbyname, and inet_addr are
2545 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
2546 echo "$as_me:2546: checking for gethostbyname" >&5
2547 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2548 if test "${ac_cv_func_gethostbyname+set}" = set; then
2549 echo $ECHO_N "(cached) $ECHO_C" >&6
2550 else
2551 cat >conftest.$ac_ext <<_ACEOF
2552 #line 2552 "configure"
2553 #include "confdefs.h"
2554 /* System header to define __stub macros and hopefully few prototypes,
2555 which can conflict with char gethostbyname (); below. */
2556 #include <assert.h>
2557 /* Override any gcc2 internal prototype to avoid an error. */
2558 #ifdef __cplusplus
2559 extern "C"
2560 #endif
2561 /* We use char because int might match the return type of a gcc2
2562 builtin and then its argument prototype would still apply. */
2563 char gethostbyname ();
2564 char (*f) ();
2567 main ()
2569 /* The GNU C library defines this for functions which it implements
2570 to always fail with ENOSYS. Some functions are actually named
2571 something starting with __ and the normal name is an alias. */
2572 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2573 choke me
2574 #else
2575 f = gethostbyname;
2576 #endif
2579 return 0;
2581 _ACEOF
2582 rm -f conftest.$ac_objext conftest$ac_exeext
2583 if { (eval echo "$as_me:2583: \"$ac_link\"") >&5
2584 (eval $ac_link) 2>&5
2585 ac_status=$?
2586 echo "$as_me:2586: \$? = $ac_status" >&5
2587 (exit $ac_status); } &&
2588 { ac_try='test -s conftest$ac_exeext'
2589 { (eval echo "$as_me:2589: \"$ac_try\"") >&5
2590 (eval $ac_try) 2>&5
2591 ac_status=$?
2592 echo "$as_me:2592: \$? = $ac_status" >&5
2593 (exit $ac_status); }; }; then
2594 ac_cv_func_gethostbyname=yes
2595 else
2596 echo "$as_me: failed program was:" >&5
2597 cat conftest.$ac_ext >&5
2598 ac_cv_func_gethostbyname=no
2600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2602 echo "$as_me:2602: result: $ac_cv_func_gethostbyname" >&5
2603 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
2605 if test $ac_cv_func_gethostbyname = no; then
2606 echo "$as_me:2606: checking for gethostbyname in -lnsl" >&5
2607 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2608 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2609 echo $ECHO_N "(cached) $ECHO_C" >&6
2610 else
2611 ac_check_lib_save_LIBS=$LIBS
2612 LIBS="-lnsl $LIBS"
2613 cat >conftest.$ac_ext <<_ACEOF
2614 #line 2614 "configure"
2615 #include "confdefs.h"
2617 /* Override any gcc2 internal prototype to avoid an error. */
2618 #ifdef __cplusplus
2619 extern "C"
2620 #endif
2621 /* We use char because int might match the return type of a gcc2
2622 builtin and then its argument prototype would still apply. */
2623 char gethostbyname ();
2625 main ()
2627 gethostbyname ();
2629 return 0;
2631 _ACEOF
2632 rm -f conftest.$ac_objext conftest$ac_exeext
2633 if { (eval echo "$as_me:2633: \"$ac_link\"") >&5
2634 (eval $ac_link) 2>&5
2635 ac_status=$?
2636 echo "$as_me:2636: \$? = $ac_status" >&5
2637 (exit $ac_status); } &&
2638 { ac_try='test -s conftest$ac_exeext'
2639 { (eval echo "$as_me:2639: \"$ac_try\"") >&5
2640 (eval $ac_try) 2>&5
2641 ac_status=$?
2642 echo "$as_me:2642: \$? = $ac_status" >&5
2643 (exit $ac_status); }; }; then
2644 ac_cv_lib_nsl_gethostbyname=yes
2645 else
2646 echo "$as_me: failed program was:" >&5
2647 cat conftest.$ac_ext >&5
2648 ac_cv_lib_nsl_gethostbyname=no
2650 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2651 LIBS=$ac_check_lib_save_LIBS
2653 echo "$as_me:2653: result: $ac_cv_lib_nsl_gethostbyname" >&5
2654 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
2655 if test $ac_cv_lib_nsl_gethostbyname = yes; then
2656 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2659 if test $ac_cv_lib_nsl_gethostbyname = no; then
2660 echo "$as_me:2660: checking for gethostbyname in -lbsd" >&5
2661 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
2662 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2664 else
2665 ac_check_lib_save_LIBS=$LIBS
2666 LIBS="-lbsd $LIBS"
2667 cat >conftest.$ac_ext <<_ACEOF
2668 #line 2668 "configure"
2669 #include "confdefs.h"
2671 /* Override any gcc2 internal prototype to avoid an error. */
2672 #ifdef __cplusplus
2673 extern "C"
2674 #endif
2675 /* We use char because int might match the return type of a gcc2
2676 builtin and then its argument prototype would still apply. */
2677 char gethostbyname ();
2679 main ()
2681 gethostbyname ();
2683 return 0;
2685 _ACEOF
2686 rm -f conftest.$ac_objext conftest$ac_exeext
2687 if { (eval echo "$as_me:2687: \"$ac_link\"") >&5
2688 (eval $ac_link) 2>&5
2689 ac_status=$?
2690 echo "$as_me:2690: \$? = $ac_status" >&5
2691 (exit $ac_status); } &&
2692 { ac_try='test -s conftest$ac_exeext'
2693 { (eval echo "$as_me:2693: \"$ac_try\"") >&5
2694 (eval $ac_try) 2>&5
2695 ac_status=$?
2696 echo "$as_me:2696: \$? = $ac_status" >&5
2697 (exit $ac_status); }; }; then
2698 ac_cv_lib_bsd_gethostbyname=yes
2699 else
2700 echo "$as_me: failed program was:" >&5
2701 cat conftest.$ac_ext >&5
2702 ac_cv_lib_bsd_gethostbyname=no
2704 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2705 LIBS=$ac_check_lib_save_LIBS
2707 echo "$as_me:2707: result: $ac_cv_lib_bsd_gethostbyname" >&5
2708 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
2709 if test $ac_cv_lib_bsd_gethostbyname = yes; then
2710 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
2716 # lieder@skyler.mavd.honeywell.com says without -lsocket,
2717 # socket/setsockopt and other routines are undefined under SCO ODT
2718 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
2719 # on later versions), says Simon Leinen: it contains gethostby*
2720 # variants that don't use the nameserver (or something). -lsocket
2721 # must be given before -lnsl if both are needed. We assume that
2722 # if connect needs -lnsl, so does gethostbyname.
2723 echo "$as_me:2723: checking for connect" >&5
2724 echo $ECHO_N "checking for connect... $ECHO_C" >&6
2725 if test "${ac_cv_func_connect+set}" = set; then
2726 echo $ECHO_N "(cached) $ECHO_C" >&6
2727 else
2728 cat >conftest.$ac_ext <<_ACEOF
2729 #line 2729 "configure"
2730 #include "confdefs.h"
2731 /* System header to define __stub macros and hopefully few prototypes,
2732 which can conflict with char connect (); below. */
2733 #include <assert.h>
2734 /* Override any gcc2 internal prototype to avoid an error. */
2735 #ifdef __cplusplus
2736 extern "C"
2737 #endif
2738 /* We use char because int might match the return type of a gcc2
2739 builtin and then its argument prototype would still apply. */
2740 char connect ();
2741 char (*f) ();
2744 main ()
2746 /* The GNU C library defines this for functions which it implements
2747 to always fail with ENOSYS. Some functions are actually named
2748 something starting with __ and the normal name is an alias. */
2749 #if defined (__stub_connect) || defined (__stub___connect)
2750 choke me
2751 #else
2752 f = connect;
2753 #endif
2756 return 0;
2758 _ACEOF
2759 rm -f conftest.$ac_objext conftest$ac_exeext
2760 if { (eval echo "$as_me:2760: \"$ac_link\"") >&5
2761 (eval $ac_link) 2>&5
2762 ac_status=$?
2763 echo "$as_me:2763: \$? = $ac_status" >&5
2764 (exit $ac_status); } &&
2765 { ac_try='test -s conftest$ac_exeext'
2766 { (eval echo "$as_me:2766: \"$ac_try\"") >&5
2767 (eval $ac_try) 2>&5
2768 ac_status=$?
2769 echo "$as_me:2769: \$? = $ac_status" >&5
2770 (exit $ac_status); }; }; then
2771 ac_cv_func_connect=yes
2772 else
2773 echo "$as_me: failed program was:" >&5
2774 cat conftest.$ac_ext >&5
2775 ac_cv_func_connect=no
2777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2779 echo "$as_me:2779: result: $ac_cv_func_connect" >&5
2780 echo "${ECHO_T}$ac_cv_func_connect" >&6
2782 if test $ac_cv_func_connect = no; then
2783 echo "$as_me:2783: checking for connect in -lsocket" >&5
2784 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
2785 if test "${ac_cv_lib_socket_connect+set}" = set; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
2787 else
2788 ac_check_lib_save_LIBS=$LIBS
2789 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
2790 cat >conftest.$ac_ext <<_ACEOF
2791 #line 2791 "configure"
2792 #include "confdefs.h"
2794 /* Override any gcc2 internal prototype to avoid an error. */
2795 #ifdef __cplusplus
2796 extern "C"
2797 #endif
2798 /* We use char because int might match the return type of a gcc2
2799 builtin and then its argument prototype would still apply. */
2800 char connect ();
2802 main ()
2804 connect ();
2806 return 0;
2808 _ACEOF
2809 rm -f conftest.$ac_objext conftest$ac_exeext
2810 if { (eval echo "$as_me:2810: \"$ac_link\"") >&5
2811 (eval $ac_link) 2>&5
2812 ac_status=$?
2813 echo "$as_me:2813: \$? = $ac_status" >&5
2814 (exit $ac_status); } &&
2815 { ac_try='test -s conftest$ac_exeext'
2816 { (eval echo "$as_me:2816: \"$ac_try\"") >&5
2817 (eval $ac_try) 2>&5
2818 ac_status=$?
2819 echo "$as_me:2819: \$? = $ac_status" >&5
2820 (exit $ac_status); }; }; then
2821 ac_cv_lib_socket_connect=yes
2822 else
2823 echo "$as_me: failed program was:" >&5
2824 cat conftest.$ac_ext >&5
2825 ac_cv_lib_socket_connect=no
2827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2828 LIBS=$ac_check_lib_save_LIBS
2830 echo "$as_me:2830: result: $ac_cv_lib_socket_connect" >&5
2831 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
2832 if test $ac_cv_lib_socket_connect = yes; then
2833 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
2838 # Guillermo Gomez says -lposix is necessary on A/UX.
2839 echo "$as_me:2839: checking for remove" >&5
2840 echo $ECHO_N "checking for remove... $ECHO_C" >&6
2841 if test "${ac_cv_func_remove+set}" = set; then
2842 echo $ECHO_N "(cached) $ECHO_C" >&6
2843 else
2844 cat >conftest.$ac_ext <<_ACEOF
2845 #line 2845 "configure"
2846 #include "confdefs.h"
2847 /* System header to define __stub macros and hopefully few prototypes,
2848 which can conflict with char remove (); below. */
2849 #include <assert.h>
2850 /* Override any gcc2 internal prototype to avoid an error. */
2851 #ifdef __cplusplus
2852 extern "C"
2853 #endif
2854 /* We use char because int might match the return type of a gcc2
2855 builtin and then its argument prototype would still apply. */
2856 char remove ();
2857 char (*f) ();
2860 main ()
2862 /* The GNU C library defines this for functions which it implements
2863 to always fail with ENOSYS. Some functions are actually named
2864 something starting with __ and the normal name is an alias. */
2865 #if defined (__stub_remove) || defined (__stub___remove)
2866 choke me
2867 #else
2868 f = remove;
2869 #endif
2872 return 0;
2874 _ACEOF
2875 rm -f conftest.$ac_objext conftest$ac_exeext
2876 if { (eval echo "$as_me:2876: \"$ac_link\"") >&5
2877 (eval $ac_link) 2>&5
2878 ac_status=$?
2879 echo "$as_me:2879: \$? = $ac_status" >&5
2880 (exit $ac_status); } &&
2881 { ac_try='test -s conftest$ac_exeext'
2882 { (eval echo "$as_me:2882: \"$ac_try\"") >&5
2883 (eval $ac_try) 2>&5
2884 ac_status=$?
2885 echo "$as_me:2885: \$? = $ac_status" >&5
2886 (exit $ac_status); }; }; then
2887 ac_cv_func_remove=yes
2888 else
2889 echo "$as_me: failed program was:" >&5
2890 cat conftest.$ac_ext >&5
2891 ac_cv_func_remove=no
2893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2895 echo "$as_me:2895: result: $ac_cv_func_remove" >&5
2896 echo "${ECHO_T}$ac_cv_func_remove" >&6
2898 if test $ac_cv_func_remove = no; then
2899 echo "$as_me:2899: checking for remove in -lposix" >&5
2900 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
2901 if test "${ac_cv_lib_posix_remove+set}" = set; then
2902 echo $ECHO_N "(cached) $ECHO_C" >&6
2903 else
2904 ac_check_lib_save_LIBS=$LIBS
2905 LIBS="-lposix $LIBS"
2906 cat >conftest.$ac_ext <<_ACEOF
2907 #line 2907 "configure"
2908 #include "confdefs.h"
2910 /* Override any gcc2 internal prototype to avoid an error. */
2911 #ifdef __cplusplus
2912 extern "C"
2913 #endif
2914 /* We use char because int might match the return type of a gcc2
2915 builtin and then its argument prototype would still apply. */
2916 char remove ();
2918 main ()
2920 remove ();
2922 return 0;
2924 _ACEOF
2925 rm -f conftest.$ac_objext conftest$ac_exeext
2926 if { (eval echo "$as_me:2926: \"$ac_link\"") >&5
2927 (eval $ac_link) 2>&5
2928 ac_status=$?
2929 echo "$as_me:2929: \$? = $ac_status" >&5
2930 (exit $ac_status); } &&
2931 { ac_try='test -s conftest$ac_exeext'
2932 { (eval echo "$as_me:2932: \"$ac_try\"") >&5
2933 (eval $ac_try) 2>&5
2934 ac_status=$?
2935 echo "$as_me:2935: \$? = $ac_status" >&5
2936 (exit $ac_status); }; }; then
2937 ac_cv_lib_posix_remove=yes
2938 else
2939 echo "$as_me: failed program was:" >&5
2940 cat conftest.$ac_ext >&5
2941 ac_cv_lib_posix_remove=no
2943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2944 LIBS=$ac_check_lib_save_LIBS
2946 echo "$as_me:2946: result: $ac_cv_lib_posix_remove" >&5
2947 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
2948 if test $ac_cv_lib_posix_remove = yes; then
2949 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
2954 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2955 echo "$as_me:2955: checking for shmat" >&5
2956 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
2957 if test "${ac_cv_func_shmat+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2959 else
2960 cat >conftest.$ac_ext <<_ACEOF
2961 #line 2961 "configure"
2962 #include "confdefs.h"
2963 /* System header to define __stub macros and hopefully few prototypes,
2964 which can conflict with char shmat (); below. */
2965 #include <assert.h>
2966 /* Override any gcc2 internal prototype to avoid an error. */
2967 #ifdef __cplusplus
2968 extern "C"
2969 #endif
2970 /* We use char because int might match the return type of a gcc2
2971 builtin and then its argument prototype would still apply. */
2972 char shmat ();
2973 char (*f) ();
2976 main ()
2978 /* The GNU C library defines this for functions which it implements
2979 to always fail with ENOSYS. Some functions are actually named
2980 something starting with __ and the normal name is an alias. */
2981 #if defined (__stub_shmat) || defined (__stub___shmat)
2982 choke me
2983 #else
2984 f = shmat;
2985 #endif
2988 return 0;
2990 _ACEOF
2991 rm -f conftest.$ac_objext conftest$ac_exeext
2992 if { (eval echo "$as_me:2992: \"$ac_link\"") >&5
2993 (eval $ac_link) 2>&5
2994 ac_status=$?
2995 echo "$as_me:2995: \$? = $ac_status" >&5
2996 (exit $ac_status); } &&
2997 { ac_try='test -s conftest$ac_exeext'
2998 { (eval echo "$as_me:2998: \"$ac_try\"") >&5
2999 (eval $ac_try) 2>&5
3000 ac_status=$?
3001 echo "$as_me:3001: \$? = $ac_status" >&5
3002 (exit $ac_status); }; }; then
3003 ac_cv_func_shmat=yes
3004 else
3005 echo "$as_me: failed program was:" >&5
3006 cat conftest.$ac_ext >&5
3007 ac_cv_func_shmat=no
3009 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3011 echo "$as_me:3011: result: $ac_cv_func_shmat" >&5
3012 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3014 if test $ac_cv_func_shmat = no; then
3015 echo "$as_me:3015: checking for shmat in -lipc" >&5
3016 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3017 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3018 echo $ECHO_N "(cached) $ECHO_C" >&6
3019 else
3020 ac_check_lib_save_LIBS=$LIBS
3021 LIBS="-lipc $LIBS"
3022 cat >conftest.$ac_ext <<_ACEOF
3023 #line 3023 "configure"
3024 #include "confdefs.h"
3026 /* Override any gcc2 internal prototype to avoid an error. */
3027 #ifdef __cplusplus
3028 extern "C"
3029 #endif
3030 /* We use char because int might match the return type of a gcc2
3031 builtin and then its argument prototype would still apply. */
3032 char shmat ();
3034 main ()
3036 shmat ();
3038 return 0;
3040 _ACEOF
3041 rm -f conftest.$ac_objext conftest$ac_exeext
3042 if { (eval echo "$as_me:3042: \"$ac_link\"") >&5
3043 (eval $ac_link) 2>&5
3044 ac_status=$?
3045 echo "$as_me:3045: \$? = $ac_status" >&5
3046 (exit $ac_status); } &&
3047 { ac_try='test -s conftest$ac_exeext'
3048 { (eval echo "$as_me:3048: \"$ac_try\"") >&5
3049 (eval $ac_try) 2>&5
3050 ac_status=$?
3051 echo "$as_me:3051: \$? = $ac_status" >&5
3052 (exit $ac_status); }; }; then
3053 ac_cv_lib_ipc_shmat=yes
3054 else
3055 echo "$as_me: failed program was:" >&5
3056 cat conftest.$ac_ext >&5
3057 ac_cv_lib_ipc_shmat=no
3059 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3060 LIBS=$ac_check_lib_save_LIBS
3062 echo "$as_me:3062: result: $ac_cv_lib_ipc_shmat" >&5
3063 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3064 if test $ac_cv_lib_ipc_shmat = yes; then
3065 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3071 # Check for libraries that X11R6 Xt/Xaw programs need.
3072 ac_save_LDFLAGS=$LDFLAGS
3073 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3074 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3075 # check for ICE first), but we must link in the order -lSM -lICE or
3076 # we get undefined symbols. So assume we have SM if we have ICE.
3077 # These have to be linked with before -lX11, unlike the other
3078 # libraries we check for below, so use a different variable.
3079 # John Interrante, Karl Berry
3080 echo "$as_me:3080: checking for IceConnectionNumber in -lICE" >&5
3081 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3082 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
3084 else
3085 ac_check_lib_save_LIBS=$LIBS
3086 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3087 cat >conftest.$ac_ext <<_ACEOF
3088 #line 3088 "configure"
3089 #include "confdefs.h"
3091 /* Override any gcc2 internal prototype to avoid an error. */
3092 #ifdef __cplusplus
3093 extern "C"
3094 #endif
3095 /* We use char because int might match the return type of a gcc2
3096 builtin and then its argument prototype would still apply. */
3097 char IceConnectionNumber ();
3099 main ()
3101 IceConnectionNumber ();
3103 return 0;
3105 _ACEOF
3106 rm -f conftest.$ac_objext conftest$ac_exeext
3107 if { (eval echo "$as_me:3107: \"$ac_link\"") >&5
3108 (eval $ac_link) 2>&5
3109 ac_status=$?
3110 echo "$as_me:3110: \$? = $ac_status" >&5
3111 (exit $ac_status); } &&
3112 { ac_try='test -s conftest$ac_exeext'
3113 { (eval echo "$as_me:3113: \"$ac_try\"") >&5
3114 (eval $ac_try) 2>&5
3115 ac_status=$?
3116 echo "$as_me:3116: \$? = $ac_status" >&5
3117 (exit $ac_status); }; }; then
3118 ac_cv_lib_ICE_IceConnectionNumber=yes
3119 else
3120 echo "$as_me: failed program was:" >&5
3121 cat conftest.$ac_ext >&5
3122 ac_cv_lib_ICE_IceConnectionNumber=no
3124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3125 LIBS=$ac_check_lib_save_LIBS
3127 echo "$as_me:3127: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3128 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3129 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3130 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3133 LDFLAGS=$ac_save_LDFLAGS
3137 for ac_prog in 'bison -y' byacc
3139 # Extract the first word of "$ac_prog", so it can be a program name with args.
3140 set dummy $ac_prog; ac_word=$2
3141 echo "$as_me:3141: checking for $ac_word" >&5
3142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3143 if test "${ac_cv_prog_YACC+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146 if test -n "$YACC"; then
3147 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3148 else
3149 ac_save_IFS=$IFS; IFS=$ac_path_separator
3150 ac_dummy="$PATH"
3151 for ac_dir in $ac_dummy; do
3152 IFS=$ac_save_IFS
3153 test -z "$ac_dir" && ac_dir=.
3154 $as_executable_p "$ac_dir/$ac_word" || continue
3155 ac_cv_prog_YACC="$ac_prog"
3156 echo "$as_me:3156: found $ac_dir/$ac_word" >&5
3157 break
3158 done
3162 YACC=$ac_cv_prog_YACC
3163 if test -n "$YACC"; then
3164 echo "$as_me:3164: result: $YACC" >&5
3165 echo "${ECHO_T}$YACC" >&6
3166 else
3167 echo "$as_me:3167: result: no" >&5
3168 echo "${ECHO_T}no" >&6
3171 test -n "$YACC" && break
3172 done
3173 test -n "$YACC" || YACC="yacc"
3175 for ac_prog in flex lex
3177 # Extract the first word of "$ac_prog", so it can be a program name with args.
3178 set dummy $ac_prog; ac_word=$2
3179 echo "$as_me:3179: checking for $ac_word" >&5
3180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3181 if test "${ac_cv_prog_LEX+set}" = set; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
3183 else
3184 if test -n "$LEX"; then
3185 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3186 else
3187 ac_save_IFS=$IFS; IFS=$ac_path_separator
3188 ac_dummy="$PATH"
3189 for ac_dir in $ac_dummy; do
3190 IFS=$ac_save_IFS
3191 test -z "$ac_dir" && ac_dir=.
3192 $as_executable_p "$ac_dir/$ac_word" || continue
3193 ac_cv_prog_LEX="$ac_prog"
3194 echo "$as_me:3194: found $ac_dir/$ac_word" >&5
3195 break
3196 done
3200 LEX=$ac_cv_prog_LEX
3201 if test -n "$LEX"; then
3202 echo "$as_me:3202: result: $LEX" >&5
3203 echo "${ECHO_T}$LEX" >&6
3204 else
3205 echo "$as_me:3205: result: no" >&5
3206 echo "${ECHO_T}no" >&6
3209 test -n "$LEX" && break
3210 done
3211 test -n "$LEX" || LEX=":"
3213 if test -z "$LEXLIB"
3214 then
3215 echo "$as_me:3215: checking for yywrap in -lfl" >&5
3216 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3217 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 else
3220 ac_check_lib_save_LIBS=$LIBS
3221 LIBS="-lfl $LIBS"
3222 cat >conftest.$ac_ext <<_ACEOF
3223 #line 3223 "configure"
3224 #include "confdefs.h"
3226 /* Override any gcc2 internal prototype to avoid an error. */
3227 #ifdef __cplusplus
3228 extern "C"
3229 #endif
3230 /* We use char because int might match the return type of a gcc2
3231 builtin and then its argument prototype would still apply. */
3232 char yywrap ();
3234 main ()
3236 yywrap ();
3238 return 0;
3240 _ACEOF
3241 rm -f conftest.$ac_objext conftest$ac_exeext
3242 if { (eval echo "$as_me:3242: \"$ac_link\"") >&5
3243 (eval $ac_link) 2>&5
3244 ac_status=$?
3245 echo "$as_me:3245: \$? = $ac_status" >&5
3246 (exit $ac_status); } &&
3247 { ac_try='test -s conftest$ac_exeext'
3248 { (eval echo "$as_me:3248: \"$ac_try\"") >&5
3249 (eval $ac_try) 2>&5
3250 ac_status=$?
3251 echo "$as_me:3251: \$? = $ac_status" >&5
3252 (exit $ac_status); }; }; then
3253 ac_cv_lib_fl_yywrap=yes
3254 else
3255 echo "$as_me: failed program was:" >&5
3256 cat conftest.$ac_ext >&5
3257 ac_cv_lib_fl_yywrap=no
3259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3260 LIBS=$ac_check_lib_save_LIBS
3262 echo "$as_me:3262: result: $ac_cv_lib_fl_yywrap" >&5
3263 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3264 if test $ac_cv_lib_fl_yywrap = yes; then
3265 LEXLIB="-lfl"
3266 else
3267 echo "$as_me:3267: checking for yywrap in -ll" >&5
3268 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3269 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3271 else
3272 ac_check_lib_save_LIBS=$LIBS
3273 LIBS="-ll $LIBS"
3274 cat >conftest.$ac_ext <<_ACEOF
3275 #line 3275 "configure"
3276 #include "confdefs.h"
3278 /* Override any gcc2 internal prototype to avoid an error. */
3279 #ifdef __cplusplus
3280 extern "C"
3281 #endif
3282 /* We use char because int might match the return type of a gcc2
3283 builtin and then its argument prototype would still apply. */
3284 char yywrap ();
3286 main ()
3288 yywrap ();
3290 return 0;
3292 _ACEOF
3293 rm -f conftest.$ac_objext conftest$ac_exeext
3294 if { (eval echo "$as_me:3294: \"$ac_link\"") >&5
3295 (eval $ac_link) 2>&5
3296 ac_status=$?
3297 echo "$as_me:3297: \$? = $ac_status" >&5
3298 (exit $ac_status); } &&
3299 { ac_try='test -s conftest$ac_exeext'
3300 { (eval echo "$as_me:3300: \"$ac_try\"") >&5
3301 (eval $ac_try) 2>&5
3302 ac_status=$?
3303 echo "$as_me:3303: \$? = $ac_status" >&5
3304 (exit $ac_status); }; }; then
3305 ac_cv_lib_l_yywrap=yes
3306 else
3307 echo "$as_me: failed program was:" >&5
3308 cat conftest.$ac_ext >&5
3309 ac_cv_lib_l_yywrap=no
3311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3312 LIBS=$ac_check_lib_save_LIBS
3314 echo "$as_me:3314: result: $ac_cv_lib_l_yywrap" >&5
3315 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3316 if test $ac_cv_lib_l_yywrap = yes; then
3317 LEXLIB="-ll"
3324 if test "x$LEX" != "x:"; then
3325 echo "$as_me:3325: checking lex output file root" >&5
3326 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3327 if test "${ac_cv_prog_lex_root+set}" = set; then
3328 echo $ECHO_N "(cached) $ECHO_C" >&6
3329 else
3330 # The minimal lex program is just a single line: %%. But some broken lexes
3331 # (Solaris, I think it was) want two %% lines, so accommodate them.
3332 echo '%%
3333 %%' | $LEX
3334 if test -f lex.yy.c; then
3335 ac_cv_prog_lex_root=lex.yy
3336 elif test -f lexyy.c; then
3337 ac_cv_prog_lex_root=lexyy
3338 else
3339 { { echo "$as_me:3339: error: cannot find output from $LEX; giving up" >&5
3340 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3341 { (exit 1); exit 1; }; }
3344 echo "$as_me:3344: result: $ac_cv_prog_lex_root" >&5
3345 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3346 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3348 echo "$as_me:3348: checking whether yytext is a pointer" >&5
3349 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3350 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3352 else
3353 # POSIX says lex can declare yytext either as a pointer or an array; the
3354 # default is implementation-dependent. Figure out which it is, since
3355 # not all implementations provide the %pointer and %array declarations.
3356 ac_cv_prog_lex_yytext_pointer=no
3357 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3358 ac_save_LIBS=$LIBS
3359 LIBS="$LIBS $LEXLIB"
3360 cat >conftest.$ac_ext <<_ACEOF
3361 `cat $LEX_OUTPUT_ROOT.c`
3362 _ACEOF
3363 rm -f conftest.$ac_objext conftest$ac_exeext
3364 if { (eval echo "$as_me:3364: \"$ac_link\"") >&5
3365 (eval $ac_link) 2>&5
3366 ac_status=$?
3367 echo "$as_me:3367: \$? = $ac_status" >&5
3368 (exit $ac_status); } &&
3369 { ac_try='test -s conftest$ac_exeext'
3370 { (eval echo "$as_me:3370: \"$ac_try\"") >&5
3371 (eval $ac_try) 2>&5
3372 ac_status=$?
3373 echo "$as_me:3373: \$? = $ac_status" >&5
3374 (exit $ac_status); }; }; then
3375 ac_cv_prog_lex_yytext_pointer=yes
3376 else
3377 echo "$as_me: failed program was:" >&5
3378 cat conftest.$ac_ext >&5
3380 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3381 LIBS=$ac_save_LIBS
3382 rm -f "${LEX_OUTPUT_ROOT}.c"
3385 echo "$as_me:3385: result: $ac_cv_prog_lex_yytext_pointer" >&5
3386 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3387 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3389 cat >>confdefs.h <<\EOF
3390 #define YYTEXT_POINTER 1
3397 for ac_prog in $YACC bison yacc
3399 # Extract the first word of "$ac_prog", so it can be a program name with args.
3400 set dummy $ac_prog; ac_word=$2
3401 echo "$as_me:3401: checking for $ac_word" >&5
3402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3403 if test "${ac_cv_prog_XYACC+set}" = set; then
3404 echo $ECHO_N "(cached) $ECHO_C" >&6
3405 else
3406 if test -n "$XYACC"; then
3407 ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
3408 else
3409 ac_save_IFS=$IFS; IFS=$ac_path_separator
3410 ac_dummy="$PATH"
3411 for ac_dir in $ac_dummy; do
3412 IFS=$ac_save_IFS
3413 test -z "$ac_dir" && ac_dir=.
3414 $as_executable_p "$ac_dir/$ac_word" || continue
3415 ac_cv_prog_XYACC="$ac_prog"
3416 echo "$as_me:3416: found $ac_dir/$ac_word" >&5
3417 break
3418 done
3422 XYACC=$ac_cv_prog_XYACC
3423 if test -n "$XYACC"; then
3424 echo "$as_me:3424: result: $XYACC" >&5
3425 echo "${ECHO_T}$XYACC" >&6
3426 else
3427 echo "$as_me:3427: result: no" >&5
3428 echo "${ECHO_T}no" >&6
3431 test -n "$XYACC" && break
3432 done
3433 test -n "$XYACC" || XYACC="none"
3435 if test "$XYACC" = "none"
3436 then
3437 { { echo "$as_me:3437: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
3438 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
3439 { (exit 1); exit 1; }; }
3441 for ac_prog in $LEX flex lex
3443 # Extract the first word of "$ac_prog", so it can be a program name with args.
3444 set dummy $ac_prog; ac_word=$2
3445 echo "$as_me:3445: checking for $ac_word" >&5
3446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3447 if test "${ac_cv_prog_XLEX+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3449 else
3450 if test -n "$XLEX"; then
3451 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
3452 else
3453 ac_save_IFS=$IFS; IFS=$ac_path_separator
3454 ac_dummy="$PATH"
3455 for ac_dir in $ac_dummy; do
3456 IFS=$ac_save_IFS
3457 test -z "$ac_dir" && ac_dir=.
3458 $as_executable_p "$ac_dir/$ac_word" || continue
3459 ac_cv_prog_XLEX="$ac_prog"
3460 echo "$as_me:3460: found $ac_dir/$ac_word" >&5
3461 break
3462 done
3466 XLEX=$ac_cv_prog_XLEX
3467 if test -n "$XLEX"; then
3468 echo "$as_me:3468: result: $XLEX" >&5
3469 echo "${ECHO_T}$XLEX" >&6
3470 else
3471 echo "$as_me:3471: result: no" >&5
3472 echo "${ECHO_T}no" >&6
3475 test -n "$XLEX" && break
3476 done
3477 test -n "$XLEX" || XLEX="none"
3479 if test "$XLEX" = "none"
3480 then
3481 { { echo "$as_me:3481: error: no suitable lex found. Please install the 'flex' package." >&5
3482 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
3483 { (exit 1); exit 1; }; }
3485 if test -n "$ac_tool_prefix"; then
3486 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3487 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3488 echo "$as_me:3488: checking for $ac_word" >&5
3489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3490 if test "${ac_cv_prog_RANLIB+set}" = set; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3492 else
3493 if test -n "$RANLIB"; then
3494 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3495 else
3496 ac_save_IFS=$IFS; IFS=$ac_path_separator
3497 ac_dummy="$PATH"
3498 for ac_dir in $ac_dummy; do
3499 IFS=$ac_save_IFS
3500 test -z "$ac_dir" && ac_dir=.
3501 $as_executable_p "$ac_dir/$ac_word" || continue
3502 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3503 echo "$as_me:3503: found $ac_dir/$ac_word" >&5
3504 break
3505 done
3509 RANLIB=$ac_cv_prog_RANLIB
3510 if test -n "$RANLIB"; then
3511 echo "$as_me:3511: result: $RANLIB" >&5
3512 echo "${ECHO_T}$RANLIB" >&6
3513 else
3514 echo "$as_me:3514: result: no" >&5
3515 echo "${ECHO_T}no" >&6
3519 if test -z "$ac_cv_prog_RANLIB"; then
3520 ac_ct_RANLIB=$RANLIB
3521 # Extract the first word of "ranlib", so it can be a program name with args.
3522 set dummy ranlib; ac_word=$2
3523 echo "$as_me:3523: checking for $ac_word" >&5
3524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3525 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3527 else
3528 if test -n "$ac_ct_RANLIB"; then
3529 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3530 else
3531 ac_save_IFS=$IFS; IFS=$ac_path_separator
3532 ac_dummy="$PATH"
3533 for ac_dir in $ac_dummy; do
3534 IFS=$ac_save_IFS
3535 test -z "$ac_dir" && ac_dir=.
3536 $as_executable_p "$ac_dir/$ac_word" || continue
3537 ac_cv_prog_ac_ct_RANLIB="ranlib"
3538 echo "$as_me:3538: found $ac_dir/$ac_word" >&5
3539 break
3540 done
3542 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3545 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3546 if test -n "$ac_ct_RANLIB"; then
3547 echo "$as_me:3547: result: $ac_ct_RANLIB" >&5
3548 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3549 else
3550 echo "$as_me:3550: result: no" >&5
3551 echo "${ECHO_T}no" >&6
3554 RANLIB=$ac_ct_RANLIB
3555 else
3556 RANLIB="$ac_cv_prog_RANLIB"
3559 # Find a good install program. We prefer a C program (faster),
3560 # so one script is as good as another. But avoid the broken or
3561 # incompatible versions:
3562 # SysV /etc/install, /usr/sbin/install
3563 # SunOS /usr/etc/install
3564 # IRIX /sbin/install
3565 # AIX /bin/install
3566 # AmigaOS /C/install, which installs bootblocks on floppy discs
3567 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3568 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3569 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3570 # ./install, which can be erroneously created by make from ./install.sh.
3571 echo "$as_me:3571: checking for a BSD compatible install" >&5
3572 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3573 if test -z "$INSTALL"; then
3574 if test "${ac_cv_path_install+set}" = set; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
3576 else
3577 ac_save_IFS=$IFS; IFS=$ac_path_separator
3578 for ac_dir in $PATH; do
3579 IFS=$ac_save_IFS
3580 # Account for people who put trailing slashes in PATH elements.
3581 case $ac_dir/ in
3582 / | ./ | .// | /cC/* \
3583 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3584 | /usr/ucb/* ) ;;
3586 # OSF1 and SCO ODT 3.0 have their own names for install.
3587 # Don't use installbsd from OSF since it installs stuff as root
3588 # by default.
3589 for ac_prog in ginstall scoinst install; do
3590 if $as_executable_p "$ac_dir/$ac_prog"; then
3591 if test $ac_prog = install &&
3592 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3593 # AIX install. It has an incompatible calling convention.
3595 elif test $ac_prog = install &&
3596 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3597 # program-specific install script used by HP pwplus--don't use.
3599 else
3600 ac_cv_path_install="$ac_dir/$ac_prog -c"
3601 break 2
3604 done
3606 esac
3607 done
3610 if test "${ac_cv_path_install+set}" = set; then
3611 INSTALL=$ac_cv_path_install
3612 else
3613 # As a last resort, use the slow shell script. We don't cache a
3614 # path for INSTALL within a source directory, because that will
3615 # break other packages using the cache if that directory is
3616 # removed, or if the path is relative.
3617 INSTALL=$ac_install_sh
3620 echo "$as_me:3620: result: $INSTALL" >&5
3621 echo "${ECHO_T}$INSTALL" >&6
3623 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3624 # It thinks the first close brace ends the variable substitution.
3625 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3627 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3629 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3631 echo "$as_me:3631: checking whether ln -s works" >&5
3632 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3633 LN_S=$as_ln_s
3634 if test "$LN_S" = "ln -s"; then
3635 echo "$as_me:3635: result: yes" >&5
3636 echo "${ECHO_T}yes" >&6
3637 else
3638 echo "$as_me:3638: result: no, using $LN_S" >&5
3639 echo "${ECHO_T}no, using $LN_S" >&6
3642 # Extract the first word of "c2man", so it can be a program name with args.
3643 set dummy c2man; ac_word=$2
3644 echo "$as_me:3644: checking for $ac_word" >&5
3645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3646 if test "${ac_cv_prog_C2MAN+set}" = set; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 else
3649 if test -n "$C2MAN"; then
3650 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
3651 else
3652 ac_save_IFS=$IFS; IFS=$ac_path_separator
3653 ac_dummy="$PATH"
3654 for ac_dir in $ac_dummy; do
3655 IFS=$ac_save_IFS
3656 test -z "$ac_dir" && ac_dir=.
3657 $as_executable_p "$ac_dir/$ac_word" || continue
3658 ac_cv_prog_C2MAN="c2man"
3659 echo "$as_me:3659: found $ac_dir/$ac_word" >&5
3660 break
3661 done
3663 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
3666 C2MAN=$ac_cv_prog_C2MAN
3667 if test -n "$C2MAN"; then
3668 echo "$as_me:3668: result: $C2MAN" >&5
3669 echo "${ECHO_T}$C2MAN" >&6
3670 else
3671 echo "$as_me:3671: result: no" >&5
3672 echo "${ECHO_T}no" >&6
3675 # Extract the first word of "ldconfig", so it can be a program name with args.
3676 set dummy ldconfig; ac_word=$2
3677 echo "$as_me:3677: checking for $ac_word" >&5
3678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3679 if test "${ac_cv_path_LDCONFIG+set}" = set; then
3680 echo $ECHO_N "(cached) $ECHO_C" >&6
3681 else
3682 case $LDCONFIG in
3683 [\\/]* | ?:[\\/]*)
3684 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
3687 ac_save_IFS=$IFS; IFS=$ac_path_separator
3688 ac_dummy="/sbin:/usr/sbin:$PATH"
3689 for ac_dir in $ac_dummy; do
3690 IFS=$ac_save_IFS
3691 test -z "$ac_dir" && ac_dir=.
3692 if $as_executable_p "$ac_dir/$ac_word"; then
3693 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
3694 echo "$as_me:3694: found $ac_dir/$ac_word" >&5
3695 break
3697 done
3699 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
3701 esac
3703 LDCONFIG=$ac_cv_path_LDCONFIG
3705 if test -n "$LDCONFIG"; then
3706 echo "$as_me:3706: result: $LDCONFIG" >&5
3707 echo "${ECHO_T}$LDCONFIG" >&6
3708 else
3709 echo "$as_me:3709: result: no" >&5
3710 echo "${ECHO_T}no" >&6
3713 for ac_prog in lclint lint
3715 # Extract the first word of "$ac_prog", so it can be a program name with args.
3716 set dummy $ac_prog; ac_word=$2
3717 echo "$as_me:3717: checking for $ac_word" >&5
3718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3719 if test "${ac_cv_prog_LINT+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 else
3722 if test -n "$LINT"; then
3723 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3724 else
3725 ac_save_IFS=$IFS; IFS=$ac_path_separator
3726 ac_dummy="$PATH"
3727 for ac_dir in $ac_dummy; do
3728 IFS=$ac_save_IFS
3729 test -z "$ac_dir" && ac_dir=.
3730 $as_executable_p "$ac_dir/$ac_word" || continue
3731 ac_cv_prog_LINT="$ac_prog"
3732 echo "$as_me:3732: found $ac_dir/$ac_word" >&5
3733 break
3734 done
3738 LINT=$ac_cv_prog_LINT
3739 if test -n "$LINT"; then
3740 echo "$as_me:3740: result: $LINT" >&5
3741 echo "${ECHO_T}$LINT" >&6
3742 else
3743 echo "$as_me:3743: result: no" >&5
3744 echo "${ECHO_T}no" >&6
3747 test -n "$LINT" && break
3748 done
3750 if test "$LINT" = "lint"
3751 then
3752 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
3755 case $host_os in
3756 *cygwin*) LDCOMBINE="ld -r --enable-stdcall-fixup" ;;
3757 *) LDCOMBINE="ld -r" ;;
3758 esac
3760 echo "$as_me:3760: checking for sqrt in -lm" >&5
3761 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
3762 if test "${ac_cv_lib_m_sqrt+set}" = set; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3764 else
3765 ac_check_lib_save_LIBS=$LIBS
3766 LIBS="-lm $LIBS"
3767 cat >conftest.$ac_ext <<_ACEOF
3768 #line 3768 "configure"
3769 #include "confdefs.h"
3771 /* Override any gcc2 internal prototype to avoid an error. */
3772 #ifdef __cplusplus
3773 extern "C"
3774 #endif
3775 /* We use char because int might match the return type of a gcc2
3776 builtin and then its argument prototype would still apply. */
3777 char sqrt ();
3779 main ()
3781 sqrt ();
3783 return 0;
3785 _ACEOF
3786 rm -f conftest.$ac_objext conftest$ac_exeext
3787 if { (eval echo "$as_me:3787: \"$ac_link\"") >&5
3788 (eval $ac_link) 2>&5
3789 ac_status=$?
3790 echo "$as_me:3790: \$? = $ac_status" >&5
3791 (exit $ac_status); } &&
3792 { ac_try='test -s conftest$ac_exeext'
3793 { (eval echo "$as_me:3793: \"$ac_try\"") >&5
3794 (eval $ac_try) 2>&5
3795 ac_status=$?
3796 echo "$as_me:3796: \$? = $ac_status" >&5
3797 (exit $ac_status); }; }; then
3798 ac_cv_lib_m_sqrt=yes
3799 else
3800 echo "$as_me: failed program was:" >&5
3801 cat conftest.$ac_ext >&5
3802 ac_cv_lib_m_sqrt=no
3804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3805 LIBS=$ac_check_lib_save_LIBS
3807 echo "$as_me:3807: result: $ac_cv_lib_m_sqrt" >&5
3808 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
3809 if test $ac_cv_lib_m_sqrt = yes; then
3810 cat >>confdefs.h <<EOF
3811 #define HAVE_LIBM 1
3814 LIBS="-lm $LIBS"
3818 echo "$as_me:3818: checking for i386_set_ldt in -li386" >&5
3819 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
3820 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
3822 else
3823 ac_check_lib_save_LIBS=$LIBS
3824 LIBS="-li386 $LIBS"
3825 cat >conftest.$ac_ext <<_ACEOF
3826 #line 3826 "configure"
3827 #include "confdefs.h"
3829 /* Override any gcc2 internal prototype to avoid an error. */
3830 #ifdef __cplusplus
3831 extern "C"
3832 #endif
3833 /* We use char because int might match the return type of a gcc2
3834 builtin and then its argument prototype would still apply. */
3835 char i386_set_ldt ();
3837 main ()
3839 i386_set_ldt ();
3841 return 0;
3843 _ACEOF
3844 rm -f conftest.$ac_objext conftest$ac_exeext
3845 if { (eval echo "$as_me:3845: \"$ac_link\"") >&5
3846 (eval $ac_link) 2>&5
3847 ac_status=$?
3848 echo "$as_me:3848: \$? = $ac_status" >&5
3849 (exit $ac_status); } &&
3850 { ac_try='test -s conftest$ac_exeext'
3851 { (eval echo "$as_me:3851: \"$ac_try\"") >&5
3852 (eval $ac_try) 2>&5
3853 ac_status=$?
3854 echo "$as_me:3854: \$? = $ac_status" >&5
3855 (exit $ac_status); }; }; then
3856 ac_cv_lib_i386_i386_set_ldt=yes
3857 else
3858 echo "$as_me: failed program was:" >&5
3859 cat conftest.$ac_ext >&5
3860 ac_cv_lib_i386_i386_set_ldt=no
3862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3863 LIBS=$ac_check_lib_save_LIBS
3865 echo "$as_me:3865: result: $ac_cv_lib_i386_i386_set_ldt" >&5
3866 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
3867 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
3868 cat >>confdefs.h <<EOF
3869 #define HAVE_LIBI386 1
3872 LIBS="-li386 $LIBS"
3876 echo "$as_me:3876: checking for _oss_ioctl in -lossaudio" >&5
3877 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
3878 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3880 else
3881 ac_check_lib_save_LIBS=$LIBS
3882 LIBS="-lossaudio $LIBS"
3883 cat >conftest.$ac_ext <<_ACEOF
3884 #line 3884 "configure"
3885 #include "confdefs.h"
3887 /* Override any gcc2 internal prototype to avoid an error. */
3888 #ifdef __cplusplus
3889 extern "C"
3890 #endif
3891 /* We use char because int might match the return type of a gcc2
3892 builtin and then its argument prototype would still apply. */
3893 char _oss_ioctl ();
3895 main ()
3897 _oss_ioctl ();
3899 return 0;
3901 _ACEOF
3902 rm -f conftest.$ac_objext conftest$ac_exeext
3903 if { (eval echo "$as_me:3903: \"$ac_link\"") >&5
3904 (eval $ac_link) 2>&5
3905 ac_status=$?
3906 echo "$as_me:3906: \$? = $ac_status" >&5
3907 (exit $ac_status); } &&
3908 { ac_try='test -s conftest$ac_exeext'
3909 { (eval echo "$as_me:3909: \"$ac_try\"") >&5
3910 (eval $ac_try) 2>&5
3911 ac_status=$?
3912 echo "$as_me:3912: \$? = $ac_status" >&5
3913 (exit $ac_status); }; }; then
3914 ac_cv_lib_ossaudio__oss_ioctl=yes
3915 else
3916 echo "$as_me: failed program was:" >&5
3917 cat conftest.$ac_ext >&5
3918 ac_cv_lib_ossaudio__oss_ioctl=no
3920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3921 LIBS=$ac_check_lib_save_LIBS
3923 echo "$as_me:3923: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
3924 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
3925 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
3926 cat >>confdefs.h <<EOF
3927 #define HAVE_LIBOSSAUDIO 1
3930 LIBS="-lossaudio $LIBS"
3934 for ac_func in iswalnum
3936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3937 echo "$as_me:3937: checking for $ac_func" >&5
3938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3939 if eval "test \"\${$as_ac_var+set}\" = set"; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3941 else
3942 cat >conftest.$ac_ext <<_ACEOF
3943 #line 3943 "configure"
3944 #include "confdefs.h"
3945 /* System header to define __stub macros and hopefully few prototypes,
3946 which can conflict with char $ac_func (); below. */
3947 #include <assert.h>
3948 /* Override any gcc2 internal prototype to avoid an error. */
3949 #ifdef __cplusplus
3950 extern "C"
3951 #endif
3952 /* We use char because int might match the return type of a gcc2
3953 builtin and then its argument prototype would still apply. */
3954 char $ac_func ();
3955 char (*f) ();
3958 main ()
3960 /* The GNU C library defines this for functions which it implements
3961 to always fail with ENOSYS. Some functions are actually named
3962 something starting with __ and the normal name is an alias. */
3963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3964 choke me
3965 #else
3966 f = $ac_func;
3967 #endif
3970 return 0;
3972 _ACEOF
3973 rm -f conftest.$ac_objext conftest$ac_exeext
3974 if { (eval echo "$as_me:3974: \"$ac_link\"") >&5
3975 (eval $ac_link) 2>&5
3976 ac_status=$?
3977 echo "$as_me:3977: \$? = $ac_status" >&5
3978 (exit $ac_status); } &&
3979 { ac_try='test -s conftest$ac_exeext'
3980 { (eval echo "$as_me:3980: \"$ac_try\"") >&5
3981 (eval $ac_try) 2>&5
3982 ac_status=$?
3983 echo "$as_me:3983: \$? = $ac_status" >&5
3984 (exit $ac_status); }; }; then
3985 eval "$as_ac_var=yes"
3986 else
3987 echo "$as_me: failed program was:" >&5
3988 cat conftest.$ac_ext >&5
3989 eval "$as_ac_var=no"
3991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3993 echo "$as_me:3993: result: `eval echo '${'$as_ac_var'}'`" >&5
3994 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3995 if test `eval echo '${'$as_ac_var'}'` = yes; then
3996 cat >>confdefs.h <<EOF
3997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4000 else
4002 echo "$as_me:4002: checking for iswalnum in -lw" >&5
4003 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
4004 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 else
4007 ac_check_lib_save_LIBS=$LIBS
4008 LIBS="-lw $LIBS"
4009 cat >conftest.$ac_ext <<_ACEOF
4010 #line 4010 "configure"
4011 #include "confdefs.h"
4013 /* Override any gcc2 internal prototype to avoid an error. */
4014 #ifdef __cplusplus
4015 extern "C"
4016 #endif
4017 /* We use char because int might match the return type of a gcc2
4018 builtin and then its argument prototype would still apply. */
4019 char iswalnum ();
4021 main ()
4023 iswalnum ();
4025 return 0;
4027 _ACEOF
4028 rm -f conftest.$ac_objext conftest$ac_exeext
4029 if { (eval echo "$as_me:4029: \"$ac_link\"") >&5
4030 (eval $ac_link) 2>&5
4031 ac_status=$?
4032 echo "$as_me:4032: \$? = $ac_status" >&5
4033 (exit $ac_status); } &&
4034 { ac_try='test -s conftest$ac_exeext'
4035 { (eval echo "$as_me:4035: \"$ac_try\"") >&5
4036 (eval $ac_try) 2>&5
4037 ac_status=$?
4038 echo "$as_me:4038: \$? = $ac_status" >&5
4039 (exit $ac_status); }; }; then
4040 ac_cv_lib_w_iswalnum=yes
4041 else
4042 echo "$as_me: failed program was:" >&5
4043 cat conftest.$ac_ext >&5
4044 ac_cv_lib_w_iswalnum=no
4046 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4047 LIBS=$ac_check_lib_save_LIBS
4049 echo "$as_me:4049: result: $ac_cv_lib_w_iswalnum" >&5
4050 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
4051 if test $ac_cv_lib_w_iswalnum = yes; then
4052 cat >>confdefs.h <<EOF
4053 #define HAVE_LIBW 1
4056 LIBS="-lw $LIBS"
4061 done
4063 for ac_func in gethostbyname
4065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4066 echo "$as_me:4066: checking for $ac_func" >&5
4067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4068 if eval "test \"\${$as_ac_var+set}\" = set"; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 else
4071 cat >conftest.$ac_ext <<_ACEOF
4072 #line 4072 "configure"
4073 #include "confdefs.h"
4074 /* System header to define __stub macros and hopefully few prototypes,
4075 which can conflict with char $ac_func (); below. */
4076 #include <assert.h>
4077 /* Override any gcc2 internal prototype to avoid an error. */
4078 #ifdef __cplusplus
4079 extern "C"
4080 #endif
4081 /* We use char because int might match the return type of a gcc2
4082 builtin and then its argument prototype would still apply. */
4083 char $ac_func ();
4084 char (*f) ();
4087 main ()
4089 /* The GNU C library defines this for functions which it implements
4090 to always fail with ENOSYS. Some functions are actually named
4091 something starting with __ and the normal name is an alias. */
4092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4093 choke me
4094 #else
4095 f = $ac_func;
4096 #endif
4099 return 0;
4101 _ACEOF
4102 rm -f conftest.$ac_objext conftest$ac_exeext
4103 if { (eval echo "$as_me:4103: \"$ac_link\"") >&5
4104 (eval $ac_link) 2>&5
4105 ac_status=$?
4106 echo "$as_me:4106: \$? = $ac_status" >&5
4107 (exit $ac_status); } &&
4108 { ac_try='test -s conftest$ac_exeext'
4109 { (eval echo "$as_me:4109: \"$ac_try\"") >&5
4110 (eval $ac_try) 2>&5
4111 ac_status=$?
4112 echo "$as_me:4112: \$? = $ac_status" >&5
4113 (exit $ac_status); }; }; then
4114 eval "$as_ac_var=yes"
4115 else
4116 echo "$as_me: failed program was:" >&5
4117 cat conftest.$ac_ext >&5
4118 eval "$as_ac_var=no"
4120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4122 echo "$as_me:4122: result: `eval echo '${'$as_ac_var'}'`" >&5
4123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4124 if test `eval echo '${'$as_ac_var'}'` = yes; then
4125 cat >>confdefs.h <<EOF
4126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4129 else
4131 echo "$as_me:4131: checking for gethostbyname in -lnsl" >&5
4132 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4133 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 else
4136 ac_check_lib_save_LIBS=$LIBS
4137 LIBS="-lnsl $LIBS"
4138 cat >conftest.$ac_ext <<_ACEOF
4139 #line 4139 "configure"
4140 #include "confdefs.h"
4142 /* Override any gcc2 internal prototype to avoid an error. */
4143 #ifdef __cplusplus
4144 extern "C"
4145 #endif
4146 /* We use char because int might match the return type of a gcc2
4147 builtin and then its argument prototype would still apply. */
4148 char gethostbyname ();
4150 main ()
4152 gethostbyname ();
4154 return 0;
4156 _ACEOF
4157 rm -f conftest.$ac_objext conftest$ac_exeext
4158 if { (eval echo "$as_me:4158: \"$ac_link\"") >&5
4159 (eval $ac_link) 2>&5
4160 ac_status=$?
4161 echo "$as_me:4161: \$? = $ac_status" >&5
4162 (exit $ac_status); } &&
4163 { ac_try='test -s conftest$ac_exeext'
4164 { (eval echo "$as_me:4164: \"$ac_try\"") >&5
4165 (eval $ac_try) 2>&5
4166 ac_status=$?
4167 echo "$as_me:4167: \$? = $ac_status" >&5
4168 (exit $ac_status); }; }; then
4169 ac_cv_lib_nsl_gethostbyname=yes
4170 else
4171 echo "$as_me: failed program was:" >&5
4172 cat conftest.$ac_ext >&5
4173 ac_cv_lib_nsl_gethostbyname=no
4175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4176 LIBS=$ac_check_lib_save_LIBS
4178 echo "$as_me:4178: result: $ac_cv_lib_nsl_gethostbyname" >&5
4179 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4180 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4181 cat >>confdefs.h <<EOF
4182 #define HAVE_LIBNSL 1
4185 LIBS="-lnsl $LIBS"
4190 done
4192 for ac_func in connect
4194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4195 echo "$as_me:4195: checking for $ac_func" >&5
4196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4197 if eval "test \"\${$as_ac_var+set}\" = set"; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4199 else
4200 cat >conftest.$ac_ext <<_ACEOF
4201 #line 4201 "configure"
4202 #include "confdefs.h"
4203 /* System header to define __stub macros and hopefully few prototypes,
4204 which can conflict with char $ac_func (); below. */
4205 #include <assert.h>
4206 /* Override any gcc2 internal prototype to avoid an error. */
4207 #ifdef __cplusplus
4208 extern "C"
4209 #endif
4210 /* We use char because int might match the return type of a gcc2
4211 builtin and then its argument prototype would still apply. */
4212 char $ac_func ();
4213 char (*f) ();
4216 main ()
4218 /* The GNU C library defines this for functions which it implements
4219 to always fail with ENOSYS. Some functions are actually named
4220 something starting with __ and the normal name is an alias. */
4221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4222 choke me
4223 #else
4224 f = $ac_func;
4225 #endif
4228 return 0;
4230 _ACEOF
4231 rm -f conftest.$ac_objext conftest$ac_exeext
4232 if { (eval echo "$as_me:4232: \"$ac_link\"") >&5
4233 (eval $ac_link) 2>&5
4234 ac_status=$?
4235 echo "$as_me:4235: \$? = $ac_status" >&5
4236 (exit $ac_status); } &&
4237 { ac_try='test -s conftest$ac_exeext'
4238 { (eval echo "$as_me:4238: \"$ac_try\"") >&5
4239 (eval $ac_try) 2>&5
4240 ac_status=$?
4241 echo "$as_me:4241: \$? = $ac_status" >&5
4242 (exit $ac_status); }; }; then
4243 eval "$as_ac_var=yes"
4244 else
4245 echo "$as_me: failed program was:" >&5
4246 cat conftest.$ac_ext >&5
4247 eval "$as_ac_var=no"
4249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4251 echo "$as_me:4251: result: `eval echo '${'$as_ac_var'}'`" >&5
4252 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4253 if test `eval echo '${'$as_ac_var'}'` = yes; then
4254 cat >>confdefs.h <<EOF
4255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4258 else
4260 echo "$as_me:4260: checking for connect in -lsocket" >&5
4261 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4262 if test "${ac_cv_lib_socket_connect+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4264 else
4265 ac_check_lib_save_LIBS=$LIBS
4266 LIBS="-lsocket $LIBS"
4267 cat >conftest.$ac_ext <<_ACEOF
4268 #line 4268 "configure"
4269 #include "confdefs.h"
4271 /* Override any gcc2 internal prototype to avoid an error. */
4272 #ifdef __cplusplus
4273 extern "C"
4274 #endif
4275 /* We use char because int might match the return type of a gcc2
4276 builtin and then its argument prototype would still apply. */
4277 char connect ();
4279 main ()
4281 connect ();
4283 return 0;
4285 _ACEOF
4286 rm -f conftest.$ac_objext conftest$ac_exeext
4287 if { (eval echo "$as_me:4287: \"$ac_link\"") >&5
4288 (eval $ac_link) 2>&5
4289 ac_status=$?
4290 echo "$as_me:4290: \$? = $ac_status" >&5
4291 (exit $ac_status); } &&
4292 { ac_try='test -s conftest$ac_exeext'
4293 { (eval echo "$as_me:4293: \"$ac_try\"") >&5
4294 (eval $ac_try) 2>&5
4295 ac_status=$?
4296 echo "$as_me:4296: \$? = $ac_status" >&5
4297 (exit $ac_status); }; }; then
4298 ac_cv_lib_socket_connect=yes
4299 else
4300 echo "$as_me: failed program was:" >&5
4301 cat conftest.$ac_ext >&5
4302 ac_cv_lib_socket_connect=no
4304 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4305 LIBS=$ac_check_lib_save_LIBS
4307 echo "$as_me:4307: result: $ac_cv_lib_socket_connect" >&5
4308 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4309 if test $ac_cv_lib_socket_connect = yes; then
4310 cat >>confdefs.h <<EOF
4311 #define HAVE_LIBSOCKET 1
4314 LIBS="-lsocket $LIBS"
4319 done
4321 for ac_func in inet_aton
4323 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4324 echo "$as_me:4324: checking for $ac_func" >&5
4325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4326 if eval "test \"\${$as_ac_var+set}\" = set"; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4328 else
4329 cat >conftest.$ac_ext <<_ACEOF
4330 #line 4330 "configure"
4331 #include "confdefs.h"
4332 /* System header to define __stub macros and hopefully few prototypes,
4333 which can conflict with char $ac_func (); below. */
4334 #include <assert.h>
4335 /* Override any gcc2 internal prototype to avoid an error. */
4336 #ifdef __cplusplus
4337 extern "C"
4338 #endif
4339 /* We use char because int might match the return type of a gcc2
4340 builtin and then its argument prototype would still apply. */
4341 char $ac_func ();
4342 char (*f) ();
4345 main ()
4347 /* The GNU C library defines this for functions which it implements
4348 to always fail with ENOSYS. Some functions are actually named
4349 something starting with __ and the normal name is an alias. */
4350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4351 choke me
4352 #else
4353 f = $ac_func;
4354 #endif
4357 return 0;
4359 _ACEOF
4360 rm -f conftest.$ac_objext conftest$ac_exeext
4361 if { (eval echo "$as_me:4361: \"$ac_link\"") >&5
4362 (eval $ac_link) 2>&5
4363 ac_status=$?
4364 echo "$as_me:4364: \$? = $ac_status" >&5
4365 (exit $ac_status); } &&
4366 { ac_try='test -s conftest$ac_exeext'
4367 { (eval echo "$as_me:4367: \"$ac_try\"") >&5
4368 (eval $ac_try) 2>&5
4369 ac_status=$?
4370 echo "$as_me:4370: \$? = $ac_status" >&5
4371 (exit $ac_status); }; }; then
4372 eval "$as_ac_var=yes"
4373 else
4374 echo "$as_me: failed program was:" >&5
4375 cat conftest.$ac_ext >&5
4376 eval "$as_ac_var=no"
4378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4380 echo "$as_me:4380: result: `eval echo '${'$as_ac_var'}'`" >&5
4381 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4382 if test `eval echo '${'$as_ac_var'}'` = yes; then
4383 cat >>confdefs.h <<EOF
4384 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4387 else
4389 echo "$as_me:4389: checking for inet_aton in -lresolv" >&5
4390 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
4391 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4393 else
4394 ac_check_lib_save_LIBS=$LIBS
4395 LIBS="-lresolv $LIBS"
4396 cat >conftest.$ac_ext <<_ACEOF
4397 #line 4397 "configure"
4398 #include "confdefs.h"
4400 /* Override any gcc2 internal prototype to avoid an error. */
4401 #ifdef __cplusplus
4402 extern "C"
4403 #endif
4404 /* We use char because int might match the return type of a gcc2
4405 builtin and then its argument prototype would still apply. */
4406 char inet_aton ();
4408 main ()
4410 inet_aton ();
4412 return 0;
4414 _ACEOF
4415 rm -f conftest.$ac_objext conftest$ac_exeext
4416 if { (eval echo "$as_me:4416: \"$ac_link\"") >&5
4417 (eval $ac_link) 2>&5
4418 ac_status=$?
4419 echo "$as_me:4419: \$? = $ac_status" >&5
4420 (exit $ac_status); } &&
4421 { ac_try='test -s conftest$ac_exeext'
4422 { (eval echo "$as_me:4422: \"$ac_try\"") >&5
4423 (eval $ac_try) 2>&5
4424 ac_status=$?
4425 echo "$as_me:4425: \$? = $ac_status" >&5
4426 (exit $ac_status); }; }; then
4427 ac_cv_lib_resolv_inet_aton=yes
4428 else
4429 echo "$as_me: failed program was:" >&5
4430 cat conftest.$ac_ext >&5
4431 ac_cv_lib_resolv_inet_aton=no
4433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4434 LIBS=$ac_check_lib_save_LIBS
4436 echo "$as_me:4436: result: $ac_cv_lib_resolv_inet_aton" >&5
4437 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
4438 if test $ac_cv_lib_resolv_inet_aton = yes; then
4439 cat >>confdefs.h <<EOF
4440 #define HAVE_LIBRESOLV 1
4443 LIBS="-lresolv $LIBS"
4448 done
4450 echo "$as_me:4450: checking for _xpg4_setrunelocale in -lxpg4" >&5
4451 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
4452 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4454 else
4455 ac_check_lib_save_LIBS=$LIBS
4456 LIBS="-lxpg4 $LIBS"
4457 cat >conftest.$ac_ext <<_ACEOF
4458 #line 4458 "configure"
4459 #include "confdefs.h"
4461 /* Override any gcc2 internal prototype to avoid an error. */
4462 #ifdef __cplusplus
4463 extern "C"
4464 #endif
4465 /* We use char because int might match the return type of a gcc2
4466 builtin and then its argument prototype would still apply. */
4467 char _xpg4_setrunelocale ();
4469 main ()
4471 _xpg4_setrunelocale ();
4473 return 0;
4475 _ACEOF
4476 rm -f conftest.$ac_objext conftest$ac_exeext
4477 if { (eval echo "$as_me:4477: \"$ac_link\"") >&5
4478 (eval $ac_link) 2>&5
4479 ac_status=$?
4480 echo "$as_me:4480: \$? = $ac_status" >&5
4481 (exit $ac_status); } &&
4482 { ac_try='test -s conftest$ac_exeext'
4483 { (eval echo "$as_me:4483: \"$ac_try\"") >&5
4484 (eval $ac_try) 2>&5
4485 ac_status=$?
4486 echo "$as_me:4486: \$? = $ac_status" >&5
4487 (exit $ac_status); }; }; then
4488 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
4489 else
4490 echo "$as_me: failed program was:" >&5
4491 cat conftest.$ac_ext >&5
4492 ac_cv_lib_xpg4__xpg4_setrunelocale=no
4494 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4495 LIBS=$ac_check_lib_save_LIBS
4497 echo "$as_me:4497: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
4498 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
4499 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
4500 cat >>confdefs.h <<EOF
4501 #define HAVE_LIBXPG4 1
4504 LIBS="-lxpg4 $LIBS"
4508 echo "$as_me:4508: checking for mmap in -lmmap" >&5
4509 echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
4510 if test "${ac_cv_lib_mmap_mmap+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 else
4513 ac_check_lib_save_LIBS=$LIBS
4514 LIBS="-lmmap $LIBS"
4515 cat >conftest.$ac_ext <<_ACEOF
4516 #line 4516 "configure"
4517 #include "confdefs.h"
4519 /* Override any gcc2 internal prototype to avoid an error. */
4520 #ifdef __cplusplus
4521 extern "C"
4522 #endif
4523 /* We use char because int might match the return type of a gcc2
4524 builtin and then its argument prototype would still apply. */
4525 char mmap ();
4527 main ()
4529 mmap ();
4531 return 0;
4533 _ACEOF
4534 rm -f conftest.$ac_objext conftest$ac_exeext
4535 if { (eval echo "$as_me:4535: \"$ac_link\"") >&5
4536 (eval $ac_link) 2>&5
4537 ac_status=$?
4538 echo "$as_me:4538: \$? = $ac_status" >&5
4539 (exit $ac_status); } &&
4540 { ac_try='test -s conftest$ac_exeext'
4541 { (eval echo "$as_me:4541: \"$ac_try\"") >&5
4542 (eval $ac_try) 2>&5
4543 ac_status=$?
4544 echo "$as_me:4544: \$? = $ac_status" >&5
4545 (exit $ac_status); }; }; then
4546 ac_cv_lib_mmap_mmap=yes
4547 else
4548 echo "$as_me: failed program was:" >&5
4549 cat conftest.$ac_ext >&5
4550 ac_cv_lib_mmap_mmap=no
4552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4553 LIBS=$ac_check_lib_save_LIBS
4555 echo "$as_me:4555: result: $ac_cv_lib_mmap_mmap" >&5
4556 echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
4557 if test $ac_cv_lib_mmap_mmap = yes; then
4558 cat >>confdefs.h <<EOF
4559 #define HAVE_LIBMMAP 1
4562 LIBS="-lmmap $LIBS"
4566 UTILLIBS=""
4568 for ac_func in openpty
4570 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4571 echo "$as_me:4571: checking for $ac_func" >&5
4572 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4573 if eval "test \"\${$as_ac_var+set}\" = set"; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4575 else
4576 cat >conftest.$ac_ext <<_ACEOF
4577 #line 4577 "configure"
4578 #include "confdefs.h"
4579 /* System header to define __stub macros and hopefully few prototypes,
4580 which can conflict with char $ac_func (); below. */
4581 #include <assert.h>
4582 /* Override any gcc2 internal prototype to avoid an error. */
4583 #ifdef __cplusplus
4584 extern "C"
4585 #endif
4586 /* We use char because int might match the return type of a gcc2
4587 builtin and then its argument prototype would still apply. */
4588 char $ac_func ();
4589 char (*f) ();
4592 main ()
4594 /* The GNU C library defines this for functions which it implements
4595 to always fail with ENOSYS. Some functions are actually named
4596 something starting with __ and the normal name is an alias. */
4597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4598 choke me
4599 #else
4600 f = $ac_func;
4601 #endif
4604 return 0;
4606 _ACEOF
4607 rm -f conftest.$ac_objext conftest$ac_exeext
4608 if { (eval echo "$as_me:4608: \"$ac_link\"") >&5
4609 (eval $ac_link) 2>&5
4610 ac_status=$?
4611 echo "$as_me:4611: \$? = $ac_status" >&5
4612 (exit $ac_status); } &&
4613 { ac_try='test -s conftest$ac_exeext'
4614 { (eval echo "$as_me:4614: \"$ac_try\"") >&5
4615 (eval $ac_try) 2>&5
4616 ac_status=$?
4617 echo "$as_me:4617: \$? = $ac_status" >&5
4618 (exit $ac_status); }; }; then
4619 eval "$as_ac_var=yes"
4620 else
4621 echo "$as_me: failed program was:" >&5
4622 cat conftest.$ac_ext >&5
4623 eval "$as_ac_var=no"
4625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4627 echo "$as_me:4627: result: `eval echo '${'$as_ac_var'}'`" >&5
4628 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4629 if test `eval echo '${'$as_ac_var'}'` = yes; then
4630 cat >>confdefs.h <<EOF
4631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4634 else
4635 echo "$as_me:4635: checking for openpty in -lutil" >&5
4636 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
4637 if test "${ac_cv_lib_util_openpty+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 else
4640 ac_check_lib_save_LIBS=$LIBS
4641 LIBS="-lutil $LIBS"
4642 cat >conftest.$ac_ext <<_ACEOF
4643 #line 4643 "configure"
4644 #include "confdefs.h"
4646 /* Override any gcc2 internal prototype to avoid an error. */
4647 #ifdef __cplusplus
4648 extern "C"
4649 #endif
4650 /* We use char because int might match the return type of a gcc2
4651 builtin and then its argument prototype would still apply. */
4652 char openpty ();
4654 main ()
4656 openpty ();
4658 return 0;
4660 _ACEOF
4661 rm -f conftest.$ac_objext conftest$ac_exeext
4662 if { (eval echo "$as_me:4662: \"$ac_link\"") >&5
4663 (eval $ac_link) 2>&5
4664 ac_status=$?
4665 echo "$as_me:4665: \$? = $ac_status" >&5
4666 (exit $ac_status); } &&
4667 { ac_try='test -s conftest$ac_exeext'
4668 { (eval echo "$as_me:4668: \"$ac_try\"") >&5
4669 (eval $ac_try) 2>&5
4670 ac_status=$?
4671 echo "$as_me:4671: \$? = $ac_status" >&5
4672 (exit $ac_status); }; }; then
4673 ac_cv_lib_util_openpty=yes
4674 else
4675 echo "$as_me: failed program was:" >&5
4676 cat conftest.$ac_ext >&5
4677 ac_cv_lib_util_openpty=no
4679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4680 LIBS=$ac_check_lib_save_LIBS
4682 echo "$as_me:4682: result: $ac_cv_lib_util_openpty" >&5
4683 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
4684 if test $ac_cv_lib_util_openpty = yes; then
4685 cat >>confdefs.h <<\EOF
4686 #define HAVE_OPENPTY 1
4689 UTILLIBS="-lutil"
4694 done
4696 DLLIBS=""
4698 for ac_header in dlfcn.h
4700 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4701 echo "$as_me:4701: checking for $ac_header" >&5
4702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4704 echo $ECHO_N "(cached) $ECHO_C" >&6
4705 else
4706 cat >conftest.$ac_ext <<_ACEOF
4707 #line 4707 "configure"
4708 #include "confdefs.h"
4709 #include <$ac_header>
4710 _ACEOF
4711 if { (eval echo "$as_me:4711: \"$ac_cpp conftest.$ac_ext\"") >&5
4712 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4713 ac_status=$?
4714 egrep -v '^ *\+' conftest.er1 >conftest.err
4715 rm -f conftest.er1
4716 cat conftest.err >&5
4717 echo "$as_me:4717: \$? = $ac_status" >&5
4718 (exit $ac_status); } >/dev/null; then
4719 if test -s conftest.err; then
4720 ac_cpp_err=$ac_c_preproc_warn_flag
4721 else
4722 ac_cpp_err=
4724 else
4725 ac_cpp_err=yes
4727 if test -z "$ac_cpp_err"; then
4728 eval "$as_ac_Header=yes"
4729 else
4730 echo "$as_me: failed program was:" >&5
4731 cat conftest.$ac_ext >&5
4732 eval "$as_ac_Header=no"
4734 rm -f conftest.err conftest.$ac_ext
4736 echo "$as_me:4736: result: `eval echo '${'$as_ac_Header'}'`" >&5
4737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4739 cat >>confdefs.h <<EOF
4740 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4743 for ac_func in dlopen
4745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4746 echo "$as_me:4746: checking for $ac_func" >&5
4747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4748 if eval "test \"\${$as_ac_var+set}\" = set"; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4750 else
4751 cat >conftest.$ac_ext <<_ACEOF
4752 #line 4752 "configure"
4753 #include "confdefs.h"
4754 /* System header to define __stub macros and hopefully few prototypes,
4755 which can conflict with char $ac_func (); below. */
4756 #include <assert.h>
4757 /* Override any gcc2 internal prototype to avoid an error. */
4758 #ifdef __cplusplus
4759 extern "C"
4760 #endif
4761 /* We use char because int might match the return type of a gcc2
4762 builtin and then its argument prototype would still apply. */
4763 char $ac_func ();
4764 char (*f) ();
4767 main ()
4769 /* The GNU C library defines this for functions which it implements
4770 to always fail with ENOSYS. Some functions are actually named
4771 something starting with __ and the normal name is an alias. */
4772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4773 choke me
4774 #else
4775 f = $ac_func;
4776 #endif
4779 return 0;
4781 _ACEOF
4782 rm -f conftest.$ac_objext conftest$ac_exeext
4783 if { (eval echo "$as_me:4783: \"$ac_link\"") >&5
4784 (eval $ac_link) 2>&5
4785 ac_status=$?
4786 echo "$as_me:4786: \$? = $ac_status" >&5
4787 (exit $ac_status); } &&
4788 { ac_try='test -s conftest$ac_exeext'
4789 { (eval echo "$as_me:4789: \"$ac_try\"") >&5
4790 (eval $ac_try) 2>&5
4791 ac_status=$?
4792 echo "$as_me:4792: \$? = $ac_status" >&5
4793 (exit $ac_status); }; }; then
4794 eval "$as_ac_var=yes"
4795 else
4796 echo "$as_me: failed program was:" >&5
4797 cat conftest.$ac_ext >&5
4798 eval "$as_ac_var=no"
4800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4802 echo "$as_me:4802: result: `eval echo '${'$as_ac_var'}'`" >&5
4803 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4804 if test `eval echo '${'$as_ac_var'}'` = yes; then
4805 cat >>confdefs.h <<EOF
4806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4809 else
4810 echo "$as_me:4810: checking for dlopen in -ldl" >&5
4811 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4812 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 else
4815 ac_check_lib_save_LIBS=$LIBS
4816 LIBS="-ldl $LIBS"
4817 cat >conftest.$ac_ext <<_ACEOF
4818 #line 4818 "configure"
4819 #include "confdefs.h"
4821 /* Override any gcc2 internal prototype to avoid an error. */
4822 #ifdef __cplusplus
4823 extern "C"
4824 #endif
4825 /* We use char because int might match the return type of a gcc2
4826 builtin and then its argument prototype would still apply. */
4827 char dlopen ();
4829 main ()
4831 dlopen ();
4833 return 0;
4835 _ACEOF
4836 rm -f conftest.$ac_objext conftest$ac_exeext
4837 if { (eval echo "$as_me:4837: \"$ac_link\"") >&5
4838 (eval $ac_link) 2>&5
4839 ac_status=$?
4840 echo "$as_me:4840: \$? = $ac_status" >&5
4841 (exit $ac_status); } &&
4842 { ac_try='test -s conftest$ac_exeext'
4843 { (eval echo "$as_me:4843: \"$ac_try\"") >&5
4844 (eval $ac_try) 2>&5
4845 ac_status=$?
4846 echo "$as_me:4846: \$? = $ac_status" >&5
4847 (exit $ac_status); }; }; then
4848 ac_cv_lib_dl_dlopen=yes
4849 else
4850 echo "$as_me: failed program was:" >&5
4851 cat conftest.$ac_ext >&5
4852 ac_cv_lib_dl_dlopen=no
4854 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4855 LIBS=$ac_check_lib_save_LIBS
4857 echo "$as_me:4857: result: $ac_cv_lib_dl_dlopen" >&5
4858 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4859 if test $ac_cv_lib_dl_dlopen = yes; then
4861 cat >>confdefs.h <<\EOF
4862 #define HAVE_DLOPEN 1
4865 DLLIBS="-ldl"
4866 else
4867 LIBEXT="a"
4871 done
4873 else
4874 LIBEXT="a"
4877 done
4879 JPEGLIB=""
4881 for ac_header in jpeglib.h
4883 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4884 echo "$as_me:4884: checking for $ac_header" >&5
4885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4888 else
4889 cat >conftest.$ac_ext <<_ACEOF
4890 #line 4890 "configure"
4891 #include "confdefs.h"
4892 #include <$ac_header>
4893 _ACEOF
4894 if { (eval echo "$as_me:4894: \"$ac_cpp conftest.$ac_ext\"") >&5
4895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4896 ac_status=$?
4897 egrep -v '^ *\+' conftest.er1 >conftest.err
4898 rm -f conftest.er1
4899 cat conftest.err >&5
4900 echo "$as_me:4900: \$? = $ac_status" >&5
4901 (exit $ac_status); } >/dev/null; then
4902 if test -s conftest.err; then
4903 ac_cpp_err=$ac_c_preproc_warn_flag
4904 else
4905 ac_cpp_err=
4907 else
4908 ac_cpp_err=yes
4910 if test -z "$ac_cpp_err"; then
4911 eval "$as_ac_Header=yes"
4912 else
4913 echo "$as_me: failed program was:" >&5
4914 cat conftest.$ac_ext >&5
4915 eval "$as_ac_Header=no"
4917 rm -f conftest.err conftest.$ac_ext
4919 echo "$as_me:4919: result: `eval echo '${'$as_ac_Header'}'`" >&5
4920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4922 cat >>confdefs.h <<EOF
4923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4925 echo "$as_me:4925: checking for jpeg_start_decompress in -ljpeg" >&5
4926 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
4927 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
4928 echo $ECHO_N "(cached) $ECHO_C" >&6
4929 else
4930 ac_check_lib_save_LIBS=$LIBS
4931 LIBS="-ljpeg $LIBS"
4932 cat >conftest.$ac_ext <<_ACEOF
4933 #line 4933 "configure"
4934 #include "confdefs.h"
4936 /* Override any gcc2 internal prototype to avoid an error. */
4937 #ifdef __cplusplus
4938 extern "C"
4939 #endif
4940 /* We use char because int might match the return type of a gcc2
4941 builtin and then its argument prototype would still apply. */
4942 char jpeg_start_decompress ();
4944 main ()
4946 jpeg_start_decompress ();
4948 return 0;
4950 _ACEOF
4951 rm -f conftest.$ac_objext conftest$ac_exeext
4952 if { (eval echo "$as_me:4952: \"$ac_link\"") >&5
4953 (eval $ac_link) 2>&5
4954 ac_status=$?
4955 echo "$as_me:4955: \$? = $ac_status" >&5
4956 (exit $ac_status); } &&
4957 { ac_try='test -s conftest$ac_exeext'
4958 { (eval echo "$as_me:4958: \"$ac_try\"") >&5
4959 (eval $ac_try) 2>&5
4960 ac_status=$?
4961 echo "$as_me:4961: \$? = $ac_status" >&5
4962 (exit $ac_status); }; }; then
4963 ac_cv_lib_jpeg_jpeg_start_decompress=yes
4964 else
4965 echo "$as_me: failed program was:" >&5
4966 cat conftest.$ac_ext >&5
4967 ac_cv_lib_jpeg_jpeg_start_decompress=no
4969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4970 LIBS=$ac_check_lib_save_LIBS
4972 echo "$as_me:4972: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
4973 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
4974 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
4976 cat >>confdefs.h <<\EOF
4977 #define HAVE_LIBJPEG 1
4980 JPEGLIB="-ljpeg"
4985 done
4987 XFILES=""
4989 OPENGLFILES=""
4991 GLU32FILES=""
4992 if test "$have_x" = "yes"
4993 then
4994 XLIB="-lXext -lX11"
4995 ac_save_CPPFLAGS="$CPPFLAGS"
4996 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4998 for ac_header in X11/Xlib.h
5000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5001 echo "$as_me:5001: checking for $ac_header" >&5
5002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5004 echo $ECHO_N "(cached) $ECHO_C" >&6
5005 else
5006 cat >conftest.$ac_ext <<_ACEOF
5007 #line 5007 "configure"
5008 #include "confdefs.h"
5009 #include <$ac_header>
5010 _ACEOF
5011 if { (eval echo "$as_me:5011: \"$ac_cpp conftest.$ac_ext\"") >&5
5012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5013 ac_status=$?
5014 egrep -v '^ *\+' conftest.er1 >conftest.err
5015 rm -f conftest.er1
5016 cat conftest.err >&5
5017 echo "$as_me:5017: \$? = $ac_status" >&5
5018 (exit $ac_status); } >/dev/null; then
5019 if test -s conftest.err; then
5020 ac_cpp_err=$ac_c_preproc_warn_flag
5021 else
5022 ac_cpp_err=
5024 else
5025 ac_cpp_err=yes
5027 if test -z "$ac_cpp_err"; then
5028 eval "$as_ac_Header=yes"
5029 else
5030 echo "$as_me: failed program was:" >&5
5031 cat conftest.$ac_ext >&5
5032 eval "$as_ac_Header=no"
5034 rm -f conftest.err conftest.$ac_ext
5036 echo "$as_me:5036: result: `eval echo '${'$as_ac_Header'}'`" >&5
5037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5039 cat >>confdefs.h <<EOF
5040 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5043 for ac_header in X11/XKBlib.h
5045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5046 echo "$as_me:5046: checking for $ac_header" >&5
5047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5049 echo $ECHO_N "(cached) $ECHO_C" >&6
5050 else
5051 cat >conftest.$ac_ext <<_ACEOF
5052 #line 5052 "configure"
5053 #include "confdefs.h"
5054 #include <$ac_header>
5055 _ACEOF
5056 if { (eval echo "$as_me:5056: \"$ac_cpp conftest.$ac_ext\"") >&5
5057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5058 ac_status=$?
5059 egrep -v '^ *\+' conftest.er1 >conftest.err
5060 rm -f conftest.er1
5061 cat conftest.err >&5
5062 echo "$as_me:5062: \$? = $ac_status" >&5
5063 (exit $ac_status); } >/dev/null; then
5064 if test -s conftest.err; then
5065 ac_cpp_err=$ac_c_preproc_warn_flag
5066 else
5067 ac_cpp_err=
5069 else
5070 ac_cpp_err=yes
5072 if test -z "$ac_cpp_err"; then
5073 eval "$as_ac_Header=yes"
5074 else
5075 echo "$as_me: failed program was:" >&5
5076 cat conftest.$ac_ext >&5
5077 eval "$as_ac_Header=no"
5079 rm -f conftest.err conftest.$ac_ext
5081 echo "$as_me:5081: result: `eval echo '${'$as_ac_Header'}'`" >&5
5082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5084 cat >>confdefs.h <<EOF
5085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5087 echo "$as_me:5087: checking for XkbQueryExtension in -lX11" >&5
5088 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
5089 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
5090 echo $ECHO_N "(cached) $ECHO_C" >&6
5091 else
5092 ac_check_lib_save_LIBS=$LIBS
5093 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
5094 cat >conftest.$ac_ext <<_ACEOF
5095 #line 5095 "configure"
5096 #include "confdefs.h"
5098 /* Override any gcc2 internal prototype to avoid an error. */
5099 #ifdef __cplusplus
5100 extern "C"
5101 #endif
5102 /* We use char because int might match the return type of a gcc2
5103 builtin and then its argument prototype would still apply. */
5104 char XkbQueryExtension ();
5106 main ()
5108 XkbQueryExtension ();
5110 return 0;
5112 _ACEOF
5113 rm -f conftest.$ac_objext conftest$ac_exeext
5114 if { (eval echo "$as_me:5114: \"$ac_link\"") >&5
5115 (eval $ac_link) 2>&5
5116 ac_status=$?
5117 echo "$as_me:5117: \$? = $ac_status" >&5
5118 (exit $ac_status); } &&
5119 { ac_try='test -s conftest$ac_exeext'
5120 { (eval echo "$as_me:5120: \"$ac_try\"") >&5
5121 (eval $ac_try) 2>&5
5122 ac_status=$?
5123 echo "$as_me:5123: \$? = $ac_status" >&5
5124 (exit $ac_status); }; }; then
5125 ac_cv_lib_X11_XkbQueryExtension=yes
5126 else
5127 echo "$as_me: failed program was:" >&5
5128 cat conftest.$ac_ext >&5
5129 ac_cv_lib_X11_XkbQueryExtension=no
5131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5132 LIBS=$ac_check_lib_save_LIBS
5134 echo "$as_me:5134: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
5135 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
5136 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
5138 cat >>confdefs.h <<\EOF
5139 #define HAVE_XKB 1
5144 else
5145 { echo "$as_me:5145: WARNING: Xkb extension not found, Wine will be built without it" >&5
5146 echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
5149 done
5151 for ac_header in X11/extensions/XShm.h
5153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5154 echo "$as_me:5154: checking for $ac_header" >&5
5155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
5158 else
5159 cat >conftest.$ac_ext <<_ACEOF
5160 #line 5160 "configure"
5161 #include "confdefs.h"
5162 #include <$ac_header>
5163 _ACEOF
5164 if { (eval echo "$as_me:5164: \"$ac_cpp conftest.$ac_ext\"") >&5
5165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5166 ac_status=$?
5167 egrep -v '^ *\+' conftest.er1 >conftest.err
5168 rm -f conftest.er1
5169 cat conftest.err >&5
5170 echo "$as_me:5170: \$? = $ac_status" >&5
5171 (exit $ac_status); } >/dev/null; then
5172 if test -s conftest.err; then
5173 ac_cpp_err=$ac_c_preproc_warn_flag
5174 else
5175 ac_cpp_err=
5177 else
5178 ac_cpp_err=yes
5180 if test -z "$ac_cpp_err"; then
5181 eval "$as_ac_Header=yes"
5182 else
5183 echo "$as_me: failed program was:" >&5
5184 cat conftest.$ac_ext >&5
5185 eval "$as_ac_Header=no"
5187 rm -f conftest.err conftest.$ac_ext
5189 echo "$as_me:5189: result: `eval echo '${'$as_ac_Header'}'`" >&5
5190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5192 cat >>confdefs.h <<EOF
5193 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5195 echo "$as_me:5195: checking for XShmQueryExtension in -lXext" >&5
5196 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
5197 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200 ac_check_lib_save_LIBS=$LIBS
5201 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
5202 cat >conftest.$ac_ext <<_ACEOF
5203 #line 5203 "configure"
5204 #include "confdefs.h"
5206 /* Override any gcc2 internal prototype to avoid an error. */
5207 #ifdef __cplusplus
5208 extern "C"
5209 #endif
5210 /* We use char because int might match the return type of a gcc2
5211 builtin and then its argument prototype would still apply. */
5212 char XShmQueryExtension ();
5214 main ()
5216 XShmQueryExtension ();
5218 return 0;
5220 _ACEOF
5221 rm -f conftest.$ac_objext conftest$ac_exeext
5222 if { (eval echo "$as_me:5222: \"$ac_link\"") >&5
5223 (eval $ac_link) 2>&5
5224 ac_status=$?
5225 echo "$as_me:5225: \$? = $ac_status" >&5
5226 (exit $ac_status); } &&
5227 { ac_try='test -s conftest$ac_exeext'
5228 { (eval echo "$as_me:5228: \"$ac_try\"") >&5
5229 (eval $ac_try) 2>&5
5230 ac_status=$?
5231 echo "$as_me:5231: \$? = $ac_status" >&5
5232 (exit $ac_status); }; }; then
5233 ac_cv_lib_Xext_XShmQueryExtension=yes
5234 else
5235 echo "$as_me: failed program was:" >&5
5236 cat conftest.$ac_ext >&5
5237 ac_cv_lib_Xext_XShmQueryExtension=no
5239 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5240 LIBS=$ac_check_lib_save_LIBS
5242 echo "$as_me:5242: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
5243 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
5244 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
5246 cat >>confdefs.h <<\EOF
5247 #define HAVE_LIBXXSHM 1
5252 else
5253 { echo "$as_me:5253: WARNING: XShm extension not found, Wine will be built without it" >&5
5254 echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
5257 done
5259 for ac_header in X11/extensions/shape.h
5261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5262 echo "$as_me:5262: checking for $ac_header" >&5
5263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5265 echo $ECHO_N "(cached) $ECHO_C" >&6
5266 else
5267 cat >conftest.$ac_ext <<_ACEOF
5268 #line 5268 "configure"
5269 #include "confdefs.h"
5270 #include <$ac_header>
5271 _ACEOF
5272 if { (eval echo "$as_me:5272: \"$ac_cpp conftest.$ac_ext\"") >&5
5273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5274 ac_status=$?
5275 egrep -v '^ *\+' conftest.er1 >conftest.err
5276 rm -f conftest.er1
5277 cat conftest.err >&5
5278 echo "$as_me:5278: \$? = $ac_status" >&5
5279 (exit $ac_status); } >/dev/null; then
5280 if test -s conftest.err; then
5281 ac_cpp_err=$ac_c_preproc_warn_flag
5282 else
5283 ac_cpp_err=
5285 else
5286 ac_cpp_err=yes
5288 if test -z "$ac_cpp_err"; then
5289 eval "$as_ac_Header=yes"
5290 else
5291 echo "$as_me: failed program was:" >&5
5292 cat conftest.$ac_ext >&5
5293 eval "$as_ac_Header=no"
5295 rm -f conftest.err conftest.$ac_ext
5297 echo "$as_me:5297: result: `eval echo '${'$as_ac_Header'}'`" >&5
5298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5300 cat >>confdefs.h <<EOF
5301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5303 echo "$as_me:5303: checking for XShapeQueryExtension in -lXext" >&5
5304 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
5305 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
5306 echo $ECHO_N "(cached) $ECHO_C" >&6
5307 else
5308 ac_check_lib_save_LIBS=$LIBS
5309 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
5310 cat >conftest.$ac_ext <<_ACEOF
5311 #line 5311 "configure"
5312 #include "confdefs.h"
5314 /* Override any gcc2 internal prototype to avoid an error. */
5315 #ifdef __cplusplus
5316 extern "C"
5317 #endif
5318 /* We use char because int might match the return type of a gcc2
5319 builtin and then its argument prototype would still apply. */
5320 char XShapeQueryExtension ();
5322 main ()
5324 XShapeQueryExtension ();
5326 return 0;
5328 _ACEOF
5329 rm -f conftest.$ac_objext conftest$ac_exeext
5330 if { (eval echo "$as_me:5330: \"$ac_link\"") >&5
5331 (eval $ac_link) 2>&5
5332 ac_status=$?
5333 echo "$as_me:5333: \$? = $ac_status" >&5
5334 (exit $ac_status); } &&
5335 { ac_try='test -s conftest$ac_exeext'
5336 { (eval echo "$as_me:5336: \"$ac_try\"") >&5
5337 (eval $ac_try) 2>&5
5338 ac_status=$?
5339 echo "$as_me:5339: \$? = $ac_status" >&5
5340 (exit $ac_status); }; }; then
5341 ac_cv_lib_Xext_XShapeQueryExtension=yes
5342 else
5343 echo "$as_me: failed program was:" >&5
5344 cat conftest.$ac_ext >&5
5345 ac_cv_lib_Xext_XShapeQueryExtension=no
5347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5348 LIBS=$ac_check_lib_save_LIBS
5350 echo "$as_me:5350: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
5351 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
5352 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
5354 cat >>confdefs.h <<\EOF
5355 #define HAVE_LIBXSHAPE 1
5360 else
5361 { echo "$as_me:5361: WARNING: XShape extension not found, Wine will be built without it" >&5
5362 echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
5365 done
5367 for ac_header in X11/extensions/xf86dga.h
5369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5370 echo "$as_me:5370: checking for $ac_header" >&5
5371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5373 echo $ECHO_N "(cached) $ECHO_C" >&6
5374 else
5375 cat >conftest.$ac_ext <<_ACEOF
5376 #line 5376 "configure"
5377 #include "confdefs.h"
5378 #include <$ac_header>
5379 _ACEOF
5380 if { (eval echo "$as_me:5380: \"$ac_cpp conftest.$ac_ext\"") >&5
5381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5382 ac_status=$?
5383 egrep -v '^ *\+' conftest.er1 >conftest.err
5384 rm -f conftest.er1
5385 cat conftest.err >&5
5386 echo "$as_me:5386: \$? = $ac_status" >&5
5387 (exit $ac_status); } >/dev/null; then
5388 if test -s conftest.err; then
5389 ac_cpp_err=$ac_c_preproc_warn_flag
5390 else
5391 ac_cpp_err=
5393 else
5394 ac_cpp_err=yes
5396 if test -z "$ac_cpp_err"; then
5397 eval "$as_ac_Header=yes"
5398 else
5399 echo "$as_me: failed program was:" >&5
5400 cat conftest.$ac_ext >&5
5401 eval "$as_ac_Header=no"
5403 rm -f conftest.err conftest.$ac_ext
5405 echo "$as_me:5405: result: `eval echo '${'$as_ac_Header'}'`" >&5
5406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5408 cat >>confdefs.h <<EOF
5409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5411 echo "$as_me:5411: checking for XDGAQueryExtension in -lXxf86dga" >&5
5412 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
5413 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
5414 echo $ECHO_N "(cached) $ECHO_C" >&6
5415 else
5416 ac_check_lib_save_LIBS=$LIBS
5417 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
5418 $LIBS"
5419 cat >conftest.$ac_ext <<_ACEOF
5420 #line 5420 "configure"
5421 #include "confdefs.h"
5423 /* Override any gcc2 internal prototype to avoid an error. */
5424 #ifdef __cplusplus
5425 extern "C"
5426 #endif
5427 /* We use char because int might match the return type of a gcc2
5428 builtin and then its argument prototype would still apply. */
5429 char XDGAQueryExtension ();
5431 main ()
5433 XDGAQueryExtension ();
5435 return 0;
5437 _ACEOF
5438 rm -f conftest.$ac_objext conftest$ac_exeext
5439 if { (eval echo "$as_me:5439: \"$ac_link\"") >&5
5440 (eval $ac_link) 2>&5
5441 ac_status=$?
5442 echo "$as_me:5442: \$? = $ac_status" >&5
5443 (exit $ac_status); } &&
5444 { ac_try='test -s conftest$ac_exeext'
5445 { (eval echo "$as_me:5445: \"$ac_try\"") >&5
5446 (eval $ac_try) 2>&5
5447 ac_status=$?
5448 echo "$as_me:5448: \$? = $ac_status" >&5
5449 (exit $ac_status); }; }; then
5450 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
5451 else
5452 echo "$as_me: failed program was:" >&5
5453 cat conftest.$ac_ext >&5
5454 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
5456 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5457 LIBS=$ac_check_lib_save_LIBS
5459 echo "$as_me:5459: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
5460 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
5461 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
5463 cat >>confdefs.h <<\EOF
5464 #define HAVE_LIBXXF86DGA2 1
5467 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
5469 else
5470 echo "$as_me:5470: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
5471 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
5472 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5474 else
5475 ac_check_lib_save_LIBS=$LIBS
5476 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
5477 $LIBS"
5478 cat >conftest.$ac_ext <<_ACEOF
5479 #line 5479 "configure"
5480 #include "confdefs.h"
5482 /* Override any gcc2 internal prototype to avoid an error. */
5483 #ifdef __cplusplus
5484 extern "C"
5485 #endif
5486 /* We use char because int might match the return type of a gcc2
5487 builtin and then its argument prototype would still apply. */
5488 char XF86DGAQueryExtension ();
5490 main ()
5492 XF86DGAQueryExtension ();
5494 return 0;
5496 _ACEOF
5497 rm -f conftest.$ac_objext conftest$ac_exeext
5498 if { (eval echo "$as_me:5498: \"$ac_link\"") >&5
5499 (eval $ac_link) 2>&5
5500 ac_status=$?
5501 echo "$as_me:5501: \$? = $ac_status" >&5
5502 (exit $ac_status); } &&
5503 { ac_try='test -s conftest$ac_exeext'
5504 { (eval echo "$as_me:5504: \"$ac_try\"") >&5
5505 (eval $ac_try) 2>&5
5506 ac_status=$?
5507 echo "$as_me:5507: \$? = $ac_status" >&5
5508 (exit $ac_status); }; }; then
5509 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
5510 else
5511 echo "$as_me: failed program was:" >&5
5512 cat conftest.$ac_ext >&5
5513 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
5515 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5516 LIBS=$ac_check_lib_save_LIBS
5518 echo "$as_me:5518: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
5519 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
5520 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
5522 cat >>confdefs.h <<\EOF
5523 #define HAVE_LIBXXF86DGA 1
5526 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
5532 else
5533 { echo "$as_me:5533: WARNING: DGA extension not found, Wine will be built without it" >&5
5534 echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
5537 done
5539 for ac_header in X11/extensions/xf86vmode.h
5541 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5542 echo "$as_me:5542: checking for $ac_header" >&5
5543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5545 echo $ECHO_N "(cached) $ECHO_C" >&6
5546 else
5547 cat >conftest.$ac_ext <<_ACEOF
5548 #line 5548 "configure"
5549 #include "confdefs.h"
5550 #include <$ac_header>
5551 _ACEOF
5552 if { (eval echo "$as_me:5552: \"$ac_cpp conftest.$ac_ext\"") >&5
5553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5554 ac_status=$?
5555 egrep -v '^ *\+' conftest.er1 >conftest.err
5556 rm -f conftest.er1
5557 cat conftest.err >&5
5558 echo "$as_me:5558: \$? = $ac_status" >&5
5559 (exit $ac_status); } >/dev/null; then
5560 if test -s conftest.err; then
5561 ac_cpp_err=$ac_c_preproc_warn_flag
5562 else
5563 ac_cpp_err=
5565 else
5566 ac_cpp_err=yes
5568 if test -z "$ac_cpp_err"; then
5569 eval "$as_ac_Header=yes"
5570 else
5571 echo "$as_me: failed program was:" >&5
5572 cat conftest.$ac_ext >&5
5573 eval "$as_ac_Header=no"
5575 rm -f conftest.err conftest.$ac_ext
5577 echo "$as_me:5577: result: `eval echo '${'$as_ac_Header'}'`" >&5
5578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5580 cat >>confdefs.h <<EOF
5581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5583 echo "$as_me:5583: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
5584 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
5585 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
5586 echo $ECHO_N "(cached) $ECHO_C" >&6
5587 else
5588 ac_check_lib_save_LIBS=$LIBS
5589 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
5590 $LIBS"
5591 cat >conftest.$ac_ext <<_ACEOF
5592 #line 5592 "configure"
5593 #include "confdefs.h"
5595 /* Override any gcc2 internal prototype to avoid an error. */
5596 #ifdef __cplusplus
5597 extern "C"
5598 #endif
5599 /* We use char because int might match the return type of a gcc2
5600 builtin and then its argument prototype would still apply. */
5601 char XF86VidModeQueryExtension ();
5603 main ()
5605 XF86VidModeQueryExtension ();
5607 return 0;
5609 _ACEOF
5610 rm -f conftest.$ac_objext conftest$ac_exeext
5611 if { (eval echo "$as_me:5611: \"$ac_link\"") >&5
5612 (eval $ac_link) 2>&5
5613 ac_status=$?
5614 echo "$as_me:5614: \$? = $ac_status" >&5
5615 (exit $ac_status); } &&
5616 { ac_try='test -s conftest$ac_exeext'
5617 { (eval echo "$as_me:5617: \"$ac_try\"") >&5
5618 (eval $ac_try) 2>&5
5619 ac_status=$?
5620 echo "$as_me:5620: \$? = $ac_status" >&5
5621 (exit $ac_status); }; }; then
5622 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
5623 else
5624 echo "$as_me: failed program was:" >&5
5625 cat conftest.$ac_ext >&5
5626 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
5628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5629 LIBS=$ac_check_lib_save_LIBS
5631 echo "$as_me:5631: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
5632 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
5633 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
5635 cat >>confdefs.h <<\EOF
5636 #define HAVE_LIBXXF86VM 1
5639 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
5643 else
5644 { echo "$as_me:5644: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
5645 echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
5648 done
5650 for ac_header in X11/extensions/Xvlib.h
5652 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5653 echo "$as_me:5653: checking for $ac_header" >&5
5654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5656 echo $ECHO_N "(cached) $ECHO_C" >&6
5657 else
5658 cat >conftest.$ac_ext <<_ACEOF
5659 #line 5659 "configure"
5660 #include "confdefs.h"
5661 #include <$ac_header>
5662 _ACEOF
5663 if { (eval echo "$as_me:5663: \"$ac_cpp conftest.$ac_ext\"") >&5
5664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5665 ac_status=$?
5666 egrep -v '^ *\+' conftest.er1 >conftest.err
5667 rm -f conftest.er1
5668 cat conftest.err >&5
5669 echo "$as_me:5669: \$? = $ac_status" >&5
5670 (exit $ac_status); } >/dev/null; then
5671 if test -s conftest.err; then
5672 ac_cpp_err=$ac_c_preproc_warn_flag
5673 else
5674 ac_cpp_err=
5676 else
5677 ac_cpp_err=yes
5679 if test -z "$ac_cpp_err"; then
5680 eval "$as_ac_Header=yes"
5681 else
5682 echo "$as_me: failed program was:" >&5
5683 cat conftest.$ac_ext >&5
5684 eval "$as_ac_Header=no"
5686 rm -f conftest.err conftest.$ac_ext
5688 echo "$as_me:5688: result: `eval echo '${'$as_ac_Header'}'`" >&5
5689 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5691 cat >>confdefs.h <<EOF
5692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5694 echo "$as_me:5694: checking for XvShmCreateImage in -lXv" >&5
5695 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
5696 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
5697 echo $ECHO_N "(cached) $ECHO_C" >&6
5698 else
5699 ac_check_lib_save_LIBS=$LIBS
5700 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
5701 $LIBS"
5702 cat >conftest.$ac_ext <<_ACEOF
5703 #line 5703 "configure"
5704 #include "confdefs.h"
5706 /* Override any gcc2 internal prototype to avoid an error. */
5707 #ifdef __cplusplus
5708 extern "C"
5709 #endif
5710 /* We use char because int might match the return type of a gcc2
5711 builtin and then its argument prototype would still apply. */
5712 char XvShmCreateImage ();
5714 main ()
5716 XvShmCreateImage ();
5718 return 0;
5720 _ACEOF
5721 rm -f conftest.$ac_objext conftest$ac_exeext
5722 if { (eval echo "$as_me:5722: \"$ac_link\"") >&5
5723 (eval $ac_link) 2>&5
5724 ac_status=$?
5725 echo "$as_me:5725: \$? = $ac_status" >&5
5726 (exit $ac_status); } &&
5727 { ac_try='test -s conftest$ac_exeext'
5728 { (eval echo "$as_me:5728: \"$ac_try\"") >&5
5729 (eval $ac_try) 2>&5
5730 ac_status=$?
5731 echo "$as_me:5731: \$? = $ac_status" >&5
5732 (exit $ac_status); }; }; then
5733 ac_cv_lib_Xv_XvShmCreateImage=yes
5734 else
5735 echo "$as_me: failed program was:" >&5
5736 cat conftest.$ac_ext >&5
5737 ac_cv_lib_Xv_XvShmCreateImage=no
5739 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5740 LIBS=$ac_check_lib_save_LIBS
5742 echo "$as_me:5742: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
5743 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
5744 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
5746 cat >>confdefs.h <<\EOF
5747 #define HAVE_XVIDEO 1
5750 X_PRE_LIBS="$X_PRE_LIBS -lXv"
5754 else
5755 { echo "$as_me:5755: WARNING: XVideo extension not found, Wine will be built without it" >&5
5756 echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
5759 done
5761 for ac_header in X11/extensions/Xrender.h
5763 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5764 echo "$as_me:5764: checking for $ac_header" >&5
5765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5768 else
5769 cat >conftest.$ac_ext <<_ACEOF
5770 #line 5770 "configure"
5771 #include "confdefs.h"
5772 #include <$ac_header>
5773 _ACEOF
5774 if { (eval echo "$as_me:5774: \"$ac_cpp conftest.$ac_ext\"") >&5
5775 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5776 ac_status=$?
5777 egrep -v '^ *\+' conftest.er1 >conftest.err
5778 rm -f conftest.er1
5779 cat conftest.err >&5
5780 echo "$as_me:5780: \$? = $ac_status" >&5
5781 (exit $ac_status); } >/dev/null; then
5782 if test -s conftest.err; then
5783 ac_cpp_err=$ac_c_preproc_warn_flag
5784 else
5785 ac_cpp_err=
5787 else
5788 ac_cpp_err=yes
5790 if test -z "$ac_cpp_err"; then
5791 eval "$as_ac_Header=yes"
5792 else
5793 echo "$as_me: failed program was:" >&5
5794 cat conftest.$ac_ext >&5
5795 eval "$as_ac_Header=no"
5797 rm -f conftest.err conftest.$ac_ext
5799 echo "$as_me:5799: result: `eval echo '${'$as_ac_Header'}'`" >&5
5800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5802 cat >>confdefs.h <<EOF
5803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5805 echo "$as_me:5805: checking for XRenderQueryExtension in -lXrender" >&5
5806 echo $ECHO_N "checking for XRenderQueryExtension in -lXrender... $ECHO_C" >&6
5807 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
5808 echo $ECHO_N "(cached) $ECHO_C" >&6
5809 else
5810 ac_check_lib_save_LIBS=$LIBS
5811 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
5812 $LIBS"
5813 cat >conftest.$ac_ext <<_ACEOF
5814 #line 5814 "configure"
5815 #include "confdefs.h"
5817 /* Override any gcc2 internal prototype to avoid an error. */
5818 #ifdef __cplusplus
5819 extern "C"
5820 #endif
5821 /* We use char because int might match the return type of a gcc2
5822 builtin and then its argument prototype would still apply. */
5823 char XRenderQueryExtension ();
5825 main ()
5827 XRenderQueryExtension ();
5829 return 0;
5831 _ACEOF
5832 rm -f conftest.$ac_objext conftest$ac_exeext
5833 if { (eval echo "$as_me:5833: \"$ac_link\"") >&5
5834 (eval $ac_link) 2>&5
5835 ac_status=$?
5836 echo "$as_me:5836: \$? = $ac_status" >&5
5837 (exit $ac_status); } &&
5838 { ac_try='test -s conftest$ac_exeext'
5839 { (eval echo "$as_me:5839: \"$ac_try\"") >&5
5840 (eval $ac_try) 2>&5
5841 ac_status=$?
5842 echo "$as_me:5842: \$? = $ac_status" >&5
5843 (exit $ac_status); }; }; then
5844 ac_cv_lib_Xrender_XRenderQueryExtension=yes
5845 else
5846 echo "$as_me: failed program was:" >&5
5847 cat conftest.$ac_ext >&5
5848 ac_cv_lib_Xrender_XRenderQueryExtension=no
5850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5851 LIBS=$ac_check_lib_save_LIBS
5853 echo "$as_me:5853: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
5854 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderQueryExtension" >&6
5855 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
5857 cat >>confdefs.h <<\EOF
5858 #define HAVE_LIBXRENDER 1
5861 X_PRE_LIBS="$X_PRE_LIBS -lXrender"
5865 else
5866 { echo "$as_me:5866: WARNING: XRender extension not found, Wine will be built without it" >&5
5867 echo "$as_me: WARNING: XRender extension not found, Wine will be built without it" >&2;}
5870 done
5873 done
5875 if test "x$enable_opengl" != "xno"
5876 then
5877 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
5878 then
5879 { { echo "$as_me:5879: error: /usr/X11R6/lib/libGL.a is present on your system.
5880 This prevents linking to OpenGL. Delete the file and restart configure." >&5
5881 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
5882 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
5883 { (exit 1); exit 1; }; }
5886 for ac_header in GL/gl.h GL/glx.h GL/glext.h
5888 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5889 echo "$as_me:5889: checking for $ac_header" >&5
5890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 else
5894 cat >conftest.$ac_ext <<_ACEOF
5895 #line 5895 "configure"
5896 #include "confdefs.h"
5897 #include <$ac_header>
5898 _ACEOF
5899 if { (eval echo "$as_me:5899: \"$ac_cpp conftest.$ac_ext\"") >&5
5900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5901 ac_status=$?
5902 egrep -v '^ *\+' conftest.er1 >conftest.err
5903 rm -f conftest.er1
5904 cat conftest.err >&5
5905 echo "$as_me:5905: \$? = $ac_status" >&5
5906 (exit $ac_status); } >/dev/null; then
5907 if test -s conftest.err; then
5908 ac_cpp_err=$ac_c_preproc_warn_flag
5909 else
5910 ac_cpp_err=
5912 else
5913 ac_cpp_err=yes
5915 if test -z "$ac_cpp_err"; then
5916 eval "$as_ac_Header=yes"
5917 else
5918 echo "$as_me: failed program was:" >&5
5919 cat conftest.$ac_ext >&5
5920 eval "$as_ac_Header=no"
5922 rm -f conftest.err conftest.$ac_ext
5924 echo "$as_me:5924: result: `eval echo '${'$as_ac_Header'}'`" >&5
5925 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5927 cat >>confdefs.h <<EOF
5928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5932 done
5934 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
5935 then
5936 echo "$as_me:5936: checking for up-to-date OpenGL version" >&5
5937 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
5938 if test "${wine_cv_opengl_version_OK+set}" = set; then
5939 echo $ECHO_N "(cached) $ECHO_C" >&6
5940 else
5941 cat >conftest.$ac_ext <<_ACEOF
5942 #line 5942 "configure"
5943 #include "confdefs.h"
5944 #include <GL/gl.h>
5946 main ()
5948 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
5950 return 0;
5952 _ACEOF
5953 rm -f conftest.$ac_objext
5954 if { (eval echo "$as_me:5954: \"$ac_compile\"") >&5
5955 (eval $ac_compile) 2>&5
5956 ac_status=$?
5957 echo "$as_me:5957: \$? = $ac_status" >&5
5958 (exit $ac_status); } &&
5959 { ac_try='test -s conftest.$ac_objext'
5960 { (eval echo "$as_me:5960: \"$ac_try\"") >&5
5961 (eval $ac_try) 2>&5
5962 ac_status=$?
5963 echo "$as_me:5963: \$? = $ac_status" >&5
5964 (exit $ac_status); }; }; then
5965 wine_cv_opengl_version_OK="yes"
5966 else
5967 echo "$as_me: failed program was:" >&5
5968 cat conftest.$ac_ext >&5
5969 wine_cv_opengl_version_OK="no"
5972 rm -f conftest.$ac_objext conftest.$ac_ext
5975 echo "$as_me:5975: result: $wine_cv_opengl_version_OK" >&5
5976 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
5978 echo "$as_me:5978: checking for thread-safe OpenGL version" >&5
5979 echo $ECHO_N "checking for thread-safe OpenGL version... $ECHO_C" >&6
5980 if test "${wine_cv_opengl_version_threadsafe+set}" = set; then
5981 echo $ECHO_N "(cached) $ECHO_C" >&6
5982 else
5983 saved_libs=$LIBS
5984 LIBS="$X_LIBS -lGL"
5985 cat >conftest.$ac_ext <<_ACEOF
5986 #line 5986 "configure"
5987 #include "confdefs.h"
5990 main ()
5992 pthread_getspecific();
5994 return 0;
5996 _ACEOF
5997 rm -f conftest.$ac_objext conftest$ac_exeext
5998 if { (eval echo "$as_me:5998: \"$ac_link\"") >&5
5999 (eval $ac_link) 2>&5
6000 ac_status=$?
6001 echo "$as_me:6001: \$? = $ac_status" >&5
6002 (exit $ac_status); } &&
6003 { ac_try='test -s conftest$ac_exeext'
6004 { (eval echo "$as_me:6004: \"$ac_try\"") >&5
6005 (eval $ac_try) 2>&5
6006 ac_status=$?
6007 echo "$as_me:6007: \$? = $ac_status" >&5
6008 (exit $ac_status); }; }; then
6009 wine_cv_opengl_version_threadsafe="yes"
6010 else
6011 echo "$as_me: failed program was:" >&5
6012 cat conftest.$ac_ext >&5
6013 wine_cv_opengl_version_threadsafe="no"
6015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6016 LIBS=$saved_libs
6019 echo "$as_me:6019: result: $wine_cv_opengl_version_threadsafe" >&5
6020 echo "${ECHO_T}$wine_cv_opengl_version_threadsafe" >&6
6022 if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o "x$enable_opengl" = "xyes" \)
6023 then
6024 echo "$as_me:6024: checking for glXCreateContext in -lGL" >&5
6025 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
6026 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6028 else
6029 ac_check_lib_save_LIBS=$LIBS
6030 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
6031 cat >conftest.$ac_ext <<_ACEOF
6032 #line 6032 "configure"
6033 #include "confdefs.h"
6035 /* Override any gcc2 internal prototype to avoid an error. */
6036 #ifdef __cplusplus
6037 extern "C"
6038 #endif
6039 /* We use char because int might match the return type of a gcc2
6040 builtin and then its argument prototype would still apply. */
6041 char glXCreateContext ();
6043 main ()
6045 glXCreateContext ();
6047 return 0;
6049 _ACEOF
6050 rm -f conftest.$ac_objext conftest$ac_exeext
6051 if { (eval echo "$as_me:6051: \"$ac_link\"") >&5
6052 (eval $ac_link) 2>&5
6053 ac_status=$?
6054 echo "$as_me:6054: \$? = $ac_status" >&5
6055 (exit $ac_status); } &&
6056 { ac_try='test -s conftest$ac_exeext'
6057 { (eval echo "$as_me:6057: \"$ac_try\"") >&5
6058 (eval $ac_try) 2>&5
6059 ac_status=$?
6060 echo "$as_me:6060: \$? = $ac_status" >&5
6061 (exit $ac_status); }; }; then
6062 ac_cv_lib_GL_glXCreateContext=yes
6063 else
6064 echo "$as_me: failed program was:" >&5
6065 cat conftest.$ac_ext >&5
6066 ac_cv_lib_GL_glXCreateContext=no
6068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6069 LIBS=$ac_check_lib_save_LIBS
6071 echo "$as_me:6071: result: $ac_cv_lib_GL_glXCreateContext" >&5
6072 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
6073 if test $ac_cv_lib_GL_glXCreateContext = yes; then
6074 X_PRE_LIBS="$X_PRE_LIBS -lGL"
6078 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
6079 then
6080 OPENGLFILES='$(OPENGLFILES)'
6082 cat >>confdefs.h <<\EOF
6083 #define HAVE_OPENGL 1
6086 echo "$as_me:6086: checking for glXGetProcAddressARB in -lGL" >&5
6087 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
6088 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
6089 echo $ECHO_N "(cached) $ECHO_C" >&6
6090 else
6091 ac_check_lib_save_LIBS=$LIBS
6092 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
6093 cat >conftest.$ac_ext <<_ACEOF
6094 #line 6094 "configure"
6095 #include "confdefs.h"
6097 /* Override any gcc2 internal prototype to avoid an error. */
6098 #ifdef __cplusplus
6099 extern "C"
6100 #endif
6101 /* We use char because int might match the return type of a gcc2
6102 builtin and then its argument prototype would still apply. */
6103 char glXGetProcAddressARB ();
6105 main ()
6107 glXGetProcAddressARB ();
6109 return 0;
6111 _ACEOF
6112 rm -f conftest.$ac_objext conftest$ac_exeext
6113 if { (eval echo "$as_me:6113: \"$ac_link\"") >&5
6114 (eval $ac_link) 2>&5
6115 ac_status=$?
6116 echo "$as_me:6116: \$? = $ac_status" >&5
6117 (exit $ac_status); } &&
6118 { ac_try='test -s conftest$ac_exeext'
6119 { (eval echo "$as_me:6119: \"$ac_try\"") >&5
6120 (eval $ac_try) 2>&5
6121 ac_status=$?
6122 echo "$as_me:6122: \$? = $ac_status" >&5
6123 (exit $ac_status); }; }; then
6124 ac_cv_lib_GL_glXGetProcAddressARB=yes
6125 else
6126 echo "$as_me: failed program was:" >&5
6127 cat conftest.$ac_ext >&5
6128 ac_cv_lib_GL_glXGetProcAddressARB=no
6130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6131 LIBS=$ac_check_lib_save_LIBS
6133 echo "$as_me:6133: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
6134 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
6135 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
6137 cat >>confdefs.h <<\EOF
6138 #define HAVE_GLX_GETPROCADDRESS 1
6143 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
6144 then
6145 echo "$as_me:6145: checking for OpenGL extension functions prototypes" >&5
6146 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
6147 if test "${wine_cv_extension_prototypes+set}" = set; then
6148 echo $ECHO_N "(cached) $ECHO_C" >&6
6149 else
6150 cat >conftest.$ac_ext <<_ACEOF
6151 #line 6151 "configure"
6152 #include "confdefs.h"
6153 #include <GL/gl.h>
6154 #ifdef HAVE_GL_GLEXT_H
6155 # include <GL/glext.h>
6156 #endif
6159 main ()
6161 PFNGLCOLORTABLEEXTPROC test_proc;
6163 return 0;
6165 _ACEOF
6166 rm -f conftest.$ac_objext
6167 if { (eval echo "$as_me:6167: \"$ac_compile\"") >&5
6168 (eval $ac_compile) 2>&5
6169 ac_status=$?
6170 echo "$as_me:6170: \$? = $ac_status" >&5
6171 (exit $ac_status); } &&
6172 { ac_try='test -s conftest.$ac_objext'
6173 { (eval echo "$as_me:6173: \"$ac_try\"") >&5
6174 (eval $ac_try) 2>&5
6175 ac_status=$?
6176 echo "$as_me:6176: \$? = $ac_status" >&5
6177 (exit $ac_status); }; }; then
6178 wine_cv_extension_prototypes="yes"
6179 else
6180 echo "$as_me: failed program was:" >&5
6181 cat conftest.$ac_ext >&5
6182 wine_cv_extension_prototypes="no"
6185 rm -f conftest.$ac_objext conftest.$ac_ext
6188 echo "$as_me:6188: result: $wine_cv_extension_prototypes" >&5
6189 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
6190 if test "$wine_cv_extension_prototypes" = "yes"
6191 then
6193 cat >>confdefs.h <<\EOF
6194 #define HAVE_GLEXT_PROTOTYPES 1
6201 echo "$as_me:6201: checking for gluLookAt in -lGLU" >&5
6202 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
6203 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6205 else
6206 ac_check_lib_save_LIBS=$LIBS
6207 LIBS="-lGLU $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
6208 $LIBS"
6209 cat >conftest.$ac_ext <<_ACEOF
6210 #line 6210 "configure"
6211 #include "confdefs.h"
6213 /* Override any gcc2 internal prototype to avoid an error. */
6214 #ifdef __cplusplus
6215 extern "C"
6216 #endif
6217 /* We use char because int might match the return type of a gcc2
6218 builtin and then its argument prototype would still apply. */
6219 char gluLookAt ();
6221 main ()
6223 gluLookAt ();
6225 return 0;
6227 _ACEOF
6228 rm -f conftest.$ac_objext conftest$ac_exeext
6229 if { (eval echo "$as_me:6229: \"$ac_link\"") >&5
6230 (eval $ac_link) 2>&5
6231 ac_status=$?
6232 echo "$as_me:6232: \$? = $ac_status" >&5
6233 (exit $ac_status); } &&
6234 { ac_try='test -s conftest$ac_exeext'
6235 { (eval echo "$as_me:6235: \"$ac_try\"") >&5
6236 (eval $ac_try) 2>&5
6237 ac_status=$?
6238 echo "$as_me:6238: \$? = $ac_status" >&5
6239 (exit $ac_status); }; }; then
6240 ac_cv_lib_GLU_gluLookAt=yes
6241 else
6242 echo "$as_me: failed program was:" >&5
6243 cat conftest.$ac_ext >&5
6244 ac_cv_lib_GLU_gluLookAt=no
6246 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6247 LIBS=$ac_check_lib_save_LIBS
6249 echo "$as_me:6249: result: $ac_cv_lib_GLU_gluLookAt" >&5
6250 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
6251 if test $ac_cv_lib_GLU_gluLookAt = yes; then
6252 X_PRE_LIBS="$X_PRE_LIBS -lGLU"
6253 GLU32FILES='$(GLU32FILES)'
6261 CPPFLAGS="$ac_save_CPPFLAGS"
6262 XFILES='$(XFILES)'
6263 else
6264 XLIB=""
6265 X_CFLAGS=""
6266 X_LIBS=""
6269 CURSESLIBS=""
6270 if test "x$with_curses" != "xno"
6271 then
6273 for ac_header in ncurses.h
6275 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6276 echo "$as_me:6276: checking for $ac_header" >&5
6277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6279 echo $ECHO_N "(cached) $ECHO_C" >&6
6280 else
6281 cat >conftest.$ac_ext <<_ACEOF
6282 #line 6282 "configure"
6283 #include "confdefs.h"
6284 #include <$ac_header>
6285 _ACEOF
6286 if { (eval echo "$as_me:6286: \"$ac_cpp conftest.$ac_ext\"") >&5
6287 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6288 ac_status=$?
6289 egrep -v '^ *\+' conftest.er1 >conftest.err
6290 rm -f conftest.er1
6291 cat conftest.err >&5
6292 echo "$as_me:6292: \$? = $ac_status" >&5
6293 (exit $ac_status); } >/dev/null; then
6294 if test -s conftest.err; then
6295 ac_cpp_err=$ac_c_preproc_warn_flag
6296 else
6297 ac_cpp_err=
6299 else
6300 ac_cpp_err=yes
6302 if test -z "$ac_cpp_err"; then
6303 eval "$as_ac_Header=yes"
6304 else
6305 echo "$as_me: failed program was:" >&5
6306 cat conftest.$ac_ext >&5
6307 eval "$as_ac_Header=no"
6309 rm -f conftest.err conftest.$ac_ext
6311 echo "$as_me:6311: result: `eval echo '${'$as_ac_Header'}'`" >&5
6312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6314 cat >>confdefs.h <<EOF
6315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6317 echo "$as_me:6317: checking for waddch in -lncurses" >&5
6318 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
6319 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
6320 echo $ECHO_N "(cached) $ECHO_C" >&6
6321 else
6322 ac_check_lib_save_LIBS=$LIBS
6323 LIBS="-lncurses $LIBS"
6324 cat >conftest.$ac_ext <<_ACEOF
6325 #line 6325 "configure"
6326 #include "confdefs.h"
6328 /* Override any gcc2 internal prototype to avoid an error. */
6329 #ifdef __cplusplus
6330 extern "C"
6331 #endif
6332 /* We use char because int might match the return type of a gcc2
6333 builtin and then its argument prototype would still apply. */
6334 char waddch ();
6336 main ()
6338 waddch ();
6340 return 0;
6342 _ACEOF
6343 rm -f conftest.$ac_objext conftest$ac_exeext
6344 if { (eval echo "$as_me:6344: \"$ac_link\"") >&5
6345 (eval $ac_link) 2>&5
6346 ac_status=$?
6347 echo "$as_me:6347: \$? = $ac_status" >&5
6348 (exit $ac_status); } &&
6349 { ac_try='test -s conftest$ac_exeext'
6350 { (eval echo "$as_me:6350: \"$ac_try\"") >&5
6351 (eval $ac_try) 2>&5
6352 ac_status=$?
6353 echo "$as_me:6353: \$? = $ac_status" >&5
6354 (exit $ac_status); }; }; then
6355 ac_cv_lib_ncurses_waddch=yes
6356 else
6357 echo "$as_me: failed program was:" >&5
6358 cat conftest.$ac_ext >&5
6359 ac_cv_lib_ncurses_waddch=no
6361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6362 LIBS=$ac_check_lib_save_LIBS
6364 echo "$as_me:6364: result: $ac_cv_lib_ncurses_waddch" >&5
6365 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
6366 if test $ac_cv_lib_ncurses_waddch = yes; then
6368 cat >>confdefs.h <<\EOF
6369 #define HAVE_LIBNCURSES 1
6372 CURSESLIBS="-lncurses"
6373 else
6375 for ac_header in curses.h
6377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6378 echo "$as_me:6378: checking for $ac_header" >&5
6379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6381 echo $ECHO_N "(cached) $ECHO_C" >&6
6382 else
6383 cat >conftest.$ac_ext <<_ACEOF
6384 #line 6384 "configure"
6385 #include "confdefs.h"
6386 #include <$ac_header>
6387 _ACEOF
6388 if { (eval echo "$as_me:6388: \"$ac_cpp conftest.$ac_ext\"") >&5
6389 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6390 ac_status=$?
6391 egrep -v '^ *\+' conftest.er1 >conftest.err
6392 rm -f conftest.er1
6393 cat conftest.err >&5
6394 echo "$as_me:6394: \$? = $ac_status" >&5
6395 (exit $ac_status); } >/dev/null; then
6396 if test -s conftest.err; then
6397 ac_cpp_err=$ac_c_preproc_warn_flag
6398 else
6399 ac_cpp_err=
6401 else
6402 ac_cpp_err=yes
6404 if test -z "$ac_cpp_err"; then
6405 eval "$as_ac_Header=yes"
6406 else
6407 echo "$as_me: failed program was:" >&5
6408 cat conftest.$ac_ext >&5
6409 eval "$as_ac_Header=no"
6411 rm -f conftest.err conftest.$ac_ext
6413 echo "$as_me:6413: result: `eval echo '${'$as_ac_Header'}'`" >&5
6414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6416 cat >>confdefs.h <<EOF
6417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6419 echo "$as_me:6419: checking for waddch in -lcurses" >&5
6420 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
6421 if test "${ac_cv_lib_curses_waddch+set}" = set; then
6422 echo $ECHO_N "(cached) $ECHO_C" >&6
6423 else
6424 ac_check_lib_save_LIBS=$LIBS
6425 LIBS="-lcurses $LIBS"
6426 cat >conftest.$ac_ext <<_ACEOF
6427 #line 6427 "configure"
6428 #include "confdefs.h"
6430 /* Override any gcc2 internal prototype to avoid an error. */
6431 #ifdef __cplusplus
6432 extern "C"
6433 #endif
6434 /* We use char because int might match the return type of a gcc2
6435 builtin and then its argument prototype would still apply. */
6436 char waddch ();
6438 main ()
6440 waddch ();
6442 return 0;
6444 _ACEOF
6445 rm -f conftest.$ac_objext conftest$ac_exeext
6446 if { (eval echo "$as_me:6446: \"$ac_link\"") >&5
6447 (eval $ac_link) 2>&5
6448 ac_status=$?
6449 echo "$as_me:6449: \$? = $ac_status" >&5
6450 (exit $ac_status); } &&
6451 { ac_try='test -s conftest$ac_exeext'
6452 { (eval echo "$as_me:6452: \"$ac_try\"") >&5
6453 (eval $ac_try) 2>&5
6454 ac_status=$?
6455 echo "$as_me:6455: \$? = $ac_status" >&5
6456 (exit $ac_status); }; }; then
6457 ac_cv_lib_curses_waddch=yes
6458 else
6459 echo "$as_me: failed program was:" >&5
6460 cat conftest.$ac_ext >&5
6461 ac_cv_lib_curses_waddch=no
6463 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6464 LIBS=$ac_check_lib_save_LIBS
6466 echo "$as_me:6466: result: $ac_cv_lib_curses_waddch" >&5
6467 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
6468 if test $ac_cv_lib_curses_waddch = yes; then
6470 cat >>confdefs.h <<\EOF
6471 #define HAVE_LIBCURSES 1
6474 CURSESLIBS="-lcurses"
6478 done
6483 done
6485 saved_libs="$LIBS"
6486 LIBS="$CURSESLIBS $LIBS"
6488 for ac_func in getbkgd resizeterm
6490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6491 echo "$as_me:6491: checking for $ac_func" >&5
6492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6493 if eval "test \"\${$as_ac_var+set}\" = set"; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 else
6496 cat >conftest.$ac_ext <<_ACEOF
6497 #line 6497 "configure"
6498 #include "confdefs.h"
6499 /* System header to define __stub macros and hopefully few prototypes,
6500 which can conflict with char $ac_func (); below. */
6501 #include <assert.h>
6502 /* Override any gcc2 internal prototype to avoid an error. */
6503 #ifdef __cplusplus
6504 extern "C"
6505 #endif
6506 /* We use char because int might match the return type of a gcc2
6507 builtin and then its argument prototype would still apply. */
6508 char $ac_func ();
6509 char (*f) ();
6512 main ()
6514 /* The GNU C library defines this for functions which it implements
6515 to always fail with ENOSYS. Some functions are actually named
6516 something starting with __ and the normal name is an alias. */
6517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6518 choke me
6519 #else
6520 f = $ac_func;
6521 #endif
6524 return 0;
6526 _ACEOF
6527 rm -f conftest.$ac_objext conftest$ac_exeext
6528 if { (eval echo "$as_me:6528: \"$ac_link\"") >&5
6529 (eval $ac_link) 2>&5
6530 ac_status=$?
6531 echo "$as_me:6531: \$? = $ac_status" >&5
6532 (exit $ac_status); } &&
6533 { ac_try='test -s conftest$ac_exeext'
6534 { (eval echo "$as_me:6534: \"$ac_try\"") >&5
6535 (eval $ac_try) 2>&5
6536 ac_status=$?
6537 echo "$as_me:6537: \$? = $ac_status" >&5
6538 (exit $ac_status); }; }; then
6539 eval "$as_ac_var=yes"
6540 else
6541 echo "$as_me: failed program was:" >&5
6542 cat conftest.$ac_ext >&5
6543 eval "$as_ac_var=no"
6545 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6547 echo "$as_me:6547: result: `eval echo '${'$as_ac_var'}'`" >&5
6548 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6549 if test `eval echo '${'$as_ac_var'}'` = yes; then
6550 cat >>confdefs.h <<EOF
6551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6555 done
6557 LIBS="$saved_libs"
6560 CUPSLIBS=""
6561 wine_cv_warn_cups_h=no
6562 echo "$as_me:6562: checking for cupsGetPPD in -lcups" >&5
6563 echo $ECHO_N "checking for cupsGetPPD in -lcups... $ECHO_C" >&6
6564 if test "${ac_cv_lib_cups_cupsGetPPD+set}" = set; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6566 else
6567 ac_check_lib_save_LIBS=$LIBS
6568 LIBS="-lcups $LIBS"
6569 cat >conftest.$ac_ext <<_ACEOF
6570 #line 6570 "configure"
6571 #include "confdefs.h"
6573 /* Override any gcc2 internal prototype to avoid an error. */
6574 #ifdef __cplusplus
6575 extern "C"
6576 #endif
6577 /* We use char because int might match the return type of a gcc2
6578 builtin and then its argument prototype would still apply. */
6579 char cupsGetPPD ();
6581 main ()
6583 cupsGetPPD ();
6585 return 0;
6587 _ACEOF
6588 rm -f conftest.$ac_objext conftest$ac_exeext
6589 if { (eval echo "$as_me:6589: \"$ac_link\"") >&5
6590 (eval $ac_link) 2>&5
6591 ac_status=$?
6592 echo "$as_me:6592: \$? = $ac_status" >&5
6593 (exit $ac_status); } &&
6594 { ac_try='test -s conftest$ac_exeext'
6595 { (eval echo "$as_me:6595: \"$ac_try\"") >&5
6596 (eval $ac_try) 2>&5
6597 ac_status=$?
6598 echo "$as_me:6598: \$? = $ac_status" >&5
6599 (exit $ac_status); }; }; then
6600 ac_cv_lib_cups_cupsGetPPD=yes
6601 else
6602 echo "$as_me: failed program was:" >&5
6603 cat conftest.$ac_ext >&5
6604 ac_cv_lib_cups_cupsGetPPD=no
6606 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6607 LIBS=$ac_check_lib_save_LIBS
6609 echo "$as_me:6609: result: $ac_cv_lib_cups_cupsGetPPD" >&5
6610 echo "${ECHO_T}$ac_cv_lib_cups_cupsGetPPD" >&6
6611 if test $ac_cv_lib_cups_cupsGetPPD = yes; then
6612 echo "$as_me:6612: checking for cups/cups.h" >&5
6613 echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6
6614 if test "${ac_cv_header_cups_cups_h+set}" = set; then
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
6616 else
6617 cat >conftest.$ac_ext <<_ACEOF
6618 #line 6618 "configure"
6619 #include "confdefs.h"
6620 #include <cups/cups.h>
6621 _ACEOF
6622 if { (eval echo "$as_me:6622: \"$ac_cpp conftest.$ac_ext\"") >&5
6623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6624 ac_status=$?
6625 egrep -v '^ *\+' conftest.er1 >conftest.err
6626 rm -f conftest.er1
6627 cat conftest.err >&5
6628 echo "$as_me:6628: \$? = $ac_status" >&5
6629 (exit $ac_status); } >/dev/null; then
6630 if test -s conftest.err; then
6631 ac_cpp_err=$ac_c_preproc_warn_flag
6632 else
6633 ac_cpp_err=
6635 else
6636 ac_cpp_err=yes
6638 if test -z "$ac_cpp_err"; then
6639 ac_cv_header_cups_cups_h=yes
6640 else
6641 echo "$as_me: failed program was:" >&5
6642 cat conftest.$ac_ext >&5
6643 ac_cv_header_cups_cups_h=no
6645 rm -f conftest.err conftest.$ac_ext
6647 echo "$as_me:6647: result: $ac_cv_header_cups_cups_h" >&5
6648 echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6
6649 if test $ac_cv_header_cups_cups_h = yes; then
6651 cat >>confdefs.h <<\EOF
6652 #define HAVE_CUPS 1
6655 CUPSLIBS="-lcups"
6656 else
6657 wine_cv_warn_cups_h=yes
6662 # Extract the first word of "sane-config", so it can be a program name with args.
6663 set dummy sane-config; ac_word=$2
6664 echo "$as_me:6664: checking for $ac_word" >&5
6665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6666 if test "${ac_cv_prog_sane_devel+set}" = set; then
6667 echo $ECHO_N "(cached) $ECHO_C" >&6
6668 else
6669 if test -n "$sane_devel"; then
6670 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
6671 else
6672 ac_save_IFS=$IFS; IFS=$ac_path_separator
6673 ac_dummy="$PATH"
6674 for ac_dir in $ac_dummy; do
6675 IFS=$ac_save_IFS
6676 test -z "$ac_dir" && ac_dir=.
6677 $as_executable_p "$ac_dir/$ac_word" || continue
6678 ac_cv_prog_sane_devel="sane-config"
6679 echo "$as_me:6679: found $ac_dir/$ac_word" >&5
6680 break
6681 done
6683 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
6686 sane_devel=$ac_cv_prog_sane_devel
6687 if test -n "$sane_devel"; then
6688 echo "$as_me:6688: result: $sane_devel" >&5
6689 echo "${ECHO_T}$sane_devel" >&6
6690 else
6691 echo "$as_me:6691: result: no" >&5
6692 echo "${ECHO_T}no" >&6
6695 if test "$sane_devel" = "no"
6696 then
6697 SANELIBS=""
6698 SANEINCL=""
6699 else
6700 SANELIBS="`$sane_devel --libs`"
6701 SANEINCL="`$sane_devel --cflags`"
6702 ac_save_CPPFLAGS="$CPPFLAGS"
6703 ac_save_LIBS="$LIBS"
6704 CPPFLAGS="$CPPFLAGS $SANEINCL"
6705 LIBS="$LIBS $SANELIBS"
6706 echo "$as_me:6706: checking for sane/sane.h" >&5
6707 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
6708 if test "${ac_cv_header_sane_sane_h+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6710 else
6711 cat >conftest.$ac_ext <<_ACEOF
6712 #line 6712 "configure"
6713 #include "confdefs.h"
6714 #include <sane/sane.h>
6715 _ACEOF
6716 if { (eval echo "$as_me:6716: \"$ac_cpp conftest.$ac_ext\"") >&5
6717 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6718 ac_status=$?
6719 egrep -v '^ *\+' conftest.er1 >conftest.err
6720 rm -f conftest.er1
6721 cat conftest.err >&5
6722 echo "$as_me:6722: \$? = $ac_status" >&5
6723 (exit $ac_status); } >/dev/null; then
6724 if test -s conftest.err; then
6725 ac_cpp_err=$ac_c_preproc_warn_flag
6726 else
6727 ac_cpp_err=
6729 else
6730 ac_cpp_err=yes
6732 if test -z "$ac_cpp_err"; then
6733 ac_cv_header_sane_sane_h=yes
6734 else
6735 echo "$as_me: failed program was:" >&5
6736 cat conftest.$ac_ext >&5
6737 ac_cv_header_sane_sane_h=no
6739 rm -f conftest.err conftest.$ac_ext
6741 echo "$as_me:6741: result: $ac_cv_header_sane_sane_h" >&5
6742 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
6743 if test $ac_cv_header_sane_sane_h = yes; then
6744 echo "$as_me:6744: checking for sane_open in -lsane" >&5
6745 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
6746 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 else
6749 ac_check_lib_save_LIBS=$LIBS
6750 LIBS="-lsane $LIBS"
6751 cat >conftest.$ac_ext <<_ACEOF
6752 #line 6752 "configure"
6753 #include "confdefs.h"
6755 /* Override any gcc2 internal prototype to avoid an error. */
6756 #ifdef __cplusplus
6757 extern "C"
6758 #endif
6759 /* We use char because int might match the return type of a gcc2
6760 builtin and then its argument prototype would still apply. */
6761 char sane_open ();
6763 main ()
6765 sane_open ();
6767 return 0;
6769 _ACEOF
6770 rm -f conftest.$ac_objext conftest$ac_exeext
6771 if { (eval echo "$as_me:6771: \"$ac_link\"") >&5
6772 (eval $ac_link) 2>&5
6773 ac_status=$?
6774 echo "$as_me:6774: \$? = $ac_status" >&5
6775 (exit $ac_status); } &&
6776 { ac_try='test -s conftest$ac_exeext'
6777 { (eval echo "$as_me:6777: \"$ac_try\"") >&5
6778 (eval $ac_try) 2>&5
6779 ac_status=$?
6780 echo "$as_me:6780: \$? = $ac_status" >&5
6781 (exit $ac_status); }; }; then
6782 ac_cv_lib_sane_sane_open=yes
6783 else
6784 echo "$as_me: failed program was:" >&5
6785 cat conftest.$ac_ext >&5
6786 ac_cv_lib_sane_sane_open=no
6788 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6789 LIBS=$ac_check_lib_save_LIBS
6791 echo "$as_me:6791: result: $ac_cv_lib_sane_sane_open" >&5
6792 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
6793 if test $ac_cv_lib_sane_sane_open = yes; then
6795 cat >>confdefs.h <<\EOF
6796 #define HAVE_SANE 1
6799 else
6800 SANELIBS=""
6801 SANEINCL=""
6804 else
6805 SANELIBS=""
6806 SANEINCL=""
6809 LIBS="$ac_save_LIBS"
6810 CPPFLAGS="$ac_save_CPPFLAGS"
6813 echo "$as_me:6813: checking for FT_Init_FreeType in -lfreetype" >&5
6814 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
6815 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
6816 echo $ECHO_N "(cached) $ECHO_C" >&6
6817 else
6818 ac_check_lib_save_LIBS=$LIBS
6819 LIBS="-lfreetype $X_LIBS $LIBS"
6820 cat >conftest.$ac_ext <<_ACEOF
6821 #line 6821 "configure"
6822 #include "confdefs.h"
6824 /* Override any gcc2 internal prototype to avoid an error. */
6825 #ifdef __cplusplus
6826 extern "C"
6827 #endif
6828 /* We use char because int might match the return type of a gcc2
6829 builtin and then its argument prototype would still apply. */
6830 char FT_Init_FreeType ();
6832 main ()
6834 FT_Init_FreeType ();
6836 return 0;
6838 _ACEOF
6839 rm -f conftest.$ac_objext conftest$ac_exeext
6840 if { (eval echo "$as_me:6840: \"$ac_link\"") >&5
6841 (eval $ac_link) 2>&5
6842 ac_status=$?
6843 echo "$as_me:6843: \$? = $ac_status" >&5
6844 (exit $ac_status); } &&
6845 { ac_try='test -s conftest$ac_exeext'
6846 { (eval echo "$as_me:6846: \"$ac_try\"") >&5
6847 (eval $ac_try) 2>&5
6848 ac_status=$?
6849 echo "$as_me:6849: \$? = $ac_status" >&5
6850 (exit $ac_status); }; }; then
6851 ac_cv_lib_freetype_FT_Init_FreeType=yes
6852 else
6853 echo "$as_me: failed program was:" >&5
6854 cat conftest.$ac_ext >&5
6855 ac_cv_lib_freetype_FT_Init_FreeType=no
6857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6858 LIBS=$ac_check_lib_save_LIBS
6860 echo "$as_me:6860: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
6861 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
6862 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
6863 ft_lib=yes
6864 else
6865 ft_lib=no
6868 if test "$ft_lib" = "no"
6869 then
6870 FREETYPEINCL=""
6871 wine_cv_msg_freetype=no
6872 else
6873 # Extract the first word of "freetype-config", so it can be a program name with args.
6874 set dummy freetype-config; ac_word=$2
6875 echo "$as_me:6875: checking for $ac_word" >&5
6876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6877 if test "${ac_cv_prog_ft_devel+set}" = set; then
6878 echo $ECHO_N "(cached) $ECHO_C" >&6
6879 else
6880 if test -n "$ft_devel"; then
6881 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
6882 else
6883 ac_save_IFS=$IFS; IFS=$ac_path_separator
6884 ac_dummy="$PATH"
6885 for ac_dir in $ac_dummy; do
6886 IFS=$ac_save_IFS
6887 test -z "$ac_dir" && ac_dir=.
6888 $as_executable_p "$ac_dir/$ac_word" || continue
6889 ac_cv_prog_ft_devel="freetype-config"
6890 echo "$as_me:6890: found $ac_dir/$ac_word" >&5
6891 break
6892 done
6894 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
6897 ft_devel=$ac_cv_prog_ft_devel
6898 if test -n "$ft_devel"; then
6899 echo "$as_me:6899: result: $ft_devel" >&5
6900 echo "${ECHO_T}$ft_devel" >&6
6901 else
6902 echo "$as_me:6902: result: no" >&5
6903 echo "${ECHO_T}no" >&6
6906 if test "$ft_devel" = "no"
6907 then
6908 # Extract the first word of "freetype2-config", so it can be a program name with args.
6909 set dummy freetype2-config; ac_word=$2
6910 echo "$as_me:6910: checking for $ac_word" >&5
6911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6912 if test "${ac_cv_prog_ft_devel2+set}" = set; then
6913 echo $ECHO_N "(cached) $ECHO_C" >&6
6914 else
6915 if test -n "$ft_devel2"; then
6916 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
6917 else
6918 ac_save_IFS=$IFS; IFS=$ac_path_separator
6919 ac_dummy="$PATH"
6920 for ac_dir in $ac_dummy; do
6921 IFS=$ac_save_IFS
6922 test -z "$ac_dir" && ac_dir=.
6923 $as_executable_p "$ac_dir/$ac_word" || continue
6924 ac_cv_prog_ft_devel2="freetype2-config"
6925 echo "$as_me:6925: found $ac_dir/$ac_word" >&5
6926 break
6927 done
6929 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
6932 ft_devel2=$ac_cv_prog_ft_devel2
6933 if test -n "$ft_devel2"; then
6934 echo "$as_me:6934: result: $ft_devel2" >&5
6935 echo "${ECHO_T}$ft_devel2" >&6
6936 else
6937 echo "$as_me:6937: result: no" >&5
6938 echo "${ECHO_T}no" >&6
6941 if test "$ft_devel2" = "freetype2-config"
6942 then
6943 ft_devel=$ft_devel2
6946 if test "$ft_devel" = "no"
6947 then
6948 FREETYPEINCL=""
6949 wine_cv_msg_freetype=yes
6950 else
6951 FREETYPEINCL=`$ft_devel --cflags`
6952 ac_save_CPPFLAGS="$CPPFLAGS"
6953 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
6955 for ac_header in freetype/freetype.h \
6956 freetype/ftglyph.h \
6957 freetype/tttables.h \
6958 freetype/ftnames.h \
6959 freetype/ftsnames.h \
6960 freetype/ttnameid.h \
6961 freetype/ftoutln.h \
6962 freetype/internal/sfnt.h
6964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6965 echo "$as_me:6965: checking for $ac_header" >&5
6966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6968 echo $ECHO_N "(cached) $ECHO_C" >&6
6969 else
6970 cat >conftest.$ac_ext <<_ACEOF
6971 #line 6971 "configure"
6972 #include "confdefs.h"
6973 #include <$ac_header>
6974 _ACEOF
6975 if { (eval echo "$as_me:6975: \"$ac_cpp conftest.$ac_ext\"") >&5
6976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6977 ac_status=$?
6978 egrep -v '^ *\+' conftest.er1 >conftest.err
6979 rm -f conftest.er1
6980 cat conftest.err >&5
6981 echo "$as_me:6981: \$? = $ac_status" >&5
6982 (exit $ac_status); } >/dev/null; then
6983 if test -s conftest.err; then
6984 ac_cpp_err=$ac_c_preproc_warn_flag
6985 else
6986 ac_cpp_err=
6988 else
6989 ac_cpp_err=yes
6991 if test -z "$ac_cpp_err"; then
6992 eval "$as_ac_Header=yes"
6993 else
6994 echo "$as_me: failed program was:" >&5
6995 cat conftest.$ac_ext >&5
6996 eval "$as_ac_Header=no"
6998 rm -f conftest.err conftest.$ac_ext
7000 echo "$as_me:7000: result: `eval echo '${'$as_ac_Header'}'`" >&5
7001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7003 cat >>confdefs.h <<EOF
7004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7008 done
7010 cat >conftest.$ac_ext <<_ACEOF
7011 #line 7011 "configure"
7012 #include "confdefs.h"
7013 #include <ft2build.h>
7014 #include <freetype/fttrigon.h>
7015 _ACEOF
7016 if { (eval echo "$as_me:7016: \"$ac_cpp conftest.$ac_ext\"") >&5
7017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7018 ac_status=$?
7019 egrep -v '^ *\+' conftest.er1 >conftest.err
7020 rm -f conftest.er1
7021 cat conftest.err >&5
7022 echo "$as_me:7022: \$? = $ac_status" >&5
7023 (exit $ac_status); } >/dev/null; then
7024 if test -s conftest.err; then
7025 ac_cpp_err=$ac_c_preproc_warn_flag
7026 else
7027 ac_cpp_err=
7029 else
7030 ac_cpp_err=yes
7032 if test -z "$ac_cpp_err"; then
7034 cat >>confdefs.h <<\EOF
7035 #define HAVE_FREETYPE_FTTRIGON_H 1
7038 wine_cv_fttrigon=yes
7039 else
7040 echo "$as_me: failed program was:" >&5
7041 cat conftest.$ac_ext >&5
7042 wine_cv_fttrigon=no
7044 rm -f conftest.err conftest.$ac_ext
7045 CPPFLAGS="$ac_save_CPPFLAGS"
7046 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
7047 then
7049 cat >>confdefs.h <<\EOF
7050 #define HAVE_FREETYPE 1
7053 wine_cv_msg_freetype=no
7054 else
7055 FREETYPEINCL=""
7056 wine_cv_msg_freetype=yes
7061 echo "$as_me:7061: checking for parport header/ppdev.h" >&5
7062 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
7063 if test "${ac_cv_c_ppdev+set}" = set; then
7064 echo $ECHO_N "(cached) $ECHO_C" >&6
7065 else
7066 cat >conftest.$ac_ext <<_ACEOF
7067 #line 7067 "configure"
7068 #include "confdefs.h"
7069 #include <linux/ppdev.h>
7071 main ()
7073 ioctl (1,PPCLAIM,0)
7075 return 0;
7077 _ACEOF
7078 rm -f conftest.$ac_objext
7079 if { (eval echo "$as_me:7079: \"$ac_compile\"") >&5
7080 (eval $ac_compile) 2>&5
7081 ac_status=$?
7082 echo "$as_me:7082: \$? = $ac_status" >&5
7083 (exit $ac_status); } &&
7084 { ac_try='test -s conftest.$ac_objext'
7085 { (eval echo "$as_me:7085: \"$ac_try\"") >&5
7086 (eval $ac_try) 2>&5
7087 ac_status=$?
7088 echo "$as_me:7088: \$? = $ac_status" >&5
7089 (exit $ac_status); }; }; then
7090 ac_cv_c_ppdev="yes"
7091 else
7092 echo "$as_me: failed program was:" >&5
7093 cat conftest.$ac_ext >&5
7094 ac_cv_c_ppdev="no"
7096 rm -f conftest.$ac_objext conftest.$ac_ext
7099 echo "$as_me:7099: result: $ac_cv_c_ppdev" >&5
7100 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
7101 if test "$ac_cv_c_ppdev" = "yes"
7102 then
7104 cat >>confdefs.h <<\EOF
7105 #define HAVE_PPDEV 1
7110 echo "$as_me:7110: checking for GNU style IPX support" >&5
7111 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
7112 if test "${ac_cv_c_ipx_gnu+set}" = set; then
7113 echo $ECHO_N "(cached) $ECHO_C" >&6
7114 else
7115 cat >conftest.$ac_ext <<_ACEOF
7116 #line 7116 "configure"
7117 #include "confdefs.h"
7118 #include <sys/socket.h>
7119 #include <netipx/ipx.h>
7121 main ()
7123 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
7125 return 0;
7127 _ACEOF
7128 rm -f conftest.$ac_objext
7129 if { (eval echo "$as_me:7129: \"$ac_compile\"") >&5
7130 (eval $ac_compile) 2>&5
7131 ac_status=$?
7132 echo "$as_me:7132: \$? = $ac_status" >&5
7133 (exit $ac_status); } &&
7134 { ac_try='test -s conftest.$ac_objext'
7135 { (eval echo "$as_me:7135: \"$ac_try\"") >&5
7136 (eval $ac_try) 2>&5
7137 ac_status=$?
7138 echo "$as_me:7138: \$? = $ac_status" >&5
7139 (exit $ac_status); }; }; then
7140 ac_cv_c_ipx_gnu="yes"
7141 else
7142 echo "$as_me: failed program was:" >&5
7143 cat conftest.$ac_ext >&5
7144 ac_cv_c_ipx_gnu="no"
7146 rm -f conftest.$ac_objext conftest.$ac_ext
7149 echo "$as_me:7149: result: $ac_cv_c_ipx_gnu" >&5
7150 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
7151 if test "$ac_cv_c_ipx_gnu" = "yes"
7152 then
7154 cat >>confdefs.h <<\EOF
7155 #define HAVE_IPX_GNU 1
7160 if test "$ac_cv_c_ipx_gnu" = "no"
7161 then
7162 echo "$as_me:7162: checking for linux style IPX support" >&5
7163 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
7164 if test "${ac_cv_c_ipx_linux+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 else
7167 cat >conftest.$ac_ext <<_ACEOF
7168 #line 7168 "configure"
7169 #include "confdefs.h"
7170 #include <sys/socket.h>
7171 #include <asm/types.h>
7172 #include <linux/ipx.h>
7174 main ()
7176 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
7178 return 0;
7180 _ACEOF
7181 rm -f conftest.$ac_objext
7182 if { (eval echo "$as_me:7182: \"$ac_compile\"") >&5
7183 (eval $ac_compile) 2>&5
7184 ac_status=$?
7185 echo "$as_me:7185: \$? = $ac_status" >&5
7186 (exit $ac_status); } &&
7187 { ac_try='test -s conftest.$ac_objext'
7188 { (eval echo "$as_me:7188: \"$ac_try\"") >&5
7189 (eval $ac_try) 2>&5
7190 ac_status=$?
7191 echo "$as_me:7191: \$? = $ac_status" >&5
7192 (exit $ac_status); }; }; then
7193 ac_cv_c_ipx_linux="yes"
7194 else
7195 echo "$as_me: failed program was:" >&5
7196 cat conftest.$ac_ext >&5
7197 ac_cv_c_ipx_linux="no"
7199 rm -f conftest.$ac_objext conftest.$ac_ext
7202 echo "$as_me:7202: result: $ac_cv_c_ipx_linux" >&5
7203 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
7204 if test "$ac_cv_c_ipx_linux" = "yes"
7205 then
7207 cat >>confdefs.h <<\EOF
7208 #define HAVE_IPX_LINUX 1
7214 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
7216 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7217 echo "$as_me:7217: checking for $ac_header" >&5
7218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7220 echo $ECHO_N "(cached) $ECHO_C" >&6
7221 else
7222 cat >conftest.$ac_ext <<_ACEOF
7223 #line 7223 "configure"
7224 #include "confdefs.h"
7225 #include <$ac_header>
7226 _ACEOF
7227 if { (eval echo "$as_me:7227: \"$ac_cpp conftest.$ac_ext\"") >&5
7228 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7229 ac_status=$?
7230 egrep -v '^ *\+' conftest.er1 >conftest.err
7231 rm -f conftest.er1
7232 cat conftest.err >&5
7233 echo "$as_me:7233: \$? = $ac_status" >&5
7234 (exit $ac_status); } >/dev/null; then
7235 if test -s conftest.err; then
7236 ac_cpp_err=$ac_c_preproc_warn_flag
7237 else
7238 ac_cpp_err=
7240 else
7241 ac_cpp_err=yes
7243 if test -z "$ac_cpp_err"; then
7244 eval "$as_ac_Header=yes"
7245 else
7246 echo "$as_me: failed program was:" >&5
7247 cat conftest.$ac_ext >&5
7248 eval "$as_ac_Header=no"
7250 rm -f conftest.err conftest.$ac_ext
7252 echo "$as_me:7252: result: `eval echo '${'$as_ac_Header'}'`" >&5
7253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7254 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7255 cat >>confdefs.h <<EOF
7256 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7258 break
7260 done
7262 echo "$as_me:7262: checking for Open Sound System" >&5
7263 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
7264 if test "${ac_cv_c_opensoundsystem+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7266 else
7267 cat >conftest.$ac_ext <<_ACEOF
7268 #line 7268 "configure"
7269 #include "confdefs.h"
7271 #if defined(HAVE_SYS_SOUNDCARD_H)
7272 #include <sys/soundcard.h>
7273 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
7274 #include <machine/soundcard.h>
7275 #elif defined(HAVE_SOUNDCARD_H)
7276 #include <soundcard.h>
7277 #endif
7280 main ()
7283 /* check for one of the Open Sound System specific SNDCTL_ defines */
7284 #if !defined(SNDCTL_DSP_STEREO)
7285 #error No open sound system
7286 #endif
7289 return 0;
7291 _ACEOF
7292 rm -f conftest.$ac_objext
7293 if { (eval echo "$as_me:7293: \"$ac_compile\"") >&5
7294 (eval $ac_compile) 2>&5
7295 ac_status=$?
7296 echo "$as_me:7296: \$? = $ac_status" >&5
7297 (exit $ac_status); } &&
7298 { ac_try='test -s conftest.$ac_objext'
7299 { (eval echo "$as_me:7299: \"$ac_try\"") >&5
7300 (eval $ac_try) 2>&5
7301 ac_status=$?
7302 echo "$as_me:7302: \$? = $ac_status" >&5
7303 (exit $ac_status); }; }; then
7304 ac_cv_c_opensoundsystem="yes"
7305 else
7306 echo "$as_me: failed program was:" >&5
7307 cat conftest.$ac_ext >&5
7308 ac_cv_c_opensoundsystem="no"
7310 rm -f conftest.$ac_objext conftest.$ac_ext
7312 echo "$as_me:7312: result: $ac_cv_c_opensoundsystem" >&5
7313 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
7315 if test "$ac_cv_c_opensoundsystem" = "yes"
7316 then
7318 cat >>confdefs.h <<\EOF
7319 #define HAVE_OSS 1
7324 echo "$as_me:7324: checking for Open Sound System/MIDI interface" >&5
7325 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
7326 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
7328 else
7329 cat >conftest.$ac_ext <<_ACEOF
7330 #line 7330 "configure"
7331 #include "confdefs.h"
7333 #if defined(HAVE_SYS_SOUNDCARD_H)
7334 #include <sys/soundcard.h>
7335 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
7336 #include <machine/soundcard.h>
7337 #elif defined(HAVE_SOUNDCARD_H)
7338 #include <soundcard.h>
7339 #endif
7342 main ()
7345 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
7346 #if !defined(SNDCTL_SEQ_SYNC)
7347 #error No open sound system MIDI interface
7348 #endif
7351 return 0;
7353 _ACEOF
7354 rm -f conftest.$ac_objext
7355 if { (eval echo "$as_me:7355: \"$ac_compile\"") >&5
7356 (eval $ac_compile) 2>&5
7357 ac_status=$?
7358 echo "$as_me:7358: \$? = $ac_status" >&5
7359 (exit $ac_status); } &&
7360 { ac_try='test -s conftest.$ac_objext'
7361 { (eval echo "$as_me:7361: \"$ac_try\"") >&5
7362 (eval $ac_try) 2>&5
7363 ac_status=$?
7364 echo "$as_me:7364: \$? = $ac_status" >&5
7365 (exit $ac_status); }; }; then
7366 ac_cv_c_opensoundsystem_midi="yes"
7367 else
7368 echo "$as_me: failed program was:" >&5
7369 cat conftest.$ac_ext >&5
7370 ac_cv_c_opensoundsystem_midi="no"
7372 rm -f conftest.$ac_objext conftest.$ac_ext
7374 echo "$as_me:7374: result: $ac_cv_c_opensoundsystem_midi" >&5
7375 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
7377 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
7378 then
7380 cat >>confdefs.h <<\EOF
7381 #define HAVE_OSS_MIDI 1
7386 # Extract the first word of "artsc-config", so it can be a program name with args.
7387 set dummy artsc-config; ac_word=$2
7388 echo "$as_me:7388: checking for $ac_word" >&5
7389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7390 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
7391 echo $ECHO_N "(cached) $ECHO_C" >&6
7392 else
7393 case $ARTSCCONFIG in
7394 [\\/]* | ?:[\\/]*)
7395 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
7398 ac_save_IFS=$IFS; IFS=$ac_path_separator
7399 ac_dummy="$PATH"
7400 for ac_dir in $ac_dummy; do
7401 IFS=$ac_save_IFS
7402 test -z "$ac_dir" && ac_dir=.
7403 if $as_executable_p "$ac_dir/$ac_word"; then
7404 ac_cv_path_ARTSCCONFIG="$ac_dir/$ac_word"
7405 echo "$as_me:7405: found $ac_dir/$ac_word" >&5
7406 break
7408 done
7411 esac
7413 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
7415 if test -n "$ARTSCCONFIG"; then
7416 echo "$as_me:7416: result: $ARTSCCONFIG" >&5
7417 echo "${ECHO_T}$ARTSCCONFIG" >&6
7418 else
7419 echo "$as_me:7419: result: no" >&5
7420 echo "${ECHO_T}no" >&6
7423 echo "$as_me:7423: checking for aRts Sound server" >&5
7424 echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
7425 if test "${ac_cv_c_artsserver+set}" = set; then
7426 echo $ECHO_N "(cached) $ECHO_C" >&6
7427 else
7428 if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
7429 then
7430 ac_cv_c_artsserver=no
7431 else
7432 ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
7433 ARTSC_LIBS=`$ARTSCCONFIG --libs`
7434 ac_cv_c_artsserver=no
7435 save_CFLAGS="$CFLAGS"
7436 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
7437 cat >conftest.$ac_ext <<_ACEOF
7438 #line 7438 "configure"
7439 #include "confdefs.h"
7441 #include <artsc.h>
7444 main ()
7447 arts_stream_t stream;
7450 return 0;
7452 _ACEOF
7453 rm -f conftest.$ac_objext
7454 if { (eval echo "$as_me:7454: \"$ac_compile\"") >&5
7455 (eval $ac_compile) 2>&5
7456 ac_status=$?
7457 echo "$as_me:7457: \$? = $ac_status" >&5
7458 (exit $ac_status); } &&
7459 { ac_try='test -s conftest.$ac_objext'
7460 { (eval echo "$as_me:7460: \"$ac_try\"") >&5
7461 (eval $ac_try) 2>&5
7462 ac_status=$?
7463 echo "$as_me:7463: \$? = $ac_status" >&5
7464 (exit $ac_status); }; }; then
7466 ac_cv_c_artsserver=yes
7468 else
7469 echo "$as_me: failed program was:" >&5
7470 cat conftest.$ac_ext >&5
7472 rm -f conftest.$ac_objext conftest.$ac_ext
7473 CFLAGS="$save_CFLAGS"
7476 echo "$as_me:7476: result: $ac_cv_c_artsserver" >&5
7477 echo "${ECHO_T}$ac_cv_c_artsserver" >&6
7479 if test "$ac_cv_c_artsserver" = "yes"
7480 then
7481 ARTSLIBS=$ARTSC_LIBS
7483 ARTSINCL=$ARTSC_CFLAGS
7485 cat >>confdefs.h <<\EOF
7486 #define HAVE_ARTS 1
7491 echo "$as_me:7491: checking whether mmap64 works defined as mmap" >&5
7492 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
7493 if test "${ac_cv_mmap64_works+set}" = set; then
7494 echo $ECHO_N "(cached) $ECHO_C" >&6
7495 else
7496 if test "$cross_compiling" = yes; then
7497 ac_cv_mmap64_works="no"
7498 else
7499 cat >conftest.$ac_ext <<_ACEOF
7500 #line 7500 "configure"
7501 #include "confdefs.h"
7503 #define _FILE_OFFSET_BITS 64
7504 #include <stdio.h>
7505 #include <unistd.h>
7506 #include <fcntl.h>
7507 #include <sys/mman.h>
7508 #include <errno.h>
7510 int main(int argc,char **argv) {
7511 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
7512 if (fd == -1) exit(1);
7514 unlink("conftest.map");
7516 write(fd,"test",4);
7518 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
7519 (errno == EINVAL)
7521 exit(1);
7523 close(fd);
7524 fprintf(stderr,"success!\n");
7525 exit(0);
7528 _ACEOF
7529 rm -f conftest$ac_exeext
7530 if { (eval echo "$as_me:7530: \"$ac_link\"") >&5
7531 (eval $ac_link) 2>&5
7532 ac_status=$?
7533 echo "$as_me:7533: \$? = $ac_status" >&5
7534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7535 { (eval echo "$as_me:7535: \"$ac_try\"") >&5
7536 (eval $ac_try) 2>&5
7537 ac_status=$?
7538 echo "$as_me:7538: \$? = $ac_status" >&5
7539 (exit $ac_status); }; }; then
7540 ac_cv_mmap64_works="yes"
7541 else
7542 echo "$as_me: program exited with status $ac_status" >&5
7543 echo "$as_me: failed program was:" >&5
7544 cat conftest.$ac_ext >&5
7545 ac_cv_mmap64_works="no"
7547 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7550 echo "$as_me:7550: result: $ac_cv_mmap64_works" >&5
7551 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
7553 if test "$ac_cv_mmap64_works" = "yes"
7554 then
7556 cat >>confdefs.h <<\EOF
7557 #define _FILE_OFFSET_BITS 64
7562 if test "x${GCC}" = "xyes"
7563 then
7564 CFLAGS="$CFLAGS -Wall"
7565 echo "$as_me:7565: checking for gcc strength-reduce bug" >&5
7566 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
7567 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
7569 else
7570 if test "$cross_compiling" = yes; then
7571 ac_cv_c_gcc_strength_bug="yes"
7572 else
7573 cat >conftest.$ac_ext <<_ACEOF
7574 #line 7574 "configure"
7575 #include "confdefs.h"
7577 int L[4] = {0,1,2,3};
7578 int main(void) {
7579 static int Array[3];
7580 unsigned int B = 3;
7581 int i;
7582 for(i=0; i<B; i++) Array[i] = i - 3;
7583 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
7584 L[i] = 4;
7586 exit( Array[1] != -2 || L[2] != 3);
7588 _ACEOF
7589 rm -f conftest$ac_exeext
7590 if { (eval echo "$as_me:7590: \"$ac_link\"") >&5
7591 (eval $ac_link) 2>&5
7592 ac_status=$?
7593 echo "$as_me:7593: \$? = $ac_status" >&5
7594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7595 { (eval echo "$as_me:7595: \"$ac_try\"") >&5
7596 (eval $ac_try) 2>&5
7597 ac_status=$?
7598 echo "$as_me:7598: \$? = $ac_status" >&5
7599 (exit $ac_status); }; }; then
7600 ac_cv_c_gcc_strength_bug="no"
7601 else
7602 echo "$as_me: program exited with status $ac_status" >&5
7603 echo "$as_me: failed program was:" >&5
7604 cat conftest.$ac_ext >&5
7605 ac_cv_c_gcc_strength_bug="yes"
7607 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7610 echo "$as_me:7610: result: $ac_cv_c_gcc_strength_bug" >&5
7611 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
7612 if test "$ac_cv_c_gcc_strength_bug" = "yes"
7613 then
7614 CFLAGS="$CFLAGS -fno-strength-reduce"
7617 echo "$as_me:7617: checking for gcc -mpreferred-stack-boundary=2 support" >&5
7618 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
7619 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
7620 echo $ECHO_N "(cached) $ECHO_C" >&6
7621 else
7622 saved_cflags=$CFLAGS
7623 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
7624 cat >conftest.$ac_ext <<_ACEOF
7625 #line 7625 "configure"
7626 #include "confdefs.h"
7629 main ()
7631 return 0
7633 return 0;
7635 _ACEOF
7636 rm -f conftest.$ac_objext
7637 if { (eval echo "$as_me:7637: \"$ac_compile\"") >&5
7638 (eval $ac_compile) 2>&5
7639 ac_status=$?
7640 echo "$as_me:7640: \$? = $ac_status" >&5
7641 (exit $ac_status); } &&
7642 { ac_try='test -s conftest.$ac_objext'
7643 { (eval echo "$as_me:7643: \"$ac_try\"") >&5
7644 (eval $ac_try) 2>&5
7645 ac_status=$?
7646 echo "$as_me:7646: \$? = $ac_status" >&5
7647 (exit $ac_status); }; }; then
7648 ac_cv_c_gcc_stack_boundary="yes"
7649 else
7650 echo "$as_me: failed program was:" >&5
7651 cat conftest.$ac_ext >&5
7652 ac_cv_c_gcc_stack_boundary="no"
7654 rm -f conftest.$ac_objext conftest.$ac_ext
7655 CFLAGS=$saved_cflags
7658 echo "$as_me:7658: result: $ac_cv_c_gcc_stack_boundary" >&5
7659 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
7660 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
7661 then
7662 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
7666 echo "$as_me:7666: checking whether .type must sit inside a .def directive" >&5
7667 echo $ECHO_N "checking whether .type must sit inside a .def directive... $ECHO_C" >&6
7668 if test "${ac_cv_c_type_in_def+set}" = set; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
7670 else
7671 saved_libs=$LIBS
7672 LIBS="conftest_asm.s $LIBS"
7673 cat > conftest_asm.s <<EOF
7674 .globl _ac_test
7675 .def _ac_test; .scl 2; .type 32; .endef
7676 _ac_test:
7677 .long 0
7679 cat >conftest.$ac_ext <<_ACEOF
7680 #line 7680 "configure"
7681 #include "confdefs.h"
7684 main ()
7688 return 0;
7690 _ACEOF
7691 rm -f conftest.$ac_objext conftest$ac_exeext
7692 if { (eval echo "$as_me:7692: \"$ac_link\"") >&5
7693 (eval $ac_link) 2>&5
7694 ac_status=$?
7695 echo "$as_me:7695: \$? = $ac_status" >&5
7696 (exit $ac_status); } &&
7697 { ac_try='test -s conftest$ac_exeext'
7698 { (eval echo "$as_me:7698: \"$ac_try\"") >&5
7699 (eval $ac_try) 2>&5
7700 ac_status=$?
7701 echo "$as_me:7701: \$? = $ac_status" >&5
7702 (exit $ac_status); }; }; then
7703 ac_cv_c_type_in_def="yes"
7704 else
7705 echo "$as_me: failed program was:" >&5
7706 cat conftest.$ac_ext >&5
7707 ac_cv_c_type_in_def="no"
7709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7710 LIBS=$saved_libs
7712 echo "$as_me:7712: result: $ac_cv_c_type_in_def" >&5
7713 echo "${ECHO_T}$ac_cv_c_type_in_def" >&6
7714 if test "$ac_cv_c_type_in_def" = "yes"
7715 then
7717 cat >>confdefs.h <<\EOF
7718 #define NEED_TYPE_IN_DEF 1
7723 echo "$as_me:7723: checking whether external symbols need an underscore prefix" >&5
7724 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
7725 if test "${ac_cv_c_extern_prefix+set}" = set; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
7727 else
7728 saved_libs=$LIBS
7729 LIBS="conftest_asm.s $LIBS"
7730 cat > conftest_asm.s <<EOF
7731 .globl _ac_test
7732 _ac_test:
7733 .long 0
7735 cat >conftest.$ac_ext <<_ACEOF
7736 #line 7736 "configure"
7737 #include "confdefs.h"
7738 extern int ac_test;
7740 main ()
7742 if (ac_test) return 1
7744 return 0;
7746 _ACEOF
7747 rm -f conftest.$ac_objext conftest$ac_exeext
7748 if { (eval echo "$as_me:7748: \"$ac_link\"") >&5
7749 (eval $ac_link) 2>&5
7750 ac_status=$?
7751 echo "$as_me:7751: \$? = $ac_status" >&5
7752 (exit $ac_status); } &&
7753 { ac_try='test -s conftest$ac_exeext'
7754 { (eval echo "$as_me:7754: \"$ac_try\"") >&5
7755 (eval $ac_try) 2>&5
7756 ac_status=$?
7757 echo "$as_me:7757: \$? = $ac_status" >&5
7758 (exit $ac_status); }; }; then
7759 ac_cv_c_extern_prefix="yes"
7760 else
7761 echo "$as_me: failed program was:" >&5
7762 cat conftest.$ac_ext >&5
7763 ac_cv_c_extern_prefix="no"
7765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7766 LIBS=$saved_libs
7768 echo "$as_me:7768: result: $ac_cv_c_extern_prefix" >&5
7769 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
7770 if test "$ac_cv_c_extern_prefix" = "yes"
7771 then
7773 cat >>confdefs.h <<\EOF
7774 #define NEED_UNDERSCORE_PREFIX 1
7779 echo "$as_me:7779: checking whether stdcall symbols need to be decorated" >&5
7780 echo $ECHO_N "checking whether stdcall symbols need to be decorated... $ECHO_C" >&6
7781 if test "${ac_cv_c_stdcall_decoration+set}" = set; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 else
7784 saved_libs=$LIBS
7785 LIBS="conftest_asm.s $LIBS"
7786 if test "$ac_cv_c_extern_prefix" = "yes"
7787 then
7788 cat > conftest_asm.s <<EOF
7789 .globl _ac_test@0
7790 _ac_test@0:
7792 else
7793 cat > conftest_asm.s <<EOF
7794 .globl ac_test@0
7795 ac_test@0:
7798 cat >conftest.$ac_ext <<_ACEOF
7799 #line 7799 "configure"
7800 #include "confdefs.h"
7801 extern void __attribute__((__stdcall__)) ac_test(void);
7803 main ()
7805 ac_test(); return 0
7807 return 0;
7809 _ACEOF
7810 rm -f conftest.$ac_objext conftest$ac_exeext
7811 if { (eval echo "$as_me:7811: \"$ac_link\"") >&5
7812 (eval $ac_link) 2>&5
7813 ac_status=$?
7814 echo "$as_me:7814: \$? = $ac_status" >&5
7815 (exit $ac_status); } &&
7816 { ac_try='test -s conftest$ac_exeext'
7817 { (eval echo "$as_me:7817: \"$ac_try\"") >&5
7818 (eval $ac_try) 2>&5
7819 ac_status=$?
7820 echo "$as_me:7820: \$? = $ac_status" >&5
7821 (exit $ac_status); }; }; then
7822 ac_cv_c_stdcall_decoration="yes"
7823 else
7824 echo "$as_me: failed program was:" >&5
7825 cat conftest.$ac_ext >&5
7826 ac_cv_c_stdcall_decoration="no"
7828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7829 LIBS=$saved_libs
7831 echo "$as_me:7831: result: $ac_cv_c_stdcall_decoration" >&5
7832 echo "${ECHO_T}$ac_cv_c_stdcall_decoration" >&6
7833 if test "$ac_cv_c_stdcall_decoration" = "yes"
7834 then
7836 cat >>confdefs.h <<\EOF
7837 #define NEED_STDCALL_DECORATION 1
7842 echo "$as_me:7842: checking whether assembler accepts .string" >&5
7843 echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
7844 if test "${ac_cv_c_asm_string+set}" = set; then
7845 echo $ECHO_N "(cached) $ECHO_C" >&6
7846 else
7847 saved_libs=$LIBS
7848 LIBS="conftest_asm.s $LIBS"
7849 cat > conftest_asm.s <<EOF
7850 .string "test"
7852 cat >conftest.$ac_ext <<_ACEOF
7853 #line 7853 "configure"
7854 #include "confdefs.h"
7857 main ()
7861 return 0;
7863 _ACEOF
7864 rm -f conftest.$ac_objext conftest$ac_exeext
7865 if { (eval echo "$as_me:7865: \"$ac_link\"") >&5
7866 (eval $ac_link) 2>&5
7867 ac_status=$?
7868 echo "$as_me:7868: \$? = $ac_status" >&5
7869 (exit $ac_status); } &&
7870 { ac_try='test -s conftest$ac_exeext'
7871 { (eval echo "$as_me:7871: \"$ac_try\"") >&5
7872 (eval $ac_try) 2>&5
7873 ac_status=$?
7874 echo "$as_me:7874: \$? = $ac_status" >&5
7875 (exit $ac_status); }; }; then
7876 ac_cv_c_asm_string="yes"
7877 else
7878 echo "$as_me: failed program was:" >&5
7879 cat conftest.$ac_ext >&5
7880 ac_cv_c_asm_string="no"
7882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7883 LIBS=$saved_libs
7885 echo "$as_me:7885: result: $ac_cv_c_asm_string" >&5
7886 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
7887 if test "$ac_cv_c_asm_string" = "yes"
7888 then
7890 cat >>confdefs.h <<\EOF
7891 #define HAVE_ASM_STRING 1
7896 LDSHARED=""
7897 LDDLLFLAGS=""
7898 if test "$LIBEXT" = "so"
7899 then
7900 echo "$as_me:7900: checking whether we can build a GNU style ELF dll" >&5
7901 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
7902 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
7903 echo $ECHO_N "(cached) $ECHO_C" >&6
7904 else
7905 saved_cflags=$CFLAGS
7906 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
7907 cat >conftest.$ac_ext <<_ACEOF
7908 #line 7908 "configure"
7909 #include "confdefs.h"
7912 main ()
7914 return 1
7916 return 0;
7918 _ACEOF
7919 rm -f conftest.$ac_objext conftest$ac_exeext
7920 if { (eval echo "$as_me:7920: \"$ac_link\"") >&5
7921 (eval $ac_link) 2>&5
7922 ac_status=$?
7923 echo "$as_me:7923: \$? = $ac_status" >&5
7924 (exit $ac_status); } &&
7925 { ac_try='test -s conftest$ac_exeext'
7926 { (eval echo "$as_me:7926: \"$ac_try\"") >&5
7927 (eval $ac_try) 2>&5
7928 ac_status=$?
7929 echo "$as_me:7929: \$? = $ac_status" >&5
7930 (exit $ac_status); }; }; then
7931 ac_cv_c_dll_gnuelf="yes"
7932 else
7933 echo "$as_me: failed program was:" >&5
7934 cat conftest.$ac_ext >&5
7935 ac_cv_c_dll_gnuelf="no"
7937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7938 CFLAGS=$saved_cflags
7941 echo "$as_me:7941: result: $ac_cv_c_dll_gnuelf" >&5
7942 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
7943 if test "$ac_cv_c_dll_gnuelf" = "yes"
7944 then
7945 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
7946 LDDLLFLAGS="-Wl,-Bsymbolic"
7947 else
7948 echo "$as_me:7948: checking whether we can build a UnixWare (Solaris) dll" >&5
7949 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
7950 if test "${ac_cv_c_dll_unixware+set}" = set; then
7951 echo $ECHO_N "(cached) $ECHO_C" >&6
7952 else
7953 saved_cflags=$CFLAGS
7954 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
7955 cat >conftest.$ac_ext <<_ACEOF
7956 #line 7956 "configure"
7957 #include "confdefs.h"
7960 main ()
7962 return 1
7964 return 0;
7966 _ACEOF
7967 rm -f conftest.$ac_objext conftest$ac_exeext
7968 if { (eval echo "$as_me:7968: \"$ac_link\"") >&5
7969 (eval $ac_link) 2>&5
7970 ac_status=$?
7971 echo "$as_me:7971: \$? = $ac_status" >&5
7972 (exit $ac_status); } &&
7973 { ac_try='test -s conftest$ac_exeext'
7974 { (eval echo "$as_me:7974: \"$ac_try\"") >&5
7975 (eval $ac_try) 2>&5
7976 ac_status=$?
7977 echo "$as_me:7977: \$? = $ac_status" >&5
7978 (exit $ac_status); }; }; then
7979 ac_cv_c_dll_unixware="yes"
7980 else
7981 echo "$as_me: failed program was:" >&5
7982 cat conftest.$ac_ext >&5
7983 ac_cv_c_dll_unixware="no"
7985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7986 CFLAGS=$saved_cflags
7989 echo "$as_me:7989: result: $ac_cv_c_dll_unixware" >&5
7990 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
7991 if test "$ac_cv_c_dll_unixware" = "yes"
7992 then
7993 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
7994 LDDLLFLAGS="-Wl,-B,symbolic"
7997 if test "$ac_cv_c_dll_gnuelf" = "no" -a "$ac_cv_c_dll_unixware" = "no"
7998 then
7999 LIBEXT="a"
8000 # Extract the first word of "dllwrap", so it can be a program name with args.
8001 set dummy dllwrap; ac_word=$2
8002 echo "$as_me:8002: checking for $ac_word" >&5
8003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8004 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
8005 echo $ECHO_N "(cached) $ECHO_C" >&6
8006 else
8007 if test -n "$DLLWRAP"; then
8008 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
8009 else
8010 ac_save_IFS=$IFS; IFS=$ac_path_separator
8011 ac_dummy="$PATH"
8012 for ac_dir in $ac_dummy; do
8013 IFS=$ac_save_IFS
8014 test -z "$ac_dir" && ac_dir=.
8015 $as_executable_p "$ac_dir/$ac_word" || continue
8016 ac_cv_prog_DLLWRAP="dllwrap"
8017 echo "$as_me:8017: found $ac_dir/$ac_word" >&5
8018 break
8019 done
8021 test -z "$ac_cv_prog_DLLWRAP" && ac_cv_prog_DLLWRAP="false"
8024 DLLWRAP=$ac_cv_prog_DLLWRAP
8025 if test -n "$DLLWRAP"; then
8026 echo "$as_me:8026: result: $DLLWRAP" >&5
8027 echo "${ECHO_T}$DLLWRAP" >&6
8028 else
8029 echo "$as_me:8029: result: no" >&5
8030 echo "${ECHO_T}no" >&6
8033 if test "$DLLWRAP" = "dllwrap"; then
8034 case $host_os in
8035 *cygwin*)
8036 LIBEXT="dll"
8038 esac
8043 if test "$LIBEXT" = "a"; then
8044 { { echo "$as_me:8044: error: could not find a way to build shared libraries.
8045 It is currently not possible to build Wine without shared library
8046 (.so) support to allow transparent switch between .so and .dll files.
8047 If you are using Linux, you will need a newer binutils.
8048 " >&5
8049 echo "$as_me: error: could not find a way to build shared libraries.
8050 It is currently not possible to build Wine without shared library
8051 (.so) support to allow transparent switch between .so and .dll files.
8052 If you are using Linux, you will need a newer binutils.
8053 " >&2;}
8054 { (exit 1); exit 1; }; }
8057 DLLFLAGS=""
8058 LDPATH=""
8060 if test "$LIBEXT" = "so"; then
8061 DLLFLAGS="-fPIC"
8062 DLLEXT=".so"
8063 LDPATH="LD_LIBRARY_PATH=\"\$(TOPOBJDIR)/unicode:\$\$LD_LIBRARY_PATH\""
8064 elif test "$LIBEXT" = "dll"; then
8065 #DLLFLAGS="-fPIC" # -fPIC doesn't work(at least in cygwin-b20) - FIXME
8066 DLLEXT=""
8067 LDPATH="PATH=\"\$(TOPOBJDIR)/unicode:\$\$PATH\""
8070 wine_cv_libc_reentrant=no
8072 echo "$as_me:8072: checking for reentrant libc: __errno_location" >&5
8073 echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6
8074 if test "${wine_cv_libc_r___errno_location+set}" = set; then
8075 echo $ECHO_N "(cached) $ECHO_C" >&6
8076 else
8077 if test "$cross_compiling" = yes; then
8078 wine_cv_libc_r___errno_location=yes
8079 else
8080 cat >conftest.$ac_ext <<_ACEOF
8081 #line 8081 "configure"
8082 #include "confdefs.h"
8083 int myerrno = 0;
8084 char buf[256];
8085 int *__errno_location(){return &myerrno;}
8086 main(){connect(0,buf,255); exit(!myerrno);}
8087 _ACEOF
8088 rm -f conftest$ac_exeext
8089 if { (eval echo "$as_me:8089: \"$ac_link\"") >&5
8090 (eval $ac_link) 2>&5
8091 ac_status=$?
8092 echo "$as_me:8092: \$? = $ac_status" >&5
8093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8094 { (eval echo "$as_me:8094: \"$ac_try\"") >&5
8095 (eval $ac_try) 2>&5
8096 ac_status=$?
8097 echo "$as_me:8097: \$? = $ac_status" >&5
8098 (exit $ac_status); }; }; then
8099 wine_cv_libc_r___errno_location=yes
8100 else
8101 echo "$as_me: program exited with status $ac_status" >&5
8102 echo "$as_me: failed program was:" >&5
8103 cat conftest.$ac_ext >&5
8104 wine_cv_libc_r___errno_location=no
8106 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8110 echo "$as_me:8110: result: $wine_cv_libc_r___errno_location" >&5
8111 echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6
8112 if test "$wine_cv_libc_r___errno_location" = "yes"
8113 then
8114 wine_cv_libc_reentrant=__errno_location
8117 echo "$as_me:8117: checking for reentrant libc: __error" >&5
8118 echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6
8119 if test "${wine_cv_libc_r___error+set}" = set; then
8120 echo $ECHO_N "(cached) $ECHO_C" >&6
8121 else
8122 if test "$cross_compiling" = yes; then
8123 wine_cv_libc_r___error=yes
8124 else
8125 cat >conftest.$ac_ext <<_ACEOF
8126 #line 8126 "configure"
8127 #include "confdefs.h"
8128 int myerrno = 0;
8129 char buf[256];
8130 int *__error(){return &myerrno;}
8131 main(){connect(0,buf,255); exit(!myerrno);}
8132 _ACEOF
8133 rm -f conftest$ac_exeext
8134 if { (eval echo "$as_me:8134: \"$ac_link\"") >&5
8135 (eval $ac_link) 2>&5
8136 ac_status=$?
8137 echo "$as_me:8137: \$? = $ac_status" >&5
8138 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8139 { (eval echo "$as_me:8139: \"$ac_try\"") >&5
8140 (eval $ac_try) 2>&5
8141 ac_status=$?
8142 echo "$as_me:8142: \$? = $ac_status" >&5
8143 (exit $ac_status); }; }; then
8144 wine_cv_libc_r___error=yes
8145 else
8146 echo "$as_me: program exited with status $ac_status" >&5
8147 echo "$as_me: failed program was:" >&5
8148 cat conftest.$ac_ext >&5
8149 wine_cv_libc_r___error=no
8151 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8155 echo "$as_me:8155: result: $wine_cv_libc_r___error" >&5
8156 echo "${ECHO_T}$wine_cv_libc_r___error" >&6
8157 if test "$wine_cv_libc_r___error" = "yes"
8158 then
8159 wine_cv_libc_reentrant=__error
8162 echo "$as_me:8162: checking for reentrant libc: ___errno" >&5
8163 echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6
8164 if test "${wine_cv_libc_r____errno+set}" = set; then
8165 echo $ECHO_N "(cached) $ECHO_C" >&6
8166 else
8167 if test "$cross_compiling" = yes; then
8168 wine_cv_libc_r____errno=yes
8169 else
8170 cat >conftest.$ac_ext <<_ACEOF
8171 #line 8171 "configure"
8172 #include "confdefs.h"
8173 int myerrno = 0;
8174 char buf[256];
8175 int *___errno(){return &myerrno;}
8176 main(){connect(0,buf,255); exit(!myerrno);}
8177 _ACEOF
8178 rm -f conftest$ac_exeext
8179 if { (eval echo "$as_me:8179: \"$ac_link\"") >&5
8180 (eval $ac_link) 2>&5
8181 ac_status=$?
8182 echo "$as_me:8182: \$? = $ac_status" >&5
8183 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8184 { (eval echo "$as_me:8184: \"$ac_try\"") >&5
8185 (eval $ac_try) 2>&5
8186 ac_status=$?
8187 echo "$as_me:8187: \$? = $ac_status" >&5
8188 (exit $ac_status); }; }; then
8189 wine_cv_libc_r____errno=yes
8190 else
8191 echo "$as_me: program exited with status $ac_status" >&5
8192 echo "$as_me: failed program was:" >&5
8193 cat conftest.$ac_ext >&5
8194 wine_cv_libc_r____errno=no
8196 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8200 echo "$as_me:8200: result: $wine_cv_libc_r____errno" >&5
8201 echo "${ECHO_T}$wine_cv_libc_r____errno" >&6
8202 if test "$wine_cv_libc_r____errno" = "yes"
8203 then
8204 wine_cv_libc_reentrant=___errno
8207 echo "$as_me:8207: checking for reentrant libc: __thr_errno" >&5
8208 echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6
8209 if test "${wine_cv_libc_r___thr_errno+set}" = set; then
8210 echo $ECHO_N "(cached) $ECHO_C" >&6
8211 else
8212 if test "$cross_compiling" = yes; then
8213 wine_cv_libc_r___thr_errno=yes
8214 else
8215 cat >conftest.$ac_ext <<_ACEOF
8216 #line 8216 "configure"
8217 #include "confdefs.h"
8218 int myerrno = 0;
8219 char buf[256];
8220 int *__thr_errno(){return &myerrno;}
8221 main(){connect(0,buf,255); exit(!myerrno);}
8222 _ACEOF
8223 rm -f conftest$ac_exeext
8224 if { (eval echo "$as_me:8224: \"$ac_link\"") >&5
8225 (eval $ac_link) 2>&5
8226 ac_status=$?
8227 echo "$as_me:8227: \$? = $ac_status" >&5
8228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8229 { (eval echo "$as_me:8229: \"$ac_try\"") >&5
8230 (eval $ac_try) 2>&5
8231 ac_status=$?
8232 echo "$as_me:8232: \$? = $ac_status" >&5
8233 (exit $ac_status); }; }; then
8234 wine_cv_libc_r___thr_errno=yes
8235 else
8236 echo "$as_me: program exited with status $ac_status" >&5
8237 echo "$as_me: failed program was:" >&5
8238 cat conftest.$ac_ext >&5
8239 wine_cv_libc_r___thr_errno=no
8241 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8245 echo "$as_me:8245: result: $wine_cv_libc_r___thr_errno" >&5
8246 echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6
8247 if test "$wine_cv_libc_r___thr_errno" = "yes"
8248 then
8249 wine_cv_libc_reentrant=__thr_errno
8252 echo "$as_me:8252: checking for reentrant libc: __errno" >&5
8253 echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6
8254 if test "${wine_cv_libc_r___errno+set}" = set; then
8255 echo $ECHO_N "(cached) $ECHO_C" >&6
8256 else
8257 if test "$cross_compiling" = yes; then
8258 wine_cv_libc_r___errno=yes
8259 else
8260 cat >conftest.$ac_ext <<_ACEOF
8261 #line 8261 "configure"
8262 #include "confdefs.h"
8263 int myerrno = 0;
8264 char buf[256];
8265 int *__errno(){return &myerrno;}
8266 main(){connect(0,buf,255); exit(!myerrno);}
8267 _ACEOF
8268 rm -f conftest$ac_exeext
8269 if { (eval echo "$as_me:8269: \"$ac_link\"") >&5
8270 (eval $ac_link) 2>&5
8271 ac_status=$?
8272 echo "$as_me:8272: \$? = $ac_status" >&5
8273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8274 { (eval echo "$as_me:8274: \"$ac_try\"") >&5
8275 (eval $ac_try) 2>&5
8276 ac_status=$?
8277 echo "$as_me:8277: \$? = $ac_status" >&5
8278 (exit $ac_status); }; }; then
8279 wine_cv_libc_r___errno=yes
8280 else
8281 echo "$as_me: program exited with status $ac_status" >&5
8282 echo "$as_me: failed program was:" >&5
8283 cat conftest.$ac_ext >&5
8284 wine_cv_libc_r___errno=no
8286 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8290 echo "$as_me:8290: result: $wine_cv_libc_r___errno" >&5
8291 echo "${ECHO_T}$wine_cv_libc_r___errno" >&6
8292 if test "$wine_cv_libc_r___errno" = "yes"
8293 then
8294 wine_cv_libc_reentrant=__errno
8297 if test "$wine_cv_libc_reentrant" != "no"
8298 then
8300 cat >>confdefs.h <<EOF
8301 #define ERRNO_LOCATION $wine_cv_libc_reentrant
8306 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
8307 then
8308 echo "$as_me:8308: checking for reentrant X libraries" >&5
8309 echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6
8310 if test "${wine_cv_x_reentrant+set}" = set; then
8311 echo $ECHO_N "(cached) $ECHO_C" >&6
8312 else
8313 if test "x$with_reentrant_x" = "xno"
8314 then
8315 wine_cv_x_reentrant=no
8316 else
8317 libX11_check=none
8318 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
8319 if test -r $dir/libX11.so; then
8320 libX11_check="-D $dir/libX11.so"
8321 break 1
8323 if test -r $dir/libX11.a; then
8324 libX11_check="$dir/libX11.a"
8325 break 1
8327 done
8328 if test "$libX11_check" != "none"; then
8329 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
8330 then
8331 wine_cv_x_reentrant=yes
8332 else
8333 wine_cv_x_reentrant=no
8335 else
8336 wine_cv_x_reentrant=unknown
8340 echo "$as_me:8340: result: $wine_cv_x_reentrant" >&5
8341 echo "${ECHO_T}$wine_cv_x_reentrant" >&6
8342 else
8343 wine_cv_x_reentrant=no
8345 if test "$wine_cv_x_reentrant" = "no"
8346 then
8348 cat >>confdefs.h <<\EOF
8349 #define NO_REENTRANT_X11 1
8354 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8355 # for constant arguments. Useless!
8356 echo "$as_me:8356: checking for working alloca.h" >&5
8357 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8358 if test "${ac_cv_working_alloca_h+set}" = set; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
8360 else
8361 cat >conftest.$ac_ext <<_ACEOF
8362 #line 8362 "configure"
8363 #include "confdefs.h"
8364 #include <alloca.h>
8366 main ()
8368 char *p = (char *) alloca (2 * sizeof (int));
8370 return 0;
8372 _ACEOF
8373 rm -f conftest.$ac_objext conftest$ac_exeext
8374 if { (eval echo "$as_me:8374: \"$ac_link\"") >&5
8375 (eval $ac_link) 2>&5
8376 ac_status=$?
8377 echo "$as_me:8377: \$? = $ac_status" >&5
8378 (exit $ac_status); } &&
8379 { ac_try='test -s conftest$ac_exeext'
8380 { (eval echo "$as_me:8380: \"$ac_try\"") >&5
8381 (eval $ac_try) 2>&5
8382 ac_status=$?
8383 echo "$as_me:8383: \$? = $ac_status" >&5
8384 (exit $ac_status); }; }; then
8385 ac_cv_working_alloca_h=yes
8386 else
8387 echo "$as_me: failed program was:" >&5
8388 cat conftest.$ac_ext >&5
8389 ac_cv_working_alloca_h=no
8391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8393 echo "$as_me:8393: result: $ac_cv_working_alloca_h" >&5
8394 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8395 if test $ac_cv_working_alloca_h = yes; then
8397 cat >>confdefs.h <<\EOF
8398 #define HAVE_ALLOCA_H 1
8403 echo "$as_me:8403: checking for alloca" >&5
8404 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8405 if test "${ac_cv_func_alloca_works+set}" = set; then
8406 echo $ECHO_N "(cached) $ECHO_C" >&6
8407 else
8408 cat >conftest.$ac_ext <<_ACEOF
8409 #line 8409 "configure"
8410 #include "confdefs.h"
8411 #ifdef __GNUC__
8412 # define alloca __builtin_alloca
8413 #else
8414 # ifdef _MSC_VER
8415 # include <malloc.h>
8416 # define alloca _alloca
8417 # else
8418 # if HAVE_ALLOCA_H
8419 # include <alloca.h>
8420 # else
8421 # ifdef _AIX
8422 #pragma alloca
8423 # else
8424 # ifndef alloca /* predefined by HP cc +Olibcalls */
8425 char *alloca ();
8426 # endif
8427 # endif
8428 # endif
8429 # endif
8430 #endif
8433 main ()
8435 char *p = (char *) alloca (1);
8437 return 0;
8439 _ACEOF
8440 rm -f conftest.$ac_objext conftest$ac_exeext
8441 if { (eval echo "$as_me:8441: \"$ac_link\"") >&5
8442 (eval $ac_link) 2>&5
8443 ac_status=$?
8444 echo "$as_me:8444: \$? = $ac_status" >&5
8445 (exit $ac_status); } &&
8446 { ac_try='test -s conftest$ac_exeext'
8447 { (eval echo "$as_me:8447: \"$ac_try\"") >&5
8448 (eval $ac_try) 2>&5
8449 ac_status=$?
8450 echo "$as_me:8450: \$? = $ac_status" >&5
8451 (exit $ac_status); }; }; then
8452 ac_cv_func_alloca_works=yes
8453 else
8454 echo "$as_me: failed program was:" >&5
8455 cat conftest.$ac_ext >&5
8456 ac_cv_func_alloca_works=no
8458 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8460 echo "$as_me:8460: result: $ac_cv_func_alloca_works" >&5
8461 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8463 if test $ac_cv_func_alloca_works = yes; then
8465 cat >>confdefs.h <<\EOF
8466 #define HAVE_ALLOCA 1
8469 else
8470 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8471 # that cause trouble. Some versions do not even contain alloca or
8472 # contain a buggy version. If you still want to use their alloca,
8473 # use ar to extract alloca.o from them instead of compiling alloca.c.
8475 ALLOCA=alloca.$ac_objext
8477 cat >>confdefs.h <<\EOF
8478 #define C_ALLOCA 1
8481 echo "$as_me:8481: checking whether \`alloca.c' needs Cray hooks" >&5
8482 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8483 if test "${ac_cv_os_cray+set}" = set; then
8484 echo $ECHO_N "(cached) $ECHO_C" >&6
8485 else
8486 cat >conftest.$ac_ext <<_ACEOF
8487 #line 8487 "configure"
8488 #include "confdefs.h"
8489 #if defined(CRAY) && ! defined(CRAY2)
8490 webecray
8491 #else
8492 wenotbecray
8493 #endif
8495 _ACEOF
8496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8497 egrep "webecray" >/dev/null 2>&1; then
8498 ac_cv_os_cray=yes
8499 else
8500 ac_cv_os_cray=no
8502 rm -f conftest*
8505 echo "$as_me:8505: result: $ac_cv_os_cray" >&5
8506 echo "${ECHO_T}$ac_cv_os_cray" >&6
8507 if test $ac_cv_os_cray = yes; then
8508 for ac_func in _getb67 GETB67 getb67; do
8509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8510 echo "$as_me:8510: checking for $ac_func" >&5
8511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8512 if eval "test \"\${$as_ac_var+set}\" = set"; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
8514 else
8515 cat >conftest.$ac_ext <<_ACEOF
8516 #line 8516 "configure"
8517 #include "confdefs.h"
8518 /* System header to define __stub macros and hopefully few prototypes,
8519 which can conflict with char $ac_func (); below. */
8520 #include <assert.h>
8521 /* Override any gcc2 internal prototype to avoid an error. */
8522 #ifdef __cplusplus
8523 extern "C"
8524 #endif
8525 /* We use char because int might match the return type of a gcc2
8526 builtin and then its argument prototype would still apply. */
8527 char $ac_func ();
8528 char (*f) ();
8531 main ()
8533 /* The GNU C library defines this for functions which it implements
8534 to always fail with ENOSYS. Some functions are actually named
8535 something starting with __ and the normal name is an alias. */
8536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8537 choke me
8538 #else
8539 f = $ac_func;
8540 #endif
8543 return 0;
8545 _ACEOF
8546 rm -f conftest.$ac_objext conftest$ac_exeext
8547 if { (eval echo "$as_me:8547: \"$ac_link\"") >&5
8548 (eval $ac_link) 2>&5
8549 ac_status=$?
8550 echo "$as_me:8550: \$? = $ac_status" >&5
8551 (exit $ac_status); } &&
8552 { ac_try='test -s conftest$ac_exeext'
8553 { (eval echo "$as_me:8553: \"$ac_try\"") >&5
8554 (eval $ac_try) 2>&5
8555 ac_status=$?
8556 echo "$as_me:8556: \$? = $ac_status" >&5
8557 (exit $ac_status); }; }; then
8558 eval "$as_ac_var=yes"
8559 else
8560 echo "$as_me: failed program was:" >&5
8561 cat conftest.$ac_ext >&5
8562 eval "$as_ac_var=no"
8564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8566 echo "$as_me:8566: result: `eval echo '${'$as_ac_var'}'`" >&5
8567 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8568 if test `eval echo '${'$as_ac_var'}'` = yes; then
8570 cat >>confdefs.h <<EOF
8571 #define CRAY_STACKSEG_END $ac_func
8574 break
8577 done
8580 echo "$as_me:8580: checking stack direction for C alloca" >&5
8581 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8582 if test "${ac_cv_c_stack_direction+set}" = set; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
8584 else
8585 if test "$cross_compiling" = yes; then
8586 ac_cv_c_stack_direction=0
8587 else
8588 cat >conftest.$ac_ext <<_ACEOF
8589 #line 8589 "configure"
8590 #include "confdefs.h"
8592 find_stack_direction ()
8594 static char *addr = 0;
8595 auto char dummy;
8596 if (addr == 0)
8598 addr = &dummy;
8599 return find_stack_direction ();
8601 else
8602 return (&dummy > addr) ? 1 : -1;
8606 main ()
8608 exit (find_stack_direction () < 0);
8610 _ACEOF
8611 rm -f conftest$ac_exeext
8612 if { (eval echo "$as_me:8612: \"$ac_link\"") >&5
8613 (eval $ac_link) 2>&5
8614 ac_status=$?
8615 echo "$as_me:8615: \$? = $ac_status" >&5
8616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8617 { (eval echo "$as_me:8617: \"$ac_try\"") >&5
8618 (eval $ac_try) 2>&5
8619 ac_status=$?
8620 echo "$as_me:8620: \$? = $ac_status" >&5
8621 (exit $ac_status); }; }; then
8622 ac_cv_c_stack_direction=1
8623 else
8624 echo "$as_me: program exited with status $ac_status" >&5
8625 echo "$as_me: failed program was:" >&5
8626 cat conftest.$ac_ext >&5
8627 ac_cv_c_stack_direction=-1
8629 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8632 echo "$as_me:8632: result: $ac_cv_c_stack_direction" >&5
8633 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8635 cat >>confdefs.h <<EOF
8636 #define STACK_DIRECTION $ac_cv_c_stack_direction
8641 for ac_func in \
8642 __libc_fork \
8643 _lwp_create \
8644 _pclose \
8645 _popen \
8646 _stricmp \
8647 _strnicmp \
8648 clone \
8649 ecvt \
8650 finite \
8651 fpclass \
8652 ftruncate64 \
8653 getnetbyaddr \
8654 getnetbyname \
8655 getpagesize \
8656 getprotobyname \
8657 getprotobynumber \
8658 getrlimit \
8659 getservbyport \
8660 getsockopt \
8661 inet_network \
8662 lseek64 \
8663 lstat \
8664 memmove \
8665 mmap \
8666 pclose \
8667 pread \
8668 popen \
8669 pwrite \
8670 rfork \
8671 select \
8672 sendmsg \
8673 settimeofday \
8674 sigaltstack \
8675 statfs \
8676 strcasecmp \
8677 strerror \
8678 strncasecmp \
8679 tcgetattr \
8680 timegm \
8681 usleep \
8682 vfscanf \
8683 wait4 \
8684 waitpid \
8687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8688 echo "$as_me:8688: checking for $ac_func" >&5
8689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8690 if eval "test \"\${$as_ac_var+set}\" = set"; then
8691 echo $ECHO_N "(cached) $ECHO_C" >&6
8692 else
8693 cat >conftest.$ac_ext <<_ACEOF
8694 #line 8694 "configure"
8695 #include "confdefs.h"
8696 /* System header to define __stub macros and hopefully few prototypes,
8697 which can conflict with char $ac_func (); below. */
8698 #include <assert.h>
8699 /* Override any gcc2 internal prototype to avoid an error. */
8700 #ifdef __cplusplus
8701 extern "C"
8702 #endif
8703 /* We use char because int might match the return type of a gcc2
8704 builtin and then its argument prototype would still apply. */
8705 char $ac_func ();
8706 char (*f) ();
8709 main ()
8711 /* The GNU C library defines this for functions which it implements
8712 to always fail with ENOSYS. Some functions are actually named
8713 something starting with __ and the normal name is an alias. */
8714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8715 choke me
8716 #else
8717 f = $ac_func;
8718 #endif
8721 return 0;
8723 _ACEOF
8724 rm -f conftest.$ac_objext conftest$ac_exeext
8725 if { (eval echo "$as_me:8725: \"$ac_link\"") >&5
8726 (eval $ac_link) 2>&5
8727 ac_status=$?
8728 echo "$as_me:8728: \$? = $ac_status" >&5
8729 (exit $ac_status); } &&
8730 { ac_try='test -s conftest$ac_exeext'
8731 { (eval echo "$as_me:8731: \"$ac_try\"") >&5
8732 (eval $ac_try) 2>&5
8733 ac_status=$?
8734 echo "$as_me:8734: \$? = $ac_status" >&5
8735 (exit $ac_status); }; }; then
8736 eval "$as_ac_var=yes"
8737 else
8738 echo "$as_me: failed program was:" >&5
8739 cat conftest.$ac_ext >&5
8740 eval "$as_ac_var=no"
8742 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8744 echo "$as_me:8744: result: `eval echo '${'$as_ac_var'}'`" >&5
8745 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8746 if test `eval echo '${'$as_ac_var'}'` = yes; then
8747 cat >>confdefs.h <<EOF
8748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8752 done
8754 for ac_header in \
8755 arpa/inet.h \
8756 arpa/nameser.h \
8757 direct.h \
8758 elf.h \
8759 float.h \
8760 ieeefp.h \
8761 io.h \
8762 libio.h \
8763 libutil.h \
8764 link.h \
8765 linux/cdrom.h \
8766 linux/input.h \
8767 linux/joystick.h \
8768 linux/serial.h \
8769 linux/ucdrom.h \
8770 net/if.h \
8771 netdb.h \
8772 netinet/in.h \
8773 netinet/in_systm.h \
8774 netinet/ip.h \
8775 netinet/tcp.h \
8776 pty.h \
8777 resolv.h \
8778 sched.h \
8779 socket.h \
8780 stdint.h \
8781 strings.h \
8782 sys/cdio.h \
8783 sys/errno.h \
8784 sys/file.h \
8785 sys/filio.h \
8786 sys/inttypes.h \
8787 sys/ipc.h \
8788 sys/link.h \
8789 sys/lwp.h \
8790 sys/mman.h \
8791 sys/modem.h \
8792 sys/mount.h \
8793 sys/msg.h \
8794 sys/param.h \
8795 sys/ptrace.h \
8796 sys/reg.h \
8797 sys/signal.h \
8798 sys/shm.h \
8799 sys/socket.h \
8800 sys/sockio.h \
8801 sys/statfs.h \
8802 sys/strtio.h \
8803 sys/syscall.h \
8804 sys/time.h \
8805 sys/user.h \
8806 sys/wait.h \
8807 sys/v86.h \
8808 sys/v86intr.h \
8809 sys/vfs.h \
8810 sys/vm86.h \
8811 syscall.h \
8812 ucontext.h \
8813 unistd.h \
8816 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8817 echo "$as_me:8817: checking for $ac_header" >&5
8818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8820 echo $ECHO_N "(cached) $ECHO_C" >&6
8821 else
8822 cat >conftest.$ac_ext <<_ACEOF
8823 #line 8823 "configure"
8824 #include "confdefs.h"
8825 #include <$ac_header>
8826 _ACEOF
8827 if { (eval echo "$as_me:8827: \"$ac_cpp conftest.$ac_ext\"") >&5
8828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8829 ac_status=$?
8830 egrep -v '^ *\+' conftest.er1 >conftest.err
8831 rm -f conftest.er1
8832 cat conftest.err >&5
8833 echo "$as_me:8833: \$? = $ac_status" >&5
8834 (exit $ac_status); } >/dev/null; then
8835 if test -s conftest.err; then
8836 ac_cpp_err=$ac_c_preproc_warn_flag
8837 else
8838 ac_cpp_err=
8840 else
8841 ac_cpp_err=yes
8843 if test -z "$ac_cpp_err"; then
8844 eval "$as_ac_Header=yes"
8845 else
8846 echo "$as_me: failed program was:" >&5
8847 cat conftest.$ac_ext >&5
8848 eval "$as_ac_Header=no"
8850 rm -f conftest.err conftest.$ac_ext
8852 echo "$as_me:8852: result: `eval echo '${'$as_ac_Header'}'`" >&5
8853 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8855 cat >>confdefs.h <<EOF
8856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8860 done
8862 echo "$as_me:8862: checking whether stat file-mode macros are broken" >&5
8863 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8864 if test "${ac_cv_header_stat_broken+set}" = set; then
8865 echo $ECHO_N "(cached) $ECHO_C" >&6
8866 else
8867 cat >conftest.$ac_ext <<_ACEOF
8868 #line 8868 "configure"
8869 #include "confdefs.h"
8870 #include <sys/types.h>
8871 #include <sys/stat.h>
8873 #if defined(S_ISBLK) && defined(S_IFDIR)
8874 # if S_ISBLK (S_IFDIR)
8875 You lose.
8876 # endif
8877 #endif
8879 #if defined(S_ISBLK) && defined(S_IFCHR)
8880 # if S_ISBLK (S_IFCHR)
8881 You lose.
8882 # endif
8883 #endif
8885 #if defined(S_ISLNK) && defined(S_IFREG)
8886 # if S_ISLNK (S_IFREG)
8887 You lose.
8888 # endif
8889 #endif
8891 #if defined(S_ISSOCK) && defined(S_IFREG)
8892 # if S_ISSOCK (S_IFREG)
8893 You lose.
8894 # endif
8895 #endif
8897 _ACEOF
8898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8899 egrep "You lose" >/dev/null 2>&1; then
8900 ac_cv_header_stat_broken=yes
8901 else
8902 ac_cv_header_stat_broken=no
8904 rm -f conftest*
8907 echo "$as_me:8907: result: $ac_cv_header_stat_broken" >&5
8908 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8909 if test $ac_cv_header_stat_broken = yes; then
8911 cat >>confdefs.h <<\EOF
8912 #define STAT_MACROS_BROKEN 1
8917 echo "$as_me:8917: checking for $CC option to accept ANSI C" >&5
8918 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
8919 if test "${ac_cv_prog_cc_stdc+set}" = set; then
8920 echo $ECHO_N "(cached) $ECHO_C" >&6
8921 else
8922 ac_cv_prog_cc_stdc=no
8923 ac_save_CC=$CC
8924 cat >conftest.$ac_ext <<_ACEOF
8925 #line 8925 "configure"
8926 #include "confdefs.h"
8927 #include <stdarg.h>
8928 #include <stdio.h>
8929 #include <sys/types.h>
8930 #include <sys/stat.h>
8931 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8932 struct buf { int x; };
8933 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8934 static char *e (p, i)
8935 char **p;
8936 int i;
8938 return p[i];
8940 static char *f (char * (*g) (char **, int), char **p, ...)
8942 char *s;
8943 va_list v;
8944 va_start (v,p);
8945 s = g (p, va_arg (v,int));
8946 va_end (v);
8947 return s;
8949 int test (int i, double x);
8950 struct s1 {int (*f) (int a);};
8951 struct s2 {int (*f) (double a);};
8952 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8953 int argc;
8954 char **argv;
8956 main ()
8958 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8960 return 0;
8962 _ACEOF
8963 # Don't try gcc -ansi; that turns off useful extensions and
8964 # breaks some systems' header files.
8965 # AIX -qlanglvl=ansi
8966 # Ultrix and OSF/1 -std1
8967 # HP-UX 10.20 and later -Ae
8968 # HP-UX older versions -Aa -D_HPUX_SOURCE
8969 # SVR4 -Xc -D__EXTENSIONS__
8970 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8972 CC="$ac_save_CC $ac_arg"
8973 rm -f conftest.$ac_objext
8974 if { (eval echo "$as_me:8974: \"$ac_compile\"") >&5
8975 (eval $ac_compile) 2>&5
8976 ac_status=$?
8977 echo "$as_me:8977: \$? = $ac_status" >&5
8978 (exit $ac_status); } &&
8979 { ac_try='test -s conftest.$ac_objext'
8980 { (eval echo "$as_me:8980: \"$ac_try\"") >&5
8981 (eval $ac_try) 2>&5
8982 ac_status=$?
8983 echo "$as_me:8983: \$? = $ac_status" >&5
8984 (exit $ac_status); }; }; then
8985 ac_cv_prog_cc_stdc=$ac_arg
8986 break
8987 else
8988 echo "$as_me: failed program was:" >&5
8989 cat conftest.$ac_ext >&5
8991 rm -f conftest.$ac_objext
8992 done
8993 rm -f conftest.$ac_ext conftest.$ac_objext
8994 CC=$ac_save_CC
8998 case "x$ac_cv_prog_cc_stdc" in
8999 x|xno)
9000 echo "$as_me:9000: result: none needed" >&5
9001 echo "${ECHO_T}none needed" >&6 ;;
9003 echo "$as_me:9003: result: $ac_cv_prog_cc_stdc" >&5
9004 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
9005 CC="$CC $ac_cv_prog_cc_stdc" ;;
9006 esac
9008 echo "$as_me:9008: checking for an ANSI C-conforming const" >&5
9009 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9010 if test "${ac_cv_c_const+set}" = set; then
9011 echo $ECHO_N "(cached) $ECHO_C" >&6
9012 else
9013 cat >conftest.$ac_ext <<_ACEOF
9014 #line 9014 "configure"
9015 #include "confdefs.h"
9018 main ()
9020 /* FIXME: Include the comments suggested by Paul. */
9021 #ifndef __cplusplus
9022 /* Ultrix mips cc rejects this. */
9023 typedef int charset[2];
9024 const charset x;
9025 /* SunOS 4.1.1 cc rejects this. */
9026 char const *const *ccp;
9027 char **p;
9028 /* NEC SVR4.0.2 mips cc rejects this. */
9029 struct point {int x, y;};
9030 static struct point const zero = {0,0};
9031 /* AIX XL C 1.02.0.0 rejects this.
9032 It does not let you subtract one const X* pointer from another in
9033 an arm of an if-expression whose if-part is not a constant
9034 expression */
9035 const char *g = "string";
9036 ccp = &g + (g ? g-g : 0);
9037 /* HPUX 7.0 cc rejects these. */
9038 ++ccp;
9039 p = (char**) ccp;
9040 ccp = (char const *const *) p;
9041 { /* SCO 3.2v4 cc rejects this. */
9042 char *t;
9043 char const *s = 0 ? (char *) 0 : (char const *) 0;
9045 *t++ = 0;
9047 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9048 int x[] = {25, 17};
9049 const int *foo = &x[0];
9050 ++foo;
9052 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9053 typedef const int *iptr;
9054 iptr p = 0;
9055 ++p;
9057 { /* AIX XL C 1.02.0.0 rejects this saying
9058 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9059 struct s { int j; const int *ap[3]; };
9060 struct s *b; b->j = 5;
9062 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9063 const int foo = 10;
9065 #endif
9068 return 0;
9070 _ACEOF
9071 rm -f conftest.$ac_objext
9072 if { (eval echo "$as_me:9072: \"$ac_compile\"") >&5
9073 (eval $ac_compile) 2>&5
9074 ac_status=$?
9075 echo "$as_me:9075: \$? = $ac_status" >&5
9076 (exit $ac_status); } &&
9077 { ac_try='test -s conftest.$ac_objext'
9078 { (eval echo "$as_me:9078: \"$ac_try\"") >&5
9079 (eval $ac_try) 2>&5
9080 ac_status=$?
9081 echo "$as_me:9081: \$? = $ac_status" >&5
9082 (exit $ac_status); }; }; then
9083 ac_cv_c_const=yes
9084 else
9085 echo "$as_me: failed program was:" >&5
9086 cat conftest.$ac_ext >&5
9087 ac_cv_c_const=no
9089 rm -f conftest.$ac_objext conftest.$ac_ext
9091 echo "$as_me:9091: result: $ac_cv_c_const" >&5
9092 echo "${ECHO_T}$ac_cv_c_const" >&6
9093 if test $ac_cv_c_const = no; then
9095 cat >>confdefs.h <<\EOF
9096 #define const
9101 echo "$as_me:9101: checking for inline" >&5
9102 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9103 if test "${ac_cv_c_inline+set}" = set; then
9104 echo $ECHO_N "(cached) $ECHO_C" >&6
9105 else
9106 ac_cv_c_inline=no
9107 for ac_kw in inline __inline__ __inline; do
9108 cat >conftest.$ac_ext <<_ACEOF
9109 #line 9109 "configure"
9110 #include "confdefs.h"
9111 #ifndef __cplusplus
9112 static $ac_kw int static_foo () {return 0; }
9113 $ac_kw int foo () {return 0; }
9114 #endif
9116 _ACEOF
9117 rm -f conftest.$ac_objext
9118 if { (eval echo "$as_me:9118: \"$ac_compile\"") >&5
9119 (eval $ac_compile) 2>&5
9120 ac_status=$?
9121 echo "$as_me:9121: \$? = $ac_status" >&5
9122 (exit $ac_status); } &&
9123 { ac_try='test -s conftest.$ac_objext'
9124 { (eval echo "$as_me:9124: \"$ac_try\"") >&5
9125 (eval $ac_try) 2>&5
9126 ac_status=$?
9127 echo "$as_me:9127: \$? = $ac_status" >&5
9128 (exit $ac_status); }; }; then
9129 ac_cv_c_inline=$ac_kw; break
9130 else
9131 echo "$as_me: failed program was:" >&5
9132 cat conftest.$ac_ext >&5
9134 rm -f conftest.$ac_objext conftest.$ac_ext
9135 done
9138 echo "$as_me:9138: result: $ac_cv_c_inline" >&5
9139 echo "${ECHO_T}$ac_cv_c_inline" >&6
9140 case $ac_cv_c_inline in
9141 inline | yes) ;;
9143 cat >>confdefs.h <<\EOF
9144 #define inline
9147 *) cat >>confdefs.h <<EOF
9148 #define inline $ac_cv_c_inline
9151 esac
9153 echo "$as_me:9153: checking for ANSI C header files" >&5
9154 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9155 if test "${ac_cv_header_stdc+set}" = set; then
9156 echo $ECHO_N "(cached) $ECHO_C" >&6
9157 else
9158 cat >conftest.$ac_ext <<_ACEOF
9159 #line 9159 "configure"
9160 #include "confdefs.h"
9161 #include <stdlib.h>
9162 #include <stdarg.h>
9163 #include <string.h>
9164 #include <float.h>
9166 _ACEOF
9167 if { (eval echo "$as_me:9167: \"$ac_cpp conftest.$ac_ext\"") >&5
9168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9169 ac_status=$?
9170 egrep -v '^ *\+' conftest.er1 >conftest.err
9171 rm -f conftest.er1
9172 cat conftest.err >&5
9173 echo "$as_me:9173: \$? = $ac_status" >&5
9174 (exit $ac_status); } >/dev/null; then
9175 if test -s conftest.err; then
9176 ac_cpp_err=$ac_c_preproc_warn_flag
9177 else
9178 ac_cpp_err=
9180 else
9181 ac_cpp_err=yes
9183 if test -z "$ac_cpp_err"; then
9184 ac_cv_header_stdc=yes
9185 else
9186 echo "$as_me: failed program was:" >&5
9187 cat conftest.$ac_ext >&5
9188 ac_cv_header_stdc=no
9190 rm -f conftest.err conftest.$ac_ext
9192 if test $ac_cv_header_stdc = yes; then
9193 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9194 cat >conftest.$ac_ext <<_ACEOF
9195 #line 9195 "configure"
9196 #include "confdefs.h"
9197 #include <string.h>
9199 _ACEOF
9200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9201 egrep "memchr" >/dev/null 2>&1; then
9203 else
9204 ac_cv_header_stdc=no
9206 rm -f conftest*
9210 if test $ac_cv_header_stdc = yes; then
9211 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9212 cat >conftest.$ac_ext <<_ACEOF
9213 #line 9213 "configure"
9214 #include "confdefs.h"
9215 #include <stdlib.h>
9217 _ACEOF
9218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9219 egrep "free" >/dev/null 2>&1; then
9221 else
9222 ac_cv_header_stdc=no
9224 rm -f conftest*
9228 if test $ac_cv_header_stdc = yes; then
9229 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9230 if test "$cross_compiling" = yes; then
9232 else
9233 cat >conftest.$ac_ext <<_ACEOF
9234 #line 9234 "configure"
9235 #include "confdefs.h"
9236 #include <ctype.h>
9237 #if ((' ' & 0x0FF) == 0x020)
9238 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9239 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9240 #else
9241 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9242 || ('j' <= (c) && (c) <= 'r') \
9243 || ('s' <= (c) && (c) <= 'z'))
9244 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9245 #endif
9247 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9249 main ()
9251 int i;
9252 for (i = 0; i < 256; i++)
9253 if (XOR (islower (i), ISLOWER (i))
9254 || toupper (i) != TOUPPER (i))
9255 exit(2);
9256 exit (0);
9258 _ACEOF
9259 rm -f conftest$ac_exeext
9260 if { (eval echo "$as_me:9260: \"$ac_link\"") >&5
9261 (eval $ac_link) 2>&5
9262 ac_status=$?
9263 echo "$as_me:9263: \$? = $ac_status" >&5
9264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9265 { (eval echo "$as_me:9265: \"$ac_try\"") >&5
9266 (eval $ac_try) 2>&5
9267 ac_status=$?
9268 echo "$as_me:9268: \$? = $ac_status" >&5
9269 (exit $ac_status); }; }; then
9271 else
9272 echo "$as_me: program exited with status $ac_status" >&5
9273 echo "$as_me: failed program was:" >&5
9274 cat conftest.$ac_ext >&5
9275 ac_cv_header_stdc=no
9277 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9281 echo "$as_me:9281: result: $ac_cv_header_stdc" >&5
9282 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9283 if test $ac_cv_header_stdc = yes; then
9285 cat >>confdefs.h <<\EOF
9286 #define STDC_HEADERS 1
9291 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9293 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9294 inttypes.h stdint.h unistd.h
9296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9297 echo "$as_me:9297: checking for $ac_header" >&5
9298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9300 echo $ECHO_N "(cached) $ECHO_C" >&6
9301 else
9302 cat >conftest.$ac_ext <<_ACEOF
9303 #line 9303 "configure"
9304 #include "confdefs.h"
9305 $ac_includes_default
9306 #include <$ac_header>
9307 _ACEOF
9308 rm -f conftest.$ac_objext
9309 if { (eval echo "$as_me:9309: \"$ac_compile\"") >&5
9310 (eval $ac_compile) 2>&5
9311 ac_status=$?
9312 echo "$as_me:9312: \$? = $ac_status" >&5
9313 (exit $ac_status); } &&
9314 { ac_try='test -s conftest.$ac_objext'
9315 { (eval echo "$as_me:9315: \"$ac_try\"") >&5
9316 (eval $ac_try) 2>&5
9317 ac_status=$?
9318 echo "$as_me:9318: \$? = $ac_status" >&5
9319 (exit $ac_status); }; }; then
9320 eval "$as_ac_Header=yes"
9321 else
9322 echo "$as_me: failed program was:" >&5
9323 cat conftest.$ac_ext >&5
9324 eval "$as_ac_Header=no"
9326 rm -f conftest.$ac_objext conftest.$ac_ext
9328 echo "$as_me:9328: result: `eval echo '${'$as_ac_Header'}'`" >&5
9329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9331 cat >>confdefs.h <<EOF
9332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9336 done
9338 echo "$as_me:9338: checking for mode_t" >&5
9339 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
9340 if test "${ac_cv_type_mode_t+set}" = set; then
9341 echo $ECHO_N "(cached) $ECHO_C" >&6
9342 else
9343 cat >conftest.$ac_ext <<_ACEOF
9344 #line 9344 "configure"
9345 #include "confdefs.h"
9346 $ac_includes_default
9348 main ()
9350 if ((mode_t *) 0)
9351 return 0;
9352 if (sizeof (mode_t))
9353 return 0;
9355 return 0;
9357 _ACEOF
9358 rm -f conftest.$ac_objext
9359 if { (eval echo "$as_me:9359: \"$ac_compile\"") >&5
9360 (eval $ac_compile) 2>&5
9361 ac_status=$?
9362 echo "$as_me:9362: \$? = $ac_status" >&5
9363 (exit $ac_status); } &&
9364 { ac_try='test -s conftest.$ac_objext'
9365 { (eval echo "$as_me:9365: \"$ac_try\"") >&5
9366 (eval $ac_try) 2>&5
9367 ac_status=$?
9368 echo "$as_me:9368: \$? = $ac_status" >&5
9369 (exit $ac_status); }; }; then
9370 ac_cv_type_mode_t=yes
9371 else
9372 echo "$as_me: failed program was:" >&5
9373 cat conftest.$ac_ext >&5
9374 ac_cv_type_mode_t=no
9376 rm -f conftest.$ac_objext conftest.$ac_ext
9378 echo "$as_me:9378: result: $ac_cv_type_mode_t" >&5
9379 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
9380 if test $ac_cv_type_mode_t = yes; then
9382 else
9384 cat >>confdefs.h <<EOF
9385 #define mode_t int
9390 echo "$as_me:9390: checking for off_t" >&5
9391 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
9392 if test "${ac_cv_type_off_t+set}" = set; then
9393 echo $ECHO_N "(cached) $ECHO_C" >&6
9394 else
9395 cat >conftest.$ac_ext <<_ACEOF
9396 #line 9396 "configure"
9397 #include "confdefs.h"
9398 $ac_includes_default
9400 main ()
9402 if ((off_t *) 0)
9403 return 0;
9404 if (sizeof (off_t))
9405 return 0;
9407 return 0;
9409 _ACEOF
9410 rm -f conftest.$ac_objext
9411 if { (eval echo "$as_me:9411: \"$ac_compile\"") >&5
9412 (eval $ac_compile) 2>&5
9413 ac_status=$?
9414 echo "$as_me:9414: \$? = $ac_status" >&5
9415 (exit $ac_status); } &&
9416 { ac_try='test -s conftest.$ac_objext'
9417 { (eval echo "$as_me:9417: \"$ac_try\"") >&5
9418 (eval $ac_try) 2>&5
9419 ac_status=$?
9420 echo "$as_me:9420: \$? = $ac_status" >&5
9421 (exit $ac_status); }; }; then
9422 ac_cv_type_off_t=yes
9423 else
9424 echo "$as_me: failed program was:" >&5
9425 cat conftest.$ac_ext >&5
9426 ac_cv_type_off_t=no
9428 rm -f conftest.$ac_objext conftest.$ac_ext
9430 echo "$as_me:9430: result: $ac_cv_type_off_t" >&5
9431 echo "${ECHO_T}$ac_cv_type_off_t" >&6
9432 if test $ac_cv_type_off_t = yes; then
9434 else
9436 cat >>confdefs.h <<EOF
9437 #define off_t long
9442 echo "$as_me:9442: checking for pid_t" >&5
9443 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9444 if test "${ac_cv_type_pid_t+set}" = set; then
9445 echo $ECHO_N "(cached) $ECHO_C" >&6
9446 else
9447 cat >conftest.$ac_ext <<_ACEOF
9448 #line 9448 "configure"
9449 #include "confdefs.h"
9450 $ac_includes_default
9452 main ()
9454 if ((pid_t *) 0)
9455 return 0;
9456 if (sizeof (pid_t))
9457 return 0;
9459 return 0;
9461 _ACEOF
9462 rm -f conftest.$ac_objext
9463 if { (eval echo "$as_me:9463: \"$ac_compile\"") >&5
9464 (eval $ac_compile) 2>&5
9465 ac_status=$?
9466 echo "$as_me:9466: \$? = $ac_status" >&5
9467 (exit $ac_status); } &&
9468 { ac_try='test -s conftest.$ac_objext'
9469 { (eval echo "$as_me:9469: \"$ac_try\"") >&5
9470 (eval $ac_try) 2>&5
9471 ac_status=$?
9472 echo "$as_me:9472: \$? = $ac_status" >&5
9473 (exit $ac_status); }; }; then
9474 ac_cv_type_pid_t=yes
9475 else
9476 echo "$as_me: failed program was:" >&5
9477 cat conftest.$ac_ext >&5
9478 ac_cv_type_pid_t=no
9480 rm -f conftest.$ac_objext conftest.$ac_ext
9482 echo "$as_me:9482: result: $ac_cv_type_pid_t" >&5
9483 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9484 if test $ac_cv_type_pid_t = yes; then
9486 else
9488 cat >>confdefs.h <<EOF
9489 #define pid_t int
9494 echo "$as_me:9494: checking for size_t" >&5
9495 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9496 if test "${ac_cv_type_size_t+set}" = set; then
9497 echo $ECHO_N "(cached) $ECHO_C" >&6
9498 else
9499 cat >conftest.$ac_ext <<_ACEOF
9500 #line 9500 "configure"
9501 #include "confdefs.h"
9502 $ac_includes_default
9504 main ()
9506 if ((size_t *) 0)
9507 return 0;
9508 if (sizeof (size_t))
9509 return 0;
9511 return 0;
9513 _ACEOF
9514 rm -f conftest.$ac_objext
9515 if { (eval echo "$as_me:9515: \"$ac_compile\"") >&5
9516 (eval $ac_compile) 2>&5
9517 ac_status=$?
9518 echo "$as_me:9518: \$? = $ac_status" >&5
9519 (exit $ac_status); } &&
9520 { ac_try='test -s conftest.$ac_objext'
9521 { (eval echo "$as_me:9521: \"$ac_try\"") >&5
9522 (eval $ac_try) 2>&5
9523 ac_status=$?
9524 echo "$as_me:9524: \$? = $ac_status" >&5
9525 (exit $ac_status); }; }; then
9526 ac_cv_type_size_t=yes
9527 else
9528 echo "$as_me: failed program was:" >&5
9529 cat conftest.$ac_ext >&5
9530 ac_cv_type_size_t=no
9532 rm -f conftest.$ac_objext conftest.$ac_ext
9534 echo "$as_me:9534: result: $ac_cv_type_size_t" >&5
9535 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9536 if test $ac_cv_type_size_t = yes; then
9538 else
9540 cat >>confdefs.h <<EOF
9541 #define size_t unsigned
9546 echo "$as_me:9546: checking for long long" >&5
9547 echo $ECHO_N "checking for long long... $ECHO_C" >&6
9548 if test "${ac_cv_type_long_long+set}" = set; then
9549 echo $ECHO_N "(cached) $ECHO_C" >&6
9550 else
9551 cat >conftest.$ac_ext <<_ACEOF
9552 #line 9552 "configure"
9553 #include "confdefs.h"
9554 $ac_includes_default
9556 main ()
9558 if ((long long *) 0)
9559 return 0;
9560 if (sizeof (long long))
9561 return 0;
9563 return 0;
9565 _ACEOF
9566 rm -f conftest.$ac_objext
9567 if { (eval echo "$as_me:9567: \"$ac_compile\"") >&5
9568 (eval $ac_compile) 2>&5
9569 ac_status=$?
9570 echo "$as_me:9570: \$? = $ac_status" >&5
9571 (exit $ac_status); } &&
9572 { ac_try='test -s conftest.$ac_objext'
9573 { (eval echo "$as_me:9573: \"$ac_try\"") >&5
9574 (eval $ac_try) 2>&5
9575 ac_status=$?
9576 echo "$as_me:9576: \$? = $ac_status" >&5
9577 (exit $ac_status); }; }; then
9578 ac_cv_type_long_long=yes
9579 else
9580 echo "$as_me: failed program was:" >&5
9581 cat conftest.$ac_ext >&5
9582 ac_cv_type_long_long=no
9584 rm -f conftest.$ac_objext conftest.$ac_ext
9586 echo "$as_me:9586: result: $ac_cv_type_long_long" >&5
9587 echo "${ECHO_T}$ac_cv_type_long_long" >&6
9589 echo "$as_me:9589: checking size of long long" >&5
9590 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
9591 if test "${ac_cv_sizeof_long_long+set}" = set; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
9593 else
9594 if test "$ac_cv_type_long_long" = yes; then
9595 if test "$cross_compiling" = yes; then
9596 # Depending upon the size, compute the lo and hi bounds.
9597 cat >conftest.$ac_ext <<_ACEOF
9598 #line 9598 "configure"
9599 #include "confdefs.h"
9600 $ac_includes_default
9602 main ()
9604 int _array_ [1 - 2 * !((sizeof (long long)) >= 0)]
9606 return 0;
9608 _ACEOF
9609 rm -f conftest.$ac_objext
9610 if { (eval echo "$as_me:9610: \"$ac_compile\"") >&5
9611 (eval $ac_compile) 2>&5
9612 ac_status=$?
9613 echo "$as_me:9613: \$? = $ac_status" >&5
9614 (exit $ac_status); } &&
9615 { ac_try='test -s conftest.$ac_objext'
9616 { (eval echo "$as_me:9616: \"$ac_try\"") >&5
9617 (eval $ac_try) 2>&5
9618 ac_status=$?
9619 echo "$as_me:9619: \$? = $ac_status" >&5
9620 (exit $ac_status); }; }; then
9621 ac_lo=0 ac_mid=0
9622 while :; do
9623 cat >conftest.$ac_ext <<_ACEOF
9624 #line 9624 "configure"
9625 #include "confdefs.h"
9626 $ac_includes_default
9628 main ()
9630 int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
9632 return 0;
9634 _ACEOF
9635 rm -f conftest.$ac_objext
9636 if { (eval echo "$as_me:9636: \"$ac_compile\"") >&5
9637 (eval $ac_compile) 2>&5
9638 ac_status=$?
9639 echo "$as_me:9639: \$? = $ac_status" >&5
9640 (exit $ac_status); } &&
9641 { ac_try='test -s conftest.$ac_objext'
9642 { (eval echo "$as_me:9642: \"$ac_try\"") >&5
9643 (eval $ac_try) 2>&5
9644 ac_status=$?
9645 echo "$as_me:9645: \$? = $ac_status" >&5
9646 (exit $ac_status); }; }; then
9647 ac_hi=$ac_mid; break
9648 else
9649 echo "$as_me: failed program was:" >&5
9650 cat conftest.$ac_ext >&5
9651 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
9653 rm -f conftest.$ac_objext conftest.$ac_ext
9654 done
9655 else
9656 echo "$as_me: failed program was:" >&5
9657 cat conftest.$ac_ext >&5
9658 ac_hi=-1 ac_mid=-1
9659 while :; do
9660 cat >conftest.$ac_ext <<_ACEOF
9661 #line 9661 "configure"
9662 #include "confdefs.h"
9663 $ac_includes_default
9665 main ()
9667 int _array_ [1 - 2 * !((sizeof (long long)) >= $ac_mid)]
9669 return 0;
9671 _ACEOF
9672 rm -f conftest.$ac_objext
9673 if { (eval echo "$as_me:9673: \"$ac_compile\"") >&5
9674 (eval $ac_compile) 2>&5
9675 ac_status=$?
9676 echo "$as_me:9676: \$? = $ac_status" >&5
9677 (exit $ac_status); } &&
9678 { ac_try='test -s conftest.$ac_objext'
9679 { (eval echo "$as_me:9679: \"$ac_try\"") >&5
9680 (eval $ac_try) 2>&5
9681 ac_status=$?
9682 echo "$as_me:9682: \$? = $ac_status" >&5
9683 (exit $ac_status); }; }; then
9684 ac_lo=$ac_mid; break
9685 else
9686 echo "$as_me: failed program was:" >&5
9687 cat conftest.$ac_ext >&5
9688 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
9690 rm -f conftest.$ac_objext conftest.$ac_ext
9691 done
9693 rm -f conftest.$ac_objext conftest.$ac_ext
9694 # Binary search between lo and hi bounds.
9695 while test "x$ac_lo" != "x$ac_hi"; do
9696 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9697 cat >conftest.$ac_ext <<_ACEOF
9698 #line 9698 "configure"
9699 #include "confdefs.h"
9700 $ac_includes_default
9702 main ()
9704 int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
9706 return 0;
9708 _ACEOF
9709 rm -f conftest.$ac_objext
9710 if { (eval echo "$as_me:9710: \"$ac_compile\"") >&5
9711 (eval $ac_compile) 2>&5
9712 ac_status=$?
9713 echo "$as_me:9713: \$? = $ac_status" >&5
9714 (exit $ac_status); } &&
9715 { ac_try='test -s conftest.$ac_objext'
9716 { (eval echo "$as_me:9716: \"$ac_try\"") >&5
9717 (eval $ac_try) 2>&5
9718 ac_status=$?
9719 echo "$as_me:9719: \$? = $ac_status" >&5
9720 (exit $ac_status); }; }; then
9721 ac_hi=$ac_mid
9722 else
9723 echo "$as_me: failed program was:" >&5
9724 cat conftest.$ac_ext >&5
9725 ac_lo=`expr $ac_mid + 1`
9727 rm -f conftest.$ac_objext conftest.$ac_ext
9728 done
9729 ac_cv_sizeof_long_long=$ac_lo
9730 else
9731 if test "$cross_compiling" = yes; then
9732 { { echo "$as_me:9732: error: cannot run test program while cross compiling" >&5
9733 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9734 { (exit 1); exit 1; }; }
9735 else
9736 cat >conftest.$ac_ext <<_ACEOF
9737 #line 9737 "configure"
9738 #include "confdefs.h"
9739 $ac_includes_default
9741 main ()
9743 FILE *f = fopen ("conftest.val", "w");
9744 if (!f)
9745 exit (1);
9746 fprintf (f, "%d", (sizeof (long long)));
9747 fclose (f);
9749 return 0;
9751 _ACEOF
9752 rm -f conftest$ac_exeext
9753 if { (eval echo "$as_me:9753: \"$ac_link\"") >&5
9754 (eval $ac_link) 2>&5
9755 ac_status=$?
9756 echo "$as_me:9756: \$? = $ac_status" >&5
9757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9758 { (eval echo "$as_me:9758: \"$ac_try\"") >&5
9759 (eval $ac_try) 2>&5
9760 ac_status=$?
9761 echo "$as_me:9761: \$? = $ac_status" >&5
9762 (exit $ac_status); }; }; then
9763 ac_cv_sizeof_long_long=`cat conftest.val`
9764 else
9765 echo "$as_me: program exited with status $ac_status" >&5
9766 echo "$as_me: failed program was:" >&5
9767 cat conftest.$ac_ext >&5
9769 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9772 rm -f conftest.val
9773 else
9774 ac_cv_sizeof_long_long=0
9777 echo "$as_me:9777: result: $ac_cv_sizeof_long_long" >&5
9778 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
9779 cat >>confdefs.h <<EOF
9780 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9783 echo "$as_me:9783: checking whether linux/input.h is for real" >&5
9784 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
9785 if test "${wine_cv_linux_input_h+set}" = set; then
9786 echo $ECHO_N "(cached) $ECHO_C" >&6
9787 else
9788 cat >conftest.$ac_ext <<_ACEOF
9789 #line 9789 "configure"
9790 #include "confdefs.h"
9792 #include <linux/input.h>
9795 main ()
9798 int foo = EVIOCGBIT(EV_ABS,42);
9799 int bar = BTN_PINKIE;
9800 int fortytwo = 42;
9803 return 0;
9805 _ACEOF
9806 rm -f conftest.$ac_objext
9807 if { (eval echo "$as_me:9807: \"$ac_compile\"") >&5
9808 (eval $ac_compile) 2>&5
9809 ac_status=$?
9810 echo "$as_me:9810: \$? = $ac_status" >&5
9811 (exit $ac_status); } &&
9812 { ac_try='test -s conftest.$ac_objext'
9813 { (eval echo "$as_me:9813: \"$ac_try\"") >&5
9814 (eval $ac_try) 2>&5
9815 ac_status=$?
9816 echo "$as_me:9816: \$? = $ac_status" >&5
9817 (exit $ac_status); }; }; then
9818 wine_cv_linux_input_h=yes
9819 else
9820 echo "$as_me: failed program was:" >&5
9821 cat conftest.$ac_ext >&5
9822 wine_cv_linux_input_h=no
9824 rm -f conftest.$ac_objext conftest.$ac_ext
9827 echo "$as_me:9827: result: $wine_cv_linux_input_h" >&5
9828 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
9829 if test "$wine_cv_linux_input_h" = "yes"
9830 then
9832 cat >>confdefs.h <<\EOF
9833 #define HAVE_CORRECT_LINUXINPUT_H 1
9838 echo "$as_me:9838: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
9839 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
9840 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
9841 echo $ECHO_N "(cached) $ECHO_C" >&6
9842 else
9843 cat >conftest.$ac_ext <<_ACEOF
9844 #line 9844 "configure"
9845 #include "confdefs.h"
9847 #include <netdb.h>
9850 main ()
9853 char *name=NULL;
9854 struct hostent he;
9855 struct hostent *result;
9856 char *buf=NULL;
9857 int bufsize=0;
9858 int res,errnr;
9859 char *addr=NULL;
9860 int addrlen=0;
9861 int addrtype=0;
9862 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
9863 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
9866 return 0;
9868 _ACEOF
9869 rm -f conftest.$ac_objext
9870 if { (eval echo "$as_me:9870: \"$ac_compile\"") >&5
9871 (eval $ac_compile) 2>&5
9872 ac_status=$?
9873 echo "$as_me:9873: \$? = $ac_status" >&5
9874 (exit $ac_status); } &&
9875 { ac_try='test -s conftest.$ac_objext'
9876 { (eval echo "$as_me:9876: \"$ac_try\"") >&5
9877 (eval $ac_try) 2>&5
9878 ac_status=$?
9879 echo "$as_me:9879: \$? = $ac_status" >&5
9880 (exit $ac_status); }; }; then
9881 wine_cv_linux_gethostbyname_r_6=yes
9882 else
9883 echo "$as_me: failed program was:" >&5
9884 cat conftest.$ac_ext >&5
9885 wine_cv_linux_gethostbyname_r_6=no
9888 rm -f conftest.$ac_objext conftest.$ac_ext
9891 echo "$as_me:9891: result: $wine_cv_linux_gethostbyname_r_6" >&5
9892 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
9893 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
9894 then
9896 cat >>confdefs.h <<\EOF
9897 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
9902 if test "$ac_cv_header_linux_joystick_h" = "yes"
9903 then
9904 echo "$as_me:9904: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
9905 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
9906 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
9907 echo $ECHO_N "(cached) $ECHO_C" >&6
9908 else
9909 cat >conftest.$ac_ext <<_ACEOF
9910 #line 9910 "configure"
9911 #include "confdefs.h"
9913 #include <sys/ioctl.h>
9914 #include <linux/joystick.h>
9916 struct js_event blub;
9917 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
9918 #error "no 2.2 header"
9919 #endif
9922 main ()
9924 /*empty*/
9926 return 0;
9928 _ACEOF
9929 rm -f conftest.$ac_objext
9930 if { (eval echo "$as_me:9930: \"$ac_compile\"") >&5
9931 (eval $ac_compile) 2>&5
9932 ac_status=$?
9933 echo "$as_me:9933: \$? = $ac_status" >&5
9934 (exit $ac_status); } &&
9935 { ac_try='test -s conftest.$ac_objext'
9936 { (eval echo "$as_me:9936: \"$ac_try\"") >&5
9937 (eval $ac_try) 2>&5
9938 ac_status=$?
9939 echo "$as_me:9939: \$? = $ac_status" >&5
9940 (exit $ac_status); }; }; then
9941 wine_cv_linux_joystick_22_api=yes
9942 else
9943 echo "$as_me: failed program was:" >&5
9944 cat conftest.$ac_ext >&5
9945 wine_cv_linux_joystick_22_api=no
9947 rm -f conftest.$ac_objext conftest.$ac_ext
9950 echo "$as_me:9950: result: $wine_cv_linux_joystick_22_api" >&5
9951 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
9952 if test "$wine_cv_linux_joystick_22_api" = "yes"
9953 then
9955 cat >>confdefs.h <<\EOF
9956 #define HAVE_LINUX_22_JOYSTICK_API 1
9962 if test "$ac_cv_header_sys_vfs_h" = "yes"
9963 then
9964 echo "$as_me:9964: checking whether sys/vfs.h defines statfs" >&5
9965 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
9966 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
9967 echo $ECHO_N "(cached) $ECHO_C" >&6
9968 else
9969 cat >conftest.$ac_ext <<_ACEOF
9970 #line 9970 "configure"
9971 #include "confdefs.h"
9973 #include <sys/types.h>
9974 #ifdef HAVE_SYS_PARAM_H
9975 # include <sys/param.h>
9976 #endif
9977 #include <sys/vfs.h>
9980 main ()
9983 struct statfs stfs;
9985 memset(&stfs,0,sizeof(stfs));
9988 return 0;
9990 _ACEOF
9991 rm -f conftest.$ac_objext
9992 if { (eval echo "$as_me:9992: \"$ac_compile\"") >&5
9993 (eval $ac_compile) 2>&5
9994 ac_status=$?
9995 echo "$as_me:9995: \$? = $ac_status" >&5
9996 (exit $ac_status); } &&
9997 { ac_try='test -s conftest.$ac_objext'
9998 { (eval echo "$as_me:9998: \"$ac_try\"") >&5
9999 (eval $ac_try) 2>&5
10000 ac_status=$?
10001 echo "$as_me:10001: \$? = $ac_status" >&5
10002 (exit $ac_status); }; }; then
10003 wine_cv_sys_vfs_has_statfs=yes
10004 else
10005 echo "$as_me: failed program was:" >&5
10006 cat conftest.$ac_ext >&5
10007 wine_cv_sys_vfs_has_statfs=no
10010 rm -f conftest.$ac_objext conftest.$ac_ext
10013 echo "$as_me:10013: result: $wine_cv_sys_vfs_has_statfs" >&5
10014 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
10015 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
10016 then
10018 cat >>confdefs.h <<\EOF
10019 #define STATFS_DEFINED_BY_SYS_VFS 1
10025 if test "$ac_cv_header_sys_statfs_h" = "yes"
10026 then
10027 echo "$as_me:10027: checking whether sys/statfs.h defines statfs" >&5
10028 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
10029 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
10030 echo $ECHO_N "(cached) $ECHO_C" >&6
10031 else
10032 cat >conftest.$ac_ext <<_ACEOF
10033 #line 10033 "configure"
10034 #include "confdefs.h"
10036 #include <sys/types.h>
10037 #ifdef HAVE_SYS_PARAM_H
10038 # include <sys/param.h>
10039 #endif
10040 #include <sys/statfs.h>
10043 main ()
10046 struct statfs stfs;
10049 return 0;
10051 _ACEOF
10052 rm -f conftest.$ac_objext
10053 if { (eval echo "$as_me:10053: \"$ac_compile\"") >&5
10054 (eval $ac_compile) 2>&5
10055 ac_status=$?
10056 echo "$as_me:10056: \$? = $ac_status" >&5
10057 (exit $ac_status); } &&
10058 { ac_try='test -s conftest.$ac_objext'
10059 { (eval echo "$as_me:10059: \"$ac_try\"") >&5
10060 (eval $ac_try) 2>&5
10061 ac_status=$?
10062 echo "$as_me:10062: \$? = $ac_status" >&5
10063 (exit $ac_status); }; }; then
10064 wine_cv_sys_statfs_has_statfs=yes
10065 else
10066 echo "$as_me: failed program was:" >&5
10067 cat conftest.$ac_ext >&5
10068 wine_cv_sys_statfs_has_statfs=no
10071 rm -f conftest.$ac_objext conftest.$ac_ext
10074 echo "$as_me:10074: result: $wine_cv_sys_statfs_has_statfs" >&5
10075 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
10076 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
10077 then
10079 cat >>confdefs.h <<\EOF
10080 #define STATFS_DEFINED_BY_SYS_STATFS 1
10086 if test "$ac_cv_header_sys_mount_h" = "yes"
10087 then
10088 echo "$as_me:10088: checking whether sys/mount.h defines statfs" >&5
10089 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
10090 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
10091 echo $ECHO_N "(cached) $ECHO_C" >&6
10092 else
10093 cat >conftest.$ac_ext <<_ACEOF
10094 #line 10094 "configure"
10095 #include "confdefs.h"
10097 #include <sys/types.h>
10098 #ifdef HAVE_SYS_PARAM_H
10099 # include <sys/param.h>
10100 #endif
10101 #include <sys/mount.h>
10104 main ()
10107 struct statfs stfs;
10110 return 0;
10112 _ACEOF
10113 rm -f conftest.$ac_objext
10114 if { (eval echo "$as_me:10114: \"$ac_compile\"") >&5
10115 (eval $ac_compile) 2>&5
10116 ac_status=$?
10117 echo "$as_me:10117: \$? = $ac_status" >&5
10118 (exit $ac_status); } &&
10119 { ac_try='test -s conftest.$ac_objext'
10120 { (eval echo "$as_me:10120: \"$ac_try\"") >&5
10121 (eval $ac_try) 2>&5
10122 ac_status=$?
10123 echo "$as_me:10123: \$? = $ac_status" >&5
10124 (exit $ac_status); }; }; then
10125 wine_cv_sys_mount_has_statfs=yes
10126 else
10127 echo "$as_me: failed program was:" >&5
10128 cat conftest.$ac_ext >&5
10129 wine_cv_sys_mount_has_statfs=no
10132 rm -f conftest.$ac_objext conftest.$ac_ext
10135 echo "$as_me:10135: result: $wine_cv_sys_mount_has_statfs" >&5
10136 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
10137 if test "$wine_cv_sys_mount_has_statfs" = "yes"
10138 then
10140 cat >>confdefs.h <<\EOF
10141 #define STATFS_DEFINED_BY_SYS_MOUNT 1
10147 echo "$as_me:10147: checking for f_bfree in struct statfs" >&5
10148 echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6
10149 if test "${ac_cv_c_statfs_f_bfree+set}" = set; then
10150 echo $ECHO_N "(cached) $ECHO_C" >&6
10151 else
10152 cat >conftest.$ac_ext <<_ACEOF
10153 #line 10153 "configure"
10154 #include "confdefs.h"
10155 #include <sys/types.h>
10156 #ifdef HAVE_SYS_PARAM_H
10157 # include <sys/param.h>
10158 #endif
10159 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
10160 # include <sys/mount.h>
10161 #else
10162 # ifdef STATFS_DEFINED_BY_SYS_VFS
10163 # include <sys/vfs.h>
10164 # else
10165 # ifdef STATFS_DEFINED_BY_SYS_STATFS
10166 # include <sys/statfs.h>
10167 # endif
10168 # endif
10169 #endif
10171 main ()
10173 struct statfs s; s.f_bfree = 0
10175 return 0;
10177 _ACEOF
10178 rm -f conftest.$ac_objext
10179 if { (eval echo "$as_me:10179: \"$ac_compile\"") >&5
10180 (eval $ac_compile) 2>&5
10181 ac_status=$?
10182 echo "$as_me:10182: \$? = $ac_status" >&5
10183 (exit $ac_status); } &&
10184 { ac_try='test -s conftest.$ac_objext'
10185 { (eval echo "$as_me:10185: \"$ac_try\"") >&5
10186 (eval $ac_try) 2>&5
10187 ac_status=$?
10188 echo "$as_me:10188: \$? = $ac_status" >&5
10189 (exit $ac_status); }; }; then
10190 ac_cv_c_statfs_f_bfree="yes"
10191 else
10192 echo "$as_me: failed program was:" >&5
10193 cat conftest.$ac_ext >&5
10194 ac_cv_c_statfs_f_bfree="no"
10196 rm -f conftest.$ac_objext conftest.$ac_ext
10198 echo "$as_me:10198: result: $ac_cv_c_statfs_f_bfree" >&5
10199 echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6
10200 if test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then
10202 cat >>confdefs.h <<\EOF
10203 #define STATFS_HAS_BFREE 1
10208 echo "$as_me:10208: checking for f_bavail in struct statfs" >&5
10209 echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6
10210 if test "${ac_cv_c_statfs_f_bavail+set}" = set; then
10211 echo $ECHO_N "(cached) $ECHO_C" >&6
10212 else
10213 cat >conftest.$ac_ext <<_ACEOF
10214 #line 10214 "configure"
10215 #include "confdefs.h"
10216 #include <sys/types.h>
10217 #ifdef HAVE_SYS_PARAM_H
10218 # include <sys/param.h>
10219 #endif
10220 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
10221 # include <sys/mount.h>
10222 #else
10223 # ifdef STATFS_DEFINED_BY_SYS_VFS
10224 # include <sys/vfs.h>
10225 # else
10226 # ifdef STATFS_DEFINED_BY_SYS_STATFS
10227 # include <sys/statfs.h>
10228 # endif
10229 # endif
10230 #endif
10232 main ()
10234 struct statfs s; s.f_bavail = 0
10236 return 0;
10238 _ACEOF
10239 rm -f conftest.$ac_objext
10240 if { (eval echo "$as_me:10240: \"$ac_compile\"") >&5
10241 (eval $ac_compile) 2>&5
10242 ac_status=$?
10243 echo "$as_me:10243: \$? = $ac_status" >&5
10244 (exit $ac_status); } &&
10245 { ac_try='test -s conftest.$ac_objext'
10246 { (eval echo "$as_me:10246: \"$ac_try\"") >&5
10247 (eval $ac_try) 2>&5
10248 ac_status=$?
10249 echo "$as_me:10249: \$? = $ac_status" >&5
10250 (exit $ac_status); }; }; then
10251 ac_cv_c_statfs_f_bavail="yes"
10252 else
10253 echo "$as_me: failed program was:" >&5
10254 cat conftest.$ac_ext >&5
10255 ac_cv_c_statfs_f_bavail="no"
10257 rm -f conftest.$ac_objext conftest.$ac_ext
10259 echo "$as_me:10259: result: $ac_cv_c_statfs_f_bavail" >&5
10260 echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6
10261 if test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then
10263 cat >>confdefs.h <<\EOF
10264 #define STATFS_HAS_BAVAIL 1
10269 echo "$as_me:10269: checking for msg_accrights in struct msghdr" >&5
10270 echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6
10271 if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then
10272 echo $ECHO_N "(cached) $ECHO_C" >&6
10273 else
10274 cat >conftest.$ac_ext <<_ACEOF
10275 #line 10275 "configure"
10276 #include "confdefs.h"
10277 #include <sys/types.h>
10278 #include <sys/socket.h>
10280 main ()
10282 struct msghdr s; s.msg_accrights = 0
10284 return 0;
10286 _ACEOF
10287 rm -f conftest.$ac_objext
10288 if { (eval echo "$as_me:10288: \"$ac_compile\"") >&5
10289 (eval $ac_compile) 2>&5
10290 ac_status=$?
10291 echo "$as_me:10291: \$? = $ac_status" >&5
10292 (exit $ac_status); } &&
10293 { ac_try='test -s conftest.$ac_objext'
10294 { (eval echo "$as_me:10294: \"$ac_try\"") >&5
10295 (eval $ac_try) 2>&5
10296 ac_status=$?
10297 echo "$as_me:10297: \$? = $ac_status" >&5
10298 (exit $ac_status); }; }; then
10299 ac_cv_c_msghdr_msg_accrights="yes"
10300 else
10301 echo "$as_me: failed program was:" >&5
10302 cat conftest.$ac_ext >&5
10303 ac_cv_c_msghdr_msg_accrights="no"
10305 rm -f conftest.$ac_objext conftest.$ac_ext
10307 echo "$as_me:10307: result: $ac_cv_c_msghdr_msg_accrights" >&5
10308 echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6
10309 if test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then
10311 cat >>confdefs.h <<\EOF
10312 #define HAVE_MSGHDR_ACCRIGHTS 1
10317 echo "$as_me:10317: checking for sa_len in struct sockaddr" >&5
10318 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
10319 if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then
10320 echo $ECHO_N "(cached) $ECHO_C" >&6
10321 else
10322 cat >conftest.$ac_ext <<_ACEOF
10323 #line 10323 "configure"
10324 #include "confdefs.h"
10325 #include <sys/types.h>
10326 #include <sys/socket.h>
10328 main ()
10330 struct sockaddr s; s.sa_len = 0
10332 return 0;
10334 _ACEOF
10335 rm -f conftest.$ac_objext
10336 if { (eval echo "$as_me:10336: \"$ac_compile\"") >&5
10337 (eval $ac_compile) 2>&5
10338 ac_status=$?
10339 echo "$as_me:10339: \$? = $ac_status" >&5
10340 (exit $ac_status); } &&
10341 { ac_try='test -s conftest.$ac_objext'
10342 { (eval echo "$as_me:10342: \"$ac_try\"") >&5
10343 (eval $ac_try) 2>&5
10344 ac_status=$?
10345 echo "$as_me:10345: \$? = $ac_status" >&5
10346 (exit $ac_status); }; }; then
10347 ac_cv_c_sockaddr_sa_len="yes"
10348 else
10349 echo "$as_me: failed program was:" >&5
10350 cat conftest.$ac_ext >&5
10351 ac_cv_c_sockaddr_sa_len="no"
10353 rm -f conftest.$ac_objext conftest.$ac_ext
10355 echo "$as_me:10355: result: $ac_cv_c_sockaddr_sa_len" >&5
10356 echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6
10357 if test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then
10359 cat >>confdefs.h <<\EOF
10360 #define HAVE_SOCKADDR_SA_LEN 1
10365 echo "$as_me:10365: checking for sun_len in struct sockaddr_un" >&5
10366 echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6
10367 if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then
10368 echo $ECHO_N "(cached) $ECHO_C" >&6
10369 else
10370 cat >conftest.$ac_ext <<_ACEOF
10371 #line 10371 "configure"
10372 #include "confdefs.h"
10373 #include <sys/types.h>
10374 #include <sys/socket.h>
10375 #include <sys/un.h>
10377 main ()
10379 struct sockaddr_un s; s.sun_len = 0
10381 return 0;
10383 _ACEOF
10384 rm -f conftest.$ac_objext
10385 if { (eval echo "$as_me:10385: \"$ac_compile\"") >&5
10386 (eval $ac_compile) 2>&5
10387 ac_status=$?
10388 echo "$as_me:10388: \$? = $ac_status" >&5
10389 (exit $ac_status); } &&
10390 { ac_try='test -s conftest.$ac_objext'
10391 { (eval echo "$as_me:10391: \"$ac_try\"") >&5
10392 (eval $ac_try) 2>&5
10393 ac_status=$?
10394 echo "$as_me:10394: \$? = $ac_status" >&5
10395 (exit $ac_status); }; }; then
10396 ac_cv_c_sockaddr_un_sun_len="yes"
10397 else
10398 echo "$as_me: failed program was:" >&5
10399 cat conftest.$ac_ext >&5
10400 ac_cv_c_sockaddr_un_sun_len="no"
10402 rm -f conftest.$ac_objext conftest.$ac_ext
10404 echo "$as_me:10404: result: $ac_cv_c_sockaddr_un_sun_len" >&5
10405 echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6
10406 if test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then
10408 cat >>confdefs.h <<\EOF
10409 #define HAVE_SOCKADDR_SUN_LEN 1
10414 case $target_cpu in
10415 *i345678986* )
10416 echo "$as_me:10416: checking whether we need to define __i386__" >&5
10417 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
10418 if test "${ac_cv_cpp_def_i386+set}" = set; then
10419 echo $ECHO_N "(cached) $ECHO_C" >&6
10420 else
10421 cat >conftest.$ac_ext <<_ACEOF
10422 #line 10422 "configure"
10423 #include "confdefs.h"
10424 #ifndef __i386__
10426 #endif
10427 _ACEOF
10428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10429 egrep "yes" >/dev/null 2>&1; then
10430 ac_cv_cpp_def_i386="yes"
10431 else
10432 ac_cv_cpp_def_i386="no"
10434 rm -f conftest*
10437 echo "$as_me:10437: result: $ac_cv_cpp_def_i386" >&5
10438 echo "${ECHO_T}$ac_cv_cpp_def_i386" >&6
10440 esac
10441 if test "$ac_cv_cpp_def_i386" = "yes"
10442 then
10443 CFLAGS="$CFLAGS -D__i386__"
10444 LINTFLAGS="$LINTFLAGS -D__i386__"
10447 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
10449 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
10451 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
10453 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
10455 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
10457 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
10459 ac_config_commands="$ac_config_commands dlls/dinput/joystick"
10461 ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
10463 ac_config_commands="$ac_config_commands dlls/dinput/mouse"
10465 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
10467 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
10469 ac_config_commands="$ac_config_commands dlls/gdi/win16drv"
10471 ac_config_commands="$ac_config_commands dlls/kernel/messages"
10473 ac_config_commands="$ac_config_commands dlls/kernel/tests"
10475 ac_config_commands="$ac_config_commands dlls/oleaut32/tests"
10477 ac_config_commands="$ac_config_commands dlls/user/dde"
10479 ac_config_commands="$ac_config_commands dlls/user/resources"
10481 ac_config_commands="$ac_config_commands dlls/user/tests"
10483 ac_config_commands="$ac_config_commands dlls/wineps/data"
10485 ac_config_commands="$ac_config_commands include/wine"
10487 ac_config_commands="$ac_config_commands programs/regapi/tests"
10489 ac_config_commands="$ac_config_commands programs/winetest/tests"
10491 ac_config_commands="$ac_config_commands include/wine/version.h"
10493 MAKE_RULES=Make.rules
10495 MAKE_DLL_RULES=dlls/Makedll.rules
10497 MAKE_PROG_RULES=programs/Makeprog.rules
10499 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules programs/Makeprog.rules Makefile console/Makefile controls/Makefile debugger/Makefile dlls/Makefile dlls/advapi32/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/comctl32/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dsound/Makefile dlls/gdi/Makefile dlls/glu32/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/kernel/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msg711/Makefile dlls/msdmo/Makefile dlls/msimg32/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt20/Makefile dlls/msvideo/Makefile dlls/netapi32/Makefile dlls/ntdll/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleaut32/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/user/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winspool/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile files/Makefile graphics/Makefile graphics/x11drv/Makefile if1632/Makefile include/Makefile library/Makefile libtest/Makefile loader/Makefile loader/ne/Makefile memory/Makefile misc/Makefile miscemu/Makefile msdos/Makefile objects/Makefile ole/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/notepad/Makefile programs/osversioncheck/Makefile programs/progman/Makefile programs/regapi/Makefile programs/regtest/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineconsole/Makefile programs/winemine/Makefile programs/winetest/Makefile programs/winhelp/Makefile programs/winver/Makefile relay32/Makefile scheduler/Makefile server/Makefile tools/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wrc/Makefile tsx11/Makefile unicode/Makefile win32/Makefile windows/Makefile windows/x11drv/Makefile"
10501 cat >confcache <<\_ACEOF
10502 # This file is a shell script that caches the results of configure
10503 # tests run on this system so they can be shared between configure
10504 # scripts and configure runs, see configure's option --config-cache.
10505 # It is not useful on other systems. If it contains results you don't
10506 # want to keep, you may remove or edit it.
10508 # config.status only pays attention to the cache file if you give it
10509 # the --recheck option to rerun configure.
10511 # `ac_cv_env_foo' variables (set or unset) will be overriden when
10512 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10513 # following values.
10515 _ACEOF
10517 # The following way of writing the cache mishandles newlines in values,
10518 # but we know of no workaround that is simple, portable, and efficient.
10519 # So, don't put newlines in cache variables' values.
10520 # Ultrix sh set writes to stderr and can't be redirected directly,
10521 # and sets the high bit in the cache file unless we assign to the vars.
10523 (set) 2>&1 |
10524 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10525 *ac_space=\ *)
10526 # `set' does not quote correctly, so add quotes (double-quote
10527 # substitution turns \\\\ into \\, and sed turns \\ into \).
10528 sed -n \
10529 "s/'/'\\\\''/g;
10530 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10533 # `set' quotes correctly as required by POSIX, so do not add quotes.
10534 sed -n \
10535 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10537 esac;
10539 sed '
10540 t clear
10541 : clear
10542 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10543 t end
10544 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10545 : end' >>confcache
10546 if cmp -s $cache_file confcache; then :; else
10547 if test -w $cache_file; then
10548 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10549 cat confcache >$cache_file
10550 else
10551 echo "not updating unwritable cache $cache_file"
10554 rm -f confcache
10556 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10557 # Let make expand exec_prefix.
10558 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10560 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10561 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10562 # trailing colons and then remove the whole line if VPATH becomes empty
10563 # (actually we leave an empty line to preserve line numbers).
10564 if test "x$srcdir" = x.; then
10565 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10566 s/:*\$(srcdir):*/:/;
10567 s/:*\${srcdir}:*/:/;
10568 s/:*@srcdir@:*/:/;
10569 s/^\([^=]*=[ ]*\):*/\1/;
10570 s/:*$//;
10571 s/^[^=]*=[ ]*$//;
10575 DEFS=-DHAVE_CONFIG_H
10577 : ${CONFIG_STATUS=./config.status}
10578 ac_clean_files_save=$ac_clean_files
10579 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10580 { echo "$as_me:10580: creating $CONFIG_STATUS" >&5
10581 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10582 cat >$CONFIG_STATUS <<_ACEOF
10583 #! $SHELL
10584 # Generated automatically by configure.
10585 # Run this file to recreate the current configuration.
10586 # Compiler output produced by configure, useful for debugging
10587 # configure, is in config.log if it exists.
10589 debug=false
10590 SHELL=\${CONFIG_SHELL-$SHELL}
10591 ac_cs_invocation="\$0 \$@"
10593 _ACEOF
10595 cat >>$CONFIG_STATUS <<\_ACEOF
10596 # Be Bourne compatible
10597 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10598 emulate sh
10599 NULLCMD=:
10600 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10601 set -o posix
10604 # Name of the executable.
10605 as_me=`echo "$0" |sed 's,.*[\\/],,'`
10607 if expr a : '\(a\)' >/dev/null 2>&1; then
10608 as_expr=expr
10609 else
10610 as_expr=false
10613 rm -f conf$$ conf$$.exe conf$$.file
10614 echo >conf$$.file
10615 if ln -s conf$$.file conf$$ 2>/dev/null; then
10616 # We could just check for DJGPP; but this test a) works b) is more generic
10617 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10618 if test -f conf$$.exe; then
10619 # Don't use ln at all; we don't have any links
10620 as_ln_s='cp -p'
10621 else
10622 as_ln_s='ln -s'
10624 elif ln conf$$.file conf$$ 2>/dev/null; then
10625 as_ln_s=ln
10626 else
10627 as_ln_s='cp -p'
10629 rm -f conf$$ conf$$.exe conf$$.file
10631 as_executable_p="test -f"
10633 # Support unset when possible.
10634 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
10635 as_unset=unset
10636 else
10637 as_unset=false
10640 # NLS nuisances.
10641 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
10642 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
10643 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
10644 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
10645 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
10646 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
10647 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
10648 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
10650 # IFS
10651 # We need space, tab and new line, in precisely that order.
10652 as_nl='
10654 IFS=" $as_nl"
10656 # CDPATH.
10657 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
10659 exec 6>&1
10661 _ACEOF
10663 # Files that config.status was made for.
10664 if test -n "$ac_config_files"; then
10665 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10668 if test -n "$ac_config_headers"; then
10669 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10672 if test -n "$ac_config_links"; then
10673 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10676 if test -n "$ac_config_commands"; then
10677 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10680 cat >>$CONFIG_STATUS <<\EOF
10682 ac_cs_usage="\
10683 \`$as_me' instantiates files from templates according to the
10684 current configuration.
10686 Usage: $0 [OPTIONS] [FILE]...
10688 -h, --help print this help, then exit
10689 -V, --version print version number, then exit
10690 -d, --debug don't remove temporary files
10691 --recheck update $as_me by reconfiguring in the same conditions
10692 --file=FILE[:TEMPLATE]
10693 instantiate the configuration file FILE
10694 --header=FILE[:TEMPLATE]
10695 instantiate the configuration header FILE
10697 Configuration files:
10698 $config_files
10700 Configuration headers:
10701 $config_headers
10703 Configuration commands:
10704 $config_commands
10706 Report bugs to <bug-autoconf@gnu.org>."
10709 cat >>$CONFIG_STATUS <<EOF
10710 ac_cs_version="\\
10711 Wine config.status 20020310
10712 configured by $0, generated by GNU Autoconf 2.52,
10713 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10715 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10716 Free Software Foundation, Inc.
10717 This config.status script is free software; the Free Software Foundation
10718 gives unlimited permission to copy, distribute and modify it."
10719 srcdir=$srcdir
10720 INSTALL="$INSTALL"
10723 cat >>$CONFIG_STATUS <<\EOF
10724 # If no file are specified by the user, then we need to provide default
10725 # value. By we need to know if files were specified by the user.
10726 ac_need_defaults=:
10727 while test $# != 0
10729 case $1 in
10730 --*=*)
10731 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10732 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10733 shift
10734 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
10735 shift
10737 -*);;
10738 *) # This is not an option, so the user has probably given explicit
10739 # arguments.
10740 ac_need_defaults=false;;
10741 esac
10743 case $1 in
10744 # Handling of the options.
10746 cat >>$CONFIG_STATUS <<EOF
10747 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10748 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
10749 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
10751 cat >>$CONFIG_STATUS <<\EOF
10752 --version | --vers* | -V )
10753 echo "$ac_cs_version"; exit 0 ;;
10754 --he | --h)
10755 # Conflict between --help and --header
10756 { { echo "$as_me:10756: error: ambiguous option: $1
10757 Try \`$0 --help' for more information." >&5
10758 echo "$as_me: error: ambiguous option: $1
10759 Try \`$0 --help' for more information." >&2;}
10760 { (exit 1); exit 1; }; };;
10761 --help | --hel | -h )
10762 echo "$ac_cs_usage"; exit 0 ;;
10763 --debug | --d* | -d )
10764 debug=: ;;
10765 --file | --fil | --fi | --f )
10766 shift
10767 CONFIG_FILES="$CONFIG_FILES $1"
10768 ac_need_defaults=false;;
10769 --header | --heade | --head | --hea )
10770 shift
10771 CONFIG_HEADERS="$CONFIG_HEADERS $1"
10772 ac_need_defaults=false;;
10774 # This is an error.
10775 -*) { { echo "$as_me:10775: error: unrecognized option: $1
10776 Try \`$0 --help' for more information." >&5
10777 echo "$as_me: error: unrecognized option: $1
10778 Try \`$0 --help' for more information." >&2;}
10779 { (exit 1); exit 1; }; } ;;
10781 *) ac_config_targets="$ac_config_targets $1" ;;
10783 esac
10784 shift
10785 done
10787 exec 5>>config.log
10788 cat >&5 << _ACEOF
10790 ## ----------------------- ##
10791 ## Running config.status. ##
10792 ## ----------------------- ##
10794 This file was extended by $as_me (Wine 20020310) 2.52, executed with
10795 CONFIG_FILES = $CONFIG_FILES
10796 CONFIG_HEADERS = $CONFIG_HEADERS
10797 CONFIG_LINKS = $CONFIG_LINKS
10798 CONFIG_COMMANDS = $CONFIG_COMMANDS
10799 > $ac_cs_invocation
10800 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10802 _ACEOF
10805 cat >>$CONFIG_STATUS <<EOF
10807 # INIT-COMMANDS section.
10810 wine_version=$PACKAGE_VERSION
10814 cat >>$CONFIG_STATUS <<\EOF
10815 for ac_config_target in $ac_config_targets
10817 case "$ac_config_target" in
10818 # Handling of arguments.
10819 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
10820 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
10821 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
10822 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10823 "console/Makefile" ) CONFIG_FILES="$CONFIG_FILES console/Makefile" ;;
10824 "controls/Makefile" ) CONFIG_FILES="$CONFIG_FILES controls/Makefile" ;;
10825 "debugger/Makefile" ) CONFIG_FILES="$CONFIG_FILES debugger/Makefile" ;;
10826 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
10827 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
10828 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
10829 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
10830 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
10831 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
10832 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
10833 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
10834 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
10835 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
10836 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
10837 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
10838 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
10839 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
10840 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
10841 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
10842 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
10843 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
10844 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
10845 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
10846 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
10847 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
10848 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
10849 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
10850 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
10851 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
10852 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
10853 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
10854 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
10855 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
10856 "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
10857 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
10858 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
10859 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
10860 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
10861 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
10862 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
10863 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
10864 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
10865 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
10866 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
10867 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
10868 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
10869 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
10870 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
10871 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
10872 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
10873 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
10874 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
10875 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
10876 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
10877 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
10878 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
10879 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
10880 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
10881 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
10882 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
10883 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
10884 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
10885 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
10886 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
10887 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
10888 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
10889 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
10890 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
10891 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
10892 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
10893 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
10894 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
10895 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
10896 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
10897 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
10898 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
10899 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
10900 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
10901 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
10902 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
10903 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
10904 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
10905 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
10906 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
10907 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
10908 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
10909 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
10910 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
10911 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
10912 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
10913 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
10914 "files/Makefile" ) CONFIG_FILES="$CONFIG_FILES files/Makefile" ;;
10915 "graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES graphics/Makefile" ;;
10916 "graphics/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES graphics/x11drv/Makefile" ;;
10917 "if1632/Makefile" ) CONFIG_FILES="$CONFIG_FILES if1632/Makefile" ;;
10918 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10919 "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
10920 "libtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES libtest/Makefile" ;;
10921 "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
10922 "loader/ne/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/ne/Makefile" ;;
10923 "memory/Makefile" ) CONFIG_FILES="$CONFIG_FILES memory/Makefile" ;;
10924 "misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
10925 "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
10926 "msdos/Makefile" ) CONFIG_FILES="$CONFIG_FILES msdos/Makefile" ;;
10927 "objects/Makefile" ) CONFIG_FILES="$CONFIG_FILES objects/Makefile" ;;
10928 "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;;
10929 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
10930 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
10931 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
10932 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
10933 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
10934 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
10935 "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
10936 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
10937 "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
10938 "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
10939 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
10940 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
10941 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
10942 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
10943 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
10944 "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
10945 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
10946 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
10947 "relay32/Makefile" ) CONFIG_FILES="$CONFIG_FILES relay32/Makefile" ;;
10948 "scheduler/Makefile" ) CONFIG_FILES="$CONFIG_FILES scheduler/Makefile" ;;
10949 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
10950 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10951 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
10952 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
10953 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
10954 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
10955 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
10956 "tsx11/Makefile" ) CONFIG_FILES="$CONFIG_FILES tsx11/Makefile" ;;
10957 "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;;
10958 "win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
10959 "windows/Makefile" ) CONFIG_FILES="$CONFIG_FILES windows/Makefile" ;;
10960 "windows/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES windows/x11drv/Makefile" ;;
10961 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
10962 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
10963 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
10964 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
10965 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
10966 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
10967 "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
10968 "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
10969 "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
10970 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
10971 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
10972 "dlls/gdi/win16drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/win16drv" ;;
10973 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
10974 "dlls/kernel/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/tests" ;;
10975 "dlls/oleaut32/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/oleaut32/tests" ;;
10976 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
10977 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
10978 "dlls/user/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/tests" ;;
10979 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
10980 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
10981 "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
10982 "programs/winetest/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/winetest/tests" ;;
10983 "include/wine/version.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine/version.h" ;;
10984 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
10985 *) { { echo "$as_me:10985: error: invalid argument: $ac_config_target" >&5
10986 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10987 { (exit 1); exit 1; }; };;
10988 esac
10989 done
10991 # If the user did not use the arguments to specify the items to instantiate,
10992 # then the envvar interface is used. Set only those that are not.
10993 # We use the long form for the default assignment because of an extremely
10994 # bizarre bug on SunOS 4.1.3.
10995 if $ac_need_defaults; then
10996 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10997 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10998 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11001 # Create a temporary directory, and hook for its removal unless debugging.
11002 $debug ||
11004 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11005 trap '{ (exit 1); exit 1; }' 1 2 13 15
11008 # Create a (secure) tmp directory for tmp files.
11009 : ${TMPDIR=/tmp}
11011 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
11012 test -n "$tmp" && test -d "$tmp"
11013 } ||
11015 tmp=$TMPDIR/cs$$-$RANDOM
11016 (umask 077 && mkdir $tmp)
11017 } ||
11019 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
11020 { (exit 1); exit 1; }
11025 cat >>$CONFIG_STATUS <<EOF
11028 # CONFIG_FILES section.
11031 # No need to generate the scripts if there are no CONFIG_FILES.
11032 # This happens for instance when ./config.status config.h
11033 if test -n "\$CONFIG_FILES"; then
11034 # Protect against being on the right side of a sed subst in config.status.
11035 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11036 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11037 s,@SHELL@,$SHELL,;t t
11038 s,@exec_prefix@,$exec_prefix,;t t
11039 s,@prefix@,$prefix,;t t
11040 s,@program_transform_name@,$program_transform_name,;t t
11041 s,@bindir@,$bindir,;t t
11042 s,@sbindir@,$sbindir,;t t
11043 s,@libexecdir@,$libexecdir,;t t
11044 s,@datadir@,$datadir,;t t
11045 s,@sysconfdir@,$sysconfdir,;t t
11046 s,@sharedstatedir@,$sharedstatedir,;t t
11047 s,@localstatedir@,$localstatedir,;t t
11048 s,@libdir@,$libdir,;t t
11049 s,@includedir@,$includedir,;t t
11050 s,@oldincludedir@,$oldincludedir,;t t
11051 s,@infodir@,$infodir,;t t
11052 s,@mandir@,$mandir,;t t
11053 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11054 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11055 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11056 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11057 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11058 s,@build_alias@,$build_alias,;t t
11059 s,@host_alias@,$host_alias,;t t
11060 s,@target_alias@,$target_alias,;t t
11061 s,@ECHO_C@,$ECHO_C,;t t
11062 s,@ECHO_N@,$ECHO_N,;t t
11063 s,@ECHO_T@,$ECHO_T,;t t
11064 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11065 s,@DEFS@,$DEFS,;t t
11066 s,@LIBS@,$LIBS,;t t
11067 s,@OPTIONS@,$OPTIONS,;t t
11068 s,@build@,$build,;t t
11069 s,@build_cpu@,$build_cpu,;t t
11070 s,@build_vendor@,$build_vendor,;t t
11071 s,@build_os@,$build_os,;t t
11072 s,@host@,$host,;t t
11073 s,@host_cpu@,$host_cpu,;t t
11074 s,@host_vendor@,$host_vendor,;t t
11075 s,@host_os@,$host_os,;t t
11076 s,@target@,$target,;t t
11077 s,@target_cpu@,$target_cpu,;t t
11078 s,@target_vendor@,$target_vendor,;t t
11079 s,@target_os@,$target_os,;t t
11080 s,@SET_MAKE@,$SET_MAKE,;t t
11081 s,@CC@,$CC,;t t
11082 s,@CFLAGS@,$CFLAGS,;t t
11083 s,@LDFLAGS@,$LDFLAGS,;t t
11084 s,@CPPFLAGS@,$CPPFLAGS,;t t
11085 s,@ac_ct_CC@,$ac_ct_CC,;t t
11086 s,@EXEEXT@,$EXEEXT,;t t
11087 s,@OBJEXT@,$OBJEXT,;t t
11088 s,@CPP@,$CPP,;t t
11089 s,@X_CFLAGS@,$X_CFLAGS,;t t
11090 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
11091 s,@X_LIBS@,$X_LIBS,;t t
11092 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
11093 s,@YACC@,$YACC,;t t
11094 s,@LEX@,$LEX,;t t
11095 s,@LEXLIB@,$LEXLIB,;t t
11096 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
11097 s,@XYACC@,$XYACC,;t t
11098 s,@XLEX@,$XLEX,;t t
11099 s,@RANLIB@,$RANLIB,;t t
11100 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11101 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11102 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11103 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11104 s,@LN_S@,$LN_S,;t t
11105 s,@C2MAN@,$C2MAN,;t t
11106 s,@LDCONFIG@,$LDCONFIG,;t t
11107 s,@LINT@,$LINT,;t t
11108 s,@LINTFLAGS@,$LINTFLAGS,;t t
11109 s,@LDCOMBINE@,$LDCOMBINE,;t t
11110 s,@UTILLIBS@,$UTILLIBS,;t t
11111 s,@DLLIBS@,$DLLIBS,;t t
11112 s,@JPEGLIB@,$JPEGLIB,;t t
11113 s,@XLIB@,$XLIB,;t t
11114 s,@XFILES@,$XFILES,;t t
11115 s,@OPENGLFILES@,$OPENGLFILES,;t t
11116 s,@GLU32FILES@,$GLU32FILES,;t t
11117 s,@CURSESLIBS@,$CURSESLIBS,;t t
11118 s,@CUPSLIBS@,$CUPSLIBS,;t t
11119 s,@sane_devel@,$sane_devel,;t t
11120 s,@SANELIBS@,$SANELIBS,;t t
11121 s,@SANEINCL@,$SANEINCL,;t t
11122 s,@ft_devel@,$ft_devel,;t t
11123 s,@ft_devel2@,$ft_devel2,;t t
11124 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
11125 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
11126 s,@ARTSLIBS@,$ARTSLIBS,;t t
11127 s,@ARTSINCL@,$ARTSINCL,;t t
11128 s,@DLLWRAP@,$DLLWRAP,;t t
11129 s,@DLLFLAGS@,$DLLFLAGS,;t t
11130 s,@DLLEXT@,$DLLEXT,;t t
11131 s,@LDSHARED@,$LDSHARED,;t t
11132 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
11133 s,@LIBEXT@,$LIBEXT,;t t
11134 s,@LDPATH@,$LDPATH,;t t
11135 s,@ALLOCA@,$ALLOCA,;t t
11136 /@MAKE_RULES@/r $MAKE_RULES
11137 s,@MAKE_RULES@,,;t t
11138 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
11139 s,@MAKE_DLL_RULES@,,;t t
11140 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
11141 s,@MAKE_PROG_RULES@,,;t t
11142 CEOF
11146 cat >>$CONFIG_STATUS <<\EOF
11147 # Split the substitutions into bite-sized pieces for seds with
11148 # small command number limits, like on Digital OSF/1 and HP-UX.
11149 ac_max_sed_lines=48
11150 ac_sed_frag=1 # Number of current file.
11151 ac_beg=1 # First line for current file.
11152 ac_end=$ac_max_sed_lines # Line after last line for current file.
11153 ac_more_lines=:
11154 ac_sed_cmds=
11155 while $ac_more_lines; do
11156 if test $ac_beg -gt 1; then
11157 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11158 else
11159 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11161 if test ! -s $tmp/subs.frag; then
11162 ac_more_lines=false
11163 else
11164 # The purpose of the label and of the branching condition is to
11165 # speed up the sed processing (if there are no `@' at all, there
11166 # is no need to browse any of the substitutions).
11167 # These are the two extra sed commands mentioned above.
11168 (echo ':t
11169 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11170 if test -z "$ac_sed_cmds"; then
11171 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11172 else
11173 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11175 ac_sed_frag=`expr $ac_sed_frag + 1`
11176 ac_beg=$ac_end
11177 ac_end=`expr $ac_end + $ac_max_sed_lines`
11179 done
11180 if test -z "$ac_sed_cmds"; then
11181 ac_sed_cmds=cat
11183 fi # test -n "$CONFIG_FILES"
11186 cat >>$CONFIG_STATUS <<\EOF
11187 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11188 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11189 case $ac_file in
11190 - | *:- | *:-:* ) # input from stdin
11191 cat >$tmp/stdin
11192 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11193 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11194 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11195 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11196 * ) ac_file_in=$ac_file.in ;;
11197 esac
11199 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11200 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11201 X"$ac_file" : 'X\(//\)[^/]' \| \
11202 X"$ac_file" : 'X\(//\)$' \| \
11203 X"$ac_file" : 'X\(/\)' \| \
11204 . : '\(.\)' 2>/dev/null ||
11205 echo X"$ac_file" |
11206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11207 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11208 /^X\(\/\/\)$/{ s//\1/; q; }
11209 /^X\(\/\).*/{ s//\1/; q; }
11210 s/.*/./; q'`
11211 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11212 { case "$ac_dir" in
11213 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
11214 *) as_incr_dir=.;;
11215 esac
11216 as_dummy="$ac_dir"
11217 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
11218 case $as_mkdir_dir in
11219 # Skip DOS drivespec
11220 ?:) as_incr_dir=$as_mkdir_dir ;;
11222 as_incr_dir=$as_incr_dir/$as_mkdir_dir
11223 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
11225 esac
11226 done; }
11228 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
11229 # A "../" for each directory in $ac_dir_suffix.
11230 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
11231 else
11232 ac_dir_suffix= ac_dots=
11235 case $srcdir in
11236 .) ac_srcdir=.
11237 if test -z "$ac_dots"; then
11238 ac_top_srcdir=.
11239 else
11240 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
11241 fi ;;
11242 [\\/]* | ?:[\\/]* )
11243 ac_srcdir=$srcdir$ac_dir_suffix;
11244 ac_top_srcdir=$srcdir ;;
11245 *) # Relative path.
11246 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
11247 ac_top_srcdir=$ac_dots$srcdir ;;
11248 esac
11250 case $INSTALL in
11251 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11252 *) ac_INSTALL=$ac_dots$INSTALL ;;
11253 esac
11255 if test x"$ac_file" != x-; then
11256 { echo "$as_me:11256: creating $ac_file" >&5
11257 echo "$as_me: creating $ac_file" >&6;}
11258 rm -f "$ac_file"
11260 # Let's still pretend it is `configure' which instantiates (i.e., don't
11261 # use $as_me), people would be surprised to read:
11262 # /* config.h. Generated automatically by config.status. */
11263 configure_input="Generated automatically from `echo $ac_file_in |
11264 sed 's,.*/,,'` by configure."
11266 # First look for the input files in the build tree, otherwise in the
11267 # src tree.
11268 ac_file_inputs=`IFS=:
11269 for f in $ac_file_in; do
11270 case $f in
11271 -) echo $tmp/stdin ;;
11272 [\\/$]*)
11273 # Absolute (can't be DOS-style, as IFS=:)
11274 test -f "$f" || { { echo "$as_me:11274: error: cannot find input file: $f" >&5
11275 echo "$as_me: error: cannot find input file: $f" >&2;}
11276 { (exit 1); exit 1; }; }
11277 echo $f;;
11278 *) # Relative
11279 if test -f "$f"; then
11280 # Build tree
11281 echo $f
11282 elif test -f "$srcdir/$f"; then
11283 # Source tree
11284 echo $srcdir/$f
11285 else
11286 # /dev/null tree
11287 { { echo "$as_me:11287: error: cannot find input file: $f" >&5
11288 echo "$as_me: error: cannot find input file: $f" >&2;}
11289 { (exit 1); exit 1; }; }
11290 fi;;
11291 esac
11292 done` || { (exit 1); exit 1; }
11294 cat >>$CONFIG_STATUS <<EOF
11295 sed "$ac_vpsub
11296 $extrasub
11298 cat >>$CONFIG_STATUS <<\EOF
11300 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11301 s,@configure_input@,$configure_input,;t t
11302 s,@srcdir@,$ac_srcdir,;t t
11303 s,@top_srcdir@,$ac_top_srcdir,;t t
11304 s,@INSTALL@,$ac_INSTALL,;t t
11305 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11306 rm -f $tmp/stdin
11307 if test x"$ac_file" != x-; then
11308 mv $tmp/out $ac_file
11309 else
11310 cat $tmp/out
11311 rm -f $tmp/out
11314 done
11316 cat >>$CONFIG_STATUS <<\EOF
11319 # CONFIG_HEADER section.
11322 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11323 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11325 # ac_d sets the value in "#define NAME VALUE" lines.
11326 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11327 ac_dB='[ ].*$,\1#\2'
11328 ac_dC=' '
11329 ac_dD=',;t'
11330 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11331 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11332 ac_uB='$,\1#\2define\3'
11333 ac_uC=' '
11334 ac_uD=',;t'
11336 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11337 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11338 case $ac_file in
11339 - | *:- | *:-:* ) # input from stdin
11340 cat >$tmp/stdin
11341 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11342 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11343 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11344 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11345 * ) ac_file_in=$ac_file.in ;;
11346 esac
11348 test x"$ac_file" != x- && { echo "$as_me:11348: creating $ac_file" >&5
11349 echo "$as_me: creating $ac_file" >&6;}
11351 # First look for the input files in the build tree, otherwise in the
11352 # src tree.
11353 ac_file_inputs=`IFS=:
11354 for f in $ac_file_in; do
11355 case $f in
11356 -) echo $tmp/stdin ;;
11357 [\\/$]*)
11358 # Absolute (can't be DOS-style, as IFS=:)
11359 test -f "$f" || { { echo "$as_me:11359: error: cannot find input file: $f" >&5
11360 echo "$as_me: error: cannot find input file: $f" >&2;}
11361 { (exit 1); exit 1; }; }
11362 echo $f;;
11363 *) # Relative
11364 if test -f "$f"; then
11365 # Build tree
11366 echo $f
11367 elif test -f "$srcdir/$f"; then
11368 # Source tree
11369 echo $srcdir/$f
11370 else
11371 # /dev/null tree
11372 { { echo "$as_me:11372: error: cannot find input file: $f" >&5
11373 echo "$as_me: error: cannot find input file: $f" >&2;}
11374 { (exit 1); exit 1; }; }
11375 fi;;
11376 esac
11377 done` || { (exit 1); exit 1; }
11378 # Remove the trailing spaces.
11379 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11383 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11384 # `conftest.undefs', that substitutes the proper values into
11385 # config.h.in to produce config.h. The first handles `#define'
11386 # templates, and the second `#undef' templates.
11387 # And first: Protect against being on the right side of a sed subst in
11388 # config.status. Protect against being in an unquoted here document
11389 # in config.status.
11390 rm -f conftest.defines conftest.undefs
11391 # Using a here document instead of a string reduces the quoting nightmare.
11392 # Putting comments in sed scripts is not portable.
11394 # `end' is used to avoid that the second main sed command (meant for
11395 # 0-ary CPP macros) applies to n-ary macro definitions.
11396 # See the Autoconf documentation for `clear'.
11397 cat >confdef2sed.sed <<\EOF
11398 s/[\\&,]/\\&/g
11399 s,[\\$`],\\&,g
11400 t clear
11401 : clear
11402 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
11403 t end
11404 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11405 : end
11407 # If some macros were called several times there might be several times
11408 # the same #defines, which is useless. Nevertheless, we may not want to
11409 # sort them, since we want the *last* AC-DEFINE to be honored.
11410 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11411 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11412 rm -f confdef2sed.sed
11414 # This sed command replaces #undef with comments. This is necessary, for
11415 # example, in the case of _POSIX_SOURCE, which is predefined and required
11416 # on some systems where configure will not decide to define it.
11417 cat >>conftest.undefs <<\EOF
11418 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11421 # Break up conftest.defines because some shells have a limit on the size
11422 # of here documents, and old seds have small limits too (100 cmds).
11423 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11424 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11425 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11426 echo ' :' >>$CONFIG_STATUS
11427 rm -f conftest.tail
11428 while grep . conftest.defines >/dev/null
11430 # Write a limited-size here document to $tmp/defines.sed.
11431 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11432 # Speed up: don't consider the non `#define' lines.
11433 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11434 # Work around the forget-to-reset-the-flag bug.
11435 echo 't clr' >>$CONFIG_STATUS
11436 echo ': clr' >>$CONFIG_STATUS
11437 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11438 echo 'CEOF
11439 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11440 rm -f $tmp/in
11441 mv $tmp/out $tmp/in
11442 ' >>$CONFIG_STATUS
11443 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11444 rm -f conftest.defines
11445 mv conftest.tail conftest.defines
11446 done
11447 rm -f conftest.defines
11448 echo ' fi # egrep' >>$CONFIG_STATUS
11449 echo >>$CONFIG_STATUS
11451 # Break up conftest.undefs because some shells have a limit on the size
11452 # of here documents, and old seds have small limits too (100 cmds).
11453 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11454 rm -f conftest.tail
11455 while grep . conftest.undefs >/dev/null
11457 # Write a limited-size here document to $tmp/undefs.sed.
11458 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11459 # Speed up: don't consider the non `#undef'
11460 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11461 # Work around the forget-to-reset-the-flag bug.
11462 echo 't clr' >>$CONFIG_STATUS
11463 echo ': clr' >>$CONFIG_STATUS
11464 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11465 echo 'CEOF
11466 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11467 rm -f $tmp/in
11468 mv $tmp/out $tmp/in
11469 ' >>$CONFIG_STATUS
11470 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11471 rm -f conftest.undefs
11472 mv conftest.tail conftest.undefs
11473 done
11474 rm -f conftest.undefs
11476 cat >>$CONFIG_STATUS <<\EOF
11477 # Let's still pretend it is `configure' which instantiates (i.e., don't
11478 # use $as_me), people would be surprised to read:
11479 # /* config.h. Generated automatically by config.status. */
11480 if test x"$ac_file" = x-; then
11481 echo "/* Generated automatically by configure. */" >$tmp/config.h
11482 else
11483 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
11485 cat $tmp/in >>$tmp/config.h
11486 rm -f $tmp/in
11487 if test x"$ac_file" != x-; then
11488 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
11489 { echo "$as_me:11489: $ac_file is unchanged" >&5
11490 echo "$as_me: $ac_file is unchanged" >&6;}
11491 else
11492 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11493 X"$ac_file" : 'X\(//\)[^/]' \| \
11494 X"$ac_file" : 'X\(//\)$' \| \
11495 X"$ac_file" : 'X\(/\)' \| \
11496 . : '\(.\)' 2>/dev/null ||
11497 echo X"$ac_file" |
11498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11499 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11500 /^X\(\/\/\)$/{ s//\1/; q; }
11501 /^X\(\/\).*/{ s//\1/; q; }
11502 s/.*/./; q'`
11503 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11504 { case "$ac_dir" in
11505 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
11506 *) as_incr_dir=.;;
11507 esac
11508 as_dummy="$ac_dir"
11509 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
11510 case $as_mkdir_dir in
11511 # Skip DOS drivespec
11512 ?:) as_incr_dir=$as_mkdir_dir ;;
11514 as_incr_dir=$as_incr_dir/$as_mkdir_dir
11515 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
11517 esac
11518 done; }
11521 rm -f $ac_file
11522 mv $tmp/config.h $ac_file
11524 else
11525 cat $tmp/config.h
11526 rm -f $tmp/config.h
11528 done
11530 cat >>$CONFIG_STATUS <<\EOF
11533 # CONFIG_COMMANDS section.
11535 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11536 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11537 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11539 case $ac_dest in
11540 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:11540: creating dlls/ddraw/d3ddevice" >&5
11541 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
11542 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:11542: creating dlls/ddraw/dclipper" >&5
11543 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
11544 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:11544: creating dlls/ddraw/ddraw" >&5
11545 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
11546 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:11546: creating dlls/ddraw/direct3d" >&5
11547 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
11548 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:11548: creating dlls/ddraw/dpalette" >&5
11549 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
11550 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:11550: creating dlls/ddraw/dsurface" >&5
11551 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
11552 dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:11552: creating dlls/dinput/joystick" >&5
11553 echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
11554 dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:11554: creating dlls/dinput/keyboard" >&5
11555 echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
11556 dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:11556: creating dlls/dinput/mouse" >&5
11557 echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
11558 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:11558: creating dlls/gdi/enhmfdrv" >&5
11559 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
11560 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:11560: creating dlls/gdi/mfdrv" >&5
11561 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
11562 dlls/gdi/win16drv ) test -d "dlls/gdi/win16drv" || ({ echo "$as_me:11562: creating dlls/gdi/win16drv" >&5
11563 echo "$as_me: creating dlls/gdi/win16drv" >&6;} && mkdir "dlls/gdi/win16drv") ;;
11564 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:11564: creating dlls/kernel/messages" >&5
11565 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
11566 dlls/kernel/tests ) test -d "dlls/kernel/tests" || ({ echo "$as_me:11566: creating dlls/kernel/tests" >&5
11567 echo "$as_me: creating dlls/kernel/tests" >&6;} && mkdir "dlls/kernel/tests") ;;
11568 dlls/oleaut32/tests ) test -d "dlls/oleaut32/tests" || ({ echo "$as_me:11568: creating dlls/oleaut32/tests" >&5
11569 echo "$as_me: creating dlls/oleaut32/tests" >&6;} && mkdir "dlls/oleaut32/tests") ;;
11570 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:11570: creating dlls/user/dde" >&5
11571 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
11572 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:11572: creating dlls/user/resources" >&5
11573 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
11574 dlls/user/tests ) test -d "dlls/user/tests" || ({ echo "$as_me:11574: creating dlls/user/tests" >&5
11575 echo "$as_me: creating dlls/user/tests" >&6;} && mkdir "dlls/user/tests") ;;
11576 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:11576: creating dlls/wineps/data" >&5
11577 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
11578 include/wine ) test -d "include/wine" || ({ echo "$as_me:11578: creating include/wine" >&5
11579 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
11580 programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:11580: creating programs/regapi/tests" >&5
11581 echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
11582 programs/winetest/tests ) test -d "programs/winetest/tests" || ({ echo "$as_me:11582: creating programs/winetest/tests" >&5
11583 echo "$as_me: creating programs/winetest/tests" >&6;} && mkdir "programs/winetest/tests") ;;
11584 include/wine/version.h ) { echo "$as_me:11584: creating include/wine/version.h" >&5
11585 echo "$as_me: creating include/wine/version.h" >&6;}
11586 cat >$tmp/version.h <<CEOF
11587 /* Generated automatically by configure; DO NOT EDIT! */
11588 #define WINE_RELEASE_INFO "Wine version $wine_version"
11589 CEOF
11590 if cmp -s $tmp/version.h include/wine/version.h 2>/dev/null; then
11591 { echo "$as_me:11591: include/wine/version.h is unchanged" >&5
11592 echo "$as_me: include/wine/version.h is unchanged" >&6;}
11593 rm -f $tmp/version.h
11594 else
11595 rm -f include/wine/version.h
11596 mv $tmp/version.h include/wine/version.h
11597 fi ;;
11598 esac
11599 done
11602 cat >>$CONFIG_STATUS <<\EOF
11604 { (exit 0); exit 0; }
11606 chmod +x $CONFIG_STATUS
11607 ac_clean_files=$ac_clean_files_save
11609 # configure is writing to config.log, and then calls config.status.
11610 # config.status does its own redirection, appending to config.log.
11611 # Unfortunately, on DOS this fails, as config.log is still kept open
11612 # by configure, so config.status won't be able to write to it; its
11613 # output is simply discarded. So we exec the FD to /dev/null,
11614 # effectively closing config.log, so it can be properly (re)opened and
11615 # appended to by config.status. When coming back to configure, we
11616 # need to make the FD available again.
11617 if test "$no_create" != yes; then
11618 ac_cs_success=:
11619 exec 5>/dev/null
11620 $SHELL $CONFIG_STATUS || ac_cs_success=false
11621 exec 5>>config.log
11622 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11623 # would make configure fail if this is the last instruction.
11624 $ac_cs_success || { (exit 1); exit 1; }
11627 if test "$have_x" = "no"
11628 then
11629 echo
11630 echo "*** Warning: X development files not found. Wine will be built without"
11631 echo "*** X support, which currently does not work, and would probably not be"
11632 echo "*** what you want anyway. You will need to install devel packages of"
11633 echo "*** Xlib/Xfree86 at the very least."
11636 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
11637 then
11638 echo
11639 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
11640 echo "*** terminal resize support. Consider upgrading ncurses."
11643 if test "$wine_cv_libc_reentrant" = "no"
11644 then
11645 echo
11646 echo "*** Warning: non-reentrant libc detected. Wine will be built without"
11647 echo "*** threading support. Consider upgrading libc to a more recent"
11648 echo "*** reentrant version of libc."
11651 if test "$wine_cv_opengl_version_OK" = "no"
11652 then
11653 echo
11654 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
11655 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
11658 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "x"
11659 then
11660 echo
11661 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
11662 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
11663 echo "*** A fix for glibc 2.1.3 that seems to work is included in this version of Wine,"
11664 echo "*** start configure with '--enable-opengl' to force OpenGL support."
11667 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "xyes"
11668 then
11669 echo
11670 echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you"
11671 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
11672 echo "*** support before reporting bugs."
11675 if test "$wine_cv_warn_cups_h" = "yes"
11676 then
11677 echo
11678 echo "*** Note: You have cups runtime libraries, but no development"
11679 echo "*** libraries. Install the cups-devel package or whichever package"
11680 echo "*** contains cups.h to enable CUPS support in Wine."
11683 if test "$wine_cv_msg_freetype" = "yes"
11684 then
11685 echo
11686 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
11687 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
11688 echo "*** freetype-devel package (or its equivalent on your distribution) to"
11689 echo "*** enable Wine to use TrueType fonts."
11692 echo
11693 echo "Configure finished. Do 'make depend && make' to compile Wine."
11694 echo