Release 20021007.
[wine/multimedia.git] / configure
blob27e4cf9d43a94c5b9cc40972589eb3bdfee448b1
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for Wine 20021007.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
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 if expr a : '\(a\)' >/dev/null 2>&1; then
11 as_expr=expr
12 else
13 as_expr=false
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23 emulate sh
24 NULLCMD=:
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 set -o posix
29 # NLS nuisances.
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 as_unset=unset
33 else
34 as_unset=false
37 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG || test "${LANG+set}" != set; } ||
39 { LANG=C; export LANG; }
40 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42 { LC_ALL=C; export LC_ALL; }
43 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45 { LC_TIME=C; export LC_TIME; }
46 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE=C; export LC_CTYPE; }
49 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE=C; export LANGUAGE; }
52 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE=C; export LC_COLLATE; }
55 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC=C; export LC_NUMERIC; }
58 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES=C; export LC_MESSAGES; }
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
69 echo X/"$0" |
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
73 s/.*/./; q'`
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
87 chmod +x conftest.sh
88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89 PATH_SEPARATOR=';'
90 else
91 PATH_SEPARATOR=:
93 rm -f conftest.sh
97 as_lineno_1=$LINENO
98 as_lineno_2=$LINENO
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
103 # relative or not.
104 case $0 in
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
115 esac
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
119 as_myself=$0
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
130 IFS=$as_save_IFS
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
133 case $as_dir in
135 if ("$as_dir/$as_base" -c '
136 as_lineno_1=$LINENO
137 as_lineno_2=$LINENO
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 CONFIG_SHELL=$as_dir/$as_base
142 export CONFIG_SHELL
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144 fi;;
145 esac
146 done
147 done
149 esac
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
160 sed '
162 s,$,-,
163 : loop
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165 t loop
166 s,-$,,
167 s,^['$as_cr_digits']*\n,,
168 ' >$as_me.lineno &&
169 chmod +x $as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
176 . ./$as_me.lineno
177 # Exit status is that of the last command.
178 exit
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
184 ' ECHO_T=' ' ;;
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
187 esac
189 if expr a : '\(a\)' >/dev/null 2>&1; then
190 as_expr=expr
191 else
192 as_expr=false
195 rm -f conf$$ conf$$.exe conf$$.file
196 echo >conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe; then
201 # Don't use ln at all; we don't have any links
202 as_ln_s='cp -p'
203 else
204 as_ln_s='ln -s'
206 elif ln conf$$.file conf$$ 2>/dev/null; then
207 as_ln_s=ln
208 else
209 as_ln_s='cp -p'
211 rm -f conf$$ conf$$.exe conf$$.file
213 as_executable_p="test -f"
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
222 # IFS
223 # We need space, tab and new line, in precisely that order.
224 as_nl='
226 IFS=" $as_nl"
228 # CDPATH.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
232 # Name of the host.
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
237 exec 6>&1
240 # Initializations.
242 ac_default_prefix=/usr/local
243 cross_compiling=no
244 subdirs=
245 MFLAGS=
246 MAKEFLAGS=
247 SHELL=${CONFIG_SHELL-/bin/sh}
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete. It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
254 # Identity of this package.
255 PACKAGE_NAME='Wine'
256 PACKAGE_TARNAME='wine'
257 PACKAGE_VERSION='20021007'
258 PACKAGE_STRING='Wine 20021007'
259 PACKAGE_BUGREPORT=''
261 ac_unique_file="server/atom.c"
262 # Factoring default headers for most tests.
263 ac_includes_default="\
264 #include <stdio.h>
265 #if HAVE_SYS_TYPES_H
266 # include <sys/types.h>
267 #endif
268 #if HAVE_SYS_STAT_H
269 # include <sys/stat.h>
270 #endif
271 #if STDC_HEADERS
272 # include <stdlib.h>
273 # include <stddef.h>
274 #else
275 # if HAVE_STDLIB_H
276 # include <stdlib.h>
277 # endif
278 #endif
279 #if HAVE_STRING_H
280 # if !STDC_HEADERS && HAVE_MEMORY_H
281 # include <memory.h>
282 # endif
283 # include <string.h>
284 #endif
285 #if HAVE_STRINGS_H
286 # include <strings.h>
287 #endif
288 #if HAVE_INTTYPES_H
289 # include <inttypes.h>
290 #else
291 # if HAVE_STDINT_H
292 # include <stdint.h>
293 # endif
294 #endif
295 #if HAVE_UNISTD_H
296 # include <unistd.h>
297 #endif"
300 # Initialize some variables set by options.
301 ac_init_help=
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
305 cache_file=/dev/null
306 exec_prefix=NONE
307 no_create=
308 no_recursion=
309 prefix=NONE
310 program_prefix=NONE
311 program_suffix=NONE
312 program_transform_name=s,x,x,
313 silent=
314 site=
315 srcdir=
316 verbose=
317 x_includes=NONE
318 x_libraries=NONE
320 # Installation directory options.
321 # These are left unexpanded so users can "make install exec_prefix=/foo"
322 # and all the variables that are supposed to be based on exec_prefix
323 # by default will actually change.
324 # Use braces instead of parens because sh, perl, etc. also accept them.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
338 ac_prev=
339 for ac_option
341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
344 ac_prev=
345 continue
348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
350 # Accept the important Cygnus configure options, so we can diagnose typos.
352 case $ac_option in
354 -bindir | --bindir | --bindi | --bind | --bin | --bi)
355 ac_prev=bindir ;;
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
357 bindir=$ac_optarg ;;
359 -build | --build | --buil | --bui | --bu)
360 ac_prev=build_alias ;;
361 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362 build_alias=$ac_optarg ;;
364 -cache-file | --cache-file | --cache-fil | --cache-fi \
365 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366 ac_prev=cache_file ;;
367 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369 cache_file=$ac_optarg ;;
371 --config-cache | -C)
372 cache_file=config.cache ;;
374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375 ac_prev=datadir ;;
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377 | --da=*)
378 datadir=$ac_optarg ;;
380 -disable-* | --disable-*)
381 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382 # Reject names that are not valid shell variable names.
383 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385 { (exit 1); exit 1; }; }
386 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387 eval "enable_$ac_feature=no" ;;
389 -enable-* | --enable-*)
390 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391 # Reject names that are not valid shell variable names.
392 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394 { (exit 1); exit 1; }; }
395 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
396 case $ac_option in
397 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398 *) ac_optarg=yes ;;
399 esac
400 eval "enable_$ac_feature='$ac_optarg'" ;;
402 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404 | --exec | --exe | --ex)
405 ac_prev=exec_prefix ;;
406 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408 | --exec=* | --exe=* | --ex=*)
409 exec_prefix=$ac_optarg ;;
411 -gas | --gas | --ga | --g)
412 # Obsolete; use --with-gas.
413 with_gas=yes ;;
415 -help | --help | --hel | --he | -h)
416 ac_init_help=long ;;
417 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418 ac_init_help=recursive ;;
419 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420 ac_init_help=short ;;
422 -host | --host | --hos | --ho)
423 ac_prev=host_alias ;;
424 -host=* | --host=* | --hos=* | --ho=*)
425 host_alias=$ac_optarg ;;
427 -includedir | --includedir | --includedi | --included | --include \
428 | --includ | --inclu | --incl | --inc)
429 ac_prev=includedir ;;
430 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431 | --includ=* | --inclu=* | --incl=* | --inc=*)
432 includedir=$ac_optarg ;;
434 -infodir | --infodir | --infodi | --infod | --info | --inf)
435 ac_prev=infodir ;;
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437 infodir=$ac_optarg ;;
439 -libdir | --libdir | --libdi | --libd)
440 ac_prev=libdir ;;
441 -libdir=* | --libdir=* | --libdi=* | --libd=*)
442 libdir=$ac_optarg ;;
444 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445 | --libexe | --libex | --libe)
446 ac_prev=libexecdir ;;
447 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448 | --libexe=* | --libex=* | --libe=*)
449 libexecdir=$ac_optarg ;;
451 -localstatedir | --localstatedir | --localstatedi | --localstated \
452 | --localstate | --localstat | --localsta | --localst \
453 | --locals | --local | --loca | --loc | --lo)
454 ac_prev=localstatedir ;;
455 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458 localstatedir=$ac_optarg ;;
460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461 ac_prev=mandir ;;
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
463 mandir=$ac_optarg ;;
465 -nfp | --nfp | --nf)
466 # Obsolete; use --without-fp.
467 with_fp=no ;;
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470 | --no-cr | --no-c | -n)
471 no_create=yes ;;
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475 no_recursion=yes ;;
477 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479 | --oldin | --oldi | --old | --ol | --o)
480 ac_prev=oldincludedir ;;
481 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484 oldincludedir=$ac_optarg ;;
486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487 ac_prev=prefix ;;
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
489 prefix=$ac_optarg ;;
491 -program-prefix | --program-prefix | --program-prefi | --program-pref \
492 | --program-pre | --program-pr | --program-p)
493 ac_prev=program_prefix ;;
494 -program-prefix=* | --program-prefix=* | --program-prefi=* \
495 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496 program_prefix=$ac_optarg ;;
498 -program-suffix | --program-suffix | --program-suffi | --program-suff \
499 | --program-suf | --program-su | --program-s)
500 ac_prev=program_suffix ;;
501 -program-suffix=* | --program-suffix=* | --program-suffi=* \
502 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503 program_suffix=$ac_optarg ;;
505 -program-transform-name | --program-transform-name \
506 | --program-transform-nam | --program-transform-na \
507 | --program-transform-n | --program-transform- \
508 | --program-transform | --program-transfor \
509 | --program-transfo | --program-transf \
510 | --program-trans | --program-tran \
511 | --progr-tra | --program-tr | --program-t)
512 ac_prev=program_transform_name ;;
513 -program-transform-name=* | --program-transform-name=* \
514 | --program-transform-nam=* | --program-transform-na=* \
515 | --program-transform-n=* | --program-transform-=* \
516 | --program-transform=* | --program-transfor=* \
517 | --program-transfo=* | --program-transf=* \
518 | --program-trans=* | --program-tran=* \
519 | --progr-tra=* | --program-tr=* | --program-t=*)
520 program_transform_name=$ac_optarg ;;
522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523 | -silent | --silent | --silen | --sile | --sil)
524 silent=yes ;;
526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527 ac_prev=sbindir ;;
528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529 | --sbi=* | --sb=*)
530 sbindir=$ac_optarg ;;
532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534 | --sharedst | --shareds | --shared | --share | --shar \
535 | --sha | --sh)
536 ac_prev=sharedstatedir ;;
537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
540 | --sha=* | --sh=*)
541 sharedstatedir=$ac_optarg ;;
543 -site | --site | --sit)
544 ac_prev=site ;;
545 -site=* | --site=* | --sit=*)
546 site=$ac_optarg ;;
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549 ac_prev=srcdir ;;
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
551 srcdir=$ac_optarg ;;
553 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554 | --syscon | --sysco | --sysc | --sys | --sy)
555 ac_prev=sysconfdir ;;
556 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558 sysconfdir=$ac_optarg ;;
560 -target | --target | --targe | --targ | --tar | --ta | --t)
561 ac_prev=target_alias ;;
562 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563 target_alias=$ac_optarg ;;
565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
566 verbose=yes ;;
568 -version | --version | --versio | --versi | --vers | -V)
569 ac_init_version=: ;;
571 -with-* | --with-*)
572 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid package name: $ac_package" >&2
576 { (exit 1); exit 1; }; }
577 ac_package=`echo $ac_package| sed 's/-/_/g'`
578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 *) ac_optarg=yes ;;
581 esac
582 eval "with_$ac_package='$ac_optarg'" ;;
584 -without-* | --without-*)
585 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586 # Reject names that are not valid shell variable names.
587 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588 { echo "$as_me: error: invalid package name: $ac_package" >&2
589 { (exit 1); exit 1; }; }
590 ac_package=`echo $ac_package | sed 's/-/_/g'`
591 eval "with_$ac_package=no" ;;
593 --x)
594 # Obsolete; use --with-x.
595 with_x=yes ;;
597 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598 | --x-incl | --x-inc | --x-in | --x-i)
599 ac_prev=x_includes ;;
600 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602 x_includes=$ac_optarg ;;
604 -x-libraries | --x-libraries | --x-librarie | --x-librari \
605 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606 ac_prev=x_libraries ;;
607 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609 x_libraries=$ac_optarg ;;
611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
616 *=*)
617 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618 # Reject names that are not valid shell variable names.
619 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621 { (exit 1); exit 1; }; }
622 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623 eval "$ac_envvar='$ac_optarg'"
624 export $ac_envvar ;;
627 # FIXME: should be removed in autoconf 3.0.
628 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
634 esac
635 done
637 if test -n "$ac_prev"; then
638 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639 { echo "$as_me: error: missing argument to $ac_option" >&2
640 { (exit 1); exit 1; }; }
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
646 eval ac_val=$`echo $ac_var`
647 case $ac_val in
648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
651 esac
652 done
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
658 eval ac_val=$`echo $ac_var`
659 case $ac_val in
660 [\\/$]* | ?:[\\/]* ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
663 esac
664 done
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
669 build=$build_alias
670 host=$host_alias
671 target=$target_alias
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x; then
675 if test "x$build_alias" = x; then
676 cross_compiling=maybe
677 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678 If a cross compiler is detected then cross compile mode will be used." >&2
679 elif test "x$build_alias" != "x$host_alias"; then
680 cross_compiling=yes
684 ac_tool_prefix=
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
687 test "$silent" = yes && exec 6>/dev/null
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692 ac_srcdir_defaulted=yes
693 # Try the directory containing this script, then its parent.
694 ac_confdir=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696 X"$0" : 'X\(//\)[^/]' \| \
697 X"$0" : 'X\(//\)$' \| \
698 X"$0" : 'X\(/\)' \| \
699 . : '\(.\)' 2>/dev/null ||
700 echo X"$0" |
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
705 s/.*/./; q'`
706 srcdir=$ac_confdir
707 if test ! -r $srcdir/$ac_unique_file; then
708 srcdir=..
710 else
711 ac_srcdir_defaulted=no
713 if test ! -r $srcdir/$ac_unique_file; then
714 if test "$ac_srcdir_defaulted" = yes; then
715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716 { (exit 1); exit 1; }; }
717 else
718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719 { (exit 1); exit 1; }; }
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
736 ac_env_CC_value=$CC
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CPP_set=${CPP+set}
752 ac_env_CPP_value=$CPP
753 ac_cv_env_CPP_set=${CPP+set}
754 ac_cv_env_CPP_value=$CPP
757 # Report the --help message.
759 if test "$ac_init_help" = "long"; then
760 # Omit some internal or obsolete options to make the list less imposing.
761 # This message is too long to be a string in the A/UX 3.1 sh.
762 cat <<_ACEOF
763 \`configure' configures Wine 20021007 to adapt to many kinds of systems.
765 Usage: $0 [OPTION]... [VAR=VALUE]...
767 To assign environment variables (e.g., CC, CFLAGS...), specify them as
768 VAR=VALUE. See below for descriptions of some of the useful variables.
770 Defaults for the options are specified in brackets.
772 Configuration:
773 -h, --help display this help and exit
774 --help=short display options specific to this package
775 --help=recursive display the short help of all the included packages
776 -V, --version display version information and exit
777 -q, --quiet, --silent do not print \`checking...' messages
778 --cache-file=FILE cache test results in FILE [disabled]
779 -C, --config-cache alias for \`--cache-file=config.cache'
780 -n, --no-create do not create output files
781 --srcdir=DIR find the sources in DIR [configure dir or \`..']
783 _ACEOF
785 cat <<_ACEOF
786 Installation directories:
787 --prefix=PREFIX install architecture-independent files in PREFIX
788 [$ac_default_prefix]
789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
790 [PREFIX]
792 By default, \`make install' will install all the files in
793 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
794 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795 for instance \`--prefix=\$HOME'.
797 For better control, use the options below.
799 Fine tuning of the installation directories:
800 --bindir=DIR user executables [EPREFIX/bin]
801 --sbindir=DIR system admin executables [EPREFIX/sbin]
802 --libexecdir=DIR program executables [EPREFIX/libexec]
803 --datadir=DIR read-only architecture-independent data [PREFIX/share]
804 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
805 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
806 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
807 --libdir=DIR object code libraries [EPREFIX/lib]
808 --includedir=DIR C header files [PREFIX/include]
809 --oldincludedir=DIR C header files for non-gcc [/usr/include]
810 --infodir=DIR info documentation [PREFIX/info]
811 --mandir=DIR man documentation [PREFIX/man]
812 _ACEOF
814 cat <<\_ACEOF
816 X features:
817 --x-includes=DIR X include files are in DIR
818 --x-libraries=DIR X library files are in DIR
820 System types:
821 --build=BUILD configure for building on BUILD [guessed]
822 --host=HOST cross-compile to build programs to run on HOST [BUILD]
823 _ACEOF
826 if test -n "$ac_init_help"; then
827 case $ac_init_help in
828 short | recursive ) echo "Configuration of Wine 20021007:";;
829 esac
830 cat <<\_ACEOF
832 Optional Features:
833 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
834 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
835 --disable-win16 do not include Win16 support
836 --disable-debug compile out all debugging messages
837 --disable-trace compile out TRACE messages
838 --enable-opengl force usage of OpenGL even if the latter is
839 thread-safe via pthread
841 Optional Packages:
842 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
843 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
844 --without-curses do not use curses
845 --with-wine-tools=<dir> use Wine tools from directory <dir>
846 --with-x use the X Window System
848 Some influential environment variables:
849 CC C compiler command
850 CFLAGS C compiler flags
851 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
852 nonstandard directory <lib dir>
853 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
854 headers in a nonstandard directory <include dir>
855 CPP C preprocessor
857 Use these variables to override the choices made by `configure' or to help
858 it to find libraries and programs with nonstandard names/locations.
860 _ACEOF
863 if test "$ac_init_help" = "recursive"; then
864 # If there are subdirs, report their specific --help.
865 ac_popdir=`pwd`
866 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
867 test -d $ac_dir || continue
868 ac_builddir=.
870 if test "$ac_dir" != .; then
871 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
872 # A "../" for each directory in $ac_dir_suffix.
873 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
874 else
875 ac_dir_suffix= ac_top_builddir=
878 case $srcdir in
879 .) # No --srcdir option. We are building in place.
880 ac_srcdir=.
881 if test -z "$ac_top_builddir"; then
882 ac_top_srcdir=.
883 else
884 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
885 fi ;;
886 [\\/]* | ?:[\\/]* ) # Absolute path.
887 ac_srcdir=$srcdir$ac_dir_suffix;
888 ac_top_srcdir=$srcdir ;;
889 *) # Relative path.
890 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
891 ac_top_srcdir=$ac_top_builddir$srcdir ;;
892 esac
893 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
894 # absolute.
895 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
896 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
897 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
898 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
900 cd $ac_dir
901 # Check for guested configure; otherwise get Cygnus style configure.
902 if test -f $ac_srcdir/configure.gnu; then
903 echo
904 $SHELL $ac_srcdir/configure.gnu --help=recursive
905 elif test -f $ac_srcdir/configure; then
906 echo
907 $SHELL $ac_srcdir/configure --help=recursive
908 elif test -f $ac_srcdir/configure.ac ||
909 test -f $ac_srcdir/configure.in; then
910 echo
911 $ac_configure --help
912 else
913 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
915 cd $ac_popdir
916 done
919 test -n "$ac_init_help" && exit 0
920 if $ac_init_version; then
921 cat <<\_ACEOF
922 Wine configure 20021007
923 generated by GNU Autoconf 2.53
925 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
926 Free Software Foundation, Inc.
927 This configure script is free software; the Free Software Foundation
928 gives unlimited permission to copy, distribute and modify it.
929 _ACEOF
930 exit 0
932 exec 5>config.log
933 cat >&5 <<_ACEOF
934 This file contains any messages produced by compilers while
935 running configure, to aid debugging if configure makes a mistake.
937 It was created by Wine $as_me 20021007, which was
938 generated by GNU Autoconf 2.53. Invocation command line was
940 $ $0 $@
942 _ACEOF
944 cat <<_ASUNAME
945 ## --------- ##
946 ## Platform. ##
947 ## --------- ##
949 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
950 uname -m = `(uname -m) 2>/dev/null || echo unknown`
951 uname -r = `(uname -r) 2>/dev/null || echo unknown`
952 uname -s = `(uname -s) 2>/dev/null || echo unknown`
953 uname -v = `(uname -v) 2>/dev/null || echo unknown`
955 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
956 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
958 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
959 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
960 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
961 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
962 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
963 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
964 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
966 _ASUNAME
968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
969 for as_dir in $PATH
971 IFS=$as_save_IFS
972 test -z "$as_dir" && as_dir=.
973 echo "PATH: $as_dir"
974 done
976 } >&5
978 cat >&5 <<_ACEOF
981 ## ----------- ##
982 ## Core tests. ##
983 ## ----------- ##
985 _ACEOF
988 # Keep a trace of the command line.
989 # Strip out --no-create and --no-recursion so they do not pile up.
990 # Also quote any args containing shell meta-characters.
991 ac_configure_args=
992 ac_sep=
993 for ac_arg
995 case $ac_arg in
996 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
997 | --no-cr | --no-c | -n ) continue ;;
998 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
999 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1000 continue ;;
1001 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1002 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1003 esac
1004 case " $ac_configure_args " in
1005 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1006 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1007 ac_sep=" " ;;
1008 esac
1009 # Get rid of the leading space.
1010 done
1012 # When interrupted or exit'd, cleanup temporary files, and complete
1013 # config.log. We remove comments because anyway the quotes in there
1014 # would cause problems or look ugly.
1015 # WARNING: Be sure not to use single quotes in there, as some shells,
1016 # such as our DU 5.0 friend, will then `close' the trap.
1017 trap 'exit_status=$?
1018 # Save into config.log some information that might help in debugging.
1020 echo
1021 cat <<\_ASBOX
1022 ## ---------------- ##
1023 ## Cache variables. ##
1024 ## ---------------- ##
1025 _ASBOX
1026 echo
1027 # The following way of writing the cache mishandles newlines in values,
1029 (set) 2>&1 |
1030 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1031 *ac_space=\ *)
1032 sed -n \
1033 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1034 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1037 sed -n \
1038 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1040 esac;
1042 echo
1043 if test -s confdefs.h; then
1044 cat <<\_ASBOX
1045 ## ----------- ##
1046 ## confdefs.h. ##
1047 ## ----------- ##
1048 _ASBOX
1049 echo
1050 sed "/^$/d" confdefs.h
1051 echo
1053 test "$ac_signal" != 0 &&
1054 echo "$as_me: caught signal $ac_signal"
1055 echo "$as_me: exit $exit_status"
1056 } >&5
1057 rm -f core core.* *.core &&
1058 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1059 exit $exit_status
1061 for ac_signal in 1 2 13 15; do
1062 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1063 done
1064 ac_signal=0
1066 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1067 rm -rf conftest* confdefs.h
1068 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1069 echo >confdefs.h
1071 # Predefined preprocessor variables.
1073 cat >>confdefs.h <<_ACEOF
1074 #define PACKAGE_NAME "$PACKAGE_NAME"
1075 _ACEOF
1078 cat >>confdefs.h <<_ACEOF
1079 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1080 _ACEOF
1083 cat >>confdefs.h <<_ACEOF
1084 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1085 _ACEOF
1088 cat >>confdefs.h <<_ACEOF
1089 #define PACKAGE_STRING "$PACKAGE_STRING"
1090 _ACEOF
1093 cat >>confdefs.h <<_ACEOF
1094 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1095 _ACEOF
1098 # Let the site file select an alternate cache file if it wants to.
1099 # Prefer explicitly selected file to automatically selected ones.
1100 if test -z "$CONFIG_SITE"; then
1101 if test "x$prefix" != xNONE; then
1102 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1103 else
1104 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1107 for ac_site_file in $CONFIG_SITE; do
1108 if test -r "$ac_site_file"; then
1109 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1110 echo "$as_me: loading site script $ac_site_file" >&6;}
1111 sed 's/^/| /' "$ac_site_file" >&5
1112 . "$ac_site_file"
1114 done
1116 if test -r "$cache_file"; then
1117 # Some versions of bash will fail to source /dev/null (special
1118 # files actually), so we avoid doing that.
1119 if test -f "$cache_file"; then
1120 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1121 echo "$as_me: loading cache $cache_file" >&6;}
1122 case $cache_file in
1123 [\\/]* | ?:[\\/]* ) . $cache_file;;
1124 *) . ./$cache_file;;
1125 esac
1127 else
1128 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1129 echo "$as_me: creating cache $cache_file" >&6;}
1130 >$cache_file
1133 # Check that the precious variables saved in the cache have kept the same
1134 # value.
1135 ac_cache_corrupted=false
1136 for ac_var in `(set) 2>&1 |
1137 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1138 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1139 eval ac_new_set=\$ac_env_${ac_var}_set
1140 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1141 eval ac_new_val="\$ac_env_${ac_var}_value"
1142 case $ac_old_set,$ac_new_set in
1143 set,)
1144 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1145 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1146 ac_cache_corrupted=: ;;
1147 ,set)
1148 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1149 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1150 ac_cache_corrupted=: ;;
1151 ,);;
1153 if test "x$ac_old_val" != "x$ac_new_val"; then
1154 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1155 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1156 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1157 echo "$as_me: former value: $ac_old_val" >&2;}
1158 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1159 echo "$as_me: current value: $ac_new_val" >&2;}
1160 ac_cache_corrupted=:
1161 fi;;
1162 esac
1163 # Pass precious variables to config.status.
1164 if test "$ac_new_set" = set; then
1165 case $ac_new_val in
1166 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1167 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1168 *) ac_arg=$ac_var=$ac_new_val ;;
1169 esac
1170 case " $ac_configure_args " in
1171 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1172 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1173 esac
1175 done
1176 if $ac_cache_corrupted; then
1177 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1178 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1179 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1180 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1181 { (exit 1); exit 1; }; }
1184 ac_ext=c
1185 ac_cpp='$CPP $CPPFLAGS'
1186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1216 ac_config_headers="$ac_config_headers include/config.h"
1218 ac_aux_dir=
1219 for ac_dir in tools $srcdir/tools; do
1220 if test -f $ac_dir/install-sh; then
1221 ac_aux_dir=$ac_dir
1222 ac_install_sh="$ac_aux_dir/install-sh -c"
1223 break
1224 elif test -f $ac_dir/install.sh; then
1225 ac_aux_dir=$ac_dir
1226 ac_install_sh="$ac_aux_dir/install.sh -c"
1227 break
1228 elif test -f $ac_dir/shtool; then
1229 ac_aux_dir=$ac_dir
1230 ac_install_sh="$ac_aux_dir/shtool install -c"
1231 break
1233 done
1234 if test -z "$ac_aux_dir"; then
1235 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1236 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1237 { (exit 1); exit 1; }; }
1239 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1240 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1241 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1245 LIBEXT="so"
1248 # Check whether --enable-win16 or --disable-win16 was given.
1249 if test "${enable_win16+set}" = set; then
1250 enableval="$enable_win16"
1253 # Check whether --enable-debug or --disable-debug was given.
1254 if test "${enable_debug+set}" = set; then
1255 enableval="$enable_debug"
1258 # Check whether --enable-trace or --disable-trace was given.
1259 if test "${enable_trace+set}" = set; then
1260 enableval="$enable_trace"
1263 # Check whether --enable-opengl or --disable-opengl was given.
1264 if test "${enable_opengl+set}" = set; then
1265 enableval="$enable_opengl"
1269 # Check whether --with-curses or --without-curses was given.
1270 if test "${with_curses+set}" = set; then
1271 withval="$with_curses"
1275 # Check whether --with-wine-tools or --without-wine-tools was given.
1276 if test "${with_wine_tools+set}" = set; then
1277 withval="$with_wine_tools"
1282 WIN16_FILES="\$(WIN16_FILES)"
1284 WIN16_INSTALL="\$(WIN16_INSTALL)"
1286 if test "x$enable_win16" = "xno"
1287 then
1288 WIN16_FILES=""
1289 WIN16_INSTALL=""
1291 if test "x$enable_debug" = "xno"
1292 then
1294 cat >>confdefs.h <<\_ACEOF
1295 #define NO_DEBUG_MSGS 1
1296 _ACEOF
1299 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1300 then
1302 cat >>confdefs.h <<\_ACEOF
1303 #define NO_TRACE_MSGS 1
1304 _ACEOF
1309 # Make sure we can run config.sub.
1310 $ac_config_sub sun4 >/dev/null 2>&1 ||
1311 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1312 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1313 { (exit 1); exit 1; }; }
1315 echo "$as_me:$LINENO: checking build system type" >&5
1316 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1317 if test "${ac_cv_build+set}" = set; then
1318 echo $ECHO_N "(cached) $ECHO_C" >&6
1319 else
1320 ac_cv_build_alias=$build_alias
1321 test -z "$ac_cv_build_alias" &&
1322 ac_cv_build_alias=`$ac_config_guess`
1323 test -z "$ac_cv_build_alias" &&
1324 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1325 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1326 { (exit 1); exit 1; }; }
1327 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1328 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1329 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1330 { (exit 1); exit 1; }; }
1333 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1334 echo "${ECHO_T}$ac_cv_build" >&6
1335 build=$ac_cv_build
1336 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1337 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1338 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1341 echo "$as_me:$LINENO: checking host system type" >&5
1342 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1343 if test "${ac_cv_host+set}" = set; then
1344 echo $ECHO_N "(cached) $ECHO_C" >&6
1345 else
1346 ac_cv_host_alias=$host_alias
1347 test -z "$ac_cv_host_alias" &&
1348 ac_cv_host_alias=$ac_cv_build_alias
1349 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1350 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1351 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1352 { (exit 1); exit 1; }; }
1355 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1356 echo "${ECHO_T}$ac_cv_host" >&6
1357 host=$ac_cv_host
1358 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1359 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1360 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1363 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1364 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1365 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1366 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1367 echo $ECHO_N "(cached) $ECHO_C" >&6
1368 else
1369 cat >conftest.make <<\_ACEOF
1370 all:
1371 @echo 'ac_maketemp="${MAKE}"'
1372 _ACEOF
1373 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1374 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1375 if test -n "$ac_maketemp"; then
1376 eval ac_cv_prog_make_${ac_make}_set=yes
1377 else
1378 eval ac_cv_prog_make_${ac_make}_set=no
1380 rm -f conftest.make
1382 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1383 echo "$as_me:$LINENO: result: yes" >&5
1384 echo "${ECHO_T}yes" >&6
1385 SET_MAKE=
1386 else
1387 echo "$as_me:$LINENO: result: no" >&5
1388 echo "${ECHO_T}no" >&6
1389 SET_MAKE="MAKE=${MAKE-make}"
1392 ac_ext=c
1393 ac_cpp='$CPP $CPPFLAGS'
1394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1397 if test -n "$ac_tool_prefix"; then
1398 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1399 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1400 echo "$as_me:$LINENO: checking for $ac_word" >&5
1401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1402 if test "${ac_cv_prog_CC+set}" = set; then
1403 echo $ECHO_N "(cached) $ECHO_C" >&6
1404 else
1405 if test -n "$CC"; then
1406 ac_cv_prog_CC="$CC" # Let the user override the test.
1407 else
1408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1409 for as_dir in $PATH
1411 IFS=$as_save_IFS
1412 test -z "$as_dir" && as_dir=.
1413 for ac_exec_ext in '' $ac_executable_extensions; do
1414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1415 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1417 break 2
1419 done
1420 done
1424 CC=$ac_cv_prog_CC
1425 if test -n "$CC"; then
1426 echo "$as_me:$LINENO: result: $CC" >&5
1427 echo "${ECHO_T}$CC" >&6
1428 else
1429 echo "$as_me:$LINENO: result: no" >&5
1430 echo "${ECHO_T}no" >&6
1434 if test -z "$ac_cv_prog_CC"; then
1435 ac_ct_CC=$CC
1436 # Extract the first word of "gcc", so it can be a program name with args.
1437 set dummy gcc; ac_word=$2
1438 echo "$as_me:$LINENO: checking for $ac_word" >&5
1439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1440 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1441 echo $ECHO_N "(cached) $ECHO_C" >&6
1442 else
1443 if test -n "$ac_ct_CC"; then
1444 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1445 else
1446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1447 for as_dir in $PATH
1449 IFS=$as_save_IFS
1450 test -z "$as_dir" && as_dir=.
1451 for ac_exec_ext in '' $ac_executable_extensions; do
1452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1453 ac_cv_prog_ac_ct_CC="gcc"
1454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1455 break 2
1457 done
1458 done
1462 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1463 if test -n "$ac_ct_CC"; then
1464 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1465 echo "${ECHO_T}$ac_ct_CC" >&6
1466 else
1467 echo "$as_me:$LINENO: result: no" >&5
1468 echo "${ECHO_T}no" >&6
1471 CC=$ac_ct_CC
1472 else
1473 CC="$ac_cv_prog_CC"
1476 if test -z "$CC"; then
1477 if test -n "$ac_tool_prefix"; then
1478 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1479 set dummy ${ac_tool_prefix}cc; ac_word=$2
1480 echo "$as_me:$LINENO: checking for $ac_word" >&5
1481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482 if test "${ac_cv_prog_CC+set}" = set; then
1483 echo $ECHO_N "(cached) $ECHO_C" >&6
1484 else
1485 if test -n "$CC"; then
1486 ac_cv_prog_CC="$CC" # Let the user override the test.
1487 else
1488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489 for as_dir in $PATH
1491 IFS=$as_save_IFS
1492 test -z "$as_dir" && as_dir=.
1493 for ac_exec_ext in '' $ac_executable_extensions; do
1494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1495 ac_cv_prog_CC="${ac_tool_prefix}cc"
1496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1497 break 2
1499 done
1500 done
1504 CC=$ac_cv_prog_CC
1505 if test -n "$CC"; then
1506 echo "$as_me:$LINENO: result: $CC" >&5
1507 echo "${ECHO_T}$CC" >&6
1508 else
1509 echo "$as_me:$LINENO: result: no" >&5
1510 echo "${ECHO_T}no" >&6
1514 if test -z "$ac_cv_prog_CC"; then
1515 ac_ct_CC=$CC
1516 # Extract the first word of "cc", so it can be a program name with args.
1517 set dummy cc; ac_word=$2
1518 echo "$as_me:$LINENO: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1522 else
1523 if test -n "$ac_ct_CC"; then
1524 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1525 else
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527 for as_dir in $PATH
1529 IFS=$as_save_IFS
1530 test -z "$as_dir" && as_dir=.
1531 for ac_exec_ext in '' $ac_executable_extensions; do
1532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533 ac_cv_prog_ac_ct_CC="cc"
1534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535 break 2
1537 done
1538 done
1542 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1543 if test -n "$ac_ct_CC"; then
1544 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1545 echo "${ECHO_T}$ac_ct_CC" >&6
1546 else
1547 echo "$as_me:$LINENO: result: no" >&5
1548 echo "${ECHO_T}no" >&6
1551 CC=$ac_ct_CC
1552 else
1553 CC="$ac_cv_prog_CC"
1557 if test -z "$CC"; then
1558 # Extract the first word of "cc", so it can be a program name with args.
1559 set dummy cc; ac_word=$2
1560 echo "$as_me:$LINENO: checking for $ac_word" >&5
1561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1562 if test "${ac_cv_prog_CC+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1564 else
1565 if test -n "$CC"; then
1566 ac_cv_prog_CC="$CC" # Let the user override the test.
1567 else
1568 ac_prog_rejected=no
1569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1570 for as_dir in $PATH
1572 IFS=$as_save_IFS
1573 test -z "$as_dir" && as_dir=.
1574 for ac_exec_ext in '' $ac_executable_extensions; do
1575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1576 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1577 ac_prog_rejected=yes
1578 continue
1580 ac_cv_prog_CC="cc"
1581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1582 break 2
1584 done
1585 done
1587 if test $ac_prog_rejected = yes; then
1588 # We found a bogon in the path, so make sure we never use it.
1589 set dummy $ac_cv_prog_CC
1590 shift
1591 if test $# != 0; then
1592 # We chose a different compiler from the bogus one.
1593 # However, it has the same basename, so the bogon will be chosen
1594 # first if we set CC to just the basename; use the full file name.
1595 shift
1596 set dummy "$as_dir/$ac_word" ${1+"$@"}
1597 shift
1598 ac_cv_prog_CC="$@"
1603 CC=$ac_cv_prog_CC
1604 if test -n "$CC"; then
1605 echo "$as_me:$LINENO: result: $CC" >&5
1606 echo "${ECHO_T}$CC" >&6
1607 else
1608 echo "$as_me:$LINENO: result: no" >&5
1609 echo "${ECHO_T}no" >&6
1613 if test -z "$CC"; then
1614 if test -n "$ac_tool_prefix"; then
1615 for ac_prog in cl
1617 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1618 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1619 echo "$as_me:$LINENO: checking for $ac_word" >&5
1620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1621 if test "${ac_cv_prog_CC+set}" = set; then
1622 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 else
1624 if test -n "$CC"; then
1625 ac_cv_prog_CC="$CC" # Let the user override the test.
1626 else
1627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628 for as_dir in $PATH
1630 IFS=$as_save_IFS
1631 test -z "$as_dir" && as_dir=.
1632 for ac_exec_ext in '' $ac_executable_extensions; do
1633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1634 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1636 break 2
1638 done
1639 done
1643 CC=$ac_cv_prog_CC
1644 if test -n "$CC"; then
1645 echo "$as_me:$LINENO: result: $CC" >&5
1646 echo "${ECHO_T}$CC" >&6
1647 else
1648 echo "$as_me:$LINENO: result: no" >&5
1649 echo "${ECHO_T}no" >&6
1652 test -n "$CC" && break
1653 done
1655 if test -z "$CC"; then
1656 ac_ct_CC=$CC
1657 for ac_prog in cl
1659 # Extract the first word of "$ac_prog", so it can be a program name with args.
1660 set dummy $ac_prog; ac_word=$2
1661 echo "$as_me:$LINENO: checking for $ac_word" >&5
1662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1663 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1664 echo $ECHO_N "(cached) $ECHO_C" >&6
1665 else
1666 if test -n "$ac_ct_CC"; then
1667 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1668 else
1669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670 for as_dir in $PATH
1672 IFS=$as_save_IFS
1673 test -z "$as_dir" && as_dir=.
1674 for ac_exec_ext in '' $ac_executable_extensions; do
1675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1676 ac_cv_prog_ac_ct_CC="$ac_prog"
1677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1678 break 2
1680 done
1681 done
1685 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1686 if test -n "$ac_ct_CC"; then
1687 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1688 echo "${ECHO_T}$ac_ct_CC" >&6
1689 else
1690 echo "$as_me:$LINENO: result: no" >&5
1691 echo "${ECHO_T}no" >&6
1694 test -n "$ac_ct_CC" && break
1695 done
1697 CC=$ac_ct_CC
1703 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1704 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1705 { (exit 1); exit 1; }; }
1707 # Provide some information about the compiler.
1708 echo "$as_me:$LINENO:" \
1709 "checking for C compiler version" >&5
1710 ac_compiler=`set X $ac_compile; echo $2`
1711 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1712 (eval $ac_compiler --version </dev/null >&5) 2>&5
1713 ac_status=$?
1714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1715 (exit $ac_status); }
1716 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1717 (eval $ac_compiler -v </dev/null >&5) 2>&5
1718 ac_status=$?
1719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1720 (exit $ac_status); }
1721 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1722 (eval $ac_compiler -V </dev/null >&5) 2>&5
1723 ac_status=$?
1724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1725 (exit $ac_status); }
1727 cat >conftest.$ac_ext <<_ACEOF
1728 #line $LINENO "configure"
1729 #include "confdefs.h"
1731 #ifdef F77_DUMMY_MAIN
1732 # ifdef __cplusplus
1733 extern "C"
1734 # endif
1735 int F77_DUMMY_MAIN() { return 1; }
1736 #endif
1738 main ()
1742 return 0;
1744 _ACEOF
1745 ac_clean_files_save=$ac_clean_files
1746 ac_clean_files="$ac_clean_files a.out a.exe"
1747 # Try to create an executable without -o first, disregard a.out.
1748 # It will help us diagnose broken compilers, and finding out an intuition
1749 # of exeext.
1750 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1751 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1752 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1753 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1754 (eval $ac_link_default) 2>&5
1755 ac_status=$?
1756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757 (exit $ac_status); }; then
1758 # Find the output, starting from the most likely. This scheme is
1759 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1760 # resort.
1762 # Be careful to initialize this variable, since it used to be cached.
1763 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1764 ac_cv_exeext=
1765 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1766 ls a.out conftest 2>/dev/null;
1767 ls a.* conftest.* 2>/dev/null`; do
1768 case $ac_file in
1769 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1770 a.out ) # We found the default executable, but exeext='' is most
1771 # certainly right.
1772 break;;
1773 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1774 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1775 export ac_cv_exeext
1776 break;;
1777 * ) break;;
1778 esac
1779 done
1780 else
1781 echo "$as_me: failed program was:" >&5
1782 cat conftest.$ac_ext >&5
1783 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1784 echo "$as_me: error: C compiler cannot create executables" >&2;}
1785 { (exit 77); exit 77; }; }
1788 ac_exeext=$ac_cv_exeext
1789 echo "$as_me:$LINENO: result: $ac_file" >&5
1790 echo "${ECHO_T}$ac_file" >&6
1792 # Check the compiler produces executables we can run. If not, either
1793 # the compiler is broken, or we cross compile.
1794 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1795 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1796 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1797 # If not cross compiling, check that we can run a simple program.
1798 if test "$cross_compiling" != yes; then
1799 if { ac_try='./$ac_file'
1800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1801 (eval $ac_try) 2>&5
1802 ac_status=$?
1803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1804 (exit $ac_status); }; }; then
1805 cross_compiling=no
1806 else
1807 if test "$cross_compiling" = maybe; then
1808 cross_compiling=yes
1809 else
1810 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1811 If you meant to cross compile, use \`--host'." >&5
1812 echo "$as_me: error: cannot run C compiled programs.
1813 If you meant to cross compile, use \`--host'." >&2;}
1814 { (exit 1); exit 1; }; }
1818 echo "$as_me:$LINENO: result: yes" >&5
1819 echo "${ECHO_T}yes" >&6
1821 rm -f a.out a.exe conftest$ac_cv_exeext
1822 ac_clean_files=$ac_clean_files_save
1823 # Check the compiler produces executables we can run. If not, either
1824 # the compiler is broken, or we cross compile.
1825 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1826 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1827 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1828 echo "${ECHO_T}$cross_compiling" >&6
1830 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1831 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1833 (eval $ac_link) 2>&5
1834 ac_status=$?
1835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1836 (exit $ac_status); }; then
1837 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1838 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1839 # work properly (i.e., refer to `conftest.exe'), while it won't with
1840 # `rm'.
1841 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1842 case $ac_file in
1843 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1844 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1845 export ac_cv_exeext
1846 break;;
1847 * ) break;;
1848 esac
1849 done
1850 else
1851 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1852 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1853 { (exit 1); exit 1; }; }
1856 rm -f conftest$ac_cv_exeext
1857 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1858 echo "${ECHO_T}$ac_cv_exeext" >&6
1860 rm -f conftest.$ac_ext
1861 EXEEXT=$ac_cv_exeext
1862 ac_exeext=$EXEEXT
1863 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1864 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1865 if test "${ac_cv_objext+set}" = set; then
1866 echo $ECHO_N "(cached) $ECHO_C" >&6
1867 else
1868 cat >conftest.$ac_ext <<_ACEOF
1869 #line $LINENO "configure"
1870 #include "confdefs.h"
1872 #ifdef F77_DUMMY_MAIN
1873 # ifdef __cplusplus
1874 extern "C"
1875 # endif
1876 int F77_DUMMY_MAIN() { return 1; }
1877 #endif
1879 main ()
1883 return 0;
1885 _ACEOF
1886 rm -f conftest.o conftest.obj
1887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1888 (eval $ac_compile) 2>&5
1889 ac_status=$?
1890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891 (exit $ac_status); }; then
1892 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1893 case $ac_file in
1894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1895 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1896 break;;
1897 esac
1898 done
1899 else
1900 echo "$as_me: failed program was:" >&5
1901 cat conftest.$ac_ext >&5
1902 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1903 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1904 { (exit 1); exit 1; }; }
1907 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1909 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1910 echo "${ECHO_T}$ac_cv_objext" >&6
1911 OBJEXT=$ac_cv_objext
1912 ac_objext=$OBJEXT
1913 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1914 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1915 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1916 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 else
1918 cat >conftest.$ac_ext <<_ACEOF
1919 #line $LINENO "configure"
1920 #include "confdefs.h"
1922 #ifdef F77_DUMMY_MAIN
1923 # ifdef __cplusplus
1924 extern "C"
1925 # endif
1926 int F77_DUMMY_MAIN() { return 1; }
1927 #endif
1929 main ()
1931 #ifndef __GNUC__
1932 choke me
1933 #endif
1936 return 0;
1938 _ACEOF
1939 rm -f conftest.$ac_objext
1940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1941 (eval $ac_compile) 2>&5
1942 ac_status=$?
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); } &&
1945 { ac_try='test -s conftest.$ac_objext'
1946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1947 (eval $ac_try) 2>&5
1948 ac_status=$?
1949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950 (exit $ac_status); }; }; then
1951 ac_compiler_gnu=yes
1952 else
1953 echo "$as_me: failed program was:" >&5
1954 cat conftest.$ac_ext >&5
1955 ac_compiler_gnu=no
1957 rm -f conftest.$ac_objext conftest.$ac_ext
1958 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1961 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1962 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1963 GCC=`test $ac_compiler_gnu = yes && echo yes`
1964 ac_test_CFLAGS=${CFLAGS+set}
1965 ac_save_CFLAGS=$CFLAGS
1966 CFLAGS="-g"
1967 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1968 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1969 if test "${ac_cv_prog_cc_g+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1971 else
1972 cat >conftest.$ac_ext <<_ACEOF
1973 #line $LINENO "configure"
1974 #include "confdefs.h"
1976 #ifdef F77_DUMMY_MAIN
1977 # ifdef __cplusplus
1978 extern "C"
1979 # endif
1980 int F77_DUMMY_MAIN() { return 1; }
1981 #endif
1983 main ()
1987 return 0;
1989 _ACEOF
1990 rm -f conftest.$ac_objext
1991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1992 (eval $ac_compile) 2>&5
1993 ac_status=$?
1994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995 (exit $ac_status); } &&
1996 { ac_try='test -s conftest.$ac_objext'
1997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1998 (eval $ac_try) 2>&5
1999 ac_status=$?
2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 (exit $ac_status); }; }; then
2002 ac_cv_prog_cc_g=yes
2003 else
2004 echo "$as_me: failed program was:" >&5
2005 cat conftest.$ac_ext >&5
2006 ac_cv_prog_cc_g=no
2008 rm -f conftest.$ac_objext conftest.$ac_ext
2010 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2011 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2012 if test "$ac_test_CFLAGS" = set; then
2013 CFLAGS=$ac_save_CFLAGS
2014 elif test $ac_cv_prog_cc_g = yes; then
2015 if test "$GCC" = yes; then
2016 CFLAGS="-g -O2"
2017 else
2018 CFLAGS="-g"
2020 else
2021 if test "$GCC" = yes; then
2022 CFLAGS="-O2"
2023 else
2024 CFLAGS=
2027 # Some people use a C++ compiler to compile C. Since we use `exit',
2028 # in C++ we need to declare it. In case someone uses the same compiler
2029 # for both compiling C and C++ we need to have the C++ compiler decide
2030 # the declaration of exit, since it's the most demanding environment.
2031 cat >conftest.$ac_ext <<_ACEOF
2032 #ifndef __cplusplus
2033 choke me
2034 #endif
2035 _ACEOF
2036 rm -f conftest.$ac_objext
2037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2038 (eval $ac_compile) 2>&5
2039 ac_status=$?
2040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041 (exit $ac_status); } &&
2042 { ac_try='test -s conftest.$ac_objext'
2043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2044 (eval $ac_try) 2>&5
2045 ac_status=$?
2046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047 (exit $ac_status); }; }; then
2048 for ac_declaration in \
2050 '#include <stdlib.h>' \
2051 'extern "C" void std::exit (int) throw (); using std::exit;' \
2052 'extern "C" void std::exit (int); using std::exit;' \
2053 'extern "C" void exit (int) throw ();' \
2054 'extern "C" void exit (int);' \
2055 'void exit (int);'
2057 cat >conftest.$ac_ext <<_ACEOF
2058 #line $LINENO "configure"
2059 #include "confdefs.h"
2060 #include <stdlib.h>
2061 $ac_declaration
2062 #ifdef F77_DUMMY_MAIN
2063 # ifdef __cplusplus
2064 extern "C"
2065 # endif
2066 int F77_DUMMY_MAIN() { return 1; }
2067 #endif
2069 main ()
2071 exit (42);
2073 return 0;
2075 _ACEOF
2076 rm -f conftest.$ac_objext
2077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2078 (eval $ac_compile) 2>&5
2079 ac_status=$?
2080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081 (exit $ac_status); } &&
2082 { ac_try='test -s conftest.$ac_objext'
2083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2084 (eval $ac_try) 2>&5
2085 ac_status=$?
2086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087 (exit $ac_status); }; }; then
2089 else
2090 echo "$as_me: failed program was:" >&5
2091 cat conftest.$ac_ext >&5
2092 continue
2094 rm -f conftest.$ac_objext conftest.$ac_ext
2095 cat >conftest.$ac_ext <<_ACEOF
2096 #line $LINENO "configure"
2097 #include "confdefs.h"
2098 $ac_declaration
2099 #ifdef F77_DUMMY_MAIN
2100 # ifdef __cplusplus
2101 extern "C"
2102 # endif
2103 int F77_DUMMY_MAIN() { return 1; }
2104 #endif
2106 main ()
2108 exit (42);
2110 return 0;
2112 _ACEOF
2113 rm -f conftest.$ac_objext
2114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2115 (eval $ac_compile) 2>&5
2116 ac_status=$?
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); } &&
2119 { ac_try='test -s conftest.$ac_objext'
2120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2121 (eval $ac_try) 2>&5
2122 ac_status=$?
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }; }; then
2125 break
2126 else
2127 echo "$as_me: failed program was:" >&5
2128 cat conftest.$ac_ext >&5
2130 rm -f conftest.$ac_objext conftest.$ac_ext
2131 done
2132 rm -f conftest*
2133 if test -n "$ac_declaration"; then
2134 echo '#ifdef __cplusplus' >>confdefs.h
2135 echo $ac_declaration >>confdefs.h
2136 echo '#endif' >>confdefs.h
2139 else
2140 echo "$as_me: failed program was:" >&5
2141 cat conftest.$ac_ext >&5
2143 rm -f conftest.$ac_objext conftest.$ac_ext
2144 ac_ext=c
2145 ac_cpp='$CPP $CPPFLAGS'
2146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2150 ac_ext=c
2151 ac_cpp='$CPP $CPPFLAGS'
2152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2155 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2156 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2157 # On Suns, sometimes $CPP names a directory.
2158 if test -n "$CPP" && test -d "$CPP"; then
2159 CPP=
2161 if test -z "$CPP"; then
2162 if test "${ac_cv_prog_CPP+set}" = set; then
2163 echo $ECHO_N "(cached) $ECHO_C" >&6
2164 else
2165 # Double quotes because CPP needs to be expanded
2166 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2168 ac_preproc_ok=false
2169 for ac_c_preproc_warn_flag in '' yes
2171 # Use a header file that comes with gcc, so configuring glibc
2172 # with a fresh cross-compiler works.
2173 # On the NeXT, cc -E runs the code through the compiler's parser,
2174 # not just through cpp. "Syntax error" is here to catch this case.
2175 cat >conftest.$ac_ext <<_ACEOF
2176 #line $LINENO "configure"
2177 #include "confdefs.h"
2178 #include <assert.h>
2179 Syntax error
2180 _ACEOF
2181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2183 ac_status=$?
2184 egrep -v '^ *\+' conftest.er1 >conftest.err
2185 rm -f conftest.er1
2186 cat conftest.err >&5
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); } >/dev/null; then
2189 if test -s conftest.err; then
2190 ac_cpp_err=$ac_c_preproc_warn_flag
2191 else
2192 ac_cpp_err=
2194 else
2195 ac_cpp_err=yes
2197 if test -z "$ac_cpp_err"; then
2199 else
2200 echo "$as_me: failed program was:" >&5
2201 cat conftest.$ac_ext >&5
2202 # Broken: fails on valid input.
2203 continue
2205 rm -f conftest.err conftest.$ac_ext
2207 # OK, works on sane cases. Now check whether non-existent headers
2208 # can be detected and how.
2209 cat >conftest.$ac_ext <<_ACEOF
2210 #line $LINENO "configure"
2211 #include "confdefs.h"
2212 #include <ac_nonexistent.h>
2213 _ACEOF
2214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2216 ac_status=$?
2217 egrep -v '^ *\+' conftest.er1 >conftest.err
2218 rm -f conftest.er1
2219 cat conftest.err >&5
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); } >/dev/null; then
2222 if test -s conftest.err; then
2223 ac_cpp_err=$ac_c_preproc_warn_flag
2224 else
2225 ac_cpp_err=
2227 else
2228 ac_cpp_err=yes
2230 if test -z "$ac_cpp_err"; then
2231 # Broken: success on invalid input.
2232 continue
2233 else
2234 echo "$as_me: failed program was:" >&5
2235 cat conftest.$ac_ext >&5
2236 # Passes both tests.
2237 ac_preproc_ok=:
2238 break
2240 rm -f conftest.err conftest.$ac_ext
2242 done
2243 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2244 rm -f conftest.err conftest.$ac_ext
2245 if $ac_preproc_ok; then
2246 break
2249 done
2250 ac_cv_prog_CPP=$CPP
2253 CPP=$ac_cv_prog_CPP
2254 else
2255 ac_cv_prog_CPP=$CPP
2257 echo "$as_me:$LINENO: result: $CPP" >&5
2258 echo "${ECHO_T}$CPP" >&6
2259 ac_preproc_ok=false
2260 for ac_c_preproc_warn_flag in '' yes
2262 # Use a header file that comes with gcc, so configuring glibc
2263 # with a fresh cross-compiler works.
2264 # On the NeXT, cc -E runs the code through the compiler's parser,
2265 # not just through cpp. "Syntax error" is here to catch this case.
2266 cat >conftest.$ac_ext <<_ACEOF
2267 #line $LINENO "configure"
2268 #include "confdefs.h"
2269 #include <assert.h>
2270 Syntax error
2271 _ACEOF
2272 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2274 ac_status=$?
2275 egrep -v '^ *\+' conftest.er1 >conftest.err
2276 rm -f conftest.er1
2277 cat conftest.err >&5
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); } >/dev/null; then
2280 if test -s conftest.err; then
2281 ac_cpp_err=$ac_c_preproc_warn_flag
2282 else
2283 ac_cpp_err=
2285 else
2286 ac_cpp_err=yes
2288 if test -z "$ac_cpp_err"; then
2290 else
2291 echo "$as_me: failed program was:" >&5
2292 cat conftest.$ac_ext >&5
2293 # Broken: fails on valid input.
2294 continue
2296 rm -f conftest.err conftest.$ac_ext
2298 # OK, works on sane cases. Now check whether non-existent headers
2299 # can be detected and how.
2300 cat >conftest.$ac_ext <<_ACEOF
2301 #line $LINENO "configure"
2302 #include "confdefs.h"
2303 #include <ac_nonexistent.h>
2304 _ACEOF
2305 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2306 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2307 ac_status=$?
2308 egrep -v '^ *\+' conftest.er1 >conftest.err
2309 rm -f conftest.er1
2310 cat conftest.err >&5
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); } >/dev/null; then
2313 if test -s conftest.err; then
2314 ac_cpp_err=$ac_c_preproc_warn_flag
2315 else
2316 ac_cpp_err=
2318 else
2319 ac_cpp_err=yes
2321 if test -z "$ac_cpp_err"; then
2322 # Broken: success on invalid input.
2323 continue
2324 else
2325 echo "$as_me: failed program was:" >&5
2326 cat conftest.$ac_ext >&5
2327 # Passes both tests.
2328 ac_preproc_ok=:
2329 break
2331 rm -f conftest.err conftest.$ac_ext
2333 done
2334 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2335 rm -f conftest.err conftest.$ac_ext
2336 if $ac_preproc_ok; then
2338 else
2339 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2340 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2341 { (exit 1); exit 1; }; }
2344 ac_ext=c
2345 ac_cpp='$CPP $CPPFLAGS'
2346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2351 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2352 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2353 if test "${wine_cv_toolsdir+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 else
2356 if test -z "$with_wine_tools"; then
2357 if test "$cross_compiling" = "yes"; then
2358 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2359 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2360 { (exit 1); exit 1; }; }
2361 else
2362 wine_cv_toolsdir="\$(TOPOBJDIR)"
2364 elif test -d "$with_wine_tools/tools/winebuild"; then
2365 case $with_wine_tools in
2366 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2367 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2368 esac
2369 else
2370 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2371 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2372 { (exit 1); exit 1; }; }
2375 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2376 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2377 TOOLSDIR=$wine_cv_toolsdir
2382 echo "$as_me:$LINENO: checking for X" >&5
2383 echo $ECHO_N "checking for X... $ECHO_C" >&6
2386 # Check whether --with-x or --without-x was given.
2387 if test "${with_x+set}" = set; then
2388 withval="$with_x"
2391 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2392 if test "x$with_x" = xno; then
2393 # The user explicitly disabled X.
2394 have_x=disabled
2395 else
2396 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2397 # Both variables are already set.
2398 have_x=yes
2399 else
2400 if test "${ac_cv_have_x+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
2402 else
2403 # One or both of the vars are not set, and there is no cached value.
2404 ac_x_includes=no ac_x_libraries=no
2405 rm -fr conftest.dir
2406 if mkdir conftest.dir; then
2407 cd conftest.dir
2408 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2409 cat >Imakefile <<'_ACEOF'
2410 acfindx:
2411 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2412 _ACEOF
2413 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2414 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2415 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2416 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2417 for ac_extension in a so sl; do
2418 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2419 test -f $ac_im_libdir/libX11.$ac_extension; then
2420 ac_im_usrlibdir=$ac_im_libdir; break
2422 done
2423 # Screen out bogus values from the imake configuration. They are
2424 # bogus both because they are the default anyway, and because
2425 # using them would break gcc on systems where it needs fixed includes.
2426 case $ac_im_incroot in
2427 /usr/include) ;;
2428 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2429 esac
2430 case $ac_im_usrlibdir in
2431 /usr/lib | /lib) ;;
2432 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2433 esac
2435 cd ..
2436 rm -fr conftest.dir
2439 # Standard set of common directories for X headers.
2440 # Check X11 before X11Rn because it is often a symlink to the current release.
2441 ac_x_header_dirs='
2442 /usr/X11/include
2443 /usr/X11R6/include
2444 /usr/X11R5/include
2445 /usr/X11R4/include
2447 /usr/include/X11
2448 /usr/include/X11R6
2449 /usr/include/X11R5
2450 /usr/include/X11R4
2452 /usr/local/X11/include
2453 /usr/local/X11R6/include
2454 /usr/local/X11R5/include
2455 /usr/local/X11R4/include
2457 /usr/local/include/X11
2458 /usr/local/include/X11R6
2459 /usr/local/include/X11R5
2460 /usr/local/include/X11R4
2462 /usr/X386/include
2463 /usr/x386/include
2464 /usr/XFree86/include/X11
2466 /usr/include
2467 /usr/local/include
2468 /usr/unsupported/include
2469 /usr/athena/include
2470 /usr/local/x11r5/include
2471 /usr/lpp/Xamples/include
2473 /usr/openwin/include
2474 /usr/openwin/share/include'
2476 if test "$ac_x_includes" = no; then
2477 # Guess where to find include files, by looking for Intrinsic.h.
2478 # First, try using that file with no special directory specified.
2479 cat >conftest.$ac_ext <<_ACEOF
2480 #line $LINENO "configure"
2481 #include "confdefs.h"
2482 #include <X11/Intrinsic.h>
2483 _ACEOF
2484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2486 ac_status=$?
2487 egrep -v '^ *\+' conftest.er1 >conftest.err
2488 rm -f conftest.er1
2489 cat conftest.err >&5
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); } >/dev/null; then
2492 if test -s conftest.err; then
2493 ac_cpp_err=$ac_c_preproc_warn_flag
2494 else
2495 ac_cpp_err=
2497 else
2498 ac_cpp_err=yes
2500 if test -z "$ac_cpp_err"; then
2501 # We can compile using X headers with no special include directory.
2502 ac_x_includes=
2503 else
2504 echo "$as_me: failed program was:" >&5
2505 cat conftest.$ac_ext >&5
2506 for ac_dir in $ac_x_header_dirs; do
2507 if test -r "$ac_dir/X11/Intrinsic.h"; then
2508 ac_x_includes=$ac_dir
2509 break
2511 done
2513 rm -f conftest.err conftest.$ac_ext
2514 fi # $ac_x_includes = no
2516 if test "$ac_x_libraries" = no; then
2517 # Check for the libraries.
2518 # See if we find them without any special options.
2519 # Don't add to $LIBS permanently.
2520 ac_save_LIBS=$LIBS
2521 LIBS="-lXt $LIBS"
2522 cat >conftest.$ac_ext <<_ACEOF
2523 #line $LINENO "configure"
2524 #include "confdefs.h"
2525 #include <X11/Intrinsic.h>
2526 #ifdef F77_DUMMY_MAIN
2527 # ifdef __cplusplus
2528 extern "C"
2529 # endif
2530 int F77_DUMMY_MAIN() { return 1; }
2531 #endif
2533 main ()
2535 XtMalloc (0)
2537 return 0;
2539 _ACEOF
2540 rm -f conftest.$ac_objext conftest$ac_exeext
2541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2542 (eval $ac_link) 2>&5
2543 ac_status=$?
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); } &&
2546 { ac_try='test -s conftest$ac_exeext'
2547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2548 (eval $ac_try) 2>&5
2549 ac_status=$?
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); }; }; then
2552 LIBS=$ac_save_LIBS
2553 # We can link X programs with no special library path.
2554 ac_x_libraries=
2555 else
2556 echo "$as_me: failed program was:" >&5
2557 cat conftest.$ac_ext >&5
2558 LIBS=$ac_save_LIBS
2559 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2561 # Don't even attempt the hair of trying to link an X program!
2562 for ac_extension in a so sl; do
2563 if test -r $ac_dir/libXt.$ac_extension; then
2564 ac_x_libraries=$ac_dir
2565 break 2
2567 done
2568 done
2570 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2571 fi # $ac_x_libraries = no
2573 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2574 # Didn't find X anywhere. Cache the known absence of X.
2575 ac_cv_have_x="have_x=no"
2576 else
2577 # Record where we found X for the cache.
2578 ac_cv_have_x="have_x=yes \
2579 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2584 eval "$ac_cv_have_x"
2585 fi # $with_x != no
2587 if test "$have_x" != yes; then
2588 echo "$as_me:$LINENO: result: $have_x" >&5
2589 echo "${ECHO_T}$have_x" >&6
2590 no_x=yes
2591 else
2592 # If each of the values was on the command line, it overrides each guess.
2593 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2594 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2595 # Update the cache value to reflect the command line values.
2596 ac_cv_have_x="have_x=yes \
2597 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2598 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2599 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2602 if test "$no_x" = yes; then
2603 # Not all programs may use this symbol, but it does not hurt to define it.
2605 cat >>confdefs.h <<\_ACEOF
2606 #define X_DISPLAY_MISSING 1
2607 _ACEOF
2609 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2610 else
2611 if test -n "$x_includes"; then
2612 X_CFLAGS="$X_CFLAGS -I$x_includes"
2615 # It would also be nice to do this for all -L options, not just this one.
2616 if test -n "$x_libraries"; then
2617 X_LIBS="$X_LIBS -L$x_libraries"
2618 # For Solaris; some versions of Sun CC require a space after -R and
2619 # others require no space. Words are not sufficient . . . .
2620 case `(uname -sr) 2>/dev/null` in
2621 "SunOS 5"*)
2622 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2623 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2624 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2625 cat >conftest.$ac_ext <<_ACEOF
2626 #line $LINENO "configure"
2627 #include "confdefs.h"
2629 #ifdef F77_DUMMY_MAIN
2630 # ifdef __cplusplus
2631 extern "C"
2632 # endif
2633 int F77_DUMMY_MAIN() { return 1; }
2634 #endif
2636 main ()
2640 return 0;
2642 _ACEOF
2643 rm -f conftest.$ac_objext conftest$ac_exeext
2644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2645 (eval $ac_link) 2>&5
2646 ac_status=$?
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); } &&
2649 { ac_try='test -s conftest$ac_exeext'
2650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651 (eval $ac_try) 2>&5
2652 ac_status=$?
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; }; then
2655 ac_R_nospace=yes
2656 else
2657 echo "$as_me: failed program was:" >&5
2658 cat conftest.$ac_ext >&5
2659 ac_R_nospace=no
2661 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2662 if test $ac_R_nospace = yes; then
2663 echo "$as_me:$LINENO: result: no" >&5
2664 echo "${ECHO_T}no" >&6
2665 X_LIBS="$X_LIBS -R$x_libraries"
2666 else
2667 LIBS="$ac_xsave_LIBS -R $x_libraries"
2668 cat >conftest.$ac_ext <<_ACEOF
2669 #line $LINENO "configure"
2670 #include "confdefs.h"
2672 #ifdef F77_DUMMY_MAIN
2673 # ifdef __cplusplus
2674 extern "C"
2675 # endif
2676 int F77_DUMMY_MAIN() { return 1; }
2677 #endif
2679 main ()
2683 return 0;
2685 _ACEOF
2686 rm -f conftest.$ac_objext conftest$ac_exeext
2687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2688 (eval $ac_link) 2>&5
2689 ac_status=$?
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); } &&
2692 { ac_try='test -s conftest$ac_exeext'
2693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694 (eval $ac_try) 2>&5
2695 ac_status=$?
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }; }; then
2698 ac_R_space=yes
2699 else
2700 echo "$as_me: failed program was:" >&5
2701 cat conftest.$ac_ext >&5
2702 ac_R_space=no
2704 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2705 if test $ac_R_space = yes; then
2706 echo "$as_me:$LINENO: result: yes" >&5
2707 echo "${ECHO_T}yes" >&6
2708 X_LIBS="$X_LIBS -R $x_libraries"
2709 else
2710 echo "$as_me:$LINENO: result: neither works" >&5
2711 echo "${ECHO_T}neither works" >&6
2714 LIBS=$ac_xsave_LIBS
2715 esac
2718 # Check for system-dependent libraries X programs must link with.
2719 # Do this before checking for the system-independent R6 libraries
2720 # (-lICE), since we may need -lsocket or whatever for X linking.
2722 if test "$ISC" = yes; then
2723 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2724 else
2725 # Martyn Johnson says this is needed for Ultrix, if the X
2726 # libraries were built with DECnet support. And Karl Berry says
2727 # the Alpha needs dnet_stub (dnet does not exist).
2728 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2729 cat >conftest.$ac_ext <<_ACEOF
2730 #line $LINENO "configure"
2731 #include "confdefs.h"
2733 /* Override any gcc2 internal prototype to avoid an error. */
2734 #ifdef __cplusplus
2735 extern "C"
2736 #endif
2737 /* We use char because int might match the return type of a gcc2
2738 builtin and then its argument prototype would still apply. */
2739 char XOpenDisplay ();
2740 #ifdef F77_DUMMY_MAIN
2741 # ifdef __cplusplus
2742 extern "C"
2743 # endif
2744 int F77_DUMMY_MAIN() { return 1; }
2745 #endif
2747 main ()
2749 XOpenDisplay ();
2751 return 0;
2753 _ACEOF
2754 rm -f conftest.$ac_objext conftest$ac_exeext
2755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2756 (eval $ac_link) 2>&5
2757 ac_status=$?
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); } &&
2760 { ac_try='test -s conftest$ac_exeext'
2761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762 (eval $ac_try) 2>&5
2763 ac_status=$?
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; }; then
2767 else
2768 echo "$as_me: failed program was:" >&5
2769 cat conftest.$ac_ext >&5
2770 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
2771 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2772 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2773 echo $ECHO_N "(cached) $ECHO_C" >&6
2774 else
2775 ac_check_lib_save_LIBS=$LIBS
2776 LIBS="-ldnet $LIBS"
2777 cat >conftest.$ac_ext <<_ACEOF
2778 #line $LINENO "configure"
2779 #include "confdefs.h"
2781 /* Override any gcc2 internal prototype to avoid an error. */
2782 #ifdef __cplusplus
2783 extern "C"
2784 #endif
2785 /* We use char because int might match the return type of a gcc2
2786 builtin and then its argument prototype would still apply. */
2787 char dnet_ntoa ();
2788 #ifdef F77_DUMMY_MAIN
2789 # ifdef __cplusplus
2790 extern "C"
2791 # endif
2792 int F77_DUMMY_MAIN() { return 1; }
2793 #endif
2795 main ()
2797 dnet_ntoa ();
2799 return 0;
2801 _ACEOF
2802 rm -f conftest.$ac_objext conftest$ac_exeext
2803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2804 (eval $ac_link) 2>&5
2805 ac_status=$?
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); } &&
2808 { ac_try='test -s conftest$ac_exeext'
2809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2810 (eval $ac_try) 2>&5
2811 ac_status=$?
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }; }; then
2814 ac_cv_lib_dnet_dnet_ntoa=yes
2815 else
2816 echo "$as_me: failed program was:" >&5
2817 cat conftest.$ac_ext >&5
2818 ac_cv_lib_dnet_dnet_ntoa=no
2820 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2821 LIBS=$ac_check_lib_save_LIBS
2823 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
2824 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
2825 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
2826 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2829 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2830 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
2831 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
2832 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
2833 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 else
2835 ac_check_lib_save_LIBS=$LIBS
2836 LIBS="-ldnet_stub $LIBS"
2837 cat >conftest.$ac_ext <<_ACEOF
2838 #line $LINENO "configure"
2839 #include "confdefs.h"
2841 /* Override any gcc2 internal prototype to avoid an error. */
2842 #ifdef __cplusplus
2843 extern "C"
2844 #endif
2845 /* We use char because int might match the return type of a gcc2
2846 builtin and then its argument prototype would still apply. */
2847 char dnet_ntoa ();
2848 #ifdef F77_DUMMY_MAIN
2849 # ifdef __cplusplus
2850 extern "C"
2851 # endif
2852 int F77_DUMMY_MAIN() { return 1; }
2853 #endif
2855 main ()
2857 dnet_ntoa ();
2859 return 0;
2861 _ACEOF
2862 rm -f conftest.$ac_objext conftest$ac_exeext
2863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2864 (eval $ac_link) 2>&5
2865 ac_status=$?
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); } &&
2868 { ac_try='test -s conftest$ac_exeext'
2869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870 (eval $ac_try) 2>&5
2871 ac_status=$?
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; }; then
2874 ac_cv_lib_dnet_stub_dnet_ntoa=yes
2875 else
2876 echo "$as_me: failed program was:" >&5
2877 cat conftest.$ac_ext >&5
2878 ac_cv_lib_dnet_stub_dnet_ntoa=no
2880 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2881 LIBS=$ac_check_lib_save_LIBS
2883 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
2884 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
2885 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
2886 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2892 LIBS="$ac_xsave_LIBS"
2894 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2895 # to get the SysV transport functions.
2896 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
2897 # needs -lnsl.
2898 # The nsl library prevents programs from opening the X display
2899 # on Irix 5.2, according to T.E. Dickey.
2900 # The functions gethostbyname, getservbyname, and inet_addr are
2901 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
2902 echo "$as_me:$LINENO: checking for gethostbyname" >&5
2903 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2904 if test "${ac_cv_func_gethostbyname+set}" = set; then
2905 echo $ECHO_N "(cached) $ECHO_C" >&6
2906 else
2907 cat >conftest.$ac_ext <<_ACEOF
2908 #line $LINENO "configure"
2909 #include "confdefs.h"
2910 /* System header to define __stub macros and hopefully few prototypes,
2911 which can conflict with char gethostbyname (); below. */
2912 #include <assert.h>
2913 /* Override any gcc2 internal prototype to avoid an error. */
2914 #ifdef __cplusplus
2915 extern "C"
2916 #endif
2917 /* We use char because int might match the return type of a gcc2
2918 builtin and then its argument prototype would still apply. */
2919 char gethostbyname ();
2920 char (*f) ();
2922 #ifdef F77_DUMMY_MAIN
2923 # ifdef __cplusplus
2924 extern "C"
2925 # endif
2926 int F77_DUMMY_MAIN() { return 1; }
2927 #endif
2929 main ()
2931 /* The GNU C library defines this for functions which it implements
2932 to always fail with ENOSYS. Some functions are actually named
2933 something starting with __ and the normal name is an alias. */
2934 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2935 choke me
2936 #else
2937 f = gethostbyname;
2938 #endif
2941 return 0;
2943 _ACEOF
2944 rm -f conftest.$ac_objext conftest$ac_exeext
2945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2946 (eval $ac_link) 2>&5
2947 ac_status=$?
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); } &&
2950 { ac_try='test -s conftest$ac_exeext'
2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952 (eval $ac_try) 2>&5
2953 ac_status=$?
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; }; then
2956 ac_cv_func_gethostbyname=yes
2957 else
2958 echo "$as_me: failed program was:" >&5
2959 cat conftest.$ac_ext >&5
2960 ac_cv_func_gethostbyname=no
2962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2964 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
2965 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
2967 if test $ac_cv_func_gethostbyname = no; then
2968 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
2969 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2970 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2971 echo $ECHO_N "(cached) $ECHO_C" >&6
2972 else
2973 ac_check_lib_save_LIBS=$LIBS
2974 LIBS="-lnsl $LIBS"
2975 cat >conftest.$ac_ext <<_ACEOF
2976 #line $LINENO "configure"
2977 #include "confdefs.h"
2979 /* Override any gcc2 internal prototype to avoid an error. */
2980 #ifdef __cplusplus
2981 extern "C"
2982 #endif
2983 /* We use char because int might match the return type of a gcc2
2984 builtin and then its argument prototype would still apply. */
2985 char gethostbyname ();
2986 #ifdef F77_DUMMY_MAIN
2987 # ifdef __cplusplus
2988 extern "C"
2989 # endif
2990 int F77_DUMMY_MAIN() { return 1; }
2991 #endif
2993 main ()
2995 gethostbyname ();
2997 return 0;
2999 _ACEOF
3000 rm -f conftest.$ac_objext conftest$ac_exeext
3001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3002 (eval $ac_link) 2>&5
3003 ac_status=$?
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); } &&
3006 { ac_try='test -s conftest$ac_exeext'
3007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3008 (eval $ac_try) 2>&5
3009 ac_status=$?
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }; }; then
3012 ac_cv_lib_nsl_gethostbyname=yes
3013 else
3014 echo "$as_me: failed program was:" >&5
3015 cat conftest.$ac_ext >&5
3016 ac_cv_lib_nsl_gethostbyname=no
3018 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3019 LIBS=$ac_check_lib_save_LIBS
3021 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3022 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3023 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3024 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3027 if test $ac_cv_lib_nsl_gethostbyname = no; then
3028 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3029 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3030 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3031 echo $ECHO_N "(cached) $ECHO_C" >&6
3032 else
3033 ac_check_lib_save_LIBS=$LIBS
3034 LIBS="-lbsd $LIBS"
3035 cat >conftest.$ac_ext <<_ACEOF
3036 #line $LINENO "configure"
3037 #include "confdefs.h"
3039 /* Override any gcc2 internal prototype to avoid an error. */
3040 #ifdef __cplusplus
3041 extern "C"
3042 #endif
3043 /* We use char because int might match the return type of a gcc2
3044 builtin and then its argument prototype would still apply. */
3045 char gethostbyname ();
3046 #ifdef F77_DUMMY_MAIN
3047 # ifdef __cplusplus
3048 extern "C"
3049 # endif
3050 int F77_DUMMY_MAIN() { return 1; }
3051 #endif
3053 main ()
3055 gethostbyname ();
3057 return 0;
3059 _ACEOF
3060 rm -f conftest.$ac_objext conftest$ac_exeext
3061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3062 (eval $ac_link) 2>&5
3063 ac_status=$?
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); } &&
3066 { ac_try='test -s conftest$ac_exeext'
3067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3068 (eval $ac_try) 2>&5
3069 ac_status=$?
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; }; then
3072 ac_cv_lib_bsd_gethostbyname=yes
3073 else
3074 echo "$as_me: failed program was:" >&5
3075 cat conftest.$ac_ext >&5
3076 ac_cv_lib_bsd_gethostbyname=no
3078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3079 LIBS=$ac_check_lib_save_LIBS
3081 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3082 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3083 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3084 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3090 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3091 # socket/setsockopt and other routines are undefined under SCO ODT
3092 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3093 # on later versions), says Simon Leinen: it contains gethostby*
3094 # variants that don't use the nameserver (or something). -lsocket
3095 # must be given before -lnsl if both are needed. We assume that
3096 # if connect needs -lnsl, so does gethostbyname.
3097 echo "$as_me:$LINENO: checking for connect" >&5
3098 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3099 if test "${ac_cv_func_connect+set}" = set; then
3100 echo $ECHO_N "(cached) $ECHO_C" >&6
3101 else
3102 cat >conftest.$ac_ext <<_ACEOF
3103 #line $LINENO "configure"
3104 #include "confdefs.h"
3105 /* System header to define __stub macros and hopefully few prototypes,
3106 which can conflict with char connect (); below. */
3107 #include <assert.h>
3108 /* Override any gcc2 internal prototype to avoid an error. */
3109 #ifdef __cplusplus
3110 extern "C"
3111 #endif
3112 /* We use char because int might match the return type of a gcc2
3113 builtin and then its argument prototype would still apply. */
3114 char connect ();
3115 char (*f) ();
3117 #ifdef F77_DUMMY_MAIN
3118 # ifdef __cplusplus
3119 extern "C"
3120 # endif
3121 int F77_DUMMY_MAIN() { return 1; }
3122 #endif
3124 main ()
3126 /* The GNU C library defines this for functions which it implements
3127 to always fail with ENOSYS. Some functions are actually named
3128 something starting with __ and the normal name is an alias. */
3129 #if defined (__stub_connect) || defined (__stub___connect)
3130 choke me
3131 #else
3132 f = connect;
3133 #endif
3136 return 0;
3138 _ACEOF
3139 rm -f conftest.$ac_objext conftest$ac_exeext
3140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3141 (eval $ac_link) 2>&5
3142 ac_status=$?
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } &&
3145 { ac_try='test -s conftest$ac_exeext'
3146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3147 (eval $ac_try) 2>&5
3148 ac_status=$?
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; }; then
3151 ac_cv_func_connect=yes
3152 else
3153 echo "$as_me: failed program was:" >&5
3154 cat conftest.$ac_ext >&5
3155 ac_cv_func_connect=no
3157 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3159 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3160 echo "${ECHO_T}$ac_cv_func_connect" >&6
3162 if test $ac_cv_func_connect = no; then
3163 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3164 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3165 if test "${ac_cv_lib_socket_connect+set}" = set; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
3167 else
3168 ac_check_lib_save_LIBS=$LIBS
3169 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3170 cat >conftest.$ac_ext <<_ACEOF
3171 #line $LINENO "configure"
3172 #include "confdefs.h"
3174 /* Override any gcc2 internal prototype to avoid an error. */
3175 #ifdef __cplusplus
3176 extern "C"
3177 #endif
3178 /* We use char because int might match the return type of a gcc2
3179 builtin and then its argument prototype would still apply. */
3180 char connect ();
3181 #ifdef F77_DUMMY_MAIN
3182 # ifdef __cplusplus
3183 extern "C"
3184 # endif
3185 int F77_DUMMY_MAIN() { return 1; }
3186 #endif
3188 main ()
3190 connect ();
3192 return 0;
3194 _ACEOF
3195 rm -f conftest.$ac_objext conftest$ac_exeext
3196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3197 (eval $ac_link) 2>&5
3198 ac_status=$?
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); } &&
3201 { ac_try='test -s conftest$ac_exeext'
3202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3203 (eval $ac_try) 2>&5
3204 ac_status=$?
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); }; }; then
3207 ac_cv_lib_socket_connect=yes
3208 else
3209 echo "$as_me: failed program was:" >&5
3210 cat conftest.$ac_ext >&5
3211 ac_cv_lib_socket_connect=no
3213 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3214 LIBS=$ac_check_lib_save_LIBS
3216 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3217 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3218 if test $ac_cv_lib_socket_connect = yes; then
3219 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3224 # Guillermo Gomez says -lposix is necessary on A/UX.
3225 echo "$as_me:$LINENO: checking for remove" >&5
3226 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3227 if test "${ac_cv_func_remove+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3229 else
3230 cat >conftest.$ac_ext <<_ACEOF
3231 #line $LINENO "configure"
3232 #include "confdefs.h"
3233 /* System header to define __stub macros and hopefully few prototypes,
3234 which can conflict with char remove (); below. */
3235 #include <assert.h>
3236 /* Override any gcc2 internal prototype to avoid an error. */
3237 #ifdef __cplusplus
3238 extern "C"
3239 #endif
3240 /* We use char because int might match the return type of a gcc2
3241 builtin and then its argument prototype would still apply. */
3242 char remove ();
3243 char (*f) ();
3245 #ifdef F77_DUMMY_MAIN
3246 # ifdef __cplusplus
3247 extern "C"
3248 # endif
3249 int F77_DUMMY_MAIN() { return 1; }
3250 #endif
3252 main ()
3254 /* The GNU C library defines this for functions which it implements
3255 to always fail with ENOSYS. Some functions are actually named
3256 something starting with __ and the normal name is an alias. */
3257 #if defined (__stub_remove) || defined (__stub___remove)
3258 choke me
3259 #else
3260 f = remove;
3261 #endif
3264 return 0;
3266 _ACEOF
3267 rm -f conftest.$ac_objext conftest$ac_exeext
3268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3269 (eval $ac_link) 2>&5
3270 ac_status=$?
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } &&
3273 { ac_try='test -s conftest$ac_exeext'
3274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3275 (eval $ac_try) 2>&5
3276 ac_status=$?
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; }; then
3279 ac_cv_func_remove=yes
3280 else
3281 echo "$as_me: failed program was:" >&5
3282 cat conftest.$ac_ext >&5
3283 ac_cv_func_remove=no
3285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3287 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3288 echo "${ECHO_T}$ac_cv_func_remove" >&6
3290 if test $ac_cv_func_remove = no; then
3291 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3292 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3293 if test "${ac_cv_lib_posix_remove+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3295 else
3296 ac_check_lib_save_LIBS=$LIBS
3297 LIBS="-lposix $LIBS"
3298 cat >conftest.$ac_ext <<_ACEOF
3299 #line $LINENO "configure"
3300 #include "confdefs.h"
3302 /* Override any gcc2 internal prototype to avoid an error. */
3303 #ifdef __cplusplus
3304 extern "C"
3305 #endif
3306 /* We use char because int might match the return type of a gcc2
3307 builtin and then its argument prototype would still apply. */
3308 char remove ();
3309 #ifdef F77_DUMMY_MAIN
3310 # ifdef __cplusplus
3311 extern "C"
3312 # endif
3313 int F77_DUMMY_MAIN() { return 1; }
3314 #endif
3316 main ()
3318 remove ();
3320 return 0;
3322 _ACEOF
3323 rm -f conftest.$ac_objext conftest$ac_exeext
3324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3325 (eval $ac_link) 2>&5
3326 ac_status=$?
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); } &&
3329 { ac_try='test -s conftest$ac_exeext'
3330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3331 (eval $ac_try) 2>&5
3332 ac_status=$?
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); }; }; then
3335 ac_cv_lib_posix_remove=yes
3336 else
3337 echo "$as_me: failed program was:" >&5
3338 cat conftest.$ac_ext >&5
3339 ac_cv_lib_posix_remove=no
3341 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3342 LIBS=$ac_check_lib_save_LIBS
3344 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3345 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3346 if test $ac_cv_lib_posix_remove = yes; then
3347 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3352 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3353 echo "$as_me:$LINENO: checking for shmat" >&5
3354 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3355 if test "${ac_cv_func_shmat+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 else
3358 cat >conftest.$ac_ext <<_ACEOF
3359 #line $LINENO "configure"
3360 #include "confdefs.h"
3361 /* System header to define __stub macros and hopefully few prototypes,
3362 which can conflict with char shmat (); below. */
3363 #include <assert.h>
3364 /* Override any gcc2 internal prototype to avoid an error. */
3365 #ifdef __cplusplus
3366 extern "C"
3367 #endif
3368 /* We use char because int might match the return type of a gcc2
3369 builtin and then its argument prototype would still apply. */
3370 char shmat ();
3371 char (*f) ();
3373 #ifdef F77_DUMMY_MAIN
3374 # ifdef __cplusplus
3375 extern "C"
3376 # endif
3377 int F77_DUMMY_MAIN() { return 1; }
3378 #endif
3380 main ()
3382 /* The GNU C library defines this for functions which it implements
3383 to always fail with ENOSYS. Some functions are actually named
3384 something starting with __ and the normal name is an alias. */
3385 #if defined (__stub_shmat) || defined (__stub___shmat)
3386 choke me
3387 #else
3388 f = shmat;
3389 #endif
3392 return 0;
3394 _ACEOF
3395 rm -f conftest.$ac_objext conftest$ac_exeext
3396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3397 (eval $ac_link) 2>&5
3398 ac_status=$?
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); } &&
3401 { ac_try='test -s conftest$ac_exeext'
3402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3403 (eval $ac_try) 2>&5
3404 ac_status=$?
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); }; }; then
3407 ac_cv_func_shmat=yes
3408 else
3409 echo "$as_me: failed program was:" >&5
3410 cat conftest.$ac_ext >&5
3411 ac_cv_func_shmat=no
3413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3415 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3416 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3418 if test $ac_cv_func_shmat = no; then
3419 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3420 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3421 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 else
3424 ac_check_lib_save_LIBS=$LIBS
3425 LIBS="-lipc $LIBS"
3426 cat >conftest.$ac_ext <<_ACEOF
3427 #line $LINENO "configure"
3428 #include "confdefs.h"
3430 /* Override any gcc2 internal prototype to avoid an error. */
3431 #ifdef __cplusplus
3432 extern "C"
3433 #endif
3434 /* We use char because int might match the return type of a gcc2
3435 builtin and then its argument prototype would still apply. */
3436 char shmat ();
3437 #ifdef F77_DUMMY_MAIN
3438 # ifdef __cplusplus
3439 extern "C"
3440 # endif
3441 int F77_DUMMY_MAIN() { return 1; }
3442 #endif
3444 main ()
3446 shmat ();
3448 return 0;
3450 _ACEOF
3451 rm -f conftest.$ac_objext conftest$ac_exeext
3452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3453 (eval $ac_link) 2>&5
3454 ac_status=$?
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } &&
3457 { ac_try='test -s conftest$ac_exeext'
3458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3459 (eval $ac_try) 2>&5
3460 ac_status=$?
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); }; }; then
3463 ac_cv_lib_ipc_shmat=yes
3464 else
3465 echo "$as_me: failed program was:" >&5
3466 cat conftest.$ac_ext >&5
3467 ac_cv_lib_ipc_shmat=no
3469 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3470 LIBS=$ac_check_lib_save_LIBS
3472 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3473 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3474 if test $ac_cv_lib_ipc_shmat = yes; then
3475 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3481 # Check for libraries that X11R6 Xt/Xaw programs need.
3482 ac_save_LDFLAGS=$LDFLAGS
3483 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3484 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3485 # check for ICE first), but we must link in the order -lSM -lICE or
3486 # we get undefined symbols. So assume we have SM if we have ICE.
3487 # These have to be linked with before -lX11, unlike the other
3488 # libraries we check for below, so use a different variable.
3489 # John Interrante, Karl Berry
3490 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3491 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3492 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3493 echo $ECHO_N "(cached) $ECHO_C" >&6
3494 else
3495 ac_check_lib_save_LIBS=$LIBS
3496 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3497 cat >conftest.$ac_ext <<_ACEOF
3498 #line $LINENO "configure"
3499 #include "confdefs.h"
3501 /* Override any gcc2 internal prototype to avoid an error. */
3502 #ifdef __cplusplus
3503 extern "C"
3504 #endif
3505 /* We use char because int might match the return type of a gcc2
3506 builtin and then its argument prototype would still apply. */
3507 char IceConnectionNumber ();
3508 #ifdef F77_DUMMY_MAIN
3509 # ifdef __cplusplus
3510 extern "C"
3511 # endif
3512 int F77_DUMMY_MAIN() { return 1; }
3513 #endif
3515 main ()
3517 IceConnectionNumber ();
3519 return 0;
3521 _ACEOF
3522 rm -f conftest.$ac_objext conftest$ac_exeext
3523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3524 (eval $ac_link) 2>&5
3525 ac_status=$?
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); } &&
3528 { ac_try='test -s conftest$ac_exeext'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530 (eval $ac_try) 2>&5
3531 ac_status=$?
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; }; then
3534 ac_cv_lib_ICE_IceConnectionNumber=yes
3535 else
3536 echo "$as_me: failed program was:" >&5
3537 cat conftest.$ac_ext >&5
3538 ac_cv_lib_ICE_IceConnectionNumber=no
3540 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3541 LIBS=$ac_check_lib_save_LIBS
3543 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3544 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3545 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3546 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3549 LDFLAGS=$ac_save_LDFLAGS
3553 for ac_prog in 'bison -y' byacc
3555 # Extract the first word of "$ac_prog", so it can be a program name with args.
3556 set dummy $ac_prog; ac_word=$2
3557 echo "$as_me:$LINENO: checking for $ac_word" >&5
3558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3559 if test "${ac_cv_prog_YACC+set}" = set; then
3560 echo $ECHO_N "(cached) $ECHO_C" >&6
3561 else
3562 if test -n "$YACC"; then
3563 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3564 else
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 for as_dir in $PATH
3568 IFS=$as_save_IFS
3569 test -z "$as_dir" && as_dir=.
3570 for ac_exec_ext in '' $ac_executable_extensions; do
3571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3572 ac_cv_prog_YACC="$ac_prog"
3573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3574 break 2
3576 done
3577 done
3581 YACC=$ac_cv_prog_YACC
3582 if test -n "$YACC"; then
3583 echo "$as_me:$LINENO: result: $YACC" >&5
3584 echo "${ECHO_T}$YACC" >&6
3585 else
3586 echo "$as_me:$LINENO: result: no" >&5
3587 echo "${ECHO_T}no" >&6
3590 test -n "$YACC" && break
3591 done
3592 test -n "$YACC" || YACC="yacc"
3594 for ac_prog in flex lex
3596 # Extract the first word of "$ac_prog", so it can be a program name with args.
3597 set dummy $ac_prog; ac_word=$2
3598 echo "$as_me:$LINENO: checking for $ac_word" >&5
3599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3600 if test "${ac_cv_prog_LEX+set}" = set; then
3601 echo $ECHO_N "(cached) $ECHO_C" >&6
3602 else
3603 if test -n "$LEX"; then
3604 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3605 else
3606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607 for as_dir in $PATH
3609 IFS=$as_save_IFS
3610 test -z "$as_dir" && as_dir=.
3611 for ac_exec_ext in '' $ac_executable_extensions; do
3612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3613 ac_cv_prog_LEX="$ac_prog"
3614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3615 break 2
3617 done
3618 done
3622 LEX=$ac_cv_prog_LEX
3623 if test -n "$LEX"; then
3624 echo "$as_me:$LINENO: result: $LEX" >&5
3625 echo "${ECHO_T}$LEX" >&6
3626 else
3627 echo "$as_me:$LINENO: result: no" >&5
3628 echo "${ECHO_T}no" >&6
3631 test -n "$LEX" && break
3632 done
3633 test -n "$LEX" || LEX=":"
3635 if test -z "$LEXLIB"
3636 then
3637 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3638 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3639 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3640 echo $ECHO_N "(cached) $ECHO_C" >&6
3641 else
3642 ac_check_lib_save_LIBS=$LIBS
3643 LIBS="-lfl $LIBS"
3644 cat >conftest.$ac_ext <<_ACEOF
3645 #line $LINENO "configure"
3646 #include "confdefs.h"
3648 /* Override any gcc2 internal prototype to avoid an error. */
3649 #ifdef __cplusplus
3650 extern "C"
3651 #endif
3652 /* We use char because int might match the return type of a gcc2
3653 builtin and then its argument prototype would still apply. */
3654 char yywrap ();
3655 #ifdef F77_DUMMY_MAIN
3656 # ifdef __cplusplus
3657 extern "C"
3658 # endif
3659 int F77_DUMMY_MAIN() { return 1; }
3660 #endif
3662 main ()
3664 yywrap ();
3666 return 0;
3668 _ACEOF
3669 rm -f conftest.$ac_objext conftest$ac_exeext
3670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3671 (eval $ac_link) 2>&5
3672 ac_status=$?
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); } &&
3675 { ac_try='test -s conftest$ac_exeext'
3676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677 (eval $ac_try) 2>&5
3678 ac_status=$?
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); }; }; then
3681 ac_cv_lib_fl_yywrap=yes
3682 else
3683 echo "$as_me: failed program was:" >&5
3684 cat conftest.$ac_ext >&5
3685 ac_cv_lib_fl_yywrap=no
3687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3688 LIBS=$ac_check_lib_save_LIBS
3690 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3691 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3692 if test $ac_cv_lib_fl_yywrap = yes; then
3693 LEXLIB="-lfl"
3694 else
3695 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3696 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3697 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3699 else
3700 ac_check_lib_save_LIBS=$LIBS
3701 LIBS="-ll $LIBS"
3702 cat >conftest.$ac_ext <<_ACEOF
3703 #line $LINENO "configure"
3704 #include "confdefs.h"
3706 /* Override any gcc2 internal prototype to avoid an error. */
3707 #ifdef __cplusplus
3708 extern "C"
3709 #endif
3710 /* We use char because int might match the return type of a gcc2
3711 builtin and then its argument prototype would still apply. */
3712 char yywrap ();
3713 #ifdef F77_DUMMY_MAIN
3714 # ifdef __cplusplus
3715 extern "C"
3716 # endif
3717 int F77_DUMMY_MAIN() { return 1; }
3718 #endif
3720 main ()
3722 yywrap ();
3724 return 0;
3726 _ACEOF
3727 rm -f conftest.$ac_objext conftest$ac_exeext
3728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3729 (eval $ac_link) 2>&5
3730 ac_status=$?
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); } &&
3733 { ac_try='test -s conftest$ac_exeext'
3734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735 (eval $ac_try) 2>&5
3736 ac_status=$?
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); }; }; then
3739 ac_cv_lib_l_yywrap=yes
3740 else
3741 echo "$as_me: failed program was:" >&5
3742 cat conftest.$ac_ext >&5
3743 ac_cv_lib_l_yywrap=no
3745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3746 LIBS=$ac_check_lib_save_LIBS
3748 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3749 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3750 if test $ac_cv_lib_l_yywrap = yes; then
3751 LEXLIB="-ll"
3758 if test "x$LEX" != "x:"; then
3759 echo "$as_me:$LINENO: checking lex output file root" >&5
3760 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3761 if test "${ac_cv_prog_lex_root+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3763 else
3764 # The minimal lex program is just a single line: %%. But some broken lexes
3765 # (Solaris, I think it was) want two %% lines, so accommodate them.
3766 cat >conftest.l <<_ACEOF
3769 _ACEOF
3770 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3771 (eval $LEX conftest.l) 2>&5
3772 ac_status=$?
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); }
3775 if test -f lex.yy.c; then
3776 ac_cv_prog_lex_root=lex.yy
3777 elif test -f lexyy.c; then
3778 ac_cv_prog_lex_root=lexyy
3779 else
3780 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3781 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3782 { (exit 1); exit 1; }; }
3785 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3786 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3787 rm -f conftest.l
3788 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3790 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3791 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3792 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3794 else
3795 # POSIX says lex can declare yytext either as a pointer or an array; the
3796 # default is implementation-dependent. Figure out which it is, since
3797 # not all implementations provide the %pointer and %array declarations.
3798 ac_cv_prog_lex_yytext_pointer=no
3799 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3800 ac_save_LIBS=$LIBS
3801 LIBS="$LIBS $LEXLIB"
3802 cat >conftest.$ac_ext <<_ACEOF
3803 `cat $LEX_OUTPUT_ROOT.c`
3804 _ACEOF
3805 rm -f conftest.$ac_objext conftest$ac_exeext
3806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3807 (eval $ac_link) 2>&5
3808 ac_status=$?
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); } &&
3811 { ac_try='test -s conftest$ac_exeext'
3812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813 (eval $ac_try) 2>&5
3814 ac_status=$?
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); }; }; then
3817 ac_cv_prog_lex_yytext_pointer=yes
3818 else
3819 echo "$as_me: failed program was:" >&5
3820 cat conftest.$ac_ext >&5
3822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3823 LIBS=$ac_save_LIBS
3824 rm -f "${LEX_OUTPUT_ROOT}.c"
3827 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3828 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3829 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3831 cat >>confdefs.h <<\_ACEOF
3832 #define YYTEXT_POINTER 1
3833 _ACEOF
3839 for ac_prog in $YACC bison yacc
3841 # Extract the first word of "$ac_prog", so it can be a program name with args.
3842 set dummy $ac_prog; ac_word=$2
3843 echo "$as_me:$LINENO: checking for $ac_word" >&5
3844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3845 if test "${ac_cv_prog_XYACC+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848 if test -n "$XYACC"; then
3849 ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
3850 else
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 for as_dir in $PATH
3854 IFS=$as_save_IFS
3855 test -z "$as_dir" && as_dir=.
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3858 ac_cv_prog_XYACC="$ac_prog"
3859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3860 break 2
3862 done
3863 done
3867 XYACC=$ac_cv_prog_XYACC
3868 if test -n "$XYACC"; then
3869 echo "$as_me:$LINENO: result: $XYACC" >&5
3870 echo "${ECHO_T}$XYACC" >&6
3871 else
3872 echo "$as_me:$LINENO: result: no" >&5
3873 echo "${ECHO_T}no" >&6
3876 test -n "$XYACC" && break
3877 done
3878 test -n "$XYACC" || XYACC="none"
3880 if test "$XYACC" = "none"
3881 then
3882 { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
3883 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
3884 { (exit 1); exit 1; }; }
3886 for ac_prog in $LEX flex lex
3888 # Extract the first word of "$ac_prog", so it can be a program name with args.
3889 set dummy $ac_prog; ac_word=$2
3890 echo "$as_me:$LINENO: checking for $ac_word" >&5
3891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3892 if test "${ac_cv_prog_XLEX+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 else
3895 if test -n "$XLEX"; then
3896 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
3897 else
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 for as_dir in $PATH
3901 IFS=$as_save_IFS
3902 test -z "$as_dir" && as_dir=.
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3905 ac_cv_prog_XLEX="$ac_prog"
3906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3907 break 2
3909 done
3910 done
3914 XLEX=$ac_cv_prog_XLEX
3915 if test -n "$XLEX"; then
3916 echo "$as_me:$LINENO: result: $XLEX" >&5
3917 echo "${ECHO_T}$XLEX" >&6
3918 else
3919 echo "$as_me:$LINENO: result: no" >&5
3920 echo "${ECHO_T}no" >&6
3923 test -n "$XLEX" && break
3924 done
3925 test -n "$XLEX" || XLEX="none"
3927 if test "$XLEX" = "none"
3928 then
3929 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
3930 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
3931 { (exit 1); exit 1; }; }
3934 if test -n "$ac_tool_prefix"; then
3935 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3936 set dummy ${ac_tool_prefix}ld; ac_word=$2
3937 echo "$as_me:$LINENO: checking for $ac_word" >&5
3938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3939 if test "${ac_cv_prog_LD+set}" = set; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3941 else
3942 if test -n "$LD"; then
3943 ac_cv_prog_LD="$LD" # Let the user override the test.
3944 else
3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946 for as_dir in $PATH
3948 IFS=$as_save_IFS
3949 test -z "$as_dir" && as_dir=.
3950 for ac_exec_ext in '' $ac_executable_extensions; do
3951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3952 ac_cv_prog_LD="${ac_tool_prefix}ld"
3953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3954 break 2
3956 done
3957 done
3961 LD=$ac_cv_prog_LD
3962 if test -n "$LD"; then
3963 echo "$as_me:$LINENO: result: $LD" >&5
3964 echo "${ECHO_T}$LD" >&6
3965 else
3966 echo "$as_me:$LINENO: result: no" >&5
3967 echo "${ECHO_T}no" >&6
3971 if test -z "$ac_cv_prog_LD"; then
3972 ac_ct_LD=$LD
3973 # Extract the first word of "ld", so it can be a program name with args.
3974 set dummy ld; ac_word=$2
3975 echo "$as_me:$LINENO: checking for $ac_word" >&5
3976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3977 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3979 else
3980 if test -n "$ac_ct_LD"; then
3981 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3982 else
3983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984 for as_dir in $PATH
3986 IFS=$as_save_IFS
3987 test -z "$as_dir" && as_dir=.
3988 for ac_exec_ext in '' $ac_executable_extensions; do
3989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3990 ac_cv_prog_ac_ct_LD="ld"
3991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3992 break 2
3994 done
3995 done
3997 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4000 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4001 if test -n "$ac_ct_LD"; then
4002 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4003 echo "${ECHO_T}$ac_ct_LD" >&6
4004 else
4005 echo "$as_me:$LINENO: result: no" >&5
4006 echo "${ECHO_T}no" >&6
4009 LD=$ac_ct_LD
4010 else
4011 LD="$ac_cv_prog_LD"
4014 if test -n "$ac_tool_prefix"; then
4015 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4016 set dummy ${ac_tool_prefix}ar; ac_word=$2
4017 echo "$as_me:$LINENO: checking for $ac_word" >&5
4018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4019 if test "${ac_cv_prog_AR+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 else
4022 if test -n "$AR"; then
4023 ac_cv_prog_AR="$AR" # Let the user override the test.
4024 else
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026 for as_dir in $PATH
4028 IFS=$as_save_IFS
4029 test -z "$as_dir" && as_dir=.
4030 for ac_exec_ext in '' $ac_executable_extensions; do
4031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4032 ac_cv_prog_AR="${ac_tool_prefix}ar"
4033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4034 break 2
4036 done
4037 done
4041 AR=$ac_cv_prog_AR
4042 if test -n "$AR"; then
4043 echo "$as_me:$LINENO: result: $AR" >&5
4044 echo "${ECHO_T}$AR" >&6
4045 else
4046 echo "$as_me:$LINENO: result: no" >&5
4047 echo "${ECHO_T}no" >&6
4051 if test -z "$ac_cv_prog_AR"; then
4052 ac_ct_AR=$AR
4053 # Extract the first word of "ar", so it can be a program name with args.
4054 set dummy ar; ac_word=$2
4055 echo "$as_me:$LINENO: checking for $ac_word" >&5
4056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4057 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4059 else
4060 if test -n "$ac_ct_AR"; then
4061 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4062 else
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 for as_dir in $PATH
4066 IFS=$as_save_IFS
4067 test -z "$as_dir" && as_dir=.
4068 for ac_exec_ext in '' $ac_executable_extensions; do
4069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4070 ac_cv_prog_ac_ct_AR="ar"
4071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4072 break 2
4074 done
4075 done
4077 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4080 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4081 if test -n "$ac_ct_AR"; then
4082 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4083 echo "${ECHO_T}$ac_ct_AR" >&6
4084 else
4085 echo "$as_me:$LINENO: result: no" >&5
4086 echo "${ECHO_T}no" >&6
4089 AR=$ac_ct_AR
4090 else
4091 AR="$ac_cv_prog_AR"
4094 if test -n "$ac_tool_prefix"; then
4095 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4096 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4097 echo "$as_me:$LINENO: checking for $ac_word" >&5
4098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4099 if test "${ac_cv_prog_RANLIB+set}" = set; then
4100 echo $ECHO_N "(cached) $ECHO_C" >&6
4101 else
4102 if test -n "$RANLIB"; then
4103 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4104 else
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106 for as_dir in $PATH
4108 IFS=$as_save_IFS
4109 test -z "$as_dir" && as_dir=.
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4112 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4114 break 2
4116 done
4117 done
4121 RANLIB=$ac_cv_prog_RANLIB
4122 if test -n "$RANLIB"; then
4123 echo "$as_me:$LINENO: result: $RANLIB" >&5
4124 echo "${ECHO_T}$RANLIB" >&6
4125 else
4126 echo "$as_me:$LINENO: result: no" >&5
4127 echo "${ECHO_T}no" >&6
4131 if test -z "$ac_cv_prog_RANLIB"; then
4132 ac_ct_RANLIB=$RANLIB
4133 # Extract the first word of "ranlib", so it can be a program name with args.
4134 set dummy ranlib; ac_word=$2
4135 echo "$as_me:$LINENO: checking for $ac_word" >&5
4136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4137 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4139 else
4140 if test -n "$ac_ct_RANLIB"; then
4141 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4142 else
4143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4144 for as_dir in $PATH
4146 IFS=$as_save_IFS
4147 test -z "$as_dir" && as_dir=.
4148 for ac_exec_ext in '' $ac_executable_extensions; do
4149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4150 ac_cv_prog_ac_ct_RANLIB="ranlib"
4151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4152 break 2
4154 done
4155 done
4157 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4160 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4161 if test -n "$ac_ct_RANLIB"; then
4162 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4163 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4164 else
4165 echo "$as_me:$LINENO: result: no" >&5
4166 echo "${ECHO_T}no" >&6
4169 RANLIB=$ac_ct_RANLIB
4170 else
4171 RANLIB="$ac_cv_prog_RANLIB"
4174 if test -n "$ac_tool_prefix"; then
4175 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4176 set dummy ${ac_tool_prefix}strip; ac_word=$2
4177 echo "$as_me:$LINENO: checking for $ac_word" >&5
4178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4179 if test "${ac_cv_prog_STRIP+set}" = set; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
4181 else
4182 if test -n "$STRIP"; then
4183 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4184 else
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 for as_dir in $PATH
4188 IFS=$as_save_IFS
4189 test -z "$as_dir" && as_dir=.
4190 for ac_exec_ext in '' $ac_executable_extensions; do
4191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4192 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4194 break 2
4196 done
4197 done
4201 STRIP=$ac_cv_prog_STRIP
4202 if test -n "$STRIP"; then
4203 echo "$as_me:$LINENO: result: $STRIP" >&5
4204 echo "${ECHO_T}$STRIP" >&6
4205 else
4206 echo "$as_me:$LINENO: result: no" >&5
4207 echo "${ECHO_T}no" >&6
4211 if test -z "$ac_cv_prog_STRIP"; then
4212 ac_ct_STRIP=$STRIP
4213 # Extract the first word of "strip", so it can be a program name with args.
4214 set dummy strip; ac_word=$2
4215 echo "$as_me:$LINENO: checking for $ac_word" >&5
4216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4217 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4219 else
4220 if test -n "$ac_ct_STRIP"; then
4221 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4222 else
4223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224 for as_dir in $PATH
4226 IFS=$as_save_IFS
4227 test -z "$as_dir" && as_dir=.
4228 for ac_exec_ext in '' $ac_executable_extensions; do
4229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4230 ac_cv_prog_ac_ct_STRIP="strip"
4231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4232 break 2
4234 done
4235 done
4237 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4240 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4241 if test -n "$ac_ct_STRIP"; then
4242 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4243 echo "${ECHO_T}$ac_ct_STRIP" >&6
4244 else
4245 echo "$as_me:$LINENO: result: no" >&5
4246 echo "${ECHO_T}no" >&6
4249 STRIP=$ac_ct_STRIP
4250 else
4251 STRIP="$ac_cv_prog_STRIP"
4254 if test -n "$ac_tool_prefix"; then
4255 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4256 set dummy ${ac_tool_prefix}windres; ac_word=$2
4257 echo "$as_me:$LINENO: checking for $ac_word" >&5
4258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4259 if test "${ac_cv_prog_WINDRES+set}" = set; then
4260 echo $ECHO_N "(cached) $ECHO_C" >&6
4261 else
4262 if test -n "$WINDRES"; then
4263 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4264 else
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH
4268 IFS=$as_save_IFS
4269 test -z "$as_dir" && as_dir=.
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4272 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4274 break 2
4276 done
4277 done
4281 WINDRES=$ac_cv_prog_WINDRES
4282 if test -n "$WINDRES"; then
4283 echo "$as_me:$LINENO: result: $WINDRES" >&5
4284 echo "${ECHO_T}$WINDRES" >&6
4285 else
4286 echo "$as_me:$LINENO: result: no" >&5
4287 echo "${ECHO_T}no" >&6
4291 if test -z "$ac_cv_prog_WINDRES"; then
4292 ac_ct_WINDRES=$WINDRES
4293 # Extract the first word of "windres", so it can be a program name with args.
4294 set dummy windres; ac_word=$2
4295 echo "$as_me:$LINENO: checking for $ac_word" >&5
4296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4297 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
4299 else
4300 if test -n "$ac_ct_WINDRES"; then
4301 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4302 else
4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304 for as_dir in $PATH
4306 IFS=$as_save_IFS
4307 test -z "$as_dir" && as_dir=.
4308 for ac_exec_ext in '' $ac_executable_extensions; do
4309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4310 ac_cv_prog_ac_ct_WINDRES="windres"
4311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4312 break 2
4314 done
4315 done
4317 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4320 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4321 if test -n "$ac_ct_WINDRES"; then
4322 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4323 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4324 else
4325 echo "$as_me:$LINENO: result: no" >&5
4326 echo "${ECHO_T}no" >&6
4329 WINDRES=$ac_ct_WINDRES
4330 else
4331 WINDRES="$ac_cv_prog_WINDRES"
4334 # Find a good install program. We prefer a C program (faster),
4335 # so one script is as good as another. But avoid the broken or
4336 # incompatible versions:
4337 # SysV /etc/install, /usr/sbin/install
4338 # SunOS /usr/etc/install
4339 # IRIX /sbin/install
4340 # AIX /bin/install
4341 # AmigaOS /C/install, which installs bootblocks on floppy discs
4342 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4343 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4344 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4345 # ./install, which can be erroneously created by make from ./install.sh.
4346 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4347 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4348 if test -z "$INSTALL"; then
4349 if test "${ac_cv_path_install+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4351 else
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
4357 # Account for people who put trailing slashes in PATH elements.
4358 case $as_dir/ in
4359 ./ | .// | /cC/* | \
4360 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4361 /usr/ucb/* ) ;;
4363 # OSF1 and SCO ODT 3.0 have their own names for install.
4364 # Don't use installbsd from OSF since it installs stuff as root
4365 # by default.
4366 for ac_prog in ginstall scoinst install; do
4367 for ac_exec_ext in '' $ac_executable_extensions; do
4368 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4369 if test $ac_prog = install &&
4370 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4371 # AIX install. It has an incompatible calling convention.
4373 elif test $ac_prog = install &&
4374 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4375 # program-specific install script used by HP pwplus--don't use.
4377 else
4378 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4379 break 3
4382 done
4383 done
4385 esac
4386 done
4390 if test "${ac_cv_path_install+set}" = set; then
4391 INSTALL=$ac_cv_path_install
4392 else
4393 # As a last resort, use the slow shell script. We don't cache a
4394 # path for INSTALL within a source directory, because that will
4395 # break other packages using the cache if that directory is
4396 # removed, or if the path is relative.
4397 INSTALL=$ac_install_sh
4400 echo "$as_me:$LINENO: result: $INSTALL" >&5
4401 echo "${ECHO_T}$INSTALL" >&6
4403 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4404 # It thinks the first close brace ends the variable substitution.
4405 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4407 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4409 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4411 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4412 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4413 LN_S=$as_ln_s
4414 if test "$LN_S" = "ln -s"; then
4415 echo "$as_me:$LINENO: result: yes" >&5
4416 echo "${ECHO_T}yes" >&6
4417 else
4418 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4419 echo "${ECHO_T}no, using $LN_S" >&6
4422 echo "$as_me:$LINENO: checking whether ln works" >&5
4423 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4424 rm -f conf$$ conf$$.file
4425 echo >conf$$.file
4426 if ln conf$$.file conf$$ 2>/dev/null; then
4427 LN=ln
4429 echo "$as_me:$LINENO: result: yes" >&5
4430 echo "${ECHO_T}yes" >&6
4431 else
4432 LN="cp -p"
4434 echo "$as_me:$LINENO: result: no, using $LN" >&5
4435 echo "${ECHO_T}no, using $LN" >&6
4437 rm -f conf$$ conf$$.file
4438 # Extract the first word of "c2man", so it can be a program name with args.
4439 set dummy c2man; ac_word=$2
4440 echo "$as_me:$LINENO: checking for $ac_word" >&5
4441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4442 if test "${ac_cv_prog_C2MAN+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 else
4445 if test -n "$C2MAN"; then
4446 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
4447 else
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4455 ac_cv_prog_C2MAN="c2man"
4456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 break 2
4459 done
4460 done
4462 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
4465 C2MAN=$ac_cv_prog_C2MAN
4466 if test -n "$C2MAN"; then
4467 echo "$as_me:$LINENO: result: $C2MAN" >&5
4468 echo "${ECHO_T}$C2MAN" >&6
4469 else
4470 echo "$as_me:$LINENO: result: no" >&5
4471 echo "${ECHO_T}no" >&6
4474 # Extract the first word of "ldconfig", so it can be a program name with args.
4475 set dummy ldconfig; ac_word=$2
4476 echo "$as_me:$LINENO: checking for $ac_word" >&5
4477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4478 if test "${ac_cv_path_LDCONFIG+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4480 else
4481 case $LDCONFIG in
4482 [\\/]* | ?:[\\/]*)
4483 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in /sbin /usr/sbin $PATH
4489 IFS=$as_save_IFS
4490 test -z "$as_dir" && as_dir=.
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4493 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 break 2
4497 done
4498 done
4500 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4502 esac
4504 LDCONFIG=$ac_cv_path_LDCONFIG
4506 if test -n "$LDCONFIG"; then
4507 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
4508 echo "${ECHO_T}$LDCONFIG" >&6
4509 else
4510 echo "$as_me:$LINENO: result: no" >&5
4511 echo "${ECHO_T}no" >&6
4515 for ac_prog in lclint lint
4517 # Extract the first word of "$ac_prog", so it can be a program name with args.
4518 set dummy $ac_prog; ac_word=$2
4519 echo "$as_me:$LINENO: checking for $ac_word" >&5
4520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4521 if test "${ac_cv_prog_LINT+set}" = set; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4523 else
4524 if test -n "$LINT"; then
4525 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4526 else
4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528 for as_dir in $PATH
4530 IFS=$as_save_IFS
4531 test -z "$as_dir" && as_dir=.
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4534 ac_cv_prog_LINT="$ac_prog"
4535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4536 break 2
4538 done
4539 done
4543 LINT=$ac_cv_prog_LINT
4544 if test -n "$LINT"; then
4545 echo "$as_me:$LINENO: result: $LINT" >&5
4546 echo "${ECHO_T}$LINT" >&6
4547 else
4548 echo "$as_me:$LINENO: result: no" >&5
4549 echo "${ECHO_T}no" >&6
4552 test -n "$LINT" && break
4553 done
4555 if test "$LINT" = "lint"
4556 then
4557 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4564 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
4565 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
4566 if test "${ac_cv_lib_m_sqrt+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 else
4569 ac_check_lib_save_LIBS=$LIBS
4570 LIBS="-lm $LIBS"
4571 cat >conftest.$ac_ext <<_ACEOF
4572 #line $LINENO "configure"
4573 #include "confdefs.h"
4575 /* Override any gcc2 internal prototype to avoid an error. */
4576 #ifdef __cplusplus
4577 extern "C"
4578 #endif
4579 /* We use char because int might match the return type of a gcc2
4580 builtin and then its argument prototype would still apply. */
4581 char sqrt ();
4582 #ifdef F77_DUMMY_MAIN
4583 # ifdef __cplusplus
4584 extern "C"
4585 # endif
4586 int F77_DUMMY_MAIN() { return 1; }
4587 #endif
4589 main ()
4591 sqrt ();
4593 return 0;
4595 _ACEOF
4596 rm -f conftest.$ac_objext conftest$ac_exeext
4597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4598 (eval $ac_link) 2>&5
4599 ac_status=$?
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } &&
4602 { ac_try='test -s conftest$ac_exeext'
4603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604 (eval $ac_try) 2>&5
4605 ac_status=$?
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); }; }; then
4608 ac_cv_lib_m_sqrt=yes
4609 else
4610 echo "$as_me: failed program was:" >&5
4611 cat conftest.$ac_ext >&5
4612 ac_cv_lib_m_sqrt=no
4614 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4615 LIBS=$ac_check_lib_save_LIBS
4617 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4618 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4619 if test $ac_cv_lib_m_sqrt = yes; then
4620 cat >>confdefs.h <<_ACEOF
4621 #define HAVE_LIBM 1
4622 _ACEOF
4624 LIBS="-lm $LIBS"
4629 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
4630 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
4631 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
4633 else
4634 ac_check_lib_save_LIBS=$LIBS
4635 LIBS="-li386 $LIBS"
4636 cat >conftest.$ac_ext <<_ACEOF
4637 #line $LINENO "configure"
4638 #include "confdefs.h"
4640 /* Override any gcc2 internal prototype to avoid an error. */
4641 #ifdef __cplusplus
4642 extern "C"
4643 #endif
4644 /* We use char because int might match the return type of a gcc2
4645 builtin and then its argument prototype would still apply. */
4646 char i386_set_ldt ();
4647 #ifdef F77_DUMMY_MAIN
4648 # ifdef __cplusplus
4649 extern "C"
4650 # endif
4651 int F77_DUMMY_MAIN() { return 1; }
4652 #endif
4654 main ()
4656 i386_set_ldt ();
4658 return 0;
4660 _ACEOF
4661 rm -f conftest.$ac_objext conftest$ac_exeext
4662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4663 (eval $ac_link) 2>&5
4664 ac_status=$?
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); } &&
4667 { ac_try='test -s conftest$ac_exeext'
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 (eval $ac_try) 2>&5
4670 ac_status=$?
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; }; then
4673 ac_cv_lib_i386_i386_set_ldt=yes
4674 else
4675 echo "$as_me: failed program was:" >&5
4676 cat conftest.$ac_ext >&5
4677 ac_cv_lib_i386_i386_set_ldt=no
4679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4680 LIBS=$ac_check_lib_save_LIBS
4682 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
4683 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
4684 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
4685 cat >>confdefs.h <<_ACEOF
4686 #define HAVE_LIBI386 1
4687 _ACEOF
4689 LIBS="-li386 $LIBS"
4694 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4695 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4696 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 else
4699 ac_check_lib_save_LIBS=$LIBS
4700 LIBS="-lossaudio $LIBS"
4701 cat >conftest.$ac_ext <<_ACEOF
4702 #line $LINENO "configure"
4703 #include "confdefs.h"
4705 /* Override any gcc2 internal prototype to avoid an error. */
4706 #ifdef __cplusplus
4707 extern "C"
4708 #endif
4709 /* We use char because int might match the return type of a gcc2
4710 builtin and then its argument prototype would still apply. */
4711 char _oss_ioctl ();
4712 #ifdef F77_DUMMY_MAIN
4713 # ifdef __cplusplus
4714 extern "C"
4715 # endif
4716 int F77_DUMMY_MAIN() { return 1; }
4717 #endif
4719 main ()
4721 _oss_ioctl ();
4723 return 0;
4725 _ACEOF
4726 rm -f conftest.$ac_objext conftest$ac_exeext
4727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4728 (eval $ac_link) 2>&5
4729 ac_status=$?
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); } &&
4732 { ac_try='test -s conftest$ac_exeext'
4733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734 (eval $ac_try) 2>&5
4735 ac_status=$?
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); }; }; then
4738 ac_cv_lib_ossaudio__oss_ioctl=yes
4739 else
4740 echo "$as_me: failed program was:" >&5
4741 cat conftest.$ac_ext >&5
4742 ac_cv_lib_ossaudio__oss_ioctl=no
4744 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4745 LIBS=$ac_check_lib_save_LIBS
4747 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4748 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4749 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4750 cat >>confdefs.h <<_ACEOF
4751 #define HAVE_LIBOSSAUDIO 1
4752 _ACEOF
4754 LIBS="-lossaudio $LIBS"
4759 for ac_func in iswalnum
4761 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4762 echo "$as_me:$LINENO: checking for $ac_func" >&5
4763 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4764 if eval "test \"\${$as_ac_var+set}\" = set"; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4766 else
4767 cat >conftest.$ac_ext <<_ACEOF
4768 #line $LINENO "configure"
4769 #include "confdefs.h"
4770 /* System header to define __stub macros and hopefully few prototypes,
4771 which can conflict with char $ac_func (); below. */
4772 #include <assert.h>
4773 /* Override any gcc2 internal prototype to avoid an error. */
4774 #ifdef __cplusplus
4775 extern "C"
4776 #endif
4777 /* We use char because int might match the return type of a gcc2
4778 builtin and then its argument prototype would still apply. */
4779 char $ac_func ();
4780 char (*f) ();
4782 #ifdef F77_DUMMY_MAIN
4783 # ifdef __cplusplus
4784 extern "C"
4785 # endif
4786 int F77_DUMMY_MAIN() { return 1; }
4787 #endif
4789 main ()
4791 /* The GNU C library defines this for functions which it implements
4792 to always fail with ENOSYS. Some functions are actually named
4793 something starting with __ and the normal name is an alias. */
4794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4795 choke me
4796 #else
4797 f = $ac_func;
4798 #endif
4801 return 0;
4803 _ACEOF
4804 rm -f conftest.$ac_objext conftest$ac_exeext
4805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4806 (eval $ac_link) 2>&5
4807 ac_status=$?
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); } &&
4810 { ac_try='test -s conftest$ac_exeext'
4811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812 (eval $ac_try) 2>&5
4813 ac_status=$?
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); }; }; then
4816 eval "$as_ac_var=yes"
4817 else
4818 echo "$as_me: failed program was:" >&5
4819 cat conftest.$ac_ext >&5
4820 eval "$as_ac_var=no"
4822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4825 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4826 if test `eval echo '${'$as_ac_var'}'` = yes; then
4827 cat >>confdefs.h <<_ACEOF
4828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4829 _ACEOF
4831 else
4833 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
4834 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
4835 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
4836 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 else
4838 ac_check_lib_save_LIBS=$LIBS
4839 LIBS="-lw $LIBS"
4840 cat >conftest.$ac_ext <<_ACEOF
4841 #line $LINENO "configure"
4842 #include "confdefs.h"
4844 /* Override any gcc2 internal prototype to avoid an error. */
4845 #ifdef __cplusplus
4846 extern "C"
4847 #endif
4848 /* We use char because int might match the return type of a gcc2
4849 builtin and then its argument prototype would still apply. */
4850 char iswalnum ();
4851 #ifdef F77_DUMMY_MAIN
4852 # ifdef __cplusplus
4853 extern "C"
4854 # endif
4855 int F77_DUMMY_MAIN() { return 1; }
4856 #endif
4858 main ()
4860 iswalnum ();
4862 return 0;
4864 _ACEOF
4865 rm -f conftest.$ac_objext conftest$ac_exeext
4866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4867 (eval $ac_link) 2>&5
4868 ac_status=$?
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); } &&
4871 { ac_try='test -s conftest$ac_exeext'
4872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873 (eval $ac_try) 2>&5
4874 ac_status=$?
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); }; }; then
4877 ac_cv_lib_w_iswalnum=yes
4878 else
4879 echo "$as_me: failed program was:" >&5
4880 cat conftest.$ac_ext >&5
4881 ac_cv_lib_w_iswalnum=no
4883 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4884 LIBS=$ac_check_lib_save_LIBS
4886 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
4887 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
4888 if test $ac_cv_lib_w_iswalnum = yes; then
4889 cat >>confdefs.h <<_ACEOF
4890 #define HAVE_LIBW 1
4891 _ACEOF
4893 LIBS="-lw $LIBS"
4898 done
4901 for ac_func in gethostbyname
4903 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4904 echo "$as_me:$LINENO: checking for $ac_func" >&5
4905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4906 if eval "test \"\${$as_ac_var+set}\" = set"; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4908 else
4909 cat >conftest.$ac_ext <<_ACEOF
4910 #line $LINENO "configure"
4911 #include "confdefs.h"
4912 /* System header to define __stub macros and hopefully few prototypes,
4913 which can conflict with char $ac_func (); below. */
4914 #include <assert.h>
4915 /* Override any gcc2 internal prototype to avoid an error. */
4916 #ifdef __cplusplus
4917 extern "C"
4918 #endif
4919 /* We use char because int might match the return type of a gcc2
4920 builtin and then its argument prototype would still apply. */
4921 char $ac_func ();
4922 char (*f) ();
4924 #ifdef F77_DUMMY_MAIN
4925 # ifdef __cplusplus
4926 extern "C"
4927 # endif
4928 int F77_DUMMY_MAIN() { return 1; }
4929 #endif
4931 main ()
4933 /* The GNU C library defines this for functions which it implements
4934 to always fail with ENOSYS. Some functions are actually named
4935 something starting with __ and the normal name is an alias. */
4936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4937 choke me
4938 #else
4939 f = $ac_func;
4940 #endif
4943 return 0;
4945 _ACEOF
4946 rm -f conftest.$ac_objext conftest$ac_exeext
4947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4948 (eval $ac_link) 2>&5
4949 ac_status=$?
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); } &&
4952 { ac_try='test -s conftest$ac_exeext'
4953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4954 (eval $ac_try) 2>&5
4955 ac_status=$?
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); }; }; then
4958 eval "$as_ac_var=yes"
4959 else
4960 echo "$as_me: failed program was:" >&5
4961 cat conftest.$ac_ext >&5
4962 eval "$as_ac_var=no"
4964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4967 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4968 if test `eval echo '${'$as_ac_var'}'` = yes; then
4969 cat >>confdefs.h <<_ACEOF
4970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4971 _ACEOF
4973 else
4975 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4976 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4977 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4979 else
4980 ac_check_lib_save_LIBS=$LIBS
4981 LIBS="-lnsl $LIBS"
4982 cat >conftest.$ac_ext <<_ACEOF
4983 #line $LINENO "configure"
4984 #include "confdefs.h"
4986 /* Override any gcc2 internal prototype to avoid an error. */
4987 #ifdef __cplusplus
4988 extern "C"
4989 #endif
4990 /* We use char because int might match the return type of a gcc2
4991 builtin and then its argument prototype would still apply. */
4992 char gethostbyname ();
4993 #ifdef F77_DUMMY_MAIN
4994 # ifdef __cplusplus
4995 extern "C"
4996 # endif
4997 int F77_DUMMY_MAIN() { return 1; }
4998 #endif
5000 main ()
5002 gethostbyname ();
5004 return 0;
5006 _ACEOF
5007 rm -f conftest.$ac_objext conftest$ac_exeext
5008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5009 (eval $ac_link) 2>&5
5010 ac_status=$?
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); } &&
5013 { ac_try='test -s conftest$ac_exeext'
5014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5015 (eval $ac_try) 2>&5
5016 ac_status=$?
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); }; }; then
5019 ac_cv_lib_nsl_gethostbyname=yes
5020 else
5021 echo "$as_me: failed program was:" >&5
5022 cat conftest.$ac_ext >&5
5023 ac_cv_lib_nsl_gethostbyname=no
5025 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5026 LIBS=$ac_check_lib_save_LIBS
5028 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5029 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5030 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5031 cat >>confdefs.h <<_ACEOF
5032 #define HAVE_LIBNSL 1
5033 _ACEOF
5035 LIBS="-lnsl $LIBS"
5040 done
5043 for ac_func in connect
5045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5046 echo "$as_me:$LINENO: checking for $ac_func" >&5
5047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5048 if eval "test \"\${$as_ac_var+set}\" = set"; then
5049 echo $ECHO_N "(cached) $ECHO_C" >&6
5050 else
5051 cat >conftest.$ac_ext <<_ACEOF
5052 #line $LINENO "configure"
5053 #include "confdefs.h"
5054 /* System header to define __stub macros and hopefully few prototypes,
5055 which can conflict with char $ac_func (); below. */
5056 #include <assert.h>
5057 /* Override any gcc2 internal prototype to avoid an error. */
5058 #ifdef __cplusplus
5059 extern "C"
5060 #endif
5061 /* We use char because int might match the return type of a gcc2
5062 builtin and then its argument prototype would still apply. */
5063 char $ac_func ();
5064 char (*f) ();
5066 #ifdef F77_DUMMY_MAIN
5067 # ifdef __cplusplus
5068 extern "C"
5069 # endif
5070 int F77_DUMMY_MAIN() { return 1; }
5071 #endif
5073 main ()
5075 /* The GNU C library defines this for functions which it implements
5076 to always fail with ENOSYS. Some functions are actually named
5077 something starting with __ and the normal name is an alias. */
5078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5079 choke me
5080 #else
5081 f = $ac_func;
5082 #endif
5085 return 0;
5087 _ACEOF
5088 rm -f conftest.$ac_objext conftest$ac_exeext
5089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5090 (eval $ac_link) 2>&5
5091 ac_status=$?
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } &&
5094 { ac_try='test -s conftest$ac_exeext'
5095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5096 (eval $ac_try) 2>&5
5097 ac_status=$?
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); }; }; then
5100 eval "$as_ac_var=yes"
5101 else
5102 echo "$as_me: failed program was:" >&5
5103 cat conftest.$ac_ext >&5
5104 eval "$as_ac_var=no"
5106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5109 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5110 if test `eval echo '${'$as_ac_var'}'` = yes; then
5111 cat >>confdefs.h <<_ACEOF
5112 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5113 _ACEOF
5115 else
5117 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5118 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5119 if test "${ac_cv_lib_socket_connect+set}" = set; then
5120 echo $ECHO_N "(cached) $ECHO_C" >&6
5121 else
5122 ac_check_lib_save_LIBS=$LIBS
5123 LIBS="-lsocket $LIBS"
5124 cat >conftest.$ac_ext <<_ACEOF
5125 #line $LINENO "configure"
5126 #include "confdefs.h"
5128 /* Override any gcc2 internal prototype to avoid an error. */
5129 #ifdef __cplusplus
5130 extern "C"
5131 #endif
5132 /* We use char because int might match the return type of a gcc2
5133 builtin and then its argument prototype would still apply. */
5134 char connect ();
5135 #ifdef F77_DUMMY_MAIN
5136 # ifdef __cplusplus
5137 extern "C"
5138 # endif
5139 int F77_DUMMY_MAIN() { return 1; }
5140 #endif
5142 main ()
5144 connect ();
5146 return 0;
5148 _ACEOF
5149 rm -f conftest.$ac_objext conftest$ac_exeext
5150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5151 (eval $ac_link) 2>&5
5152 ac_status=$?
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); } &&
5155 { ac_try='test -s conftest$ac_exeext'
5156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5157 (eval $ac_try) 2>&5
5158 ac_status=$?
5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); }; }; then
5161 ac_cv_lib_socket_connect=yes
5162 else
5163 echo "$as_me: failed program was:" >&5
5164 cat conftest.$ac_ext >&5
5165 ac_cv_lib_socket_connect=no
5167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5168 LIBS=$ac_check_lib_save_LIBS
5170 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5171 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5172 if test $ac_cv_lib_socket_connect = yes; then
5173 cat >>confdefs.h <<_ACEOF
5174 #define HAVE_LIBSOCKET 1
5175 _ACEOF
5177 LIBS="-lsocket $LIBS"
5182 done
5185 for ac_func in inet_aton
5187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5188 echo "$as_me:$LINENO: checking for $ac_func" >&5
5189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5190 if eval "test \"\${$as_ac_var+set}\" = set"; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5192 else
5193 cat >conftest.$ac_ext <<_ACEOF
5194 #line $LINENO "configure"
5195 #include "confdefs.h"
5196 /* System header to define __stub macros and hopefully few prototypes,
5197 which can conflict with char $ac_func (); below. */
5198 #include <assert.h>
5199 /* Override any gcc2 internal prototype to avoid an error. */
5200 #ifdef __cplusplus
5201 extern "C"
5202 #endif
5203 /* We use char because int might match the return type of a gcc2
5204 builtin and then its argument prototype would still apply. */
5205 char $ac_func ();
5206 char (*f) ();
5208 #ifdef F77_DUMMY_MAIN
5209 # ifdef __cplusplus
5210 extern "C"
5211 # endif
5212 int F77_DUMMY_MAIN() { return 1; }
5213 #endif
5215 main ()
5217 /* The GNU C library defines this for functions which it implements
5218 to always fail with ENOSYS. Some functions are actually named
5219 something starting with __ and the normal name is an alias. */
5220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5221 choke me
5222 #else
5223 f = $ac_func;
5224 #endif
5227 return 0;
5229 _ACEOF
5230 rm -f conftest.$ac_objext conftest$ac_exeext
5231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5232 (eval $ac_link) 2>&5
5233 ac_status=$?
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); } &&
5236 { ac_try='test -s conftest$ac_exeext'
5237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5238 (eval $ac_try) 2>&5
5239 ac_status=$?
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); }; }; then
5242 eval "$as_ac_var=yes"
5243 else
5244 echo "$as_me: failed program was:" >&5
5245 cat conftest.$ac_ext >&5
5246 eval "$as_ac_var=no"
5248 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5251 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5252 if test `eval echo '${'$as_ac_var'}'` = yes; then
5253 cat >>confdefs.h <<_ACEOF
5254 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5255 _ACEOF
5257 else
5259 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
5260 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5261 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5262 echo $ECHO_N "(cached) $ECHO_C" >&6
5263 else
5264 ac_check_lib_save_LIBS=$LIBS
5265 LIBS="-lresolv $LIBS"
5266 cat >conftest.$ac_ext <<_ACEOF
5267 #line $LINENO "configure"
5268 #include "confdefs.h"
5270 /* Override any gcc2 internal prototype to avoid an error. */
5271 #ifdef __cplusplus
5272 extern "C"
5273 #endif
5274 /* We use char because int might match the return type of a gcc2
5275 builtin and then its argument prototype would still apply. */
5276 char inet_aton ();
5277 #ifdef F77_DUMMY_MAIN
5278 # ifdef __cplusplus
5279 extern "C"
5280 # endif
5281 int F77_DUMMY_MAIN() { return 1; }
5282 #endif
5284 main ()
5286 inet_aton ();
5288 return 0;
5290 _ACEOF
5291 rm -f conftest.$ac_objext conftest$ac_exeext
5292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5293 (eval $ac_link) 2>&5
5294 ac_status=$?
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); } &&
5297 { ac_try='test -s conftest$ac_exeext'
5298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299 (eval $ac_try) 2>&5
5300 ac_status=$?
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }; }; then
5303 ac_cv_lib_resolv_inet_aton=yes
5304 else
5305 echo "$as_me: failed program was:" >&5
5306 cat conftest.$ac_ext >&5
5307 ac_cv_lib_resolv_inet_aton=no
5309 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5310 LIBS=$ac_check_lib_save_LIBS
5312 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
5313 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5314 if test $ac_cv_lib_resolv_inet_aton = yes; then
5315 cat >>confdefs.h <<_ACEOF
5316 #define HAVE_LIBRESOLV 1
5317 _ACEOF
5319 LIBS="-lresolv $LIBS"
5324 done
5327 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
5328 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5329 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5331 else
5332 ac_check_lib_save_LIBS=$LIBS
5333 LIBS="-lxpg4 $LIBS"
5334 cat >conftest.$ac_ext <<_ACEOF
5335 #line $LINENO "configure"
5336 #include "confdefs.h"
5338 /* Override any gcc2 internal prototype to avoid an error. */
5339 #ifdef __cplusplus
5340 extern "C"
5341 #endif
5342 /* We use char because int might match the return type of a gcc2
5343 builtin and then its argument prototype would still apply. */
5344 char _xpg4_setrunelocale ();
5345 #ifdef F77_DUMMY_MAIN
5346 # ifdef __cplusplus
5347 extern "C"
5348 # endif
5349 int F77_DUMMY_MAIN() { return 1; }
5350 #endif
5352 main ()
5354 _xpg4_setrunelocale ();
5356 return 0;
5358 _ACEOF
5359 rm -f conftest.$ac_objext conftest$ac_exeext
5360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5361 (eval $ac_link) 2>&5
5362 ac_status=$?
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } &&
5365 { ac_try='test -s conftest$ac_exeext'
5366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367 (eval $ac_try) 2>&5
5368 ac_status=$?
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }; }; then
5371 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
5372 else
5373 echo "$as_me: failed program was:" >&5
5374 cat conftest.$ac_ext >&5
5375 ac_cv_lib_xpg4__xpg4_setrunelocale=no
5377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5378 LIBS=$ac_check_lib_save_LIBS
5380 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
5381 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5382 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
5383 cat >>confdefs.h <<_ACEOF
5384 #define HAVE_LIBXPG4 1
5385 _ACEOF
5387 LIBS="-lxpg4 $LIBS"
5392 echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5
5393 echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
5394 if test "${ac_cv_lib_mmap_mmap+set}" = set; then
5395 echo $ECHO_N "(cached) $ECHO_C" >&6
5396 else
5397 ac_check_lib_save_LIBS=$LIBS
5398 LIBS="-lmmap $LIBS"
5399 cat >conftest.$ac_ext <<_ACEOF
5400 #line $LINENO "configure"
5401 #include "confdefs.h"
5403 /* Override any gcc2 internal prototype to avoid an error. */
5404 #ifdef __cplusplus
5405 extern "C"
5406 #endif
5407 /* We use char because int might match the return type of a gcc2
5408 builtin and then its argument prototype would still apply. */
5409 char mmap ();
5410 #ifdef F77_DUMMY_MAIN
5411 # ifdef __cplusplus
5412 extern "C"
5413 # endif
5414 int F77_DUMMY_MAIN() { return 1; }
5415 #endif
5417 main ()
5419 mmap ();
5421 return 0;
5423 _ACEOF
5424 rm -f conftest.$ac_objext conftest$ac_exeext
5425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5426 (eval $ac_link) 2>&5
5427 ac_status=$?
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); } &&
5430 { ac_try='test -s conftest$ac_exeext'
5431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432 (eval $ac_try) 2>&5
5433 ac_status=$?
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); }; }; then
5436 ac_cv_lib_mmap_mmap=yes
5437 else
5438 echo "$as_me: failed program was:" >&5
5439 cat conftest.$ac_ext >&5
5440 ac_cv_lib_mmap_mmap=no
5442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5443 LIBS=$ac_check_lib_save_LIBS
5445 echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5
5446 echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
5447 if test $ac_cv_lib_mmap_mmap = yes; then
5448 cat >>confdefs.h <<_ACEOF
5449 #define HAVE_LIBMMAP 1
5450 _ACEOF
5452 LIBS="-lmmap $LIBS"
5457 JPEGLIB=""
5459 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5460 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5461 if test "${ac_cv_header_stdc+set}" = set; then
5462 echo $ECHO_N "(cached) $ECHO_C" >&6
5463 else
5464 cat >conftest.$ac_ext <<_ACEOF
5465 #line $LINENO "configure"
5466 #include "confdefs.h"
5467 #include <stdlib.h>
5468 #include <stdarg.h>
5469 #include <string.h>
5470 #include <float.h>
5472 _ACEOF
5473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5475 ac_status=$?
5476 egrep -v '^ *\+' conftest.er1 >conftest.err
5477 rm -f conftest.er1
5478 cat conftest.err >&5
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); } >/dev/null; then
5481 if test -s conftest.err; then
5482 ac_cpp_err=$ac_c_preproc_warn_flag
5483 else
5484 ac_cpp_err=
5486 else
5487 ac_cpp_err=yes
5489 if test -z "$ac_cpp_err"; then
5490 ac_cv_header_stdc=yes
5491 else
5492 echo "$as_me: failed program was:" >&5
5493 cat conftest.$ac_ext >&5
5494 ac_cv_header_stdc=no
5496 rm -f conftest.err conftest.$ac_ext
5498 if test $ac_cv_header_stdc = yes; then
5499 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5500 cat >conftest.$ac_ext <<_ACEOF
5501 #line $LINENO "configure"
5502 #include "confdefs.h"
5503 #include <string.h>
5505 _ACEOF
5506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5507 egrep "memchr" >/dev/null 2>&1; then
5509 else
5510 ac_cv_header_stdc=no
5512 rm -f conftest*
5516 if test $ac_cv_header_stdc = yes; then
5517 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5518 cat >conftest.$ac_ext <<_ACEOF
5519 #line $LINENO "configure"
5520 #include "confdefs.h"
5521 #include <stdlib.h>
5523 _ACEOF
5524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5525 egrep "free" >/dev/null 2>&1; then
5527 else
5528 ac_cv_header_stdc=no
5530 rm -f conftest*
5534 if test $ac_cv_header_stdc = yes; then
5535 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5536 if test "$cross_compiling" = yes; then
5538 else
5539 cat >conftest.$ac_ext <<_ACEOF
5540 #line $LINENO "configure"
5541 #include "confdefs.h"
5542 #include <ctype.h>
5543 #if ((' ' & 0x0FF) == 0x020)
5544 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5545 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5546 #else
5547 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5548 || ('j' <= (c) && (c) <= 'r') \
5549 || ('s' <= (c) && (c) <= 'z'))
5550 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5551 #endif
5553 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5555 main ()
5557 int i;
5558 for (i = 0; i < 256; i++)
5559 if (XOR (islower (i), ISLOWER (i))
5560 || toupper (i) != TOUPPER (i))
5561 exit(2);
5562 exit (0);
5564 _ACEOF
5565 rm -f conftest$ac_exeext
5566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5567 (eval $ac_link) 2>&5
5568 ac_status=$?
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5572 (eval $ac_try) 2>&5
5573 ac_status=$?
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); }; }; then
5577 else
5578 echo "$as_me: program exited with status $ac_status" >&5
5579 echo "$as_me: failed program was:" >&5
5580 cat conftest.$ac_ext >&5
5581 ( exit $ac_status )
5582 ac_cv_header_stdc=no
5584 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5588 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5589 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5590 if test $ac_cv_header_stdc = yes; then
5592 cat >>confdefs.h <<\_ACEOF
5593 #define STDC_HEADERS 1
5594 _ACEOF
5598 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5608 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5609 inttypes.h stdint.h unistd.h
5611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5612 echo "$as_me:$LINENO: checking for $ac_header" >&5
5613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5615 echo $ECHO_N "(cached) $ECHO_C" >&6
5616 else
5617 cat >conftest.$ac_ext <<_ACEOF
5618 #line $LINENO "configure"
5619 #include "confdefs.h"
5620 $ac_includes_default
5622 #include <$ac_header>
5623 _ACEOF
5624 rm -f conftest.$ac_objext
5625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5626 (eval $ac_compile) 2>&5
5627 ac_status=$?
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); } &&
5630 { ac_try='test -s conftest.$ac_objext'
5631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5632 (eval $ac_try) 2>&5
5633 ac_status=$?
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); }; }; then
5636 eval "$as_ac_Header=yes"
5637 else
5638 echo "$as_me: failed program was:" >&5
5639 cat conftest.$ac_ext >&5
5640 eval "$as_ac_Header=no"
5642 rm -f conftest.$ac_objext conftest.$ac_ext
5644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5647 cat >>confdefs.h <<_ACEOF
5648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5649 _ACEOF
5653 done
5657 for ac_header in jpeglib.h
5659 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5661 echo "$as_me:$LINENO: checking for $ac_header" >&5
5662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5664 echo $ECHO_N "(cached) $ECHO_C" >&6
5666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5668 else
5669 # Is the header compilable?
5670 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5671 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5672 cat >conftest.$ac_ext <<_ACEOF
5673 #line $LINENO "configure"
5674 #include "confdefs.h"
5675 $ac_includes_default
5676 #include <$ac_header>
5677 _ACEOF
5678 rm -f conftest.$ac_objext
5679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5680 (eval $ac_compile) 2>&5
5681 ac_status=$?
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); } &&
5684 { ac_try='test -s conftest.$ac_objext'
5685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686 (eval $ac_try) 2>&5
5687 ac_status=$?
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); }; }; then
5690 ac_header_compiler=yes
5691 else
5692 echo "$as_me: failed program was:" >&5
5693 cat conftest.$ac_ext >&5
5694 ac_header_compiler=no
5696 rm -f conftest.$ac_objext conftest.$ac_ext
5697 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5698 echo "${ECHO_T}$ac_header_compiler" >&6
5700 # Is the header present?
5701 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5702 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5703 cat >conftest.$ac_ext <<_ACEOF
5704 #line $LINENO "configure"
5705 #include "confdefs.h"
5706 #include <$ac_header>
5707 _ACEOF
5708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5709 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5710 ac_status=$?
5711 egrep -v '^ *\+' conftest.er1 >conftest.err
5712 rm -f conftest.er1
5713 cat conftest.err >&5
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); } >/dev/null; then
5716 if test -s conftest.err; then
5717 ac_cpp_err=$ac_c_preproc_warn_flag
5718 else
5719 ac_cpp_err=
5721 else
5722 ac_cpp_err=yes
5724 if test -z "$ac_cpp_err"; then
5725 ac_header_preproc=yes
5726 else
5727 echo "$as_me: failed program was:" >&5
5728 cat conftest.$ac_ext >&5
5729 ac_header_preproc=no
5731 rm -f conftest.err conftest.$ac_ext
5732 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5733 echo "${ECHO_T}$ac_header_preproc" >&6
5735 # So? What about this header?
5736 case $ac_header_compiler:$ac_header_preproc in
5737 yes:no )
5738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5741 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5742 no:yes )
5743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5746 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5748 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5749 esac
5750 echo "$as_me:$LINENO: checking for $ac_header" >&5
5751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5754 else
5755 eval "$as_ac_Header=$ac_header_preproc"
5757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5762 cat >>confdefs.h <<_ACEOF
5763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5764 _ACEOF
5765 echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
5766 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
5767 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
5768 echo $ECHO_N "(cached) $ECHO_C" >&6
5769 else
5770 ac_check_lib_save_LIBS=$LIBS
5771 LIBS="-ljpeg $LIBS"
5772 cat >conftest.$ac_ext <<_ACEOF
5773 #line $LINENO "configure"
5774 #include "confdefs.h"
5776 /* Override any gcc2 internal prototype to avoid an error. */
5777 #ifdef __cplusplus
5778 extern "C"
5779 #endif
5780 /* We use char because int might match the return type of a gcc2
5781 builtin and then its argument prototype would still apply. */
5782 char jpeg_start_decompress ();
5783 #ifdef F77_DUMMY_MAIN
5784 # ifdef __cplusplus
5785 extern "C"
5786 # endif
5787 int F77_DUMMY_MAIN() { return 1; }
5788 #endif
5790 main ()
5792 jpeg_start_decompress ();
5794 return 0;
5796 _ACEOF
5797 rm -f conftest.$ac_objext conftest$ac_exeext
5798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5799 (eval $ac_link) 2>&5
5800 ac_status=$?
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); } &&
5803 { ac_try='test -s conftest$ac_exeext'
5804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5805 (eval $ac_try) 2>&5
5806 ac_status=$?
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }; }; then
5809 ac_cv_lib_jpeg_jpeg_start_decompress=yes
5810 else
5811 echo "$as_me: failed program was:" >&5
5812 cat conftest.$ac_ext >&5
5813 ac_cv_lib_jpeg_jpeg_start_decompress=no
5815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5816 LIBS=$ac_check_lib_save_LIBS
5818 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
5819 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
5820 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
5822 cat >>confdefs.h <<\_ACEOF
5823 #define HAVE_LIBJPEG 1
5824 _ACEOF
5826 JPEGLIB="-ljpeg"
5833 done
5839 XFILES=""
5841 OPENGLFILES=""
5843 GLU32FILES=""
5844 if test "$have_x" = "yes"
5845 then
5846 XLIB="-lXext -lX11"
5847 ac_save_CPPFLAGS="$CPPFLAGS"
5848 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5851 for ac_header in X11/Xlib.h
5853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5855 echo "$as_me:$LINENO: checking for $ac_header" >&5
5856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5858 echo $ECHO_N "(cached) $ECHO_C" >&6
5860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5862 else
5863 # Is the header compilable?
5864 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5866 cat >conftest.$ac_ext <<_ACEOF
5867 #line $LINENO "configure"
5868 #include "confdefs.h"
5869 $ac_includes_default
5870 #include <$ac_header>
5871 _ACEOF
5872 rm -f conftest.$ac_objext
5873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5874 (eval $ac_compile) 2>&5
5875 ac_status=$?
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); } &&
5878 { ac_try='test -s conftest.$ac_objext'
5879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5880 (eval $ac_try) 2>&5
5881 ac_status=$?
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); }; }; then
5884 ac_header_compiler=yes
5885 else
5886 echo "$as_me: failed program was:" >&5
5887 cat conftest.$ac_ext >&5
5888 ac_header_compiler=no
5890 rm -f conftest.$ac_objext conftest.$ac_ext
5891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5892 echo "${ECHO_T}$ac_header_compiler" >&6
5894 # Is the header present?
5895 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5897 cat >conftest.$ac_ext <<_ACEOF
5898 #line $LINENO "configure"
5899 #include "confdefs.h"
5900 #include <$ac_header>
5901 _ACEOF
5902 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5903 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5904 ac_status=$?
5905 egrep -v '^ *\+' conftest.er1 >conftest.err
5906 rm -f conftest.er1
5907 cat conftest.err >&5
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); } >/dev/null; then
5910 if test -s conftest.err; then
5911 ac_cpp_err=$ac_c_preproc_warn_flag
5912 else
5913 ac_cpp_err=
5915 else
5916 ac_cpp_err=yes
5918 if test -z "$ac_cpp_err"; then
5919 ac_header_preproc=yes
5920 else
5921 echo "$as_me: failed program was:" >&5
5922 cat conftest.$ac_ext >&5
5923 ac_header_preproc=no
5925 rm -f conftest.err conftest.$ac_ext
5926 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5927 echo "${ECHO_T}$ac_header_preproc" >&6
5929 # So? What about this header?
5930 case $ac_header_compiler:$ac_header_preproc in
5931 yes:no )
5932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5935 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5936 no:yes )
5937 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5938 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5939 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5940 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5942 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5943 esac
5944 echo "$as_me:$LINENO: checking for $ac_header" >&5
5945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5947 echo $ECHO_N "(cached) $ECHO_C" >&6
5948 else
5949 eval "$as_ac_Header=$ac_header_preproc"
5951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5956 cat >>confdefs.h <<_ACEOF
5957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5958 _ACEOF
5961 for ac_header in X11/XKBlib.h
5963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5964 echo "$as_me:$LINENO: checking for $ac_header" >&5
5965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5968 else
5969 cat >conftest.$ac_ext <<_ACEOF
5970 #line $LINENO "configure"
5971 #include "confdefs.h"
5972 #include <X11/Xlib.h>
5974 #include <$ac_header>
5975 _ACEOF
5976 rm -f conftest.$ac_objext
5977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5978 (eval $ac_compile) 2>&5
5979 ac_status=$?
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); } &&
5982 { ac_try='test -s conftest.$ac_objext'
5983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5984 (eval $ac_try) 2>&5
5985 ac_status=$?
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); }; }; then
5988 eval "$as_ac_Header=yes"
5989 else
5990 echo "$as_me: failed program was:" >&5
5991 cat conftest.$ac_ext >&5
5992 eval "$as_ac_Header=no"
5994 rm -f conftest.$ac_objext conftest.$ac_ext
5996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5999 cat >>confdefs.h <<_ACEOF
6000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6001 _ACEOF
6002 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
6003 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
6004 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
6006 else
6007 ac_check_lib_save_LIBS=$LIBS
6008 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6009 cat >conftest.$ac_ext <<_ACEOF
6010 #line $LINENO "configure"
6011 #include "confdefs.h"
6013 /* Override any gcc2 internal prototype to avoid an error. */
6014 #ifdef __cplusplus
6015 extern "C"
6016 #endif
6017 /* We use char because int might match the return type of a gcc2
6018 builtin and then its argument prototype would still apply. */
6019 char XkbQueryExtension ();
6020 #ifdef F77_DUMMY_MAIN
6021 # ifdef __cplusplus
6022 extern "C"
6023 # endif
6024 int F77_DUMMY_MAIN() { return 1; }
6025 #endif
6027 main ()
6029 XkbQueryExtension ();
6031 return 0;
6033 _ACEOF
6034 rm -f conftest.$ac_objext conftest$ac_exeext
6035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6036 (eval $ac_link) 2>&5
6037 ac_status=$?
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); } &&
6040 { ac_try='test -s conftest$ac_exeext'
6041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6042 (eval $ac_try) 2>&5
6043 ac_status=$?
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); }; }; then
6046 ac_cv_lib_X11_XkbQueryExtension=yes
6047 else
6048 echo "$as_me: failed program was:" >&5
6049 cat conftest.$ac_ext >&5
6050 ac_cv_lib_X11_XkbQueryExtension=no
6052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6053 LIBS=$ac_check_lib_save_LIBS
6055 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
6056 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
6057 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
6059 cat >>confdefs.h <<\_ACEOF
6060 #define HAVE_XKB 1
6061 _ACEOF
6066 else
6067 { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5
6068 echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
6071 done
6075 for ac_header in X11/extensions/XShm.h
6077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6078 echo "$as_me:$LINENO: checking for $ac_header" >&5
6079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
6082 else
6083 cat >conftest.$ac_ext <<_ACEOF
6084 #line $LINENO "configure"
6085 #include "confdefs.h"
6086 #include <X11/Xlib.h>
6088 #include <$ac_header>
6089 _ACEOF
6090 rm -f conftest.$ac_objext
6091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6092 (eval $ac_compile) 2>&5
6093 ac_status=$?
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); } &&
6096 { ac_try='test -s conftest.$ac_objext'
6097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098 (eval $ac_try) 2>&5
6099 ac_status=$?
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; }; then
6102 eval "$as_ac_Header=yes"
6103 else
6104 echo "$as_me: failed program was:" >&5
6105 cat conftest.$ac_ext >&5
6106 eval "$as_ac_Header=no"
6108 rm -f conftest.$ac_objext conftest.$ac_ext
6110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6113 cat >>confdefs.h <<_ACEOF
6114 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6115 _ACEOF
6116 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
6117 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6118 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6119 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 else
6121 ac_check_lib_save_LIBS=$LIBS
6122 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6123 cat >conftest.$ac_ext <<_ACEOF
6124 #line $LINENO "configure"
6125 #include "confdefs.h"
6127 /* Override any gcc2 internal prototype to avoid an error. */
6128 #ifdef __cplusplus
6129 extern "C"
6130 #endif
6131 /* We use char because int might match the return type of a gcc2
6132 builtin and then its argument prototype would still apply. */
6133 char XShmQueryExtension ();
6134 #ifdef F77_DUMMY_MAIN
6135 # ifdef __cplusplus
6136 extern "C"
6137 # endif
6138 int F77_DUMMY_MAIN() { return 1; }
6139 #endif
6141 main ()
6143 XShmQueryExtension ();
6145 return 0;
6147 _ACEOF
6148 rm -f conftest.$ac_objext conftest$ac_exeext
6149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6150 (eval $ac_link) 2>&5
6151 ac_status=$?
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); } &&
6154 { ac_try='test -s conftest$ac_exeext'
6155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156 (eval $ac_try) 2>&5
6157 ac_status=$?
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; }; then
6160 ac_cv_lib_Xext_XShmQueryExtension=yes
6161 else
6162 echo "$as_me: failed program was:" >&5
6163 cat conftest.$ac_ext >&5
6164 ac_cv_lib_Xext_XShmQueryExtension=no
6166 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6167 LIBS=$ac_check_lib_save_LIBS
6169 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
6170 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
6171 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
6173 cat >>confdefs.h <<\_ACEOF
6174 #define HAVE_LIBXXSHM 1
6175 _ACEOF
6180 else
6181 { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5
6182 echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
6185 done
6189 for ac_header in X11/Xutil.h
6191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6192 echo "$as_me:$LINENO: checking for $ac_header" >&5
6193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
6196 else
6197 cat >conftest.$ac_ext <<_ACEOF
6198 #line $LINENO "configure"
6199 #include "confdefs.h"
6200 #include <X11/Xlib.h>
6202 #include <$ac_header>
6203 _ACEOF
6204 rm -f conftest.$ac_objext
6205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6206 (eval $ac_compile) 2>&5
6207 ac_status=$?
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); } &&
6210 { ac_try='test -s conftest.$ac_objext'
6211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6212 (eval $ac_try) 2>&5
6213 ac_status=$?
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); }; }; then
6216 eval "$as_ac_Header=yes"
6217 else
6218 echo "$as_me: failed program was:" >&5
6219 cat conftest.$ac_ext >&5
6220 eval "$as_ac_Header=no"
6222 rm -f conftest.$ac_objext conftest.$ac_ext
6224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6227 cat >>confdefs.h <<_ACEOF
6228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6229 _ACEOF
6233 done
6237 for ac_header in X11/extensions/shape.h
6239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6240 echo "$as_me:$LINENO: checking for $ac_header" >&5
6241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6243 echo $ECHO_N "(cached) $ECHO_C" >&6
6244 else
6245 cat >conftest.$ac_ext <<_ACEOF
6246 #line $LINENO "configure"
6247 #include "confdefs.h"
6248 #include <X11/Xlib.h>
6249 #ifdef HAVE_X11_XUTIL_H
6250 # include <X11/Xutil.h>
6251 #endif
6253 #include <$ac_header>
6254 _ACEOF
6255 rm -f conftest.$ac_objext
6256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6257 (eval $ac_compile) 2>&5
6258 ac_status=$?
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); } &&
6261 { ac_try='test -s conftest.$ac_objext'
6262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263 (eval $ac_try) 2>&5
6264 ac_status=$?
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); }; }; then
6267 eval "$as_ac_Header=yes"
6268 else
6269 echo "$as_me: failed program was:" >&5
6270 cat conftest.$ac_ext >&5
6271 eval "$as_ac_Header=no"
6273 rm -f conftest.$ac_objext conftest.$ac_ext
6275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6278 cat >>confdefs.h <<_ACEOF
6279 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6280 _ACEOF
6281 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
6282 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6283 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6284 echo $ECHO_N "(cached) $ECHO_C" >&6
6285 else
6286 ac_check_lib_save_LIBS=$LIBS
6287 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6288 cat >conftest.$ac_ext <<_ACEOF
6289 #line $LINENO "configure"
6290 #include "confdefs.h"
6292 /* Override any gcc2 internal prototype to avoid an error. */
6293 #ifdef __cplusplus
6294 extern "C"
6295 #endif
6296 /* We use char because int might match the return type of a gcc2
6297 builtin and then its argument prototype would still apply. */
6298 char XShapeQueryExtension ();
6299 #ifdef F77_DUMMY_MAIN
6300 # ifdef __cplusplus
6301 extern "C"
6302 # endif
6303 int F77_DUMMY_MAIN() { return 1; }
6304 #endif
6306 main ()
6308 XShapeQueryExtension ();
6310 return 0;
6312 _ACEOF
6313 rm -f conftest.$ac_objext conftest$ac_exeext
6314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6315 (eval $ac_link) 2>&5
6316 ac_status=$?
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); } &&
6319 { ac_try='test -s conftest$ac_exeext'
6320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6321 (eval $ac_try) 2>&5
6322 ac_status=$?
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); }; }; then
6325 ac_cv_lib_Xext_XShapeQueryExtension=yes
6326 else
6327 echo "$as_me: failed program was:" >&5
6328 cat conftest.$ac_ext >&5
6329 ac_cv_lib_Xext_XShapeQueryExtension=no
6331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6332 LIBS=$ac_check_lib_save_LIBS
6334 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6335 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6336 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6338 cat >>confdefs.h <<\_ACEOF
6339 #define HAVE_LIBXSHAPE 1
6340 _ACEOF
6345 else
6346 { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5
6347 echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
6350 done
6354 for ac_header in X11/extensions/xf86dga.h
6356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6357 echo "$as_me:$LINENO: checking for $ac_header" >&5
6358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6360 echo $ECHO_N "(cached) $ECHO_C" >&6
6361 else
6362 cat >conftest.$ac_ext <<_ACEOF
6363 #line $LINENO "configure"
6364 #include "confdefs.h"
6365 #include <X11/Xlib.h>
6367 #include <$ac_header>
6368 _ACEOF
6369 rm -f conftest.$ac_objext
6370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6371 (eval $ac_compile) 2>&5
6372 ac_status=$?
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); } &&
6375 { ac_try='test -s conftest.$ac_objext'
6376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6377 (eval $ac_try) 2>&5
6378 ac_status=$?
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }; }; then
6381 eval "$as_ac_Header=yes"
6382 else
6383 echo "$as_me: failed program was:" >&5
6384 cat conftest.$ac_ext >&5
6385 eval "$as_ac_Header=no"
6387 rm -f conftest.$ac_objext conftest.$ac_ext
6389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6392 cat >>confdefs.h <<_ACEOF
6393 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6394 _ACEOF
6395 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
6396 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6397 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
6398 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 else
6400 ac_check_lib_save_LIBS=$LIBS
6401 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6402 $LIBS"
6403 cat >conftest.$ac_ext <<_ACEOF
6404 #line $LINENO "configure"
6405 #include "confdefs.h"
6407 /* Override any gcc2 internal prototype to avoid an error. */
6408 #ifdef __cplusplus
6409 extern "C"
6410 #endif
6411 /* We use char because int might match the return type of a gcc2
6412 builtin and then its argument prototype would still apply. */
6413 char XDGAQueryExtension ();
6414 #ifdef F77_DUMMY_MAIN
6415 # ifdef __cplusplus
6416 extern "C"
6417 # endif
6418 int F77_DUMMY_MAIN() { return 1; }
6419 #endif
6421 main ()
6423 XDGAQueryExtension ();
6425 return 0;
6427 _ACEOF
6428 rm -f conftest.$ac_objext conftest$ac_exeext
6429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6430 (eval $ac_link) 2>&5
6431 ac_status=$?
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } &&
6434 { ac_try='test -s conftest$ac_exeext'
6435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436 (eval $ac_try) 2>&5
6437 ac_status=$?
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); }; }; then
6440 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
6441 else
6442 echo "$as_me: failed program was:" >&5
6443 cat conftest.$ac_ext >&5
6444 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
6446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6447 LIBS=$ac_check_lib_save_LIBS
6449 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
6450 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
6451 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
6453 cat >>confdefs.h <<\_ACEOF
6454 #define HAVE_LIBXXF86DGA2 1
6455 _ACEOF
6457 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
6459 else
6460 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
6461 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6462 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6464 else
6465 ac_check_lib_save_LIBS=$LIBS
6466 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6467 $LIBS"
6468 cat >conftest.$ac_ext <<_ACEOF
6469 #line $LINENO "configure"
6470 #include "confdefs.h"
6472 /* Override any gcc2 internal prototype to avoid an error. */
6473 #ifdef __cplusplus
6474 extern "C"
6475 #endif
6476 /* We use char because int might match the return type of a gcc2
6477 builtin and then its argument prototype would still apply. */
6478 char XF86DGAQueryExtension ();
6479 #ifdef F77_DUMMY_MAIN
6480 # ifdef __cplusplus
6481 extern "C"
6482 # endif
6483 int F77_DUMMY_MAIN() { return 1; }
6484 #endif
6486 main ()
6488 XF86DGAQueryExtension ();
6490 return 0;
6492 _ACEOF
6493 rm -f conftest.$ac_objext conftest$ac_exeext
6494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6495 (eval $ac_link) 2>&5
6496 ac_status=$?
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); } &&
6499 { ac_try='test -s conftest$ac_exeext'
6500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501 (eval $ac_try) 2>&5
6502 ac_status=$?
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); }; }; then
6505 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
6506 else
6507 echo "$as_me: failed program was:" >&5
6508 cat conftest.$ac_ext >&5
6509 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
6511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6512 LIBS=$ac_check_lib_save_LIBS
6514 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
6515 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
6516 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
6518 cat >>confdefs.h <<\_ACEOF
6519 #define HAVE_LIBXXF86DGA 1
6520 _ACEOF
6522 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
6530 else
6531 { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5
6532 echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
6535 done
6539 for ac_header in X11/extensions/xf86vmode.h
6541 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6542 echo "$as_me:$LINENO: checking for $ac_header" >&5
6543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6546 else
6547 cat >conftest.$ac_ext <<_ACEOF
6548 #line $LINENO "configure"
6549 #include "confdefs.h"
6550 #include <X11/Xlib.h>
6552 #include <$ac_header>
6553 _ACEOF
6554 rm -f conftest.$ac_objext
6555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6556 (eval $ac_compile) 2>&5
6557 ac_status=$?
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); } &&
6560 { ac_try='test -s conftest.$ac_objext'
6561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562 (eval $ac_try) 2>&5
6563 ac_status=$?
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); }; }; then
6566 eval "$as_ac_Header=yes"
6567 else
6568 echo "$as_me: failed program was:" >&5
6569 cat conftest.$ac_ext >&5
6570 eval "$as_ac_Header=no"
6572 rm -f conftest.$ac_objext conftest.$ac_ext
6574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6577 cat >>confdefs.h <<_ACEOF
6578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6579 _ACEOF
6580 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
6581 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
6582 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
6584 else
6585 ac_check_lib_save_LIBS=$LIBS
6586 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6587 $LIBS"
6588 cat >conftest.$ac_ext <<_ACEOF
6589 #line $LINENO "configure"
6590 #include "confdefs.h"
6592 /* Override any gcc2 internal prototype to avoid an error. */
6593 #ifdef __cplusplus
6594 extern "C"
6595 #endif
6596 /* We use char because int might match the return type of a gcc2
6597 builtin and then its argument prototype would still apply. */
6598 char XF86VidModeQueryExtension ();
6599 #ifdef F77_DUMMY_MAIN
6600 # ifdef __cplusplus
6601 extern "C"
6602 # endif
6603 int F77_DUMMY_MAIN() { return 1; }
6604 #endif
6606 main ()
6608 XF86VidModeQueryExtension ();
6610 return 0;
6612 _ACEOF
6613 rm -f conftest.$ac_objext conftest$ac_exeext
6614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6615 (eval $ac_link) 2>&5
6616 ac_status=$?
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); } &&
6619 { ac_try='test -s conftest$ac_exeext'
6620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6621 (eval $ac_try) 2>&5
6622 ac_status=$?
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); }; }; then
6625 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
6626 else
6627 echo "$as_me: failed program was:" >&5
6628 cat conftest.$ac_ext >&5
6629 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
6631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6632 LIBS=$ac_check_lib_save_LIBS
6634 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
6635 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
6636 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
6638 cat >>confdefs.h <<\_ACEOF
6639 #define HAVE_LIBXXF86VM 1
6640 _ACEOF
6642 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
6647 else
6648 { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
6649 echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
6652 done
6656 for ac_header in X11/extensions/Xvlib.h
6658 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6659 echo "$as_me:$LINENO: checking for $ac_header" >&5
6660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6662 echo $ECHO_N "(cached) $ECHO_C" >&6
6663 else
6664 cat >conftest.$ac_ext <<_ACEOF
6665 #line $LINENO "configure"
6666 #include "confdefs.h"
6667 #include <X11/Xlib.h>
6669 #include <$ac_header>
6670 _ACEOF
6671 rm -f conftest.$ac_objext
6672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6673 (eval $ac_compile) 2>&5
6674 ac_status=$?
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); } &&
6677 { ac_try='test -s conftest.$ac_objext'
6678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679 (eval $ac_try) 2>&5
6680 ac_status=$?
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); }; }; then
6683 eval "$as_ac_Header=yes"
6684 else
6685 echo "$as_me: failed program was:" >&5
6686 cat conftest.$ac_ext >&5
6687 eval "$as_ac_Header=no"
6689 rm -f conftest.$ac_objext conftest.$ac_ext
6691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6694 cat >>confdefs.h <<_ACEOF
6695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6696 _ACEOF
6697 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
6698 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
6699 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6701 else
6702 ac_check_lib_save_LIBS=$LIBS
6703 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6704 $LIBS"
6705 cat >conftest.$ac_ext <<_ACEOF
6706 #line $LINENO "configure"
6707 #include "confdefs.h"
6709 /* Override any gcc2 internal prototype to avoid an error. */
6710 #ifdef __cplusplus
6711 extern "C"
6712 #endif
6713 /* We use char because int might match the return type of a gcc2
6714 builtin and then its argument prototype would still apply. */
6715 char XvShmCreateImage ();
6716 #ifdef F77_DUMMY_MAIN
6717 # ifdef __cplusplus
6718 extern "C"
6719 # endif
6720 int F77_DUMMY_MAIN() { return 1; }
6721 #endif
6723 main ()
6725 XvShmCreateImage ();
6727 return 0;
6729 _ACEOF
6730 rm -f conftest.$ac_objext conftest$ac_exeext
6731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6732 (eval $ac_link) 2>&5
6733 ac_status=$?
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); } &&
6736 { ac_try='test -s conftest$ac_exeext'
6737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6738 (eval $ac_try) 2>&5
6739 ac_status=$?
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); }; }; then
6742 ac_cv_lib_Xv_XvShmCreateImage=yes
6743 else
6744 echo "$as_me: failed program was:" >&5
6745 cat conftest.$ac_ext >&5
6746 ac_cv_lib_Xv_XvShmCreateImage=no
6748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6749 LIBS=$ac_check_lib_save_LIBS
6751 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
6752 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
6753 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
6755 cat >>confdefs.h <<\_ACEOF
6756 #define HAVE_XVIDEO 1
6757 _ACEOF
6759 X_PRE_LIBS="$X_PRE_LIBS -lXv"
6764 else
6765 { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5
6766 echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
6769 done
6773 for ac_header in X11/extensions/Xrender.h
6775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6776 echo "$as_me:$LINENO: checking for $ac_header" >&5
6777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
6780 else
6781 cat >conftest.$ac_ext <<_ACEOF
6782 #line $LINENO "configure"
6783 #include "confdefs.h"
6784 #include <X11/Xlib.h>
6786 #include <$ac_header>
6787 _ACEOF
6788 rm -f conftest.$ac_objext
6789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6790 (eval $ac_compile) 2>&5
6791 ac_status=$?
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); } &&
6794 { ac_try='test -s conftest.$ac_objext'
6795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6796 (eval $ac_try) 2>&5
6797 ac_status=$?
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); }; }; then
6800 eval "$as_ac_Header=yes"
6801 else
6802 echo "$as_me: failed program was:" >&5
6803 cat conftest.$ac_ext >&5
6804 eval "$as_ac_Header=no"
6806 rm -f conftest.$ac_objext conftest.$ac_ext
6808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6809 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6811 cat >>confdefs.h <<_ACEOF
6812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6813 _ACEOF
6817 done
6823 done
6825 if test "x$enable_opengl" != "xno"
6826 then
6827 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
6828 then
6829 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
6830 This prevents linking to OpenGL. Delete the file and restart configure." >&5
6831 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
6832 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
6833 { (exit 1); exit 1; }; }
6838 for ac_header in GL/gl.h GL/glx.h
6840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6842 echo "$as_me:$LINENO: checking for $ac_header" >&5
6843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6845 echo $ECHO_N "(cached) $ECHO_C" >&6
6847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6849 else
6850 # Is the header compilable?
6851 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6852 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6853 cat >conftest.$ac_ext <<_ACEOF
6854 #line $LINENO "configure"
6855 #include "confdefs.h"
6856 $ac_includes_default
6857 #include <$ac_header>
6858 _ACEOF
6859 rm -f conftest.$ac_objext
6860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6861 (eval $ac_compile) 2>&5
6862 ac_status=$?
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); } &&
6865 { ac_try='test -s conftest.$ac_objext'
6866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6867 (eval $ac_try) 2>&5
6868 ac_status=$?
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); }; }; then
6871 ac_header_compiler=yes
6872 else
6873 echo "$as_me: failed program was:" >&5
6874 cat conftest.$ac_ext >&5
6875 ac_header_compiler=no
6877 rm -f conftest.$ac_objext conftest.$ac_ext
6878 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6879 echo "${ECHO_T}$ac_header_compiler" >&6
6881 # Is the header present?
6882 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6883 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6884 cat >conftest.$ac_ext <<_ACEOF
6885 #line $LINENO "configure"
6886 #include "confdefs.h"
6887 #include <$ac_header>
6888 _ACEOF
6889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6891 ac_status=$?
6892 egrep -v '^ *\+' conftest.er1 >conftest.err
6893 rm -f conftest.er1
6894 cat conftest.err >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } >/dev/null; then
6897 if test -s conftest.err; then
6898 ac_cpp_err=$ac_c_preproc_warn_flag
6899 else
6900 ac_cpp_err=
6902 else
6903 ac_cpp_err=yes
6905 if test -z "$ac_cpp_err"; then
6906 ac_header_preproc=yes
6907 else
6908 echo "$as_me: failed program was:" >&5
6909 cat conftest.$ac_ext >&5
6910 ac_header_preproc=no
6912 rm -f conftest.err conftest.$ac_ext
6913 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6914 echo "${ECHO_T}$ac_header_preproc" >&6
6916 # So? What about this header?
6917 case $ac_header_compiler:$ac_header_preproc in
6918 yes:no )
6919 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6920 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6923 no:yes )
6924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6927 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6930 esac
6931 echo "$as_me:$LINENO: checking for $ac_header" >&5
6932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6934 echo $ECHO_N "(cached) $ECHO_C" >&6
6935 else
6936 eval "$as_ac_Header=$ac_header_preproc"
6938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6943 cat >>confdefs.h <<_ACEOF
6944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6945 _ACEOF
6949 done
6951 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
6952 then
6954 for ac_header in GL/glext.h
6956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6957 echo "$as_me:$LINENO: checking for $ac_header" >&5
6958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6960 echo $ECHO_N "(cached) $ECHO_C" >&6
6961 else
6962 cat >conftest.$ac_ext <<_ACEOF
6963 #line $LINENO "configure"
6964 #include "confdefs.h"
6965 #include <GL/glx.h>
6967 #include <$ac_header>
6968 _ACEOF
6969 rm -f conftest.$ac_objext
6970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6971 (eval $ac_compile) 2>&5
6972 ac_status=$?
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); } &&
6975 { ac_try='test -s conftest.$ac_objext'
6976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6977 (eval $ac_try) 2>&5
6978 ac_status=$?
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); }; }; then
6981 eval "$as_ac_Header=yes"
6982 else
6983 echo "$as_me: failed program was:" >&5
6984 cat conftest.$ac_ext >&5
6985 eval "$as_ac_Header=no"
6987 rm -f conftest.$ac_objext conftest.$ac_ext
6989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6990 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6992 cat >>confdefs.h <<_ACEOF
6993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6994 _ACEOF
6998 done
7000 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
7001 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
7002 if test "${wine_cv_opengl_version_OK+set}" = set; then
7003 echo $ECHO_N "(cached) $ECHO_C" >&6
7004 else
7005 cat >conftest.$ac_ext <<_ACEOF
7006 #line $LINENO "configure"
7007 #include "confdefs.h"
7008 #include <GL/gl.h>
7009 #ifdef F77_DUMMY_MAIN
7010 # ifdef __cplusplus
7011 extern "C"
7012 # endif
7013 int F77_DUMMY_MAIN() { return 1; }
7014 #endif
7016 main ()
7018 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
7020 return 0;
7022 _ACEOF
7023 rm -f conftest.$ac_objext
7024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7025 (eval $ac_compile) 2>&5
7026 ac_status=$?
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); } &&
7029 { ac_try='test -s conftest.$ac_objext'
7030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7031 (eval $ac_try) 2>&5
7032 ac_status=$?
7033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034 (exit $ac_status); }; }; then
7035 wine_cv_opengl_version_OK="yes"
7036 else
7037 echo "$as_me: failed program was:" >&5
7038 cat conftest.$ac_ext >&5
7039 wine_cv_opengl_version_OK="no"
7042 rm -f conftest.$ac_objext conftest.$ac_ext
7045 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
7046 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
7048 echo "$as_me:$LINENO: checking for thread-safe OpenGL version" >&5
7049 echo $ECHO_N "checking for thread-safe OpenGL version... $ECHO_C" >&6
7050 if test "${wine_cv_opengl_version_threadsafe+set}" = set; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7052 else
7053 saved_libs=$LIBS
7054 LIBS="$X_LIBS -lGL"
7055 cat >conftest.$ac_ext <<_ACEOF
7056 #line $LINENO "configure"
7057 #include "confdefs.h"
7059 #ifdef F77_DUMMY_MAIN
7060 # ifdef __cplusplus
7061 extern "C"
7062 # endif
7063 int F77_DUMMY_MAIN() { return 1; }
7064 #endif
7066 main ()
7068 pthread_getspecific();
7070 return 0;
7072 _ACEOF
7073 rm -f conftest.$ac_objext conftest$ac_exeext
7074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7075 (eval $ac_link) 2>&5
7076 ac_status=$?
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); } &&
7079 { ac_try='test -s conftest$ac_exeext'
7080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7081 (eval $ac_try) 2>&5
7082 ac_status=$?
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); }; }; then
7085 wine_cv_opengl_version_threadsafe="yes"
7086 else
7087 echo "$as_me: failed program was:" >&5
7088 cat conftest.$ac_ext >&5
7089 wine_cv_opengl_version_threadsafe="no"
7091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7092 LIBS=$saved_libs
7095 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_threadsafe" >&5
7096 echo "${ECHO_T}$wine_cv_opengl_version_threadsafe" >&6
7098 if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o "x$enable_opengl" = "xyes" \)
7099 then
7100 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
7101 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7102 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7104 else
7105 ac_check_lib_save_LIBS=$LIBS
7106 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7107 cat >conftest.$ac_ext <<_ACEOF
7108 #line $LINENO "configure"
7109 #include "confdefs.h"
7111 /* Override any gcc2 internal prototype to avoid an error. */
7112 #ifdef __cplusplus
7113 extern "C"
7114 #endif
7115 /* We use char because int might match the return type of a gcc2
7116 builtin and then its argument prototype would still apply. */
7117 char glXCreateContext ();
7118 #ifdef F77_DUMMY_MAIN
7119 # ifdef __cplusplus
7120 extern "C"
7121 # endif
7122 int F77_DUMMY_MAIN() { return 1; }
7123 #endif
7125 main ()
7127 glXCreateContext ();
7129 return 0;
7131 _ACEOF
7132 rm -f conftest.$ac_objext conftest$ac_exeext
7133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7134 (eval $ac_link) 2>&5
7135 ac_status=$?
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); } &&
7138 { ac_try='test -s conftest$ac_exeext'
7139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7140 (eval $ac_try) 2>&5
7141 ac_status=$?
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); }; }; then
7144 ac_cv_lib_GL_glXCreateContext=yes
7145 else
7146 echo "$as_me: failed program was:" >&5
7147 cat conftest.$ac_ext >&5
7148 ac_cv_lib_GL_glXCreateContext=no
7150 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7151 LIBS=$ac_check_lib_save_LIBS
7153 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
7154 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
7155 if test $ac_cv_lib_GL_glXCreateContext = yes; then
7156 X_PRE_LIBS="$X_PRE_LIBS -lGL"
7161 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
7162 then
7163 OPENGLFILES='$(OPENGLFILES)'
7165 cat >>confdefs.h <<\_ACEOF
7166 #define HAVE_OPENGL 1
7167 _ACEOF
7170 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
7171 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
7172 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
7173 echo $ECHO_N "(cached) $ECHO_C" >&6
7174 else
7175 ac_check_lib_save_LIBS=$LIBS
7176 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7177 cat >conftest.$ac_ext <<_ACEOF
7178 #line $LINENO "configure"
7179 #include "confdefs.h"
7181 /* Override any gcc2 internal prototype to avoid an error. */
7182 #ifdef __cplusplus
7183 extern "C"
7184 #endif
7185 /* We use char because int might match the return type of a gcc2
7186 builtin and then its argument prototype would still apply. */
7187 char glXGetProcAddressARB ();
7188 #ifdef F77_DUMMY_MAIN
7189 # ifdef __cplusplus
7190 extern "C"
7191 # endif
7192 int F77_DUMMY_MAIN() { return 1; }
7193 #endif
7195 main ()
7197 glXGetProcAddressARB ();
7199 return 0;
7201 _ACEOF
7202 rm -f conftest.$ac_objext conftest$ac_exeext
7203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7204 (eval $ac_link) 2>&5
7205 ac_status=$?
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); } &&
7208 { ac_try='test -s conftest$ac_exeext'
7209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7210 (eval $ac_try) 2>&5
7211 ac_status=$?
7212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213 (exit $ac_status); }; }; then
7214 ac_cv_lib_GL_glXGetProcAddressARB=yes
7215 else
7216 echo "$as_me: failed program was:" >&5
7217 cat conftest.$ac_ext >&5
7218 ac_cv_lib_GL_glXGetProcAddressARB=no
7220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7221 LIBS=$ac_check_lib_save_LIBS
7223 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
7224 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
7225 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
7227 cat >>confdefs.h <<\_ACEOF
7228 #define HAVE_GLX_GETPROCADDRESS 1
7229 _ACEOF
7234 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
7235 then
7236 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
7237 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
7238 if test "${wine_cv_extension_prototypes+set}" = set; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7240 else
7241 cat >conftest.$ac_ext <<_ACEOF
7242 #line $LINENO "configure"
7243 #include "confdefs.h"
7244 #include <GL/gl.h>
7245 #ifdef HAVE_GL_GLEXT_H
7246 # include <GL/glext.h>
7247 #endif
7249 #ifdef F77_DUMMY_MAIN
7250 # ifdef __cplusplus
7251 extern "C"
7252 # endif
7253 int F77_DUMMY_MAIN() { return 1; }
7254 #endif
7256 main ()
7258 PFNGLCOLORTABLEEXTPROC test_proc;
7260 return 0;
7262 _ACEOF
7263 rm -f conftest.$ac_objext
7264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7265 (eval $ac_compile) 2>&5
7266 ac_status=$?
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); } &&
7269 { ac_try='test -s conftest.$ac_objext'
7270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7271 (eval $ac_try) 2>&5
7272 ac_status=$?
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); }; }; then
7275 wine_cv_extension_prototypes="yes"
7276 else
7277 echo "$as_me: failed program was:" >&5
7278 cat conftest.$ac_ext >&5
7279 wine_cv_extension_prototypes="no"
7282 rm -f conftest.$ac_objext conftest.$ac_ext
7285 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
7286 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
7287 if test "$wine_cv_extension_prototypes" = "yes"
7288 then
7290 cat >>confdefs.h <<\_ACEOF
7291 #define HAVE_GLEXT_PROTOTYPES 1
7292 _ACEOF
7298 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
7299 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
7300 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7302 else
7303 ac_check_lib_save_LIBS=$LIBS
7304 LIBS="-lGLU $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
7305 $LIBS"
7306 cat >conftest.$ac_ext <<_ACEOF
7307 #line $LINENO "configure"
7308 #include "confdefs.h"
7310 /* Override any gcc2 internal prototype to avoid an error. */
7311 #ifdef __cplusplus
7312 extern "C"
7313 #endif
7314 /* We use char because int might match the return type of a gcc2
7315 builtin and then its argument prototype would still apply. */
7316 char gluLookAt ();
7317 #ifdef F77_DUMMY_MAIN
7318 # ifdef __cplusplus
7319 extern "C"
7320 # endif
7321 int F77_DUMMY_MAIN() { return 1; }
7322 #endif
7324 main ()
7326 gluLookAt ();
7328 return 0;
7330 _ACEOF
7331 rm -f conftest.$ac_objext conftest$ac_exeext
7332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7333 (eval $ac_link) 2>&5
7334 ac_status=$?
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); } &&
7337 { ac_try='test -s conftest$ac_exeext'
7338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7339 (eval $ac_try) 2>&5
7340 ac_status=$?
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); }; }; then
7343 ac_cv_lib_GLU_gluLookAt=yes
7344 else
7345 echo "$as_me: failed program was:" >&5
7346 cat conftest.$ac_ext >&5
7347 ac_cv_lib_GLU_gluLookAt=no
7349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7350 LIBS=$ac_check_lib_save_LIBS
7352 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
7353 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
7354 if test $ac_cv_lib_GLU_gluLookAt = yes; then
7355 X_PRE_LIBS="$X_PRE_LIBS -lGLU"
7356 GLU32FILES='$(GLU32FILES)'
7364 CPPFLAGS="$ac_save_CPPFLAGS"
7365 XFILES='$(XFILES)'
7366 else
7367 XLIB=""
7368 X_CFLAGS=""
7369 X_LIBS=""
7372 CURSESLIBS=""
7373 if test "x$with_curses" != "xno"
7374 then
7376 for ac_header in ncurses.h
7378 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7380 echo "$as_me:$LINENO: checking for $ac_header" >&5
7381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7383 echo $ECHO_N "(cached) $ECHO_C" >&6
7385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7387 else
7388 # Is the header compilable?
7389 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7390 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7391 cat >conftest.$ac_ext <<_ACEOF
7392 #line $LINENO "configure"
7393 #include "confdefs.h"
7394 $ac_includes_default
7395 #include <$ac_header>
7396 _ACEOF
7397 rm -f conftest.$ac_objext
7398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7399 (eval $ac_compile) 2>&5
7400 ac_status=$?
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); } &&
7403 { ac_try='test -s conftest.$ac_objext'
7404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7405 (eval $ac_try) 2>&5
7406 ac_status=$?
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); }; }; then
7409 ac_header_compiler=yes
7410 else
7411 echo "$as_me: failed program was:" >&5
7412 cat conftest.$ac_ext >&5
7413 ac_header_compiler=no
7415 rm -f conftest.$ac_objext conftest.$ac_ext
7416 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7417 echo "${ECHO_T}$ac_header_compiler" >&6
7419 # Is the header present?
7420 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7422 cat >conftest.$ac_ext <<_ACEOF
7423 #line $LINENO "configure"
7424 #include "confdefs.h"
7425 #include <$ac_header>
7426 _ACEOF
7427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7429 ac_status=$?
7430 egrep -v '^ *\+' conftest.er1 >conftest.err
7431 rm -f conftest.er1
7432 cat conftest.err >&5
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); } >/dev/null; then
7435 if test -s conftest.err; then
7436 ac_cpp_err=$ac_c_preproc_warn_flag
7437 else
7438 ac_cpp_err=
7440 else
7441 ac_cpp_err=yes
7443 if test -z "$ac_cpp_err"; then
7444 ac_header_preproc=yes
7445 else
7446 echo "$as_me: failed program was:" >&5
7447 cat conftest.$ac_ext >&5
7448 ac_header_preproc=no
7450 rm -f conftest.err conftest.$ac_ext
7451 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7452 echo "${ECHO_T}$ac_header_preproc" >&6
7454 # So? What about this header?
7455 case $ac_header_compiler:$ac_header_preproc in
7456 yes:no )
7457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7458 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7461 no:yes )
7462 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7463 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7464 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7465 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7468 esac
7469 echo "$as_me:$LINENO: checking for $ac_header" >&5
7470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7472 echo $ECHO_N "(cached) $ECHO_C" >&6
7473 else
7474 eval "$as_ac_Header=$ac_header_preproc"
7476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7481 cat >>confdefs.h <<_ACEOF
7482 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7483 _ACEOF
7484 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
7485 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
7486 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
7487 echo $ECHO_N "(cached) $ECHO_C" >&6
7488 else
7489 ac_check_lib_save_LIBS=$LIBS
7490 LIBS="-lncurses $LIBS"
7491 cat >conftest.$ac_ext <<_ACEOF
7492 #line $LINENO "configure"
7493 #include "confdefs.h"
7495 /* Override any gcc2 internal prototype to avoid an error. */
7496 #ifdef __cplusplus
7497 extern "C"
7498 #endif
7499 /* We use char because int might match the return type of a gcc2
7500 builtin and then its argument prototype would still apply. */
7501 char waddch ();
7502 #ifdef F77_DUMMY_MAIN
7503 # ifdef __cplusplus
7504 extern "C"
7505 # endif
7506 int F77_DUMMY_MAIN() { return 1; }
7507 #endif
7509 main ()
7511 waddch ();
7513 return 0;
7515 _ACEOF
7516 rm -f conftest.$ac_objext conftest$ac_exeext
7517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7518 (eval $ac_link) 2>&5
7519 ac_status=$?
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); } &&
7522 { ac_try='test -s conftest$ac_exeext'
7523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7524 (eval $ac_try) 2>&5
7525 ac_status=$?
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); }; }; then
7528 ac_cv_lib_ncurses_waddch=yes
7529 else
7530 echo "$as_me: failed program was:" >&5
7531 cat conftest.$ac_ext >&5
7532 ac_cv_lib_ncurses_waddch=no
7534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7535 LIBS=$ac_check_lib_save_LIBS
7537 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
7538 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
7539 if test $ac_cv_lib_ncurses_waddch = yes; then
7541 cat >>confdefs.h <<\_ACEOF
7542 #define HAVE_LIBNCURSES 1
7543 _ACEOF
7545 CURSESLIBS="-lncurses"
7546 else
7548 for ac_header in curses.h
7550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7552 echo "$as_me:$LINENO: checking for $ac_header" >&5
7553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7555 echo $ECHO_N "(cached) $ECHO_C" >&6
7557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7559 else
7560 # Is the header compilable?
7561 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7562 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7563 cat >conftest.$ac_ext <<_ACEOF
7564 #line $LINENO "configure"
7565 #include "confdefs.h"
7566 $ac_includes_default
7567 #include <$ac_header>
7568 _ACEOF
7569 rm -f conftest.$ac_objext
7570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7571 (eval $ac_compile) 2>&5
7572 ac_status=$?
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); } &&
7575 { ac_try='test -s conftest.$ac_objext'
7576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7577 (eval $ac_try) 2>&5
7578 ac_status=$?
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); }; }; then
7581 ac_header_compiler=yes
7582 else
7583 echo "$as_me: failed program was:" >&5
7584 cat conftest.$ac_ext >&5
7585 ac_header_compiler=no
7587 rm -f conftest.$ac_objext conftest.$ac_ext
7588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7589 echo "${ECHO_T}$ac_header_compiler" >&6
7591 # Is the header present?
7592 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7594 cat >conftest.$ac_ext <<_ACEOF
7595 #line $LINENO "configure"
7596 #include "confdefs.h"
7597 #include <$ac_header>
7598 _ACEOF
7599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7601 ac_status=$?
7602 egrep -v '^ *\+' conftest.er1 >conftest.err
7603 rm -f conftest.er1
7604 cat conftest.err >&5
7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606 (exit $ac_status); } >/dev/null; then
7607 if test -s conftest.err; then
7608 ac_cpp_err=$ac_c_preproc_warn_flag
7609 else
7610 ac_cpp_err=
7612 else
7613 ac_cpp_err=yes
7615 if test -z "$ac_cpp_err"; then
7616 ac_header_preproc=yes
7617 else
7618 echo "$as_me: failed program was:" >&5
7619 cat conftest.$ac_ext >&5
7620 ac_header_preproc=no
7622 rm -f conftest.err conftest.$ac_ext
7623 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7624 echo "${ECHO_T}$ac_header_preproc" >&6
7626 # So? What about this header?
7627 case $ac_header_compiler:$ac_header_preproc in
7628 yes:no )
7629 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7630 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7633 no:yes )
7634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7635 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7637 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7639 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7640 esac
7641 echo "$as_me:$LINENO: checking for $ac_header" >&5
7642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7644 echo $ECHO_N "(cached) $ECHO_C" >&6
7645 else
7646 eval "$as_ac_Header=$ac_header_preproc"
7648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7649 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7653 cat >>confdefs.h <<_ACEOF
7654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7655 _ACEOF
7656 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
7657 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
7658 if test "${ac_cv_lib_curses_waddch+set}" = set; then
7659 echo $ECHO_N "(cached) $ECHO_C" >&6
7660 else
7661 ac_check_lib_save_LIBS=$LIBS
7662 LIBS="-lcurses $LIBS"
7663 cat >conftest.$ac_ext <<_ACEOF
7664 #line $LINENO "configure"
7665 #include "confdefs.h"
7667 /* Override any gcc2 internal prototype to avoid an error. */
7668 #ifdef __cplusplus
7669 extern "C"
7670 #endif
7671 /* We use char because int might match the return type of a gcc2
7672 builtin and then its argument prototype would still apply. */
7673 char waddch ();
7674 #ifdef F77_DUMMY_MAIN
7675 # ifdef __cplusplus
7676 extern "C"
7677 # endif
7678 int F77_DUMMY_MAIN() { return 1; }
7679 #endif
7681 main ()
7683 waddch ();
7685 return 0;
7687 _ACEOF
7688 rm -f conftest.$ac_objext conftest$ac_exeext
7689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7690 (eval $ac_link) 2>&5
7691 ac_status=$?
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); } &&
7694 { ac_try='test -s conftest$ac_exeext'
7695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7696 (eval $ac_try) 2>&5
7697 ac_status=$?
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); }; }; then
7700 ac_cv_lib_curses_waddch=yes
7701 else
7702 echo "$as_me: failed program was:" >&5
7703 cat conftest.$ac_ext >&5
7704 ac_cv_lib_curses_waddch=no
7706 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7707 LIBS=$ac_check_lib_save_LIBS
7709 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
7710 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
7711 if test $ac_cv_lib_curses_waddch = yes; then
7713 cat >>confdefs.h <<\_ACEOF
7714 #define HAVE_LIBCURSES 1
7715 _ACEOF
7717 CURSESLIBS="-lcurses"
7722 done
7728 done
7730 saved_libs="$LIBS"
7731 LIBS="$CURSESLIBS $LIBS"
7734 for ac_func in getbkgd resizeterm
7736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7737 echo "$as_me:$LINENO: checking for $ac_func" >&5
7738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7739 if eval "test \"\${$as_ac_var+set}\" = set"; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7741 else
7742 cat >conftest.$ac_ext <<_ACEOF
7743 #line $LINENO "configure"
7744 #include "confdefs.h"
7745 /* System header to define __stub macros and hopefully few prototypes,
7746 which can conflict with char $ac_func (); below. */
7747 #include <assert.h>
7748 /* Override any gcc2 internal prototype to avoid an error. */
7749 #ifdef __cplusplus
7750 extern "C"
7751 #endif
7752 /* We use char because int might match the return type of a gcc2
7753 builtin and then its argument prototype would still apply. */
7754 char $ac_func ();
7755 char (*f) ();
7757 #ifdef F77_DUMMY_MAIN
7758 # ifdef __cplusplus
7759 extern "C"
7760 # endif
7761 int F77_DUMMY_MAIN() { return 1; }
7762 #endif
7764 main ()
7766 /* The GNU C library defines this for functions which it implements
7767 to always fail with ENOSYS. Some functions are actually named
7768 something starting with __ and the normal name is an alias. */
7769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7770 choke me
7771 #else
7772 f = $ac_func;
7773 #endif
7776 return 0;
7778 _ACEOF
7779 rm -f conftest.$ac_objext conftest$ac_exeext
7780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7781 (eval $ac_link) 2>&5
7782 ac_status=$?
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); } &&
7785 { ac_try='test -s conftest$ac_exeext'
7786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7787 (eval $ac_try) 2>&5
7788 ac_status=$?
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); }; }; then
7791 eval "$as_ac_var=yes"
7792 else
7793 echo "$as_me: failed program was:" >&5
7794 cat conftest.$ac_ext >&5
7795 eval "$as_ac_var=no"
7797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7800 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7801 if test `eval echo '${'$as_ac_var'}'` = yes; then
7802 cat >>confdefs.h <<_ACEOF
7803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7804 _ACEOF
7807 done
7809 LIBS="$saved_libs"
7813 CUPSLIBS=""
7814 wine_cv_warn_cups_h=no
7815 echo "$as_me:$LINENO: checking for cupsGetPPD in -lcups" >&5
7816 echo $ECHO_N "checking for cupsGetPPD in -lcups... $ECHO_C" >&6
7817 if test "${ac_cv_lib_cups_cupsGetPPD+set}" = set; then
7818 echo $ECHO_N "(cached) $ECHO_C" >&6
7819 else
7820 ac_check_lib_save_LIBS=$LIBS
7821 LIBS="-lcups $LIBS"
7822 cat >conftest.$ac_ext <<_ACEOF
7823 #line $LINENO "configure"
7824 #include "confdefs.h"
7826 /* Override any gcc2 internal prototype to avoid an error. */
7827 #ifdef __cplusplus
7828 extern "C"
7829 #endif
7830 /* We use char because int might match the return type of a gcc2
7831 builtin and then its argument prototype would still apply. */
7832 char cupsGetPPD ();
7833 #ifdef F77_DUMMY_MAIN
7834 # ifdef __cplusplus
7835 extern "C"
7836 # endif
7837 int F77_DUMMY_MAIN() { return 1; }
7838 #endif
7840 main ()
7842 cupsGetPPD ();
7844 return 0;
7846 _ACEOF
7847 rm -f conftest.$ac_objext conftest$ac_exeext
7848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7849 (eval $ac_link) 2>&5
7850 ac_status=$?
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); } &&
7853 { ac_try='test -s conftest$ac_exeext'
7854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7855 (eval $ac_try) 2>&5
7856 ac_status=$?
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); }; }; then
7859 ac_cv_lib_cups_cupsGetPPD=yes
7860 else
7861 echo "$as_me: failed program was:" >&5
7862 cat conftest.$ac_ext >&5
7863 ac_cv_lib_cups_cupsGetPPD=no
7865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7866 LIBS=$ac_check_lib_save_LIBS
7868 echo "$as_me:$LINENO: result: $ac_cv_lib_cups_cupsGetPPD" >&5
7869 echo "${ECHO_T}$ac_cv_lib_cups_cupsGetPPD" >&6
7870 if test $ac_cv_lib_cups_cupsGetPPD = yes; then
7871 if test "${ac_cv_header_cups_cups_h+set}" = set; then
7872 echo "$as_me:$LINENO: checking for cups/cups.h" >&5
7873 echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6
7874 if test "${ac_cv_header_cups_cups_h+set}" = set; then
7875 echo $ECHO_N "(cached) $ECHO_C" >&6
7877 echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5
7878 echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6
7879 else
7880 # Is the header compilable?
7881 echo "$as_me:$LINENO: checking cups/cups.h usability" >&5
7882 echo $ECHO_N "checking cups/cups.h usability... $ECHO_C" >&6
7883 cat >conftest.$ac_ext <<_ACEOF
7884 #line $LINENO "configure"
7885 #include "confdefs.h"
7886 $ac_includes_default
7887 #include <cups/cups.h>
7888 _ACEOF
7889 rm -f conftest.$ac_objext
7890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7891 (eval $ac_compile) 2>&5
7892 ac_status=$?
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); } &&
7895 { ac_try='test -s conftest.$ac_objext'
7896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7897 (eval $ac_try) 2>&5
7898 ac_status=$?
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); }; }; then
7901 ac_header_compiler=yes
7902 else
7903 echo "$as_me: failed program was:" >&5
7904 cat conftest.$ac_ext >&5
7905 ac_header_compiler=no
7907 rm -f conftest.$ac_objext conftest.$ac_ext
7908 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7909 echo "${ECHO_T}$ac_header_compiler" >&6
7911 # Is the header present?
7912 echo "$as_me:$LINENO: checking cups/cups.h presence" >&5
7913 echo $ECHO_N "checking cups/cups.h presence... $ECHO_C" >&6
7914 cat >conftest.$ac_ext <<_ACEOF
7915 #line $LINENO "configure"
7916 #include "confdefs.h"
7917 #include <cups/cups.h>
7918 _ACEOF
7919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7921 ac_status=$?
7922 egrep -v '^ *\+' conftest.er1 >conftest.err
7923 rm -f conftest.er1
7924 cat conftest.err >&5
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); } >/dev/null; then
7927 if test -s conftest.err; then
7928 ac_cpp_err=$ac_c_preproc_warn_flag
7929 else
7930 ac_cpp_err=
7932 else
7933 ac_cpp_err=yes
7935 if test -z "$ac_cpp_err"; then
7936 ac_header_preproc=yes
7937 else
7938 echo "$as_me: failed program was:" >&5
7939 cat conftest.$ac_ext >&5
7940 ac_header_preproc=no
7942 rm -f conftest.err conftest.$ac_ext
7943 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7944 echo "${ECHO_T}$ac_header_preproc" >&6
7946 # So? What about this header?
7947 case $ac_header_compiler:$ac_header_preproc in
7948 yes:no )
7949 { echo "$as_me:$LINENO: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&5
7950 echo "$as_me: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7951 { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&5
7952 echo "$as_me: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&2;};;
7953 no:yes )
7954 { echo "$as_me:$LINENO: WARNING: cups/cups.h: present but cannot be compiled" >&5
7955 echo "$as_me: WARNING: cups/cups.h: present but cannot be compiled" >&2;}
7956 { echo "$as_me:$LINENO: WARNING: cups/cups.h: check for missing prerequisite headers?" >&5
7957 echo "$as_me: WARNING: cups/cups.h: check for missing prerequisite headers?" >&2;}
7958 { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&5
7959 echo "$as_me: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&2;};;
7960 esac
7961 echo "$as_me:$LINENO: checking for cups/cups.h" >&5
7962 echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6
7963 if test "${ac_cv_header_cups_cups_h+set}" = set; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
7965 else
7966 ac_cv_header_cups_cups_h=$ac_header_preproc
7968 echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5
7969 echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6
7972 if test $ac_cv_header_cups_cups_h = yes; then
7974 cat >>confdefs.h <<\_ACEOF
7975 #define HAVE_CUPS 1
7976 _ACEOF
7978 CUPSLIBS="-lcups"
7979 else
7980 wine_cv_warn_cups_h=yes
7989 # Extract the first word of "sane-config", so it can be a program name with args.
7990 set dummy sane-config; ac_word=$2
7991 echo "$as_me:$LINENO: checking for $ac_word" >&5
7992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7993 if test "${ac_cv_prog_sane_devel+set}" = set; then
7994 echo $ECHO_N "(cached) $ECHO_C" >&6
7995 else
7996 if test -n "$sane_devel"; then
7997 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
7998 else
7999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000 for as_dir in $PATH
8002 IFS=$as_save_IFS
8003 test -z "$as_dir" && as_dir=.
8004 for ac_exec_ext in '' $ac_executable_extensions; do
8005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8006 ac_cv_prog_sane_devel="sane-config"
8007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8008 break 2
8010 done
8011 done
8013 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
8016 sane_devel=$ac_cv_prog_sane_devel
8017 if test -n "$sane_devel"; then
8018 echo "$as_me:$LINENO: result: $sane_devel" >&5
8019 echo "${ECHO_T}$sane_devel" >&6
8020 else
8021 echo "$as_me:$LINENO: result: no" >&5
8022 echo "${ECHO_T}no" >&6
8025 if test "$sane_devel" = "no"
8026 then
8027 SANELIBS=""
8028 SANEINCL=""
8029 else
8030 SANELIBS="`$sane_devel --libs`"
8031 SANEINCL="`$sane_devel --cflags`"
8032 ac_save_CPPFLAGS="$CPPFLAGS"
8033 ac_save_LIBS="$LIBS"
8034 CPPFLAGS="$CPPFLAGS $SANEINCL"
8035 LIBS="$LIBS $SANELIBS"
8036 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8037 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8038 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8039 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8040 echo $ECHO_N "(cached) $ECHO_C" >&6
8042 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8043 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8044 else
8045 # Is the header compilable?
8046 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
8047 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
8048 cat >conftest.$ac_ext <<_ACEOF
8049 #line $LINENO "configure"
8050 #include "confdefs.h"
8051 $ac_includes_default
8052 #include <sane/sane.h>
8053 _ACEOF
8054 rm -f conftest.$ac_objext
8055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8056 (eval $ac_compile) 2>&5
8057 ac_status=$?
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); } &&
8060 { ac_try='test -s conftest.$ac_objext'
8061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062 (eval $ac_try) 2>&5
8063 ac_status=$?
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); }; }; then
8066 ac_header_compiler=yes
8067 else
8068 echo "$as_me: failed program was:" >&5
8069 cat conftest.$ac_ext >&5
8070 ac_header_compiler=no
8072 rm -f conftest.$ac_objext conftest.$ac_ext
8073 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8074 echo "${ECHO_T}$ac_header_compiler" >&6
8076 # Is the header present?
8077 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
8078 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
8079 cat >conftest.$ac_ext <<_ACEOF
8080 #line $LINENO "configure"
8081 #include "confdefs.h"
8082 #include <sane/sane.h>
8083 _ACEOF
8084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8086 ac_status=$?
8087 egrep -v '^ *\+' conftest.er1 >conftest.err
8088 rm -f conftest.er1
8089 cat conftest.err >&5
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); } >/dev/null; then
8092 if test -s conftest.err; then
8093 ac_cpp_err=$ac_c_preproc_warn_flag
8094 else
8095 ac_cpp_err=
8097 else
8098 ac_cpp_err=yes
8100 if test -z "$ac_cpp_err"; then
8101 ac_header_preproc=yes
8102 else
8103 echo "$as_me: failed program was:" >&5
8104 cat conftest.$ac_ext >&5
8105 ac_header_preproc=no
8107 rm -f conftest.err conftest.$ac_ext
8108 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8109 echo "${ECHO_T}$ac_header_preproc" >&6
8111 # So? What about this header?
8112 case $ac_header_compiler:$ac_header_preproc in
8113 yes:no )
8114 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
8115 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8116 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8117 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8118 no:yes )
8119 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
8120 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
8121 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
8122 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
8123 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8124 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8125 esac
8126 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8127 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8128 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8129 echo $ECHO_N "(cached) $ECHO_C" >&6
8130 else
8131 ac_cv_header_sane_sane_h=$ac_header_preproc
8133 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8134 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8137 if test $ac_cv_header_sane_sane_h = yes; then
8138 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
8139 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
8140 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
8141 echo $ECHO_N "(cached) $ECHO_C" >&6
8142 else
8143 ac_check_lib_save_LIBS=$LIBS
8144 LIBS="-lsane $LIBS"
8145 cat >conftest.$ac_ext <<_ACEOF
8146 #line $LINENO "configure"
8147 #include "confdefs.h"
8149 /* Override any gcc2 internal prototype to avoid an error. */
8150 #ifdef __cplusplus
8151 extern "C"
8152 #endif
8153 /* We use char because int might match the return type of a gcc2
8154 builtin and then its argument prototype would still apply. */
8155 char sane_open ();
8156 #ifdef F77_DUMMY_MAIN
8157 # ifdef __cplusplus
8158 extern "C"
8159 # endif
8160 int F77_DUMMY_MAIN() { return 1; }
8161 #endif
8163 main ()
8165 sane_open ();
8167 return 0;
8169 _ACEOF
8170 rm -f conftest.$ac_objext conftest$ac_exeext
8171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8172 (eval $ac_link) 2>&5
8173 ac_status=$?
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } &&
8176 { ac_try='test -s conftest$ac_exeext'
8177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8178 (eval $ac_try) 2>&5
8179 ac_status=$?
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); }; }; then
8182 ac_cv_lib_sane_sane_open=yes
8183 else
8184 echo "$as_me: failed program was:" >&5
8185 cat conftest.$ac_ext >&5
8186 ac_cv_lib_sane_sane_open=no
8188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8189 LIBS=$ac_check_lib_save_LIBS
8191 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
8192 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
8193 if test $ac_cv_lib_sane_sane_open = yes; then
8195 cat >>confdefs.h <<\_ACEOF
8196 #define HAVE_SANE 1
8197 _ACEOF
8199 else
8200 SANELIBS=""
8201 SANEINCL=""
8204 else
8205 SANELIBS=""
8206 SANEINCL=""
8210 LIBS="$ac_save_LIBS"
8211 CPPFLAGS="$ac_save_CPPFLAGS"
8216 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8217 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
8218 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
8220 else
8221 ac_check_lib_save_LIBS=$LIBS
8222 LIBS="-lfreetype $X_LIBS $LIBS"
8223 cat >conftest.$ac_ext <<_ACEOF
8224 #line $LINENO "configure"
8225 #include "confdefs.h"
8227 /* Override any gcc2 internal prototype to avoid an error. */
8228 #ifdef __cplusplus
8229 extern "C"
8230 #endif
8231 /* We use char because int might match the return type of a gcc2
8232 builtin and then its argument prototype would still apply. */
8233 char FT_Init_FreeType ();
8234 #ifdef F77_DUMMY_MAIN
8235 # ifdef __cplusplus
8236 extern "C"
8237 # endif
8238 int F77_DUMMY_MAIN() { return 1; }
8239 #endif
8241 main ()
8243 FT_Init_FreeType ();
8245 return 0;
8247 _ACEOF
8248 rm -f conftest.$ac_objext conftest$ac_exeext
8249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8250 (eval $ac_link) 2>&5
8251 ac_status=$?
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); } &&
8254 { ac_try='test -s conftest$ac_exeext'
8255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256 (eval $ac_try) 2>&5
8257 ac_status=$?
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); }; }; then
8260 ac_cv_lib_freetype_FT_Init_FreeType=yes
8261 else
8262 echo "$as_me: failed program was:" >&5
8263 cat conftest.$ac_ext >&5
8264 ac_cv_lib_freetype_FT_Init_FreeType=no
8266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8267 LIBS=$ac_check_lib_save_LIBS
8269 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8270 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
8271 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8272 ft_lib=yes
8273 else
8274 ft_lib=no
8277 if test "$ft_lib" = "no"
8278 then
8279 FREETYPEINCL=""
8280 wine_cv_msg_freetype=no
8281 else
8282 # Extract the first word of "freetype-config", so it can be a program name with args.
8283 set dummy freetype-config; ac_word=$2
8284 echo "$as_me:$LINENO: checking for $ac_word" >&5
8285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8286 if test "${ac_cv_prog_ft_devel+set}" = set; then
8287 echo $ECHO_N "(cached) $ECHO_C" >&6
8288 else
8289 if test -n "$ft_devel"; then
8290 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
8291 else
8292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8293 for as_dir in $PATH
8295 IFS=$as_save_IFS
8296 test -z "$as_dir" && as_dir=.
8297 for ac_exec_ext in '' $ac_executable_extensions; do
8298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8299 ac_cv_prog_ft_devel="freetype-config"
8300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8301 break 2
8303 done
8304 done
8306 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
8309 ft_devel=$ac_cv_prog_ft_devel
8310 if test -n "$ft_devel"; then
8311 echo "$as_me:$LINENO: result: $ft_devel" >&5
8312 echo "${ECHO_T}$ft_devel" >&6
8313 else
8314 echo "$as_me:$LINENO: result: no" >&5
8315 echo "${ECHO_T}no" >&6
8318 if test "$ft_devel" = "no"
8319 then
8320 # Extract the first word of "freetype2-config", so it can be a program name with args.
8321 set dummy freetype2-config; ac_word=$2
8322 echo "$as_me:$LINENO: checking for $ac_word" >&5
8323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8324 if test "${ac_cv_prog_ft_devel2+set}" = set; then
8325 echo $ECHO_N "(cached) $ECHO_C" >&6
8326 else
8327 if test -n "$ft_devel2"; then
8328 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
8329 else
8330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8331 for as_dir in $PATH
8333 IFS=$as_save_IFS
8334 test -z "$as_dir" && as_dir=.
8335 for ac_exec_ext in '' $ac_executable_extensions; do
8336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8337 ac_cv_prog_ft_devel2="freetype2-config"
8338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8339 break 2
8341 done
8342 done
8344 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
8347 ft_devel2=$ac_cv_prog_ft_devel2
8348 if test -n "$ft_devel2"; then
8349 echo "$as_me:$LINENO: result: $ft_devel2" >&5
8350 echo "${ECHO_T}$ft_devel2" >&6
8351 else
8352 echo "$as_me:$LINENO: result: no" >&5
8353 echo "${ECHO_T}no" >&6
8356 if test "$ft_devel2" = "freetype2-config"
8357 then
8358 ft_devel=$ft_devel2
8361 if test "$ft_devel" = "no"
8362 then
8363 FREETYPEINCL=""
8364 wine_cv_msg_freetype=yes
8365 else
8366 FREETYPEINCL=`$ft_devel --cflags`
8367 ac_save_CPPFLAGS="$CPPFLAGS"
8368 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
8377 for ac_header in freetype/freetype.h \
8378 freetype/ftglyph.h \
8379 freetype/tttables.h \
8380 freetype/ftnames.h \
8381 freetype/ftsnames.h \
8382 freetype/ttnameid.h \
8383 freetype/ftoutln.h \
8384 freetype/internal/sfnt.h
8386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8388 echo "$as_me:$LINENO: checking for $ac_header" >&5
8389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8391 echo $ECHO_N "(cached) $ECHO_C" >&6
8393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8395 else
8396 # Is the header compilable?
8397 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8398 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8399 cat >conftest.$ac_ext <<_ACEOF
8400 #line $LINENO "configure"
8401 #include "confdefs.h"
8402 $ac_includes_default
8403 #include <$ac_header>
8404 _ACEOF
8405 rm -f conftest.$ac_objext
8406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8407 (eval $ac_compile) 2>&5
8408 ac_status=$?
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); } &&
8411 { ac_try='test -s conftest.$ac_objext'
8412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413 (eval $ac_try) 2>&5
8414 ac_status=$?
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); }; }; then
8417 ac_header_compiler=yes
8418 else
8419 echo "$as_me: failed program was:" >&5
8420 cat conftest.$ac_ext >&5
8421 ac_header_compiler=no
8423 rm -f conftest.$ac_objext conftest.$ac_ext
8424 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8425 echo "${ECHO_T}$ac_header_compiler" >&6
8427 # Is the header present?
8428 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8430 cat >conftest.$ac_ext <<_ACEOF
8431 #line $LINENO "configure"
8432 #include "confdefs.h"
8433 #include <$ac_header>
8434 _ACEOF
8435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8437 ac_status=$?
8438 egrep -v '^ *\+' conftest.er1 >conftest.err
8439 rm -f conftest.er1
8440 cat conftest.err >&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); } >/dev/null; then
8443 if test -s conftest.err; then
8444 ac_cpp_err=$ac_c_preproc_warn_flag
8445 else
8446 ac_cpp_err=
8448 else
8449 ac_cpp_err=yes
8451 if test -z "$ac_cpp_err"; then
8452 ac_header_preproc=yes
8453 else
8454 echo "$as_me: failed program was:" >&5
8455 cat conftest.$ac_ext >&5
8456 ac_header_preproc=no
8458 rm -f conftest.err conftest.$ac_ext
8459 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8460 echo "${ECHO_T}$ac_header_preproc" >&6
8462 # So? What about this header?
8463 case $ac_header_compiler:$ac_header_preproc in
8464 yes:no )
8465 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8466 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8469 no:yes )
8470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8473 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8476 esac
8477 echo "$as_me:$LINENO: checking for $ac_header" >&5
8478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8480 echo $ECHO_N "(cached) $ECHO_C" >&6
8481 else
8482 eval "$as_ac_Header=$ac_header_preproc"
8484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8489 cat >>confdefs.h <<_ACEOF
8490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8491 _ACEOF
8495 done
8497 cat >conftest.$ac_ext <<_ACEOF
8498 #line $LINENO "configure"
8499 #include "confdefs.h"
8500 #include <ft2build.h>
8501 #include <freetype/fttrigon.h>
8502 _ACEOF
8503 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8504 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8505 ac_status=$?
8506 egrep -v '^ *\+' conftest.er1 >conftest.err
8507 rm -f conftest.er1
8508 cat conftest.err >&5
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); } >/dev/null; then
8511 if test -s conftest.err; then
8512 ac_cpp_err=$ac_c_preproc_warn_flag
8513 else
8514 ac_cpp_err=
8516 else
8517 ac_cpp_err=yes
8519 if test -z "$ac_cpp_err"; then
8521 cat >>confdefs.h <<\_ACEOF
8522 #define HAVE_FREETYPE_FTTRIGON_H 1
8523 _ACEOF
8525 wine_cv_fttrigon=yes
8526 else
8527 echo "$as_me: failed program was:" >&5
8528 cat conftest.$ac_ext >&5
8529 wine_cv_fttrigon=no
8531 rm -f conftest.err conftest.$ac_ext
8532 CPPFLAGS="$ac_save_CPPFLAGS"
8533 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
8534 then
8536 cat >>confdefs.h <<\_ACEOF
8537 #define HAVE_FREETYPE 1
8538 _ACEOF
8540 wine_cv_msg_freetype=no
8541 else
8542 FREETYPEINCL=""
8543 wine_cv_msg_freetype=yes
8549 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
8550 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
8551 if test "${ac_cv_c_ppdev+set}" = set; then
8552 echo $ECHO_N "(cached) $ECHO_C" >&6
8553 else
8554 cat >conftest.$ac_ext <<_ACEOF
8555 #line $LINENO "configure"
8556 #include "confdefs.h"
8557 #include <linux/ppdev.h>
8558 #ifdef F77_DUMMY_MAIN
8559 # ifdef __cplusplus
8560 extern "C"
8561 # endif
8562 int F77_DUMMY_MAIN() { return 1; }
8563 #endif
8565 main ()
8567 ioctl (1,PPCLAIM,0)
8569 return 0;
8571 _ACEOF
8572 rm -f conftest.$ac_objext
8573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8574 (eval $ac_compile) 2>&5
8575 ac_status=$?
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); } &&
8578 { ac_try='test -s conftest.$ac_objext'
8579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8580 (eval $ac_try) 2>&5
8581 ac_status=$?
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); }; }; then
8584 ac_cv_c_ppdev="yes"
8585 else
8586 echo "$as_me: failed program was:" >&5
8587 cat conftest.$ac_ext >&5
8588 ac_cv_c_ppdev="no"
8590 rm -f conftest.$ac_objext conftest.$ac_ext
8593 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
8594 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
8595 if test "$ac_cv_c_ppdev" = "yes"
8596 then
8598 cat >>confdefs.h <<\_ACEOF
8599 #define HAVE_PPDEV 1
8600 _ACEOF
8604 echo "$as_me:$LINENO: checking for va_copy" >&5
8605 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
8606 if test "${ac_cv_c_va_copy+set}" = set; then
8607 echo $ECHO_N "(cached) $ECHO_C" >&6
8608 else
8609 cat >conftest.$ac_ext <<_ACEOF
8610 #line $LINENO "configure"
8611 #include "confdefs.h"
8612 #include <stdarg.h>
8613 #ifdef F77_DUMMY_MAIN
8614 # ifdef __cplusplus
8615 extern "C"
8616 # endif
8617 int F77_DUMMY_MAIN() { return 1; }
8618 #endif
8620 main ()
8622 va_list ap1, ap2;
8623 va_copy(ap1,ap2);
8626 return 0;
8628 _ACEOF
8629 rm -f conftest.$ac_objext conftest$ac_exeext
8630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8631 (eval $ac_link) 2>&5
8632 ac_status=$?
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); } &&
8635 { ac_try='test -s conftest$ac_exeext'
8636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8637 (eval $ac_try) 2>&5
8638 ac_status=$?
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); }; }; then
8641 ac_cv_c_va_copy="yes"
8642 else
8643 echo "$as_me: failed program was:" >&5
8644 cat conftest.$ac_ext >&5
8645 ac_cv_c_va_copy="no"
8647 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8650 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
8651 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
8652 if test "$ac_cv_c_va_copy" = "yes"
8653 then
8655 cat >>confdefs.h <<\_ACEOF
8656 #define HAVE_VA_COPY 1
8657 _ACEOF
8660 echo "$as_me:$LINENO: checking for __va_copy" >&5
8661 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
8662 if test "${ac_cv_c___va_copy+set}" = set; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8664 else
8665 cat >conftest.$ac_ext <<_ACEOF
8666 #line $LINENO "configure"
8667 #include "confdefs.h"
8668 #include <stdarg.h>
8669 #ifdef F77_DUMMY_MAIN
8670 # ifdef __cplusplus
8671 extern "C"
8672 # endif
8673 int F77_DUMMY_MAIN() { return 1; }
8674 #endif
8676 main ()
8678 va_list ap1, ap2;
8679 __va_copy(ap1,ap2);
8682 return 0;
8684 _ACEOF
8685 rm -f conftest.$ac_objext conftest$ac_exeext
8686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8687 (eval $ac_link) 2>&5
8688 ac_status=$?
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); } &&
8691 { ac_try='test -s conftest$ac_exeext'
8692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693 (eval $ac_try) 2>&5
8694 ac_status=$?
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); }; }; then
8697 ac_cv_c___va_copy="yes"
8698 else
8699 echo "$as_me: failed program was:" >&5
8700 cat conftest.$ac_ext >&5
8701 ac_cv_c___va_copy="no"
8703 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8706 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
8707 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
8708 if test "$ac_cv_c___va_copy" = "yes"
8709 then
8711 cat >>confdefs.h <<\_ACEOF
8712 #define HAVE___VA_COPY 1
8713 _ACEOF
8717 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
8718 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
8719 if test "${ac_cv_c_ipx_gnu+set}" = set; then
8720 echo $ECHO_N "(cached) $ECHO_C" >&6
8721 else
8722 cat >conftest.$ac_ext <<_ACEOF
8723 #line $LINENO "configure"
8724 #include "confdefs.h"
8725 #include <sys/socket.h>
8726 #include <netipx/ipx.h>
8727 #ifdef F77_DUMMY_MAIN
8728 # ifdef __cplusplus
8729 extern "C"
8730 # endif
8731 int F77_DUMMY_MAIN() { return 1; }
8732 #endif
8734 main ()
8736 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
8738 return 0;
8740 _ACEOF
8741 rm -f conftest.$ac_objext
8742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8743 (eval $ac_compile) 2>&5
8744 ac_status=$?
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); } &&
8747 { ac_try='test -s conftest.$ac_objext'
8748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8749 (eval $ac_try) 2>&5
8750 ac_status=$?
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); }; }; then
8753 ac_cv_c_ipx_gnu="yes"
8754 else
8755 echo "$as_me: failed program was:" >&5
8756 cat conftest.$ac_ext >&5
8757 ac_cv_c_ipx_gnu="no"
8759 rm -f conftest.$ac_objext conftest.$ac_ext
8762 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
8763 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
8764 if test "$ac_cv_c_ipx_gnu" = "yes"
8765 then
8767 cat >>confdefs.h <<\_ACEOF
8768 #define HAVE_IPX_GNU 1
8769 _ACEOF
8773 if test "$ac_cv_c_ipx_gnu" = "no"
8774 then
8775 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
8776 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
8777 if test "${ac_cv_c_ipx_linux+set}" = set; then
8778 echo $ECHO_N "(cached) $ECHO_C" >&6
8779 else
8780 cat >conftest.$ac_ext <<_ACEOF
8781 #line $LINENO "configure"
8782 #include "confdefs.h"
8783 #include <sys/socket.h>
8784 #include <asm/types.h>
8785 #include <linux/ipx.h>
8786 #ifdef F77_DUMMY_MAIN
8787 # ifdef __cplusplus
8788 extern "C"
8789 # endif
8790 int F77_DUMMY_MAIN() { return 1; }
8791 #endif
8793 main ()
8795 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
8797 return 0;
8799 _ACEOF
8800 rm -f conftest.$ac_objext
8801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8802 (eval $ac_compile) 2>&5
8803 ac_status=$?
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); } &&
8806 { ac_try='test -s conftest.$ac_objext'
8807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8808 (eval $ac_try) 2>&5
8809 ac_status=$?
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); }; }; then
8812 ac_cv_c_ipx_linux="yes"
8813 else
8814 echo "$as_me: failed program was:" >&5
8815 cat conftest.$ac_ext >&5
8816 ac_cv_c_ipx_linux="no"
8818 rm -f conftest.$ac_objext conftest.$ac_ext
8821 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
8822 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
8823 if test "$ac_cv_c_ipx_linux" = "yes"
8824 then
8826 cat >>confdefs.h <<\_ACEOF
8827 #define HAVE_IPX_LINUX 1
8828 _ACEOF
8836 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
8838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8840 echo "$as_me:$LINENO: checking for $ac_header" >&5
8841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8843 echo $ECHO_N "(cached) $ECHO_C" >&6
8845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8847 else
8848 # Is the header compilable?
8849 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8851 cat >conftest.$ac_ext <<_ACEOF
8852 #line $LINENO "configure"
8853 #include "confdefs.h"
8854 $ac_includes_default
8855 #include <$ac_header>
8856 _ACEOF
8857 rm -f conftest.$ac_objext
8858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8859 (eval $ac_compile) 2>&5
8860 ac_status=$?
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); } &&
8863 { ac_try='test -s conftest.$ac_objext'
8864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8865 (eval $ac_try) 2>&5
8866 ac_status=$?
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); }; }; then
8869 ac_header_compiler=yes
8870 else
8871 echo "$as_me: failed program was:" >&5
8872 cat conftest.$ac_ext >&5
8873 ac_header_compiler=no
8875 rm -f conftest.$ac_objext conftest.$ac_ext
8876 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8877 echo "${ECHO_T}$ac_header_compiler" >&6
8879 # Is the header present?
8880 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8881 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8882 cat >conftest.$ac_ext <<_ACEOF
8883 #line $LINENO "configure"
8884 #include "confdefs.h"
8885 #include <$ac_header>
8886 _ACEOF
8887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8888 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8889 ac_status=$?
8890 egrep -v '^ *\+' conftest.er1 >conftest.err
8891 rm -f conftest.er1
8892 cat conftest.err >&5
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); } >/dev/null; then
8895 if test -s conftest.err; then
8896 ac_cpp_err=$ac_c_preproc_warn_flag
8897 else
8898 ac_cpp_err=
8900 else
8901 ac_cpp_err=yes
8903 if test -z "$ac_cpp_err"; then
8904 ac_header_preproc=yes
8905 else
8906 echo "$as_me: failed program was:" >&5
8907 cat conftest.$ac_ext >&5
8908 ac_header_preproc=no
8910 rm -f conftest.err conftest.$ac_ext
8911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8912 echo "${ECHO_T}$ac_header_preproc" >&6
8914 # So? What about this header?
8915 case $ac_header_compiler:$ac_header_preproc in
8916 yes:no )
8917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8921 no:yes )
8922 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8923 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8924 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8925 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8928 esac
8929 echo "$as_me:$LINENO: checking for $ac_header" >&5
8930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8932 echo $ECHO_N "(cached) $ECHO_C" >&6
8933 else
8934 eval "$as_ac_Header=$ac_header_preproc"
8936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8941 cat >>confdefs.h <<_ACEOF
8942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8943 _ACEOF
8944 break
8947 done
8950 echo "$as_me:$LINENO: checking for Open Sound System" >&5
8951 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
8952 if test "${ac_cv_c_opensoundsystem+set}" = set; then
8953 echo $ECHO_N "(cached) $ECHO_C" >&6
8954 else
8955 cat >conftest.$ac_ext <<_ACEOF
8956 #line $LINENO "configure"
8957 #include "confdefs.h"
8959 #if defined(HAVE_SYS_SOUNDCARD_H)
8960 #include <sys/soundcard.h>
8961 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
8962 #include <machine/soundcard.h>
8963 #elif defined(HAVE_SOUNDCARD_H)
8964 #include <soundcard.h>
8965 #endif
8967 #ifdef F77_DUMMY_MAIN
8968 # ifdef __cplusplus
8969 extern "C"
8970 # endif
8971 int F77_DUMMY_MAIN() { return 1; }
8972 #endif
8974 main ()
8978 /* check for one of the Open Sound System specific SNDCTL_ defines */
8979 #if !defined(SNDCTL_DSP_STEREO)
8980 #error No open sound system
8981 #endif
8984 return 0;
8986 _ACEOF
8987 rm -f conftest.$ac_objext
8988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8989 (eval $ac_compile) 2>&5
8990 ac_status=$?
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); } &&
8993 { ac_try='test -s conftest.$ac_objext'
8994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8995 (eval $ac_try) 2>&5
8996 ac_status=$?
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); }; }; then
8999 ac_cv_c_opensoundsystem="yes"
9000 else
9001 echo "$as_me: failed program was:" >&5
9002 cat conftest.$ac_ext >&5
9003 ac_cv_c_opensoundsystem="no"
9005 rm -f conftest.$ac_objext conftest.$ac_ext
9007 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
9008 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
9010 if test "$ac_cv_c_opensoundsystem" = "yes"
9011 then
9013 cat >>confdefs.h <<\_ACEOF
9014 #define HAVE_OSS 1
9015 _ACEOF
9019 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
9020 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
9021 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
9023 else
9024 cat >conftest.$ac_ext <<_ACEOF
9025 #line $LINENO "configure"
9026 #include "confdefs.h"
9028 #if defined(HAVE_SYS_SOUNDCARD_H)
9029 #include <sys/soundcard.h>
9030 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
9031 #include <machine/soundcard.h>
9032 #elif defined(HAVE_SOUNDCARD_H)
9033 #include <soundcard.h>
9034 #endif
9036 #ifdef F77_DUMMY_MAIN
9037 # ifdef __cplusplus
9038 extern "C"
9039 # endif
9040 int F77_DUMMY_MAIN() { return 1; }
9041 #endif
9043 main ()
9047 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
9048 #if !defined(SNDCTL_SEQ_SYNC)
9049 #error No open sound system MIDI interface
9050 #endif
9053 return 0;
9055 _ACEOF
9056 rm -f conftest.$ac_objext
9057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9058 (eval $ac_compile) 2>&5
9059 ac_status=$?
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); } &&
9062 { ac_try='test -s conftest.$ac_objext'
9063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064 (eval $ac_try) 2>&5
9065 ac_status=$?
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); }; }; then
9068 ac_cv_c_opensoundsystem_midi="yes"
9069 else
9070 echo "$as_me: failed program was:" >&5
9071 cat conftest.$ac_ext >&5
9072 ac_cv_c_opensoundsystem_midi="no"
9074 rm -f conftest.$ac_objext conftest.$ac_ext
9076 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
9077 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
9079 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
9080 then
9082 cat >>confdefs.h <<\_ACEOF
9083 #define HAVE_OSS_MIDI 1
9084 _ACEOF
9088 # Extract the first word of "artsc-config", so it can be a program name with args.
9089 set dummy artsc-config; ac_word=$2
9090 echo "$as_me:$LINENO: checking for $ac_word" >&5
9091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9092 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
9093 echo $ECHO_N "(cached) $ECHO_C" >&6
9094 else
9095 case $ARTSCCONFIG in
9096 [\\/]* | ?:[\\/]*)
9097 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
9100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9101 for as_dir in $PATH
9103 IFS=$as_save_IFS
9104 test -z "$as_dir" && as_dir=.
9105 for ac_exec_ext in '' $ac_executable_extensions; do
9106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9107 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
9108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9109 break 2
9111 done
9112 done
9115 esac
9117 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
9119 if test -n "$ARTSCCONFIG"; then
9120 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
9121 echo "${ECHO_T}$ARTSCCONFIG" >&6
9122 else
9123 echo "$as_me:$LINENO: result: no" >&5
9124 echo "${ECHO_T}no" >&6
9127 echo "$as_me:$LINENO: checking for aRts Sound server" >&5
9128 echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
9129 if test "${ac_cv_c_artsserver+set}" = set; then
9130 echo $ECHO_N "(cached) $ECHO_C" >&6
9131 else
9132 if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
9133 then
9134 ac_cv_c_artsserver=no
9135 else
9136 ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
9137 ARTSC_LIBS=`$ARTSCCONFIG --libs`
9138 ac_cv_c_artsserver=no
9139 save_CFLAGS="$CFLAGS"
9140 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
9141 cat >conftest.$ac_ext <<_ACEOF
9142 #line $LINENO "configure"
9143 #include "confdefs.h"
9145 #include <artsc.h>
9147 #ifdef F77_DUMMY_MAIN
9148 # ifdef __cplusplus
9149 extern "C"
9150 # endif
9151 int F77_DUMMY_MAIN() { return 1; }
9152 #endif
9154 main ()
9157 arts_stream_t stream;
9160 return 0;
9162 _ACEOF
9163 rm -f conftest.$ac_objext
9164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9165 (eval $ac_compile) 2>&5
9166 ac_status=$?
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); } &&
9169 { ac_try='test -s conftest.$ac_objext'
9170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9171 (eval $ac_try) 2>&5
9172 ac_status=$?
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); }; }; then
9176 ac_cv_c_artsserver=yes
9178 else
9179 echo "$as_me: failed program was:" >&5
9180 cat conftest.$ac_ext >&5
9182 rm -f conftest.$ac_objext conftest.$ac_ext
9183 CFLAGS="$save_CFLAGS"
9186 echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
9187 echo "${ECHO_T}$ac_cv_c_artsserver" >&6
9189 if test "$ac_cv_c_artsserver" = "yes"
9190 then
9191 ARTSLIBS=$ARTSC_LIBS
9193 ARTSINCL=$ARTSC_CFLAGS
9197 cat >>confdefs.h <<\_ACEOF
9198 #define HAVE_ARTS 1
9199 _ACEOF
9203 ALSALIBS=""
9207 for ac_header in alsa/asoundlib.h sys/asoundlib.h
9209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9211 echo "$as_me:$LINENO: checking for $ac_header" >&5
9212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9214 echo $ECHO_N "(cached) $ECHO_C" >&6
9216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9218 else
9219 # Is the header compilable?
9220 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9221 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9222 cat >conftest.$ac_ext <<_ACEOF
9223 #line $LINENO "configure"
9224 #include "confdefs.h"
9225 $ac_includes_default
9226 #include <$ac_header>
9227 _ACEOF
9228 rm -f conftest.$ac_objext
9229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9230 (eval $ac_compile) 2>&5
9231 ac_status=$?
9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); } &&
9234 { ac_try='test -s conftest.$ac_objext'
9235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9236 (eval $ac_try) 2>&5
9237 ac_status=$?
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); }; }; then
9240 ac_header_compiler=yes
9241 else
9242 echo "$as_me: failed program was:" >&5
9243 cat conftest.$ac_ext >&5
9244 ac_header_compiler=no
9246 rm -f conftest.$ac_objext conftest.$ac_ext
9247 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9248 echo "${ECHO_T}$ac_header_compiler" >&6
9250 # Is the header present?
9251 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9253 cat >conftest.$ac_ext <<_ACEOF
9254 #line $LINENO "configure"
9255 #include "confdefs.h"
9256 #include <$ac_header>
9257 _ACEOF
9258 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9260 ac_status=$?
9261 egrep -v '^ *\+' conftest.er1 >conftest.err
9262 rm -f conftest.er1
9263 cat conftest.err >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); } >/dev/null; then
9266 if test -s conftest.err; then
9267 ac_cpp_err=$ac_c_preproc_warn_flag
9268 else
9269 ac_cpp_err=
9271 else
9272 ac_cpp_err=yes
9274 if test -z "$ac_cpp_err"; then
9275 ac_header_preproc=yes
9276 else
9277 echo "$as_me: failed program was:" >&5
9278 cat conftest.$ac_ext >&5
9279 ac_header_preproc=no
9281 rm -f conftest.err conftest.$ac_ext
9282 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9283 echo "${ECHO_T}$ac_header_preproc" >&6
9285 # So? What about this header?
9286 case $ac_header_compiler:$ac_header_preproc in
9287 yes:no )
9288 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9292 no:yes )
9293 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9294 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9295 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9296 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9299 esac
9300 echo "$as_me:$LINENO: checking for $ac_header" >&5
9301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9303 echo $ECHO_N "(cached) $ECHO_C" >&6
9304 else
9305 eval "$as_ac_Header=$ac_header_preproc"
9307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9312 cat >>confdefs.h <<_ACEOF
9313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9314 _ACEOF
9315 break
9318 done
9320 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
9321 then
9322 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
9323 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
9324 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
9325 echo $ECHO_N "(cached) $ECHO_C" >&6
9326 else
9327 ac_check_lib_save_LIBS=$LIBS
9328 LIBS="-lasound $LIBS"
9329 cat >conftest.$ac_ext <<_ACEOF
9330 #line $LINENO "configure"
9331 #include "confdefs.h"
9333 /* Override any gcc2 internal prototype to avoid an error. */
9334 #ifdef __cplusplus
9335 extern "C"
9336 #endif
9337 /* We use char because int might match the return type of a gcc2
9338 builtin and then its argument prototype would still apply. */
9339 char snd_pcm_open ();
9340 #ifdef F77_DUMMY_MAIN
9341 # ifdef __cplusplus
9342 extern "C"
9343 # endif
9344 int F77_DUMMY_MAIN() { return 1; }
9345 #endif
9347 main ()
9349 snd_pcm_open ();
9351 return 0;
9353 _ACEOF
9354 rm -f conftest.$ac_objext conftest$ac_exeext
9355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9356 (eval $ac_link) 2>&5
9357 ac_status=$?
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); } &&
9360 { ac_try='test -s conftest$ac_exeext'
9361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9362 (eval $ac_try) 2>&5
9363 ac_status=$?
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); }; }; then
9366 ac_cv_lib_asound_snd_pcm_open=yes
9367 else
9368 echo "$as_me: failed program was:" >&5
9369 cat conftest.$ac_ext >&5
9370 ac_cv_lib_asound_snd_pcm_open=no
9372 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9373 LIBS=$ac_check_lib_save_LIBS
9375 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
9376 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
9377 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
9379 cat >>confdefs.h <<\_ACEOF
9380 #define HAVE_ALSA 1
9381 _ACEOF
9383 ALSALIBS="-lasound"
9388 NASLIBS=""
9391 for ac_header in audio/audiolib.h
9393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9395 echo "$as_me:$LINENO: checking for $ac_header" >&5
9396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9398 echo $ECHO_N "(cached) $ECHO_C" >&6
9400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9402 else
9403 # Is the header compilable?
9404 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9405 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9406 cat >conftest.$ac_ext <<_ACEOF
9407 #line $LINENO "configure"
9408 #include "confdefs.h"
9409 $ac_includes_default
9410 #include <$ac_header>
9411 _ACEOF
9412 rm -f conftest.$ac_objext
9413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9414 (eval $ac_compile) 2>&5
9415 ac_status=$?
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); } &&
9418 { ac_try='test -s conftest.$ac_objext'
9419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9420 (eval $ac_try) 2>&5
9421 ac_status=$?
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); }; }; then
9424 ac_header_compiler=yes
9425 else
9426 echo "$as_me: failed program was:" >&5
9427 cat conftest.$ac_ext >&5
9428 ac_header_compiler=no
9430 rm -f conftest.$ac_objext conftest.$ac_ext
9431 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9432 echo "${ECHO_T}$ac_header_compiler" >&6
9434 # Is the header present?
9435 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9437 cat >conftest.$ac_ext <<_ACEOF
9438 #line $LINENO "configure"
9439 #include "confdefs.h"
9440 #include <$ac_header>
9441 _ACEOF
9442 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9443 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9444 ac_status=$?
9445 egrep -v '^ *\+' conftest.er1 >conftest.err
9446 rm -f conftest.er1
9447 cat conftest.err >&5
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); } >/dev/null; then
9450 if test -s conftest.err; then
9451 ac_cpp_err=$ac_c_preproc_warn_flag
9452 else
9453 ac_cpp_err=
9455 else
9456 ac_cpp_err=yes
9458 if test -z "$ac_cpp_err"; then
9459 ac_header_preproc=yes
9460 else
9461 echo "$as_me: failed program was:" >&5
9462 cat conftest.$ac_ext >&5
9463 ac_header_preproc=no
9465 rm -f conftest.err conftest.$ac_ext
9466 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9467 echo "${ECHO_T}$ac_header_preproc" >&6
9469 # So? What about this header?
9470 case $ac_header_compiler:$ac_header_preproc in
9471 yes:no )
9472 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9476 no:yes )
9477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9480 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9483 esac
9484 echo "$as_me:$LINENO: checking for $ac_header" >&5
9485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9487 echo $ECHO_N "(cached) $ECHO_C" >&6
9488 else
9489 eval "$as_ac_Header=$ac_header_preproc"
9491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9496 cat >>confdefs.h <<_ACEOF
9497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9498 _ACEOF
9500 for ac_header in audio/soundlib.h
9502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9503 echo "$as_me:$LINENO: checking for $ac_header" >&5
9504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
9507 else
9508 cat >conftest.$ac_ext <<_ACEOF
9509 #line $LINENO "configure"
9510 #include "confdefs.h"
9511 #include <audio/audiolib.h>
9513 #include <$ac_header>
9514 _ACEOF
9515 rm -f conftest.$ac_objext
9516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9517 (eval $ac_compile) 2>&5
9518 ac_status=$?
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); } &&
9521 { ac_try='test -s conftest.$ac_objext'
9522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9523 (eval $ac_try) 2>&5
9524 ac_status=$?
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); }; }; then
9527 eval "$as_ac_Header=yes"
9528 else
9529 echo "$as_me: failed program was:" >&5
9530 cat conftest.$ac_ext >&5
9531 eval "$as_ac_Header=no"
9533 rm -f conftest.$ac_objext conftest.$ac_ext
9535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9536 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9538 cat >>confdefs.h <<_ACEOF
9539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9540 _ACEOF
9544 done
9546 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
9547 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
9548 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
9549 echo $ECHO_N "(cached) $ECHO_C" >&6
9550 else
9551 ac_check_lib_save_LIBS=$LIBS
9552 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9553 cat >conftest.$ac_ext <<_ACEOF
9554 #line $LINENO "configure"
9555 #include "confdefs.h"
9557 /* Override any gcc2 internal prototype to avoid an error. */
9558 #ifdef __cplusplus
9559 extern "C"
9560 #endif
9561 /* We use char because int might match the return type of a gcc2
9562 builtin and then its argument prototype would still apply. */
9563 char AuCreateFlow ();
9564 #ifdef F77_DUMMY_MAIN
9565 # ifdef __cplusplus
9566 extern "C"
9567 # endif
9568 int F77_DUMMY_MAIN() { return 1; }
9569 #endif
9571 main ()
9573 AuCreateFlow ();
9575 return 0;
9577 _ACEOF
9578 rm -f conftest.$ac_objext conftest$ac_exeext
9579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9580 (eval $ac_link) 2>&5
9581 ac_status=$?
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); } &&
9584 { ac_try='test -s conftest$ac_exeext'
9585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9586 (eval $ac_try) 2>&5
9587 ac_status=$?
9588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); }; }; then
9590 ac_cv_lib_audio_AuCreateFlow=yes
9591 else
9592 echo "$as_me: failed program was:" >&5
9593 cat conftest.$ac_ext >&5
9594 ac_cv_lib_audio_AuCreateFlow=no
9596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9597 LIBS=$ac_check_lib_save_LIBS
9599 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
9600 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
9601 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
9603 cat >>confdefs.h <<\_ACEOF
9604 #define HAVE_NAS 1
9605 _ACEOF
9607 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
9612 done
9616 AUDIOIOLIBS=""
9619 for ac_header in libaudioio.h
9621 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9623 echo "$as_me:$LINENO: checking for $ac_header" >&5
9624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9626 echo $ECHO_N "(cached) $ECHO_C" >&6
9628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9630 else
9631 # Is the header compilable?
9632 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9633 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9634 cat >conftest.$ac_ext <<_ACEOF
9635 #line $LINENO "configure"
9636 #include "confdefs.h"
9637 $ac_includes_default
9638 #include <$ac_header>
9639 _ACEOF
9640 rm -f conftest.$ac_objext
9641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9642 (eval $ac_compile) 2>&5
9643 ac_status=$?
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); } &&
9646 { ac_try='test -s conftest.$ac_objext'
9647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9648 (eval $ac_try) 2>&5
9649 ac_status=$?
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); }; }; then
9652 ac_header_compiler=yes
9653 else
9654 echo "$as_me: failed program was:" >&5
9655 cat conftest.$ac_ext >&5
9656 ac_header_compiler=no
9658 rm -f conftest.$ac_objext conftest.$ac_ext
9659 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9660 echo "${ECHO_T}$ac_header_compiler" >&6
9662 # Is the header present?
9663 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9664 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9665 cat >conftest.$ac_ext <<_ACEOF
9666 #line $LINENO "configure"
9667 #include "confdefs.h"
9668 #include <$ac_header>
9669 _ACEOF
9670 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9671 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9672 ac_status=$?
9673 egrep -v '^ *\+' conftest.er1 >conftest.err
9674 rm -f conftest.er1
9675 cat conftest.err >&5
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); } >/dev/null; then
9678 if test -s conftest.err; then
9679 ac_cpp_err=$ac_c_preproc_warn_flag
9680 else
9681 ac_cpp_err=
9683 else
9684 ac_cpp_err=yes
9686 if test -z "$ac_cpp_err"; then
9687 ac_header_preproc=yes
9688 else
9689 echo "$as_me: failed program was:" >&5
9690 cat conftest.$ac_ext >&5
9691 ac_header_preproc=no
9693 rm -f conftest.err conftest.$ac_ext
9694 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9695 echo "${ECHO_T}$ac_header_preproc" >&6
9697 # So? What about this header?
9698 case $ac_header_compiler:$ac_header_preproc in
9699 yes:no )
9700 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9701 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9704 no:yes )
9705 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9706 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9707 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9708 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9711 esac
9712 echo "$as_me:$LINENO: checking for $ac_header" >&5
9713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9715 echo $ECHO_N "(cached) $ECHO_C" >&6
9716 else
9717 eval "$as_ac_Header=$ac_header_preproc"
9719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9724 cat >>confdefs.h <<_ACEOF
9725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9726 _ACEOF
9727 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
9728 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
9729 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
9730 echo $ECHO_N "(cached) $ECHO_C" >&6
9731 else
9732 ac_check_lib_save_LIBS=$LIBS
9733 LIBS="-laudioio $LIBS"
9734 cat >conftest.$ac_ext <<_ACEOF
9735 #line $LINENO "configure"
9736 #include "confdefs.h"
9738 /* Override any gcc2 internal prototype to avoid an error. */
9739 #ifdef __cplusplus
9740 extern "C"
9741 #endif
9742 /* We use char because int might match the return type of a gcc2
9743 builtin and then its argument prototype would still apply. */
9744 char AudioIOGetVersion ();
9745 #ifdef F77_DUMMY_MAIN
9746 # ifdef __cplusplus
9747 extern "C"
9748 # endif
9749 int F77_DUMMY_MAIN() { return 1; }
9750 #endif
9752 main ()
9754 AudioIOGetVersion ();
9756 return 0;
9758 _ACEOF
9759 rm -f conftest.$ac_objext conftest$ac_exeext
9760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9761 (eval $ac_link) 2>&5
9762 ac_status=$?
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); } &&
9765 { ac_try='test -s conftest$ac_exeext'
9766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9767 (eval $ac_try) 2>&5
9768 ac_status=$?
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); }; }; then
9771 ac_cv_lib_audioio_AudioIOGetVersion=yes
9772 else
9773 echo "$as_me: failed program was:" >&5
9774 cat conftest.$ac_ext >&5
9775 ac_cv_lib_audioio_AudioIOGetVersion=no
9777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9778 LIBS=$ac_check_lib_save_LIBS
9780 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
9781 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
9782 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
9783 AUDIOIOLIBS="-laudioio"
9785 cat >>confdefs.h <<\_ACEOF
9786 #define HAVE_LIBAUDIOIO 1
9787 _ACEOF
9793 done
9797 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
9798 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
9799 if test "${ac_cv_mmap64_works+set}" = set; then
9800 echo $ECHO_N "(cached) $ECHO_C" >&6
9801 else
9802 if test "$cross_compiling" = yes; then
9803 ac_cv_mmap64_works="no"
9804 else
9805 cat >conftest.$ac_ext <<_ACEOF
9806 #line $LINENO "configure"
9807 #include "confdefs.h"
9809 #define _FILE_OFFSET_BITS 64
9810 #include <stdio.h>
9811 #include <unistd.h>
9812 #include <fcntl.h>
9813 #include <sys/mman.h>
9814 #include <errno.h>
9816 int main(int argc,char **argv) {
9817 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
9818 if (fd == -1) exit(1);
9820 unlink("conftest.map");
9822 write(fd,"test",4);
9824 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
9825 (errno == EINVAL)
9827 exit(1);
9829 close(fd);
9830 fprintf(stderr,"success!\n");
9831 exit(0);
9835 _ACEOF
9836 rm -f conftest$ac_exeext
9837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9838 (eval $ac_link) 2>&5
9839 ac_status=$?
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843 (eval $ac_try) 2>&5
9844 ac_status=$?
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; }; then
9847 ac_cv_mmap64_works="yes"
9848 else
9849 echo "$as_me: program exited with status $ac_status" >&5
9850 echo "$as_me: failed program was:" >&5
9851 cat conftest.$ac_ext >&5
9852 ( exit $ac_status )
9853 ac_cv_mmap64_works="no"
9855 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9858 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
9859 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
9861 if test "$ac_cv_mmap64_works" = "yes"
9862 then
9864 cat >>confdefs.h <<\_ACEOF
9865 #define _FILE_OFFSET_BITS 64
9866 _ACEOF
9871 if test "x${GCC}" = "xyes"
9872 then
9873 CFLAGS="$CFLAGS -Wall"
9874 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
9875 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
9876 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
9877 echo $ECHO_N "(cached) $ECHO_C" >&6
9878 else
9879 if test "$cross_compiling" = yes; then
9880 ac_cv_c_gcc_strength_bug="yes"
9881 else
9882 cat >conftest.$ac_ext <<_ACEOF
9883 #line $LINENO "configure"
9884 #include "confdefs.h"
9886 int L[4] = {0,1,2,3};
9887 int main(void) {
9888 static int Array[3];
9889 unsigned int B = 3;
9890 int i;
9891 for(i=0; i<B; i++) Array[i] = i - 3;
9892 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
9893 L[i] = 4;
9895 exit( Array[1] != -2 || L[2] != 3);
9897 _ACEOF
9898 rm -f conftest$ac_exeext
9899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9900 (eval $ac_link) 2>&5
9901 ac_status=$?
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9905 (eval $ac_try) 2>&5
9906 ac_status=$?
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); }; }; then
9909 ac_cv_c_gcc_strength_bug="no"
9910 else
9911 echo "$as_me: program exited with status $ac_status" >&5
9912 echo "$as_me: failed program was:" >&5
9913 cat conftest.$ac_ext >&5
9914 ( exit $ac_status )
9915 ac_cv_c_gcc_strength_bug="yes"
9917 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9920 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
9921 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
9922 if test "$ac_cv_c_gcc_strength_bug" = "yes"
9923 then
9924 CFLAGS="$CFLAGS -fno-strength-reduce"
9927 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
9928 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
9929 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
9930 echo $ECHO_N "(cached) $ECHO_C" >&6
9931 else
9932 ac_wine_try_cflags_saved=$CFLAGS
9933 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9934 cat >conftest.$ac_ext <<_ACEOF
9935 #line $LINENO "configure"
9936 #include "confdefs.h"
9938 #ifdef F77_DUMMY_MAIN
9939 # ifdef __cplusplus
9940 extern "C"
9941 # endif
9942 int F77_DUMMY_MAIN() { return 1; }
9943 #endif
9945 main ()
9949 return 0;
9951 _ACEOF
9952 rm -f conftest.$ac_objext conftest$ac_exeext
9953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9954 (eval $ac_link) 2>&5
9955 ac_status=$?
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); } &&
9958 { ac_try='test -s conftest$ac_exeext'
9959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9960 (eval $ac_try) 2>&5
9961 ac_status=$?
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); }; }; then
9964 ac_cv_c_gcc_stack_boundary="yes"
9965 else
9966 echo "$as_me: failed program was:" >&5
9967 cat conftest.$ac_ext >&5
9968 ac_cv_c_gcc_stack_boundary="no"
9970 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9971 CFLAGS=$ac_wine_try_cflags_saved
9973 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
9974 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
9975 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
9976 then
9977 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9982 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
9983 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
9984 if test "${ac_cv_asm_func_def+set}" = set; then
9985 echo $ECHO_N "(cached) $ECHO_C" >&6
9986 else
9987 cat >conftest.$ac_ext <<_ACEOF
9988 #line $LINENO "configure"
9989 #include "confdefs.h"
9990 void ac_asm(void) { asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0"); }
9992 #ifdef F77_DUMMY_MAIN
9993 # ifdef __cplusplus
9994 extern "C"
9995 # endif
9996 int F77_DUMMY_MAIN() { return 1; }
9997 #endif
9999 main ()
10003 return 0;
10005 _ACEOF
10006 rm -f conftest.$ac_objext conftest$ac_exeext
10007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10008 (eval $ac_link) 2>&5
10009 ac_status=$?
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); } &&
10012 { ac_try='test -s conftest$ac_exeext'
10013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10014 (eval $ac_try) 2>&5
10015 ac_status=$?
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); }; }; then
10018 ac_cv_asm_func_def=".def"
10019 else
10020 echo "$as_me: failed program was:" >&5
10021 cat conftest.$ac_ext >&5
10022 cat >conftest.$ac_ext <<_ACEOF
10023 #line $LINENO "configure"
10024 #include "confdefs.h"
10025 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
10027 #ifdef F77_DUMMY_MAIN
10028 # ifdef __cplusplus
10029 extern "C"
10030 # endif
10031 int F77_DUMMY_MAIN() { return 1; }
10032 #endif
10034 main ()
10038 return 0;
10040 _ACEOF
10041 rm -f conftest.$ac_objext conftest$ac_exeext
10042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10043 (eval $ac_link) 2>&5
10044 ac_status=$?
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); } &&
10047 { ac_try='test -s conftest$ac_exeext'
10048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10049 (eval $ac_try) 2>&5
10050 ac_status=$?
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); }; }; then
10053 ac_cv_asm_func_def=".type @function"
10054 else
10055 echo "$as_me: failed program was:" >&5
10056 cat conftest.$ac_ext >&5
10057 cat >conftest.$ac_ext <<_ACEOF
10058 #line $LINENO "configure"
10059 #include "confdefs.h"
10060 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
10062 #ifdef F77_DUMMY_MAIN
10063 # ifdef __cplusplus
10064 extern "C"
10065 # endif
10066 int F77_DUMMY_MAIN() { return 1; }
10067 #endif
10069 main ()
10073 return 0;
10075 _ACEOF
10076 rm -f conftest.$ac_objext conftest$ac_exeext
10077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10078 (eval $ac_link) 2>&5
10079 ac_status=$?
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); } &&
10082 { ac_try='test -s conftest$ac_exeext'
10083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10084 (eval $ac_try) 2>&5
10085 ac_status=$?
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); }; }; then
10088 ac_cv_asm_func_def=".type 2"
10089 else
10090 echo "$as_me: failed program was:" >&5
10091 cat conftest.$ac_ext >&5
10092 ac_cv_asm_func_def="unknown"
10094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10100 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
10101 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
10105 case "$ac_cv_asm_func_def" in
10106 ".def")
10107 cat >>confdefs.h <<\_ACEOF
10108 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
10109 _ACEOF
10111 ".type @function")
10112 cat >>confdefs.h <<\_ACEOF
10113 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
10114 _ACEOF
10116 ".type 2")
10117 cat >>confdefs.h <<\_ACEOF
10118 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
10119 _ACEOF
10122 cat >>confdefs.h <<\_ACEOF
10123 #define __ASM_FUNC(name) ""
10124 _ACEOF
10126 esac
10129 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
10130 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
10131 if test "${ac_cv_c_extern_prefix+set}" = set; then
10132 echo $ECHO_N "(cached) $ECHO_C" >&6
10133 else
10134 cat >conftest.$ac_ext <<_ACEOF
10135 #line $LINENO "configure"
10136 #include "confdefs.h"
10137 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
10138 extern int ac_test;
10139 #ifdef F77_DUMMY_MAIN
10140 # ifdef __cplusplus
10141 extern "C"
10142 # endif
10143 int F77_DUMMY_MAIN() { return 1; }
10144 #endif
10146 main ()
10148 if (ac_test) return 1
10150 return 0;
10152 _ACEOF
10153 rm -f conftest.$ac_objext conftest$ac_exeext
10154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10155 (eval $ac_link) 2>&5
10156 ac_status=$?
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); } &&
10159 { ac_try='test -s conftest$ac_exeext'
10160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10161 (eval $ac_try) 2>&5
10162 ac_status=$?
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); }; }; then
10165 ac_cv_c_extern_prefix="yes"
10166 else
10167 echo "$as_me: failed program was:" >&5
10168 cat conftest.$ac_ext >&5
10169 ac_cv_c_extern_prefix="no"
10171 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10173 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
10174 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
10178 if test "$ac_cv_c_extern_prefix" = "yes"
10179 then
10180 cat >>confdefs.h <<\_ACEOF
10181 #define __ASM_NAME(name) "_" name
10182 _ACEOF
10184 else
10185 cat >>confdefs.h <<\_ACEOF
10186 #define __ASM_NAME(name) name
10187 _ACEOF
10192 echo "$as_me:$LINENO: checking whether stdcall symbols need to be decorated" >&5
10193 echo $ECHO_N "checking whether stdcall symbols need to be decorated... $ECHO_C" >&6
10194 if test "${ac_cv_c_stdcall_decoration+set}" = set; then
10195 echo $ECHO_N "(cached) $ECHO_C" >&6
10196 else
10197 cat >conftest.$ac_ext <<_ACEOF
10198 #line $LINENO "configure"
10199 #include "confdefs.h"
10200 void ac_asm(void) { asm("\t.globl _ac_test@0\n_ac_test@0:\n\t.globl ac_test@0\nac_test@0:"); }
10201 extern void __attribute__((__stdcall__)) ac_test(void);
10202 #ifdef F77_DUMMY_MAIN
10203 # ifdef __cplusplus
10204 extern "C"
10205 # endif
10206 int F77_DUMMY_MAIN() { return 1; }
10207 #endif
10209 main ()
10211 ac_test()
10213 return 0;
10215 _ACEOF
10216 rm -f conftest.$ac_objext conftest$ac_exeext
10217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10218 (eval $ac_link) 2>&5
10219 ac_status=$?
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); } &&
10222 { ac_try='test -s conftest$ac_exeext'
10223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224 (eval $ac_try) 2>&5
10225 ac_status=$?
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; }; then
10228 ac_cv_c_stdcall_decoration="yes"
10229 else
10230 echo "$as_me: failed program was:" >&5
10231 cat conftest.$ac_ext >&5
10232 ac_cv_c_stdcall_decoration="no"
10234 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10236 echo "$as_me:$LINENO: result: $ac_cv_c_stdcall_decoration" >&5
10237 echo "${ECHO_T}$ac_cv_c_stdcall_decoration" >&6
10238 if test "$ac_cv_c_stdcall_decoration" = "yes"
10239 then
10241 cat >>confdefs.h <<\_ACEOF
10242 #define NEED_STDCALL_DECORATION 1
10243 _ACEOF
10248 echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
10249 echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
10250 if test "${ac_cv_c_asm_string+set}" = set; then
10251 echo $ECHO_N "(cached) $ECHO_C" >&6
10252 else
10253 cat >conftest.$ac_ext <<_ACEOF
10254 #line $LINENO "configure"
10255 #include "confdefs.h"
10256 void ac_asm(void) { asm(".data\n\t.string \"test\"\n\t.text"); }
10258 #ifdef F77_DUMMY_MAIN
10259 # ifdef __cplusplus
10260 extern "C"
10261 # endif
10262 int F77_DUMMY_MAIN() { return 1; }
10263 #endif
10265 main ()
10269 return 0;
10271 _ACEOF
10272 rm -f conftest.$ac_objext conftest$ac_exeext
10273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10274 (eval $ac_link) 2>&5
10275 ac_status=$?
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); } &&
10278 { ac_try='test -s conftest$ac_exeext'
10279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10280 (eval $ac_try) 2>&5
10281 ac_status=$?
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); }; }; then
10284 ac_cv_c_asm_string="yes"
10285 else
10286 echo "$as_me: failed program was:" >&5
10287 cat conftest.$ac_ext >&5
10288 ac_cv_c_asm_string="no"
10290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10292 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
10293 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
10294 if test "$ac_cv_c_asm_string" = "yes"
10295 then
10297 cat >>confdefs.h <<\_ACEOF
10298 #define HAVE_ASM_STRING 1
10299 _ACEOF
10304 DLLEXT=""
10306 DLLFLAGS=""
10308 DLLIBS=""
10310 LDDLLFLAGS=""
10312 LDSHARED=""
10315 case $host_os in
10316 cygwin*|mingw32*)
10317 if test -n "$ac_tool_prefix"; then
10318 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
10319 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
10320 echo "$as_me:$LINENO: checking for $ac_word" >&5
10321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10322 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
10323 echo $ECHO_N "(cached) $ECHO_C" >&6
10324 else
10325 if test -n "$DLLWRAP"; then
10326 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
10327 else
10328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10329 for as_dir in $PATH
10331 IFS=$as_save_IFS
10332 test -z "$as_dir" && as_dir=.
10333 for ac_exec_ext in '' $ac_executable_extensions; do
10334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10335 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
10336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10337 break 2
10339 done
10340 done
10344 DLLWRAP=$ac_cv_prog_DLLWRAP
10345 if test -n "$DLLWRAP"; then
10346 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
10347 echo "${ECHO_T}$DLLWRAP" >&6
10348 else
10349 echo "$as_me:$LINENO: result: no" >&5
10350 echo "${ECHO_T}no" >&6
10354 if test -z "$ac_cv_prog_DLLWRAP"; then
10355 ac_ct_DLLWRAP=$DLLWRAP
10356 # Extract the first word of "dllwrap", so it can be a program name with args.
10357 set dummy dllwrap; ac_word=$2
10358 echo "$as_me:$LINENO: checking for $ac_word" >&5
10359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10360 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
10361 echo $ECHO_N "(cached) $ECHO_C" >&6
10362 else
10363 if test -n "$ac_ct_DLLWRAP"; then
10364 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
10365 else
10366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10367 for as_dir in $PATH
10369 IFS=$as_save_IFS
10370 test -z "$as_dir" && as_dir=.
10371 for ac_exec_ext in '' $ac_executable_extensions; do
10372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10373 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
10374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10375 break 2
10377 done
10378 done
10380 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
10383 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
10384 if test -n "$ac_ct_DLLWRAP"; then
10385 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
10386 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
10387 else
10388 echo "$as_me:$LINENO: result: no" >&5
10389 echo "${ECHO_T}no" >&6
10392 DLLWRAP=$ac_ct_DLLWRAP
10393 else
10394 DLLWRAP="$ac_cv_prog_DLLWRAP"
10397 if test "$DLLWRAP" = "false"; then
10398 LIBEXT="a"
10399 else
10400 LIBEXT="dll"
10405 for ac_header in dlfcn.h
10407 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10409 echo "$as_me:$LINENO: checking for $ac_header" >&5
10410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10415 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10416 else
10417 # Is the header compilable?
10418 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10419 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10420 cat >conftest.$ac_ext <<_ACEOF
10421 #line $LINENO "configure"
10422 #include "confdefs.h"
10423 $ac_includes_default
10424 #include <$ac_header>
10425 _ACEOF
10426 rm -f conftest.$ac_objext
10427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10428 (eval $ac_compile) 2>&5
10429 ac_status=$?
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); } &&
10432 { ac_try='test -s conftest.$ac_objext'
10433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10434 (eval $ac_try) 2>&5
10435 ac_status=$?
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); }; }; then
10438 ac_header_compiler=yes
10439 else
10440 echo "$as_me: failed program was:" >&5
10441 cat conftest.$ac_ext >&5
10442 ac_header_compiler=no
10444 rm -f conftest.$ac_objext conftest.$ac_ext
10445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10446 echo "${ECHO_T}$ac_header_compiler" >&6
10448 # Is the header present?
10449 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10451 cat >conftest.$ac_ext <<_ACEOF
10452 #line $LINENO "configure"
10453 #include "confdefs.h"
10454 #include <$ac_header>
10455 _ACEOF
10456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10458 ac_status=$?
10459 egrep -v '^ *\+' conftest.er1 >conftest.err
10460 rm -f conftest.er1
10461 cat conftest.err >&5
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); } >/dev/null; then
10464 if test -s conftest.err; then
10465 ac_cpp_err=$ac_c_preproc_warn_flag
10466 else
10467 ac_cpp_err=
10469 else
10470 ac_cpp_err=yes
10472 if test -z "$ac_cpp_err"; then
10473 ac_header_preproc=yes
10474 else
10475 echo "$as_me: failed program was:" >&5
10476 cat conftest.$ac_ext >&5
10477 ac_header_preproc=no
10479 rm -f conftest.err conftest.$ac_ext
10480 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10481 echo "${ECHO_T}$ac_header_preproc" >&6
10483 # So? What about this header?
10484 case $ac_header_compiler:$ac_header_preproc in
10485 yes:no )
10486 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10487 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10489 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10490 no:yes )
10491 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10492 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10493 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10494 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10496 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10497 esac
10498 echo "$as_me:$LINENO: checking for $ac_header" >&5
10499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10501 echo $ECHO_N "(cached) $ECHO_C" >&6
10502 else
10503 eval "$as_ac_Header=$ac_header_preproc"
10505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10510 cat >>confdefs.h <<_ACEOF
10511 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10512 _ACEOF
10514 for ac_func in dlopen
10516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10517 echo "$as_me:$LINENO: checking for $ac_func" >&5
10518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10519 if eval "test \"\${$as_ac_var+set}\" = set"; then
10520 echo $ECHO_N "(cached) $ECHO_C" >&6
10521 else
10522 cat >conftest.$ac_ext <<_ACEOF
10523 #line $LINENO "configure"
10524 #include "confdefs.h"
10525 /* System header to define __stub macros and hopefully few prototypes,
10526 which can conflict with char $ac_func (); below. */
10527 #include <assert.h>
10528 /* Override any gcc2 internal prototype to avoid an error. */
10529 #ifdef __cplusplus
10530 extern "C"
10531 #endif
10532 /* We use char because int might match the return type of a gcc2
10533 builtin and then its argument prototype would still apply. */
10534 char $ac_func ();
10535 char (*f) ();
10537 #ifdef F77_DUMMY_MAIN
10538 # ifdef __cplusplus
10539 extern "C"
10540 # endif
10541 int F77_DUMMY_MAIN() { return 1; }
10542 #endif
10544 main ()
10546 /* The GNU C library defines this for functions which it implements
10547 to always fail with ENOSYS. Some functions are actually named
10548 something starting with __ and the normal name is an alias. */
10549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10550 choke me
10551 #else
10552 f = $ac_func;
10553 #endif
10556 return 0;
10558 _ACEOF
10559 rm -f conftest.$ac_objext conftest$ac_exeext
10560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10561 (eval $ac_link) 2>&5
10562 ac_status=$?
10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 (exit $ac_status); } &&
10565 { ac_try='test -s conftest$ac_exeext'
10566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10567 (eval $ac_try) 2>&5
10568 ac_status=$?
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); }; }; then
10571 eval "$as_ac_var=yes"
10572 else
10573 echo "$as_me: failed program was:" >&5
10574 cat conftest.$ac_ext >&5
10575 eval "$as_ac_var=no"
10577 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10580 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10581 if test `eval echo '${'$as_ac_var'}'` = yes; then
10582 cat >>confdefs.h <<_ACEOF
10583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10584 _ACEOF
10586 else
10587 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10588 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10589 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10590 echo $ECHO_N "(cached) $ECHO_C" >&6
10591 else
10592 ac_check_lib_save_LIBS=$LIBS
10593 LIBS="-ldl $LIBS"
10594 cat >conftest.$ac_ext <<_ACEOF
10595 #line $LINENO "configure"
10596 #include "confdefs.h"
10598 /* Override any gcc2 internal prototype to avoid an error. */
10599 #ifdef __cplusplus
10600 extern "C"
10601 #endif
10602 /* We use char because int might match the return type of a gcc2
10603 builtin and then its argument prototype would still apply. */
10604 char dlopen ();
10605 #ifdef F77_DUMMY_MAIN
10606 # ifdef __cplusplus
10607 extern "C"
10608 # endif
10609 int F77_DUMMY_MAIN() { return 1; }
10610 #endif
10612 main ()
10614 dlopen ();
10616 return 0;
10618 _ACEOF
10619 rm -f conftest.$ac_objext conftest$ac_exeext
10620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10621 (eval $ac_link) 2>&5
10622 ac_status=$?
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); } &&
10625 { ac_try='test -s conftest$ac_exeext'
10626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10627 (eval $ac_try) 2>&5
10628 ac_status=$?
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); }; }; then
10631 ac_cv_lib_dl_dlopen=yes
10632 else
10633 echo "$as_me: failed program was:" >&5
10634 cat conftest.$ac_ext >&5
10635 ac_cv_lib_dl_dlopen=no
10637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10638 LIBS=$ac_check_lib_save_LIBS
10640 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10641 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10642 if test $ac_cv_lib_dl_dlopen = yes; then
10644 cat >>confdefs.h <<\_ACEOF
10645 #define HAVE_DLOPEN 1
10646 _ACEOF
10648 DLLIBS="-ldl"
10649 else
10650 LIBEXT="a"
10654 done
10656 else
10657 LIBEXT="a"
10660 done
10663 if test "$LIBEXT" = "so"
10664 then
10665 DLLFLAGS="-fPIC"
10666 DLLEXT=".so"
10667 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
10668 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
10669 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
10670 echo $ECHO_N "(cached) $ECHO_C" >&6
10671 else
10672 ac_wine_try_cflags_saved=$CFLAGS
10673 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
10674 cat >conftest.$ac_ext <<_ACEOF
10675 #line $LINENO "configure"
10676 #include "confdefs.h"
10678 #ifdef F77_DUMMY_MAIN
10679 # ifdef __cplusplus
10680 extern "C"
10681 # endif
10682 int F77_DUMMY_MAIN() { return 1; }
10683 #endif
10685 main ()
10689 return 0;
10691 _ACEOF
10692 rm -f conftest.$ac_objext conftest$ac_exeext
10693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10694 (eval $ac_link) 2>&5
10695 ac_status=$?
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); } &&
10698 { ac_try='test -s conftest$ac_exeext'
10699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10700 (eval $ac_try) 2>&5
10701 ac_status=$?
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); }; }; then
10704 ac_cv_c_dll_gnuelf="yes"
10705 else
10706 echo "$as_me: failed program was:" >&5
10707 cat conftest.$ac_ext >&5
10708 ac_cv_c_dll_gnuelf="no"
10710 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10711 CFLAGS=$ac_wine_try_cflags_saved
10713 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
10714 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
10715 if test "$ac_cv_c_dll_gnuelf" = "yes"
10716 then
10717 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
10718 LDDLLFLAGS="-Wl,-Bsymbolic"
10719 else
10720 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
10721 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
10722 if test "${ac_cv_c_dll_unixware+set}" = set; then
10723 echo $ECHO_N "(cached) $ECHO_C" >&6
10724 else
10725 ac_wine_try_cflags_saved=$CFLAGS
10726 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
10727 cat >conftest.$ac_ext <<_ACEOF
10728 #line $LINENO "configure"
10729 #include "confdefs.h"
10731 #ifdef F77_DUMMY_MAIN
10732 # ifdef __cplusplus
10733 extern "C"
10734 # endif
10735 int F77_DUMMY_MAIN() { return 1; }
10736 #endif
10738 main ()
10742 return 0;
10744 _ACEOF
10745 rm -f conftest.$ac_objext conftest$ac_exeext
10746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10747 (eval $ac_link) 2>&5
10748 ac_status=$?
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); } &&
10751 { ac_try='test -s conftest$ac_exeext'
10752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10753 (eval $ac_try) 2>&5
10754 ac_status=$?
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); }; }; then
10757 ac_cv_c_dll_unixware="yes"
10758 else
10759 echo "$as_me: failed program was:" >&5
10760 cat conftest.$ac_ext >&5
10761 ac_cv_c_dll_unixware="no"
10763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10764 CFLAGS=$ac_wine_try_cflags_saved
10766 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
10767 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
10768 if test "$ac_cv_c_dll_unixware" = "yes"
10769 then
10770 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
10771 LDDLLFLAGS="-Wl,-B,symbolic"
10776 CROSSTEST=""
10778 if test "$cross_compiling" = "no"
10779 then
10780 for ac_prog in i586-mingw32msvc-gcc
10782 # Extract the first word of "$ac_prog", so it can be a program name with args.
10783 set dummy $ac_prog; ac_word=$2
10784 echo "$as_me:$LINENO: checking for $ac_word" >&5
10785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10786 if test "${ac_cv_prog_CROSSCC+set}" = set; then
10787 echo $ECHO_N "(cached) $ECHO_C" >&6
10788 else
10789 if test -n "$CROSSCC"; then
10790 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
10791 else
10792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10793 for as_dir in $PATH
10795 IFS=$as_save_IFS
10796 test -z "$as_dir" && as_dir=.
10797 for ac_exec_ext in '' $ac_executable_extensions; do
10798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10799 ac_cv_prog_CROSSCC="$ac_prog"
10800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10801 break 2
10803 done
10804 done
10808 CROSSCC=$ac_cv_prog_CROSSCC
10809 if test -n "$CROSSCC"; then
10810 echo "$as_me:$LINENO: result: $CROSSCC" >&5
10811 echo "${ECHO_T}$CROSSCC" >&6
10812 else
10813 echo "$as_me:$LINENO: result: no" >&5
10814 echo "${ECHO_T}no" >&6
10817 test -n "$CROSSCC" && break
10818 done
10819 test -n "$CROSSCC" || CROSSCC="false"
10821 for ac_prog in i586-mingw32msvc-dlltool
10823 # Extract the first word of "$ac_prog", so it can be a program name with args.
10824 set dummy $ac_prog; ac_word=$2
10825 echo "$as_me:$LINENO: checking for $ac_word" >&5
10826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10827 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
10828 echo $ECHO_N "(cached) $ECHO_C" >&6
10829 else
10830 if test -n "$DLLTOOL"; then
10831 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10832 else
10833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10834 for as_dir in $PATH
10836 IFS=$as_save_IFS
10837 test -z "$as_dir" && as_dir=.
10838 for ac_exec_ext in '' $ac_executable_extensions; do
10839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10840 ac_cv_prog_DLLTOOL="$ac_prog"
10841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10842 break 2
10844 done
10845 done
10849 DLLTOOL=$ac_cv_prog_DLLTOOL
10850 if test -n "$DLLTOOL"; then
10851 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
10852 echo "${ECHO_T}$DLLTOOL" >&6
10853 else
10854 echo "$as_me:$LINENO: result: no" >&5
10855 echo "${ECHO_T}no" >&6
10858 test -n "$DLLTOOL" && break
10859 done
10860 test -n "$DLLTOOL" || DLLTOOL="false"
10862 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
10865 esac
10867 if test "$LIBEXT" = "a"; then
10868 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
10869 It is currently not possible to build Wine without shared library
10870 (.so) support to allow transparent switch between .so and .dll files.
10871 If you are using Linux, you will need a newer binutils.
10872 " >&5
10873 echo "$as_me: error: could not find a way to build shared libraries.
10874 It is currently not possible to build Wine without shared library
10875 (.so) support to allow transparent switch between .so and .dll files.
10876 If you are using Linux, you will need a newer binutils.
10877 " >&2;}
10878 { (exit 1); exit 1; }; }
10881 case $build_os in
10882 cygwin*|mingw32*)
10883 LDPATH="PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$PATH\""
10886 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$LD_LIBRARY_PATH\""
10888 esac
10890 CRTLIBS=""
10892 case $host_os in
10893 mingw32*)
10894 CRTLIBS="-lmsvcrt" ;;
10895 esac
10898 if test "$LIBEXT" = "so"
10899 then
10900 # Extract the first word of "ldd", so it can be a program name with args.
10901 set dummy ldd; ac_word=$2
10902 echo "$as_me:$LINENO: checking for $ac_word" >&5
10903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10904 if test "${ac_cv_path_LDD+set}" = set; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
10906 else
10907 case $LDD in
10908 [\\/]* | ?:[\\/]*)
10909 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
10912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10913 for as_dir in /sbin:/usr/sbin:$PATH
10915 IFS=$as_save_IFS
10916 test -z "$as_dir" && as_dir=.
10917 for ac_exec_ext in '' $ac_executable_extensions; do
10918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10919 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
10920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10921 break 2
10923 done
10924 done
10926 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
10928 esac
10930 LDD=$ac_cv_path_LDD
10932 if test -n "$LDD"; then
10933 echo "$as_me:$LINENO: result: $LDD" >&5
10934 echo "${ECHO_T}$LDD" >&6
10935 else
10936 echo "$as_me:$LINENO: result: no" >&5
10937 echo "${ECHO_T}no" >&6
10941 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
10942 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
10943 if test "${ac_cv_lib_soname_X11+set}" = set; then
10944 echo $ECHO_N "(cached) $ECHO_C" >&6
10945 else
10946 ac_get_soname_save_LIBS=$LIBS
10947 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
10948 cat >conftest.$ac_ext <<_ACEOF
10949 #line $LINENO "configure"
10950 #include "confdefs.h"
10952 /* Override any gcc2 internal prototype to avoid an error. */
10953 #ifdef __cplusplus
10954 extern "C"
10955 #endif
10956 /* We use char because int might match the return type of a gcc2
10957 builtin and then its argument prototype would still apply. */
10958 char XCreateWindow ();
10959 #ifdef F77_DUMMY_MAIN
10960 # ifdef __cplusplus
10961 extern "C"
10962 # endif
10963 int F77_DUMMY_MAIN() { return 1; }
10964 #endif
10966 main ()
10968 XCreateWindow ();
10970 return 0;
10972 _ACEOF
10973 rm -f conftest.$ac_objext conftest$ac_exeext
10974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10975 (eval $ac_link) 2>&5
10976 ac_status=$?
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); } &&
10979 { ac_try='test -s conftest$ac_exeext'
10980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10981 (eval $ac_try) 2>&5
10982 ac_status=$?
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); }; }; then
10985 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10986 if test "x$ac_cv_lib_soname_X11" = "x"
10987 then
10988 ac_cv_lib_soname_X11="libX11.so"
10990 else
10991 echo "$as_me: failed program was:" >&5
10992 cat conftest.$ac_ext >&5
10993 ac_cv_lib_soname_X11="libX11.so"
10995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10996 LIBS=$ac_get_soname_save_LIBS
10998 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
10999 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
11000 if test "x$ac_cv_lib_soname_X11" != xNONE
11001 then
11002 cat >>confdefs.h <<_ACEOF
11003 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
11004 _ACEOF
11007 echo "$as_me:$LINENO: checking for -lXext soname" >&5
11008 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
11009 if test "${ac_cv_lib_soname_Xext+set}" = set; then
11010 echo $ECHO_N "(cached) $ECHO_C" >&6
11011 else
11012 ac_get_soname_save_LIBS=$LIBS
11013 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
11014 cat >conftest.$ac_ext <<_ACEOF
11015 #line $LINENO "configure"
11016 #include "confdefs.h"
11018 /* Override any gcc2 internal prototype to avoid an error. */
11019 #ifdef __cplusplus
11020 extern "C"
11021 #endif
11022 /* We use char because int might match the return type of a gcc2
11023 builtin and then its argument prototype would still apply. */
11024 char XextCreateExtension ();
11025 #ifdef F77_DUMMY_MAIN
11026 # ifdef __cplusplus
11027 extern "C"
11028 # endif
11029 int F77_DUMMY_MAIN() { return 1; }
11030 #endif
11032 main ()
11034 XextCreateExtension ();
11036 return 0;
11038 _ACEOF
11039 rm -f conftest.$ac_objext conftest$ac_exeext
11040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11041 (eval $ac_link) 2>&5
11042 ac_status=$?
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); } &&
11045 { ac_try='test -s conftest$ac_exeext'
11046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11047 (eval $ac_try) 2>&5
11048 ac_status=$?
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); }; }; then
11051 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
11052 if test "x$ac_cv_lib_soname_Xext" = "x"
11053 then
11054 ac_cv_lib_soname_Xext="libXext.so"
11056 else
11057 echo "$as_me: failed program was:" >&5
11058 cat conftest.$ac_ext >&5
11059 ac_cv_lib_soname_Xext="libXext.so"
11061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11062 LIBS=$ac_get_soname_save_LIBS
11064 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
11065 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
11066 if test "x$ac_cv_lib_soname_Xext" != xNONE
11067 then
11068 cat >>confdefs.h <<_ACEOF
11069 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
11070 _ACEOF
11073 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
11074 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
11075 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
11076 echo $ECHO_N "(cached) $ECHO_C" >&6
11077 else
11078 ac_get_soname_save_LIBS=$LIBS
11079 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
11080 cat >conftest.$ac_ext <<_ACEOF
11081 #line $LINENO "configure"
11082 #include "confdefs.h"
11084 /* Override any gcc2 internal prototype to avoid an error. */
11085 #ifdef __cplusplus
11086 extern "C"
11087 #endif
11088 /* We use char because int might match the return type of a gcc2
11089 builtin and then its argument prototype would still apply. */
11090 char XRenderQueryExtension ();
11091 #ifdef F77_DUMMY_MAIN
11092 # ifdef __cplusplus
11093 extern "C"
11094 # endif
11095 int F77_DUMMY_MAIN() { return 1; }
11096 #endif
11098 main ()
11100 XRenderQueryExtension ();
11102 return 0;
11104 _ACEOF
11105 rm -f conftest.$ac_objext conftest$ac_exeext
11106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11107 (eval $ac_link) 2>&5
11108 ac_status=$?
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); } &&
11111 { ac_try='test -s conftest$ac_exeext'
11112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11113 (eval $ac_try) 2>&5
11114 ac_status=$?
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); }; }; then
11117 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
11118 if test "x$ac_cv_lib_soname_Xrender" = "x"
11119 then
11120 ac_cv_lib_soname_Xrender="libXrender.so"
11122 else
11123 echo "$as_me: failed program was:" >&5
11124 cat conftest.$ac_ext >&5
11125 ac_cv_lib_soname_Xrender="libXrender.so"
11127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11128 LIBS=$ac_get_soname_save_LIBS
11130 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
11131 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
11132 if test "x$ac_cv_lib_soname_Xrender" != xNONE
11133 then
11134 cat >>confdefs.h <<_ACEOF
11135 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
11136 _ACEOF
11139 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
11140 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
11141 if test "${ac_cv_lib_soname_freetype+set}" = set; then
11142 echo $ECHO_N "(cached) $ECHO_C" >&6
11143 else
11144 ac_get_soname_save_LIBS=$LIBS
11145 LIBS="-lfreetype $X_LIBS $LIBS"
11146 cat >conftest.$ac_ext <<_ACEOF
11147 #line $LINENO "configure"
11148 #include "confdefs.h"
11150 /* Override any gcc2 internal prototype to avoid an error. */
11151 #ifdef __cplusplus
11152 extern "C"
11153 #endif
11154 /* We use char because int might match the return type of a gcc2
11155 builtin and then its argument prototype would still apply. */
11156 char FT_Init_FreeType ();
11157 #ifdef F77_DUMMY_MAIN
11158 # ifdef __cplusplus
11159 extern "C"
11160 # endif
11161 int F77_DUMMY_MAIN() { return 1; }
11162 #endif
11164 main ()
11166 FT_Init_FreeType ();
11168 return 0;
11170 _ACEOF
11171 rm -f conftest.$ac_objext conftest$ac_exeext
11172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11173 (eval $ac_link) 2>&5
11174 ac_status=$?
11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176 (exit $ac_status); } &&
11177 { ac_try='test -s conftest$ac_exeext'
11178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11179 (eval $ac_try) 2>&5
11180 ac_status=$?
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); }; }; then
11183 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
11184 if test "x$ac_cv_lib_soname_freetype" = "x"
11185 then
11186 ac_cv_lib_soname_freetype="libfreetype.so"
11188 else
11189 echo "$as_me: failed program was:" >&5
11190 cat conftest.$ac_ext >&5
11191 ac_cv_lib_soname_freetype="libfreetype.so"
11193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11194 LIBS=$ac_get_soname_save_LIBS
11196 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
11197 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
11198 if test "x$ac_cv_lib_soname_freetype" != xNONE
11199 then
11200 cat >>confdefs.h <<_ACEOF
11201 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
11202 _ACEOF
11208 wine_cv_libc_reentrant=no
11209 echo "$as_me:$LINENO: checking for reentrant libc: __errno_location" >&5
11210 echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6
11211 if test "${wine_cv_libc_r___errno_location+set}" = set; then
11212 echo $ECHO_N "(cached) $ECHO_C" >&6
11213 else
11214 if test "$cross_compiling" = yes; then
11215 wine_cv_libc_r___errno_location=yes
11216 else
11217 cat >conftest.$ac_ext <<_ACEOF
11218 #line $LINENO "configure"
11219 #include "confdefs.h"
11220 int myerrno = 0;
11221 int *__errno_location(){return &myerrno;}
11222 main(){close(333); close(333); exit(!myerrno);}
11223 _ACEOF
11224 rm -f conftest$ac_exeext
11225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11226 (eval $ac_link) 2>&5
11227 ac_status=$?
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11231 (eval $ac_try) 2>&5
11232 ac_status=$?
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); }; }; then
11235 wine_cv_libc_r___errno_location=yes
11236 else
11237 echo "$as_me: program exited with status $ac_status" >&5
11238 echo "$as_me: failed program was:" >&5
11239 cat conftest.$ac_ext >&5
11240 ( exit $ac_status )
11241 wine_cv_libc_r___errno_location=no
11243 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11246 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno_location" >&5
11247 echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6
11248 if test "$wine_cv_libc_r___errno_location" = "yes"; then
11249 wine_cv_libc_reentrant=__errno_location
11250 else
11251 echo "$as_me:$LINENO: checking for reentrant libc: __error" >&5
11252 echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6
11253 if test "${wine_cv_libc_r___error+set}" = set; then
11254 echo $ECHO_N "(cached) $ECHO_C" >&6
11255 else
11256 if test "$cross_compiling" = yes; then
11257 wine_cv_libc_r___error=yes
11258 else
11259 cat >conftest.$ac_ext <<_ACEOF
11260 #line $LINENO "configure"
11261 #include "confdefs.h"
11262 int myerrno = 0;
11263 int *__error(){return &myerrno;}
11264 main(){close(333); close(333); exit(!myerrno);}
11265 _ACEOF
11266 rm -f conftest$ac_exeext
11267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11268 (eval $ac_link) 2>&5
11269 ac_status=$?
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11273 (eval $ac_try) 2>&5
11274 ac_status=$?
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); }; }; then
11277 wine_cv_libc_r___error=yes
11278 else
11279 echo "$as_me: program exited with status $ac_status" >&5
11280 echo "$as_me: failed program was:" >&5
11281 cat conftest.$ac_ext >&5
11282 ( exit $ac_status )
11283 wine_cv_libc_r___error=no
11285 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11288 echo "$as_me:$LINENO: result: $wine_cv_libc_r___error" >&5
11289 echo "${ECHO_T}$wine_cv_libc_r___error" >&6
11290 if test "$wine_cv_libc_r___error" = "yes"; then
11291 wine_cv_libc_reentrant=__error
11292 else
11293 echo "$as_me:$LINENO: checking for reentrant libc: ___errno" >&5
11294 echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6
11295 if test "${wine_cv_libc_r____errno+set}" = set; then
11296 echo $ECHO_N "(cached) $ECHO_C" >&6
11297 else
11298 if test "$cross_compiling" = yes; then
11299 wine_cv_libc_r____errno=yes
11300 else
11301 cat >conftest.$ac_ext <<_ACEOF
11302 #line $LINENO "configure"
11303 #include "confdefs.h"
11304 int myerrno = 0;
11305 int *___errno(){return &myerrno;}
11306 main(){close(333); close(333); exit(!myerrno);}
11307 _ACEOF
11308 rm -f conftest$ac_exeext
11309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11310 (eval $ac_link) 2>&5
11311 ac_status=$?
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11315 (eval $ac_try) 2>&5
11316 ac_status=$?
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); }; }; then
11319 wine_cv_libc_r____errno=yes
11320 else
11321 echo "$as_me: program exited with status $ac_status" >&5
11322 echo "$as_me: failed program was:" >&5
11323 cat conftest.$ac_ext >&5
11324 ( exit $ac_status )
11325 wine_cv_libc_r____errno=no
11327 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11330 echo "$as_me:$LINENO: result: $wine_cv_libc_r____errno" >&5
11331 echo "${ECHO_T}$wine_cv_libc_r____errno" >&6
11332 if test "$wine_cv_libc_r____errno" = "yes"; then
11333 wine_cv_libc_reentrant=___errno
11334 else
11335 echo "$as_me:$LINENO: checking for reentrant libc: __thr_errno" >&5
11336 echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6
11337 if test "${wine_cv_libc_r___thr_errno+set}" = set; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
11339 else
11340 if test "$cross_compiling" = yes; then
11341 wine_cv_libc_r___thr_errno=yes
11342 else
11343 cat >conftest.$ac_ext <<_ACEOF
11344 #line $LINENO "configure"
11345 #include "confdefs.h"
11346 int myerrno = 0;
11347 int *__thr_errno(){return &myerrno;}
11348 main(){close(333); close(333); exit(!myerrno);}
11349 _ACEOF
11350 rm -f conftest$ac_exeext
11351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11352 (eval $ac_link) 2>&5
11353 ac_status=$?
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11357 (eval $ac_try) 2>&5
11358 ac_status=$?
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); }; }; then
11361 wine_cv_libc_r___thr_errno=yes
11362 else
11363 echo "$as_me: program exited with status $ac_status" >&5
11364 echo "$as_me: failed program was:" >&5
11365 cat conftest.$ac_ext >&5
11366 ( exit $ac_status )
11367 wine_cv_libc_r___thr_errno=no
11369 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11372 echo "$as_me:$LINENO: result: $wine_cv_libc_r___thr_errno" >&5
11373 echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6
11374 if test "$wine_cv_libc_r___thr_errno" = "yes"; then
11375 wine_cv_libc_reentrant=__thr_errno
11376 else
11377 echo "$as_me:$LINENO: checking for reentrant libc: __errno" >&5
11378 echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6
11379 if test "${wine_cv_libc_r___errno+set}" = set; then
11380 echo $ECHO_N "(cached) $ECHO_C" >&6
11381 else
11382 if test "$cross_compiling" = yes; then
11383 wine_cv_libc_r___errno=yes
11384 else
11385 cat >conftest.$ac_ext <<_ACEOF
11386 #line $LINENO "configure"
11387 #include "confdefs.h"
11388 int myerrno = 0;
11389 int *__errno(){return &myerrno;}
11390 main(){close(333); close(333); exit(!myerrno);}
11391 _ACEOF
11392 rm -f conftest$ac_exeext
11393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11394 (eval $ac_link) 2>&5
11395 ac_status=$?
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11399 (eval $ac_try) 2>&5
11400 ac_status=$?
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); }; }; then
11403 wine_cv_libc_r___errno=yes
11404 else
11405 echo "$as_me: program exited with status $ac_status" >&5
11406 echo "$as_me: failed program was:" >&5
11407 cat conftest.$ac_ext >&5
11408 ( exit $ac_status )
11409 wine_cv_libc_r___errno=no
11411 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11414 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno" >&5
11415 echo "${ECHO_T}$wine_cv_libc_r___errno" >&6
11416 if test "$wine_cv_libc_r___errno" = "yes"; then
11417 wine_cv_libc_reentrant=__errno
11430 if test "$wine_cv_libc_reentrant" != "no"
11431 then
11433 cat >>confdefs.h <<_ACEOF
11434 #define ERRNO_LOCATION $wine_cv_libc_reentrant
11435 _ACEOF
11440 if test "$have_x" = "yes"
11441 then
11442 echo "$as_me:$LINENO: checking for reentrant X libraries" >&5
11443 echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6
11444 if test "${wine_cv_x_reentrant+set}" = set; then
11445 echo $ECHO_N "(cached) $ECHO_C" >&6
11446 else
11447 libX11_check=none
11448 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
11449 if test -r $dir/libX11.so; then
11450 libX11_check="-D $dir/libX11.so"
11451 break
11453 if test -r $dir/libX11.a; then
11454 libX11_check="$dir/libX11.a"
11455 break
11457 done
11458 if test "$libX11_check" != "none"; then
11459 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
11460 then
11461 wine_cv_x_reentrant=yes
11462 else
11463 wine_cv_x_reentrant=no
11465 else
11466 wine_cv_x_reentrant=unknown
11469 echo "$as_me:$LINENO: result: $wine_cv_x_reentrant" >&5
11470 echo "${ECHO_T}$wine_cv_x_reentrant" >&6
11474 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11475 # for constant arguments. Useless!
11476 echo "$as_me:$LINENO: checking for working alloca.h" >&5
11477 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11478 if test "${ac_cv_working_alloca_h+set}" = set; then
11479 echo $ECHO_N "(cached) $ECHO_C" >&6
11480 else
11481 cat >conftest.$ac_ext <<_ACEOF
11482 #line $LINENO "configure"
11483 #include "confdefs.h"
11484 #include <alloca.h>
11485 #ifdef F77_DUMMY_MAIN
11486 # ifdef __cplusplus
11487 extern "C"
11488 # endif
11489 int F77_DUMMY_MAIN() { return 1; }
11490 #endif
11492 main ()
11494 char *p = (char *) alloca (2 * sizeof (int));
11496 return 0;
11498 _ACEOF
11499 rm -f conftest.$ac_objext conftest$ac_exeext
11500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11501 (eval $ac_link) 2>&5
11502 ac_status=$?
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); } &&
11505 { ac_try='test -s conftest$ac_exeext'
11506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507 (eval $ac_try) 2>&5
11508 ac_status=$?
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; }; then
11511 ac_cv_working_alloca_h=yes
11512 else
11513 echo "$as_me: failed program was:" >&5
11514 cat conftest.$ac_ext >&5
11515 ac_cv_working_alloca_h=no
11517 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11519 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11520 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11521 if test $ac_cv_working_alloca_h = yes; then
11523 cat >>confdefs.h <<\_ACEOF
11524 #define HAVE_ALLOCA_H 1
11525 _ACEOF
11529 echo "$as_me:$LINENO: checking for alloca" >&5
11530 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11531 if test "${ac_cv_func_alloca_works+set}" = set; then
11532 echo $ECHO_N "(cached) $ECHO_C" >&6
11533 else
11534 cat >conftest.$ac_ext <<_ACEOF
11535 #line $LINENO "configure"
11536 #include "confdefs.h"
11537 #ifdef __GNUC__
11538 # define alloca __builtin_alloca
11539 #else
11540 # ifdef _MSC_VER
11541 # include <malloc.h>
11542 # define alloca _alloca
11543 # else
11544 # if HAVE_ALLOCA_H
11545 # include <alloca.h>
11546 # else
11547 # ifdef _AIX
11548 #pragma alloca
11549 # else
11550 # ifndef alloca /* predefined by HP cc +Olibcalls */
11551 char *alloca ();
11552 # endif
11553 # endif
11554 # endif
11555 # endif
11556 #endif
11558 #ifdef F77_DUMMY_MAIN
11559 # ifdef __cplusplus
11560 extern "C"
11561 # endif
11562 int F77_DUMMY_MAIN() { return 1; }
11563 #endif
11565 main ()
11567 char *p = (char *) alloca (1);
11569 return 0;
11571 _ACEOF
11572 rm -f conftest.$ac_objext conftest$ac_exeext
11573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11574 (eval $ac_link) 2>&5
11575 ac_status=$?
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); } &&
11578 { ac_try='test -s conftest$ac_exeext'
11579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11580 (eval $ac_try) 2>&5
11581 ac_status=$?
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); }; }; then
11584 ac_cv_func_alloca_works=yes
11585 else
11586 echo "$as_me: failed program was:" >&5
11587 cat conftest.$ac_ext >&5
11588 ac_cv_func_alloca_works=no
11590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11592 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11593 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11595 if test $ac_cv_func_alloca_works = yes; then
11597 cat >>confdefs.h <<\_ACEOF
11598 #define HAVE_ALLOCA 1
11599 _ACEOF
11601 else
11602 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11603 # that cause trouble. Some versions do not even contain alloca or
11604 # contain a buggy version. If you still want to use their alloca,
11605 # use ar to extract alloca.o from them instead of compiling alloca.c.
11607 ALLOCA=alloca.$ac_objext
11609 cat >>confdefs.h <<\_ACEOF
11610 #define C_ALLOCA 1
11611 _ACEOF
11614 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11615 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11616 if test "${ac_cv_os_cray+set}" = set; then
11617 echo $ECHO_N "(cached) $ECHO_C" >&6
11618 else
11619 cat >conftest.$ac_ext <<_ACEOF
11620 #line $LINENO "configure"
11621 #include "confdefs.h"
11622 #if defined(CRAY) && ! defined(CRAY2)
11623 webecray
11624 #else
11625 wenotbecray
11626 #endif
11628 _ACEOF
11629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11630 egrep "webecray" >/dev/null 2>&1; then
11631 ac_cv_os_cray=yes
11632 else
11633 ac_cv_os_cray=no
11635 rm -f conftest*
11638 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11639 echo "${ECHO_T}$ac_cv_os_cray" >&6
11640 if test $ac_cv_os_cray = yes; then
11641 for ac_func in _getb67 GETB67 getb67; do
11642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11643 echo "$as_me:$LINENO: checking for $ac_func" >&5
11644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11645 if eval "test \"\${$as_ac_var+set}\" = set"; then
11646 echo $ECHO_N "(cached) $ECHO_C" >&6
11647 else
11648 cat >conftest.$ac_ext <<_ACEOF
11649 #line $LINENO "configure"
11650 #include "confdefs.h"
11651 /* System header to define __stub macros and hopefully few prototypes,
11652 which can conflict with char $ac_func (); below. */
11653 #include <assert.h>
11654 /* Override any gcc2 internal prototype to avoid an error. */
11655 #ifdef __cplusplus
11656 extern "C"
11657 #endif
11658 /* We use char because int might match the return type of a gcc2
11659 builtin and then its argument prototype would still apply. */
11660 char $ac_func ();
11661 char (*f) ();
11663 #ifdef F77_DUMMY_MAIN
11664 # ifdef __cplusplus
11665 extern "C"
11666 # endif
11667 int F77_DUMMY_MAIN() { return 1; }
11668 #endif
11670 main ()
11672 /* The GNU C library defines this for functions which it implements
11673 to always fail with ENOSYS. Some functions are actually named
11674 something starting with __ and the normal name is an alias. */
11675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11676 choke me
11677 #else
11678 f = $ac_func;
11679 #endif
11682 return 0;
11684 _ACEOF
11685 rm -f conftest.$ac_objext conftest$ac_exeext
11686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11687 (eval $ac_link) 2>&5
11688 ac_status=$?
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); } &&
11691 { ac_try='test -s conftest$ac_exeext'
11692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11693 (eval $ac_try) 2>&5
11694 ac_status=$?
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; }; then
11697 eval "$as_ac_var=yes"
11698 else
11699 echo "$as_me: failed program was:" >&5
11700 cat conftest.$ac_ext >&5
11701 eval "$as_ac_var=no"
11703 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11706 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11707 if test `eval echo '${'$as_ac_var'}'` = yes; then
11709 cat >>confdefs.h <<_ACEOF
11710 #define CRAY_STACKSEG_END $ac_func
11711 _ACEOF
11713 break
11716 done
11719 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11720 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11721 if test "${ac_cv_c_stack_direction+set}" = set; then
11722 echo $ECHO_N "(cached) $ECHO_C" >&6
11723 else
11724 if test "$cross_compiling" = yes; then
11725 ac_cv_c_stack_direction=0
11726 else
11727 cat >conftest.$ac_ext <<_ACEOF
11728 #line $LINENO "configure"
11729 #include "confdefs.h"
11731 find_stack_direction ()
11733 static char *addr = 0;
11734 auto char dummy;
11735 if (addr == 0)
11737 addr = &dummy;
11738 return find_stack_direction ();
11740 else
11741 return (&dummy > addr) ? 1 : -1;
11745 main ()
11747 exit (find_stack_direction () < 0);
11749 _ACEOF
11750 rm -f conftest$ac_exeext
11751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11752 (eval $ac_link) 2>&5
11753 ac_status=$?
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11757 (eval $ac_try) 2>&5
11758 ac_status=$?
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); }; }; then
11761 ac_cv_c_stack_direction=1
11762 else
11763 echo "$as_me: program exited with status $ac_status" >&5
11764 echo "$as_me: failed program was:" >&5
11765 cat conftest.$ac_ext >&5
11766 ( exit $ac_status )
11767 ac_cv_c_stack_direction=-1
11769 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11772 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11773 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11775 cat >>confdefs.h <<_ACEOF
11776 #define STACK_DIRECTION $ac_cv_c_stack_direction
11777 _ACEOF
11830 for ac_func in \
11831 __libc_fork \
11832 _lwp_create \
11833 _pclose \
11834 _popen \
11835 _snprintf \
11836 _stricmp \
11837 _strnicmp \
11838 chsize \
11839 clone \
11840 ecvt \
11841 finite \
11842 fpclass \
11843 ftruncate \
11844 ftruncate64 \
11845 getnetbyaddr \
11846 getnetbyname \
11847 getpagesize \
11848 getprotobyname \
11849 getprotobynumber \
11850 getpwuid \
11851 getservbyport \
11852 getsockopt \
11853 inet_network \
11854 lseek64 \
11855 lstat \
11856 memmove \
11857 mkstemp \
11858 mmap \
11859 pclose \
11860 popen \
11861 pread \
11862 pwrite \
11863 rfork \
11864 select \
11865 sendmsg \
11866 settimeofday \
11867 sigaltstack \
11868 snprintf \
11869 statfs \
11870 strcasecmp \
11871 strerror \
11872 strncasecmp \
11873 tcgetattr \
11874 timegm \
11875 usleep \
11876 vfscanf \
11877 wait4 \
11878 waitpid \
11881 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11882 echo "$as_me:$LINENO: checking for $ac_func" >&5
11883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11884 if eval "test \"\${$as_ac_var+set}\" = set"; then
11885 echo $ECHO_N "(cached) $ECHO_C" >&6
11886 else
11887 cat >conftest.$ac_ext <<_ACEOF
11888 #line $LINENO "configure"
11889 #include "confdefs.h"
11890 /* System header to define __stub macros and hopefully few prototypes,
11891 which can conflict with char $ac_func (); below. */
11892 #include <assert.h>
11893 /* Override any gcc2 internal prototype to avoid an error. */
11894 #ifdef __cplusplus
11895 extern "C"
11896 #endif
11897 /* We use char because int might match the return type of a gcc2
11898 builtin and then its argument prototype would still apply. */
11899 char $ac_func ();
11900 char (*f) ();
11902 #ifdef F77_DUMMY_MAIN
11903 # ifdef __cplusplus
11904 extern "C"
11905 # endif
11906 int F77_DUMMY_MAIN() { return 1; }
11907 #endif
11909 main ()
11911 /* The GNU C library defines this for functions which it implements
11912 to always fail with ENOSYS. Some functions are actually named
11913 something starting with __ and the normal name is an alias. */
11914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11915 choke me
11916 #else
11917 f = $ac_func;
11918 #endif
11921 return 0;
11923 _ACEOF
11924 rm -f conftest.$ac_objext conftest$ac_exeext
11925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11926 (eval $ac_link) 2>&5
11927 ac_status=$?
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); } &&
11930 { ac_try='test -s conftest$ac_exeext'
11931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11932 (eval $ac_try) 2>&5
11933 ac_status=$?
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); }; }; then
11936 eval "$as_ac_var=yes"
11937 else
11938 echo "$as_me: failed program was:" >&5
11939 cat conftest.$ac_ext >&5
11940 eval "$as_ac_var=no"
11942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11945 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11946 if test `eval echo '${'$as_ac_var'}'` = yes; then
11947 cat >>confdefs.h <<_ACEOF
11948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11949 _ACEOF
11952 done
12024 for ac_header in \
12025 arpa/inet.h \
12026 arpa/nameser.h \
12027 direct.h \
12028 elf.h \
12029 float.h \
12030 ieeefp.h \
12031 io.h \
12032 libaudioio.h \
12033 libio.h \
12034 libutil.h \
12035 link.h \
12036 linux/cdrom.h \
12037 linux/hdreg.h \
12038 linux/input.h \
12039 linux/joystick.h \
12040 linux/major.h \
12041 linux/param.h \
12042 linux/serial.h \
12043 linux/ucdrom.h \
12044 netdb.h \
12045 netinet/in.h \
12046 netinet/in_systm.h \
12047 netinet/tcp.h \
12048 pty.h \
12049 pwd.h \
12050 sched.h \
12051 scsi/sg.h \
12052 socket.h \
12053 stdint.h \
12054 strings.h \
12055 sys/cdio.h \
12056 sys/errno.h \
12057 sys/file.h \
12058 sys/filio.h \
12059 sys/inttypes.h \
12060 sys/ioctl.h \
12061 sys/ipc.h \
12062 sys/link.h \
12063 sys/lwp.h \
12064 sys/mman.h \
12065 sys/modem.h \
12066 sys/mount.h \
12067 sys/msg.h \
12068 sys/param.h \
12069 sys/poll.h \
12070 sys/ptrace.h \
12071 sys/reg.h \
12072 sys/shm.h \
12073 sys/signal.h \
12074 sys/socket.h \
12075 sys/sockio.h \
12076 sys/statfs.h \
12077 sys/strtio.h \
12078 sys/syscall.h \
12079 sys/sysctl.h \
12080 sys/time.h \
12081 sys/times.h \
12082 sys/user.h \
12083 sys/v86.h \
12084 sys/v86intr.h \
12085 sys/vfs.h \
12086 sys/vm86.h \
12087 sys/wait.h \
12088 syscall.h \
12089 termios.h \
12090 ucontext.h \
12091 unistd.h \
12092 utime.h \
12095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12097 echo "$as_me:$LINENO: checking for $ac_header" >&5
12098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12100 echo $ECHO_N "(cached) $ECHO_C" >&6
12102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12104 else
12105 # Is the header compilable?
12106 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12108 cat >conftest.$ac_ext <<_ACEOF
12109 #line $LINENO "configure"
12110 #include "confdefs.h"
12111 $ac_includes_default
12112 #include <$ac_header>
12113 _ACEOF
12114 rm -f conftest.$ac_objext
12115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12116 (eval $ac_compile) 2>&5
12117 ac_status=$?
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); } &&
12120 { ac_try='test -s conftest.$ac_objext'
12121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12122 (eval $ac_try) 2>&5
12123 ac_status=$?
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); }; }; then
12126 ac_header_compiler=yes
12127 else
12128 echo "$as_me: failed program was:" >&5
12129 cat conftest.$ac_ext >&5
12130 ac_header_compiler=no
12132 rm -f conftest.$ac_objext conftest.$ac_ext
12133 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12134 echo "${ECHO_T}$ac_header_compiler" >&6
12136 # Is the header present?
12137 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12138 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12139 cat >conftest.$ac_ext <<_ACEOF
12140 #line $LINENO "configure"
12141 #include "confdefs.h"
12142 #include <$ac_header>
12143 _ACEOF
12144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12146 ac_status=$?
12147 egrep -v '^ *\+' conftest.er1 >conftest.err
12148 rm -f conftest.er1
12149 cat conftest.err >&5
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); } >/dev/null; then
12152 if test -s conftest.err; then
12153 ac_cpp_err=$ac_c_preproc_warn_flag
12154 else
12155 ac_cpp_err=
12157 else
12158 ac_cpp_err=yes
12160 if test -z "$ac_cpp_err"; then
12161 ac_header_preproc=yes
12162 else
12163 echo "$as_me: failed program was:" >&5
12164 cat conftest.$ac_ext >&5
12165 ac_header_preproc=no
12167 rm -f conftest.err conftest.$ac_ext
12168 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12169 echo "${ECHO_T}$ac_header_preproc" >&6
12171 # So? What about this header?
12172 case $ac_header_compiler:$ac_header_preproc in
12173 yes:no )
12174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12178 no:yes )
12179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12184 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12185 esac
12186 echo "$as_me:$LINENO: checking for $ac_header" >&5
12187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12189 echo $ECHO_N "(cached) $ECHO_C" >&6
12190 else
12191 eval "$as_ac_Header=$ac_header_preproc"
12193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12194 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12198 cat >>confdefs.h <<_ACEOF
12199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12200 _ACEOF
12204 done
12206 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
12207 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
12208 if test "${ac_cv_header_stat_broken+set}" = set; then
12209 echo $ECHO_N "(cached) $ECHO_C" >&6
12210 else
12211 cat >conftest.$ac_ext <<_ACEOF
12212 #line $LINENO "configure"
12213 #include "confdefs.h"
12214 #include <sys/types.h>
12215 #include <sys/stat.h>
12217 #if defined(S_ISBLK) && defined(S_IFDIR)
12218 # if S_ISBLK (S_IFDIR)
12219 You lose.
12220 # endif
12221 #endif
12223 #if defined(S_ISBLK) && defined(S_IFCHR)
12224 # if S_ISBLK (S_IFCHR)
12225 You lose.
12226 # endif
12227 #endif
12229 #if defined(S_ISLNK) && defined(S_IFREG)
12230 # if S_ISLNK (S_IFREG)
12231 You lose.
12232 # endif
12233 #endif
12235 #if defined(S_ISSOCK) && defined(S_IFREG)
12236 # if S_ISSOCK (S_IFREG)
12237 You lose.
12238 # endif
12239 #endif
12241 _ACEOF
12242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12243 egrep "You lose" >/dev/null 2>&1; then
12244 ac_cv_header_stat_broken=yes
12245 else
12246 ac_cv_header_stat_broken=no
12248 rm -f conftest*
12251 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
12252 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
12253 if test $ac_cv_header_stat_broken = yes; then
12255 cat >>confdefs.h <<\_ACEOF
12256 #define STAT_MACROS_BROKEN 1
12257 _ACEOF
12263 for ac_header in net/if.h
12265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12266 echo "$as_me:$LINENO: checking for $ac_header" >&5
12267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12269 echo $ECHO_N "(cached) $ECHO_C" >&6
12270 else
12271 cat >conftest.$ac_ext <<_ACEOF
12272 #line $LINENO "configure"
12273 #include "confdefs.h"
12274 #if HAVE_SYS_TYPES_H
12275 # include <sys/types.h>
12276 #endif
12277 #if HAVE_SYS_SOCKET_H
12278 # include <sys/socket.h>
12279 #endif
12281 #include <$ac_header>
12282 _ACEOF
12283 rm -f conftest.$ac_objext
12284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12285 (eval $ac_compile) 2>&5
12286 ac_status=$?
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); } &&
12289 { ac_try='test -s conftest.$ac_objext'
12290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12291 (eval $ac_try) 2>&5
12292 ac_status=$?
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); }; }; then
12295 eval "$as_ac_Header=yes"
12296 else
12297 echo "$as_me: failed program was:" >&5
12298 cat conftest.$ac_ext >&5
12299 eval "$as_ac_Header=no"
12301 rm -f conftest.$ac_objext conftest.$ac_ext
12303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12306 cat >>confdefs.h <<_ACEOF
12307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12308 _ACEOF
12312 done
12316 for ac_header in netinet/ip.h
12318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12319 echo "$as_me:$LINENO: checking for $ac_header" >&5
12320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12322 echo $ECHO_N "(cached) $ECHO_C" >&6
12323 else
12324 cat >conftest.$ac_ext <<_ACEOF
12325 #line $LINENO "configure"
12326 #include "confdefs.h"
12327 #if HAVE_SYS_SOCKET_H
12328 # include <sys/socket.h>
12329 #endif
12330 #if HAVE_NETINET_IN_SYSTM_H
12331 # include <netinet/in_systm.h>
12332 #endif
12334 #include <$ac_header>
12335 _ACEOF
12336 rm -f conftest.$ac_objext
12337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12338 (eval $ac_compile) 2>&5
12339 ac_status=$?
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); } &&
12342 { ac_try='test -s conftest.$ac_objext'
12343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12344 (eval $ac_try) 2>&5
12345 ac_status=$?
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); }; }; then
12348 eval "$as_ac_Header=yes"
12349 else
12350 echo "$as_me: failed program was:" >&5
12351 cat conftest.$ac_ext >&5
12352 eval "$as_ac_Header=no"
12354 rm -f conftest.$ac_objext conftest.$ac_ext
12356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12359 cat >>confdefs.h <<_ACEOF
12360 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12361 _ACEOF
12365 done
12369 for ac_header in resolv.h
12371 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12372 echo "$as_me:$LINENO: checking for $ac_header" >&5
12373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12375 echo $ECHO_N "(cached) $ECHO_C" >&6
12376 else
12377 cat >conftest.$ac_ext <<_ACEOF
12378 #line $LINENO "configure"
12379 #include "confdefs.h"
12380 #if HAVE_SYS_SOCKET_H
12381 # include <sys/socket.h>
12382 #endif
12384 #include <$ac_header>
12385 _ACEOF
12386 rm -f conftest.$ac_objext
12387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12388 (eval $ac_compile) 2>&5
12389 ac_status=$?
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); } &&
12392 { ac_try='test -s conftest.$ac_objext'
12393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12394 (eval $ac_try) 2>&5
12395 ac_status=$?
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); }; }; then
12398 eval "$as_ac_Header=yes"
12399 else
12400 echo "$as_me: failed program was:" >&5
12401 cat conftest.$ac_ext >&5
12402 eval "$as_ac_Header=no"
12404 rm -f conftest.$ac_objext conftest.$ac_ext
12406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12409 cat >>confdefs.h <<_ACEOF
12410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12411 _ACEOF
12415 done
12419 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12420 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12421 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12422 echo $ECHO_N "(cached) $ECHO_C" >&6
12423 else
12424 ac_cv_prog_cc_stdc=no
12425 ac_save_CC=$CC
12426 cat >conftest.$ac_ext <<_ACEOF
12427 #line $LINENO "configure"
12428 #include "confdefs.h"
12429 #include <stdarg.h>
12430 #include <stdio.h>
12431 #include <sys/types.h>
12432 #include <sys/stat.h>
12433 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12434 struct buf { int x; };
12435 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12436 static char *e (p, i)
12437 char **p;
12438 int i;
12440 return p[i];
12442 static char *f (char * (*g) (char **, int), char **p, ...)
12444 char *s;
12445 va_list v;
12446 va_start (v,p);
12447 s = g (p, va_arg (v,int));
12448 va_end (v);
12449 return s;
12451 int test (int i, double x);
12452 struct s1 {int (*f) (int a);};
12453 struct s2 {int (*f) (double a);};
12454 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12455 int argc;
12456 char **argv;
12457 #ifdef F77_DUMMY_MAIN
12458 # ifdef __cplusplus
12459 extern "C"
12460 # endif
12461 int F77_DUMMY_MAIN() { return 1; }
12462 #endif
12464 main ()
12466 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12468 return 0;
12470 _ACEOF
12471 # Don't try gcc -ansi; that turns off useful extensions and
12472 # breaks some systems' header files.
12473 # AIX -qlanglvl=ansi
12474 # Ultrix and OSF/1 -std1
12475 # HP-UX 10.20 and later -Ae
12476 # HP-UX older versions -Aa -D_HPUX_SOURCE
12477 # SVR4 -Xc -D__EXTENSIONS__
12478 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12480 CC="$ac_save_CC $ac_arg"
12481 rm -f conftest.$ac_objext
12482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12483 (eval $ac_compile) 2>&5
12484 ac_status=$?
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); } &&
12487 { ac_try='test -s conftest.$ac_objext'
12488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12489 (eval $ac_try) 2>&5
12490 ac_status=$?
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); }; }; then
12493 ac_cv_prog_cc_stdc=$ac_arg
12494 break
12495 else
12496 echo "$as_me: failed program was:" >&5
12497 cat conftest.$ac_ext >&5
12499 rm -f conftest.$ac_objext
12500 done
12501 rm -f conftest.$ac_ext conftest.$ac_objext
12502 CC=$ac_save_CC
12506 case "x$ac_cv_prog_cc_stdc" in
12507 x|xno)
12508 echo "$as_me:$LINENO: result: none needed" >&5
12509 echo "${ECHO_T}none needed" >&6 ;;
12511 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12512 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12513 CC="$CC $ac_cv_prog_cc_stdc" ;;
12514 esac
12516 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12517 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12518 if test "${ac_cv_c_const+set}" = set; then
12519 echo $ECHO_N "(cached) $ECHO_C" >&6
12520 else
12521 cat >conftest.$ac_ext <<_ACEOF
12522 #line $LINENO "configure"
12523 #include "confdefs.h"
12525 #ifdef F77_DUMMY_MAIN
12526 # ifdef __cplusplus
12527 extern "C"
12528 # endif
12529 int F77_DUMMY_MAIN() { return 1; }
12530 #endif
12532 main ()
12534 /* FIXME: Include the comments suggested by Paul. */
12535 #ifndef __cplusplus
12536 /* Ultrix mips cc rejects this. */
12537 typedef int charset[2];
12538 const charset x;
12539 /* SunOS 4.1.1 cc rejects this. */
12540 char const *const *ccp;
12541 char **p;
12542 /* NEC SVR4.0.2 mips cc rejects this. */
12543 struct point {int x, y;};
12544 static struct point const zero = {0,0};
12545 /* AIX XL C 1.02.0.0 rejects this.
12546 It does not let you subtract one const X* pointer from another in
12547 an arm of an if-expression whose if-part is not a constant
12548 expression */
12549 const char *g = "string";
12550 ccp = &g + (g ? g-g : 0);
12551 /* HPUX 7.0 cc rejects these. */
12552 ++ccp;
12553 p = (char**) ccp;
12554 ccp = (char const *const *) p;
12555 { /* SCO 3.2v4 cc rejects this. */
12556 char *t;
12557 char const *s = 0 ? (char *) 0 : (char const *) 0;
12559 *t++ = 0;
12561 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12562 int x[] = {25, 17};
12563 const int *foo = &x[0];
12564 ++foo;
12566 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12567 typedef const int *iptr;
12568 iptr p = 0;
12569 ++p;
12571 { /* AIX XL C 1.02.0.0 rejects this saying
12572 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12573 struct s { int j; const int *ap[3]; };
12574 struct s *b; b->j = 5;
12576 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12577 const int foo = 10;
12579 #endif
12582 return 0;
12584 _ACEOF
12585 rm -f conftest.$ac_objext
12586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12587 (eval $ac_compile) 2>&5
12588 ac_status=$?
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); } &&
12591 { ac_try='test -s conftest.$ac_objext'
12592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12593 (eval $ac_try) 2>&5
12594 ac_status=$?
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); }; }; then
12597 ac_cv_c_const=yes
12598 else
12599 echo "$as_me: failed program was:" >&5
12600 cat conftest.$ac_ext >&5
12601 ac_cv_c_const=no
12603 rm -f conftest.$ac_objext conftest.$ac_ext
12605 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12606 echo "${ECHO_T}$ac_cv_c_const" >&6
12607 if test $ac_cv_c_const = no; then
12609 cat >>confdefs.h <<\_ACEOF
12610 #define const
12611 _ACEOF
12615 echo "$as_me:$LINENO: checking for inline" >&5
12616 echo $ECHO_N "checking for inline... $ECHO_C" >&6
12617 if test "${ac_cv_c_inline+set}" = set; then
12618 echo $ECHO_N "(cached) $ECHO_C" >&6
12619 else
12620 ac_cv_c_inline=no
12621 for ac_kw in inline __inline__ __inline; do
12622 cat >conftest.$ac_ext <<_ACEOF
12623 #line $LINENO "configure"
12624 #include "confdefs.h"
12625 #ifndef __cplusplus
12626 static $ac_kw int static_foo () {return 0; }
12627 $ac_kw int foo () {return 0; }
12628 #endif
12630 _ACEOF
12631 rm -f conftest.$ac_objext
12632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12633 (eval $ac_compile) 2>&5
12634 ac_status=$?
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); } &&
12637 { ac_try='test -s conftest.$ac_objext'
12638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12639 (eval $ac_try) 2>&5
12640 ac_status=$?
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); }; }; then
12643 ac_cv_c_inline=$ac_kw; break
12644 else
12645 echo "$as_me: failed program was:" >&5
12646 cat conftest.$ac_ext >&5
12648 rm -f conftest.$ac_objext conftest.$ac_ext
12649 done
12652 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12653 echo "${ECHO_T}$ac_cv_c_inline" >&6
12654 case $ac_cv_c_inline in
12655 inline | yes) ;;
12657 cat >>confdefs.h <<\_ACEOF
12658 #define inline
12659 _ACEOF
12661 *) cat >>confdefs.h <<_ACEOF
12662 #define inline $ac_cv_c_inline
12663 _ACEOF
12665 esac
12667 echo "$as_me:$LINENO: checking for mode_t" >&5
12668 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12669 if test "${ac_cv_type_mode_t+set}" = set; then
12670 echo $ECHO_N "(cached) $ECHO_C" >&6
12671 else
12672 cat >conftest.$ac_ext <<_ACEOF
12673 #line $LINENO "configure"
12674 #include "confdefs.h"
12675 $ac_includes_default
12676 #ifdef F77_DUMMY_MAIN
12677 # ifdef __cplusplus
12678 extern "C"
12679 # endif
12680 int F77_DUMMY_MAIN() { return 1; }
12681 #endif
12683 main ()
12685 if ((mode_t *) 0)
12686 return 0;
12687 if (sizeof (mode_t))
12688 return 0;
12690 return 0;
12692 _ACEOF
12693 rm -f conftest.$ac_objext
12694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12695 (eval $ac_compile) 2>&5
12696 ac_status=$?
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); } &&
12699 { ac_try='test -s conftest.$ac_objext'
12700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12701 (eval $ac_try) 2>&5
12702 ac_status=$?
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); }; }; then
12705 ac_cv_type_mode_t=yes
12706 else
12707 echo "$as_me: failed program was:" >&5
12708 cat conftest.$ac_ext >&5
12709 ac_cv_type_mode_t=no
12711 rm -f conftest.$ac_objext conftest.$ac_ext
12713 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12714 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
12715 if test $ac_cv_type_mode_t = yes; then
12717 cat >>confdefs.h <<_ACEOF
12718 #define HAVE_MODE_T 1
12719 _ACEOF
12723 echo "$as_me:$LINENO: checking for off_t" >&5
12724 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12725 if test "${ac_cv_type_off_t+set}" = set; then
12726 echo $ECHO_N "(cached) $ECHO_C" >&6
12727 else
12728 cat >conftest.$ac_ext <<_ACEOF
12729 #line $LINENO "configure"
12730 #include "confdefs.h"
12731 $ac_includes_default
12732 #ifdef F77_DUMMY_MAIN
12733 # ifdef __cplusplus
12734 extern "C"
12735 # endif
12736 int F77_DUMMY_MAIN() { return 1; }
12737 #endif
12739 main ()
12741 if ((off_t *) 0)
12742 return 0;
12743 if (sizeof (off_t))
12744 return 0;
12746 return 0;
12748 _ACEOF
12749 rm -f conftest.$ac_objext
12750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12751 (eval $ac_compile) 2>&5
12752 ac_status=$?
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); } &&
12755 { ac_try='test -s conftest.$ac_objext'
12756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12757 (eval $ac_try) 2>&5
12758 ac_status=$?
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); }; }; then
12761 ac_cv_type_off_t=yes
12762 else
12763 echo "$as_me: failed program was:" >&5
12764 cat conftest.$ac_ext >&5
12765 ac_cv_type_off_t=no
12767 rm -f conftest.$ac_objext conftest.$ac_ext
12769 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12770 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12771 if test $ac_cv_type_off_t = yes; then
12773 cat >>confdefs.h <<_ACEOF
12774 #define HAVE_OFF_T 1
12775 _ACEOF
12779 echo "$as_me:$LINENO: checking for pid_t" >&5
12780 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12781 if test "${ac_cv_type_pid_t+set}" = set; then
12782 echo $ECHO_N "(cached) $ECHO_C" >&6
12783 else
12784 cat >conftest.$ac_ext <<_ACEOF
12785 #line $LINENO "configure"
12786 #include "confdefs.h"
12787 $ac_includes_default
12788 #ifdef F77_DUMMY_MAIN
12789 # ifdef __cplusplus
12790 extern "C"
12791 # endif
12792 int F77_DUMMY_MAIN() { return 1; }
12793 #endif
12795 main ()
12797 if ((pid_t *) 0)
12798 return 0;
12799 if (sizeof (pid_t))
12800 return 0;
12802 return 0;
12804 _ACEOF
12805 rm -f conftest.$ac_objext
12806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12807 (eval $ac_compile) 2>&5
12808 ac_status=$?
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); } &&
12811 { ac_try='test -s conftest.$ac_objext'
12812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12813 (eval $ac_try) 2>&5
12814 ac_status=$?
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); }; }; then
12817 ac_cv_type_pid_t=yes
12818 else
12819 echo "$as_me: failed program was:" >&5
12820 cat conftest.$ac_ext >&5
12821 ac_cv_type_pid_t=no
12823 rm -f conftest.$ac_objext conftest.$ac_ext
12825 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12826 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12827 if test $ac_cv_type_pid_t = yes; then
12829 cat >>confdefs.h <<_ACEOF
12830 #define HAVE_PID_T 1
12831 _ACEOF
12835 echo "$as_me:$LINENO: checking for size_t" >&5
12836 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12837 if test "${ac_cv_type_size_t+set}" = set; then
12838 echo $ECHO_N "(cached) $ECHO_C" >&6
12839 else
12840 cat >conftest.$ac_ext <<_ACEOF
12841 #line $LINENO "configure"
12842 #include "confdefs.h"
12843 $ac_includes_default
12844 #ifdef F77_DUMMY_MAIN
12845 # ifdef __cplusplus
12846 extern "C"
12847 # endif
12848 int F77_DUMMY_MAIN() { return 1; }
12849 #endif
12851 main ()
12853 if ((size_t *) 0)
12854 return 0;
12855 if (sizeof (size_t))
12856 return 0;
12858 return 0;
12860 _ACEOF
12861 rm -f conftest.$ac_objext
12862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12863 (eval $ac_compile) 2>&5
12864 ac_status=$?
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); } &&
12867 { ac_try='test -s conftest.$ac_objext'
12868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12869 (eval $ac_try) 2>&5
12870 ac_status=$?
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); }; }; then
12873 ac_cv_type_size_t=yes
12874 else
12875 echo "$as_me: failed program was:" >&5
12876 cat conftest.$ac_ext >&5
12877 ac_cv_type_size_t=no
12879 rm -f conftest.$ac_objext conftest.$ac_ext
12881 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12882 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12883 if test $ac_cv_type_size_t = yes; then
12885 cat >>confdefs.h <<_ACEOF
12886 #define HAVE_SIZE_T 1
12887 _ACEOF
12891 echo "$as_me:$LINENO: checking for ssize_t" >&5
12892 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12893 if test "${ac_cv_type_ssize_t+set}" = set; then
12894 echo $ECHO_N "(cached) $ECHO_C" >&6
12895 else
12896 cat >conftest.$ac_ext <<_ACEOF
12897 #line $LINENO "configure"
12898 #include "confdefs.h"
12899 $ac_includes_default
12900 #ifdef F77_DUMMY_MAIN
12901 # ifdef __cplusplus
12902 extern "C"
12903 # endif
12904 int F77_DUMMY_MAIN() { return 1; }
12905 #endif
12907 main ()
12909 if ((ssize_t *) 0)
12910 return 0;
12911 if (sizeof (ssize_t))
12912 return 0;
12914 return 0;
12916 _ACEOF
12917 rm -f conftest.$ac_objext
12918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12919 (eval $ac_compile) 2>&5
12920 ac_status=$?
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); } &&
12923 { ac_try='test -s conftest.$ac_objext'
12924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12925 (eval $ac_try) 2>&5
12926 ac_status=$?
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); }; }; then
12929 ac_cv_type_ssize_t=yes
12930 else
12931 echo "$as_me: failed program was:" >&5
12932 cat conftest.$ac_ext >&5
12933 ac_cv_type_ssize_t=no
12935 rm -f conftest.$ac_objext conftest.$ac_ext
12937 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12938 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12939 if test $ac_cv_type_ssize_t = yes; then
12941 cat >>confdefs.h <<_ACEOF
12942 #define HAVE_SSIZE_T 1
12943 _ACEOF
12948 echo "$as_me:$LINENO: checking for long long" >&5
12949 echo $ECHO_N "checking for long long... $ECHO_C" >&6
12950 if test "${ac_cv_type_long_long+set}" = set; then
12951 echo $ECHO_N "(cached) $ECHO_C" >&6
12952 else
12953 cat >conftest.$ac_ext <<_ACEOF
12954 #line $LINENO "configure"
12955 #include "confdefs.h"
12956 $ac_includes_default
12957 #ifdef F77_DUMMY_MAIN
12958 # ifdef __cplusplus
12959 extern "C"
12960 # endif
12961 int F77_DUMMY_MAIN() { return 1; }
12962 #endif
12964 main ()
12966 if ((long long *) 0)
12967 return 0;
12968 if (sizeof (long long))
12969 return 0;
12971 return 0;
12973 _ACEOF
12974 rm -f conftest.$ac_objext
12975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12976 (eval $ac_compile) 2>&5
12977 ac_status=$?
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); } &&
12980 { ac_try='test -s conftest.$ac_objext'
12981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12982 (eval $ac_try) 2>&5
12983 ac_status=$?
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); }; }; then
12986 ac_cv_type_long_long=yes
12987 else
12988 echo "$as_me: failed program was:" >&5
12989 cat conftest.$ac_ext >&5
12990 ac_cv_type_long_long=no
12992 rm -f conftest.$ac_objext conftest.$ac_ext
12994 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12995 echo "${ECHO_T}$ac_cv_type_long_long" >&6
12997 echo "$as_me:$LINENO: checking size of long long" >&5
12998 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12999 if test "${ac_cv_sizeof_long_long+set}" = set; then
13000 echo $ECHO_N "(cached) $ECHO_C" >&6
13001 else
13002 if test "$ac_cv_type_long_long" = yes; then
13003 # The cast to unsigned long works around a bug in the HP C Compiler
13004 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13005 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13006 # This bug is HP SR number 8606223364.
13007 if test "$cross_compiling" = yes; then
13008 # Depending upon the size, compute the lo and hi bounds.
13009 cat >conftest.$ac_ext <<_ACEOF
13010 #line $LINENO "configure"
13011 #include "confdefs.h"
13012 $ac_includes_default
13013 #ifdef F77_DUMMY_MAIN
13014 # ifdef __cplusplus
13015 extern "C"
13016 # endif
13017 int F77_DUMMY_MAIN() { return 1; }
13018 #endif
13020 main ()
13022 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
13023 test_array [0] = 0
13026 return 0;
13028 _ACEOF
13029 rm -f conftest.$ac_objext
13030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13031 (eval $ac_compile) 2>&5
13032 ac_status=$?
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); } &&
13035 { ac_try='test -s conftest.$ac_objext'
13036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13037 (eval $ac_try) 2>&5
13038 ac_status=$?
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); }; }; then
13041 ac_lo=0 ac_mid=0
13042 while :; do
13043 cat >conftest.$ac_ext <<_ACEOF
13044 #line $LINENO "configure"
13045 #include "confdefs.h"
13046 $ac_includes_default
13047 #ifdef F77_DUMMY_MAIN
13048 # ifdef __cplusplus
13049 extern "C"
13050 # endif
13051 int F77_DUMMY_MAIN() { return 1; }
13052 #endif
13054 main ()
13056 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
13057 test_array [0] = 0
13060 return 0;
13062 _ACEOF
13063 rm -f conftest.$ac_objext
13064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13065 (eval $ac_compile) 2>&5
13066 ac_status=$?
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); } &&
13069 { ac_try='test -s conftest.$ac_objext'
13070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13071 (eval $ac_try) 2>&5
13072 ac_status=$?
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); }; }; then
13075 ac_hi=$ac_mid; break
13076 else
13077 echo "$as_me: failed program was:" >&5
13078 cat conftest.$ac_ext >&5
13079 ac_lo=`expr $ac_mid + 1`
13080 if test $ac_lo -le $ac_mid; then
13081 ac_lo= ac_hi=
13082 break
13084 ac_mid=`expr 2 '*' $ac_mid + 1`
13086 rm -f conftest.$ac_objext conftest.$ac_ext
13087 done
13088 else
13089 echo "$as_me: failed program was:" >&5
13090 cat conftest.$ac_ext >&5
13091 cat >conftest.$ac_ext <<_ACEOF
13092 #line $LINENO "configure"
13093 #include "confdefs.h"
13094 $ac_includes_default
13095 #ifdef F77_DUMMY_MAIN
13096 # ifdef __cplusplus
13097 extern "C"
13098 # endif
13099 int F77_DUMMY_MAIN() { return 1; }
13100 #endif
13102 main ()
13104 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
13105 test_array [0] = 0
13108 return 0;
13110 _ACEOF
13111 rm -f conftest.$ac_objext
13112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13113 (eval $ac_compile) 2>&5
13114 ac_status=$?
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); } &&
13117 { ac_try='test -s conftest.$ac_objext'
13118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13119 (eval $ac_try) 2>&5
13120 ac_status=$?
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); }; }; then
13123 ac_hi=-1 ac_mid=-1
13124 while :; do
13125 cat >conftest.$ac_ext <<_ACEOF
13126 #line $LINENO "configure"
13127 #include "confdefs.h"
13128 $ac_includes_default
13129 #ifdef F77_DUMMY_MAIN
13130 # ifdef __cplusplus
13131 extern "C"
13132 # endif
13133 int F77_DUMMY_MAIN() { return 1; }
13134 #endif
13136 main ()
13138 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
13139 test_array [0] = 0
13142 return 0;
13144 _ACEOF
13145 rm -f conftest.$ac_objext
13146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13147 (eval $ac_compile) 2>&5
13148 ac_status=$?
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); } &&
13151 { ac_try='test -s conftest.$ac_objext'
13152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13153 (eval $ac_try) 2>&5
13154 ac_status=$?
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; }; then
13157 ac_lo=$ac_mid; break
13158 else
13159 echo "$as_me: failed program was:" >&5
13160 cat conftest.$ac_ext >&5
13161 ac_hi=`expr '(' $ac_mid ')' - 1`
13162 if test $ac_mid -le $ac_hi; then
13163 ac_lo= ac_hi=
13164 break
13166 ac_mid=`expr 2 '*' $ac_mid`
13168 rm -f conftest.$ac_objext conftest.$ac_ext
13169 done
13170 else
13171 echo "$as_me: failed program was:" >&5
13172 cat conftest.$ac_ext >&5
13173 ac_lo= ac_hi=
13175 rm -f conftest.$ac_objext conftest.$ac_ext
13177 rm -f conftest.$ac_objext conftest.$ac_ext
13178 # Binary search between lo and hi bounds.
13179 while test "x$ac_lo" != "x$ac_hi"; do
13180 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13181 cat >conftest.$ac_ext <<_ACEOF
13182 #line $LINENO "configure"
13183 #include "confdefs.h"
13184 $ac_includes_default
13185 #ifdef F77_DUMMY_MAIN
13186 # ifdef __cplusplus
13187 extern "C"
13188 # endif
13189 int F77_DUMMY_MAIN() { return 1; }
13190 #endif
13192 main ()
13194 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
13195 test_array [0] = 0
13198 return 0;
13200 _ACEOF
13201 rm -f conftest.$ac_objext
13202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13203 (eval $ac_compile) 2>&5
13204 ac_status=$?
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); } &&
13207 { ac_try='test -s conftest.$ac_objext'
13208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13209 (eval $ac_try) 2>&5
13210 ac_status=$?
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); }; }; then
13213 ac_hi=$ac_mid
13214 else
13215 echo "$as_me: failed program was:" >&5
13216 cat conftest.$ac_ext >&5
13217 ac_lo=`expr '(' $ac_mid ')' + 1`
13219 rm -f conftest.$ac_objext conftest.$ac_ext
13220 done
13221 case $ac_lo in
13222 ?*) ac_cv_sizeof_long_long=$ac_lo;;
13223 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
13224 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
13225 { (exit 1); exit 1; }; } ;;
13226 esac
13227 else
13228 if test "$cross_compiling" = yes; then
13229 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13230 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13231 { (exit 1); exit 1; }; }
13232 else
13233 cat >conftest.$ac_ext <<_ACEOF
13234 #line $LINENO "configure"
13235 #include "confdefs.h"
13236 $ac_includes_default
13237 long longval () { return (long) (sizeof (long long)); }
13238 unsigned long ulongval () { return (long) (sizeof (long long)); }
13239 #include <stdio.h>
13240 #include <stdlib.h>
13241 #ifdef F77_DUMMY_MAIN
13242 # ifdef __cplusplus
13243 extern "C"
13244 # endif
13245 int F77_DUMMY_MAIN() { return 1; }
13246 #endif
13248 main ()
13251 FILE *f = fopen ("conftest.val", "w");
13252 if (! f)
13253 exit (1);
13254 if (((long) (sizeof (long long))) < 0)
13256 long i = longval ();
13257 if (i != ((long) (sizeof (long long))))
13258 exit (1);
13259 fprintf (f, "%ld\n", i);
13261 else
13263 unsigned long i = ulongval ();
13264 if (i != ((long) (sizeof (long long))))
13265 exit (1);
13266 fprintf (f, "%lu\n", i);
13268 exit (ferror (f) || fclose (f) != 0);
13271 return 0;
13273 _ACEOF
13274 rm -f conftest$ac_exeext
13275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13276 (eval $ac_link) 2>&5
13277 ac_status=$?
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13281 (eval $ac_try) 2>&5
13282 ac_status=$?
13283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284 (exit $ac_status); }; }; then
13285 ac_cv_sizeof_long_long=`cat conftest.val`
13286 else
13287 echo "$as_me: program exited with status $ac_status" >&5
13288 echo "$as_me: failed program was:" >&5
13289 cat conftest.$ac_ext >&5
13290 ( exit $ac_status )
13291 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
13292 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
13293 { (exit 1); exit 1; }; }
13295 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13298 rm -f conftest.val
13299 else
13300 ac_cv_sizeof_long_long=0
13303 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13304 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
13305 cat >>confdefs.h <<_ACEOF
13306 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13307 _ACEOF
13311 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
13312 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
13313 if test "${wine_cv_linux_input_h+set}" = set; then
13314 echo $ECHO_N "(cached) $ECHO_C" >&6
13315 else
13316 cat >conftest.$ac_ext <<_ACEOF
13317 #line $LINENO "configure"
13318 #include "confdefs.h"
13320 #include <linux/input.h>
13322 #ifdef F77_DUMMY_MAIN
13323 # ifdef __cplusplus
13324 extern "C"
13325 # endif
13326 int F77_DUMMY_MAIN() { return 1; }
13327 #endif
13329 main ()
13332 int foo = EVIOCGBIT(EV_ABS,42);
13333 int bar = BTN_PINKIE;
13334 int fortytwo = 42;
13337 return 0;
13339 _ACEOF
13340 rm -f conftest.$ac_objext
13341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13342 (eval $ac_compile) 2>&5
13343 ac_status=$?
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); } &&
13346 { ac_try='test -s conftest.$ac_objext'
13347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13348 (eval $ac_try) 2>&5
13349 ac_status=$?
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); }; }; then
13352 wine_cv_linux_input_h=yes
13353 else
13354 echo "$as_me: failed program was:" >&5
13355 cat conftest.$ac_ext >&5
13356 wine_cv_linux_input_h=no
13358 rm -f conftest.$ac_objext conftest.$ac_ext
13361 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
13362 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
13363 if test "$wine_cv_linux_input_h" = "yes"
13364 then
13366 cat >>confdefs.h <<\_ACEOF
13367 #define HAVE_CORRECT_LINUXINPUT_H 1
13368 _ACEOF
13373 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13374 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
13375 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
13376 echo $ECHO_N "(cached) $ECHO_C" >&6
13377 else
13378 cat >conftest.$ac_ext <<_ACEOF
13379 #line $LINENO "configure"
13380 #include "confdefs.h"
13382 #include <netdb.h>
13384 #ifdef F77_DUMMY_MAIN
13385 # ifdef __cplusplus
13386 extern "C"
13387 # endif
13388 int F77_DUMMY_MAIN() { return 1; }
13389 #endif
13391 main ()
13394 char *name=NULL;
13395 struct hostent he;
13396 struct hostent *result;
13397 char *buf=NULL;
13398 int bufsize=0;
13399 int res,errnr;
13400 char *addr=NULL;
13401 int addrlen=0;
13402 int addrtype=0;
13403 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13404 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13407 return 0;
13409 _ACEOF
13410 rm -f conftest.$ac_objext
13411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13412 (eval $ac_compile) 2>&5
13413 ac_status=$?
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); } &&
13416 { ac_try='test -s conftest.$ac_objext'
13417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13418 (eval $ac_try) 2>&5
13419 ac_status=$?
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); }; }; then
13422 wine_cv_linux_gethostbyname_r_6=yes
13423 else
13424 echo "$as_me: failed program was:" >&5
13425 cat conftest.$ac_ext >&5
13426 wine_cv_linux_gethostbyname_r_6=no
13429 rm -f conftest.$ac_objext conftest.$ac_ext
13432 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
13433 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
13434 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13435 then
13437 cat >>confdefs.h <<\_ACEOF
13438 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
13439 _ACEOF
13443 if test "$ac_cv_header_linux_joystick_h" = "yes"
13444 then
13445 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13446 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
13447 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
13448 echo $ECHO_N "(cached) $ECHO_C" >&6
13449 else
13450 cat >conftest.$ac_ext <<_ACEOF
13451 #line $LINENO "configure"
13452 #include "confdefs.h"
13454 #include <sys/ioctl.h>
13455 #include <linux/joystick.h>
13457 struct js_event blub;
13458 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13459 #error "no 2.2 header"
13460 #endif
13462 #ifdef F77_DUMMY_MAIN
13463 # ifdef __cplusplus
13464 extern "C"
13465 # endif
13466 int F77_DUMMY_MAIN() { return 1; }
13467 #endif
13469 main ()
13471 /*empty*/
13473 return 0;
13475 _ACEOF
13476 rm -f conftest.$ac_objext
13477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13478 (eval $ac_compile) 2>&5
13479 ac_status=$?
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); } &&
13482 { ac_try='test -s conftest.$ac_objext'
13483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13484 (eval $ac_try) 2>&5
13485 ac_status=$?
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); }; }; then
13488 wine_cv_linux_joystick_22_api=yes
13489 else
13490 echo "$as_me: failed program was:" >&5
13491 cat conftest.$ac_ext >&5
13492 wine_cv_linux_joystick_22_api=no
13494 rm -f conftest.$ac_objext conftest.$ac_ext
13497 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
13498 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
13499 if test "$wine_cv_linux_joystick_22_api" = "yes"
13500 then
13502 cat >>confdefs.h <<\_ACEOF
13503 #define HAVE_LINUX_22_JOYSTICK_API 1
13504 _ACEOF
13510 if test "$ac_cv_header_sys_vfs_h" = "yes"
13511 then
13512 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
13513 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
13514 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
13515 echo $ECHO_N "(cached) $ECHO_C" >&6
13516 else
13517 cat >conftest.$ac_ext <<_ACEOF
13518 #line $LINENO "configure"
13519 #include "confdefs.h"
13521 #include <sys/types.h>
13522 #ifdef HAVE_SYS_PARAM_H
13523 # include <sys/param.h>
13524 #endif
13525 #include <sys/vfs.h>
13527 #ifdef F77_DUMMY_MAIN
13528 # ifdef __cplusplus
13529 extern "C"
13530 # endif
13531 int F77_DUMMY_MAIN() { return 1; }
13532 #endif
13534 main ()
13537 struct statfs stfs;
13539 memset(&stfs,0,sizeof(stfs));
13542 return 0;
13544 _ACEOF
13545 rm -f conftest.$ac_objext
13546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13547 (eval $ac_compile) 2>&5
13548 ac_status=$?
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); } &&
13551 { ac_try='test -s conftest.$ac_objext'
13552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553 (eval $ac_try) 2>&5
13554 ac_status=$?
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); }; }; then
13557 wine_cv_sys_vfs_has_statfs=yes
13558 else
13559 echo "$as_me: failed program was:" >&5
13560 cat conftest.$ac_ext >&5
13561 wine_cv_sys_vfs_has_statfs=no
13564 rm -f conftest.$ac_objext conftest.$ac_ext
13567 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
13568 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
13569 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
13570 then
13572 cat >>confdefs.h <<\_ACEOF
13573 #define STATFS_DEFINED_BY_SYS_VFS 1
13574 _ACEOF
13579 if test "$ac_cv_header_sys_statfs_h" = "yes"
13580 then
13581 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
13582 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
13583 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
13584 echo $ECHO_N "(cached) $ECHO_C" >&6
13585 else
13586 cat >conftest.$ac_ext <<_ACEOF
13587 #line $LINENO "configure"
13588 #include "confdefs.h"
13590 #include <sys/types.h>
13591 #ifdef HAVE_SYS_PARAM_H
13592 # include <sys/param.h>
13593 #endif
13594 #include <sys/statfs.h>
13596 #ifdef F77_DUMMY_MAIN
13597 # ifdef __cplusplus
13598 extern "C"
13599 # endif
13600 int F77_DUMMY_MAIN() { return 1; }
13601 #endif
13603 main ()
13606 struct statfs stfs;
13609 return 0;
13611 _ACEOF
13612 rm -f conftest.$ac_objext
13613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13614 (eval $ac_compile) 2>&5
13615 ac_status=$?
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); } &&
13618 { ac_try='test -s conftest.$ac_objext'
13619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620 (eval $ac_try) 2>&5
13621 ac_status=$?
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); }; }; then
13624 wine_cv_sys_statfs_has_statfs=yes
13625 else
13626 echo "$as_me: failed program was:" >&5
13627 cat conftest.$ac_ext >&5
13628 wine_cv_sys_statfs_has_statfs=no
13631 rm -f conftest.$ac_objext conftest.$ac_ext
13634 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
13635 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
13636 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
13637 then
13639 cat >>confdefs.h <<\_ACEOF
13640 #define STATFS_DEFINED_BY_SYS_STATFS 1
13641 _ACEOF
13646 if test "$ac_cv_header_sys_mount_h" = "yes"
13647 then
13648 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
13649 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
13650 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
13651 echo $ECHO_N "(cached) $ECHO_C" >&6
13652 else
13653 cat >conftest.$ac_ext <<_ACEOF
13654 #line $LINENO "configure"
13655 #include "confdefs.h"
13657 #include <sys/types.h>
13658 #ifdef HAVE_SYS_PARAM_H
13659 # include <sys/param.h>
13660 #endif
13661 #include <sys/mount.h>
13663 #ifdef F77_DUMMY_MAIN
13664 # ifdef __cplusplus
13665 extern "C"
13666 # endif
13667 int F77_DUMMY_MAIN() { return 1; }
13668 #endif
13670 main ()
13673 struct statfs stfs;
13676 return 0;
13678 _ACEOF
13679 rm -f conftest.$ac_objext
13680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13681 (eval $ac_compile) 2>&5
13682 ac_status=$?
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); } &&
13685 { ac_try='test -s conftest.$ac_objext'
13686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13687 (eval $ac_try) 2>&5
13688 ac_status=$?
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); }; }; then
13691 wine_cv_sys_mount_has_statfs=yes
13692 else
13693 echo "$as_me: failed program was:" >&5
13694 cat conftest.$ac_ext >&5
13695 wine_cv_sys_mount_has_statfs=no
13698 rm -f conftest.$ac_objext conftest.$ac_ext
13701 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
13702 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
13703 if test "$wine_cv_sys_mount_has_statfs" = "yes"
13704 then
13706 cat >>confdefs.h <<\_ACEOF
13707 #define STATFS_DEFINED_BY_SYS_MOUNT 1
13708 _ACEOF
13714 echo "$as_me:$LINENO: checking for f_bfree in struct statfs" >&5
13715 echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6
13716 if test "${ac_cv_c_statfs_f_bfree+set}" = set; then
13717 echo $ECHO_N "(cached) $ECHO_C" >&6
13718 else
13719 cat >conftest.$ac_ext <<_ACEOF
13720 #line $LINENO "configure"
13721 #include "confdefs.h"
13722 #include <sys/types.h>
13723 #ifdef HAVE_SYS_PARAM_H
13724 # include <sys/param.h>
13725 #endif
13726 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
13727 # include <sys/mount.h>
13728 #else
13729 # ifdef STATFS_DEFINED_BY_SYS_VFS
13730 # include <sys/vfs.h>
13731 # else
13732 # ifdef STATFS_DEFINED_BY_SYS_STATFS
13733 # include <sys/statfs.h>
13734 # endif
13735 # endif
13736 #endif
13737 #ifdef F77_DUMMY_MAIN
13738 # ifdef __cplusplus
13739 extern "C"
13740 # endif
13741 int F77_DUMMY_MAIN() { return 1; }
13742 #endif
13744 main ()
13746 struct statfs s; s.f_bfree = 0
13748 return 0;
13750 _ACEOF
13751 rm -f conftest.$ac_objext
13752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13753 (eval $ac_compile) 2>&5
13754 ac_status=$?
13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 (exit $ac_status); } &&
13757 { ac_try='test -s conftest.$ac_objext'
13758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13759 (eval $ac_try) 2>&5
13760 ac_status=$?
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); }; }; then
13763 ac_cv_c_statfs_f_bfree="yes"
13764 else
13765 echo "$as_me: failed program was:" >&5
13766 cat conftest.$ac_ext >&5
13767 ac_cv_c_statfs_f_bfree="no"
13769 rm -f conftest.$ac_objext conftest.$ac_ext
13771 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bfree" >&5
13772 echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6
13773 if test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then
13775 cat >>confdefs.h <<\_ACEOF
13776 #define STATFS_HAS_BFREE 1
13777 _ACEOF
13783 echo "$as_me:$LINENO: checking for f_bavail in struct statfs" >&5
13784 echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6
13785 if test "${ac_cv_c_statfs_f_bavail+set}" = set; then
13786 echo $ECHO_N "(cached) $ECHO_C" >&6
13787 else
13788 cat >conftest.$ac_ext <<_ACEOF
13789 #line $LINENO "configure"
13790 #include "confdefs.h"
13791 #include <sys/types.h>
13792 #ifdef HAVE_SYS_PARAM_H
13793 # include <sys/param.h>
13794 #endif
13795 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
13796 # include <sys/mount.h>
13797 #else
13798 # ifdef STATFS_DEFINED_BY_SYS_VFS
13799 # include <sys/vfs.h>
13800 # else
13801 # ifdef STATFS_DEFINED_BY_SYS_STATFS
13802 # include <sys/statfs.h>
13803 # endif
13804 # endif
13805 #endif
13806 #ifdef F77_DUMMY_MAIN
13807 # ifdef __cplusplus
13808 extern "C"
13809 # endif
13810 int F77_DUMMY_MAIN() { return 1; }
13811 #endif
13813 main ()
13815 struct statfs s; s.f_bavail = 0
13817 return 0;
13819 _ACEOF
13820 rm -f conftest.$ac_objext
13821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13822 (eval $ac_compile) 2>&5
13823 ac_status=$?
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); } &&
13826 { ac_try='test -s conftest.$ac_objext'
13827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13828 (eval $ac_try) 2>&5
13829 ac_status=$?
13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831 (exit $ac_status); }; }; then
13832 ac_cv_c_statfs_f_bavail="yes"
13833 else
13834 echo "$as_me: failed program was:" >&5
13835 cat conftest.$ac_ext >&5
13836 ac_cv_c_statfs_f_bavail="no"
13838 rm -f conftest.$ac_objext conftest.$ac_ext
13840 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bavail" >&5
13841 echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6
13842 if test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then
13844 cat >>confdefs.h <<\_ACEOF
13845 #define STATFS_HAS_BAVAIL 1
13846 _ACEOF
13852 echo "$as_me:$LINENO: checking for msg_accrights in struct msghdr" >&5
13853 echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6
13854 if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then
13855 echo $ECHO_N "(cached) $ECHO_C" >&6
13856 else
13857 cat >conftest.$ac_ext <<_ACEOF
13858 #line $LINENO "configure"
13859 #include "confdefs.h"
13860 #include <sys/types.h>
13861 #include <sys/socket.h>
13862 #ifdef F77_DUMMY_MAIN
13863 # ifdef __cplusplus
13864 extern "C"
13865 # endif
13866 int F77_DUMMY_MAIN() { return 1; }
13867 #endif
13869 main ()
13871 struct msghdr s; s.msg_accrights = 0
13873 return 0;
13875 _ACEOF
13876 rm -f conftest.$ac_objext
13877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13878 (eval $ac_compile) 2>&5
13879 ac_status=$?
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); } &&
13882 { ac_try='test -s conftest.$ac_objext'
13883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13884 (eval $ac_try) 2>&5
13885 ac_status=$?
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); }; }; then
13888 ac_cv_c_msghdr_msg_accrights="yes"
13889 else
13890 echo "$as_me: failed program was:" >&5
13891 cat conftest.$ac_ext >&5
13892 ac_cv_c_msghdr_msg_accrights="no"
13894 rm -f conftest.$ac_objext conftest.$ac_ext
13896 echo "$as_me:$LINENO: result: $ac_cv_c_msghdr_msg_accrights" >&5
13897 echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6
13898 if test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then
13900 cat >>confdefs.h <<\_ACEOF
13901 #define HAVE_MSGHDR_ACCRIGHTS 1
13902 _ACEOF
13908 echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
13909 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
13910 if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then
13911 echo $ECHO_N "(cached) $ECHO_C" >&6
13912 else
13913 cat >conftest.$ac_ext <<_ACEOF
13914 #line $LINENO "configure"
13915 #include "confdefs.h"
13916 #include <sys/types.h>
13917 #include <sys/socket.h>
13918 #ifdef F77_DUMMY_MAIN
13919 # ifdef __cplusplus
13920 extern "C"
13921 # endif
13922 int F77_DUMMY_MAIN() { return 1; }
13923 #endif
13925 main ()
13927 struct sockaddr s; s.sa_len = 0
13929 return 0;
13931 _ACEOF
13932 rm -f conftest.$ac_objext
13933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13934 (eval $ac_compile) 2>&5
13935 ac_status=$?
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); } &&
13938 { ac_try='test -s conftest.$ac_objext'
13939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13940 (eval $ac_try) 2>&5
13941 ac_status=$?
13942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); }; }; then
13944 ac_cv_c_sockaddr_sa_len="yes"
13945 else
13946 echo "$as_me: failed program was:" >&5
13947 cat conftest.$ac_ext >&5
13948 ac_cv_c_sockaddr_sa_len="no"
13950 rm -f conftest.$ac_objext conftest.$ac_ext
13952 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_sa_len" >&5
13953 echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6
13954 if test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then
13956 cat >>confdefs.h <<\_ACEOF
13957 #define HAVE_SOCKADDR_SA_LEN 1
13958 _ACEOF
13964 echo "$as_me:$LINENO: checking for sun_len in struct sockaddr_un" >&5
13965 echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6
13966 if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then
13967 echo $ECHO_N "(cached) $ECHO_C" >&6
13968 else
13969 cat >conftest.$ac_ext <<_ACEOF
13970 #line $LINENO "configure"
13971 #include "confdefs.h"
13972 #include <sys/types.h>
13973 #include <sys/socket.h>
13974 #include <sys/un.h>
13975 #ifdef F77_DUMMY_MAIN
13976 # ifdef __cplusplus
13977 extern "C"
13978 # endif
13979 int F77_DUMMY_MAIN() { return 1; }
13980 #endif
13982 main ()
13984 struct sockaddr_un s; s.sun_len = 0
13986 return 0;
13988 _ACEOF
13989 rm -f conftest.$ac_objext
13990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13991 (eval $ac_compile) 2>&5
13992 ac_status=$?
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); } &&
13995 { ac_try='test -s conftest.$ac_objext'
13996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13997 (eval $ac_try) 2>&5
13998 ac_status=$?
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); }; }; then
14001 ac_cv_c_sockaddr_un_sun_len="yes"
14002 else
14003 echo "$as_me: failed program was:" >&5
14004 cat conftest.$ac_ext >&5
14005 ac_cv_c_sockaddr_un_sun_len="no"
14007 rm -f conftest.$ac_objext conftest.$ac_ext
14009 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_un_sun_len" >&5
14010 echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6
14011 if test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then
14013 cat >>confdefs.h <<\_ACEOF
14014 #define HAVE_SOCKADDR_SUN_LEN 1
14015 _ACEOF
14022 case $host_cpu in
14023 *i345678986* )
14024 echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
14025 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
14026 if test "${ac_cv_cpp_def_i386+set}" = set; then
14027 echo $ECHO_N "(cached) $ECHO_C" >&6
14028 else
14029 cat >conftest.$ac_ext <<_ACEOF
14030 #line $LINENO "configure"
14031 #include "confdefs.h"
14032 #ifndef __i386__
14034 #endif
14035 _ACEOF
14036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14037 egrep "yes" >/dev/null 2>&1; then
14038 ac_cv_cpp_def_i386="yes"
14039 else
14040 ac_cv_cpp_def_i386="no"
14042 rm -f conftest*
14045 echo "$as_me:$LINENO: result: $ac_cv_cpp_def_i386" >&5
14046 echo "${ECHO_T}$ac_cv_cpp_def_i386" >&6
14048 esac
14049 if test "$ac_cv_cpp_def_i386" = "yes"
14050 then
14051 CFLAGS="$CFLAGS -D__i386__"
14052 LINTFLAGS="$LINTFLAGS -D__i386__"
14056 case $host_cpu in
14057 *sparc* )
14058 echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
14059 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
14060 if test "${ac_cv_cpp_def_sparc+set}" = set; then
14061 echo $ECHO_N "(cached) $ECHO_C" >&6
14062 else
14063 cat >conftest.$ac_ext <<_ACEOF
14064 #line $LINENO "configure"
14065 #include "confdefs.h"
14066 #ifndef __sparc__
14068 #endif
14069 _ACEOF
14070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14071 egrep "yes" >/dev/null 2>&1; then
14072 ac_cv_cpp_def_sparc="yes"
14073 else
14074 ac_cv_cpp_def_sparc="no"
14076 rm -f conftest*
14079 echo "$as_me:$LINENO: result: $ac_cv_cpp_def_sparc" >&5
14080 echo "${ECHO_T}$ac_cv_cpp_def_sparc" >&6
14082 esac
14083 if test "$ac_cv_cpp_def_sparc" = "yes"
14084 then
14085 CFLAGS="$CFLAGS -D__sparc__"
14086 LINTFLAGS="$LINTFLAGS -D__sparc__"
14090 case $host_vendor in
14091 *sun* )
14092 echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
14093 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
14094 if test "${ac_cv_cpp_def_sun+set}" = set; then
14095 echo $ECHO_N "(cached) $ECHO_C" >&6
14096 else
14097 cat >conftest.$ac_ext <<_ACEOF
14098 #line $LINENO "configure"
14099 #include "confdefs.h"
14100 #ifndef __sun__
14102 #endif
14103 _ACEOF
14104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14105 egrep "yes" >/dev/null 2>&1; then
14106 ac_cv_cpp_def_sun="yes"
14107 else
14108 ac_cv_cpp_def_sun="no"
14110 rm -f conftest*
14113 echo "$as_me:$LINENO: result: $ac_cv_cpp_def_sun" >&5
14114 echo "${ECHO_T}$ac_cv_cpp_def_sun" >&6
14116 esac
14117 if test "$ac_cv_cpp_def_sun" = "yes"
14118 then
14119 CFLAGS="$CFLAGS -D__sun__"
14120 LINTFLAGS="$LINTFLAGS -D__sun__"
14127 ac_config_commands="$ac_config_commands controls"
14129 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
14131 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
14133 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
14135 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
14137 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
14139 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
14141 ac_config_commands="$ac_config_commands dlls/dinput/joystick"
14143 ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
14145 ac_config_commands="$ac_config_commands dlls/dinput/mouse"
14147 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
14149 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
14151 ac_config_commands="$ac_config_commands dlls/gdi/win16drv"
14153 ac_config_commands="$ac_config_commands dlls/kernel/messages"
14155 ac_config_commands="$ac_config_commands dlls/user/dde"
14157 ac_config_commands="$ac_config_commands dlls/user/resources"
14159 ac_config_commands="$ac_config_commands dlls/wineps/data"
14161 ac_config_commands="$ac_config_commands files"
14163 ac_config_commands="$ac_config_commands graphics"
14165 ac_config_commands="$ac_config_commands graphics/x11drv"
14167 ac_config_commands="$ac_config_commands if1632"
14169 ac_config_commands="$ac_config_commands include/wine"
14171 ac_config_commands="$ac_config_commands loader"
14173 ac_config_commands="$ac_config_commands loader/ne"
14175 ac_config_commands="$ac_config_commands memory"
14177 ac_config_commands="$ac_config_commands misc"
14179 ac_config_commands="$ac_config_commands msdos"
14181 ac_config_commands="$ac_config_commands objects"
14183 ac_config_commands="$ac_config_commands programs/regapi/tests"
14185 ac_config_commands="$ac_config_commands programs/regedit/tests"
14187 ac_config_commands="$ac_config_commands programs/winetest/tests"
14189 ac_config_commands="$ac_config_commands relay32"
14191 ac_config_commands="$ac_config_commands scheduler"
14193 ac_config_commands="$ac_config_commands win32"
14195 ac_config_commands="$ac_config_commands windows"
14198 MAKE_RULES=Make.rules
14201 MAKE_DLL_RULES=dlls/Makedll.rules
14204 MAKE_TEST_RULES=dlls/Maketest.rules
14207 MAKE_PROG_RULES=programs/Makeprog.rules
14210 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/d3d8/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dsound/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msdmo/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msvcrt/Makefile dlls/msvcrt20/Makefile dlls/msvideo/Makefile dlls/msvideo/msrle32/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/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/rpcrt4/tests/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/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/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile include/Makefile library/Makefile miscemu/Makefile ole/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/notepad/Makefile programs/osversioncheck/Makefile programs/progman/Makefile programs/regapi/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/regtest/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wpp/Makefile tools/wrc/Makefile unicode/Makefile"
14213 cat >confcache <<\_ACEOF
14214 # This file is a shell script that caches the results of configure
14215 # tests run on this system so they can be shared between configure
14216 # scripts and configure runs, see configure's option --config-cache.
14217 # It is not useful on other systems. If it contains results you don't
14218 # want to keep, you may remove or edit it.
14220 # config.status only pays attention to the cache file if you give it
14221 # the --recheck option to rerun configure.
14223 # `ac_cv_env_foo' variables (set or unset) will be overriden when
14224 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14225 # following values.
14227 _ACEOF
14229 # The following way of writing the cache mishandles newlines in values,
14230 # but we know of no workaround that is simple, portable, and efficient.
14231 # So, don't put newlines in cache variables' values.
14232 # Ultrix sh set writes to stderr and can't be redirected directly,
14233 # and sets the high bit in the cache file unless we assign to the vars.
14235 (set) 2>&1 |
14236 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14237 *ac_space=\ *)
14238 # `set' does not quote correctly, so add quotes (double-quote
14239 # substitution turns \\\\ into \\, and sed turns \\ into \).
14240 sed -n \
14241 "s/'/'\\\\''/g;
14242 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14245 # `set' quotes correctly as required by POSIX, so do not add quotes.
14246 sed -n \
14247 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14249 esac;
14251 sed '
14252 t clear
14253 : clear
14254 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14255 t end
14256 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14257 : end' >>confcache
14258 if cmp -s $cache_file confcache; then :; else
14259 if test -w $cache_file; then
14260 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14261 cat confcache >$cache_file
14262 else
14263 echo "not updating unwritable cache $cache_file"
14266 rm -f confcache
14268 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14269 # Let make expand exec_prefix.
14270 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14272 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14273 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14274 # trailing colons and then remove the whole line if VPATH becomes empty
14275 # (actually we leave an empty line to preserve line numbers).
14276 if test "x$srcdir" = x.; then
14277 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14278 s/:*\$(srcdir):*/:/;
14279 s/:*\${srcdir}:*/:/;
14280 s/:*@srcdir@:*/:/;
14281 s/^\([^=]*=[ ]*\):*/\1/;
14282 s/:*$//;
14283 s/^[^=]*=[ ]*$//;
14287 DEFS=-DHAVE_CONFIG_H
14290 : ${CONFIG_STATUS=./config.status}
14291 ac_clean_files_save=$ac_clean_files
14292 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14293 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14294 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14295 cat >$CONFIG_STATUS <<_ACEOF
14296 #! $SHELL
14297 # Generated by $as_me.
14298 # Run this file to recreate the current configuration.
14299 # Compiler output produced by configure, useful for debugging
14300 # configure, is in config.log if it exists.
14302 debug=false
14303 SHELL=\${CONFIG_SHELL-$SHELL}
14304 _ACEOF
14306 cat >>$CONFIG_STATUS <<\_ACEOF
14308 ## --------------------- ##
14309 ## M4sh Initialization. ##
14310 ## --------------------- ##
14312 # Be Bourne compatible
14313 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14314 emulate sh
14315 NULLCMD=:
14316 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14317 set -o posix
14320 # NLS nuisances.
14321 # Support unset when possible.
14322 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
14323 as_unset=unset
14324 else
14325 as_unset=false
14328 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
14329 { $as_unset LANG || test "${LANG+set}" != set; } ||
14330 { LANG=C; export LANG; }
14331 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
14332 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
14333 { LC_ALL=C; export LC_ALL; }
14334 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
14335 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
14336 { LC_TIME=C; export LC_TIME; }
14337 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
14338 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
14339 { LC_CTYPE=C; export LC_CTYPE; }
14340 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
14341 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
14342 { LANGUAGE=C; export LANGUAGE; }
14343 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
14344 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
14345 { LC_COLLATE=C; export LC_COLLATE; }
14346 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
14347 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
14348 { LC_NUMERIC=C; export LC_NUMERIC; }
14349 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
14350 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
14351 { LC_MESSAGES=C; export LC_MESSAGES; }
14354 # Name of the executable.
14355 as_me=`(basename "$0") 2>/dev/null ||
14356 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14357 X"$0" : 'X\(//\)$' \| \
14358 X"$0" : 'X\(/\)$' \| \
14359 . : '\(.\)' 2>/dev/null ||
14360 echo X/"$0" |
14361 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14362 /^X\/\(\/\/\)$/{ s//\1/; q; }
14363 /^X\/\(\/\).*/{ s//\1/; q; }
14364 s/.*/./; q'`
14366 # PATH needs CR, and LINENO needs CR and PATH.
14367 # Avoid depending upon Character Ranges.
14368 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14369 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14370 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14371 as_cr_digits='0123456789'
14372 as_cr_alnum=$as_cr_Letters$as_cr_digits
14374 # The user is always right.
14375 if test "${PATH_SEPARATOR+set}" != set; then
14376 echo "#! /bin/sh" >conftest.sh
14377 echo "exit 0" >>conftest.sh
14378 chmod +x conftest.sh
14379 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
14380 PATH_SEPARATOR=';'
14381 else
14382 PATH_SEPARATOR=:
14384 rm -f conftest.sh
14388 as_lineno_1=$LINENO
14389 as_lineno_2=$LINENO
14390 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14391 test "x$as_lineno_1" != "x$as_lineno_2" &&
14392 test "x$as_lineno_3" = "x$as_lineno_2" || {
14393 # Find who we are. Look in the path if we contain no path at all
14394 # relative or not.
14395 case $0 in
14396 *[\\/]* ) as_myself=$0 ;;
14397 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14398 for as_dir in $PATH
14400 IFS=$as_save_IFS
14401 test -z "$as_dir" && as_dir=.
14402 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14403 done
14406 esac
14407 # We did not find ourselves, most probably we were run as `sh COMMAND'
14408 # in which case we are not to be found in the path.
14409 if test "x$as_myself" = x; then
14410 as_myself=$0
14412 if test ! -f "$as_myself"; then
14413 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14414 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14415 { (exit 1); exit 1; }; }
14417 case $CONFIG_SHELL in
14419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14420 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14422 IFS=$as_save_IFS
14423 test -z "$as_dir" && as_dir=.
14424 for as_base in sh bash ksh sh5; do
14425 case $as_dir in
14427 if ("$as_dir/$as_base" -c '
14428 as_lineno_1=$LINENO
14429 as_lineno_2=$LINENO
14430 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14431 test "x$as_lineno_1" != "x$as_lineno_2" &&
14432 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14433 CONFIG_SHELL=$as_dir/$as_base
14434 export CONFIG_SHELL
14435 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14436 fi;;
14437 esac
14438 done
14439 done
14441 esac
14443 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14444 # uniformly replaced by the line number. The first 'sed' inserts a
14445 # line-number line before each line; the second 'sed' does the real
14446 # work. The second script uses 'N' to pair each line-number line
14447 # with the numbered line, and appends trailing '-' during
14448 # substitution so that $LINENO is not a special case at line end.
14449 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14450 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14451 sed '=' <$as_myself |
14452 sed '
14454 s,$,-,
14455 : loop
14456 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14457 t loop
14458 s,-$,,
14459 s,^['$as_cr_digits']*\n,,
14460 ' >$as_me.lineno &&
14461 chmod +x $as_me.lineno ||
14462 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14463 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14464 { (exit 1); exit 1; }; }
14466 # Don't try to exec as it changes $[0], causing all sort of problems
14467 # (the dirname of $[0] is not the place where we might find the
14468 # original and so on. Autoconf is especially sensible to this).
14469 . ./$as_me.lineno
14470 # Exit status is that of the last command.
14471 exit
14475 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14476 *c*,-n*) ECHO_N= ECHO_C='
14477 ' ECHO_T=' ' ;;
14478 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14479 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14480 esac
14482 if expr a : '\(a\)' >/dev/null 2>&1; then
14483 as_expr=expr
14484 else
14485 as_expr=false
14488 rm -f conf$$ conf$$.exe conf$$.file
14489 echo >conf$$.file
14490 if ln -s conf$$.file conf$$ 2>/dev/null; then
14491 # We could just check for DJGPP; but this test a) works b) is more generic
14492 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14493 if test -f conf$$.exe; then
14494 # Don't use ln at all; we don't have any links
14495 as_ln_s='cp -p'
14496 else
14497 as_ln_s='ln -s'
14499 elif ln conf$$.file conf$$ 2>/dev/null; then
14500 as_ln_s=ln
14501 else
14502 as_ln_s='cp -p'
14504 rm -f conf$$ conf$$.exe conf$$.file
14506 as_executable_p="test -f"
14508 # Sed expression to map a string onto a valid CPP name.
14509 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
14511 # Sed expression to map a string onto a valid variable name.
14512 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
14515 # IFS
14516 # We need space, tab and new line, in precisely that order.
14517 as_nl='
14519 IFS=" $as_nl"
14521 # CDPATH.
14522 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
14524 exec 6>&1
14526 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14527 # report actual input values of CONFIG_FILES etc. instead of their
14528 # values after options handling. Logging --version etc. is OK.
14529 exec 5>>config.log
14531 echo
14532 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14533 ## Running $as_me. ##
14534 _ASBOX
14535 } >&5
14536 cat >&5 <<_CSEOF
14538 This file was extended by Wine $as_me 20021007, which was
14539 generated by GNU Autoconf 2.53. Invocation command line was
14541 CONFIG_FILES = $CONFIG_FILES
14542 CONFIG_HEADERS = $CONFIG_HEADERS
14543 CONFIG_LINKS = $CONFIG_LINKS
14544 CONFIG_COMMANDS = $CONFIG_COMMANDS
14545 $ $0 $@
14547 _CSEOF
14548 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14549 echo >&5
14550 _ACEOF
14552 # Files that config.status was made for.
14553 if test -n "$ac_config_files"; then
14554 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14557 if test -n "$ac_config_headers"; then
14558 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14561 if test -n "$ac_config_links"; then
14562 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14565 if test -n "$ac_config_commands"; then
14566 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14569 cat >>$CONFIG_STATUS <<\_ACEOF
14571 ac_cs_usage="\
14572 \`$as_me' instantiates files from templates according to the
14573 current configuration.
14575 Usage: $0 [OPTIONS] [FILE]...
14577 -h, --help print this help, then exit
14578 -V, --version print version number, then exit
14579 -d, --debug don't remove temporary files
14580 --recheck update $as_me by reconfiguring in the same conditions
14581 --file=FILE[:TEMPLATE]
14582 instantiate the configuration file FILE
14583 --header=FILE[:TEMPLATE]
14584 instantiate the configuration header FILE
14586 Configuration files:
14587 $config_files
14589 Configuration headers:
14590 $config_headers
14592 Configuration commands:
14593 $config_commands
14595 Report bugs to <bug-autoconf@gnu.org>."
14596 _ACEOF
14598 cat >>$CONFIG_STATUS <<_ACEOF
14599 ac_cs_version="\\
14600 Wine config.status 20021007
14601 configured by $0, generated by GNU Autoconf 2.53,
14602 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14604 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
14605 Free Software Foundation, Inc.
14606 This config.status script is free software; the Free Software Foundation
14607 gives unlimited permission to copy, distribute and modify it."
14608 srcdir=$srcdir
14609 INSTALL="$INSTALL"
14610 _ACEOF
14612 cat >>$CONFIG_STATUS <<\_ACEOF
14613 # If no file are specified by the user, then we need to provide default
14614 # value. By we need to know if files were specified by the user.
14615 ac_need_defaults=:
14616 while test $# != 0
14618 case $1 in
14619 --*=*)
14620 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14621 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14622 shift
14623 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
14624 shift
14626 -*);;
14627 *) # This is not an option, so the user has probably given explicit
14628 # arguments.
14629 ac_need_defaults=false;;
14630 esac
14632 case $1 in
14633 # Handling of the options.
14634 _ACEOF
14635 cat >>$CONFIG_STATUS <<_ACEOF
14636 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14637 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
14638 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
14639 _ACEOF
14640 cat >>$CONFIG_STATUS <<\_ACEOF
14641 --version | --vers* | -V )
14642 echo "$ac_cs_version"; exit 0 ;;
14643 --he | --h)
14644 # Conflict between --help and --header
14645 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14646 Try \`$0 --help' for more information." >&5
14647 echo "$as_me: error: ambiguous option: $1
14648 Try \`$0 --help' for more information." >&2;}
14649 { (exit 1); exit 1; }; };;
14650 --help | --hel | -h )
14651 echo "$ac_cs_usage"; exit 0 ;;
14652 --debug | --d* | -d )
14653 debug=: ;;
14654 --file | --fil | --fi | --f )
14655 shift
14656 CONFIG_FILES="$CONFIG_FILES $1"
14657 ac_need_defaults=false;;
14658 --header | --heade | --head | --hea )
14659 shift
14660 CONFIG_HEADERS="$CONFIG_HEADERS $1"
14661 ac_need_defaults=false;;
14663 # This is an error.
14664 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14665 Try \`$0 --help' for more information." >&5
14666 echo "$as_me: error: unrecognized option: $1
14667 Try \`$0 --help' for more information." >&2;}
14668 { (exit 1); exit 1; }; } ;;
14670 *) ac_config_targets="$ac_config_targets $1" ;;
14672 esac
14673 shift
14674 done
14676 _ACEOF
14682 cat >>$CONFIG_STATUS <<\_ACEOF
14683 for ac_config_target in $ac_config_targets
14685 case "$ac_config_target" in
14686 # Handling of arguments.
14687 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
14688 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
14689 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
14690 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
14691 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14692 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
14693 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
14694 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
14695 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
14696 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
14697 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
14698 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
14699 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
14700 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
14701 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
14702 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
14703 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
14704 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
14705 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
14706 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
14707 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
14708 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
14709 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
14710 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
14711 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
14712 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
14713 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
14714 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
14715 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
14716 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
14717 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
14718 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
14719 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
14720 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
14721 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
14722 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
14723 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
14724 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
14725 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
14726 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
14727 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
14728 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
14729 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
14730 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
14731 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
14732 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
14733 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
14734 "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;;
14735 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
14736 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
14737 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
14738 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
14739 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
14740 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
14741 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
14742 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
14743 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
14744 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
14745 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
14746 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
14747 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
14748 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
14749 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
14750 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
14751 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
14752 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
14753 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
14754 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
14755 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
14756 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
14757 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
14758 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
14759 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
14760 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
14761 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
14762 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
14763 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
14764 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
14765 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
14766 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
14767 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
14768 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
14769 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
14770 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
14771 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
14772 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
14773 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
14774 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
14775 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
14776 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
14777 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
14778 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
14779 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
14780 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
14781 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
14782 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
14783 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
14784 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
14785 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
14786 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
14787 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
14788 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
14789 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
14790 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
14791 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
14792 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
14793 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
14794 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
14795 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
14796 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
14797 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
14798 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
14799 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
14800 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
14801 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
14802 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14803 "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
14804 "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
14805 "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;;
14806 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
14807 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
14808 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
14809 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
14810 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
14811 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
14812 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
14813 "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
14814 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
14815 "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
14816 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
14817 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
14818 "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
14819 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
14820 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
14821 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
14822 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
14823 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
14824 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
14825 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
14826 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
14827 "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
14828 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
14829 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
14830 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
14831 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14832 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
14833 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
14834 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
14835 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
14836 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
14837 "tools/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wpp/Makefile" ;;
14838 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
14839 "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;;
14840 "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
14841 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
14842 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
14843 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
14844 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
14845 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
14846 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
14847 "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
14848 "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
14849 "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
14850 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
14851 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
14852 "dlls/gdi/win16drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/win16drv" ;;
14853 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
14854 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
14855 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
14856 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
14857 "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
14858 "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
14859 "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
14860 "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;;
14861 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
14862 "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;;
14863 "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;;
14864 "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;;
14865 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
14866 "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;;
14867 "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
14868 "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
14869 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
14870 "programs/winetest/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/winetest/tests" ;;
14871 "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;;
14872 "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;;
14873 "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;;
14874 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
14875 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
14876 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14877 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14878 { (exit 1); exit 1; }; };;
14879 esac
14880 done
14882 # If the user did not use the arguments to specify the items to instantiate,
14883 # then the envvar interface is used. Set only those that are not.
14884 # We use the long form for the default assignment because of an extremely
14885 # bizarre bug on SunOS 4.1.3.
14886 if $ac_need_defaults; then
14887 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14888 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14889 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14892 # Create a temporary directory, and hook for its removal unless debugging.
14893 $debug ||
14895 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14896 trap '{ (exit 1); exit 1; }' 1 2 13 15
14899 # Create a (secure) tmp directory for tmp files.
14900 : ${TMPDIR=/tmp}
14902 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
14903 test -n "$tmp" && test -d "$tmp"
14904 } ||
14906 tmp=$TMPDIR/cs$$-$RANDOM
14907 (umask 077 && mkdir $tmp)
14908 } ||
14910 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
14911 { (exit 1); exit 1; }
14914 _ACEOF
14916 cat >>$CONFIG_STATUS <<_ACEOF
14919 # CONFIG_FILES section.
14922 # No need to generate the scripts if there are no CONFIG_FILES.
14923 # This happens for instance when ./config.status config.h
14924 if test -n "\$CONFIG_FILES"; then
14925 # Protect against being on the right side of a sed subst in config.status.
14926 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14927 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14928 s,@SHELL@,$SHELL,;t t
14929 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14930 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14931 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14932 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14933 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14934 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14935 s,@exec_prefix@,$exec_prefix,;t t
14936 s,@prefix@,$prefix,;t t
14937 s,@program_transform_name@,$program_transform_name,;t t
14938 s,@bindir@,$bindir,;t t
14939 s,@sbindir@,$sbindir,;t t
14940 s,@libexecdir@,$libexecdir,;t t
14941 s,@datadir@,$datadir,;t t
14942 s,@sysconfdir@,$sysconfdir,;t t
14943 s,@sharedstatedir@,$sharedstatedir,;t t
14944 s,@localstatedir@,$localstatedir,;t t
14945 s,@libdir@,$libdir,;t t
14946 s,@includedir@,$includedir,;t t
14947 s,@oldincludedir@,$oldincludedir,;t t
14948 s,@infodir@,$infodir,;t t
14949 s,@mandir@,$mandir,;t t
14950 s,@build_alias@,$build_alias,;t t
14951 s,@host_alias@,$host_alias,;t t
14952 s,@target_alias@,$target_alias,;t t
14953 s,@DEFS@,$DEFS,;t t
14954 s,@ECHO_C@,$ECHO_C,;t t
14955 s,@ECHO_N@,$ECHO_N,;t t
14956 s,@ECHO_T@,$ECHO_T,;t t
14957 s,@LIBS@,$LIBS,;t t
14958 s,@LIBEXT@,$LIBEXT,;t t
14959 s,@OPTIONS@,$OPTIONS,;t t
14960 s,@WIN16_FILES@,$WIN16_FILES,;t t
14961 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
14962 s,@build@,$build,;t t
14963 s,@build_cpu@,$build_cpu,;t t
14964 s,@build_vendor@,$build_vendor,;t t
14965 s,@build_os@,$build_os,;t t
14966 s,@host@,$host,;t t
14967 s,@host_cpu@,$host_cpu,;t t
14968 s,@host_vendor@,$host_vendor,;t t
14969 s,@host_os@,$host_os,;t t
14970 s,@SET_MAKE@,$SET_MAKE,;t t
14971 s,@CC@,$CC,;t t
14972 s,@CFLAGS@,$CFLAGS,;t t
14973 s,@LDFLAGS@,$LDFLAGS,;t t
14974 s,@CPPFLAGS@,$CPPFLAGS,;t t
14975 s,@ac_ct_CC@,$ac_ct_CC,;t t
14976 s,@EXEEXT@,$EXEEXT,;t t
14977 s,@OBJEXT@,$OBJEXT,;t t
14978 s,@CPP@,$CPP,;t t
14979 s,@TOOLSDIR@,$TOOLSDIR,;t t
14980 s,@X_CFLAGS@,$X_CFLAGS,;t t
14981 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
14982 s,@X_LIBS@,$X_LIBS,;t t
14983 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
14984 s,@YACC@,$YACC,;t t
14985 s,@LEX@,$LEX,;t t
14986 s,@LEXLIB@,$LEXLIB,;t t
14987 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
14988 s,@XYACC@,$XYACC,;t t
14989 s,@XLEX@,$XLEX,;t t
14990 s,@LD@,$LD,;t t
14991 s,@ac_ct_LD@,$ac_ct_LD,;t t
14992 s,@AR@,$AR,;t t
14993 s,@ac_ct_AR@,$ac_ct_AR,;t t
14994 s,@RANLIB@,$RANLIB,;t t
14995 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14996 s,@STRIP@,$STRIP,;t t
14997 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14998 s,@WINDRES@,$WINDRES,;t t
14999 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
15000 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15001 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15002 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15003 s,@LN_S@,$LN_S,;t t
15004 s,@LN@,$LN,;t t
15005 s,@C2MAN@,$C2MAN,;t t
15006 s,@LDCONFIG@,$LDCONFIG,;t t
15007 s,@LINT@,$LINT,;t t
15008 s,@LINTFLAGS@,$LINTFLAGS,;t t
15009 s,@JPEGLIB@,$JPEGLIB,;t t
15010 s,@XLIB@,$XLIB,;t t
15011 s,@XFILES@,$XFILES,;t t
15012 s,@OPENGLFILES@,$OPENGLFILES,;t t
15013 s,@GLU32FILES@,$GLU32FILES,;t t
15014 s,@CURSESLIBS@,$CURSESLIBS,;t t
15015 s,@CUPSLIBS@,$CUPSLIBS,;t t
15016 s,@sane_devel@,$sane_devel,;t t
15017 s,@SANELIBS@,$SANELIBS,;t t
15018 s,@SANEINCL@,$SANEINCL,;t t
15019 s,@ft_devel@,$ft_devel,;t t
15020 s,@ft_devel2@,$ft_devel2,;t t
15021 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
15022 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
15023 s,@ARTSLIBS@,$ARTSLIBS,;t t
15024 s,@ARTSINCL@,$ARTSINCL,;t t
15025 s,@ALSALIBS@,$ALSALIBS,;t t
15026 s,@NASLIBS@,$NASLIBS,;t t
15027 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
15028 s,@DLLEXT@,$DLLEXT,;t t
15029 s,@DLLFLAGS@,$DLLFLAGS,;t t
15030 s,@DLLIBS@,$DLLIBS,;t t
15031 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
15032 s,@LDSHARED@,$LDSHARED,;t t
15033 s,@DLLWRAP@,$DLLWRAP,;t t
15034 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
15035 s,@CROSSTEST@,$CROSSTEST,;t t
15036 s,@CROSSCC@,$CROSSCC,;t t
15037 s,@DLLTOOL@,$DLLTOOL,;t t
15038 s,@LDPATH@,$LDPATH,;t t
15039 s,@CRTLIBS@,$CRTLIBS,;t t
15040 s,@LDD@,$LDD,;t t
15041 s,@ALLOCA@,$ALLOCA,;t t
15042 /@MAKE_RULES@/r $MAKE_RULES
15043 s,@MAKE_RULES@,,;t t
15044 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
15045 s,@MAKE_DLL_RULES@,,;t t
15046 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
15047 s,@MAKE_TEST_RULES@,,;t t
15048 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
15049 s,@MAKE_PROG_RULES@,,;t t
15050 CEOF
15052 _ACEOF
15054 cat >>$CONFIG_STATUS <<\_ACEOF
15055 # Split the substitutions into bite-sized pieces for seds with
15056 # small command number limits, like on Digital OSF/1 and HP-UX.
15057 ac_max_sed_lines=48
15058 ac_sed_frag=1 # Number of current file.
15059 ac_beg=1 # First line for current file.
15060 ac_end=$ac_max_sed_lines # Line after last line for current file.
15061 ac_more_lines=:
15062 ac_sed_cmds=
15063 while $ac_more_lines; do
15064 if test $ac_beg -gt 1; then
15065 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15066 else
15067 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15069 if test ! -s $tmp/subs.frag; then
15070 ac_more_lines=false
15071 else
15072 # The purpose of the label and of the branching condition is to
15073 # speed up the sed processing (if there are no `@' at all, there
15074 # is no need to browse any of the substitutions).
15075 # These are the two extra sed commands mentioned above.
15076 (echo ':t
15077 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15078 if test -z "$ac_sed_cmds"; then
15079 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15080 else
15081 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15083 ac_sed_frag=`expr $ac_sed_frag + 1`
15084 ac_beg=$ac_end
15085 ac_end=`expr $ac_end + $ac_max_sed_lines`
15087 done
15088 if test -z "$ac_sed_cmds"; then
15089 ac_sed_cmds=cat
15091 fi # test -n "$CONFIG_FILES"
15093 _ACEOF
15094 cat >>$CONFIG_STATUS <<\_ACEOF
15095 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15096 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15097 case $ac_file in
15098 - | *:- | *:-:* ) # input from stdin
15099 cat >$tmp/stdin
15100 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15101 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15102 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15103 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15104 * ) ac_file_in=$ac_file.in ;;
15105 esac
15107 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15108 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15109 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15110 X"$ac_file" : 'X\(//\)[^/]' \| \
15111 X"$ac_file" : 'X\(//\)$' \| \
15112 X"$ac_file" : 'X\(/\)' \| \
15113 . : '\(.\)' 2>/dev/null ||
15114 echo X"$ac_file" |
15115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15116 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15117 /^X\(\/\/\)$/{ s//\1/; q; }
15118 /^X\(\/\).*/{ s//\1/; q; }
15119 s/.*/./; q'`
15120 { case "$ac_dir" in
15121 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
15122 *) as_incr_dir=.;;
15123 esac
15124 as_dummy="$ac_dir"
15125 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
15126 case $as_mkdir_dir in
15127 # Skip DOS drivespec
15128 ?:) as_incr_dir=$as_mkdir_dir ;;
15130 as_incr_dir=$as_incr_dir/$as_mkdir_dir
15131 test -d "$as_incr_dir" ||
15132 mkdir "$as_incr_dir" ||
15133 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
15134 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
15135 { (exit 1); exit 1; }; }
15137 esac
15138 done; }
15140 ac_builddir=.
15142 if test "$ac_dir" != .; then
15143 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15144 # A "../" for each directory in $ac_dir_suffix.
15145 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15146 else
15147 ac_dir_suffix= ac_top_builddir=
15150 case $srcdir in
15151 .) # No --srcdir option. We are building in place.
15152 ac_srcdir=.
15153 if test -z "$ac_top_builddir"; then
15154 ac_top_srcdir=.
15155 else
15156 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15157 fi ;;
15158 [\\/]* | ?:[\\/]* ) # Absolute path.
15159 ac_srcdir=$srcdir$ac_dir_suffix;
15160 ac_top_srcdir=$srcdir ;;
15161 *) # Relative path.
15162 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15163 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15164 esac
15165 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15166 # absolute.
15167 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
15168 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
15169 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15170 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
15173 case $INSTALL in
15174 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15175 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15176 esac
15178 if test x"$ac_file" != x-; then
15179 { echo "$as_me:$LINENO: creating $ac_file" >&5
15180 echo "$as_me: creating $ac_file" >&6;}
15181 rm -f "$ac_file"
15183 # Let's still pretend it is `configure' which instantiates (i.e., don't
15184 # use $as_me), people would be surprised to read:
15185 # /* config.h. Generated by config.status. */
15186 if test x"$ac_file" = x-; then
15187 configure_input=
15188 else
15189 configure_input="$ac_file. "
15191 configure_input=$configure_input"Generated from `echo $ac_file_in |
15192 sed 's,.*/,,'` by configure."
15194 # First look for the input files in the build tree, otherwise in the
15195 # src tree.
15196 ac_file_inputs=`IFS=:
15197 for f in $ac_file_in; do
15198 case $f in
15199 -) echo $tmp/stdin ;;
15200 [\\/$]*)
15201 # Absolute (can't be DOS-style, as IFS=:)
15202 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15203 echo "$as_me: error: cannot find input file: $f" >&2;}
15204 { (exit 1); exit 1; }; }
15205 echo $f;;
15206 *) # Relative
15207 if test -f "$f"; then
15208 # Build tree
15209 echo $f
15210 elif test -f "$srcdir/$f"; then
15211 # Source tree
15212 echo $srcdir/$f
15213 else
15214 # /dev/null tree
15215 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15216 echo "$as_me: error: cannot find input file: $f" >&2;}
15217 { (exit 1); exit 1; }; }
15218 fi;;
15219 esac
15220 done` || { (exit 1); exit 1; }
15221 _ACEOF
15222 cat >>$CONFIG_STATUS <<_ACEOF
15223 sed "$ac_vpsub
15224 $extrasub
15225 _ACEOF
15226 cat >>$CONFIG_STATUS <<\_ACEOF
15228 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15229 s,@configure_input@,$configure_input,;t t
15230 s,@srcdir@,$ac_srcdir,;t t
15231 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15232 s,@top_srcdir@,$ac_top_srcdir,;t t
15233 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15234 s,@builddir@,$ac_builddir,;t t
15235 s,@abs_builddir@,$ac_abs_builddir,;t t
15236 s,@top_builddir@,$ac_top_builddir,;t t
15237 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15238 s,@INSTALL@,$ac_INSTALL,;t t
15239 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15240 rm -f $tmp/stdin
15241 if test x"$ac_file" != x-; then
15242 mv $tmp/out $ac_file
15243 else
15244 cat $tmp/out
15245 rm -f $tmp/out
15248 done
15249 _ACEOF
15250 cat >>$CONFIG_STATUS <<\_ACEOF
15253 # CONFIG_HEADER section.
15256 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15257 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15259 # ac_d sets the value in "#define NAME VALUE" lines.
15260 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15261 ac_dB='[ ].*$,\1#\2'
15262 ac_dC=' '
15263 ac_dD=',;t'
15264 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15265 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15266 ac_uB='$,\1#\2define\3'
15267 ac_uC=' '
15268 ac_uD=',;t'
15270 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15271 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15272 case $ac_file in
15273 - | *:- | *:-:* ) # input from stdin
15274 cat >$tmp/stdin
15275 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15276 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15277 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15278 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15279 * ) ac_file_in=$ac_file.in ;;
15280 esac
15282 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15283 echo "$as_me: creating $ac_file" >&6;}
15285 # First look for the input files in the build tree, otherwise in the
15286 # src tree.
15287 ac_file_inputs=`IFS=:
15288 for f in $ac_file_in; do
15289 case $f in
15290 -) echo $tmp/stdin ;;
15291 [\\/$]*)
15292 # Absolute (can't be DOS-style, as IFS=:)
15293 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15294 echo "$as_me: error: cannot find input file: $f" >&2;}
15295 { (exit 1); exit 1; }; }
15296 echo $f;;
15297 *) # Relative
15298 if test -f "$f"; then
15299 # Build tree
15300 echo $f
15301 elif test -f "$srcdir/$f"; then
15302 # Source tree
15303 echo $srcdir/$f
15304 else
15305 # /dev/null tree
15306 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15307 echo "$as_me: error: cannot find input file: $f" >&2;}
15308 { (exit 1); exit 1; }; }
15309 fi;;
15310 esac
15311 done` || { (exit 1); exit 1; }
15312 # Remove the trailing spaces.
15313 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15315 _ACEOF
15317 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15318 # `conftest.undefs', that substitutes the proper values into
15319 # config.h.in to produce config.h. The first handles `#define'
15320 # templates, and the second `#undef' templates.
15321 # And first: Protect against being on the right side of a sed subst in
15322 # config.status. Protect against being in an unquoted here document
15323 # in config.status.
15324 rm -f conftest.defines conftest.undefs
15325 # Using a here document instead of a string reduces the quoting nightmare.
15326 # Putting comments in sed scripts is not portable.
15328 # `end' is used to avoid that the second main sed command (meant for
15329 # 0-ary CPP macros) applies to n-ary macro definitions.
15330 # See the Autoconf documentation for `clear'.
15331 cat >confdef2sed.sed <<\_ACEOF
15332 s/[\\&,]/\\&/g
15333 s,[\\$`],\\&,g
15334 t clear
15335 : clear
15336 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15337 t end
15338 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15339 : end
15340 _ACEOF
15341 # If some macros were called several times there might be several times
15342 # the same #defines, which is useless. Nevertheless, we may not want to
15343 # sort them, since we want the *last* AC-DEFINE to be honored.
15344 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15345 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15346 rm -f confdef2sed.sed
15348 # This sed command replaces #undef with comments. This is necessary, for
15349 # example, in the case of _POSIX_SOURCE, which is predefined and required
15350 # on some systems where configure will not decide to define it.
15351 cat >>conftest.undefs <<\_ACEOF
15352 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15353 _ACEOF
15355 # Break up conftest.defines because some shells have a limit on the size
15356 # of here documents, and old seds have small limits too (100 cmds).
15357 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15358 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15359 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15360 echo ' :' >>$CONFIG_STATUS
15361 rm -f conftest.tail
15362 while grep . conftest.defines >/dev/null
15364 # Write a limited-size here document to $tmp/defines.sed.
15365 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15366 # Speed up: don't consider the non `#define' lines.
15367 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15368 # Work around the forget-to-reset-the-flag bug.
15369 echo 't clr' >>$CONFIG_STATUS
15370 echo ': clr' >>$CONFIG_STATUS
15371 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15372 echo 'CEOF
15373 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15374 rm -f $tmp/in
15375 mv $tmp/out $tmp/in
15376 ' >>$CONFIG_STATUS
15377 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15378 rm -f conftest.defines
15379 mv conftest.tail conftest.defines
15380 done
15381 rm -f conftest.defines
15382 echo ' fi # egrep' >>$CONFIG_STATUS
15383 echo >>$CONFIG_STATUS
15385 # Break up conftest.undefs because some shells have a limit on the size
15386 # of here documents, and old seds have small limits too (100 cmds).
15387 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
15388 rm -f conftest.tail
15389 while grep . conftest.undefs >/dev/null
15391 # Write a limited-size here document to $tmp/undefs.sed.
15392 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15393 # Speed up: don't consider the non `#undef'
15394 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15395 # Work around the forget-to-reset-the-flag bug.
15396 echo 't clr' >>$CONFIG_STATUS
15397 echo ': clr' >>$CONFIG_STATUS
15398 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15399 echo 'CEOF
15400 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15401 rm -f $tmp/in
15402 mv $tmp/out $tmp/in
15403 ' >>$CONFIG_STATUS
15404 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15405 rm -f conftest.undefs
15406 mv conftest.tail conftest.undefs
15407 done
15408 rm -f conftest.undefs
15410 cat >>$CONFIG_STATUS <<\_ACEOF
15411 # Let's still pretend it is `configure' which instantiates (i.e., don't
15412 # use $as_me), people would be surprised to read:
15413 # /* config.h. Generated by config.status. */
15414 if test x"$ac_file" = x-; then
15415 echo "/* Generated by configure. */" >$tmp/config.h
15416 else
15417 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15419 cat $tmp/in >>$tmp/config.h
15420 rm -f $tmp/in
15421 if test x"$ac_file" != x-; then
15422 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
15423 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15424 echo "$as_me: $ac_file is unchanged" >&6;}
15425 else
15426 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15427 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15428 X"$ac_file" : 'X\(//\)[^/]' \| \
15429 X"$ac_file" : 'X\(//\)$' \| \
15430 X"$ac_file" : 'X\(/\)' \| \
15431 . : '\(.\)' 2>/dev/null ||
15432 echo X"$ac_file" |
15433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15434 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15435 /^X\(\/\/\)$/{ s//\1/; q; }
15436 /^X\(\/\).*/{ s//\1/; q; }
15437 s/.*/./; q'`
15438 { case "$ac_dir" in
15439 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
15440 *) as_incr_dir=.;;
15441 esac
15442 as_dummy="$ac_dir"
15443 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
15444 case $as_mkdir_dir in
15445 # Skip DOS drivespec
15446 ?:) as_incr_dir=$as_mkdir_dir ;;
15448 as_incr_dir=$as_incr_dir/$as_mkdir_dir
15449 test -d "$as_incr_dir" ||
15450 mkdir "$as_incr_dir" ||
15451 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
15452 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
15453 { (exit 1); exit 1; }; }
15455 esac
15456 done; }
15458 rm -f $ac_file
15459 mv $tmp/config.h $ac_file
15461 else
15462 cat $tmp/config.h
15463 rm -f $tmp/config.h
15465 done
15466 _ACEOF
15467 cat >>$CONFIG_STATUS <<\_ACEOF
15470 # CONFIG_COMMANDS section.
15472 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15473 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15474 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15475 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15476 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15477 X"$ac_dest" : 'X\(//\)[^/]' \| \
15478 X"$ac_dest" : 'X\(//\)$' \| \
15479 X"$ac_dest" : 'X\(/\)' \| \
15480 . : '\(.\)' 2>/dev/null ||
15481 echo X"$ac_dest" |
15482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15483 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15484 /^X\(\/\/\)$/{ s//\1/; q; }
15485 /^X\(\/\).*/{ s//\1/; q; }
15486 s/.*/./; q'`
15487 ac_builddir=.
15489 if test "$ac_dir" != .; then
15490 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15491 # A "../" for each directory in $ac_dir_suffix.
15492 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15493 else
15494 ac_dir_suffix= ac_top_builddir=
15497 case $srcdir in
15498 .) # No --srcdir option. We are building in place.
15499 ac_srcdir=.
15500 if test -z "$ac_top_builddir"; then
15501 ac_top_srcdir=.
15502 else
15503 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15504 fi ;;
15505 [\\/]* | ?:[\\/]* ) # Absolute path.
15506 ac_srcdir=$srcdir$ac_dir_suffix;
15507 ac_top_srcdir=$srcdir ;;
15508 *) # Relative path.
15509 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15510 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15511 esac
15512 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15513 # absolute.
15514 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
15515 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
15516 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15517 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
15520 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15521 echo "$as_me: executing $ac_dest commands" >&6;}
15522 case $ac_dest in
15523 controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
15524 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
15525 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
15526 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
15527 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
15528 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
15529 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
15530 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
15531 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
15532 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
15533 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
15534 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
15535 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
15536 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
15537 dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
15538 echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
15539 dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
15540 echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
15541 dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
15542 echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
15543 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
15544 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
15545 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
15546 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
15547 dlls/gdi/win16drv ) test -d "dlls/gdi/win16drv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/win16drv" >&5
15548 echo "$as_me: creating dlls/gdi/win16drv" >&6;} && mkdir "dlls/gdi/win16drv") ;;
15549 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
15550 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
15551 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
15552 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
15553 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
15554 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
15555 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
15556 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
15557 files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
15558 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
15559 graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
15560 echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
15561 graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
15562 echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
15563 if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5
15564 echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;;
15565 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
15566 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
15567 loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5
15568 echo "$as_me: creating loader" >&6;} && mkdir "loader") ;;
15569 loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5
15570 echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;;
15571 memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5
15572 echo "$as_me: creating memory" >&6;} && mkdir "memory") ;;
15573 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
15574 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
15575 msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5
15576 echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;;
15577 objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
15578 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
15579 programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
15580 echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
15581 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
15582 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
15583 programs/winetest/tests ) test -d "programs/winetest/tests" || ({ echo "$as_me:$LINENO: creating programs/winetest/tests" >&5
15584 echo "$as_me: creating programs/winetest/tests" >&6;} && mkdir "programs/winetest/tests") ;;
15585 relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5
15586 echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;;
15587 scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5
15588 echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;;
15589 win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5
15590 echo "$as_me: creating win32" >&6;} && mkdir "win32") ;;
15591 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
15592 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
15593 esac
15594 done
15595 _ACEOF
15597 cat >>$CONFIG_STATUS <<\_ACEOF
15599 { (exit 0); exit 0; }
15600 _ACEOF
15601 chmod +x $CONFIG_STATUS
15602 ac_clean_files=$ac_clean_files_save
15605 # configure is writing to config.log, and then calls config.status.
15606 # config.status does its own redirection, appending to config.log.
15607 # Unfortunately, on DOS this fails, as config.log is still kept open
15608 # by configure, so config.status won't be able to write to it; its
15609 # output is simply discarded. So we exec the FD to /dev/null,
15610 # effectively closing config.log, so it can be properly (re)opened and
15611 # appended to by config.status. When coming back to configure, we
15612 # need to make the FD available again.
15613 if test "$no_create" != yes; then
15614 ac_cs_success=:
15615 exec 5>/dev/null
15616 $SHELL $CONFIG_STATUS || ac_cs_success=false
15617 exec 5>>config.log
15618 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15619 # would make configure fail if this is the last instruction.
15620 $ac_cs_success || { (exit 1); exit 1; }
15624 if test "$have_x" = "no"
15625 then
15626 echo
15627 echo "*** Warning: X development files not found. Wine will be built without"
15628 echo "*** X support, which currently does not work, and would probably not be"
15629 echo "*** what you want anyway. You will need to install devel packages of"
15630 echo "*** Xlib/Xfree86 at the very least."
15633 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
15634 then
15635 echo
15636 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
15637 echo "*** terminal resize support. Consider upgrading ncurses."
15640 if test "$wine_cv_libc_reentrant" = "no"
15641 then
15642 echo
15643 echo "*** Warning: non-reentrant libc detected. Wine will be built without"
15644 echo "*** threading support. Consider upgrading libc to a more recent"
15645 echo "*** reentrant version of libc."
15648 if test "$have_x" = "yes" -a "$wine_cv_x_reentrant" != "yes"
15649 then
15650 echo
15651 echo "*** Warning: non-reentrant X11 library detected. Multi-threaded"
15652 echo "*** applications won't work properly. You should upgrade your X11 library."
15655 if test "$wine_cv_opengl_version_OK" = "no"
15656 then
15657 echo
15658 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
15659 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
15662 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "x"
15663 then
15664 echo
15665 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
15666 echo "*** thread-safety. To prevent crashes, OpenGL support has been disabled."
15667 echo "*** A fix for glibc 2.1.3 that seems to work is included in this version of Wine,"
15668 echo "*** start configure with '--enable-opengl' to force OpenGL support."
15671 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "xyes"
15672 then
15673 echo
15674 echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you"
15675 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
15676 echo "*** support before reporting bugs."
15679 if test "$wine_cv_warn_cups_h" = "yes"
15680 then
15681 echo
15682 echo "*** Note: You have cups runtime libraries, but no development"
15683 echo "*** libraries. Install the cups-devel package or whichever package"
15684 echo "*** contains cups.h to enable CUPS support in Wine."
15687 if test "$wine_cv_msg_freetype" = "yes"
15688 then
15689 echo
15690 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
15691 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
15692 echo "*** freetype-devel package (or its equivalent on your distribution) to"
15693 echo "*** enable Wine to use TrueType fonts."
15696 echo
15697 echo "Configure finished. Do 'make depend && make' to compile Wine."
15698 echo