Implemented overlapped WSARecvFrom(), WSASendTo(), and
[wine/hacks.git] / configure
blob669a0863651bb50fe9b6ed94f638992e592d5719
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for Wine 20020411.
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='20020411'
258 PACKAGE_STRING='Wine 20020411'
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 20020411 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 --target=TARGET configure for building compilers for TARGET [HOST]
824 _ACEOF
827 if test -n "$ac_init_help"; then
828 case $ac_init_help in
829 short | recursive ) echo "Configuration of Wine 20020411:";;
830 esac
831 cat <<\_ACEOF
833 Optional Features:
834 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
835 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
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-x use the X Window System
847 Some influential environment variables:
848 CC C compiler command
849 CFLAGS C compiler flags
850 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
851 nonstandard directory <lib dir>
852 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
853 headers in a nonstandard directory <include dir>
854 CPP C preprocessor
856 Use these variables to override the choices made by `configure' or to help
857 it to find libraries and programs with nonstandard names/locations.
859 _ACEOF
862 if test "$ac_init_help" = "recursive"; then
863 # If there are subdirs, report their specific --help.
864 ac_popdir=`pwd`
865 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
866 test -d $ac_dir || continue
867 ac_builddir=.
869 if test "$ac_dir" != .; then
870 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
871 # A "../" for each directory in $ac_dir_suffix.
872 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
873 else
874 ac_dir_suffix= ac_top_builddir=
877 case $srcdir in
878 .) # No --srcdir option. We are building in place.
879 ac_srcdir=.
880 if test -z "$ac_top_builddir"; then
881 ac_top_srcdir=.
882 else
883 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
884 fi ;;
885 [\\/]* | ?:[\\/]* ) # Absolute path.
886 ac_srcdir=$srcdir$ac_dir_suffix;
887 ac_top_srcdir=$srcdir ;;
888 *) # Relative path.
889 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
890 ac_top_srcdir=$ac_top_builddir$srcdir ;;
891 esac
892 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
893 # absolute.
894 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
895 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
896 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
897 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
899 cd $ac_dir
900 # Check for guested configure; otherwise get Cygnus style configure.
901 if test -f $ac_srcdir/configure.gnu; then
902 echo
903 $SHELL $ac_srcdir/configure.gnu --help=recursive
904 elif test -f $ac_srcdir/configure; then
905 echo
906 $SHELL $ac_srcdir/configure --help=recursive
907 elif test -f $ac_srcdir/configure.ac ||
908 test -f $ac_srcdir/configure.in; then
909 echo
910 $ac_configure --help
911 else
912 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
914 cd $ac_popdir
915 done
918 test -n "$ac_init_help" && exit 0
919 if $ac_init_version; then
920 cat <<\_ACEOF
921 Wine configure 20020411
922 generated by GNU Autoconf 2.53
924 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
925 Free Software Foundation, Inc.
926 This configure script is free software; the Free Software Foundation
927 gives unlimited permission to copy, distribute and modify it.
928 _ACEOF
929 exit 0
931 exec 5>config.log
932 cat >&5 <<_ACEOF
933 This file contains any messages produced by compilers while
934 running configure, to aid debugging if configure makes a mistake.
936 It was created by Wine $as_me 20020411, which was
937 generated by GNU Autoconf 2.53. Invocation command line was
939 $ $0 $@
941 _ACEOF
943 cat <<_ASUNAME
944 ## --------- ##
945 ## Platform. ##
946 ## --------- ##
948 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
949 uname -m = `(uname -m) 2>/dev/null || echo unknown`
950 uname -r = `(uname -r) 2>/dev/null || echo unknown`
951 uname -s = `(uname -s) 2>/dev/null || echo unknown`
952 uname -v = `(uname -v) 2>/dev/null || echo unknown`
954 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
955 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
957 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
958 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
959 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
960 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
961 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
962 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
963 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
965 _ASUNAME
967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
968 for as_dir in $PATH
970 IFS=$as_save_IFS
971 test -z "$as_dir" && as_dir=.
972 echo "PATH: $as_dir"
973 done
975 } >&5
977 cat >&5 <<_ACEOF
980 ## ----------- ##
981 ## Core tests. ##
982 ## ----------- ##
984 _ACEOF
987 # Keep a trace of the command line.
988 # Strip out --no-create and --no-recursion so they do not pile up.
989 # Also quote any args containing shell meta-characters.
990 ac_configure_args=
991 ac_sep=
992 for ac_arg
994 case $ac_arg in
995 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
996 | --no-cr | --no-c | -n ) continue ;;
997 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999 continue ;;
1000 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1001 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1002 esac
1003 case " $ac_configure_args " in
1004 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1005 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1006 ac_sep=" " ;;
1007 esac
1008 # Get rid of the leading space.
1009 done
1011 # When interrupted or exit'd, cleanup temporary files, and complete
1012 # config.log. We remove comments because anyway the quotes in there
1013 # would cause problems or look ugly.
1014 # WARNING: Be sure not to use single quotes in there, as some shells,
1015 # such as our DU 5.0 friend, will then `close' the trap.
1016 trap 'exit_status=$?
1017 # Save into config.log some information that might help in debugging.
1019 echo
1020 cat <<\_ASBOX
1021 ## ---------------- ##
1022 ## Cache variables. ##
1023 ## ---------------- ##
1024 _ASBOX
1025 echo
1026 # The following way of writing the cache mishandles newlines in values,
1028 (set) 2>&1 |
1029 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1030 *ac_space=\ *)
1031 sed -n \
1032 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1033 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1036 sed -n \
1037 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1039 esac;
1041 echo
1042 if test -s confdefs.h; then
1043 cat <<\_ASBOX
1044 ## ----------- ##
1045 ## confdefs.h. ##
1046 ## ----------- ##
1047 _ASBOX
1048 echo
1049 sed "/^$/d" confdefs.h
1050 echo
1052 test "$ac_signal" != 0 &&
1053 echo "$as_me: caught signal $ac_signal"
1054 echo "$as_me: exit $exit_status"
1055 } >&5
1056 rm -f core core.* *.core &&
1057 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1058 exit $exit_status
1060 for ac_signal in 1 2 13 15; do
1061 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1062 done
1063 ac_signal=0
1065 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1066 rm -rf conftest* confdefs.h
1067 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1068 echo >confdefs.h
1070 # Predefined preprocessor variables.
1072 cat >>confdefs.h <<_ACEOF
1073 #define PACKAGE_NAME "$PACKAGE_NAME"
1074 _ACEOF
1077 cat >>confdefs.h <<_ACEOF
1078 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1079 _ACEOF
1082 cat >>confdefs.h <<_ACEOF
1083 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1084 _ACEOF
1087 cat >>confdefs.h <<_ACEOF
1088 #define PACKAGE_STRING "$PACKAGE_STRING"
1089 _ACEOF
1092 cat >>confdefs.h <<_ACEOF
1093 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1094 _ACEOF
1097 # Let the site file select an alternate cache file if it wants to.
1098 # Prefer explicitly selected file to automatically selected ones.
1099 if test -z "$CONFIG_SITE"; then
1100 if test "x$prefix" != xNONE; then
1101 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1102 else
1103 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1106 for ac_site_file in $CONFIG_SITE; do
1107 if test -r "$ac_site_file"; then
1108 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1109 echo "$as_me: loading site script $ac_site_file" >&6;}
1110 sed 's/^/| /' "$ac_site_file" >&5
1111 . "$ac_site_file"
1113 done
1115 if test -r "$cache_file"; then
1116 # Some versions of bash will fail to source /dev/null (special
1117 # files actually), so we avoid doing that.
1118 if test -f "$cache_file"; then
1119 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1120 echo "$as_me: loading cache $cache_file" >&6;}
1121 case $cache_file in
1122 [\\/]* | ?:[\\/]* ) . $cache_file;;
1123 *) . ./$cache_file;;
1124 esac
1126 else
1127 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1128 echo "$as_me: creating cache $cache_file" >&6;}
1129 >$cache_file
1132 # Check that the precious variables saved in the cache have kept the same
1133 # value.
1134 ac_cache_corrupted=false
1135 for ac_var in `(set) 2>&1 |
1136 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1137 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1138 eval ac_new_set=\$ac_env_${ac_var}_set
1139 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1140 eval ac_new_val="\$ac_env_${ac_var}_value"
1141 case $ac_old_set,$ac_new_set in
1142 set,)
1143 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1144 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1145 ac_cache_corrupted=: ;;
1146 ,set)
1147 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1148 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1149 ac_cache_corrupted=: ;;
1150 ,);;
1152 if test "x$ac_old_val" != "x$ac_new_val"; then
1153 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1154 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1155 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1156 echo "$as_me: former value: $ac_old_val" >&2;}
1157 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1158 echo "$as_me: current value: $ac_new_val" >&2;}
1159 ac_cache_corrupted=:
1160 fi;;
1161 esac
1162 # Pass precious variables to config.status.
1163 if test "$ac_new_set" = set; then
1164 case $ac_new_val in
1165 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1166 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1167 *) ac_arg=$ac_var=$ac_new_val ;;
1168 esac
1169 case " $ac_configure_args " in
1170 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1171 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1172 esac
1174 done
1175 if $ac_cache_corrupted; then
1176 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1177 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1178 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1179 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1180 { (exit 1); exit 1; }; }
1183 ac_ext=c
1184 ac_cpp='$CPP $CPPFLAGS'
1185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1215 ac_config_headers="$ac_config_headers include/config.h"
1217 ac_aux_dir=
1218 for ac_dir in tools $srcdir/tools; do
1219 if test -f $ac_dir/install-sh; then
1220 ac_aux_dir=$ac_dir
1221 ac_install_sh="$ac_aux_dir/install-sh -c"
1222 break
1223 elif test -f $ac_dir/install.sh; then
1224 ac_aux_dir=$ac_dir
1225 ac_install_sh="$ac_aux_dir/install.sh -c"
1226 break
1227 elif test -f $ac_dir/shtool; then
1228 ac_aux_dir=$ac_dir
1229 ac_install_sh="$ac_aux_dir/shtool install -c"
1230 break
1232 done
1233 if test -z "$ac_aux_dir"; then
1234 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1235 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1236 { (exit 1); exit 1; }; }
1238 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1239 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1240 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1244 LIBEXT=so # library type .so or .a
1246 # Check whether --enable-debug or --disable-debug was given.
1247 if test "${enable_debug+set}" = set; then
1248 enableval="$enable_debug"
1251 # Check whether --enable-trace or --disable-trace was given.
1252 if test "${enable_trace+set}" = set; then
1253 enableval="$enable_trace"
1256 # Check whether --enable-opengl or --disable-opengl was given.
1257 if test "${enable_opengl+set}" = set; then
1258 enableval="$enable_opengl"
1262 # Check whether --with-curses or --without-curses was given.
1263 if test "${with_curses+set}" = set; then
1264 withval="$with_curses"
1269 if test "x$enable_debug" = "xno"
1270 then
1272 cat >>confdefs.h <<\_ACEOF
1273 #define NO_DEBUG_MSGS 1
1274 _ACEOF
1277 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1278 then
1280 cat >>confdefs.h <<\_ACEOF
1281 #define NO_TRACE_MSGS 1
1282 _ACEOF
1287 # Make sure we can run config.sub.
1288 $ac_config_sub sun4 >/dev/null 2>&1 ||
1289 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1290 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1291 { (exit 1); exit 1; }; }
1293 echo "$as_me:$LINENO: checking build system type" >&5
1294 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1295 if test "${ac_cv_build+set}" = set; then
1296 echo $ECHO_N "(cached) $ECHO_C" >&6
1297 else
1298 ac_cv_build_alias=$build_alias
1299 test -z "$ac_cv_build_alias" &&
1300 ac_cv_build_alias=`$ac_config_guess`
1301 test -z "$ac_cv_build_alias" &&
1302 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1303 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1304 { (exit 1); exit 1; }; }
1305 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1306 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1307 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1308 { (exit 1); exit 1; }; }
1311 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1312 echo "${ECHO_T}$ac_cv_build" >&6
1313 build=$ac_cv_build
1314 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1315 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1316 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1319 echo "$as_me:$LINENO: checking host system type" >&5
1320 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1321 if test "${ac_cv_host+set}" = set; then
1322 echo $ECHO_N "(cached) $ECHO_C" >&6
1323 else
1324 ac_cv_host_alias=$host_alias
1325 test -z "$ac_cv_host_alias" &&
1326 ac_cv_host_alias=$ac_cv_build_alias
1327 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1328 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1329 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1330 { (exit 1); exit 1; }; }
1333 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1334 echo "${ECHO_T}$ac_cv_host" >&6
1335 host=$ac_cv_host
1336 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1337 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1338 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1341 echo "$as_me:$LINENO: checking target system type" >&5
1342 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1343 if test "${ac_cv_target+set}" = set; then
1344 echo $ECHO_N "(cached) $ECHO_C" >&6
1345 else
1346 ac_cv_target_alias=$target_alias
1347 test "x$ac_cv_target_alias" = "x" &&
1348 ac_cv_target_alias=$ac_cv_host_alias
1349 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1350 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1351 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1352 { (exit 1); exit 1; }; }
1355 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1356 echo "${ECHO_T}$ac_cv_target" >&6
1357 target=$ac_cv_target
1358 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1359 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1360 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1363 # The aliases save the names the user supplied, while $host etc.
1364 # will get canonicalized.
1365 test -n "$target_alias" &&
1366 test "$program_prefix$program_suffix$program_transform_name" = \
1367 NONENONEs,x,x, &&
1368 program_prefix=${target_alias}-
1369 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1370 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1371 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1372 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1373 echo $ECHO_N "(cached) $ECHO_C" >&6
1374 else
1375 cat >conftest.make <<\_ACEOF
1376 all:
1377 @echo 'ac_maketemp="${MAKE}"'
1378 _ACEOF
1379 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1380 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1381 if test -n "$ac_maketemp"; then
1382 eval ac_cv_prog_make_${ac_make}_set=yes
1383 else
1384 eval ac_cv_prog_make_${ac_make}_set=no
1386 rm -f conftest.make
1388 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1389 echo "$as_me:$LINENO: result: yes" >&5
1390 echo "${ECHO_T}yes" >&6
1391 SET_MAKE=
1392 else
1393 echo "$as_me:$LINENO: result: no" >&5
1394 echo "${ECHO_T}no" >&6
1395 SET_MAKE="MAKE=${MAKE-make}"
1398 ac_ext=c
1399 ac_cpp='$CPP $CPPFLAGS'
1400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1403 if test -n "$ac_tool_prefix"; then
1404 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1405 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1406 echo "$as_me:$LINENO: checking for $ac_word" >&5
1407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1408 if test "${ac_cv_prog_CC+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1410 else
1411 if test -n "$CC"; then
1412 ac_cv_prog_CC="$CC" # Let the user override the test.
1413 else
1414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1415 for as_dir in $PATH
1417 IFS=$as_save_IFS
1418 test -z "$as_dir" && as_dir=.
1419 for ac_exec_ext in '' $ac_executable_extensions; do
1420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1421 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1423 break 2
1425 done
1426 done
1430 CC=$ac_cv_prog_CC
1431 if test -n "$CC"; then
1432 echo "$as_me:$LINENO: result: $CC" >&5
1433 echo "${ECHO_T}$CC" >&6
1434 else
1435 echo "$as_me:$LINENO: result: no" >&5
1436 echo "${ECHO_T}no" >&6
1440 if test -z "$ac_cv_prog_CC"; then
1441 ac_ct_CC=$CC
1442 # Extract the first word of "gcc", so it can be a program name with args.
1443 set dummy gcc; ac_word=$2
1444 echo "$as_me:$LINENO: checking for $ac_word" >&5
1445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1446 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1447 echo $ECHO_N "(cached) $ECHO_C" >&6
1448 else
1449 if test -n "$ac_ct_CC"; then
1450 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1451 else
1452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1453 for as_dir in $PATH
1455 IFS=$as_save_IFS
1456 test -z "$as_dir" && as_dir=.
1457 for ac_exec_ext in '' $ac_executable_extensions; do
1458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1459 ac_cv_prog_ac_ct_CC="gcc"
1460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1461 break 2
1463 done
1464 done
1468 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1469 if test -n "$ac_ct_CC"; then
1470 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1471 echo "${ECHO_T}$ac_ct_CC" >&6
1472 else
1473 echo "$as_me:$LINENO: result: no" >&5
1474 echo "${ECHO_T}no" >&6
1477 CC=$ac_ct_CC
1478 else
1479 CC="$ac_cv_prog_CC"
1482 if test -z "$CC"; then
1483 if test -n "$ac_tool_prefix"; then
1484 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1485 set dummy ${ac_tool_prefix}cc; ac_word=$2
1486 echo "$as_me:$LINENO: checking for $ac_word" >&5
1487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1488 if test "${ac_cv_prog_CC+set}" = set; then
1489 echo $ECHO_N "(cached) $ECHO_C" >&6
1490 else
1491 if test -n "$CC"; then
1492 ac_cv_prog_CC="$CC" # Let the user override the test.
1493 else
1494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1495 for as_dir in $PATH
1497 IFS=$as_save_IFS
1498 test -z "$as_dir" && as_dir=.
1499 for ac_exec_ext in '' $ac_executable_extensions; do
1500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1501 ac_cv_prog_CC="${ac_tool_prefix}cc"
1502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1503 break 2
1505 done
1506 done
1510 CC=$ac_cv_prog_CC
1511 if test -n "$CC"; then
1512 echo "$as_me:$LINENO: result: $CC" >&5
1513 echo "${ECHO_T}$CC" >&6
1514 else
1515 echo "$as_me:$LINENO: result: no" >&5
1516 echo "${ECHO_T}no" >&6
1520 if test -z "$ac_cv_prog_CC"; then
1521 ac_ct_CC=$CC
1522 # Extract the first word of "cc", so it can be a program name with args.
1523 set dummy cc; ac_word=$2
1524 echo "$as_me:$LINENO: checking for $ac_word" >&5
1525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1526 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1528 else
1529 if test -n "$ac_ct_CC"; then
1530 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1531 else
1532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1533 for as_dir in $PATH
1535 IFS=$as_save_IFS
1536 test -z "$as_dir" && as_dir=.
1537 for ac_exec_ext in '' $ac_executable_extensions; do
1538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1539 ac_cv_prog_ac_ct_CC="cc"
1540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1541 break 2
1543 done
1544 done
1548 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1549 if test -n "$ac_ct_CC"; then
1550 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1551 echo "${ECHO_T}$ac_ct_CC" >&6
1552 else
1553 echo "$as_me:$LINENO: result: no" >&5
1554 echo "${ECHO_T}no" >&6
1557 CC=$ac_ct_CC
1558 else
1559 CC="$ac_cv_prog_CC"
1563 if test -z "$CC"; then
1564 # Extract the first word of "cc", so it can be a program name with args.
1565 set dummy cc; ac_word=$2
1566 echo "$as_me:$LINENO: checking for $ac_word" >&5
1567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1568 if test "${ac_cv_prog_CC+set}" = set; then
1569 echo $ECHO_N "(cached) $ECHO_C" >&6
1570 else
1571 if test -n "$CC"; then
1572 ac_cv_prog_CC="$CC" # Let the user override the test.
1573 else
1574 ac_prog_rejected=no
1575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576 for as_dir in $PATH
1578 IFS=$as_save_IFS
1579 test -z "$as_dir" && as_dir=.
1580 for ac_exec_ext in '' $ac_executable_extensions; do
1581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1582 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1583 ac_prog_rejected=yes
1584 continue
1586 ac_cv_prog_CC="cc"
1587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1588 break 2
1590 done
1591 done
1593 if test $ac_prog_rejected = yes; then
1594 # We found a bogon in the path, so make sure we never use it.
1595 set dummy $ac_cv_prog_CC
1596 shift
1597 if test $# != 0; then
1598 # We chose a different compiler from the bogus one.
1599 # However, it has the same basename, so the bogon will be chosen
1600 # first if we set CC to just the basename; use the full file name.
1601 shift
1602 set dummy "$as_dir/$ac_word" ${1+"$@"}
1603 shift
1604 ac_cv_prog_CC="$@"
1609 CC=$ac_cv_prog_CC
1610 if test -n "$CC"; then
1611 echo "$as_me:$LINENO: result: $CC" >&5
1612 echo "${ECHO_T}$CC" >&6
1613 else
1614 echo "$as_me:$LINENO: result: no" >&5
1615 echo "${ECHO_T}no" >&6
1619 if test -z "$CC"; then
1620 if test -n "$ac_tool_prefix"; then
1621 for ac_prog in cl
1623 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1624 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1625 echo "$as_me:$LINENO: checking for $ac_word" >&5
1626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1627 if test "${ac_cv_prog_CC+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1629 else
1630 if test -n "$CC"; then
1631 ac_cv_prog_CC="$CC" # Let the user override the test.
1632 else
1633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1634 for as_dir in $PATH
1636 IFS=$as_save_IFS
1637 test -z "$as_dir" && as_dir=.
1638 for ac_exec_ext in '' $ac_executable_extensions; do
1639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1640 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1642 break 2
1644 done
1645 done
1649 CC=$ac_cv_prog_CC
1650 if test -n "$CC"; then
1651 echo "$as_me:$LINENO: result: $CC" >&5
1652 echo "${ECHO_T}$CC" >&6
1653 else
1654 echo "$as_me:$LINENO: result: no" >&5
1655 echo "${ECHO_T}no" >&6
1658 test -n "$CC" && break
1659 done
1661 if test -z "$CC"; then
1662 ac_ct_CC=$CC
1663 for ac_prog in cl
1665 # Extract the first word of "$ac_prog", so it can be a program name with args.
1666 set dummy $ac_prog; ac_word=$2
1667 echo "$as_me:$LINENO: checking for $ac_word" >&5
1668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1669 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1670 echo $ECHO_N "(cached) $ECHO_C" >&6
1671 else
1672 if test -n "$ac_ct_CC"; then
1673 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1674 else
1675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1676 for as_dir in $PATH
1678 IFS=$as_save_IFS
1679 test -z "$as_dir" && as_dir=.
1680 for ac_exec_ext in '' $ac_executable_extensions; do
1681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1682 ac_cv_prog_ac_ct_CC="$ac_prog"
1683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1684 break 2
1686 done
1687 done
1691 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1692 if test -n "$ac_ct_CC"; then
1693 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1694 echo "${ECHO_T}$ac_ct_CC" >&6
1695 else
1696 echo "$as_me:$LINENO: result: no" >&5
1697 echo "${ECHO_T}no" >&6
1700 test -n "$ac_ct_CC" && break
1701 done
1703 CC=$ac_ct_CC
1709 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1710 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1711 { (exit 1); exit 1; }; }
1713 # Provide some information about the compiler.
1714 echo "$as_me:$LINENO:" \
1715 "checking for C compiler version" >&5
1716 ac_compiler=`set X $ac_compile; echo $2`
1717 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1718 (eval $ac_compiler --version </dev/null >&5) 2>&5
1719 ac_status=$?
1720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1721 (exit $ac_status); }
1722 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1723 (eval $ac_compiler -v </dev/null >&5) 2>&5
1724 ac_status=$?
1725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1726 (exit $ac_status); }
1727 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1728 (eval $ac_compiler -V </dev/null >&5) 2>&5
1729 ac_status=$?
1730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1731 (exit $ac_status); }
1733 cat >conftest.$ac_ext <<_ACEOF
1734 #line $LINENO "configure"
1735 #include "confdefs.h"
1737 #ifdef F77_DUMMY_MAIN
1738 # ifdef __cplusplus
1739 extern "C"
1740 # endif
1741 int F77_DUMMY_MAIN() { return 1; }
1742 #endif
1744 main ()
1748 return 0;
1750 _ACEOF
1751 ac_clean_files_save=$ac_clean_files
1752 ac_clean_files="$ac_clean_files a.out a.exe"
1753 # Try to create an executable without -o first, disregard a.out.
1754 # It will help us diagnose broken compilers, and finding out an intuition
1755 # of exeext.
1756 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1757 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1758 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1759 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1760 (eval $ac_link_default) 2>&5
1761 ac_status=$?
1762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1763 (exit $ac_status); }; then
1764 # Find the output, starting from the most likely. This scheme is
1765 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1766 # resort.
1768 # Be careful to initialize this variable, since it used to be cached.
1769 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1770 ac_cv_exeext=
1771 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1772 ls a.out conftest 2>/dev/null;
1773 ls a.* conftest.* 2>/dev/null`; do
1774 case $ac_file in
1775 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1776 a.out ) # We found the default executable, but exeext='' is most
1777 # certainly right.
1778 break;;
1779 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1780 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1781 export ac_cv_exeext
1782 break;;
1783 * ) break;;
1784 esac
1785 done
1786 else
1787 echo "$as_me: failed program was:" >&5
1788 cat conftest.$ac_ext >&5
1789 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1790 echo "$as_me: error: C compiler cannot create executables" >&2;}
1791 { (exit 77); exit 77; }; }
1794 ac_exeext=$ac_cv_exeext
1795 echo "$as_me:$LINENO: result: $ac_file" >&5
1796 echo "${ECHO_T}$ac_file" >&6
1798 # Check the compiler produces executables we can run. If not, either
1799 # the compiler is broken, or we cross compile.
1800 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1801 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1802 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1803 # If not cross compiling, check that we can run a simple program.
1804 if test "$cross_compiling" != yes; then
1805 if { ac_try='./$ac_file'
1806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1807 (eval $ac_try) 2>&5
1808 ac_status=$?
1809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1810 (exit $ac_status); }; }; then
1811 cross_compiling=no
1812 else
1813 if test "$cross_compiling" = maybe; then
1814 cross_compiling=yes
1815 else
1816 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1817 If you meant to cross compile, use \`--host'." >&5
1818 echo "$as_me: error: cannot run C compiled programs.
1819 If you meant to cross compile, use \`--host'." >&2;}
1820 { (exit 1); exit 1; }; }
1824 echo "$as_me:$LINENO: result: yes" >&5
1825 echo "${ECHO_T}yes" >&6
1827 rm -f a.out a.exe conftest$ac_cv_exeext
1828 ac_clean_files=$ac_clean_files_save
1829 # Check the compiler produces executables we can run. If not, either
1830 # the compiler is broken, or we cross compile.
1831 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1832 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1833 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1834 echo "${ECHO_T}$cross_compiling" >&6
1836 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1837 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1839 (eval $ac_link) 2>&5
1840 ac_status=$?
1841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1842 (exit $ac_status); }; then
1843 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1844 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1845 # work properly (i.e., refer to `conftest.exe'), while it won't with
1846 # `rm'.
1847 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1848 case $ac_file in
1849 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1850 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1851 export ac_cv_exeext
1852 break;;
1853 * ) break;;
1854 esac
1855 done
1856 else
1857 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1858 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1859 { (exit 1); exit 1; }; }
1862 rm -f conftest$ac_cv_exeext
1863 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1864 echo "${ECHO_T}$ac_cv_exeext" >&6
1866 rm -f conftest.$ac_ext
1867 EXEEXT=$ac_cv_exeext
1868 ac_exeext=$EXEEXT
1869 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1870 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1871 if test "${ac_cv_objext+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1873 else
1874 cat >conftest.$ac_ext <<_ACEOF
1875 #line $LINENO "configure"
1876 #include "confdefs.h"
1878 #ifdef F77_DUMMY_MAIN
1879 # ifdef __cplusplus
1880 extern "C"
1881 # endif
1882 int F77_DUMMY_MAIN() { return 1; }
1883 #endif
1885 main ()
1889 return 0;
1891 _ACEOF
1892 rm -f conftest.o conftest.obj
1893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1894 (eval $ac_compile) 2>&5
1895 ac_status=$?
1896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1897 (exit $ac_status); }; then
1898 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1899 case $ac_file in
1900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1901 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1902 break;;
1903 esac
1904 done
1905 else
1906 echo "$as_me: failed program was:" >&5
1907 cat conftest.$ac_ext >&5
1908 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1909 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1910 { (exit 1); exit 1; }; }
1913 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1915 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1916 echo "${ECHO_T}$ac_cv_objext" >&6
1917 OBJEXT=$ac_cv_objext
1918 ac_objext=$OBJEXT
1919 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1920 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1921 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1923 else
1924 cat >conftest.$ac_ext <<_ACEOF
1925 #line $LINENO "configure"
1926 #include "confdefs.h"
1928 #ifdef F77_DUMMY_MAIN
1929 # ifdef __cplusplus
1930 extern "C"
1931 # endif
1932 int F77_DUMMY_MAIN() { return 1; }
1933 #endif
1935 main ()
1937 #ifndef __GNUC__
1938 choke me
1939 #endif
1942 return 0;
1944 _ACEOF
1945 rm -f conftest.$ac_objext
1946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1947 (eval $ac_compile) 2>&5
1948 ac_status=$?
1949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950 (exit $ac_status); } &&
1951 { ac_try='test -s conftest.$ac_objext'
1952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1953 (eval $ac_try) 2>&5
1954 ac_status=$?
1955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956 (exit $ac_status); }; }; then
1957 ac_compiler_gnu=yes
1958 else
1959 echo "$as_me: failed program was:" >&5
1960 cat conftest.$ac_ext >&5
1961 ac_compiler_gnu=no
1963 rm -f conftest.$ac_objext conftest.$ac_ext
1964 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1967 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1968 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1969 GCC=`test $ac_compiler_gnu = yes && echo yes`
1970 ac_test_CFLAGS=${CFLAGS+set}
1971 ac_save_CFLAGS=$CFLAGS
1972 CFLAGS="-g"
1973 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1974 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1975 if test "${ac_cv_prog_cc_g+set}" = set; then
1976 echo $ECHO_N "(cached) $ECHO_C" >&6
1977 else
1978 cat >conftest.$ac_ext <<_ACEOF
1979 #line $LINENO "configure"
1980 #include "confdefs.h"
1982 #ifdef F77_DUMMY_MAIN
1983 # ifdef __cplusplus
1984 extern "C"
1985 # endif
1986 int F77_DUMMY_MAIN() { return 1; }
1987 #endif
1989 main ()
1993 return 0;
1995 _ACEOF
1996 rm -f conftest.$ac_objext
1997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1998 (eval $ac_compile) 2>&5
1999 ac_status=$?
2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 (exit $ac_status); } &&
2002 { ac_try='test -s conftest.$ac_objext'
2003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2004 (eval $ac_try) 2>&5
2005 ac_status=$?
2006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007 (exit $ac_status); }; }; then
2008 ac_cv_prog_cc_g=yes
2009 else
2010 echo "$as_me: failed program was:" >&5
2011 cat conftest.$ac_ext >&5
2012 ac_cv_prog_cc_g=no
2014 rm -f conftest.$ac_objext conftest.$ac_ext
2016 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2017 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2018 if test "$ac_test_CFLAGS" = set; then
2019 CFLAGS=$ac_save_CFLAGS
2020 elif test $ac_cv_prog_cc_g = yes; then
2021 if test "$GCC" = yes; then
2022 CFLAGS="-g -O2"
2023 else
2024 CFLAGS="-g"
2026 else
2027 if test "$GCC" = yes; then
2028 CFLAGS="-O2"
2029 else
2030 CFLAGS=
2033 # Some people use a C++ compiler to compile C. Since we use `exit',
2034 # in C++ we need to declare it. In case someone uses the same compiler
2035 # for both compiling C and C++ we need to have the C++ compiler decide
2036 # the declaration of exit, since it's the most demanding environment.
2037 cat >conftest.$ac_ext <<_ACEOF
2038 #ifndef __cplusplus
2039 choke me
2040 #endif
2041 _ACEOF
2042 rm -f conftest.$ac_objext
2043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2044 (eval $ac_compile) 2>&5
2045 ac_status=$?
2046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047 (exit $ac_status); } &&
2048 { ac_try='test -s conftest.$ac_objext'
2049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2050 (eval $ac_try) 2>&5
2051 ac_status=$?
2052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053 (exit $ac_status); }; }; then
2054 for ac_declaration in \
2056 '#include <stdlib.h>' \
2057 'extern "C" void std::exit (int) throw (); using std::exit;' \
2058 'extern "C" void std::exit (int); using std::exit;' \
2059 'extern "C" void exit (int) throw ();' \
2060 'extern "C" void exit (int);' \
2061 'void exit (int);'
2063 cat >conftest.$ac_ext <<_ACEOF
2064 #line $LINENO "configure"
2065 #include "confdefs.h"
2066 #include <stdlib.h>
2067 $ac_declaration
2068 #ifdef F77_DUMMY_MAIN
2069 # ifdef __cplusplus
2070 extern "C"
2071 # endif
2072 int F77_DUMMY_MAIN() { return 1; }
2073 #endif
2075 main ()
2077 exit (42);
2079 return 0;
2081 _ACEOF
2082 rm -f conftest.$ac_objext
2083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2084 (eval $ac_compile) 2>&5
2085 ac_status=$?
2086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087 (exit $ac_status); } &&
2088 { ac_try='test -s conftest.$ac_objext'
2089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090 (eval $ac_try) 2>&5
2091 ac_status=$?
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); }; }; then
2095 else
2096 echo "$as_me: failed program was:" >&5
2097 cat conftest.$ac_ext >&5
2098 continue
2100 rm -f conftest.$ac_objext conftest.$ac_ext
2101 cat >conftest.$ac_ext <<_ACEOF
2102 #line $LINENO "configure"
2103 #include "confdefs.h"
2104 $ac_declaration
2105 #ifdef F77_DUMMY_MAIN
2106 # ifdef __cplusplus
2107 extern "C"
2108 # endif
2109 int F77_DUMMY_MAIN() { return 1; }
2110 #endif
2112 main ()
2114 exit (42);
2116 return 0;
2118 _ACEOF
2119 rm -f conftest.$ac_objext
2120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2121 (eval $ac_compile) 2>&5
2122 ac_status=$?
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); } &&
2125 { ac_try='test -s conftest.$ac_objext'
2126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2127 (eval $ac_try) 2>&5
2128 ac_status=$?
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }; }; then
2131 break
2132 else
2133 echo "$as_me: failed program was:" >&5
2134 cat conftest.$ac_ext >&5
2136 rm -f conftest.$ac_objext conftest.$ac_ext
2137 done
2138 rm -f conftest*
2139 if test -n "$ac_declaration"; then
2140 echo '#ifdef __cplusplus' >>confdefs.h
2141 echo $ac_declaration >>confdefs.h
2142 echo '#endif' >>confdefs.h
2145 else
2146 echo "$as_me: failed program was:" >&5
2147 cat conftest.$ac_ext >&5
2149 rm -f conftest.$ac_objext conftest.$ac_ext
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
2156 ac_ext=c
2157 ac_cpp='$CPP $CPPFLAGS'
2158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2161 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2162 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2163 # On Suns, sometimes $CPP names a directory.
2164 if test -n "$CPP" && test -d "$CPP"; then
2165 CPP=
2167 if test -z "$CPP"; then
2168 if test "${ac_cv_prog_CPP+set}" = set; then
2169 echo $ECHO_N "(cached) $ECHO_C" >&6
2170 else
2171 # Double quotes because CPP needs to be expanded
2172 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2174 ac_preproc_ok=false
2175 for ac_c_preproc_warn_flag in '' yes
2177 # Use a header file that comes with gcc, so configuring glibc
2178 # with a fresh cross-compiler works.
2179 # On the NeXT, cc -E runs the code through the compiler's parser,
2180 # not just through cpp. "Syntax error" is here to catch this case.
2181 cat >conftest.$ac_ext <<_ACEOF
2182 #line $LINENO "configure"
2183 #include "confdefs.h"
2184 #include <assert.h>
2185 Syntax error
2186 _ACEOF
2187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2189 ac_status=$?
2190 egrep -v '^ *\+' conftest.er1 >conftest.err
2191 rm -f conftest.er1
2192 cat conftest.err >&5
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); } >/dev/null; then
2195 if test -s conftest.err; then
2196 ac_cpp_err=$ac_c_preproc_warn_flag
2197 else
2198 ac_cpp_err=
2200 else
2201 ac_cpp_err=yes
2203 if test -z "$ac_cpp_err"; then
2205 else
2206 echo "$as_me: failed program was:" >&5
2207 cat conftest.$ac_ext >&5
2208 # Broken: fails on valid input.
2209 continue
2211 rm -f conftest.err conftest.$ac_ext
2213 # OK, works on sane cases. Now check whether non-existent headers
2214 # can be detected and how.
2215 cat >conftest.$ac_ext <<_ACEOF
2216 #line $LINENO "configure"
2217 #include "confdefs.h"
2218 #include <ac_nonexistent.h>
2219 _ACEOF
2220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2222 ac_status=$?
2223 egrep -v '^ *\+' conftest.er1 >conftest.err
2224 rm -f conftest.er1
2225 cat conftest.err >&5
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); } >/dev/null; then
2228 if test -s conftest.err; then
2229 ac_cpp_err=$ac_c_preproc_warn_flag
2230 else
2231 ac_cpp_err=
2233 else
2234 ac_cpp_err=yes
2236 if test -z "$ac_cpp_err"; then
2237 # Broken: success on invalid input.
2238 continue
2239 else
2240 echo "$as_me: failed program was:" >&5
2241 cat conftest.$ac_ext >&5
2242 # Passes both tests.
2243 ac_preproc_ok=:
2244 break
2246 rm -f conftest.err conftest.$ac_ext
2248 done
2249 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2250 rm -f conftest.err conftest.$ac_ext
2251 if $ac_preproc_ok; then
2252 break
2255 done
2256 ac_cv_prog_CPP=$CPP
2259 CPP=$ac_cv_prog_CPP
2260 else
2261 ac_cv_prog_CPP=$CPP
2263 echo "$as_me:$LINENO: result: $CPP" >&5
2264 echo "${ECHO_T}$CPP" >&6
2265 ac_preproc_ok=false
2266 for ac_c_preproc_warn_flag in '' yes
2268 # Use a header file that comes with gcc, so configuring glibc
2269 # with a fresh cross-compiler works.
2270 # On the NeXT, cc -E runs the code through the compiler's parser,
2271 # not just through cpp. "Syntax error" is here to catch this case.
2272 cat >conftest.$ac_ext <<_ACEOF
2273 #line $LINENO "configure"
2274 #include "confdefs.h"
2275 #include <assert.h>
2276 Syntax error
2277 _ACEOF
2278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2280 ac_status=$?
2281 egrep -v '^ *\+' conftest.er1 >conftest.err
2282 rm -f conftest.er1
2283 cat conftest.err >&5
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); } >/dev/null; then
2286 if test -s conftest.err; then
2287 ac_cpp_err=$ac_c_preproc_warn_flag
2288 else
2289 ac_cpp_err=
2291 else
2292 ac_cpp_err=yes
2294 if test -z "$ac_cpp_err"; then
2296 else
2297 echo "$as_me: failed program was:" >&5
2298 cat conftest.$ac_ext >&5
2299 # Broken: fails on valid input.
2300 continue
2302 rm -f conftest.err conftest.$ac_ext
2304 # OK, works on sane cases. Now check whether non-existent headers
2305 # can be detected and how.
2306 cat >conftest.$ac_ext <<_ACEOF
2307 #line $LINENO "configure"
2308 #include "confdefs.h"
2309 #include <ac_nonexistent.h>
2310 _ACEOF
2311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2313 ac_status=$?
2314 egrep -v '^ *\+' conftest.er1 >conftest.err
2315 rm -f conftest.er1
2316 cat conftest.err >&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); } >/dev/null; then
2319 if test -s conftest.err; then
2320 ac_cpp_err=$ac_c_preproc_warn_flag
2321 else
2322 ac_cpp_err=
2324 else
2325 ac_cpp_err=yes
2327 if test -z "$ac_cpp_err"; then
2328 # Broken: success on invalid input.
2329 continue
2330 else
2331 echo "$as_me: failed program was:" >&5
2332 cat conftest.$ac_ext >&5
2333 # Passes both tests.
2334 ac_preproc_ok=:
2335 break
2337 rm -f conftest.err conftest.$ac_ext
2339 done
2340 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2341 rm -f conftest.err conftest.$ac_ext
2342 if $ac_preproc_ok; then
2344 else
2345 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2346 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2347 { (exit 1); exit 1; }; }
2350 ac_ext=c
2351 ac_cpp='$CPP $CPPFLAGS'
2352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2358 echo "$as_me:$LINENO: checking for X" >&5
2359 echo $ECHO_N "checking for X... $ECHO_C" >&6
2362 # Check whether --with-x or --without-x was given.
2363 if test "${with_x+set}" = set; then
2364 withval="$with_x"
2367 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2368 if test "x$with_x" = xno; then
2369 # The user explicitly disabled X.
2370 have_x=disabled
2371 else
2372 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2373 # Both variables are already set.
2374 have_x=yes
2375 else
2376 if test "${ac_cv_have_x+set}" = set; then
2377 echo $ECHO_N "(cached) $ECHO_C" >&6
2378 else
2379 # One or both of the vars are not set, and there is no cached value.
2380 ac_x_includes=no ac_x_libraries=no
2381 rm -fr conftest.dir
2382 if mkdir conftest.dir; then
2383 cd conftest.dir
2384 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2385 cat >Imakefile <<'_ACEOF'
2386 acfindx:
2387 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2388 _ACEOF
2389 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2390 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2391 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2392 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2393 for ac_extension in a so sl; do
2394 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2395 test -f $ac_im_libdir/libX11.$ac_extension; then
2396 ac_im_usrlibdir=$ac_im_libdir; break
2398 done
2399 # Screen out bogus values from the imake configuration. They are
2400 # bogus both because they are the default anyway, and because
2401 # using them would break gcc on systems where it needs fixed includes.
2402 case $ac_im_incroot in
2403 /usr/include) ;;
2404 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2405 esac
2406 case $ac_im_usrlibdir in
2407 /usr/lib | /lib) ;;
2408 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2409 esac
2411 cd ..
2412 rm -fr conftest.dir
2415 # Standard set of common directories for X headers.
2416 # Check X11 before X11Rn because it is often a symlink to the current release.
2417 ac_x_header_dirs='
2418 /usr/X11/include
2419 /usr/X11R6/include
2420 /usr/X11R5/include
2421 /usr/X11R4/include
2423 /usr/include/X11
2424 /usr/include/X11R6
2425 /usr/include/X11R5
2426 /usr/include/X11R4
2428 /usr/local/X11/include
2429 /usr/local/X11R6/include
2430 /usr/local/X11R5/include
2431 /usr/local/X11R4/include
2433 /usr/local/include/X11
2434 /usr/local/include/X11R6
2435 /usr/local/include/X11R5
2436 /usr/local/include/X11R4
2438 /usr/X386/include
2439 /usr/x386/include
2440 /usr/XFree86/include/X11
2442 /usr/include
2443 /usr/local/include
2444 /usr/unsupported/include
2445 /usr/athena/include
2446 /usr/local/x11r5/include
2447 /usr/lpp/Xamples/include
2449 /usr/openwin/include
2450 /usr/openwin/share/include'
2452 if test "$ac_x_includes" = no; then
2453 # Guess where to find include files, by looking for Intrinsic.h.
2454 # First, try using that file with no special directory specified.
2455 cat >conftest.$ac_ext <<_ACEOF
2456 #line $LINENO "configure"
2457 #include "confdefs.h"
2458 #include <X11/Intrinsic.h>
2459 _ACEOF
2460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2462 ac_status=$?
2463 egrep -v '^ *\+' conftest.er1 >conftest.err
2464 rm -f conftest.er1
2465 cat conftest.err >&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); } >/dev/null; then
2468 if test -s conftest.err; then
2469 ac_cpp_err=$ac_c_preproc_warn_flag
2470 else
2471 ac_cpp_err=
2473 else
2474 ac_cpp_err=yes
2476 if test -z "$ac_cpp_err"; then
2477 # We can compile using X headers with no special include directory.
2478 ac_x_includes=
2479 else
2480 echo "$as_me: failed program was:" >&5
2481 cat conftest.$ac_ext >&5
2482 for ac_dir in $ac_x_header_dirs; do
2483 if test -r "$ac_dir/X11/Intrinsic.h"; then
2484 ac_x_includes=$ac_dir
2485 break
2487 done
2489 rm -f conftest.err conftest.$ac_ext
2490 fi # $ac_x_includes = no
2492 if test "$ac_x_libraries" = no; then
2493 # Check for the libraries.
2494 # See if we find them without any special options.
2495 # Don't add to $LIBS permanently.
2496 ac_save_LIBS=$LIBS
2497 LIBS="-lXt $LIBS"
2498 cat >conftest.$ac_ext <<_ACEOF
2499 #line $LINENO "configure"
2500 #include "confdefs.h"
2501 #include <X11/Intrinsic.h>
2502 #ifdef F77_DUMMY_MAIN
2503 # ifdef __cplusplus
2504 extern "C"
2505 # endif
2506 int F77_DUMMY_MAIN() { return 1; }
2507 #endif
2509 main ()
2511 XtMalloc (0)
2513 return 0;
2515 _ACEOF
2516 rm -f conftest.$ac_objext conftest$ac_exeext
2517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2518 (eval $ac_link) 2>&5
2519 ac_status=$?
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); } &&
2522 { ac_try='test -s conftest$ac_exeext'
2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524 (eval $ac_try) 2>&5
2525 ac_status=$?
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; }; then
2528 LIBS=$ac_save_LIBS
2529 # We can link X programs with no special library path.
2530 ac_x_libraries=
2531 else
2532 echo "$as_me: failed program was:" >&5
2533 cat conftest.$ac_ext >&5
2534 LIBS=$ac_save_LIBS
2535 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2537 # Don't even attempt the hair of trying to link an X program!
2538 for ac_extension in a so sl; do
2539 if test -r $ac_dir/libXt.$ac_extension; then
2540 ac_x_libraries=$ac_dir
2541 break 2
2543 done
2544 done
2546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2547 fi # $ac_x_libraries = no
2549 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2550 # Didn't find X anywhere. Cache the known absence of X.
2551 ac_cv_have_x="have_x=no"
2552 else
2553 # Record where we found X for the cache.
2554 ac_cv_have_x="have_x=yes \
2555 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2560 eval "$ac_cv_have_x"
2561 fi # $with_x != no
2563 if test "$have_x" != yes; then
2564 echo "$as_me:$LINENO: result: $have_x" >&5
2565 echo "${ECHO_T}$have_x" >&6
2566 no_x=yes
2567 else
2568 # If each of the values was on the command line, it overrides each guess.
2569 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2570 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2571 # Update the cache value to reflect the command line values.
2572 ac_cv_have_x="have_x=yes \
2573 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2574 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2575 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2578 if test "$no_x" = yes; then
2579 # Not all programs may use this symbol, but it does not hurt to define it.
2581 cat >>confdefs.h <<\_ACEOF
2582 #define X_DISPLAY_MISSING 1
2583 _ACEOF
2585 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2586 else
2587 if test -n "$x_includes"; then
2588 X_CFLAGS="$X_CFLAGS -I$x_includes"
2591 # It would also be nice to do this for all -L options, not just this one.
2592 if test -n "$x_libraries"; then
2593 X_LIBS="$X_LIBS -L$x_libraries"
2594 # For Solaris; some versions of Sun CC require a space after -R and
2595 # others require no space. Words are not sufficient . . . .
2596 case `(uname -sr) 2>/dev/null` in
2597 "SunOS 5"*)
2598 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2599 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2600 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2601 cat >conftest.$ac_ext <<_ACEOF
2602 #line $LINENO "configure"
2603 #include "confdefs.h"
2605 #ifdef F77_DUMMY_MAIN
2606 # ifdef __cplusplus
2607 extern "C"
2608 # endif
2609 int F77_DUMMY_MAIN() { return 1; }
2610 #endif
2612 main ()
2616 return 0;
2618 _ACEOF
2619 rm -f conftest.$ac_objext conftest$ac_exeext
2620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2621 (eval $ac_link) 2>&5
2622 ac_status=$?
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); } &&
2625 { ac_try='test -s conftest$ac_exeext'
2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 (eval $ac_try) 2>&5
2628 ac_status=$?
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; }; then
2631 ac_R_nospace=yes
2632 else
2633 echo "$as_me: failed program was:" >&5
2634 cat conftest.$ac_ext >&5
2635 ac_R_nospace=no
2637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2638 if test $ac_R_nospace = yes; then
2639 echo "$as_me:$LINENO: result: no" >&5
2640 echo "${ECHO_T}no" >&6
2641 X_LIBS="$X_LIBS -R$x_libraries"
2642 else
2643 LIBS="$ac_xsave_LIBS -R $x_libraries"
2644 cat >conftest.$ac_ext <<_ACEOF
2645 #line $LINENO "configure"
2646 #include "confdefs.h"
2648 #ifdef F77_DUMMY_MAIN
2649 # ifdef __cplusplus
2650 extern "C"
2651 # endif
2652 int F77_DUMMY_MAIN() { return 1; }
2653 #endif
2655 main ()
2659 return 0;
2661 _ACEOF
2662 rm -f conftest.$ac_objext conftest$ac_exeext
2663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2664 (eval $ac_link) 2>&5
2665 ac_status=$?
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); } &&
2668 { ac_try='test -s conftest$ac_exeext'
2669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 (eval $ac_try) 2>&5
2671 ac_status=$?
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; }; then
2674 ac_R_space=yes
2675 else
2676 echo "$as_me: failed program was:" >&5
2677 cat conftest.$ac_ext >&5
2678 ac_R_space=no
2680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2681 if test $ac_R_space = yes; then
2682 echo "$as_me:$LINENO: result: yes" >&5
2683 echo "${ECHO_T}yes" >&6
2684 X_LIBS="$X_LIBS -R $x_libraries"
2685 else
2686 echo "$as_me:$LINENO: result: neither works" >&5
2687 echo "${ECHO_T}neither works" >&6
2690 LIBS=$ac_xsave_LIBS
2691 esac
2694 # Check for system-dependent libraries X programs must link with.
2695 # Do this before checking for the system-independent R6 libraries
2696 # (-lICE), since we may need -lsocket or whatever for X linking.
2698 if test "$ISC" = yes; then
2699 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2700 else
2701 # Martyn Johnson says this is needed for Ultrix, if the X
2702 # libraries were built with DECnet support. And Karl Berry says
2703 # the Alpha needs dnet_stub (dnet does not exist).
2704 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2705 cat >conftest.$ac_ext <<_ACEOF
2706 #line $LINENO "configure"
2707 #include "confdefs.h"
2709 /* Override any gcc2 internal prototype to avoid an error. */
2710 #ifdef __cplusplus
2711 extern "C"
2712 #endif
2713 /* We use char because int might match the return type of a gcc2
2714 builtin and then its argument prototype would still apply. */
2715 char XOpenDisplay ();
2716 #ifdef F77_DUMMY_MAIN
2717 # ifdef __cplusplus
2718 extern "C"
2719 # endif
2720 int F77_DUMMY_MAIN() { return 1; }
2721 #endif
2723 main ()
2725 XOpenDisplay ();
2727 return 0;
2729 _ACEOF
2730 rm -f conftest.$ac_objext conftest$ac_exeext
2731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2732 (eval $ac_link) 2>&5
2733 ac_status=$?
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); } &&
2736 { ac_try='test -s conftest$ac_exeext'
2737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738 (eval $ac_try) 2>&5
2739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2743 else
2744 echo "$as_me: failed program was:" >&5
2745 cat conftest.$ac_ext >&5
2746 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
2747 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2748 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2749 echo $ECHO_N "(cached) $ECHO_C" >&6
2750 else
2751 ac_check_lib_save_LIBS=$LIBS
2752 LIBS="-ldnet $LIBS"
2753 cat >conftest.$ac_ext <<_ACEOF
2754 #line $LINENO "configure"
2755 #include "confdefs.h"
2757 /* Override any gcc2 internal prototype to avoid an error. */
2758 #ifdef __cplusplus
2759 extern "C"
2760 #endif
2761 /* We use char because int might match the return type of a gcc2
2762 builtin and then its argument prototype would still apply. */
2763 char dnet_ntoa ();
2764 #ifdef F77_DUMMY_MAIN
2765 # ifdef __cplusplus
2766 extern "C"
2767 # endif
2768 int F77_DUMMY_MAIN() { return 1; }
2769 #endif
2771 main ()
2773 dnet_ntoa ();
2775 return 0;
2777 _ACEOF
2778 rm -f conftest.$ac_objext conftest$ac_exeext
2779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2780 (eval $ac_link) 2>&5
2781 ac_status=$?
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); } &&
2784 { ac_try='test -s conftest$ac_exeext'
2785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 (eval $ac_try) 2>&5
2787 ac_status=$?
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; }; then
2790 ac_cv_lib_dnet_dnet_ntoa=yes
2791 else
2792 echo "$as_me: failed program was:" >&5
2793 cat conftest.$ac_ext >&5
2794 ac_cv_lib_dnet_dnet_ntoa=no
2796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2797 LIBS=$ac_check_lib_save_LIBS
2799 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
2800 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
2801 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
2802 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2805 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2806 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
2807 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
2808 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2810 else
2811 ac_check_lib_save_LIBS=$LIBS
2812 LIBS="-ldnet_stub $LIBS"
2813 cat >conftest.$ac_ext <<_ACEOF
2814 #line $LINENO "configure"
2815 #include "confdefs.h"
2817 /* Override any gcc2 internal prototype to avoid an error. */
2818 #ifdef __cplusplus
2819 extern "C"
2820 #endif
2821 /* We use char because int might match the return type of a gcc2
2822 builtin and then its argument prototype would still apply. */
2823 char dnet_ntoa ();
2824 #ifdef F77_DUMMY_MAIN
2825 # ifdef __cplusplus
2826 extern "C"
2827 # endif
2828 int F77_DUMMY_MAIN() { return 1; }
2829 #endif
2831 main ()
2833 dnet_ntoa ();
2835 return 0;
2837 _ACEOF
2838 rm -f conftest.$ac_objext conftest$ac_exeext
2839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2840 (eval $ac_link) 2>&5
2841 ac_status=$?
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } &&
2844 { ac_try='test -s conftest$ac_exeext'
2845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846 (eval $ac_try) 2>&5
2847 ac_status=$?
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); }; }; then
2850 ac_cv_lib_dnet_stub_dnet_ntoa=yes
2851 else
2852 echo "$as_me: failed program was:" >&5
2853 cat conftest.$ac_ext >&5
2854 ac_cv_lib_dnet_stub_dnet_ntoa=no
2856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2857 LIBS=$ac_check_lib_save_LIBS
2859 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
2860 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
2861 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
2862 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2868 LIBS="$ac_xsave_LIBS"
2870 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2871 # to get the SysV transport functions.
2872 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
2873 # needs -lnsl.
2874 # The nsl library prevents programs from opening the X display
2875 # on Irix 5.2, according to T.E. Dickey.
2876 # The functions gethostbyname, getservbyname, and inet_addr are
2877 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
2878 echo "$as_me:$LINENO: checking for gethostbyname" >&5
2879 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2880 if test "${ac_cv_func_gethostbyname+set}" = set; then
2881 echo $ECHO_N "(cached) $ECHO_C" >&6
2882 else
2883 cat >conftest.$ac_ext <<_ACEOF
2884 #line $LINENO "configure"
2885 #include "confdefs.h"
2886 /* System header to define __stub macros and hopefully few prototypes,
2887 which can conflict with char gethostbyname (); below. */
2888 #include <assert.h>
2889 /* Override any gcc2 internal prototype to avoid an error. */
2890 #ifdef __cplusplus
2891 extern "C"
2892 #endif
2893 /* We use char because int might match the return type of a gcc2
2894 builtin and then its argument prototype would still apply. */
2895 char gethostbyname ();
2896 char (*f) ();
2898 #ifdef F77_DUMMY_MAIN
2899 # ifdef __cplusplus
2900 extern "C"
2901 # endif
2902 int F77_DUMMY_MAIN() { return 1; }
2903 #endif
2905 main ()
2907 /* The GNU C library defines this for functions which it implements
2908 to always fail with ENOSYS. Some functions are actually named
2909 something starting with __ and the normal name is an alias. */
2910 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2911 choke me
2912 #else
2913 f = gethostbyname;
2914 #endif
2917 return 0;
2919 _ACEOF
2920 rm -f conftest.$ac_objext conftest$ac_exeext
2921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2922 (eval $ac_link) 2>&5
2923 ac_status=$?
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); } &&
2926 { ac_try='test -s conftest$ac_exeext'
2927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928 (eval $ac_try) 2>&5
2929 ac_status=$?
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }; }; then
2932 ac_cv_func_gethostbyname=yes
2933 else
2934 echo "$as_me: failed program was:" >&5
2935 cat conftest.$ac_ext >&5
2936 ac_cv_func_gethostbyname=no
2938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2940 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
2941 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
2943 if test $ac_cv_func_gethostbyname = no; then
2944 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
2945 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2946 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
2948 else
2949 ac_check_lib_save_LIBS=$LIBS
2950 LIBS="-lnsl $LIBS"
2951 cat >conftest.$ac_ext <<_ACEOF
2952 #line $LINENO "configure"
2953 #include "confdefs.h"
2955 /* Override any gcc2 internal prototype to avoid an error. */
2956 #ifdef __cplusplus
2957 extern "C"
2958 #endif
2959 /* We use char because int might match the return type of a gcc2
2960 builtin and then its argument prototype would still apply. */
2961 char gethostbyname ();
2962 #ifdef F77_DUMMY_MAIN
2963 # ifdef __cplusplus
2964 extern "C"
2965 # endif
2966 int F77_DUMMY_MAIN() { return 1; }
2967 #endif
2969 main ()
2971 gethostbyname ();
2973 return 0;
2975 _ACEOF
2976 rm -f conftest.$ac_objext conftest$ac_exeext
2977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2978 (eval $ac_link) 2>&5
2979 ac_status=$?
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } &&
2982 { ac_try='test -s conftest$ac_exeext'
2983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2984 (eval $ac_try) 2>&5
2985 ac_status=$?
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; }; then
2988 ac_cv_lib_nsl_gethostbyname=yes
2989 else
2990 echo "$as_me: failed program was:" >&5
2991 cat conftest.$ac_ext >&5
2992 ac_cv_lib_nsl_gethostbyname=no
2994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2995 LIBS=$ac_check_lib_save_LIBS
2997 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
2998 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
2999 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3000 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3003 if test $ac_cv_lib_nsl_gethostbyname = no; then
3004 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3005 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3006 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
3008 else
3009 ac_check_lib_save_LIBS=$LIBS
3010 LIBS="-lbsd $LIBS"
3011 cat >conftest.$ac_ext <<_ACEOF
3012 #line $LINENO "configure"
3013 #include "confdefs.h"
3015 /* Override any gcc2 internal prototype to avoid an error. */
3016 #ifdef __cplusplus
3017 extern "C"
3018 #endif
3019 /* We use char because int might match the return type of a gcc2
3020 builtin and then its argument prototype would still apply. */
3021 char gethostbyname ();
3022 #ifdef F77_DUMMY_MAIN
3023 # ifdef __cplusplus
3024 extern "C"
3025 # endif
3026 int F77_DUMMY_MAIN() { return 1; }
3027 #endif
3029 main ()
3031 gethostbyname ();
3033 return 0;
3035 _ACEOF
3036 rm -f conftest.$ac_objext conftest$ac_exeext
3037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3038 (eval $ac_link) 2>&5
3039 ac_status=$?
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); } &&
3042 { ac_try='test -s conftest$ac_exeext'
3043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3044 (eval $ac_try) 2>&5
3045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; }; then
3048 ac_cv_lib_bsd_gethostbyname=yes
3049 else
3050 echo "$as_me: failed program was:" >&5
3051 cat conftest.$ac_ext >&5
3052 ac_cv_lib_bsd_gethostbyname=no
3054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3055 LIBS=$ac_check_lib_save_LIBS
3057 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3058 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3059 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3060 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3066 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3067 # socket/setsockopt and other routines are undefined under SCO ODT
3068 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3069 # on later versions), says Simon Leinen: it contains gethostby*
3070 # variants that don't use the nameserver (or something). -lsocket
3071 # must be given before -lnsl if both are needed. We assume that
3072 # if connect needs -lnsl, so does gethostbyname.
3073 echo "$as_me:$LINENO: checking for connect" >&5
3074 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3075 if test "${ac_cv_func_connect+set}" = set; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
3077 else
3078 cat >conftest.$ac_ext <<_ACEOF
3079 #line $LINENO "configure"
3080 #include "confdefs.h"
3081 /* System header to define __stub macros and hopefully few prototypes,
3082 which can conflict with char connect (); below. */
3083 #include <assert.h>
3084 /* Override any gcc2 internal prototype to avoid an error. */
3085 #ifdef __cplusplus
3086 extern "C"
3087 #endif
3088 /* We use char because int might match the return type of a gcc2
3089 builtin and then its argument prototype would still apply. */
3090 char connect ();
3091 char (*f) ();
3093 #ifdef F77_DUMMY_MAIN
3094 # ifdef __cplusplus
3095 extern "C"
3096 # endif
3097 int F77_DUMMY_MAIN() { return 1; }
3098 #endif
3100 main ()
3102 /* The GNU C library defines this for functions which it implements
3103 to always fail with ENOSYS. Some functions are actually named
3104 something starting with __ and the normal name is an alias. */
3105 #if defined (__stub_connect) || defined (__stub___connect)
3106 choke me
3107 #else
3108 f = connect;
3109 #endif
3112 return 0;
3114 _ACEOF
3115 rm -f conftest.$ac_objext conftest$ac_exeext
3116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3117 (eval $ac_link) 2>&5
3118 ac_status=$?
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); } &&
3121 { ac_try='test -s conftest$ac_exeext'
3122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3123 (eval $ac_try) 2>&5
3124 ac_status=$?
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); }; }; then
3127 ac_cv_func_connect=yes
3128 else
3129 echo "$as_me: failed program was:" >&5
3130 cat conftest.$ac_ext >&5
3131 ac_cv_func_connect=no
3133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3135 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3136 echo "${ECHO_T}$ac_cv_func_connect" >&6
3138 if test $ac_cv_func_connect = no; then
3139 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3140 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3141 if test "${ac_cv_lib_socket_connect+set}" = set; then
3142 echo $ECHO_N "(cached) $ECHO_C" >&6
3143 else
3144 ac_check_lib_save_LIBS=$LIBS
3145 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3146 cat >conftest.$ac_ext <<_ACEOF
3147 #line $LINENO "configure"
3148 #include "confdefs.h"
3150 /* Override any gcc2 internal prototype to avoid an error. */
3151 #ifdef __cplusplus
3152 extern "C"
3153 #endif
3154 /* We use char because int might match the return type of a gcc2
3155 builtin and then its argument prototype would still apply. */
3156 char connect ();
3157 #ifdef F77_DUMMY_MAIN
3158 # ifdef __cplusplus
3159 extern "C"
3160 # endif
3161 int F77_DUMMY_MAIN() { return 1; }
3162 #endif
3164 main ()
3166 connect ();
3168 return 0;
3170 _ACEOF
3171 rm -f conftest.$ac_objext conftest$ac_exeext
3172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3173 (eval $ac_link) 2>&5
3174 ac_status=$?
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } &&
3177 { ac_try='test -s conftest$ac_exeext'
3178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179 (eval $ac_try) 2>&5
3180 ac_status=$?
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; }; then
3183 ac_cv_lib_socket_connect=yes
3184 else
3185 echo "$as_me: failed program was:" >&5
3186 cat conftest.$ac_ext >&5
3187 ac_cv_lib_socket_connect=no
3189 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3190 LIBS=$ac_check_lib_save_LIBS
3192 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3193 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3194 if test $ac_cv_lib_socket_connect = yes; then
3195 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3200 # Guillermo Gomez says -lposix is necessary on A/UX.
3201 echo "$as_me:$LINENO: checking for remove" >&5
3202 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3203 if test "${ac_cv_func_remove+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 else
3206 cat >conftest.$ac_ext <<_ACEOF
3207 #line $LINENO "configure"
3208 #include "confdefs.h"
3209 /* System header to define __stub macros and hopefully few prototypes,
3210 which can conflict with char remove (); below. */
3211 #include <assert.h>
3212 /* Override any gcc2 internal prototype to avoid an error. */
3213 #ifdef __cplusplus
3214 extern "C"
3215 #endif
3216 /* We use char because int might match the return type of a gcc2
3217 builtin and then its argument prototype would still apply. */
3218 char remove ();
3219 char (*f) ();
3221 #ifdef F77_DUMMY_MAIN
3222 # ifdef __cplusplus
3223 extern "C"
3224 # endif
3225 int F77_DUMMY_MAIN() { return 1; }
3226 #endif
3228 main ()
3230 /* The GNU C library defines this for functions which it implements
3231 to always fail with ENOSYS. Some functions are actually named
3232 something starting with __ and the normal name is an alias. */
3233 #if defined (__stub_remove) || defined (__stub___remove)
3234 choke me
3235 #else
3236 f = remove;
3237 #endif
3240 return 0;
3242 _ACEOF
3243 rm -f conftest.$ac_objext conftest$ac_exeext
3244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3245 (eval $ac_link) 2>&5
3246 ac_status=$?
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); } &&
3249 { ac_try='test -s conftest$ac_exeext'
3250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251 (eval $ac_try) 2>&5
3252 ac_status=$?
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; }; then
3255 ac_cv_func_remove=yes
3256 else
3257 echo "$as_me: failed program was:" >&5
3258 cat conftest.$ac_ext >&5
3259 ac_cv_func_remove=no
3261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3263 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3264 echo "${ECHO_T}$ac_cv_func_remove" >&6
3266 if test $ac_cv_func_remove = no; then
3267 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3268 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3269 if test "${ac_cv_lib_posix_remove+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3271 else
3272 ac_check_lib_save_LIBS=$LIBS
3273 LIBS="-lposix $LIBS"
3274 cat >conftest.$ac_ext <<_ACEOF
3275 #line $LINENO "configure"
3276 #include "confdefs.h"
3278 /* Override any gcc2 internal prototype to avoid an error. */
3279 #ifdef __cplusplus
3280 extern "C"
3281 #endif
3282 /* We use char because int might match the return type of a gcc2
3283 builtin and then its argument prototype would still apply. */
3284 char remove ();
3285 #ifdef F77_DUMMY_MAIN
3286 # ifdef __cplusplus
3287 extern "C"
3288 # endif
3289 int F77_DUMMY_MAIN() { return 1; }
3290 #endif
3292 main ()
3294 remove ();
3296 return 0;
3298 _ACEOF
3299 rm -f conftest.$ac_objext conftest$ac_exeext
3300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3301 (eval $ac_link) 2>&5
3302 ac_status=$?
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); } &&
3305 { ac_try='test -s conftest$ac_exeext'
3306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3307 (eval $ac_try) 2>&5
3308 ac_status=$?
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); }; }; then
3311 ac_cv_lib_posix_remove=yes
3312 else
3313 echo "$as_me: failed program was:" >&5
3314 cat conftest.$ac_ext >&5
3315 ac_cv_lib_posix_remove=no
3317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3318 LIBS=$ac_check_lib_save_LIBS
3320 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3321 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3322 if test $ac_cv_lib_posix_remove = yes; then
3323 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3328 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3329 echo "$as_me:$LINENO: checking for shmat" >&5
3330 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3331 if test "${ac_cv_func_shmat+set}" = set; then
3332 echo $ECHO_N "(cached) $ECHO_C" >&6
3333 else
3334 cat >conftest.$ac_ext <<_ACEOF
3335 #line $LINENO "configure"
3336 #include "confdefs.h"
3337 /* System header to define __stub macros and hopefully few prototypes,
3338 which can conflict with char shmat (); below. */
3339 #include <assert.h>
3340 /* Override any gcc2 internal prototype to avoid an error. */
3341 #ifdef __cplusplus
3342 extern "C"
3343 #endif
3344 /* We use char because int might match the return type of a gcc2
3345 builtin and then its argument prototype would still apply. */
3346 char shmat ();
3347 char (*f) ();
3349 #ifdef F77_DUMMY_MAIN
3350 # ifdef __cplusplus
3351 extern "C"
3352 # endif
3353 int F77_DUMMY_MAIN() { return 1; }
3354 #endif
3356 main ()
3358 /* The GNU C library defines this for functions which it implements
3359 to always fail with ENOSYS. Some functions are actually named
3360 something starting with __ and the normal name is an alias. */
3361 #if defined (__stub_shmat) || defined (__stub___shmat)
3362 choke me
3363 #else
3364 f = shmat;
3365 #endif
3368 return 0;
3370 _ACEOF
3371 rm -f conftest.$ac_objext conftest$ac_exeext
3372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3373 (eval $ac_link) 2>&5
3374 ac_status=$?
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } &&
3377 { ac_try='test -s conftest$ac_exeext'
3378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379 (eval $ac_try) 2>&5
3380 ac_status=$?
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }; }; then
3383 ac_cv_func_shmat=yes
3384 else
3385 echo "$as_me: failed program was:" >&5
3386 cat conftest.$ac_ext >&5
3387 ac_cv_func_shmat=no
3389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3391 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3392 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3394 if test $ac_cv_func_shmat = no; then
3395 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3396 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3397 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3399 else
3400 ac_check_lib_save_LIBS=$LIBS
3401 LIBS="-lipc $LIBS"
3402 cat >conftest.$ac_ext <<_ACEOF
3403 #line $LINENO "configure"
3404 #include "confdefs.h"
3406 /* Override any gcc2 internal prototype to avoid an error. */
3407 #ifdef __cplusplus
3408 extern "C"
3409 #endif
3410 /* We use char because int might match the return type of a gcc2
3411 builtin and then its argument prototype would still apply. */
3412 char shmat ();
3413 #ifdef F77_DUMMY_MAIN
3414 # ifdef __cplusplus
3415 extern "C"
3416 # endif
3417 int F77_DUMMY_MAIN() { return 1; }
3418 #endif
3420 main ()
3422 shmat ();
3424 return 0;
3426 _ACEOF
3427 rm -f conftest.$ac_objext conftest$ac_exeext
3428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3429 (eval $ac_link) 2>&5
3430 ac_status=$?
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } &&
3433 { ac_try='test -s conftest$ac_exeext'
3434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3435 (eval $ac_try) 2>&5
3436 ac_status=$?
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); }; }; then
3439 ac_cv_lib_ipc_shmat=yes
3440 else
3441 echo "$as_me: failed program was:" >&5
3442 cat conftest.$ac_ext >&5
3443 ac_cv_lib_ipc_shmat=no
3445 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3446 LIBS=$ac_check_lib_save_LIBS
3448 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3449 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3450 if test $ac_cv_lib_ipc_shmat = yes; then
3451 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3457 # Check for libraries that X11R6 Xt/Xaw programs need.
3458 ac_save_LDFLAGS=$LDFLAGS
3459 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3460 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3461 # check for ICE first), but we must link in the order -lSM -lICE or
3462 # we get undefined symbols. So assume we have SM if we have ICE.
3463 # These have to be linked with before -lX11, unlike the other
3464 # libraries we check for below, so use a different variable.
3465 # John Interrante, Karl Berry
3466 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3467 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3468 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3470 else
3471 ac_check_lib_save_LIBS=$LIBS
3472 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3473 cat >conftest.$ac_ext <<_ACEOF
3474 #line $LINENO "configure"
3475 #include "confdefs.h"
3477 /* Override any gcc2 internal prototype to avoid an error. */
3478 #ifdef __cplusplus
3479 extern "C"
3480 #endif
3481 /* We use char because int might match the return type of a gcc2
3482 builtin and then its argument prototype would still apply. */
3483 char IceConnectionNumber ();
3484 #ifdef F77_DUMMY_MAIN
3485 # ifdef __cplusplus
3486 extern "C"
3487 # endif
3488 int F77_DUMMY_MAIN() { return 1; }
3489 #endif
3491 main ()
3493 IceConnectionNumber ();
3495 return 0;
3497 _ACEOF
3498 rm -f conftest.$ac_objext conftest$ac_exeext
3499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3500 (eval $ac_link) 2>&5
3501 ac_status=$?
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); } &&
3504 { ac_try='test -s conftest$ac_exeext'
3505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506 (eval $ac_try) 2>&5
3507 ac_status=$?
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; }; then
3510 ac_cv_lib_ICE_IceConnectionNumber=yes
3511 else
3512 echo "$as_me: failed program was:" >&5
3513 cat conftest.$ac_ext >&5
3514 ac_cv_lib_ICE_IceConnectionNumber=no
3516 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3517 LIBS=$ac_check_lib_save_LIBS
3519 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3520 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3521 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3522 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3525 LDFLAGS=$ac_save_LDFLAGS
3529 for ac_prog in 'bison -y' byacc
3531 # Extract the first word of "$ac_prog", so it can be a program name with args.
3532 set dummy $ac_prog; ac_word=$2
3533 echo "$as_me:$LINENO: checking for $ac_word" >&5
3534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3535 if test "${ac_cv_prog_YACC+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 else
3538 if test -n "$YACC"; then
3539 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3540 else
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH
3544 IFS=$as_save_IFS
3545 test -z "$as_dir" && as_dir=.
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3548 ac_cv_prog_YACC="$ac_prog"
3549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3550 break 2
3552 done
3553 done
3557 YACC=$ac_cv_prog_YACC
3558 if test -n "$YACC"; then
3559 echo "$as_me:$LINENO: result: $YACC" >&5
3560 echo "${ECHO_T}$YACC" >&6
3561 else
3562 echo "$as_me:$LINENO: result: no" >&5
3563 echo "${ECHO_T}no" >&6
3566 test -n "$YACC" && break
3567 done
3568 test -n "$YACC" || YACC="yacc"
3570 for ac_prog in flex lex
3572 # Extract the first word of "$ac_prog", so it can be a program name with args.
3573 set dummy $ac_prog; ac_word=$2
3574 echo "$as_me:$LINENO: checking for $ac_word" >&5
3575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3576 if test "${ac_cv_prog_LEX+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3578 else
3579 if test -n "$LEX"; then
3580 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3581 else
3582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3583 for as_dir in $PATH
3585 IFS=$as_save_IFS
3586 test -z "$as_dir" && as_dir=.
3587 for ac_exec_ext in '' $ac_executable_extensions; do
3588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3589 ac_cv_prog_LEX="$ac_prog"
3590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3591 break 2
3593 done
3594 done
3598 LEX=$ac_cv_prog_LEX
3599 if test -n "$LEX"; then
3600 echo "$as_me:$LINENO: result: $LEX" >&5
3601 echo "${ECHO_T}$LEX" >&6
3602 else
3603 echo "$as_me:$LINENO: result: no" >&5
3604 echo "${ECHO_T}no" >&6
3607 test -n "$LEX" && break
3608 done
3609 test -n "$LEX" || LEX=":"
3611 if test -z "$LEXLIB"
3612 then
3613 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3614 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3615 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3616 echo $ECHO_N "(cached) $ECHO_C" >&6
3617 else
3618 ac_check_lib_save_LIBS=$LIBS
3619 LIBS="-lfl $LIBS"
3620 cat >conftest.$ac_ext <<_ACEOF
3621 #line $LINENO "configure"
3622 #include "confdefs.h"
3624 /* Override any gcc2 internal prototype to avoid an error. */
3625 #ifdef __cplusplus
3626 extern "C"
3627 #endif
3628 /* We use char because int might match the return type of a gcc2
3629 builtin and then its argument prototype would still apply. */
3630 char yywrap ();
3631 #ifdef F77_DUMMY_MAIN
3632 # ifdef __cplusplus
3633 extern "C"
3634 # endif
3635 int F77_DUMMY_MAIN() { return 1; }
3636 #endif
3638 main ()
3640 yywrap ();
3642 return 0;
3644 _ACEOF
3645 rm -f conftest.$ac_objext conftest$ac_exeext
3646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3647 (eval $ac_link) 2>&5
3648 ac_status=$?
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); } &&
3651 { ac_try='test -s conftest$ac_exeext'
3652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653 (eval $ac_try) 2>&5
3654 ac_status=$?
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); }; }; then
3657 ac_cv_lib_fl_yywrap=yes
3658 else
3659 echo "$as_me: failed program was:" >&5
3660 cat conftest.$ac_ext >&5
3661 ac_cv_lib_fl_yywrap=no
3663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3664 LIBS=$ac_check_lib_save_LIBS
3666 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3667 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3668 if test $ac_cv_lib_fl_yywrap = yes; then
3669 LEXLIB="-lfl"
3670 else
3671 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3672 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3673 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 else
3676 ac_check_lib_save_LIBS=$LIBS
3677 LIBS="-ll $LIBS"
3678 cat >conftest.$ac_ext <<_ACEOF
3679 #line $LINENO "configure"
3680 #include "confdefs.h"
3682 /* Override any gcc2 internal prototype to avoid an error. */
3683 #ifdef __cplusplus
3684 extern "C"
3685 #endif
3686 /* We use char because int might match the return type of a gcc2
3687 builtin and then its argument prototype would still apply. */
3688 char yywrap ();
3689 #ifdef F77_DUMMY_MAIN
3690 # ifdef __cplusplus
3691 extern "C"
3692 # endif
3693 int F77_DUMMY_MAIN() { return 1; }
3694 #endif
3696 main ()
3698 yywrap ();
3700 return 0;
3702 _ACEOF
3703 rm -f conftest.$ac_objext conftest$ac_exeext
3704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3705 (eval $ac_link) 2>&5
3706 ac_status=$?
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } &&
3709 { ac_try='test -s conftest$ac_exeext'
3710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3711 (eval $ac_try) 2>&5
3712 ac_status=$?
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); }; }; then
3715 ac_cv_lib_l_yywrap=yes
3716 else
3717 echo "$as_me: failed program was:" >&5
3718 cat conftest.$ac_ext >&5
3719 ac_cv_lib_l_yywrap=no
3721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3722 LIBS=$ac_check_lib_save_LIBS
3724 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3725 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3726 if test $ac_cv_lib_l_yywrap = yes; then
3727 LEXLIB="-ll"
3734 if test "x$LEX" != "x:"; then
3735 echo "$as_me:$LINENO: checking lex output file root" >&5
3736 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3737 if test "${ac_cv_prog_lex_root+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 else
3740 # The minimal lex program is just a single line: %%. But some broken lexes
3741 # (Solaris, I think it was) want two %% lines, so accommodate them.
3742 cat >conftest.l <<_ACEOF
3745 _ACEOF
3746 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3747 (eval $LEX conftest.l) 2>&5
3748 ac_status=$?
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); }
3751 if test -f lex.yy.c; then
3752 ac_cv_prog_lex_root=lex.yy
3753 elif test -f lexyy.c; then
3754 ac_cv_prog_lex_root=lexyy
3755 else
3756 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3757 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3758 { (exit 1); exit 1; }; }
3761 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3762 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3763 rm -f conftest.l
3764 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3766 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3767 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3768 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
3770 else
3771 # POSIX says lex can declare yytext either as a pointer or an array; the
3772 # default is implementation-dependent. Figure out which it is, since
3773 # not all implementations provide the %pointer and %array declarations.
3774 ac_cv_prog_lex_yytext_pointer=no
3775 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3776 ac_save_LIBS=$LIBS
3777 LIBS="$LIBS $LEXLIB"
3778 cat >conftest.$ac_ext <<_ACEOF
3779 `cat $LEX_OUTPUT_ROOT.c`
3780 _ACEOF
3781 rm -f conftest.$ac_objext conftest$ac_exeext
3782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3783 (eval $ac_link) 2>&5
3784 ac_status=$?
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); } &&
3787 { ac_try='test -s conftest$ac_exeext'
3788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3789 (eval $ac_try) 2>&5
3790 ac_status=$?
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); }; }; then
3793 ac_cv_prog_lex_yytext_pointer=yes
3794 else
3795 echo "$as_me: failed program was:" >&5
3796 cat conftest.$ac_ext >&5
3798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3799 LIBS=$ac_save_LIBS
3800 rm -f "${LEX_OUTPUT_ROOT}.c"
3803 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3804 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3805 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3807 cat >>confdefs.h <<\_ACEOF
3808 #define YYTEXT_POINTER 1
3809 _ACEOF
3815 for ac_prog in $YACC bison yacc
3817 # Extract the first word of "$ac_prog", so it can be a program name with args.
3818 set dummy $ac_prog; ac_word=$2
3819 echo "$as_me:$LINENO: checking for $ac_word" >&5
3820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3821 if test "${ac_cv_prog_XYACC+set}" = set; then
3822 echo $ECHO_N "(cached) $ECHO_C" >&6
3823 else
3824 if test -n "$XYACC"; then
3825 ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
3826 else
3827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3828 for as_dir in $PATH
3830 IFS=$as_save_IFS
3831 test -z "$as_dir" && as_dir=.
3832 for ac_exec_ext in '' $ac_executable_extensions; do
3833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3834 ac_cv_prog_XYACC="$ac_prog"
3835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3836 break 2
3838 done
3839 done
3843 XYACC=$ac_cv_prog_XYACC
3844 if test -n "$XYACC"; then
3845 echo "$as_me:$LINENO: result: $XYACC" >&5
3846 echo "${ECHO_T}$XYACC" >&6
3847 else
3848 echo "$as_me:$LINENO: result: no" >&5
3849 echo "${ECHO_T}no" >&6
3852 test -n "$XYACC" && break
3853 done
3854 test -n "$XYACC" || XYACC="none"
3856 if test "$XYACC" = "none"
3857 then
3858 { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
3859 echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
3860 { (exit 1); exit 1; }; }
3862 for ac_prog in $LEX flex lex
3864 # Extract the first word of "$ac_prog", so it can be a program name with args.
3865 set dummy $ac_prog; ac_word=$2
3866 echo "$as_me:$LINENO: checking for $ac_word" >&5
3867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3868 if test "${ac_cv_prog_XLEX+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3870 else
3871 if test -n "$XLEX"; then
3872 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
3873 else
3874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875 for as_dir in $PATH
3877 IFS=$as_save_IFS
3878 test -z "$as_dir" && as_dir=.
3879 for ac_exec_ext in '' $ac_executable_extensions; do
3880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3881 ac_cv_prog_XLEX="$ac_prog"
3882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3883 break 2
3885 done
3886 done
3890 XLEX=$ac_cv_prog_XLEX
3891 if test -n "$XLEX"; then
3892 echo "$as_me:$LINENO: result: $XLEX" >&5
3893 echo "${ECHO_T}$XLEX" >&6
3894 else
3895 echo "$as_me:$LINENO: result: no" >&5
3896 echo "${ECHO_T}no" >&6
3899 test -n "$XLEX" && break
3900 done
3901 test -n "$XLEX" || XLEX="none"
3903 if test "$XLEX" = "none"
3904 then
3905 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
3906 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
3907 { (exit 1); exit 1; }; }
3909 if test -n "$ac_tool_prefix"; then
3910 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3911 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3912 echo "$as_me:$LINENO: checking for $ac_word" >&5
3913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3914 if test "${ac_cv_prog_RANLIB+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917 if test -n "$RANLIB"; then
3918 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3919 else
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 for as_dir in $PATH
3923 IFS=$as_save_IFS
3924 test -z "$as_dir" && as_dir=.
3925 for ac_exec_ext in '' $ac_executable_extensions; do
3926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3927 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3929 break 2
3931 done
3932 done
3936 RANLIB=$ac_cv_prog_RANLIB
3937 if test -n "$RANLIB"; then
3938 echo "$as_me:$LINENO: result: $RANLIB" >&5
3939 echo "${ECHO_T}$RANLIB" >&6
3940 else
3941 echo "$as_me:$LINENO: result: no" >&5
3942 echo "${ECHO_T}no" >&6
3946 if test -z "$ac_cv_prog_RANLIB"; then
3947 ac_ct_RANLIB=$RANLIB
3948 # Extract the first word of "ranlib", so it can be a program name with args.
3949 set dummy ranlib; ac_word=$2
3950 echo "$as_me:$LINENO: checking for $ac_word" >&5
3951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3952 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3953 echo $ECHO_N "(cached) $ECHO_C" >&6
3954 else
3955 if test -n "$ac_ct_RANLIB"; then
3956 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3957 else
3958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959 for as_dir in $PATH
3961 IFS=$as_save_IFS
3962 test -z "$as_dir" && as_dir=.
3963 for ac_exec_ext in '' $ac_executable_extensions; do
3964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3965 ac_cv_prog_ac_ct_RANLIB="ranlib"
3966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3967 break 2
3969 done
3970 done
3972 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3975 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3976 if test -n "$ac_ct_RANLIB"; then
3977 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3978 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3979 else
3980 echo "$as_me:$LINENO: result: no" >&5
3981 echo "${ECHO_T}no" >&6
3984 RANLIB=$ac_ct_RANLIB
3985 else
3986 RANLIB="$ac_cv_prog_RANLIB"
3989 # Find a good install program. We prefer a C program (faster),
3990 # so one script is as good as another. But avoid the broken or
3991 # incompatible versions:
3992 # SysV /etc/install, /usr/sbin/install
3993 # SunOS /usr/etc/install
3994 # IRIX /sbin/install
3995 # AIX /bin/install
3996 # AmigaOS /C/install, which installs bootblocks on floppy discs
3997 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3998 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3999 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4000 # ./install, which can be erroneously created by make from ./install.sh.
4001 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4002 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4003 if test -z "$INSTALL"; then
4004 if test "${ac_cv_path_install+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 else
4007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008 for as_dir in $PATH
4010 IFS=$as_save_IFS
4011 test -z "$as_dir" && as_dir=.
4012 # Account for people who put trailing slashes in PATH elements.
4013 case $as_dir/ in
4014 ./ | .// | /cC/* | \
4015 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4016 /usr/ucb/* ) ;;
4018 # OSF1 and SCO ODT 3.0 have their own names for install.
4019 # Don't use installbsd from OSF since it installs stuff as root
4020 # by default.
4021 for ac_prog in ginstall scoinst install; do
4022 for ac_exec_ext in '' $ac_executable_extensions; do
4023 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4024 if test $ac_prog = install &&
4025 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4026 # AIX install. It has an incompatible calling convention.
4028 elif test $ac_prog = install &&
4029 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4030 # program-specific install script used by HP pwplus--don't use.
4032 else
4033 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4034 break 3
4037 done
4038 done
4040 esac
4041 done
4045 if test "${ac_cv_path_install+set}" = set; then
4046 INSTALL=$ac_cv_path_install
4047 else
4048 # As a last resort, use the slow shell script. We don't cache a
4049 # path for INSTALL within a source directory, because that will
4050 # break other packages using the cache if that directory is
4051 # removed, or if the path is relative.
4052 INSTALL=$ac_install_sh
4055 echo "$as_me:$LINENO: result: $INSTALL" >&5
4056 echo "${ECHO_T}$INSTALL" >&6
4058 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4059 # It thinks the first close brace ends the variable substitution.
4060 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4062 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4064 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4066 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4067 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4068 LN_S=$as_ln_s
4069 if test "$LN_S" = "ln -s"; then
4070 echo "$as_me:$LINENO: result: yes" >&5
4071 echo "${ECHO_T}yes" >&6
4072 else
4073 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4074 echo "${ECHO_T}no, using $LN_S" >&6
4077 # Extract the first word of "c2man", so it can be a program name with args.
4078 set dummy c2man; ac_word=$2
4079 echo "$as_me:$LINENO: checking for $ac_word" >&5
4080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4081 if test "${ac_cv_prog_C2MAN+set}" = set; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4083 else
4084 if test -n "$C2MAN"; then
4085 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
4086 else
4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088 for as_dir in $PATH
4090 IFS=$as_save_IFS
4091 test -z "$as_dir" && as_dir=.
4092 for ac_exec_ext in '' $ac_executable_extensions; do
4093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4094 ac_cv_prog_C2MAN="c2man"
4095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4096 break 2
4098 done
4099 done
4101 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
4104 C2MAN=$ac_cv_prog_C2MAN
4105 if test -n "$C2MAN"; then
4106 echo "$as_me:$LINENO: result: $C2MAN" >&5
4107 echo "${ECHO_T}$C2MAN" >&6
4108 else
4109 echo "$as_me:$LINENO: result: no" >&5
4110 echo "${ECHO_T}no" >&6
4113 # Extract the first word of "ldconfig", so it can be a program name with args.
4114 set dummy ldconfig; ac_word=$2
4115 echo "$as_me:$LINENO: checking for $ac_word" >&5
4116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4117 if test "${ac_cv_path_LDCONFIG+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4119 else
4120 case $LDCONFIG in
4121 [\\/]* | ?:[\\/]*)
4122 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 for as_dir in /sbin /usr/sbin $PATH
4128 IFS=$as_save_IFS
4129 test -z "$as_dir" && as_dir=.
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4132 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4134 break 2
4136 done
4137 done
4139 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4141 esac
4143 LDCONFIG=$ac_cv_path_LDCONFIG
4145 if test -n "$LDCONFIG"; then
4146 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
4147 echo "${ECHO_T}$LDCONFIG" >&6
4148 else
4149 echo "$as_me:$LINENO: result: no" >&5
4150 echo "${ECHO_T}no" >&6
4154 for ac_prog in lclint lint
4156 # Extract the first word of "$ac_prog", so it can be a program name with args.
4157 set dummy $ac_prog; ac_word=$2
4158 echo "$as_me:$LINENO: checking for $ac_word" >&5
4159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4160 if test "${ac_cv_prog_LINT+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4162 else
4163 if test -n "$LINT"; then
4164 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4165 else
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167 for as_dir in $PATH
4169 IFS=$as_save_IFS
4170 test -z "$as_dir" && as_dir=.
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4173 ac_cv_prog_LINT="$ac_prog"
4174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4175 break 2
4177 done
4178 done
4182 LINT=$ac_cv_prog_LINT
4183 if test -n "$LINT"; then
4184 echo "$as_me:$LINENO: result: $LINT" >&5
4185 echo "${ECHO_T}$LINT" >&6
4186 else
4187 echo "$as_me:$LINENO: result: no" >&5
4188 echo "${ECHO_T}no" >&6
4191 test -n "$LINT" && break
4192 done
4194 if test "$LINT" = "lint"
4195 then
4196 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4201 case $host_os in
4202 *cygwin*) LDCOMBINE="ld -r --enable-stdcall-fixup" ;;
4203 *) LDCOMBINE="ld -r" ;;
4204 esac
4209 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
4210 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
4211 if test "${ac_cv_lib_m_sqrt+set}" = set; then
4212 echo $ECHO_N "(cached) $ECHO_C" >&6
4213 else
4214 ac_check_lib_save_LIBS=$LIBS
4215 LIBS="-lm $LIBS"
4216 cat >conftest.$ac_ext <<_ACEOF
4217 #line $LINENO "configure"
4218 #include "confdefs.h"
4220 /* Override any gcc2 internal prototype to avoid an error. */
4221 #ifdef __cplusplus
4222 extern "C"
4223 #endif
4224 /* We use char because int might match the return type of a gcc2
4225 builtin and then its argument prototype would still apply. */
4226 char sqrt ();
4227 #ifdef F77_DUMMY_MAIN
4228 # ifdef __cplusplus
4229 extern "C"
4230 # endif
4231 int F77_DUMMY_MAIN() { return 1; }
4232 #endif
4234 main ()
4236 sqrt ();
4238 return 0;
4240 _ACEOF
4241 rm -f conftest.$ac_objext conftest$ac_exeext
4242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4243 (eval $ac_link) 2>&5
4244 ac_status=$?
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); } &&
4247 { ac_try='test -s conftest$ac_exeext'
4248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4249 (eval $ac_try) 2>&5
4250 ac_status=$?
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); }; }; then
4253 ac_cv_lib_m_sqrt=yes
4254 else
4255 echo "$as_me: failed program was:" >&5
4256 cat conftest.$ac_ext >&5
4257 ac_cv_lib_m_sqrt=no
4259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4260 LIBS=$ac_check_lib_save_LIBS
4262 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4263 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4264 if test $ac_cv_lib_m_sqrt = yes; then
4265 cat >>confdefs.h <<_ACEOF
4266 #define HAVE_LIBM 1
4267 _ACEOF
4269 LIBS="-lm $LIBS"
4274 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
4275 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
4276 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
4277 echo $ECHO_N "(cached) $ECHO_C" >&6
4278 else
4279 ac_check_lib_save_LIBS=$LIBS
4280 LIBS="-li386 $LIBS"
4281 cat >conftest.$ac_ext <<_ACEOF
4282 #line $LINENO "configure"
4283 #include "confdefs.h"
4285 /* Override any gcc2 internal prototype to avoid an error. */
4286 #ifdef __cplusplus
4287 extern "C"
4288 #endif
4289 /* We use char because int might match the return type of a gcc2
4290 builtin and then its argument prototype would still apply. */
4291 char i386_set_ldt ();
4292 #ifdef F77_DUMMY_MAIN
4293 # ifdef __cplusplus
4294 extern "C"
4295 # endif
4296 int F77_DUMMY_MAIN() { return 1; }
4297 #endif
4299 main ()
4301 i386_set_ldt ();
4303 return 0;
4305 _ACEOF
4306 rm -f conftest.$ac_objext conftest$ac_exeext
4307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4308 (eval $ac_link) 2>&5
4309 ac_status=$?
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); } &&
4312 { ac_try='test -s conftest$ac_exeext'
4313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4314 (eval $ac_try) 2>&5
4315 ac_status=$?
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); }; }; then
4318 ac_cv_lib_i386_i386_set_ldt=yes
4319 else
4320 echo "$as_me: failed program was:" >&5
4321 cat conftest.$ac_ext >&5
4322 ac_cv_lib_i386_i386_set_ldt=no
4324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4325 LIBS=$ac_check_lib_save_LIBS
4327 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
4328 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
4329 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
4330 cat >>confdefs.h <<_ACEOF
4331 #define HAVE_LIBI386 1
4332 _ACEOF
4334 LIBS="-li386 $LIBS"
4339 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4340 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4341 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4343 else
4344 ac_check_lib_save_LIBS=$LIBS
4345 LIBS="-lossaudio $LIBS"
4346 cat >conftest.$ac_ext <<_ACEOF
4347 #line $LINENO "configure"
4348 #include "confdefs.h"
4350 /* Override any gcc2 internal prototype to avoid an error. */
4351 #ifdef __cplusplus
4352 extern "C"
4353 #endif
4354 /* We use char because int might match the return type of a gcc2
4355 builtin and then its argument prototype would still apply. */
4356 char _oss_ioctl ();
4357 #ifdef F77_DUMMY_MAIN
4358 # ifdef __cplusplus
4359 extern "C"
4360 # endif
4361 int F77_DUMMY_MAIN() { return 1; }
4362 #endif
4364 main ()
4366 _oss_ioctl ();
4368 return 0;
4370 _ACEOF
4371 rm -f conftest.$ac_objext conftest$ac_exeext
4372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4373 (eval $ac_link) 2>&5
4374 ac_status=$?
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); } &&
4377 { ac_try='test -s conftest$ac_exeext'
4378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4379 (eval $ac_try) 2>&5
4380 ac_status=$?
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; }; then
4383 ac_cv_lib_ossaudio__oss_ioctl=yes
4384 else
4385 echo "$as_me: failed program was:" >&5
4386 cat conftest.$ac_ext >&5
4387 ac_cv_lib_ossaudio__oss_ioctl=no
4389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4390 LIBS=$ac_check_lib_save_LIBS
4392 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4393 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4394 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4395 cat >>confdefs.h <<_ACEOF
4396 #define HAVE_LIBOSSAUDIO 1
4397 _ACEOF
4399 LIBS="-lossaudio $LIBS"
4404 for ac_func in iswalnum
4406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4407 echo "$as_me:$LINENO: checking for $ac_func" >&5
4408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4409 if eval "test \"\${$as_ac_var+set}\" = set"; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 else
4412 cat >conftest.$ac_ext <<_ACEOF
4413 #line $LINENO "configure"
4414 #include "confdefs.h"
4415 /* System header to define __stub macros and hopefully few prototypes,
4416 which can conflict with char $ac_func (); below. */
4417 #include <assert.h>
4418 /* Override any gcc2 internal prototype to avoid an error. */
4419 #ifdef __cplusplus
4420 extern "C"
4421 #endif
4422 /* We use char because int might match the return type of a gcc2
4423 builtin and then its argument prototype would still apply. */
4424 char $ac_func ();
4425 char (*f) ();
4427 #ifdef F77_DUMMY_MAIN
4428 # ifdef __cplusplus
4429 extern "C"
4430 # endif
4431 int F77_DUMMY_MAIN() { return 1; }
4432 #endif
4434 main ()
4436 /* The GNU C library defines this for functions which it implements
4437 to always fail with ENOSYS. Some functions are actually named
4438 something starting with __ and the normal name is an alias. */
4439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4440 choke me
4441 #else
4442 f = $ac_func;
4443 #endif
4446 return 0;
4448 _ACEOF
4449 rm -f conftest.$ac_objext conftest$ac_exeext
4450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4451 (eval $ac_link) 2>&5
4452 ac_status=$?
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); } &&
4455 { ac_try='test -s conftest$ac_exeext'
4456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457 (eval $ac_try) 2>&5
4458 ac_status=$?
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); }; }; then
4461 eval "$as_ac_var=yes"
4462 else
4463 echo "$as_me: failed program was:" >&5
4464 cat conftest.$ac_ext >&5
4465 eval "$as_ac_var=no"
4467 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4470 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4471 if test `eval echo '${'$as_ac_var'}'` = yes; then
4472 cat >>confdefs.h <<_ACEOF
4473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4474 _ACEOF
4476 else
4478 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
4479 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
4480 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483 ac_check_lib_save_LIBS=$LIBS
4484 LIBS="-lw $LIBS"
4485 cat >conftest.$ac_ext <<_ACEOF
4486 #line $LINENO "configure"
4487 #include "confdefs.h"
4489 /* Override any gcc2 internal prototype to avoid an error. */
4490 #ifdef __cplusplus
4491 extern "C"
4492 #endif
4493 /* We use char because int might match the return type of a gcc2
4494 builtin and then its argument prototype would still apply. */
4495 char iswalnum ();
4496 #ifdef F77_DUMMY_MAIN
4497 # ifdef __cplusplus
4498 extern "C"
4499 # endif
4500 int F77_DUMMY_MAIN() { return 1; }
4501 #endif
4503 main ()
4505 iswalnum ();
4507 return 0;
4509 _ACEOF
4510 rm -f conftest.$ac_objext conftest$ac_exeext
4511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4512 (eval $ac_link) 2>&5
4513 ac_status=$?
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } &&
4516 { ac_try='test -s conftest$ac_exeext'
4517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518 (eval $ac_try) 2>&5
4519 ac_status=$?
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }; }; then
4522 ac_cv_lib_w_iswalnum=yes
4523 else
4524 echo "$as_me: failed program was:" >&5
4525 cat conftest.$ac_ext >&5
4526 ac_cv_lib_w_iswalnum=no
4528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4529 LIBS=$ac_check_lib_save_LIBS
4531 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
4532 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
4533 if test $ac_cv_lib_w_iswalnum = yes; then
4534 cat >>confdefs.h <<_ACEOF
4535 #define HAVE_LIBW 1
4536 _ACEOF
4538 LIBS="-lw $LIBS"
4543 done
4546 for ac_func in gethostbyname
4548 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4549 echo "$as_me:$LINENO: checking for $ac_func" >&5
4550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4551 if eval "test \"\${$as_ac_var+set}\" = set"; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554 cat >conftest.$ac_ext <<_ACEOF
4555 #line $LINENO "configure"
4556 #include "confdefs.h"
4557 /* System header to define __stub macros and hopefully few prototypes,
4558 which can conflict with char $ac_func (); below. */
4559 #include <assert.h>
4560 /* Override any gcc2 internal prototype to avoid an error. */
4561 #ifdef __cplusplus
4562 extern "C"
4563 #endif
4564 /* We use char because int might match the return type of a gcc2
4565 builtin and then its argument prototype would still apply. */
4566 char $ac_func ();
4567 char (*f) ();
4569 #ifdef F77_DUMMY_MAIN
4570 # ifdef __cplusplus
4571 extern "C"
4572 # endif
4573 int F77_DUMMY_MAIN() { return 1; }
4574 #endif
4576 main ()
4578 /* The GNU C library defines this for functions which it implements
4579 to always fail with ENOSYS. Some functions are actually named
4580 something starting with __ and the normal name is an alias. */
4581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4582 choke me
4583 #else
4584 f = $ac_func;
4585 #endif
4588 return 0;
4590 _ACEOF
4591 rm -f conftest.$ac_objext conftest$ac_exeext
4592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4593 (eval $ac_link) 2>&5
4594 ac_status=$?
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); } &&
4597 { ac_try='test -s conftest$ac_exeext'
4598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599 (eval $ac_try) 2>&5
4600 ac_status=$?
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; }; then
4603 eval "$as_ac_var=yes"
4604 else
4605 echo "$as_me: failed program was:" >&5
4606 cat conftest.$ac_ext >&5
4607 eval "$as_ac_var=no"
4609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4612 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4613 if test `eval echo '${'$as_ac_var'}'` = yes; then
4614 cat >>confdefs.h <<_ACEOF
4615 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4616 _ACEOF
4618 else
4620 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4621 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4622 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625 ac_check_lib_save_LIBS=$LIBS
4626 LIBS="-lnsl $LIBS"
4627 cat >conftest.$ac_ext <<_ACEOF
4628 #line $LINENO "configure"
4629 #include "confdefs.h"
4631 /* Override any gcc2 internal prototype to avoid an error. */
4632 #ifdef __cplusplus
4633 extern "C"
4634 #endif
4635 /* We use char because int might match the return type of a gcc2
4636 builtin and then its argument prototype would still apply. */
4637 char gethostbyname ();
4638 #ifdef F77_DUMMY_MAIN
4639 # ifdef __cplusplus
4640 extern "C"
4641 # endif
4642 int F77_DUMMY_MAIN() { return 1; }
4643 #endif
4645 main ()
4647 gethostbyname ();
4649 return 0;
4651 _ACEOF
4652 rm -f conftest.$ac_objext conftest$ac_exeext
4653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4654 (eval $ac_link) 2>&5
4655 ac_status=$?
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); } &&
4658 { ac_try='test -s conftest$ac_exeext'
4659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660 (eval $ac_try) 2>&5
4661 ac_status=$?
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); }; }; then
4664 ac_cv_lib_nsl_gethostbyname=yes
4665 else
4666 echo "$as_me: failed program was:" >&5
4667 cat conftest.$ac_ext >&5
4668 ac_cv_lib_nsl_gethostbyname=no
4670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4671 LIBS=$ac_check_lib_save_LIBS
4673 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4674 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4675 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4676 cat >>confdefs.h <<_ACEOF
4677 #define HAVE_LIBNSL 1
4678 _ACEOF
4680 LIBS="-lnsl $LIBS"
4685 done
4688 for ac_func in connect
4690 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4691 echo "$as_me:$LINENO: checking for $ac_func" >&5
4692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4693 if eval "test \"\${$as_ac_var+set}\" = set"; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4695 else
4696 cat >conftest.$ac_ext <<_ACEOF
4697 #line $LINENO "configure"
4698 #include "confdefs.h"
4699 /* System header to define __stub macros and hopefully few prototypes,
4700 which can conflict with char $ac_func (); below. */
4701 #include <assert.h>
4702 /* Override any gcc2 internal prototype to avoid an error. */
4703 #ifdef __cplusplus
4704 extern "C"
4705 #endif
4706 /* We use char because int might match the return type of a gcc2
4707 builtin and then its argument prototype would still apply. */
4708 char $ac_func ();
4709 char (*f) ();
4711 #ifdef F77_DUMMY_MAIN
4712 # ifdef __cplusplus
4713 extern "C"
4714 # endif
4715 int F77_DUMMY_MAIN() { return 1; }
4716 #endif
4718 main ()
4720 /* The GNU C library defines this for functions which it implements
4721 to always fail with ENOSYS. Some functions are actually named
4722 something starting with __ and the normal name is an alias. */
4723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4724 choke me
4725 #else
4726 f = $ac_func;
4727 #endif
4730 return 0;
4732 _ACEOF
4733 rm -f conftest.$ac_objext conftest$ac_exeext
4734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4735 (eval $ac_link) 2>&5
4736 ac_status=$?
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } &&
4739 { ac_try='test -s conftest$ac_exeext'
4740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741 (eval $ac_try) 2>&5
4742 ac_status=$?
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; }; then
4745 eval "$as_ac_var=yes"
4746 else
4747 echo "$as_me: failed program was:" >&5
4748 cat conftest.$ac_ext >&5
4749 eval "$as_ac_var=no"
4751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4754 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4755 if test `eval echo '${'$as_ac_var'}'` = yes; then
4756 cat >>confdefs.h <<_ACEOF
4757 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4758 _ACEOF
4760 else
4762 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4763 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4764 if test "${ac_cv_lib_socket_connect+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4766 else
4767 ac_check_lib_save_LIBS=$LIBS
4768 LIBS="-lsocket $LIBS"
4769 cat >conftest.$ac_ext <<_ACEOF
4770 #line $LINENO "configure"
4771 #include "confdefs.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 connect ();
4780 #ifdef F77_DUMMY_MAIN
4781 # ifdef __cplusplus
4782 extern "C"
4783 # endif
4784 int F77_DUMMY_MAIN() { return 1; }
4785 #endif
4787 main ()
4789 connect ();
4791 return 0;
4793 _ACEOF
4794 rm -f conftest.$ac_objext conftest$ac_exeext
4795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4796 (eval $ac_link) 2>&5
4797 ac_status=$?
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); } &&
4800 { ac_try='test -s conftest$ac_exeext'
4801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802 (eval $ac_try) 2>&5
4803 ac_status=$?
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); }; }; then
4806 ac_cv_lib_socket_connect=yes
4807 else
4808 echo "$as_me: failed program was:" >&5
4809 cat conftest.$ac_ext >&5
4810 ac_cv_lib_socket_connect=no
4812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4813 LIBS=$ac_check_lib_save_LIBS
4815 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4816 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4817 if test $ac_cv_lib_socket_connect = yes; then
4818 cat >>confdefs.h <<_ACEOF
4819 #define HAVE_LIBSOCKET 1
4820 _ACEOF
4822 LIBS="-lsocket $LIBS"
4827 done
4830 for ac_func in inet_aton
4832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4833 echo "$as_me:$LINENO: checking for $ac_func" >&5
4834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4835 if eval "test \"\${$as_ac_var+set}\" = set"; then
4836 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 else
4838 cat >conftest.$ac_ext <<_ACEOF
4839 #line $LINENO "configure"
4840 #include "confdefs.h"
4841 /* System header to define __stub macros and hopefully few prototypes,
4842 which can conflict with char $ac_func (); below. */
4843 #include <assert.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 $ac_func ();
4851 char (*f) ();
4853 #ifdef F77_DUMMY_MAIN
4854 # ifdef __cplusplus
4855 extern "C"
4856 # endif
4857 int F77_DUMMY_MAIN() { return 1; }
4858 #endif
4860 main ()
4862 /* The GNU C library defines this for functions which it implements
4863 to always fail with ENOSYS. Some functions are actually named
4864 something starting with __ and the normal name is an alias. */
4865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4866 choke me
4867 #else
4868 f = $ac_func;
4869 #endif
4872 return 0;
4874 _ACEOF
4875 rm -f conftest.$ac_objext conftest$ac_exeext
4876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4877 (eval $ac_link) 2>&5
4878 ac_status=$?
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); } &&
4881 { ac_try='test -s conftest$ac_exeext'
4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883 (eval $ac_try) 2>&5
4884 ac_status=$?
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; }; then
4887 eval "$as_ac_var=yes"
4888 else
4889 echo "$as_me: failed program was:" >&5
4890 cat conftest.$ac_ext >&5
4891 eval "$as_ac_var=no"
4893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4896 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4897 if test `eval echo '${'$as_ac_var'}'` = yes; then
4898 cat >>confdefs.h <<_ACEOF
4899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4900 _ACEOF
4902 else
4904 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
4905 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
4906 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4908 else
4909 ac_check_lib_save_LIBS=$LIBS
4910 LIBS="-lresolv $LIBS"
4911 cat >conftest.$ac_ext <<_ACEOF
4912 #line $LINENO "configure"
4913 #include "confdefs.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 inet_aton ();
4922 #ifdef F77_DUMMY_MAIN
4923 # ifdef __cplusplus
4924 extern "C"
4925 # endif
4926 int F77_DUMMY_MAIN() { return 1; }
4927 #endif
4929 main ()
4931 inet_aton ();
4933 return 0;
4935 _ACEOF
4936 rm -f conftest.$ac_objext conftest$ac_exeext
4937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4938 (eval $ac_link) 2>&5
4939 ac_status=$?
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } &&
4942 { ac_try='test -s conftest$ac_exeext'
4943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 (eval $ac_try) 2>&5
4945 ac_status=$?
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); }; }; then
4948 ac_cv_lib_resolv_inet_aton=yes
4949 else
4950 echo "$as_me: failed program was:" >&5
4951 cat conftest.$ac_ext >&5
4952 ac_cv_lib_resolv_inet_aton=no
4954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4955 LIBS=$ac_check_lib_save_LIBS
4957 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
4958 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
4959 if test $ac_cv_lib_resolv_inet_aton = yes; then
4960 cat >>confdefs.h <<_ACEOF
4961 #define HAVE_LIBRESOLV 1
4962 _ACEOF
4964 LIBS="-lresolv $LIBS"
4969 done
4972 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
4973 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
4974 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
4975 echo $ECHO_N "(cached) $ECHO_C" >&6
4976 else
4977 ac_check_lib_save_LIBS=$LIBS
4978 LIBS="-lxpg4 $LIBS"
4979 cat >conftest.$ac_ext <<_ACEOF
4980 #line $LINENO "configure"
4981 #include "confdefs.h"
4983 /* Override any gcc2 internal prototype to avoid an error. */
4984 #ifdef __cplusplus
4985 extern "C"
4986 #endif
4987 /* We use char because int might match the return type of a gcc2
4988 builtin and then its argument prototype would still apply. */
4989 char _xpg4_setrunelocale ();
4990 #ifdef F77_DUMMY_MAIN
4991 # ifdef __cplusplus
4992 extern "C"
4993 # endif
4994 int F77_DUMMY_MAIN() { return 1; }
4995 #endif
4997 main ()
4999 _xpg4_setrunelocale ();
5001 return 0;
5003 _ACEOF
5004 rm -f conftest.$ac_objext conftest$ac_exeext
5005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5006 (eval $ac_link) 2>&5
5007 ac_status=$?
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); } &&
5010 { ac_try='test -s conftest$ac_exeext'
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 (eval $ac_try) 2>&5
5013 ac_status=$?
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; }; then
5016 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
5017 else
5018 echo "$as_me: failed program was:" >&5
5019 cat conftest.$ac_ext >&5
5020 ac_cv_lib_xpg4__xpg4_setrunelocale=no
5022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5023 LIBS=$ac_check_lib_save_LIBS
5025 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
5026 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5027 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
5028 cat >>confdefs.h <<_ACEOF
5029 #define HAVE_LIBXPG4 1
5030 _ACEOF
5032 LIBS="-lxpg4 $LIBS"
5037 echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5
5038 echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
5039 if test "${ac_cv_lib_mmap_mmap+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
5041 else
5042 ac_check_lib_save_LIBS=$LIBS
5043 LIBS="-lmmap $LIBS"
5044 cat >conftest.$ac_ext <<_ACEOF
5045 #line $LINENO "configure"
5046 #include "confdefs.h"
5048 /* Override any gcc2 internal prototype to avoid an error. */
5049 #ifdef __cplusplus
5050 extern "C"
5051 #endif
5052 /* We use char because int might match the return type of a gcc2
5053 builtin and then its argument prototype would still apply. */
5054 char mmap ();
5055 #ifdef F77_DUMMY_MAIN
5056 # ifdef __cplusplus
5057 extern "C"
5058 # endif
5059 int F77_DUMMY_MAIN() { return 1; }
5060 #endif
5062 main ()
5064 mmap ();
5066 return 0;
5068 _ACEOF
5069 rm -f conftest.$ac_objext conftest$ac_exeext
5070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5071 (eval $ac_link) 2>&5
5072 ac_status=$?
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); } &&
5075 { ac_try='test -s conftest$ac_exeext'
5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 (eval $ac_try) 2>&5
5078 ac_status=$?
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; }; then
5081 ac_cv_lib_mmap_mmap=yes
5082 else
5083 echo "$as_me: failed program was:" >&5
5084 cat conftest.$ac_ext >&5
5085 ac_cv_lib_mmap_mmap=no
5087 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5088 LIBS=$ac_check_lib_save_LIBS
5090 echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5
5091 echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
5092 if test $ac_cv_lib_mmap_mmap = yes; then
5093 cat >>confdefs.h <<_ACEOF
5094 #define HAVE_LIBMMAP 1
5095 _ACEOF
5097 LIBS="-lmmap $LIBS"
5102 UTILLIBS=""
5105 for ac_func in openpty
5107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5108 echo "$as_me:$LINENO: checking for $ac_func" >&5
5109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5110 if eval "test \"\${$as_ac_var+set}\" = set"; then
5111 echo $ECHO_N "(cached) $ECHO_C" >&6
5112 else
5113 cat >conftest.$ac_ext <<_ACEOF
5114 #line $LINENO "configure"
5115 #include "confdefs.h"
5116 /* System header to define __stub macros and hopefully few prototypes,
5117 which can conflict with char $ac_func (); below. */
5118 #include <assert.h>
5119 /* Override any gcc2 internal prototype to avoid an error. */
5120 #ifdef __cplusplus
5121 extern "C"
5122 #endif
5123 /* We use char because int might match the return type of a gcc2
5124 builtin and then its argument prototype would still apply. */
5125 char $ac_func ();
5126 char (*f) ();
5128 #ifdef F77_DUMMY_MAIN
5129 # ifdef __cplusplus
5130 extern "C"
5131 # endif
5132 int F77_DUMMY_MAIN() { return 1; }
5133 #endif
5135 main ()
5137 /* The GNU C library defines this for functions which it implements
5138 to always fail with ENOSYS. Some functions are actually named
5139 something starting with __ and the normal name is an alias. */
5140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5141 choke me
5142 #else
5143 f = $ac_func;
5144 #endif
5147 return 0;
5149 _ACEOF
5150 rm -f conftest.$ac_objext conftest$ac_exeext
5151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5152 (eval $ac_link) 2>&5
5153 ac_status=$?
5154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155 (exit $ac_status); } &&
5156 { ac_try='test -s conftest$ac_exeext'
5157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5158 (eval $ac_try) 2>&5
5159 ac_status=$?
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); }; }; then
5162 eval "$as_ac_var=yes"
5163 else
5164 echo "$as_me: failed program was:" >&5
5165 cat conftest.$ac_ext >&5
5166 eval "$as_ac_var=no"
5168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5171 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5172 if test `eval echo '${'$as_ac_var'}'` = yes; then
5173 cat >>confdefs.h <<_ACEOF
5174 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5175 _ACEOF
5177 else
5178 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
5179 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
5180 if test "${ac_cv_lib_util_openpty+set}" = set; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
5182 else
5183 ac_check_lib_save_LIBS=$LIBS
5184 LIBS="-lutil $LIBS"
5185 cat >conftest.$ac_ext <<_ACEOF
5186 #line $LINENO "configure"
5187 #include "confdefs.h"
5189 /* Override any gcc2 internal prototype to avoid an error. */
5190 #ifdef __cplusplus
5191 extern "C"
5192 #endif
5193 /* We use char because int might match the return type of a gcc2
5194 builtin and then its argument prototype would still apply. */
5195 char openpty ();
5196 #ifdef F77_DUMMY_MAIN
5197 # ifdef __cplusplus
5198 extern "C"
5199 # endif
5200 int F77_DUMMY_MAIN() { return 1; }
5201 #endif
5203 main ()
5205 openpty ();
5207 return 0;
5209 _ACEOF
5210 rm -f conftest.$ac_objext conftest$ac_exeext
5211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5212 (eval $ac_link) 2>&5
5213 ac_status=$?
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); } &&
5216 { ac_try='test -s conftest$ac_exeext'
5217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218 (eval $ac_try) 2>&5
5219 ac_status=$?
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); }; }; then
5222 ac_cv_lib_util_openpty=yes
5223 else
5224 echo "$as_me: failed program was:" >&5
5225 cat conftest.$ac_ext >&5
5226 ac_cv_lib_util_openpty=no
5228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5229 LIBS=$ac_check_lib_save_LIBS
5231 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
5232 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
5233 if test $ac_cv_lib_util_openpty = yes; then
5234 cat >>confdefs.h <<\_ACEOF
5235 #define HAVE_OPENPTY 1
5236 _ACEOF
5238 UTILLIBS="-lutil"
5243 done
5246 DLLIBS=""
5248 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5249 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5250 if test "${ac_cv_header_stdc+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5252 else
5253 cat >conftest.$ac_ext <<_ACEOF
5254 #line $LINENO "configure"
5255 #include "confdefs.h"
5256 #include <stdlib.h>
5257 #include <stdarg.h>
5258 #include <string.h>
5259 #include <float.h>
5261 _ACEOF
5262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5264 ac_status=$?
5265 egrep -v '^ *\+' conftest.er1 >conftest.err
5266 rm -f conftest.er1
5267 cat conftest.err >&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); } >/dev/null; then
5270 if test -s conftest.err; then
5271 ac_cpp_err=$ac_c_preproc_warn_flag
5272 else
5273 ac_cpp_err=
5275 else
5276 ac_cpp_err=yes
5278 if test -z "$ac_cpp_err"; then
5279 ac_cv_header_stdc=yes
5280 else
5281 echo "$as_me: failed program was:" >&5
5282 cat conftest.$ac_ext >&5
5283 ac_cv_header_stdc=no
5285 rm -f conftest.err conftest.$ac_ext
5287 if test $ac_cv_header_stdc = yes; then
5288 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5289 cat >conftest.$ac_ext <<_ACEOF
5290 #line $LINENO "configure"
5291 #include "confdefs.h"
5292 #include <string.h>
5294 _ACEOF
5295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5296 egrep "memchr" >/dev/null 2>&1; then
5298 else
5299 ac_cv_header_stdc=no
5301 rm -f conftest*
5305 if test $ac_cv_header_stdc = yes; then
5306 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5307 cat >conftest.$ac_ext <<_ACEOF
5308 #line $LINENO "configure"
5309 #include "confdefs.h"
5310 #include <stdlib.h>
5312 _ACEOF
5313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5314 egrep "free" >/dev/null 2>&1; then
5316 else
5317 ac_cv_header_stdc=no
5319 rm -f conftest*
5323 if test $ac_cv_header_stdc = yes; then
5324 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5325 if test "$cross_compiling" = yes; then
5327 else
5328 cat >conftest.$ac_ext <<_ACEOF
5329 #line $LINENO "configure"
5330 #include "confdefs.h"
5331 #include <ctype.h>
5332 #if ((' ' & 0x0FF) == 0x020)
5333 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5334 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5335 #else
5336 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5337 || ('j' <= (c) && (c) <= 'r') \
5338 || ('s' <= (c) && (c) <= 'z'))
5339 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5340 #endif
5342 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5344 main ()
5346 int i;
5347 for (i = 0; i < 256; i++)
5348 if (XOR (islower (i), ISLOWER (i))
5349 || toupper (i) != TOUPPER (i))
5350 exit(2);
5351 exit (0);
5353 _ACEOF
5354 rm -f conftest$ac_exeext
5355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5356 (eval $ac_link) 2>&5
5357 ac_status=$?
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5361 (eval $ac_try) 2>&5
5362 ac_status=$?
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); }; }; then
5366 else
5367 echo "$as_me: program exited with status $ac_status" >&5
5368 echo "$as_me: failed program was:" >&5
5369 cat conftest.$ac_ext >&5
5370 ( exit $ac_status )
5371 ac_cv_header_stdc=no
5373 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5377 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5378 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5379 if test $ac_cv_header_stdc = yes; then
5381 cat >>confdefs.h <<\_ACEOF
5382 #define STDC_HEADERS 1
5383 _ACEOF
5387 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5397 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5398 inttypes.h stdint.h unistd.h
5400 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5401 echo "$as_me:$LINENO: checking for $ac_header" >&5
5402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5404 echo $ECHO_N "(cached) $ECHO_C" >&6
5405 else
5406 cat >conftest.$ac_ext <<_ACEOF
5407 #line $LINENO "configure"
5408 #include "confdefs.h"
5409 $ac_includes_default
5411 #include <$ac_header>
5412 _ACEOF
5413 rm -f conftest.$ac_objext
5414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5415 (eval $ac_compile) 2>&5
5416 ac_status=$?
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); } &&
5419 { ac_try='test -s conftest.$ac_objext'
5420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5421 (eval $ac_try) 2>&5
5422 ac_status=$?
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); }; }; then
5425 eval "$as_ac_Header=yes"
5426 else
5427 echo "$as_me: failed program was:" >&5
5428 cat conftest.$ac_ext >&5
5429 eval "$as_ac_Header=no"
5431 rm -f conftest.$ac_objext conftest.$ac_ext
5433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5436 cat >>confdefs.h <<_ACEOF
5437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5438 _ACEOF
5442 done
5446 for ac_header in dlfcn.h
5448 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5450 echo "$as_me:$LINENO: checking for $ac_header" >&5
5451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
5455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5457 else
5458 # Is the header compilable?
5459 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5460 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5461 cat >conftest.$ac_ext <<_ACEOF
5462 #line $LINENO "configure"
5463 #include "confdefs.h"
5464 $ac_includes_default
5465 #include <$ac_header>
5466 _ACEOF
5467 rm -f conftest.$ac_objext
5468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5469 (eval $ac_compile) 2>&5
5470 ac_status=$?
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); } &&
5473 { ac_try='test -s conftest.$ac_objext'
5474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5475 (eval $ac_try) 2>&5
5476 ac_status=$?
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); }; }; then
5479 ac_header_compiler=yes
5480 else
5481 echo "$as_me: failed program was:" >&5
5482 cat conftest.$ac_ext >&5
5483 ac_header_compiler=no
5485 rm -f conftest.$ac_objext conftest.$ac_ext
5486 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5487 echo "${ECHO_T}$ac_header_compiler" >&6
5489 # Is the header present?
5490 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5491 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5492 cat >conftest.$ac_ext <<_ACEOF
5493 #line $LINENO "configure"
5494 #include "confdefs.h"
5495 #include <$ac_header>
5496 _ACEOF
5497 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5498 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5499 ac_status=$?
5500 egrep -v '^ *\+' conftest.er1 >conftest.err
5501 rm -f conftest.er1
5502 cat conftest.err >&5
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); } >/dev/null; then
5505 if test -s conftest.err; then
5506 ac_cpp_err=$ac_c_preproc_warn_flag
5507 else
5508 ac_cpp_err=
5510 else
5511 ac_cpp_err=yes
5513 if test -z "$ac_cpp_err"; then
5514 ac_header_preproc=yes
5515 else
5516 echo "$as_me: failed program was:" >&5
5517 cat conftest.$ac_ext >&5
5518 ac_header_preproc=no
5520 rm -f conftest.err conftest.$ac_ext
5521 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5522 echo "${ECHO_T}$ac_header_preproc" >&6
5524 # So? What about this header?
5525 case $ac_header_compiler:$ac_header_preproc in
5526 yes:no )
5527 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5531 no:yes )
5532 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5534 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5535 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5538 esac
5539 echo "$as_me:$LINENO: checking for $ac_header" >&5
5540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5543 else
5544 eval "$as_ac_Header=$ac_header_preproc"
5546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5551 cat >>confdefs.h <<_ACEOF
5552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5553 _ACEOF
5555 for ac_func in dlopen
5557 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5558 echo "$as_me:$LINENO: checking for $ac_func" >&5
5559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5560 if eval "test \"\${$as_ac_var+set}\" = set"; then
5561 echo $ECHO_N "(cached) $ECHO_C" >&6
5562 else
5563 cat >conftest.$ac_ext <<_ACEOF
5564 #line $LINENO "configure"
5565 #include "confdefs.h"
5566 /* System header to define __stub macros and hopefully few prototypes,
5567 which can conflict with char $ac_func (); below. */
5568 #include <assert.h>
5569 /* Override any gcc2 internal prototype to avoid an error. */
5570 #ifdef __cplusplus
5571 extern "C"
5572 #endif
5573 /* We use char because int might match the return type of a gcc2
5574 builtin and then its argument prototype would still apply. */
5575 char $ac_func ();
5576 char (*f) ();
5578 #ifdef F77_DUMMY_MAIN
5579 # ifdef __cplusplus
5580 extern "C"
5581 # endif
5582 int F77_DUMMY_MAIN() { return 1; }
5583 #endif
5585 main ()
5587 /* The GNU C library defines this for functions which it implements
5588 to always fail with ENOSYS. Some functions are actually named
5589 something starting with __ and the normal name is an alias. */
5590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5591 choke me
5592 #else
5593 f = $ac_func;
5594 #endif
5597 return 0;
5599 _ACEOF
5600 rm -f conftest.$ac_objext conftest$ac_exeext
5601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5602 (eval $ac_link) 2>&5
5603 ac_status=$?
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); } &&
5606 { ac_try='test -s conftest$ac_exeext'
5607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608 (eval $ac_try) 2>&5
5609 ac_status=$?
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; }; then
5612 eval "$as_ac_var=yes"
5613 else
5614 echo "$as_me: failed program was:" >&5
5615 cat conftest.$ac_ext >&5
5616 eval "$as_ac_var=no"
5618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5621 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5622 if test `eval echo '${'$as_ac_var'}'` = yes; then
5623 cat >>confdefs.h <<_ACEOF
5624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5625 _ACEOF
5627 else
5628 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5629 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5630 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5631 echo $ECHO_N "(cached) $ECHO_C" >&6
5632 else
5633 ac_check_lib_save_LIBS=$LIBS
5634 LIBS="-ldl $LIBS"
5635 cat >conftest.$ac_ext <<_ACEOF
5636 #line $LINENO "configure"
5637 #include "confdefs.h"
5639 /* Override any gcc2 internal prototype to avoid an error. */
5640 #ifdef __cplusplus
5641 extern "C"
5642 #endif
5643 /* We use char because int might match the return type of a gcc2
5644 builtin and then its argument prototype would still apply. */
5645 char dlopen ();
5646 #ifdef F77_DUMMY_MAIN
5647 # ifdef __cplusplus
5648 extern "C"
5649 # endif
5650 int F77_DUMMY_MAIN() { return 1; }
5651 #endif
5653 main ()
5655 dlopen ();
5657 return 0;
5659 _ACEOF
5660 rm -f conftest.$ac_objext conftest$ac_exeext
5661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5662 (eval $ac_link) 2>&5
5663 ac_status=$?
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); } &&
5666 { ac_try='test -s conftest$ac_exeext'
5667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668 (eval $ac_try) 2>&5
5669 ac_status=$?
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); }; }; then
5672 ac_cv_lib_dl_dlopen=yes
5673 else
5674 echo "$as_me: failed program was:" >&5
5675 cat conftest.$ac_ext >&5
5676 ac_cv_lib_dl_dlopen=no
5678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5679 LIBS=$ac_check_lib_save_LIBS
5681 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5682 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5683 if test $ac_cv_lib_dl_dlopen = yes; then
5685 cat >>confdefs.h <<\_ACEOF
5686 #define HAVE_DLOPEN 1
5687 _ACEOF
5689 DLLIBS="-ldl"
5690 else
5691 LIBEXT="a"
5696 done
5698 else
5699 LIBEXT="a"
5703 done
5706 JPEGLIB=""
5709 for ac_header in jpeglib.h
5711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5713 echo "$as_me:$LINENO: checking for $ac_header" >&5
5714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5720 else
5721 # Is the header compilable?
5722 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5724 cat >conftest.$ac_ext <<_ACEOF
5725 #line $LINENO "configure"
5726 #include "confdefs.h"
5727 $ac_includes_default
5728 #include <$ac_header>
5729 _ACEOF
5730 rm -f conftest.$ac_objext
5731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5732 (eval $ac_compile) 2>&5
5733 ac_status=$?
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); } &&
5736 { ac_try='test -s conftest.$ac_objext'
5737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5738 (eval $ac_try) 2>&5
5739 ac_status=$?
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); }; }; then
5742 ac_header_compiler=yes
5743 else
5744 echo "$as_me: failed program was:" >&5
5745 cat conftest.$ac_ext >&5
5746 ac_header_compiler=no
5748 rm -f conftest.$ac_objext conftest.$ac_ext
5749 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5750 echo "${ECHO_T}$ac_header_compiler" >&6
5752 # Is the header present?
5753 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5754 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5755 cat >conftest.$ac_ext <<_ACEOF
5756 #line $LINENO "configure"
5757 #include "confdefs.h"
5758 #include <$ac_header>
5759 _ACEOF
5760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5762 ac_status=$?
5763 egrep -v '^ *\+' conftest.er1 >conftest.err
5764 rm -f conftest.er1
5765 cat conftest.err >&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); } >/dev/null; then
5768 if test -s conftest.err; then
5769 ac_cpp_err=$ac_c_preproc_warn_flag
5770 else
5771 ac_cpp_err=
5773 else
5774 ac_cpp_err=yes
5776 if test -z "$ac_cpp_err"; then
5777 ac_header_preproc=yes
5778 else
5779 echo "$as_me: failed program was:" >&5
5780 cat conftest.$ac_ext >&5
5781 ac_header_preproc=no
5783 rm -f conftest.err conftest.$ac_ext
5784 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5785 echo "${ECHO_T}$ac_header_preproc" >&6
5787 # So? What about this header?
5788 case $ac_header_compiler:$ac_header_preproc in
5789 yes:no )
5790 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5791 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5794 no:yes )
5795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5798 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5801 esac
5802 echo "$as_me:$LINENO: checking for $ac_header" >&5
5803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5805 echo $ECHO_N "(cached) $ECHO_C" >&6
5806 else
5807 eval "$as_ac_Header=$ac_header_preproc"
5809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5814 cat >>confdefs.h <<_ACEOF
5815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5816 _ACEOF
5817 echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
5818 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
5819 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5821 else
5822 ac_check_lib_save_LIBS=$LIBS
5823 LIBS="-ljpeg $LIBS"
5824 cat >conftest.$ac_ext <<_ACEOF
5825 #line $LINENO "configure"
5826 #include "confdefs.h"
5828 /* Override any gcc2 internal prototype to avoid an error. */
5829 #ifdef __cplusplus
5830 extern "C"
5831 #endif
5832 /* We use char because int might match the return type of a gcc2
5833 builtin and then its argument prototype would still apply. */
5834 char jpeg_start_decompress ();
5835 #ifdef F77_DUMMY_MAIN
5836 # ifdef __cplusplus
5837 extern "C"
5838 # endif
5839 int F77_DUMMY_MAIN() { return 1; }
5840 #endif
5842 main ()
5844 jpeg_start_decompress ();
5846 return 0;
5848 _ACEOF
5849 rm -f conftest.$ac_objext conftest$ac_exeext
5850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5851 (eval $ac_link) 2>&5
5852 ac_status=$?
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); } &&
5855 { ac_try='test -s conftest$ac_exeext'
5856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5857 (eval $ac_try) 2>&5
5858 ac_status=$?
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); }; }; then
5861 ac_cv_lib_jpeg_jpeg_start_decompress=yes
5862 else
5863 echo "$as_me: failed program was:" >&5
5864 cat conftest.$ac_ext >&5
5865 ac_cv_lib_jpeg_jpeg_start_decompress=no
5867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5868 LIBS=$ac_check_lib_save_LIBS
5870 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
5871 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
5872 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
5874 cat >>confdefs.h <<\_ACEOF
5875 #define HAVE_LIBJPEG 1
5876 _ACEOF
5878 JPEGLIB="-ljpeg"
5885 done
5891 XFILES=""
5893 OPENGLFILES=""
5895 GLU32FILES=""
5896 if test "$have_x" = "yes"
5897 then
5898 XLIB="-lXext -lX11"
5899 ac_save_CPPFLAGS="$CPPFLAGS"
5900 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5903 for ac_header in X11/Xlib.h
5905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5907 echo "$as_me:$LINENO: checking for $ac_header" >&5
5908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
5912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5914 else
5915 # Is the header compilable?
5916 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5917 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5918 cat >conftest.$ac_ext <<_ACEOF
5919 #line $LINENO "configure"
5920 #include "confdefs.h"
5921 $ac_includes_default
5922 #include <$ac_header>
5923 _ACEOF
5924 rm -f conftest.$ac_objext
5925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5926 (eval $ac_compile) 2>&5
5927 ac_status=$?
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } &&
5930 { ac_try='test -s conftest.$ac_objext'
5931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5932 (eval $ac_try) 2>&5
5933 ac_status=$?
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); }; }; then
5936 ac_header_compiler=yes
5937 else
5938 echo "$as_me: failed program was:" >&5
5939 cat conftest.$ac_ext >&5
5940 ac_header_compiler=no
5942 rm -f conftest.$ac_objext conftest.$ac_ext
5943 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5944 echo "${ECHO_T}$ac_header_compiler" >&6
5946 # Is the header present?
5947 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5948 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5949 cat >conftest.$ac_ext <<_ACEOF
5950 #line $LINENO "configure"
5951 #include "confdefs.h"
5952 #include <$ac_header>
5953 _ACEOF
5954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5956 ac_status=$?
5957 egrep -v '^ *\+' conftest.er1 >conftest.err
5958 rm -f conftest.er1
5959 cat conftest.err >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); } >/dev/null; then
5962 if test -s conftest.err; then
5963 ac_cpp_err=$ac_c_preproc_warn_flag
5964 else
5965 ac_cpp_err=
5967 else
5968 ac_cpp_err=yes
5970 if test -z "$ac_cpp_err"; then
5971 ac_header_preproc=yes
5972 else
5973 echo "$as_me: failed program was:" >&5
5974 cat conftest.$ac_ext >&5
5975 ac_header_preproc=no
5977 rm -f conftest.err conftest.$ac_ext
5978 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5979 echo "${ECHO_T}$ac_header_preproc" >&6
5981 # So? What about this header?
5982 case $ac_header_compiler:$ac_header_preproc in
5983 yes:no )
5984 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5988 no:yes )
5989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5992 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5995 esac
5996 echo "$as_me:$LINENO: checking for $ac_header" >&5
5997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5999 echo $ECHO_N "(cached) $ECHO_C" >&6
6000 else
6001 eval "$as_ac_Header=$ac_header_preproc"
6003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6008 cat >>confdefs.h <<_ACEOF
6009 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6010 _ACEOF
6013 for ac_header in X11/XKBlib.h
6015 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6017 echo "$as_me:$LINENO: checking for $ac_header" >&5
6018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6
6022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6024 else
6025 # Is the header compilable?
6026 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6028 cat >conftest.$ac_ext <<_ACEOF
6029 #line $LINENO "configure"
6030 #include "confdefs.h"
6031 $ac_includes_default
6032 #include <$ac_header>
6033 _ACEOF
6034 rm -f conftest.$ac_objext
6035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6036 (eval $ac_compile) 2>&5
6037 ac_status=$?
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); } &&
6040 { ac_try='test -s conftest.$ac_objext'
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_header_compiler=yes
6047 else
6048 echo "$as_me: failed program was:" >&5
6049 cat conftest.$ac_ext >&5
6050 ac_header_compiler=no
6052 rm -f conftest.$ac_objext conftest.$ac_ext
6053 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6054 echo "${ECHO_T}$ac_header_compiler" >&6
6056 # Is the header present?
6057 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6058 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6059 cat >conftest.$ac_ext <<_ACEOF
6060 #line $LINENO "configure"
6061 #include "confdefs.h"
6062 #include <$ac_header>
6063 _ACEOF
6064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6066 ac_status=$?
6067 egrep -v '^ *\+' conftest.er1 >conftest.err
6068 rm -f conftest.er1
6069 cat conftest.err >&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } >/dev/null; then
6072 if test -s conftest.err; then
6073 ac_cpp_err=$ac_c_preproc_warn_flag
6074 else
6075 ac_cpp_err=
6077 else
6078 ac_cpp_err=yes
6080 if test -z "$ac_cpp_err"; then
6081 ac_header_preproc=yes
6082 else
6083 echo "$as_me: failed program was:" >&5
6084 cat conftest.$ac_ext >&5
6085 ac_header_preproc=no
6087 rm -f conftest.err conftest.$ac_ext
6088 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6089 echo "${ECHO_T}$ac_header_preproc" >&6
6091 # So? What about this header?
6092 case $ac_header_compiler:$ac_header_preproc in
6093 yes:no )
6094 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6095 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6098 no:yes )
6099 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6100 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6101 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6102 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6104 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6105 esac
6106 echo "$as_me:$LINENO: checking for $ac_header" >&5
6107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111 eval "$as_ac_Header=$ac_header_preproc"
6113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6118 cat >>confdefs.h <<_ACEOF
6119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6120 _ACEOF
6121 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
6122 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
6123 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6125 else
6126 ac_check_lib_save_LIBS=$LIBS
6127 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6128 cat >conftest.$ac_ext <<_ACEOF
6129 #line $LINENO "configure"
6130 #include "confdefs.h"
6132 /* Override any gcc2 internal prototype to avoid an error. */
6133 #ifdef __cplusplus
6134 extern "C"
6135 #endif
6136 /* We use char because int might match the return type of a gcc2
6137 builtin and then its argument prototype would still apply. */
6138 char XkbQueryExtension ();
6139 #ifdef F77_DUMMY_MAIN
6140 # ifdef __cplusplus
6141 extern "C"
6142 # endif
6143 int F77_DUMMY_MAIN() { return 1; }
6144 #endif
6146 main ()
6148 XkbQueryExtension ();
6150 return 0;
6152 _ACEOF
6153 rm -f conftest.$ac_objext conftest$ac_exeext
6154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6155 (eval $ac_link) 2>&5
6156 ac_status=$?
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); } &&
6159 { ac_try='test -s conftest$ac_exeext'
6160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6161 (eval $ac_try) 2>&5
6162 ac_status=$?
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); }; }; then
6165 ac_cv_lib_X11_XkbQueryExtension=yes
6166 else
6167 echo "$as_me: failed program was:" >&5
6168 cat conftest.$ac_ext >&5
6169 ac_cv_lib_X11_XkbQueryExtension=no
6171 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6172 LIBS=$ac_check_lib_save_LIBS
6174 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
6175 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
6176 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
6178 cat >>confdefs.h <<\_ACEOF
6179 #define HAVE_XKB 1
6180 _ACEOF
6185 else
6186 { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5
6187 echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
6191 done
6195 for ac_header in X11/extensions/XShm.h
6197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6198 echo "$as_me:$LINENO: checking for $ac_header" >&5
6199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 else
6203 cat >conftest.$ac_ext <<_ACEOF
6204 #line $LINENO "configure"
6205 #include "confdefs.h"
6206 #include <X11/Xlib.h>
6208 #include <$ac_header>
6209 _ACEOF
6210 rm -f conftest.$ac_objext
6211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6212 (eval $ac_compile) 2>&5
6213 ac_status=$?
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); } &&
6216 { ac_try='test -s conftest.$ac_objext'
6217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6218 (eval $ac_try) 2>&5
6219 ac_status=$?
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); }; }; then
6222 eval "$as_ac_Header=yes"
6223 else
6224 echo "$as_me: failed program was:" >&5
6225 cat conftest.$ac_ext >&5
6226 eval "$as_ac_Header=no"
6228 rm -f conftest.$ac_objext conftest.$ac_ext
6230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6233 cat >>confdefs.h <<_ACEOF
6234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6235 _ACEOF
6236 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
6237 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6238 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6239 echo $ECHO_N "(cached) $ECHO_C" >&6
6240 else
6241 ac_check_lib_save_LIBS=$LIBS
6242 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6243 cat >conftest.$ac_ext <<_ACEOF
6244 #line $LINENO "configure"
6245 #include "confdefs.h"
6247 /* Override any gcc2 internal prototype to avoid an error. */
6248 #ifdef __cplusplus
6249 extern "C"
6250 #endif
6251 /* We use char because int might match the return type of a gcc2
6252 builtin and then its argument prototype would still apply. */
6253 char XShmQueryExtension ();
6254 #ifdef F77_DUMMY_MAIN
6255 # ifdef __cplusplus
6256 extern "C"
6257 # endif
6258 int F77_DUMMY_MAIN() { return 1; }
6259 #endif
6261 main ()
6263 XShmQueryExtension ();
6265 return 0;
6267 _ACEOF
6268 rm -f conftest.$ac_objext conftest$ac_exeext
6269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6270 (eval $ac_link) 2>&5
6271 ac_status=$?
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); } &&
6274 { ac_try='test -s conftest$ac_exeext'
6275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6276 (eval $ac_try) 2>&5
6277 ac_status=$?
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); }; }; then
6280 ac_cv_lib_Xext_XShmQueryExtension=yes
6281 else
6282 echo "$as_me: failed program was:" >&5
6283 cat conftest.$ac_ext >&5
6284 ac_cv_lib_Xext_XShmQueryExtension=no
6286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6287 LIBS=$ac_check_lib_save_LIBS
6289 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
6290 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
6291 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
6293 cat >>confdefs.h <<\_ACEOF
6294 #define HAVE_LIBXXSHM 1
6295 _ACEOF
6300 else
6301 { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5
6302 echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
6305 done
6309 for ac_header in X11/extensions/shape.h
6311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6312 echo "$as_me:$LINENO: checking for $ac_header" >&5
6313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6316 else
6317 cat >conftest.$ac_ext <<_ACEOF
6318 #line $LINENO "configure"
6319 #include "confdefs.h"
6320 #include <X11/Xlib.h>
6322 #include <$ac_header>
6323 _ACEOF
6324 rm -f conftest.$ac_objext
6325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6326 (eval $ac_compile) 2>&5
6327 ac_status=$?
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); } &&
6330 { ac_try='test -s conftest.$ac_objext'
6331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6332 (eval $ac_try) 2>&5
6333 ac_status=$?
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); }; }; then
6336 eval "$as_ac_Header=yes"
6337 else
6338 echo "$as_me: failed program was:" >&5
6339 cat conftest.$ac_ext >&5
6340 eval "$as_ac_Header=no"
6342 rm -f conftest.$ac_objext conftest.$ac_ext
6344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6346 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6347 cat >>confdefs.h <<_ACEOF
6348 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6349 _ACEOF
6350 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
6351 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6352 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6354 else
6355 ac_check_lib_save_LIBS=$LIBS
6356 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6357 cat >conftest.$ac_ext <<_ACEOF
6358 #line $LINENO "configure"
6359 #include "confdefs.h"
6361 /* Override any gcc2 internal prototype to avoid an error. */
6362 #ifdef __cplusplus
6363 extern "C"
6364 #endif
6365 /* We use char because int might match the return type of a gcc2
6366 builtin and then its argument prototype would still apply. */
6367 char XShapeQueryExtension ();
6368 #ifdef F77_DUMMY_MAIN
6369 # ifdef __cplusplus
6370 extern "C"
6371 # endif
6372 int F77_DUMMY_MAIN() { return 1; }
6373 #endif
6375 main ()
6377 XShapeQueryExtension ();
6379 return 0;
6381 _ACEOF
6382 rm -f conftest.$ac_objext conftest$ac_exeext
6383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6384 (eval $ac_link) 2>&5
6385 ac_status=$?
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); } &&
6388 { ac_try='test -s conftest$ac_exeext'
6389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6390 (eval $ac_try) 2>&5
6391 ac_status=$?
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); }; }; then
6394 ac_cv_lib_Xext_XShapeQueryExtension=yes
6395 else
6396 echo "$as_me: failed program was:" >&5
6397 cat conftest.$ac_ext >&5
6398 ac_cv_lib_Xext_XShapeQueryExtension=no
6400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6401 LIBS=$ac_check_lib_save_LIBS
6403 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6404 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6405 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6407 cat >>confdefs.h <<\_ACEOF
6408 #define HAVE_LIBXSHAPE 1
6409 _ACEOF
6414 else
6415 { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5
6416 echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
6419 done
6423 for ac_header in X11/extensions/xf86dga.h
6425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6426 echo "$as_me:$LINENO: checking for $ac_header" >&5
6427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
6430 else
6431 cat >conftest.$ac_ext <<_ACEOF
6432 #line $LINENO "configure"
6433 #include "confdefs.h"
6434 #include <X11/Xlib.h>
6436 #include <$ac_header>
6437 _ACEOF
6438 rm -f conftest.$ac_objext
6439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6440 (eval $ac_compile) 2>&5
6441 ac_status=$?
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); } &&
6444 { ac_try='test -s conftest.$ac_objext'
6445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446 (eval $ac_try) 2>&5
6447 ac_status=$?
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; }; then
6450 eval "$as_ac_Header=yes"
6451 else
6452 echo "$as_me: failed program was:" >&5
6453 cat conftest.$ac_ext >&5
6454 eval "$as_ac_Header=no"
6456 rm -f conftest.$ac_objext conftest.$ac_ext
6458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6461 cat >>confdefs.h <<_ACEOF
6462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6463 _ACEOF
6464 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
6465 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6466 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
6467 echo $ECHO_N "(cached) $ECHO_C" >&6
6468 else
6469 ac_check_lib_save_LIBS=$LIBS
6470 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6471 $LIBS"
6472 cat >conftest.$ac_ext <<_ACEOF
6473 #line $LINENO "configure"
6474 #include "confdefs.h"
6476 /* Override any gcc2 internal prototype to avoid an error. */
6477 #ifdef __cplusplus
6478 extern "C"
6479 #endif
6480 /* We use char because int might match the return type of a gcc2
6481 builtin and then its argument prototype would still apply. */
6482 char XDGAQueryExtension ();
6483 #ifdef F77_DUMMY_MAIN
6484 # ifdef __cplusplus
6485 extern "C"
6486 # endif
6487 int F77_DUMMY_MAIN() { return 1; }
6488 #endif
6490 main ()
6492 XDGAQueryExtension ();
6494 return 0;
6496 _ACEOF
6497 rm -f conftest.$ac_objext conftest$ac_exeext
6498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6499 (eval $ac_link) 2>&5
6500 ac_status=$?
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); } &&
6503 { ac_try='test -s conftest$ac_exeext'
6504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6505 (eval $ac_try) 2>&5
6506 ac_status=$?
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }; }; then
6509 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
6510 else
6511 echo "$as_me: failed program was:" >&5
6512 cat conftest.$ac_ext >&5
6513 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
6515 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6516 LIBS=$ac_check_lib_save_LIBS
6518 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
6519 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
6520 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
6522 cat >>confdefs.h <<\_ACEOF
6523 #define HAVE_LIBXXF86DGA2 1
6524 _ACEOF
6526 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
6528 else
6529 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
6530 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6531 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 else
6534 ac_check_lib_save_LIBS=$LIBS
6535 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6536 $LIBS"
6537 cat >conftest.$ac_ext <<_ACEOF
6538 #line $LINENO "configure"
6539 #include "confdefs.h"
6541 /* Override any gcc2 internal prototype to avoid an error. */
6542 #ifdef __cplusplus
6543 extern "C"
6544 #endif
6545 /* We use char because int might match the return type of a gcc2
6546 builtin and then its argument prototype would still apply. */
6547 char XF86DGAQueryExtension ();
6548 #ifdef F77_DUMMY_MAIN
6549 # ifdef __cplusplus
6550 extern "C"
6551 # endif
6552 int F77_DUMMY_MAIN() { return 1; }
6553 #endif
6555 main ()
6557 XF86DGAQueryExtension ();
6559 return 0;
6561 _ACEOF
6562 rm -f conftest.$ac_objext conftest$ac_exeext
6563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6564 (eval $ac_link) 2>&5
6565 ac_status=$?
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); } &&
6568 { ac_try='test -s conftest$ac_exeext'
6569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6570 (eval $ac_try) 2>&5
6571 ac_status=$?
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); }; }; then
6574 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
6575 else
6576 echo "$as_me: failed program was:" >&5
6577 cat conftest.$ac_ext >&5
6578 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
6580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6581 LIBS=$ac_check_lib_save_LIBS
6583 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
6584 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
6585 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
6587 cat >>confdefs.h <<\_ACEOF
6588 #define HAVE_LIBXXF86DGA 1
6589 _ACEOF
6591 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
6599 else
6600 { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5
6601 echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
6604 done
6608 for ac_header in X11/extensions/xf86vmode.h
6610 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6611 echo "$as_me:$LINENO: checking for $ac_header" >&5
6612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6614 echo $ECHO_N "(cached) $ECHO_C" >&6
6615 else
6616 cat >conftest.$ac_ext <<_ACEOF
6617 #line $LINENO "configure"
6618 #include "confdefs.h"
6619 #include <X11/Xlib.h>
6621 #include <$ac_header>
6622 _ACEOF
6623 rm -f conftest.$ac_objext
6624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6625 (eval $ac_compile) 2>&5
6626 ac_status=$?
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); } &&
6629 { ac_try='test -s conftest.$ac_objext'
6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631 (eval $ac_try) 2>&5
6632 ac_status=$?
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; }; then
6635 eval "$as_ac_Header=yes"
6636 else
6637 echo "$as_me: failed program was:" >&5
6638 cat conftest.$ac_ext >&5
6639 eval "$as_ac_Header=no"
6641 rm -f conftest.$ac_objext conftest.$ac_ext
6643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6646 cat >>confdefs.h <<_ACEOF
6647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6648 _ACEOF
6649 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
6650 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
6651 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
6652 echo $ECHO_N "(cached) $ECHO_C" >&6
6653 else
6654 ac_check_lib_save_LIBS=$LIBS
6655 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6656 $LIBS"
6657 cat >conftest.$ac_ext <<_ACEOF
6658 #line $LINENO "configure"
6659 #include "confdefs.h"
6661 /* Override any gcc2 internal prototype to avoid an error. */
6662 #ifdef __cplusplus
6663 extern "C"
6664 #endif
6665 /* We use char because int might match the return type of a gcc2
6666 builtin and then its argument prototype would still apply. */
6667 char XF86VidModeQueryExtension ();
6668 #ifdef F77_DUMMY_MAIN
6669 # ifdef __cplusplus
6670 extern "C"
6671 # endif
6672 int F77_DUMMY_MAIN() { return 1; }
6673 #endif
6675 main ()
6677 XF86VidModeQueryExtension ();
6679 return 0;
6681 _ACEOF
6682 rm -f conftest.$ac_objext conftest$ac_exeext
6683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6684 (eval $ac_link) 2>&5
6685 ac_status=$?
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); } &&
6688 { ac_try='test -s conftest$ac_exeext'
6689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6690 (eval $ac_try) 2>&5
6691 ac_status=$?
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); }; }; then
6694 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
6695 else
6696 echo "$as_me: failed program was:" >&5
6697 cat conftest.$ac_ext >&5
6698 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
6700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6701 LIBS=$ac_check_lib_save_LIBS
6703 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
6704 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
6705 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
6707 cat >>confdefs.h <<\_ACEOF
6708 #define HAVE_LIBXXF86VM 1
6709 _ACEOF
6711 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
6716 else
6717 { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
6718 echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
6721 done
6725 for ac_header in X11/extensions/Xvlib.h
6727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6728 echo "$as_me:$LINENO: checking for $ac_header" >&5
6729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 else
6733 cat >conftest.$ac_ext <<_ACEOF
6734 #line $LINENO "configure"
6735 #include "confdefs.h"
6736 #include <X11/Xlib.h>
6738 #include <$ac_header>
6739 _ACEOF
6740 rm -f conftest.$ac_objext
6741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6742 (eval $ac_compile) 2>&5
6743 ac_status=$?
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); } &&
6746 { ac_try='test -s conftest.$ac_objext'
6747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6748 (eval $ac_try) 2>&5
6749 ac_status=$?
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); }; }; then
6752 eval "$as_ac_Header=yes"
6753 else
6754 echo "$as_me: failed program was:" >&5
6755 cat conftest.$ac_ext >&5
6756 eval "$as_ac_Header=no"
6758 rm -f conftest.$ac_objext conftest.$ac_ext
6760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6763 cat >>confdefs.h <<_ACEOF
6764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6765 _ACEOF
6766 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
6767 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
6768 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
6769 echo $ECHO_N "(cached) $ECHO_C" >&6
6770 else
6771 ac_check_lib_save_LIBS=$LIBS
6772 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6773 $LIBS"
6774 cat >conftest.$ac_ext <<_ACEOF
6775 #line $LINENO "configure"
6776 #include "confdefs.h"
6778 /* Override any gcc2 internal prototype to avoid an error. */
6779 #ifdef __cplusplus
6780 extern "C"
6781 #endif
6782 /* We use char because int might match the return type of a gcc2
6783 builtin and then its argument prototype would still apply. */
6784 char XvShmCreateImage ();
6785 #ifdef F77_DUMMY_MAIN
6786 # ifdef __cplusplus
6787 extern "C"
6788 # endif
6789 int F77_DUMMY_MAIN() { return 1; }
6790 #endif
6792 main ()
6794 XvShmCreateImage ();
6796 return 0;
6798 _ACEOF
6799 rm -f conftest.$ac_objext conftest$ac_exeext
6800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6801 (eval $ac_link) 2>&5
6802 ac_status=$?
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); } &&
6805 { ac_try='test -s conftest$ac_exeext'
6806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807 (eval $ac_try) 2>&5
6808 ac_status=$?
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); }; }; then
6811 ac_cv_lib_Xv_XvShmCreateImage=yes
6812 else
6813 echo "$as_me: failed program was:" >&5
6814 cat conftest.$ac_ext >&5
6815 ac_cv_lib_Xv_XvShmCreateImage=no
6817 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6818 LIBS=$ac_check_lib_save_LIBS
6820 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
6821 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
6822 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
6824 cat >>confdefs.h <<\_ACEOF
6825 #define HAVE_XVIDEO 1
6826 _ACEOF
6828 X_PRE_LIBS="$X_PRE_LIBS -lXv"
6833 else
6834 { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5
6835 echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
6838 done
6842 for ac_header in X11/extensions/Xrender.h
6844 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6845 echo "$as_me:$LINENO: checking for $ac_header" >&5
6846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
6849 else
6850 cat >conftest.$ac_ext <<_ACEOF
6851 #line $LINENO "configure"
6852 #include "confdefs.h"
6853 #include <X11/Xlib.h>
6855 #include <$ac_header>
6856 _ACEOF
6857 rm -f conftest.$ac_objext
6858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6859 (eval $ac_compile) 2>&5
6860 ac_status=$?
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); } &&
6863 { ac_try='test -s conftest.$ac_objext'
6864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6865 (eval $ac_try) 2>&5
6866 ac_status=$?
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); }; }; then
6869 eval "$as_ac_Header=yes"
6870 else
6871 echo "$as_me: failed program was:" >&5
6872 cat conftest.$ac_ext >&5
6873 eval "$as_ac_Header=no"
6875 rm -f conftest.$ac_objext conftest.$ac_ext
6877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6878 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6880 cat >>confdefs.h <<_ACEOF
6881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6882 _ACEOF
6886 done
6892 done
6894 if test "x$enable_opengl" != "xno"
6895 then
6896 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
6897 then
6898 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
6899 This prevents linking to OpenGL. Delete the file and restart configure." >&5
6900 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
6901 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
6902 { (exit 1); exit 1; }; }
6907 for ac_header in GL/gl.h GL/glx.h
6909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6911 echo "$as_me:$LINENO: checking for $ac_header" >&5
6912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6914 echo $ECHO_N "(cached) $ECHO_C" >&6
6916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6918 else
6919 # Is the header compilable?
6920 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6921 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6922 cat >conftest.$ac_ext <<_ACEOF
6923 #line $LINENO "configure"
6924 #include "confdefs.h"
6925 $ac_includes_default
6926 #include <$ac_header>
6927 _ACEOF
6928 rm -f conftest.$ac_objext
6929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6930 (eval $ac_compile) 2>&5
6931 ac_status=$?
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); } &&
6934 { ac_try='test -s conftest.$ac_objext'
6935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6936 (eval $ac_try) 2>&5
6937 ac_status=$?
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); }; }; then
6940 ac_header_compiler=yes
6941 else
6942 echo "$as_me: failed program was:" >&5
6943 cat conftest.$ac_ext >&5
6944 ac_header_compiler=no
6946 rm -f conftest.$ac_objext conftest.$ac_ext
6947 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6948 echo "${ECHO_T}$ac_header_compiler" >&6
6950 # Is the header present?
6951 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6952 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6953 cat >conftest.$ac_ext <<_ACEOF
6954 #line $LINENO "configure"
6955 #include "confdefs.h"
6956 #include <$ac_header>
6957 _ACEOF
6958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6960 ac_status=$?
6961 egrep -v '^ *\+' conftest.er1 >conftest.err
6962 rm -f conftest.er1
6963 cat conftest.err >&5
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); } >/dev/null; then
6966 if test -s conftest.err; then
6967 ac_cpp_err=$ac_c_preproc_warn_flag
6968 else
6969 ac_cpp_err=
6971 else
6972 ac_cpp_err=yes
6974 if test -z "$ac_cpp_err"; then
6975 ac_header_preproc=yes
6976 else
6977 echo "$as_me: failed program was:" >&5
6978 cat conftest.$ac_ext >&5
6979 ac_header_preproc=no
6981 rm -f conftest.err conftest.$ac_ext
6982 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6983 echo "${ECHO_T}$ac_header_preproc" >&6
6985 # So? What about this header?
6986 case $ac_header_compiler:$ac_header_preproc in
6987 yes:no )
6988 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6992 no:yes )
6993 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6995 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6996 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6999 esac
7000 echo "$as_me:$LINENO: checking for $ac_header" >&5
7001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7003 echo $ECHO_N "(cached) $ECHO_C" >&6
7004 else
7005 eval "$as_ac_Header=$ac_header_preproc"
7007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7011 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7012 cat >>confdefs.h <<_ACEOF
7013 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7014 _ACEOF
7018 done
7020 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
7021 then
7023 for ac_header in GL/glext.h
7025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7026 echo "$as_me:$LINENO: checking for $ac_header" >&5
7027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7030 else
7031 cat >conftest.$ac_ext <<_ACEOF
7032 #line $LINENO "configure"
7033 #include "confdefs.h"
7034 #include <GL/glx.h>
7036 #include <$ac_header>
7037 _ACEOF
7038 rm -f conftest.$ac_objext
7039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7040 (eval $ac_compile) 2>&5
7041 ac_status=$?
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); } &&
7044 { ac_try='test -s conftest.$ac_objext'
7045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7046 (eval $ac_try) 2>&5
7047 ac_status=$?
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); }; }; then
7050 eval "$as_ac_Header=yes"
7051 else
7052 echo "$as_me: failed program was:" >&5
7053 cat conftest.$ac_ext >&5
7054 eval "$as_ac_Header=no"
7056 rm -f conftest.$ac_objext conftest.$ac_ext
7058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7061 cat >>confdefs.h <<_ACEOF
7062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7063 _ACEOF
7067 done
7069 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
7070 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
7071 if test "${wine_cv_opengl_version_OK+set}" = set; then
7072 echo $ECHO_N "(cached) $ECHO_C" >&6
7073 else
7074 cat >conftest.$ac_ext <<_ACEOF
7075 #line $LINENO "configure"
7076 #include "confdefs.h"
7077 #include <GL/gl.h>
7078 #ifdef F77_DUMMY_MAIN
7079 # ifdef __cplusplus
7080 extern "C"
7081 # endif
7082 int F77_DUMMY_MAIN() { return 1; }
7083 #endif
7085 main ()
7087 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
7089 return 0;
7091 _ACEOF
7092 rm -f conftest.$ac_objext
7093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7094 (eval $ac_compile) 2>&5
7095 ac_status=$?
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); } &&
7098 { ac_try='test -s conftest.$ac_objext'
7099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7100 (eval $ac_try) 2>&5
7101 ac_status=$?
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); }; }; then
7104 wine_cv_opengl_version_OK="yes"
7105 else
7106 echo "$as_me: failed program was:" >&5
7107 cat conftest.$ac_ext >&5
7108 wine_cv_opengl_version_OK="no"
7111 rm -f conftest.$ac_objext conftest.$ac_ext
7114 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
7115 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
7117 echo "$as_me:$LINENO: checking for thread-safe OpenGL version" >&5
7118 echo $ECHO_N "checking for thread-safe OpenGL version... $ECHO_C" >&6
7119 if test "${wine_cv_opengl_version_threadsafe+set}" = set; then
7120 echo $ECHO_N "(cached) $ECHO_C" >&6
7121 else
7122 saved_libs=$LIBS
7123 LIBS="$X_LIBS -lGL"
7124 cat >conftest.$ac_ext <<_ACEOF
7125 #line $LINENO "configure"
7126 #include "confdefs.h"
7128 #ifdef F77_DUMMY_MAIN
7129 # ifdef __cplusplus
7130 extern "C"
7131 # endif
7132 int F77_DUMMY_MAIN() { return 1; }
7133 #endif
7135 main ()
7137 pthread_getspecific();
7139 return 0;
7141 _ACEOF
7142 rm -f conftest.$ac_objext conftest$ac_exeext
7143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7144 (eval $ac_link) 2>&5
7145 ac_status=$?
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); } &&
7148 { ac_try='test -s conftest$ac_exeext'
7149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7150 (eval $ac_try) 2>&5
7151 ac_status=$?
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); }; }; then
7154 wine_cv_opengl_version_threadsafe="yes"
7155 else
7156 echo "$as_me: failed program was:" >&5
7157 cat conftest.$ac_ext >&5
7158 wine_cv_opengl_version_threadsafe="no"
7160 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7161 LIBS=$saved_libs
7164 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_threadsafe" >&5
7165 echo "${ECHO_T}$wine_cv_opengl_version_threadsafe" >&6
7167 if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o "x$enable_opengl" = "xyes" \)
7168 then
7169 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
7170 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7171 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
7173 else
7174 ac_check_lib_save_LIBS=$LIBS
7175 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7176 cat >conftest.$ac_ext <<_ACEOF
7177 #line $LINENO "configure"
7178 #include "confdefs.h"
7180 /* Override any gcc2 internal prototype to avoid an error. */
7181 #ifdef __cplusplus
7182 extern "C"
7183 #endif
7184 /* We use char because int might match the return type of a gcc2
7185 builtin and then its argument prototype would still apply. */
7186 char glXCreateContext ();
7187 #ifdef F77_DUMMY_MAIN
7188 # ifdef __cplusplus
7189 extern "C"
7190 # endif
7191 int F77_DUMMY_MAIN() { return 1; }
7192 #endif
7194 main ()
7196 glXCreateContext ();
7198 return 0;
7200 _ACEOF
7201 rm -f conftest.$ac_objext conftest$ac_exeext
7202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7203 (eval $ac_link) 2>&5
7204 ac_status=$?
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); } &&
7207 { ac_try='test -s conftest$ac_exeext'
7208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7209 (eval $ac_try) 2>&5
7210 ac_status=$?
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); }; }; then
7213 ac_cv_lib_GL_glXCreateContext=yes
7214 else
7215 echo "$as_me: failed program was:" >&5
7216 cat conftest.$ac_ext >&5
7217 ac_cv_lib_GL_glXCreateContext=no
7219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7220 LIBS=$ac_check_lib_save_LIBS
7222 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
7223 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
7224 if test $ac_cv_lib_GL_glXCreateContext = yes; then
7225 X_PRE_LIBS="$X_PRE_LIBS -lGL"
7230 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
7231 then
7232 OPENGLFILES='$(OPENGLFILES)'
7234 cat >>confdefs.h <<\_ACEOF
7235 #define HAVE_OPENGL 1
7236 _ACEOF
7239 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
7240 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
7241 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7243 else
7244 ac_check_lib_save_LIBS=$LIBS
7245 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
7246 cat >conftest.$ac_ext <<_ACEOF
7247 #line $LINENO "configure"
7248 #include "confdefs.h"
7250 /* Override any gcc2 internal prototype to avoid an error. */
7251 #ifdef __cplusplus
7252 extern "C"
7253 #endif
7254 /* We use char because int might match the return type of a gcc2
7255 builtin and then its argument prototype would still apply. */
7256 char glXGetProcAddressARB ();
7257 #ifdef F77_DUMMY_MAIN
7258 # ifdef __cplusplus
7259 extern "C"
7260 # endif
7261 int F77_DUMMY_MAIN() { return 1; }
7262 #endif
7264 main ()
7266 glXGetProcAddressARB ();
7268 return 0;
7270 _ACEOF
7271 rm -f conftest.$ac_objext conftest$ac_exeext
7272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7273 (eval $ac_link) 2>&5
7274 ac_status=$?
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); } &&
7277 { ac_try='test -s conftest$ac_exeext'
7278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7279 (eval $ac_try) 2>&5
7280 ac_status=$?
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); }; }; then
7283 ac_cv_lib_GL_glXGetProcAddressARB=yes
7284 else
7285 echo "$as_me: failed program was:" >&5
7286 cat conftest.$ac_ext >&5
7287 ac_cv_lib_GL_glXGetProcAddressARB=no
7289 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7290 LIBS=$ac_check_lib_save_LIBS
7292 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
7293 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
7294 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
7296 cat >>confdefs.h <<\_ACEOF
7297 #define HAVE_GLX_GETPROCADDRESS 1
7298 _ACEOF
7303 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
7304 then
7305 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
7306 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
7307 if test "${wine_cv_extension_prototypes+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 else
7310 cat >conftest.$ac_ext <<_ACEOF
7311 #line $LINENO "configure"
7312 #include "confdefs.h"
7313 #include <GL/gl.h>
7314 #ifdef HAVE_GL_GLEXT_H
7315 # include <GL/glext.h>
7316 #endif
7318 #ifdef F77_DUMMY_MAIN
7319 # ifdef __cplusplus
7320 extern "C"
7321 # endif
7322 int F77_DUMMY_MAIN() { return 1; }
7323 #endif
7325 main ()
7327 PFNGLCOLORTABLEEXTPROC test_proc;
7329 return 0;
7331 _ACEOF
7332 rm -f conftest.$ac_objext
7333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7334 (eval $ac_compile) 2>&5
7335 ac_status=$?
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); } &&
7338 { ac_try='test -s conftest.$ac_objext'
7339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7340 (eval $ac_try) 2>&5
7341 ac_status=$?
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); }; }; then
7344 wine_cv_extension_prototypes="yes"
7345 else
7346 echo "$as_me: failed program was:" >&5
7347 cat conftest.$ac_ext >&5
7348 wine_cv_extension_prototypes="no"
7351 rm -f conftest.$ac_objext conftest.$ac_ext
7354 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
7355 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
7356 if test "$wine_cv_extension_prototypes" = "yes"
7357 then
7359 cat >>confdefs.h <<\_ACEOF
7360 #define HAVE_GLEXT_PROTOTYPES 1
7361 _ACEOF
7367 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
7368 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
7369 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
7370 echo $ECHO_N "(cached) $ECHO_C" >&6
7371 else
7372 ac_check_lib_save_LIBS=$LIBS
7373 LIBS="-lGLU $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
7374 $LIBS"
7375 cat >conftest.$ac_ext <<_ACEOF
7376 #line $LINENO "configure"
7377 #include "confdefs.h"
7379 /* Override any gcc2 internal prototype to avoid an error. */
7380 #ifdef __cplusplus
7381 extern "C"
7382 #endif
7383 /* We use char because int might match the return type of a gcc2
7384 builtin and then its argument prototype would still apply. */
7385 char gluLookAt ();
7386 #ifdef F77_DUMMY_MAIN
7387 # ifdef __cplusplus
7388 extern "C"
7389 # endif
7390 int F77_DUMMY_MAIN() { return 1; }
7391 #endif
7393 main ()
7395 gluLookAt ();
7397 return 0;
7399 _ACEOF
7400 rm -f conftest.$ac_objext conftest$ac_exeext
7401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7402 (eval $ac_link) 2>&5
7403 ac_status=$?
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); } &&
7406 { ac_try='test -s conftest$ac_exeext'
7407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7408 (eval $ac_try) 2>&5
7409 ac_status=$?
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); }; }; then
7412 ac_cv_lib_GLU_gluLookAt=yes
7413 else
7414 echo "$as_me: failed program was:" >&5
7415 cat conftest.$ac_ext >&5
7416 ac_cv_lib_GLU_gluLookAt=no
7418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7419 LIBS=$ac_check_lib_save_LIBS
7421 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
7422 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
7423 if test $ac_cv_lib_GLU_gluLookAt = yes; then
7424 X_PRE_LIBS="$X_PRE_LIBS -lGLU"
7425 GLU32FILES='$(GLU32FILES)'
7433 CPPFLAGS="$ac_save_CPPFLAGS"
7434 XFILES='$(XFILES)'
7435 else
7436 XLIB=""
7437 X_CFLAGS=""
7438 X_LIBS=""
7441 CURSESLIBS=""
7442 if test "x$with_curses" != "xno"
7443 then
7445 for ac_header in ncurses.h
7447 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7449 echo "$as_me:$LINENO: checking for $ac_header" >&5
7450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7456 else
7457 # Is the header compilable?
7458 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7459 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7460 cat >conftest.$ac_ext <<_ACEOF
7461 #line $LINENO "configure"
7462 #include "confdefs.h"
7463 $ac_includes_default
7464 #include <$ac_header>
7465 _ACEOF
7466 rm -f conftest.$ac_objext
7467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7468 (eval $ac_compile) 2>&5
7469 ac_status=$?
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); } &&
7472 { ac_try='test -s conftest.$ac_objext'
7473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7474 (eval $ac_try) 2>&5
7475 ac_status=$?
7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); }; }; then
7478 ac_header_compiler=yes
7479 else
7480 echo "$as_me: failed program was:" >&5
7481 cat conftest.$ac_ext >&5
7482 ac_header_compiler=no
7484 rm -f conftest.$ac_objext conftest.$ac_ext
7485 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7486 echo "${ECHO_T}$ac_header_compiler" >&6
7488 # Is the header present?
7489 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7490 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7491 cat >conftest.$ac_ext <<_ACEOF
7492 #line $LINENO "configure"
7493 #include "confdefs.h"
7494 #include <$ac_header>
7495 _ACEOF
7496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7498 ac_status=$?
7499 egrep -v '^ *\+' conftest.er1 >conftest.err
7500 rm -f conftest.er1
7501 cat conftest.err >&5
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); } >/dev/null; then
7504 if test -s conftest.err; then
7505 ac_cpp_err=$ac_c_preproc_warn_flag
7506 else
7507 ac_cpp_err=
7509 else
7510 ac_cpp_err=yes
7512 if test -z "$ac_cpp_err"; then
7513 ac_header_preproc=yes
7514 else
7515 echo "$as_me: failed program was:" >&5
7516 cat conftest.$ac_ext >&5
7517 ac_header_preproc=no
7519 rm -f conftest.err conftest.$ac_ext
7520 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7521 echo "${ECHO_T}$ac_header_preproc" >&6
7523 # So? What about this header?
7524 case $ac_header_compiler:$ac_header_preproc in
7525 yes:no )
7526 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7527 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7529 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7530 no:yes )
7531 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7532 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7533 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7534 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7537 esac
7538 echo "$as_me:$LINENO: checking for $ac_header" >&5
7539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
7542 else
7543 eval "$as_ac_Header=$ac_header_preproc"
7545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7550 cat >>confdefs.h <<_ACEOF
7551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7552 _ACEOF
7553 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
7554 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
7555 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7557 else
7558 ac_check_lib_save_LIBS=$LIBS
7559 LIBS="-lncurses $LIBS"
7560 cat >conftest.$ac_ext <<_ACEOF
7561 #line $LINENO "configure"
7562 #include "confdefs.h"
7564 /* Override any gcc2 internal prototype to avoid an error. */
7565 #ifdef __cplusplus
7566 extern "C"
7567 #endif
7568 /* We use char because int might match the return type of a gcc2
7569 builtin and then its argument prototype would still apply. */
7570 char waddch ();
7571 #ifdef F77_DUMMY_MAIN
7572 # ifdef __cplusplus
7573 extern "C"
7574 # endif
7575 int F77_DUMMY_MAIN() { return 1; }
7576 #endif
7578 main ()
7580 waddch ();
7582 return 0;
7584 _ACEOF
7585 rm -f conftest.$ac_objext conftest$ac_exeext
7586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7587 (eval $ac_link) 2>&5
7588 ac_status=$?
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); } &&
7591 { ac_try='test -s conftest$ac_exeext'
7592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7593 (eval $ac_try) 2>&5
7594 ac_status=$?
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); }; }; then
7597 ac_cv_lib_ncurses_waddch=yes
7598 else
7599 echo "$as_me: failed program was:" >&5
7600 cat conftest.$ac_ext >&5
7601 ac_cv_lib_ncurses_waddch=no
7603 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7604 LIBS=$ac_check_lib_save_LIBS
7606 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
7607 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
7608 if test $ac_cv_lib_ncurses_waddch = yes; then
7610 cat >>confdefs.h <<\_ACEOF
7611 #define HAVE_LIBNCURSES 1
7612 _ACEOF
7614 CURSESLIBS="-lncurses"
7615 else
7617 for ac_header in curses.h
7619 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7621 echo "$as_me:$LINENO: checking for $ac_header" >&5
7622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7624 echo $ECHO_N "(cached) $ECHO_C" >&6
7626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7628 else
7629 # Is the header compilable?
7630 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7632 cat >conftest.$ac_ext <<_ACEOF
7633 #line $LINENO "configure"
7634 #include "confdefs.h"
7635 $ac_includes_default
7636 #include <$ac_header>
7637 _ACEOF
7638 rm -f conftest.$ac_objext
7639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7640 (eval $ac_compile) 2>&5
7641 ac_status=$?
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); } &&
7644 { ac_try='test -s conftest.$ac_objext'
7645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7646 (eval $ac_try) 2>&5
7647 ac_status=$?
7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); }; }; then
7650 ac_header_compiler=yes
7651 else
7652 echo "$as_me: failed program was:" >&5
7653 cat conftest.$ac_ext >&5
7654 ac_header_compiler=no
7656 rm -f conftest.$ac_objext conftest.$ac_ext
7657 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7658 echo "${ECHO_T}$ac_header_compiler" >&6
7660 # Is the header present?
7661 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7662 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7663 cat >conftest.$ac_ext <<_ACEOF
7664 #line $LINENO "configure"
7665 #include "confdefs.h"
7666 #include <$ac_header>
7667 _ACEOF
7668 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7669 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7670 ac_status=$?
7671 egrep -v '^ *\+' conftest.er1 >conftest.err
7672 rm -f conftest.er1
7673 cat conftest.err >&5
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); } >/dev/null; then
7676 if test -s conftest.err; then
7677 ac_cpp_err=$ac_c_preproc_warn_flag
7678 else
7679 ac_cpp_err=
7681 else
7682 ac_cpp_err=yes
7684 if test -z "$ac_cpp_err"; then
7685 ac_header_preproc=yes
7686 else
7687 echo "$as_me: failed program was:" >&5
7688 cat conftest.$ac_ext >&5
7689 ac_header_preproc=no
7691 rm -f conftest.err conftest.$ac_ext
7692 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7693 echo "${ECHO_T}$ac_header_preproc" >&6
7695 # So? What about this header?
7696 case $ac_header_compiler:$ac_header_preproc in
7697 yes:no )
7698 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7699 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7702 no:yes )
7703 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7704 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7705 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7706 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7709 esac
7710 echo "$as_me:$LINENO: checking for $ac_header" >&5
7711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7714 else
7715 eval "$as_ac_Header=$ac_header_preproc"
7717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7722 cat >>confdefs.h <<_ACEOF
7723 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7724 _ACEOF
7725 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
7726 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
7727 if test "${ac_cv_lib_curses_waddch+set}" = set; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7729 else
7730 ac_check_lib_save_LIBS=$LIBS
7731 LIBS="-lcurses $LIBS"
7732 cat >conftest.$ac_ext <<_ACEOF
7733 #line $LINENO "configure"
7734 #include "confdefs.h"
7736 /* Override any gcc2 internal prototype to avoid an error. */
7737 #ifdef __cplusplus
7738 extern "C"
7739 #endif
7740 /* We use char because int might match the return type of a gcc2
7741 builtin and then its argument prototype would still apply. */
7742 char waddch ();
7743 #ifdef F77_DUMMY_MAIN
7744 # ifdef __cplusplus
7745 extern "C"
7746 # endif
7747 int F77_DUMMY_MAIN() { return 1; }
7748 #endif
7750 main ()
7752 waddch ();
7754 return 0;
7756 _ACEOF
7757 rm -f conftest.$ac_objext conftest$ac_exeext
7758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7759 (eval $ac_link) 2>&5
7760 ac_status=$?
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); } &&
7763 { ac_try='test -s conftest$ac_exeext'
7764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7765 (eval $ac_try) 2>&5
7766 ac_status=$?
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); }; }; then
7769 ac_cv_lib_curses_waddch=yes
7770 else
7771 echo "$as_me: failed program was:" >&5
7772 cat conftest.$ac_ext >&5
7773 ac_cv_lib_curses_waddch=no
7775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7776 LIBS=$ac_check_lib_save_LIBS
7778 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
7779 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
7780 if test $ac_cv_lib_curses_waddch = yes; then
7782 cat >>confdefs.h <<\_ACEOF
7783 #define HAVE_LIBCURSES 1
7784 _ACEOF
7786 CURSESLIBS="-lcurses"
7791 done
7797 done
7799 saved_libs="$LIBS"
7800 LIBS="$CURSESLIBS $LIBS"
7803 for ac_func in getbkgd resizeterm
7805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7806 echo "$as_me:$LINENO: checking for $ac_func" >&5
7807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7808 if eval "test \"\${$as_ac_var+set}\" = set"; then
7809 echo $ECHO_N "(cached) $ECHO_C" >&6
7810 else
7811 cat >conftest.$ac_ext <<_ACEOF
7812 #line $LINENO "configure"
7813 #include "confdefs.h"
7814 /* System header to define __stub macros and hopefully few prototypes,
7815 which can conflict with char $ac_func (); below. */
7816 #include <assert.h>
7817 /* Override any gcc2 internal prototype to avoid an error. */
7818 #ifdef __cplusplus
7819 extern "C"
7820 #endif
7821 /* We use char because int might match the return type of a gcc2
7822 builtin and then its argument prototype would still apply. */
7823 char $ac_func ();
7824 char (*f) ();
7826 #ifdef F77_DUMMY_MAIN
7827 # ifdef __cplusplus
7828 extern "C"
7829 # endif
7830 int F77_DUMMY_MAIN() { return 1; }
7831 #endif
7833 main ()
7835 /* The GNU C library defines this for functions which it implements
7836 to always fail with ENOSYS. Some functions are actually named
7837 something starting with __ and the normal name is an alias. */
7838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7839 choke me
7840 #else
7841 f = $ac_func;
7842 #endif
7845 return 0;
7847 _ACEOF
7848 rm -f conftest.$ac_objext conftest$ac_exeext
7849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7850 (eval $ac_link) 2>&5
7851 ac_status=$?
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); } &&
7854 { ac_try='test -s conftest$ac_exeext'
7855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7856 (eval $ac_try) 2>&5
7857 ac_status=$?
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); }; }; then
7860 eval "$as_ac_var=yes"
7861 else
7862 echo "$as_me: failed program was:" >&5
7863 cat conftest.$ac_ext >&5
7864 eval "$as_ac_var=no"
7866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7870 if test `eval echo '${'$as_ac_var'}'` = yes; then
7871 cat >>confdefs.h <<_ACEOF
7872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7873 _ACEOF
7876 done
7878 LIBS="$saved_libs"
7882 CUPSLIBS=""
7883 wine_cv_warn_cups_h=no
7884 echo "$as_me:$LINENO: checking for cupsGetPPD in -lcups" >&5
7885 echo $ECHO_N "checking for cupsGetPPD in -lcups... $ECHO_C" >&6
7886 if test "${ac_cv_lib_cups_cupsGetPPD+set}" = set; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7888 else
7889 ac_check_lib_save_LIBS=$LIBS
7890 LIBS="-lcups $LIBS"
7891 cat >conftest.$ac_ext <<_ACEOF
7892 #line $LINENO "configure"
7893 #include "confdefs.h"
7895 /* Override any gcc2 internal prototype to avoid an error. */
7896 #ifdef __cplusplus
7897 extern "C"
7898 #endif
7899 /* We use char because int might match the return type of a gcc2
7900 builtin and then its argument prototype would still apply. */
7901 char cupsGetPPD ();
7902 #ifdef F77_DUMMY_MAIN
7903 # ifdef __cplusplus
7904 extern "C"
7905 # endif
7906 int F77_DUMMY_MAIN() { return 1; }
7907 #endif
7909 main ()
7911 cupsGetPPD ();
7913 return 0;
7915 _ACEOF
7916 rm -f conftest.$ac_objext conftest$ac_exeext
7917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7918 (eval $ac_link) 2>&5
7919 ac_status=$?
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); } &&
7922 { ac_try='test -s conftest$ac_exeext'
7923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7924 (eval $ac_try) 2>&5
7925 ac_status=$?
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); }; }; then
7928 ac_cv_lib_cups_cupsGetPPD=yes
7929 else
7930 echo "$as_me: failed program was:" >&5
7931 cat conftest.$ac_ext >&5
7932 ac_cv_lib_cups_cupsGetPPD=no
7934 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7935 LIBS=$ac_check_lib_save_LIBS
7937 echo "$as_me:$LINENO: result: $ac_cv_lib_cups_cupsGetPPD" >&5
7938 echo "${ECHO_T}$ac_cv_lib_cups_cupsGetPPD" >&6
7939 if test $ac_cv_lib_cups_cupsGetPPD = yes; then
7940 if test "${ac_cv_header_cups_cups_h+set}" = set; then
7941 echo "$as_me:$LINENO: checking for cups/cups.h" >&5
7942 echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6
7943 if test "${ac_cv_header_cups_cups_h+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7946 echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5
7947 echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6
7948 else
7949 # Is the header compilable?
7950 echo "$as_me:$LINENO: checking cups/cups.h usability" >&5
7951 echo $ECHO_N "checking cups/cups.h usability... $ECHO_C" >&6
7952 cat >conftest.$ac_ext <<_ACEOF
7953 #line $LINENO "configure"
7954 #include "confdefs.h"
7955 $ac_includes_default
7956 #include <cups/cups.h>
7957 _ACEOF
7958 rm -f conftest.$ac_objext
7959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7960 (eval $ac_compile) 2>&5
7961 ac_status=$?
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); } &&
7964 { ac_try='test -s conftest.$ac_objext'
7965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7966 (eval $ac_try) 2>&5
7967 ac_status=$?
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); }; }; then
7970 ac_header_compiler=yes
7971 else
7972 echo "$as_me: failed program was:" >&5
7973 cat conftest.$ac_ext >&5
7974 ac_header_compiler=no
7976 rm -f conftest.$ac_objext conftest.$ac_ext
7977 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7978 echo "${ECHO_T}$ac_header_compiler" >&6
7980 # Is the header present?
7981 echo "$as_me:$LINENO: checking cups/cups.h presence" >&5
7982 echo $ECHO_N "checking cups/cups.h presence... $ECHO_C" >&6
7983 cat >conftest.$ac_ext <<_ACEOF
7984 #line $LINENO "configure"
7985 #include "confdefs.h"
7986 #include <cups/cups.h>
7987 _ACEOF
7988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7990 ac_status=$?
7991 egrep -v '^ *\+' conftest.er1 >conftest.err
7992 rm -f conftest.er1
7993 cat conftest.err >&5
7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995 (exit $ac_status); } >/dev/null; then
7996 if test -s conftest.err; then
7997 ac_cpp_err=$ac_c_preproc_warn_flag
7998 else
7999 ac_cpp_err=
8001 else
8002 ac_cpp_err=yes
8004 if test -z "$ac_cpp_err"; then
8005 ac_header_preproc=yes
8006 else
8007 echo "$as_me: failed program was:" >&5
8008 cat conftest.$ac_ext >&5
8009 ac_header_preproc=no
8011 rm -f conftest.err conftest.$ac_ext
8012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8013 echo "${ECHO_T}$ac_header_preproc" >&6
8015 # So? What about this header?
8016 case $ac_header_compiler:$ac_header_preproc in
8017 yes:no )
8018 { echo "$as_me:$LINENO: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&5
8019 echo "$as_me: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8020 { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&5
8021 echo "$as_me: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&2;};;
8022 no:yes )
8023 { echo "$as_me:$LINENO: WARNING: cups/cups.h: present but cannot be compiled" >&5
8024 echo "$as_me: WARNING: cups/cups.h: present but cannot be compiled" >&2;}
8025 { echo "$as_me:$LINENO: WARNING: cups/cups.h: check for missing prerequisite headers?" >&5
8026 echo "$as_me: WARNING: cups/cups.h: check for missing prerequisite headers?" >&2;}
8027 { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&5
8028 echo "$as_me: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&2;};;
8029 esac
8030 echo "$as_me:$LINENO: checking for cups/cups.h" >&5
8031 echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6
8032 if test "${ac_cv_header_cups_cups_h+set}" = set; then
8033 echo $ECHO_N "(cached) $ECHO_C" >&6
8034 else
8035 ac_cv_header_cups_cups_h=$ac_header_preproc
8037 echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5
8038 echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6
8041 if test $ac_cv_header_cups_cups_h = yes; then
8043 cat >>confdefs.h <<\_ACEOF
8044 #define HAVE_CUPS 1
8045 _ACEOF
8047 CUPSLIBS="-lcups"
8048 else
8049 wine_cv_warn_cups_h=yes
8058 # Extract the first word of "sane-config", so it can be a program name with args.
8059 set dummy sane-config; ac_word=$2
8060 echo "$as_me:$LINENO: checking for $ac_word" >&5
8061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8062 if test "${ac_cv_prog_sane_devel+set}" = set; then
8063 echo $ECHO_N "(cached) $ECHO_C" >&6
8064 else
8065 if test -n "$sane_devel"; then
8066 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
8067 else
8068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8069 for as_dir in $PATH
8071 IFS=$as_save_IFS
8072 test -z "$as_dir" && as_dir=.
8073 for ac_exec_ext in '' $ac_executable_extensions; do
8074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8075 ac_cv_prog_sane_devel="sane-config"
8076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8077 break 2
8079 done
8080 done
8082 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
8085 sane_devel=$ac_cv_prog_sane_devel
8086 if test -n "$sane_devel"; then
8087 echo "$as_me:$LINENO: result: $sane_devel" >&5
8088 echo "${ECHO_T}$sane_devel" >&6
8089 else
8090 echo "$as_me:$LINENO: result: no" >&5
8091 echo "${ECHO_T}no" >&6
8094 if test "$sane_devel" = "no"
8095 then
8096 SANELIBS=""
8097 SANEINCL=""
8098 else
8099 SANELIBS="`$sane_devel --libs`"
8100 SANEINCL="`$sane_devel --cflags`"
8101 ac_save_CPPFLAGS="$CPPFLAGS"
8102 ac_save_LIBS="$LIBS"
8103 CPPFLAGS="$CPPFLAGS $SANEINCL"
8104 LIBS="$LIBS $SANELIBS"
8105 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8106 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8107 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8108 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8109 echo $ECHO_N "(cached) $ECHO_C" >&6
8111 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8112 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8113 else
8114 # Is the header compilable?
8115 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
8116 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
8117 cat >conftest.$ac_ext <<_ACEOF
8118 #line $LINENO "configure"
8119 #include "confdefs.h"
8120 $ac_includes_default
8121 #include <sane/sane.h>
8122 _ACEOF
8123 rm -f conftest.$ac_objext
8124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8125 (eval $ac_compile) 2>&5
8126 ac_status=$?
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } &&
8129 { ac_try='test -s conftest.$ac_objext'
8130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8131 (eval $ac_try) 2>&5
8132 ac_status=$?
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); }; }; then
8135 ac_header_compiler=yes
8136 else
8137 echo "$as_me: failed program was:" >&5
8138 cat conftest.$ac_ext >&5
8139 ac_header_compiler=no
8141 rm -f conftest.$ac_objext conftest.$ac_ext
8142 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8143 echo "${ECHO_T}$ac_header_compiler" >&6
8145 # Is the header present?
8146 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
8147 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
8148 cat >conftest.$ac_ext <<_ACEOF
8149 #line $LINENO "configure"
8150 #include "confdefs.h"
8151 #include <sane/sane.h>
8152 _ACEOF
8153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8155 ac_status=$?
8156 egrep -v '^ *\+' conftest.er1 >conftest.err
8157 rm -f conftest.er1
8158 cat conftest.err >&5
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); } >/dev/null; then
8161 if test -s conftest.err; then
8162 ac_cpp_err=$ac_c_preproc_warn_flag
8163 else
8164 ac_cpp_err=
8166 else
8167 ac_cpp_err=yes
8169 if test -z "$ac_cpp_err"; then
8170 ac_header_preproc=yes
8171 else
8172 echo "$as_me: failed program was:" >&5
8173 cat conftest.$ac_ext >&5
8174 ac_header_preproc=no
8176 rm -f conftest.err conftest.$ac_ext
8177 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8178 echo "${ECHO_T}$ac_header_preproc" >&6
8180 # So? What about this header?
8181 case $ac_header_compiler:$ac_header_preproc in
8182 yes:no )
8183 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
8184 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8185 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8186 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8187 no:yes )
8188 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
8189 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
8190 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
8191 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
8192 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8193 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8194 esac
8195 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8196 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8197 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8198 echo $ECHO_N "(cached) $ECHO_C" >&6
8199 else
8200 ac_cv_header_sane_sane_h=$ac_header_preproc
8202 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8203 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
8206 if test $ac_cv_header_sane_sane_h = yes; then
8207 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
8208 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
8209 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
8210 echo $ECHO_N "(cached) $ECHO_C" >&6
8211 else
8212 ac_check_lib_save_LIBS=$LIBS
8213 LIBS="-lsane $LIBS"
8214 cat >conftest.$ac_ext <<_ACEOF
8215 #line $LINENO "configure"
8216 #include "confdefs.h"
8218 /* Override any gcc2 internal prototype to avoid an error. */
8219 #ifdef __cplusplus
8220 extern "C"
8221 #endif
8222 /* We use char because int might match the return type of a gcc2
8223 builtin and then its argument prototype would still apply. */
8224 char sane_open ();
8225 #ifdef F77_DUMMY_MAIN
8226 # ifdef __cplusplus
8227 extern "C"
8228 # endif
8229 int F77_DUMMY_MAIN() { return 1; }
8230 #endif
8232 main ()
8234 sane_open ();
8236 return 0;
8238 _ACEOF
8239 rm -f conftest.$ac_objext conftest$ac_exeext
8240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8241 (eval $ac_link) 2>&5
8242 ac_status=$?
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); } &&
8245 { ac_try='test -s conftest$ac_exeext'
8246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8247 (eval $ac_try) 2>&5
8248 ac_status=$?
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); }; }; then
8251 ac_cv_lib_sane_sane_open=yes
8252 else
8253 echo "$as_me: failed program was:" >&5
8254 cat conftest.$ac_ext >&5
8255 ac_cv_lib_sane_sane_open=no
8257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8258 LIBS=$ac_check_lib_save_LIBS
8260 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
8261 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
8262 if test $ac_cv_lib_sane_sane_open = yes; then
8264 cat >>confdefs.h <<\_ACEOF
8265 #define HAVE_SANE 1
8266 _ACEOF
8268 else
8269 SANELIBS=""
8270 SANEINCL=""
8273 else
8274 SANELIBS=""
8275 SANEINCL=""
8279 LIBS="$ac_save_LIBS"
8280 CPPFLAGS="$ac_save_CPPFLAGS"
8285 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8286 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
8287 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8288 echo $ECHO_N "(cached) $ECHO_C" >&6
8289 else
8290 ac_check_lib_save_LIBS=$LIBS
8291 LIBS="-lfreetype $X_LIBS $LIBS"
8292 cat >conftest.$ac_ext <<_ACEOF
8293 #line $LINENO "configure"
8294 #include "confdefs.h"
8296 /* Override any gcc2 internal prototype to avoid an error. */
8297 #ifdef __cplusplus
8298 extern "C"
8299 #endif
8300 /* We use char because int might match the return type of a gcc2
8301 builtin and then its argument prototype would still apply. */
8302 char FT_Init_FreeType ();
8303 #ifdef F77_DUMMY_MAIN
8304 # ifdef __cplusplus
8305 extern "C"
8306 # endif
8307 int F77_DUMMY_MAIN() { return 1; }
8308 #endif
8310 main ()
8312 FT_Init_FreeType ();
8314 return 0;
8316 _ACEOF
8317 rm -f conftest.$ac_objext conftest$ac_exeext
8318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8319 (eval $ac_link) 2>&5
8320 ac_status=$?
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); } &&
8323 { ac_try='test -s conftest$ac_exeext'
8324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8325 (eval $ac_try) 2>&5
8326 ac_status=$?
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); }; }; then
8329 ac_cv_lib_freetype_FT_Init_FreeType=yes
8330 else
8331 echo "$as_me: failed program was:" >&5
8332 cat conftest.$ac_ext >&5
8333 ac_cv_lib_freetype_FT_Init_FreeType=no
8335 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8336 LIBS=$ac_check_lib_save_LIBS
8338 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8339 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
8340 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8341 ft_lib=yes
8342 else
8343 ft_lib=no
8346 if test "$ft_lib" = "no"
8347 then
8348 FREETYPEINCL=""
8349 wine_cv_msg_freetype=no
8350 else
8351 # Extract the first word of "freetype-config", so it can be a program name with args.
8352 set dummy freetype-config; ac_word=$2
8353 echo "$as_me:$LINENO: checking for $ac_word" >&5
8354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8355 if test "${ac_cv_prog_ft_devel+set}" = set; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
8357 else
8358 if test -n "$ft_devel"; then
8359 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
8360 else
8361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362 for as_dir in $PATH
8364 IFS=$as_save_IFS
8365 test -z "$as_dir" && as_dir=.
8366 for ac_exec_ext in '' $ac_executable_extensions; do
8367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8368 ac_cv_prog_ft_devel="freetype-config"
8369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8370 break 2
8372 done
8373 done
8375 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
8378 ft_devel=$ac_cv_prog_ft_devel
8379 if test -n "$ft_devel"; then
8380 echo "$as_me:$LINENO: result: $ft_devel" >&5
8381 echo "${ECHO_T}$ft_devel" >&6
8382 else
8383 echo "$as_me:$LINENO: result: no" >&5
8384 echo "${ECHO_T}no" >&6
8387 if test "$ft_devel" = "no"
8388 then
8389 # Extract the first word of "freetype2-config", so it can be a program name with args.
8390 set dummy freetype2-config; ac_word=$2
8391 echo "$as_me:$LINENO: checking for $ac_word" >&5
8392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8393 if test "${ac_cv_prog_ft_devel2+set}" = set; then
8394 echo $ECHO_N "(cached) $ECHO_C" >&6
8395 else
8396 if test -n "$ft_devel2"; then
8397 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
8398 else
8399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8400 for as_dir in $PATH
8402 IFS=$as_save_IFS
8403 test -z "$as_dir" && as_dir=.
8404 for ac_exec_ext in '' $ac_executable_extensions; do
8405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8406 ac_cv_prog_ft_devel2="freetype2-config"
8407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8408 break 2
8410 done
8411 done
8413 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
8416 ft_devel2=$ac_cv_prog_ft_devel2
8417 if test -n "$ft_devel2"; then
8418 echo "$as_me:$LINENO: result: $ft_devel2" >&5
8419 echo "${ECHO_T}$ft_devel2" >&6
8420 else
8421 echo "$as_me:$LINENO: result: no" >&5
8422 echo "${ECHO_T}no" >&6
8425 if test "$ft_devel2" = "freetype2-config"
8426 then
8427 ft_devel=$ft_devel2
8430 if test "$ft_devel" = "no"
8431 then
8432 FREETYPEINCL=""
8433 wine_cv_msg_freetype=yes
8434 else
8435 FREETYPEINCL=`$ft_devel --cflags`
8436 ac_save_CPPFLAGS="$CPPFLAGS"
8437 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
8446 for ac_header in freetype/freetype.h \
8447 freetype/ftglyph.h \
8448 freetype/tttables.h \
8449 freetype/ftnames.h \
8450 freetype/ftsnames.h \
8451 freetype/ttnameid.h \
8452 freetype/ftoutln.h \
8453 freetype/internal/sfnt.h
8455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8457 echo "$as_me:$LINENO: checking for $ac_header" >&5
8458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8460 echo $ECHO_N "(cached) $ECHO_C" >&6
8462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8464 else
8465 # Is the header compilable?
8466 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8467 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8468 cat >conftest.$ac_ext <<_ACEOF
8469 #line $LINENO "configure"
8470 #include "confdefs.h"
8471 $ac_includes_default
8472 #include <$ac_header>
8473 _ACEOF
8474 rm -f conftest.$ac_objext
8475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8476 (eval $ac_compile) 2>&5
8477 ac_status=$?
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); } &&
8480 { ac_try='test -s conftest.$ac_objext'
8481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482 (eval $ac_try) 2>&5
8483 ac_status=$?
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); }; }; then
8486 ac_header_compiler=yes
8487 else
8488 echo "$as_me: failed program was:" >&5
8489 cat conftest.$ac_ext >&5
8490 ac_header_compiler=no
8492 rm -f conftest.$ac_objext conftest.$ac_ext
8493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8494 echo "${ECHO_T}$ac_header_compiler" >&6
8496 # Is the header present?
8497 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8499 cat >conftest.$ac_ext <<_ACEOF
8500 #line $LINENO "configure"
8501 #include "confdefs.h"
8502 #include <$ac_header>
8503 _ACEOF
8504 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8505 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8506 ac_status=$?
8507 egrep -v '^ *\+' conftest.er1 >conftest.err
8508 rm -f conftest.er1
8509 cat conftest.err >&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); } >/dev/null; then
8512 if test -s conftest.err; then
8513 ac_cpp_err=$ac_c_preproc_warn_flag
8514 else
8515 ac_cpp_err=
8517 else
8518 ac_cpp_err=yes
8520 if test -z "$ac_cpp_err"; then
8521 ac_header_preproc=yes
8522 else
8523 echo "$as_me: failed program was:" >&5
8524 cat conftest.$ac_ext >&5
8525 ac_header_preproc=no
8527 rm -f conftest.err conftest.$ac_ext
8528 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8529 echo "${ECHO_T}$ac_header_preproc" >&6
8531 # So? What about this header?
8532 case $ac_header_compiler:$ac_header_preproc in
8533 yes:no )
8534 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8538 no:yes )
8539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8542 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8544 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8545 esac
8546 echo "$as_me:$LINENO: checking for $ac_header" >&5
8547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8549 echo $ECHO_N "(cached) $ECHO_C" >&6
8550 else
8551 eval "$as_ac_Header=$ac_header_preproc"
8553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8558 cat >>confdefs.h <<_ACEOF
8559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8560 _ACEOF
8564 done
8566 cat >conftest.$ac_ext <<_ACEOF
8567 #line $LINENO "configure"
8568 #include "confdefs.h"
8569 #include <ft2build.h>
8570 #include <freetype/fttrigon.h>
8571 _ACEOF
8572 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8574 ac_status=$?
8575 egrep -v '^ *\+' conftest.er1 >conftest.err
8576 rm -f conftest.er1
8577 cat conftest.err >&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); } >/dev/null; then
8580 if test -s conftest.err; then
8581 ac_cpp_err=$ac_c_preproc_warn_flag
8582 else
8583 ac_cpp_err=
8585 else
8586 ac_cpp_err=yes
8588 if test -z "$ac_cpp_err"; then
8590 cat >>confdefs.h <<\_ACEOF
8591 #define HAVE_FREETYPE_FTTRIGON_H 1
8592 _ACEOF
8594 wine_cv_fttrigon=yes
8595 else
8596 echo "$as_me: failed program was:" >&5
8597 cat conftest.$ac_ext >&5
8598 wine_cv_fttrigon=no
8600 rm -f conftest.err conftest.$ac_ext
8601 CPPFLAGS="$ac_save_CPPFLAGS"
8602 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
8603 then
8605 cat >>confdefs.h <<\_ACEOF
8606 #define HAVE_FREETYPE 1
8607 _ACEOF
8609 wine_cv_msg_freetype=no
8610 else
8611 FREETYPEINCL=""
8612 wine_cv_msg_freetype=yes
8618 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
8619 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
8620 if test "${ac_cv_c_ppdev+set}" = set; then
8621 echo $ECHO_N "(cached) $ECHO_C" >&6
8622 else
8623 cat >conftest.$ac_ext <<_ACEOF
8624 #line $LINENO "configure"
8625 #include "confdefs.h"
8626 #include <linux/ppdev.h>
8627 #ifdef F77_DUMMY_MAIN
8628 # ifdef __cplusplus
8629 extern "C"
8630 # endif
8631 int F77_DUMMY_MAIN() { return 1; }
8632 #endif
8634 main ()
8636 ioctl (1,PPCLAIM,0)
8638 return 0;
8640 _ACEOF
8641 rm -f conftest.$ac_objext
8642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8643 (eval $ac_compile) 2>&5
8644 ac_status=$?
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); } &&
8647 { ac_try='test -s conftest.$ac_objext'
8648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8649 (eval $ac_try) 2>&5
8650 ac_status=$?
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); }; }; then
8653 ac_cv_c_ppdev="yes"
8654 else
8655 echo "$as_me: failed program was:" >&5
8656 cat conftest.$ac_ext >&5
8657 ac_cv_c_ppdev="no"
8659 rm -f conftest.$ac_objext conftest.$ac_ext
8662 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
8663 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
8664 if test "$ac_cv_c_ppdev" = "yes"
8665 then
8667 cat >>confdefs.h <<\_ACEOF
8668 #define HAVE_PPDEV 1
8669 _ACEOF
8673 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
8674 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
8675 if test "${ac_cv_c_ipx_gnu+set}" = set; then
8676 echo $ECHO_N "(cached) $ECHO_C" >&6
8677 else
8678 cat >conftest.$ac_ext <<_ACEOF
8679 #line $LINENO "configure"
8680 #include "confdefs.h"
8681 #include <sys/socket.h>
8682 #include <netipx/ipx.h>
8683 #ifdef F77_DUMMY_MAIN
8684 # ifdef __cplusplus
8685 extern "C"
8686 # endif
8687 int F77_DUMMY_MAIN() { return 1; }
8688 #endif
8690 main ()
8692 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
8694 return 0;
8696 _ACEOF
8697 rm -f conftest.$ac_objext
8698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8699 (eval $ac_compile) 2>&5
8700 ac_status=$?
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); } &&
8703 { ac_try='test -s conftest.$ac_objext'
8704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8705 (eval $ac_try) 2>&5
8706 ac_status=$?
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); }; }; then
8709 ac_cv_c_ipx_gnu="yes"
8710 else
8711 echo "$as_me: failed program was:" >&5
8712 cat conftest.$ac_ext >&5
8713 ac_cv_c_ipx_gnu="no"
8715 rm -f conftest.$ac_objext conftest.$ac_ext
8718 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
8719 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
8720 if test "$ac_cv_c_ipx_gnu" = "yes"
8721 then
8723 cat >>confdefs.h <<\_ACEOF
8724 #define HAVE_IPX_GNU 1
8725 _ACEOF
8729 if test "$ac_cv_c_ipx_gnu" = "no"
8730 then
8731 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
8732 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
8733 if test "${ac_cv_c_ipx_linux+set}" = set; then
8734 echo $ECHO_N "(cached) $ECHO_C" >&6
8735 else
8736 cat >conftest.$ac_ext <<_ACEOF
8737 #line $LINENO "configure"
8738 #include "confdefs.h"
8739 #include <sys/socket.h>
8740 #include <asm/types.h>
8741 #include <linux/ipx.h>
8742 #ifdef F77_DUMMY_MAIN
8743 # ifdef __cplusplus
8744 extern "C"
8745 # endif
8746 int F77_DUMMY_MAIN() { return 1; }
8747 #endif
8749 main ()
8751 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
8753 return 0;
8755 _ACEOF
8756 rm -f conftest.$ac_objext
8757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8758 (eval $ac_compile) 2>&5
8759 ac_status=$?
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); } &&
8762 { ac_try='test -s conftest.$ac_objext'
8763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764 (eval $ac_try) 2>&5
8765 ac_status=$?
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; }; then
8768 ac_cv_c_ipx_linux="yes"
8769 else
8770 echo "$as_me: failed program was:" >&5
8771 cat conftest.$ac_ext >&5
8772 ac_cv_c_ipx_linux="no"
8774 rm -f conftest.$ac_objext conftest.$ac_ext
8777 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
8778 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
8779 if test "$ac_cv_c_ipx_linux" = "yes"
8780 then
8782 cat >>confdefs.h <<\_ACEOF
8783 #define HAVE_IPX_LINUX 1
8784 _ACEOF
8792 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
8794 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8796 echo "$as_me:$LINENO: checking for $ac_header" >&5
8797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8799 echo $ECHO_N "(cached) $ECHO_C" >&6
8801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8802 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8803 else
8804 # Is the header compilable?
8805 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8806 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8807 cat >conftest.$ac_ext <<_ACEOF
8808 #line $LINENO "configure"
8809 #include "confdefs.h"
8810 $ac_includes_default
8811 #include <$ac_header>
8812 _ACEOF
8813 rm -f conftest.$ac_objext
8814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8815 (eval $ac_compile) 2>&5
8816 ac_status=$?
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); } &&
8819 { ac_try='test -s conftest.$ac_objext'
8820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8821 (eval $ac_try) 2>&5
8822 ac_status=$?
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); }; }; then
8825 ac_header_compiler=yes
8826 else
8827 echo "$as_me: failed program was:" >&5
8828 cat conftest.$ac_ext >&5
8829 ac_header_compiler=no
8831 rm -f conftest.$ac_objext conftest.$ac_ext
8832 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8833 echo "${ECHO_T}$ac_header_compiler" >&6
8835 # Is the header present?
8836 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8838 cat >conftest.$ac_ext <<_ACEOF
8839 #line $LINENO "configure"
8840 #include "confdefs.h"
8841 #include <$ac_header>
8842 _ACEOF
8843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8845 ac_status=$?
8846 egrep -v '^ *\+' conftest.er1 >conftest.err
8847 rm -f conftest.er1
8848 cat conftest.err >&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); } >/dev/null; then
8851 if test -s conftest.err; then
8852 ac_cpp_err=$ac_c_preproc_warn_flag
8853 else
8854 ac_cpp_err=
8856 else
8857 ac_cpp_err=yes
8859 if test -z "$ac_cpp_err"; then
8860 ac_header_preproc=yes
8861 else
8862 echo "$as_me: failed program was:" >&5
8863 cat conftest.$ac_ext >&5
8864 ac_header_preproc=no
8866 rm -f conftest.err conftest.$ac_ext
8867 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8868 echo "${ECHO_T}$ac_header_preproc" >&6
8870 # So? What about this header?
8871 case $ac_header_compiler:$ac_header_preproc in
8872 yes:no )
8873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8877 no:yes )
8878 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8879 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8880 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8881 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8883 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8884 esac
8885 echo "$as_me:$LINENO: checking for $ac_header" >&5
8886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8888 echo $ECHO_N "(cached) $ECHO_C" >&6
8889 else
8890 eval "$as_ac_Header=$ac_header_preproc"
8892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8896 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8897 cat >>confdefs.h <<_ACEOF
8898 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8899 _ACEOF
8900 break
8903 done
8906 echo "$as_me:$LINENO: checking for Open Sound System" >&5
8907 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
8908 if test "${ac_cv_c_opensoundsystem+set}" = set; then
8909 echo $ECHO_N "(cached) $ECHO_C" >&6
8910 else
8911 cat >conftest.$ac_ext <<_ACEOF
8912 #line $LINENO "configure"
8913 #include "confdefs.h"
8915 #if defined(HAVE_SYS_SOUNDCARD_H)
8916 #include <sys/soundcard.h>
8917 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
8918 #include <machine/soundcard.h>
8919 #elif defined(HAVE_SOUNDCARD_H)
8920 #include <soundcard.h>
8921 #endif
8923 #ifdef F77_DUMMY_MAIN
8924 # ifdef __cplusplus
8925 extern "C"
8926 # endif
8927 int F77_DUMMY_MAIN() { return 1; }
8928 #endif
8930 main ()
8934 /* check for one of the Open Sound System specific SNDCTL_ defines */
8935 #if !defined(SNDCTL_DSP_STEREO)
8936 #error No open sound system
8937 #endif
8940 return 0;
8942 _ACEOF
8943 rm -f conftest.$ac_objext
8944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8945 (eval $ac_compile) 2>&5
8946 ac_status=$?
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); } &&
8949 { ac_try='test -s conftest.$ac_objext'
8950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8951 (eval $ac_try) 2>&5
8952 ac_status=$?
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); }; }; then
8955 ac_cv_c_opensoundsystem="yes"
8956 else
8957 echo "$as_me: failed program was:" >&5
8958 cat conftest.$ac_ext >&5
8959 ac_cv_c_opensoundsystem="no"
8961 rm -f conftest.$ac_objext conftest.$ac_ext
8963 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
8964 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
8966 if test "$ac_cv_c_opensoundsystem" = "yes"
8967 then
8969 cat >>confdefs.h <<\_ACEOF
8970 #define HAVE_OSS 1
8971 _ACEOF
8975 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
8976 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
8977 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
8978 echo $ECHO_N "(cached) $ECHO_C" >&6
8979 else
8980 cat >conftest.$ac_ext <<_ACEOF
8981 #line $LINENO "configure"
8982 #include "confdefs.h"
8984 #if defined(HAVE_SYS_SOUNDCARD_H)
8985 #include <sys/soundcard.h>
8986 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
8987 #include <machine/soundcard.h>
8988 #elif defined(HAVE_SOUNDCARD_H)
8989 #include <soundcard.h>
8990 #endif
8992 #ifdef F77_DUMMY_MAIN
8993 # ifdef __cplusplus
8994 extern "C"
8995 # endif
8996 int F77_DUMMY_MAIN() { return 1; }
8997 #endif
8999 main ()
9003 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
9004 #if !defined(SNDCTL_SEQ_SYNC)
9005 #error No open sound system MIDI interface
9006 #endif
9009 return 0;
9011 _ACEOF
9012 rm -f conftest.$ac_objext
9013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9014 (eval $ac_compile) 2>&5
9015 ac_status=$?
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); } &&
9018 { ac_try='test -s conftest.$ac_objext'
9019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9020 (eval $ac_try) 2>&5
9021 ac_status=$?
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); }; }; then
9024 ac_cv_c_opensoundsystem_midi="yes"
9025 else
9026 echo "$as_me: failed program was:" >&5
9027 cat conftest.$ac_ext >&5
9028 ac_cv_c_opensoundsystem_midi="no"
9030 rm -f conftest.$ac_objext conftest.$ac_ext
9032 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
9033 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
9035 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
9036 then
9038 cat >>confdefs.h <<\_ACEOF
9039 #define HAVE_OSS_MIDI 1
9040 _ACEOF
9044 # Extract the first word of "artsc-config", so it can be a program name with args.
9045 set dummy artsc-config; ac_word=$2
9046 echo "$as_me:$LINENO: checking for $ac_word" >&5
9047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9048 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
9049 echo $ECHO_N "(cached) $ECHO_C" >&6
9050 else
9051 case $ARTSCCONFIG in
9052 [\\/]* | ?:[\\/]*)
9053 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
9056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9057 for as_dir in $PATH
9059 IFS=$as_save_IFS
9060 test -z "$as_dir" && as_dir=.
9061 for ac_exec_ext in '' $ac_executable_extensions; do
9062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9063 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
9064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9065 break 2
9067 done
9068 done
9071 esac
9073 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
9075 if test -n "$ARTSCCONFIG"; then
9076 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
9077 echo "${ECHO_T}$ARTSCCONFIG" >&6
9078 else
9079 echo "$as_me:$LINENO: result: no" >&5
9080 echo "${ECHO_T}no" >&6
9083 echo "$as_me:$LINENO: checking for aRts Sound server" >&5
9084 echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
9085 if test "${ac_cv_c_artsserver+set}" = set; then
9086 echo $ECHO_N "(cached) $ECHO_C" >&6
9087 else
9088 if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
9089 then
9090 ac_cv_c_artsserver=no
9091 else
9092 ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
9093 ARTSC_LIBS=`$ARTSCCONFIG --libs`
9094 ac_cv_c_artsserver=no
9095 save_CFLAGS="$CFLAGS"
9096 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
9097 cat >conftest.$ac_ext <<_ACEOF
9098 #line $LINENO "configure"
9099 #include "confdefs.h"
9101 #include <artsc.h>
9103 #ifdef F77_DUMMY_MAIN
9104 # ifdef __cplusplus
9105 extern "C"
9106 # endif
9107 int F77_DUMMY_MAIN() { return 1; }
9108 #endif
9110 main ()
9113 arts_stream_t stream;
9116 return 0;
9118 _ACEOF
9119 rm -f conftest.$ac_objext
9120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9121 (eval $ac_compile) 2>&5
9122 ac_status=$?
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } &&
9125 { ac_try='test -s conftest.$ac_objext'
9126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9127 (eval $ac_try) 2>&5
9128 ac_status=$?
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; }; then
9132 ac_cv_c_artsserver=yes
9134 else
9135 echo "$as_me: failed program was:" >&5
9136 cat conftest.$ac_ext >&5
9138 rm -f conftest.$ac_objext conftest.$ac_ext
9139 CFLAGS="$save_CFLAGS"
9142 echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
9143 echo "${ECHO_T}$ac_cv_c_artsserver" >&6
9145 if test "$ac_cv_c_artsserver" = "yes"
9146 then
9147 ARTSLIBS=$ARTSC_LIBS
9149 ARTSINCL=$ARTSC_CFLAGS
9153 cat >>confdefs.h <<\_ACEOF
9154 #define HAVE_ARTS 1
9155 _ACEOF
9160 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
9161 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
9162 if test "${ac_cv_mmap64_works+set}" = set; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
9164 else
9165 if test "$cross_compiling" = yes; then
9166 ac_cv_mmap64_works="no"
9167 else
9168 cat >conftest.$ac_ext <<_ACEOF
9169 #line $LINENO "configure"
9170 #include "confdefs.h"
9172 #define _FILE_OFFSET_BITS 64
9173 #include <stdio.h>
9174 #include <unistd.h>
9175 #include <fcntl.h>
9176 #include <sys/mman.h>
9177 #include <errno.h>
9179 int main(int argc,char **argv) {
9180 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
9181 if (fd == -1) exit(1);
9183 unlink("conftest.map");
9185 write(fd,"test",4);
9187 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
9188 (errno == EINVAL)
9190 exit(1);
9192 close(fd);
9193 fprintf(stderr,"success!\n");
9194 exit(0);
9198 _ACEOF
9199 rm -f conftest$ac_exeext
9200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9201 (eval $ac_link) 2>&5
9202 ac_status=$?
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206 (eval $ac_try) 2>&5
9207 ac_status=$?
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); }; }; then
9210 ac_cv_mmap64_works="yes"
9211 else
9212 echo "$as_me: program exited with status $ac_status" >&5
9213 echo "$as_me: failed program was:" >&5
9214 cat conftest.$ac_ext >&5
9215 ( exit $ac_status )
9216 ac_cv_mmap64_works="no"
9218 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9221 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
9222 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
9224 if test "$ac_cv_mmap64_works" = "yes"
9225 then
9227 cat >>confdefs.h <<\_ACEOF
9228 #define _FILE_OFFSET_BITS 64
9229 _ACEOF
9234 if test "x${GCC}" = "xyes"
9235 then
9236 CFLAGS="$CFLAGS -Wall"
9237 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
9238 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
9239 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
9240 echo $ECHO_N "(cached) $ECHO_C" >&6
9241 else
9242 if test "$cross_compiling" = yes; then
9243 ac_cv_c_gcc_strength_bug="yes"
9244 else
9245 cat >conftest.$ac_ext <<_ACEOF
9246 #line $LINENO "configure"
9247 #include "confdefs.h"
9249 int L[4] = {0,1,2,3};
9250 int main(void) {
9251 static int Array[3];
9252 unsigned int B = 3;
9253 int i;
9254 for(i=0; i<B; i++) Array[i] = i - 3;
9255 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
9256 L[i] = 4;
9258 exit( Array[1] != -2 || L[2] != 3);
9260 _ACEOF
9261 rm -f conftest$ac_exeext
9262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9263 (eval $ac_link) 2>&5
9264 ac_status=$?
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9268 (eval $ac_try) 2>&5
9269 ac_status=$?
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); }; }; then
9272 ac_cv_c_gcc_strength_bug="no"
9273 else
9274 echo "$as_me: program exited with status $ac_status" >&5
9275 echo "$as_me: failed program was:" >&5
9276 cat conftest.$ac_ext >&5
9277 ( exit $ac_status )
9278 ac_cv_c_gcc_strength_bug="yes"
9280 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9283 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
9284 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
9285 if test "$ac_cv_c_gcc_strength_bug" = "yes"
9286 then
9287 CFLAGS="$CFLAGS -fno-strength-reduce"
9290 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
9291 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
9292 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
9293 echo $ECHO_N "(cached) $ECHO_C" >&6
9294 else
9295 saved_cflags=$CFLAGS
9296 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9297 cat >conftest.$ac_ext <<_ACEOF
9298 #line $LINENO "configure"
9299 #include "confdefs.h"
9301 #ifdef F77_DUMMY_MAIN
9302 # ifdef __cplusplus
9303 extern "C"
9304 # endif
9305 int F77_DUMMY_MAIN() { return 1; }
9306 #endif
9308 main ()
9310 return 0
9312 return 0;
9314 _ACEOF
9315 rm -f conftest.$ac_objext
9316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9317 (eval $ac_compile) 2>&5
9318 ac_status=$?
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); } &&
9321 { ac_try='test -s conftest.$ac_objext'
9322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9323 (eval $ac_try) 2>&5
9324 ac_status=$?
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); }; }; then
9327 ac_cv_c_gcc_stack_boundary="yes"
9328 else
9329 echo "$as_me: failed program was:" >&5
9330 cat conftest.$ac_ext >&5
9331 ac_cv_c_gcc_stack_boundary="no"
9333 rm -f conftest.$ac_objext conftest.$ac_ext
9334 CFLAGS=$saved_cflags
9337 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
9338 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
9339 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
9340 then
9341 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9346 echo "$as_me:$LINENO: checking whether .type must sit inside a .def directive" >&5
9347 echo $ECHO_N "checking whether .type must sit inside a .def directive... $ECHO_C" >&6
9348 if test "${ac_cv_c_type_in_def+set}" = set; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
9350 else
9351 saved_libs=$LIBS
9352 LIBS="conftest_asm.s $LIBS"
9353 cat > conftest_asm.s <<EOF
9354 .globl _ac_test
9355 .def _ac_test; .scl 2; .type 32; .endef
9356 _ac_test:
9357 .long 0
9359 cat >conftest.$ac_ext <<_ACEOF
9360 #line $LINENO "configure"
9361 #include "confdefs.h"
9363 #ifdef F77_DUMMY_MAIN
9364 # ifdef __cplusplus
9365 extern "C"
9366 # endif
9367 int F77_DUMMY_MAIN() { return 1; }
9368 #endif
9370 main ()
9374 return 0;
9376 _ACEOF
9377 rm -f conftest.$ac_objext conftest$ac_exeext
9378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9379 (eval $ac_link) 2>&5
9380 ac_status=$?
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); } &&
9383 { ac_try='test -s conftest$ac_exeext'
9384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9385 (eval $ac_try) 2>&5
9386 ac_status=$?
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); }; }; then
9389 ac_cv_c_type_in_def="yes"
9390 else
9391 echo "$as_me: failed program was:" >&5
9392 cat conftest.$ac_ext >&5
9393 ac_cv_c_type_in_def="no"
9395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9396 LIBS=$saved_libs
9398 echo "$as_me:$LINENO: result: $ac_cv_c_type_in_def" >&5
9399 echo "${ECHO_T}$ac_cv_c_type_in_def" >&6
9400 if test "$ac_cv_c_type_in_def" = "yes"
9401 then
9403 cat >>confdefs.h <<\_ACEOF
9404 #define NEED_TYPE_IN_DEF 1
9405 _ACEOF
9410 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
9411 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
9412 if test "${ac_cv_c_extern_prefix+set}" = set; then
9413 echo $ECHO_N "(cached) $ECHO_C" >&6
9414 else
9415 saved_libs=$LIBS
9416 LIBS="conftest_asm.s $LIBS"
9417 cat > conftest_asm.s <<EOF
9418 .globl _ac_test
9419 _ac_test:
9420 .long 0
9422 cat >conftest.$ac_ext <<_ACEOF
9423 #line $LINENO "configure"
9424 #include "confdefs.h"
9425 extern int ac_test;
9426 #ifdef F77_DUMMY_MAIN
9427 # ifdef __cplusplus
9428 extern "C"
9429 # endif
9430 int F77_DUMMY_MAIN() { return 1; }
9431 #endif
9433 main ()
9435 if (ac_test) return 1
9437 return 0;
9439 _ACEOF
9440 rm -f conftest.$ac_objext conftest$ac_exeext
9441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9442 (eval $ac_link) 2>&5
9443 ac_status=$?
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); } &&
9446 { ac_try='test -s conftest$ac_exeext'
9447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9448 (eval $ac_try) 2>&5
9449 ac_status=$?
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); }; }; then
9452 ac_cv_c_extern_prefix="yes"
9453 else
9454 echo "$as_me: failed program was:" >&5
9455 cat conftest.$ac_ext >&5
9456 ac_cv_c_extern_prefix="no"
9458 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9459 LIBS=$saved_libs
9461 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
9462 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
9463 if test "$ac_cv_c_extern_prefix" = "yes"
9464 then
9466 cat >>confdefs.h <<\_ACEOF
9467 #define NEED_UNDERSCORE_PREFIX 1
9468 _ACEOF
9473 echo "$as_me:$LINENO: checking whether stdcall symbols need to be decorated" >&5
9474 echo $ECHO_N "checking whether stdcall symbols need to be decorated... $ECHO_C" >&6
9475 if test "${ac_cv_c_stdcall_decoration+set}" = set; then
9476 echo $ECHO_N "(cached) $ECHO_C" >&6
9477 else
9478 saved_libs=$LIBS
9479 LIBS="conftest_asm.s $LIBS"
9480 if test "$ac_cv_c_extern_prefix" = "yes"
9481 then
9482 cat > conftest_asm.s <<EOF
9483 .globl _ac_test@0
9484 _ac_test@0:
9486 else
9487 cat > conftest_asm.s <<EOF
9488 .globl ac_test@0
9489 ac_test@0:
9492 cat >conftest.$ac_ext <<_ACEOF
9493 #line $LINENO "configure"
9494 #include "confdefs.h"
9495 extern void __attribute__((__stdcall__)) ac_test(void);
9496 #ifdef F77_DUMMY_MAIN
9497 # ifdef __cplusplus
9498 extern "C"
9499 # endif
9500 int F77_DUMMY_MAIN() { return 1; }
9501 #endif
9503 main ()
9505 ac_test(); return 0
9507 return 0;
9509 _ACEOF
9510 rm -f conftest.$ac_objext conftest$ac_exeext
9511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9512 (eval $ac_link) 2>&5
9513 ac_status=$?
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); } &&
9516 { ac_try='test -s conftest$ac_exeext'
9517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9518 (eval $ac_try) 2>&5
9519 ac_status=$?
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); }; }; then
9522 ac_cv_c_stdcall_decoration="yes"
9523 else
9524 echo "$as_me: failed program was:" >&5
9525 cat conftest.$ac_ext >&5
9526 ac_cv_c_stdcall_decoration="no"
9528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9529 LIBS=$saved_libs
9531 echo "$as_me:$LINENO: result: $ac_cv_c_stdcall_decoration" >&5
9532 echo "${ECHO_T}$ac_cv_c_stdcall_decoration" >&6
9533 if test "$ac_cv_c_stdcall_decoration" = "yes"
9534 then
9536 cat >>confdefs.h <<\_ACEOF
9537 #define NEED_STDCALL_DECORATION 1
9538 _ACEOF
9543 echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
9544 echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
9545 if test "${ac_cv_c_asm_string+set}" = set; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9547 else
9548 saved_libs=$LIBS
9549 LIBS="conftest_asm.s $LIBS"
9550 cat > conftest_asm.s <<EOF
9551 .string "test"
9553 cat >conftest.$ac_ext <<_ACEOF
9554 #line $LINENO "configure"
9555 #include "confdefs.h"
9557 #ifdef F77_DUMMY_MAIN
9558 # ifdef __cplusplus
9559 extern "C"
9560 # endif
9561 int F77_DUMMY_MAIN() { return 1; }
9562 #endif
9564 main ()
9568 return 0;
9570 _ACEOF
9571 rm -f conftest.$ac_objext conftest$ac_exeext
9572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9573 (eval $ac_link) 2>&5
9574 ac_status=$?
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); } &&
9577 { ac_try='test -s conftest$ac_exeext'
9578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9579 (eval $ac_try) 2>&5
9580 ac_status=$?
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); }; }; then
9583 ac_cv_c_asm_string="yes"
9584 else
9585 echo "$as_me: failed program was:" >&5
9586 cat conftest.$ac_ext >&5
9587 ac_cv_c_asm_string="no"
9589 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9590 LIBS=$saved_libs
9592 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
9593 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
9594 if test "$ac_cv_c_asm_string" = "yes"
9595 then
9597 cat >>confdefs.h <<\_ACEOF
9598 #define HAVE_ASM_STRING 1
9599 _ACEOF
9604 LDSHARED=""
9605 LDDLLFLAGS=""
9606 if test "$LIBEXT" = "so"
9607 then
9608 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
9609 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
9610 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
9611 echo $ECHO_N "(cached) $ECHO_C" >&6
9612 else
9613 saved_cflags=$CFLAGS
9614 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
9615 cat >conftest.$ac_ext <<_ACEOF
9616 #line $LINENO "configure"
9617 #include "confdefs.h"
9619 #ifdef F77_DUMMY_MAIN
9620 # ifdef __cplusplus
9621 extern "C"
9622 # endif
9623 int F77_DUMMY_MAIN() { return 1; }
9624 #endif
9626 main ()
9628 return 1
9630 return 0;
9632 _ACEOF
9633 rm -f conftest.$ac_objext conftest$ac_exeext
9634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9635 (eval $ac_link) 2>&5
9636 ac_status=$?
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); } &&
9639 { ac_try='test -s conftest$ac_exeext'
9640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9641 (eval $ac_try) 2>&5
9642 ac_status=$?
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); }; }; then
9645 ac_cv_c_dll_gnuelf="yes"
9646 else
9647 echo "$as_me: failed program was:" >&5
9648 cat conftest.$ac_ext >&5
9649 ac_cv_c_dll_gnuelf="no"
9651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9652 CFLAGS=$saved_cflags
9655 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
9656 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
9657 if test "$ac_cv_c_dll_gnuelf" = "yes"
9658 then
9659 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
9660 LDDLLFLAGS="-Wl,-Bsymbolic"
9661 else
9662 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
9663 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
9664 if test "${ac_cv_c_dll_unixware+set}" = set; then
9665 echo $ECHO_N "(cached) $ECHO_C" >&6
9666 else
9667 saved_cflags=$CFLAGS
9668 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
9669 cat >conftest.$ac_ext <<_ACEOF
9670 #line $LINENO "configure"
9671 #include "confdefs.h"
9673 #ifdef F77_DUMMY_MAIN
9674 # ifdef __cplusplus
9675 extern "C"
9676 # endif
9677 int F77_DUMMY_MAIN() { return 1; }
9678 #endif
9680 main ()
9682 return 1
9684 return 0;
9686 _ACEOF
9687 rm -f conftest.$ac_objext conftest$ac_exeext
9688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9689 (eval $ac_link) 2>&5
9690 ac_status=$?
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); } &&
9693 { ac_try='test -s conftest$ac_exeext'
9694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695 (eval $ac_try) 2>&5
9696 ac_status=$?
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; }; then
9699 ac_cv_c_dll_unixware="yes"
9700 else
9701 echo "$as_me: failed program was:" >&5
9702 cat conftest.$ac_ext >&5
9703 ac_cv_c_dll_unixware="no"
9705 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9706 CFLAGS=$saved_cflags
9709 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
9710 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
9711 if test "$ac_cv_c_dll_unixware" = "yes"
9712 then
9713 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
9714 LDDLLFLAGS="-Wl,-B,symbolic"
9717 if test "$ac_cv_c_dll_gnuelf" = "no" -a "$ac_cv_c_dll_unixware" = "no"
9718 then
9719 LIBEXT="a"
9720 # Extract the first word of "dllwrap", so it can be a program name with args.
9721 set dummy dllwrap; ac_word=$2
9722 echo "$as_me:$LINENO: checking for $ac_word" >&5
9723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9724 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
9725 echo $ECHO_N "(cached) $ECHO_C" >&6
9726 else
9727 if test -n "$DLLWRAP"; then
9728 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
9729 else
9730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9731 for as_dir in $PATH
9733 IFS=$as_save_IFS
9734 test -z "$as_dir" && as_dir=.
9735 for ac_exec_ext in '' $ac_executable_extensions; do
9736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9737 ac_cv_prog_DLLWRAP="dllwrap"
9738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9739 break 2
9741 done
9742 done
9744 test -z "$ac_cv_prog_DLLWRAP" && ac_cv_prog_DLLWRAP="false"
9747 DLLWRAP=$ac_cv_prog_DLLWRAP
9748 if test -n "$DLLWRAP"; then
9749 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
9750 echo "${ECHO_T}$DLLWRAP" >&6
9751 else
9752 echo "$as_me:$LINENO: result: no" >&5
9753 echo "${ECHO_T}no" >&6
9756 if test "$DLLWRAP" = "dllwrap"; then
9757 case $host_os in
9758 *cygwin*)
9759 LIBEXT="dll"
9761 esac
9766 if test "$LIBEXT" = "a"; then
9767 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
9768 It is currently not possible to build Wine without shared library
9769 (.so) support to allow transparent switch between .so and .dll files.
9770 If you are using Linux, you will need a newer binutils.
9771 " >&5
9772 echo "$as_me: error: could not find a way to build shared libraries.
9773 It is currently not possible to build Wine without shared library
9774 (.so) support to allow transparent switch between .so and .dll files.
9775 If you are using Linux, you will need a newer binutils.
9776 " >&2;}
9777 { (exit 1); exit 1; }; }
9780 DLLFLAGS=""
9781 LDPATH=""
9783 if test "$LIBEXT" = "so"; then
9784 DLLFLAGS="-fPIC"
9785 DLLEXT=".so"
9786 LDPATH="LD_LIBRARY_PATH=\"\$(TOPOBJDIR)/unicode:\$\$LD_LIBRARY_PATH\""
9787 elif test "$LIBEXT" = "dll"; then
9788 #DLLFLAGS="-fPIC" # -fPIC doesn't work(at least in cygwin-b20) - FIXME
9789 DLLEXT=""
9790 LDPATH="PATH=\"\$(TOPOBJDIR)/unicode:\$\$PATH\""
9803 wine_cv_libc_reentrant=no
9805 echo "$as_me:$LINENO: checking for reentrant libc: __errno_location" >&5
9806 echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6
9807 if test "${wine_cv_libc_r___errno_location+set}" = set; then
9808 echo $ECHO_N "(cached) $ECHO_C" >&6
9809 else
9810 if test "$cross_compiling" = yes; then
9811 wine_cv_libc_r___errno_location=yes
9812 else
9813 cat >conftest.$ac_ext <<_ACEOF
9814 #line $LINENO "configure"
9815 #include "confdefs.h"
9816 int myerrno = 0;
9817 char buf[256];
9818 int *__errno_location(){return &myerrno;}
9819 main(){connect(0,buf,255); exit(!myerrno);}
9820 _ACEOF
9821 rm -f conftest$ac_exeext
9822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9823 (eval $ac_link) 2>&5
9824 ac_status=$?
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828 (eval $ac_try) 2>&5
9829 ac_status=$?
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; }; then
9832 wine_cv_libc_r___errno_location=yes
9833 else
9834 echo "$as_me: program exited with status $ac_status" >&5
9835 echo "$as_me: failed program was:" >&5
9836 cat conftest.$ac_ext >&5
9837 ( exit $ac_status )
9838 wine_cv_libc_r___errno_location=no
9840 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9844 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno_location" >&5
9845 echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6
9846 if test "$wine_cv_libc_r___errno_location" = "yes"
9847 then
9848 wine_cv_libc_reentrant=__errno_location
9852 echo "$as_me:$LINENO: checking for reentrant libc: __error" >&5
9853 echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6
9854 if test "${wine_cv_libc_r___error+set}" = set; then
9855 echo $ECHO_N "(cached) $ECHO_C" >&6
9856 else
9857 if test "$cross_compiling" = yes; then
9858 wine_cv_libc_r___error=yes
9859 else
9860 cat >conftest.$ac_ext <<_ACEOF
9861 #line $LINENO "configure"
9862 #include "confdefs.h"
9863 int myerrno = 0;
9864 char buf[256];
9865 int *__error(){return &myerrno;}
9866 main(){connect(0,buf,255); exit(!myerrno);}
9867 _ACEOF
9868 rm -f conftest$ac_exeext
9869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9870 (eval $ac_link) 2>&5
9871 ac_status=$?
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875 (eval $ac_try) 2>&5
9876 ac_status=$?
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; }; then
9879 wine_cv_libc_r___error=yes
9880 else
9881 echo "$as_me: program exited with status $ac_status" >&5
9882 echo "$as_me: failed program was:" >&5
9883 cat conftest.$ac_ext >&5
9884 ( exit $ac_status )
9885 wine_cv_libc_r___error=no
9887 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9891 echo "$as_me:$LINENO: result: $wine_cv_libc_r___error" >&5
9892 echo "${ECHO_T}$wine_cv_libc_r___error" >&6
9893 if test "$wine_cv_libc_r___error" = "yes"
9894 then
9895 wine_cv_libc_reentrant=__error
9899 echo "$as_me:$LINENO: checking for reentrant libc: ___errno" >&5
9900 echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6
9901 if test "${wine_cv_libc_r____errno+set}" = set; then
9902 echo $ECHO_N "(cached) $ECHO_C" >&6
9903 else
9904 if test "$cross_compiling" = yes; then
9905 wine_cv_libc_r____errno=yes
9906 else
9907 cat >conftest.$ac_ext <<_ACEOF
9908 #line $LINENO "configure"
9909 #include "confdefs.h"
9910 int myerrno = 0;
9911 char buf[256];
9912 int *___errno(){return &myerrno;}
9913 main(){connect(0,buf,255); exit(!myerrno);}
9914 _ACEOF
9915 rm -f conftest$ac_exeext
9916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9917 (eval $ac_link) 2>&5
9918 ac_status=$?
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922 (eval $ac_try) 2>&5
9923 ac_status=$?
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; }; then
9926 wine_cv_libc_r____errno=yes
9927 else
9928 echo "$as_me: program exited with status $ac_status" >&5
9929 echo "$as_me: failed program was:" >&5
9930 cat conftest.$ac_ext >&5
9931 ( exit $ac_status )
9932 wine_cv_libc_r____errno=no
9934 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9938 echo "$as_me:$LINENO: result: $wine_cv_libc_r____errno" >&5
9939 echo "${ECHO_T}$wine_cv_libc_r____errno" >&6
9940 if test "$wine_cv_libc_r____errno" = "yes"
9941 then
9942 wine_cv_libc_reentrant=___errno
9946 echo "$as_me:$LINENO: checking for reentrant libc: __thr_errno" >&5
9947 echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6
9948 if test "${wine_cv_libc_r___thr_errno+set}" = set; then
9949 echo $ECHO_N "(cached) $ECHO_C" >&6
9950 else
9951 if test "$cross_compiling" = yes; then
9952 wine_cv_libc_r___thr_errno=yes
9953 else
9954 cat >conftest.$ac_ext <<_ACEOF
9955 #line $LINENO "configure"
9956 #include "confdefs.h"
9957 int myerrno = 0;
9958 char buf[256];
9959 int *__thr_errno(){return &myerrno;}
9960 main(){connect(0,buf,255); exit(!myerrno);}
9961 _ACEOF
9962 rm -f conftest$ac_exeext
9963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9964 (eval $ac_link) 2>&5
9965 ac_status=$?
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9969 (eval $ac_try) 2>&5
9970 ac_status=$?
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); }; }; then
9973 wine_cv_libc_r___thr_errno=yes
9974 else
9975 echo "$as_me: program exited with status $ac_status" >&5
9976 echo "$as_me: failed program was:" >&5
9977 cat conftest.$ac_ext >&5
9978 ( exit $ac_status )
9979 wine_cv_libc_r___thr_errno=no
9981 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9985 echo "$as_me:$LINENO: result: $wine_cv_libc_r___thr_errno" >&5
9986 echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6
9987 if test "$wine_cv_libc_r___thr_errno" = "yes"
9988 then
9989 wine_cv_libc_reentrant=__thr_errno
9993 echo "$as_me:$LINENO: checking for reentrant libc: __errno" >&5
9994 echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6
9995 if test "${wine_cv_libc_r___errno+set}" = set; then
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
9997 else
9998 if test "$cross_compiling" = yes; then
9999 wine_cv_libc_r___errno=yes
10000 else
10001 cat >conftest.$ac_ext <<_ACEOF
10002 #line $LINENO "configure"
10003 #include "confdefs.h"
10004 int myerrno = 0;
10005 char buf[256];
10006 int *__errno(){return &myerrno;}
10007 main(){connect(0,buf,255); exit(!myerrno);}
10008 _ACEOF
10009 rm -f conftest$ac_exeext
10010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10011 (eval $ac_link) 2>&5
10012 ac_status=$?
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10016 (eval $ac_try) 2>&5
10017 ac_status=$?
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); }; }; then
10020 wine_cv_libc_r___errno=yes
10021 else
10022 echo "$as_me: program exited with status $ac_status" >&5
10023 echo "$as_me: failed program was:" >&5
10024 cat conftest.$ac_ext >&5
10025 ( exit $ac_status )
10026 wine_cv_libc_r___errno=no
10028 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10032 echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno" >&5
10033 echo "${ECHO_T}$wine_cv_libc_r___errno" >&6
10034 if test "$wine_cv_libc_r___errno" = "yes"
10035 then
10036 wine_cv_libc_reentrant=__errno
10040 if test "$wine_cv_libc_reentrant" != "no"
10041 then
10043 cat >>confdefs.h <<_ACEOF
10044 #define ERRNO_LOCATION $wine_cv_libc_reentrant
10045 _ACEOF
10050 if test "$have_x" = "yes"
10051 then
10052 echo "$as_me:$LINENO: checking for reentrant X libraries" >&5
10053 echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6
10054 if test "${wine_cv_x_reentrant+set}" = set; then
10055 echo $ECHO_N "(cached) $ECHO_C" >&6
10056 else
10057 libX11_check=none
10058 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
10059 if test -r $dir/libX11.so; then
10060 libX11_check="-D $dir/libX11.so"
10061 break
10063 if test -r $dir/libX11.a; then
10064 libX11_check="$dir/libX11.a"
10065 break
10067 done
10068 if test "$libX11_check" != "none"; then
10069 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
10070 then
10071 wine_cv_x_reentrant=yes
10072 else
10073 wine_cv_x_reentrant=no
10075 else
10076 wine_cv_x_reentrant=unknown
10079 echo "$as_me:$LINENO: result: $wine_cv_x_reentrant" >&5
10080 echo "${ECHO_T}$wine_cv_x_reentrant" >&6
10084 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10085 # for constant arguments. Useless!
10086 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10087 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10088 if test "${ac_cv_working_alloca_h+set}" = set; then
10089 echo $ECHO_N "(cached) $ECHO_C" >&6
10090 else
10091 cat >conftest.$ac_ext <<_ACEOF
10092 #line $LINENO "configure"
10093 #include "confdefs.h"
10094 #include <alloca.h>
10095 #ifdef F77_DUMMY_MAIN
10096 # ifdef __cplusplus
10097 extern "C"
10098 # endif
10099 int F77_DUMMY_MAIN() { return 1; }
10100 #endif
10102 main ()
10104 char *p = (char *) alloca (2 * sizeof (int));
10106 return 0;
10108 _ACEOF
10109 rm -f conftest.$ac_objext conftest$ac_exeext
10110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10111 (eval $ac_link) 2>&5
10112 ac_status=$?
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); } &&
10115 { ac_try='test -s conftest$ac_exeext'
10116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10117 (eval $ac_try) 2>&5
10118 ac_status=$?
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); }; }; then
10121 ac_cv_working_alloca_h=yes
10122 else
10123 echo "$as_me: failed program was:" >&5
10124 cat conftest.$ac_ext >&5
10125 ac_cv_working_alloca_h=no
10127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10129 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10130 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10131 if test $ac_cv_working_alloca_h = yes; then
10133 cat >>confdefs.h <<\_ACEOF
10134 #define HAVE_ALLOCA_H 1
10135 _ACEOF
10139 echo "$as_me:$LINENO: checking for alloca" >&5
10140 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10141 if test "${ac_cv_func_alloca_works+set}" = set; then
10142 echo $ECHO_N "(cached) $ECHO_C" >&6
10143 else
10144 cat >conftest.$ac_ext <<_ACEOF
10145 #line $LINENO "configure"
10146 #include "confdefs.h"
10147 #ifdef __GNUC__
10148 # define alloca __builtin_alloca
10149 #else
10150 # ifdef _MSC_VER
10151 # include <malloc.h>
10152 # define alloca _alloca
10153 # else
10154 # if HAVE_ALLOCA_H
10155 # include <alloca.h>
10156 # else
10157 # ifdef _AIX
10158 #pragma alloca
10159 # else
10160 # ifndef alloca /* predefined by HP cc +Olibcalls */
10161 char *alloca ();
10162 # endif
10163 # endif
10164 # endif
10165 # endif
10166 #endif
10168 #ifdef F77_DUMMY_MAIN
10169 # ifdef __cplusplus
10170 extern "C"
10171 # endif
10172 int F77_DUMMY_MAIN() { return 1; }
10173 #endif
10175 main ()
10177 char *p = (char *) alloca (1);
10179 return 0;
10181 _ACEOF
10182 rm -f conftest.$ac_objext conftest$ac_exeext
10183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10184 (eval $ac_link) 2>&5
10185 ac_status=$?
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); } &&
10188 { ac_try='test -s conftest$ac_exeext'
10189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10190 (eval $ac_try) 2>&5
10191 ac_status=$?
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); }; }; then
10194 ac_cv_func_alloca_works=yes
10195 else
10196 echo "$as_me: failed program was:" >&5
10197 cat conftest.$ac_ext >&5
10198 ac_cv_func_alloca_works=no
10200 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10202 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10203 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10205 if test $ac_cv_func_alloca_works = yes; then
10207 cat >>confdefs.h <<\_ACEOF
10208 #define HAVE_ALLOCA 1
10209 _ACEOF
10211 else
10212 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10213 # that cause trouble. Some versions do not even contain alloca or
10214 # contain a buggy version. If you still want to use their alloca,
10215 # use ar to extract alloca.o from them instead of compiling alloca.c.
10217 ALLOCA=alloca.$ac_objext
10219 cat >>confdefs.h <<\_ACEOF
10220 #define C_ALLOCA 1
10221 _ACEOF
10224 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10225 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10226 if test "${ac_cv_os_cray+set}" = set; then
10227 echo $ECHO_N "(cached) $ECHO_C" >&6
10228 else
10229 cat >conftest.$ac_ext <<_ACEOF
10230 #line $LINENO "configure"
10231 #include "confdefs.h"
10232 #if defined(CRAY) && ! defined(CRAY2)
10233 webecray
10234 #else
10235 wenotbecray
10236 #endif
10238 _ACEOF
10239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10240 egrep "webecray" >/dev/null 2>&1; then
10241 ac_cv_os_cray=yes
10242 else
10243 ac_cv_os_cray=no
10245 rm -f conftest*
10248 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10249 echo "${ECHO_T}$ac_cv_os_cray" >&6
10250 if test $ac_cv_os_cray = yes; then
10251 for ac_func in _getb67 GETB67 getb67; do
10252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10253 echo "$as_me:$LINENO: checking for $ac_func" >&5
10254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10255 if eval "test \"\${$as_ac_var+set}\" = set"; then
10256 echo $ECHO_N "(cached) $ECHO_C" >&6
10257 else
10258 cat >conftest.$ac_ext <<_ACEOF
10259 #line $LINENO "configure"
10260 #include "confdefs.h"
10261 /* System header to define __stub macros and hopefully few prototypes,
10262 which can conflict with char $ac_func (); below. */
10263 #include <assert.h>
10264 /* Override any gcc2 internal prototype to avoid an error. */
10265 #ifdef __cplusplus
10266 extern "C"
10267 #endif
10268 /* We use char because int might match the return type of a gcc2
10269 builtin and then its argument prototype would still apply. */
10270 char $ac_func ();
10271 char (*f) ();
10273 #ifdef F77_DUMMY_MAIN
10274 # ifdef __cplusplus
10275 extern "C"
10276 # endif
10277 int F77_DUMMY_MAIN() { return 1; }
10278 #endif
10280 main ()
10282 /* The GNU C library defines this for functions which it implements
10283 to always fail with ENOSYS. Some functions are actually named
10284 something starting with __ and the normal name is an alias. */
10285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10286 choke me
10287 #else
10288 f = $ac_func;
10289 #endif
10292 return 0;
10294 _ACEOF
10295 rm -f conftest.$ac_objext conftest$ac_exeext
10296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10297 (eval $ac_link) 2>&5
10298 ac_status=$?
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } &&
10301 { ac_try='test -s conftest$ac_exeext'
10302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10303 (eval $ac_try) 2>&5
10304 ac_status=$?
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); }; }; then
10307 eval "$as_ac_var=yes"
10308 else
10309 echo "$as_me: failed program was:" >&5
10310 cat conftest.$ac_ext >&5
10311 eval "$as_ac_var=no"
10313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10316 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10317 if test `eval echo '${'$as_ac_var'}'` = yes; then
10319 cat >>confdefs.h <<_ACEOF
10320 #define CRAY_STACKSEG_END $ac_func
10321 _ACEOF
10323 break
10326 done
10329 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10330 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10331 if test "${ac_cv_c_stack_direction+set}" = set; then
10332 echo $ECHO_N "(cached) $ECHO_C" >&6
10333 else
10334 if test "$cross_compiling" = yes; then
10335 ac_cv_c_stack_direction=0
10336 else
10337 cat >conftest.$ac_ext <<_ACEOF
10338 #line $LINENO "configure"
10339 #include "confdefs.h"
10341 find_stack_direction ()
10343 static char *addr = 0;
10344 auto char dummy;
10345 if (addr == 0)
10347 addr = &dummy;
10348 return find_stack_direction ();
10350 else
10351 return (&dummy > addr) ? 1 : -1;
10355 main ()
10357 exit (find_stack_direction () < 0);
10359 _ACEOF
10360 rm -f conftest$ac_exeext
10361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10362 (eval $ac_link) 2>&5
10363 ac_status=$?
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10367 (eval $ac_try) 2>&5
10368 ac_status=$?
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); }; }; then
10371 ac_cv_c_stack_direction=1
10372 else
10373 echo "$as_me: program exited with status $ac_status" >&5
10374 echo "$as_me: failed program was:" >&5
10375 cat conftest.$ac_ext >&5
10376 ( exit $ac_status )
10377 ac_cv_c_stack_direction=-1
10379 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10382 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10383 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10385 cat >>confdefs.h <<_ACEOF
10386 #define STACK_DIRECTION $ac_cv_c_stack_direction
10387 _ACEOF
10435 for ac_func in \
10436 __libc_fork \
10437 _lwp_create \
10438 _pclose \
10439 _popen \
10440 _stricmp \
10441 _strnicmp \
10442 clone \
10443 ecvt \
10444 finite \
10445 fpclass \
10446 ftruncate64 \
10447 getnetbyaddr \
10448 getnetbyname \
10449 getpagesize \
10450 getprotobyname \
10451 getprotobynumber \
10452 getrlimit \
10453 getservbyport \
10454 getsockopt \
10455 inet_network \
10456 lseek64 \
10457 lstat \
10458 memmove \
10459 mmap \
10460 pclose \
10461 pread \
10462 popen \
10463 pwrite \
10464 rfork \
10465 select \
10466 sendmsg \
10467 settimeofday \
10468 sigaltstack \
10469 statfs \
10470 strcasecmp \
10471 strerror \
10472 strncasecmp \
10473 tcgetattr \
10474 timegm \
10475 usleep \
10476 vfscanf \
10477 wait4 \
10478 waitpid \
10481 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10482 echo "$as_me:$LINENO: checking for $ac_func" >&5
10483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10484 if eval "test \"\${$as_ac_var+set}\" = set"; then
10485 echo $ECHO_N "(cached) $ECHO_C" >&6
10486 else
10487 cat >conftest.$ac_ext <<_ACEOF
10488 #line $LINENO "configure"
10489 #include "confdefs.h"
10490 /* System header to define __stub macros and hopefully few prototypes,
10491 which can conflict with char $ac_func (); below. */
10492 #include <assert.h>
10493 /* Override any gcc2 internal prototype to avoid an error. */
10494 #ifdef __cplusplus
10495 extern "C"
10496 #endif
10497 /* We use char because int might match the return type of a gcc2
10498 builtin and then its argument prototype would still apply. */
10499 char $ac_func ();
10500 char (*f) ();
10502 #ifdef F77_DUMMY_MAIN
10503 # ifdef __cplusplus
10504 extern "C"
10505 # endif
10506 int F77_DUMMY_MAIN() { return 1; }
10507 #endif
10509 main ()
10511 /* The GNU C library defines this for functions which it implements
10512 to always fail with ENOSYS. Some functions are actually named
10513 something starting with __ and the normal name is an alias. */
10514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10515 choke me
10516 #else
10517 f = $ac_func;
10518 #endif
10521 return 0;
10523 _ACEOF
10524 rm -f conftest.$ac_objext conftest$ac_exeext
10525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10526 (eval $ac_link) 2>&5
10527 ac_status=$?
10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); } &&
10530 { ac_try='test -s conftest$ac_exeext'
10531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10532 (eval $ac_try) 2>&5
10533 ac_status=$?
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); }; }; then
10536 eval "$as_ac_var=yes"
10537 else
10538 echo "$as_me: failed program was:" >&5
10539 cat conftest.$ac_ext >&5
10540 eval "$as_ac_var=no"
10542 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10545 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10546 if test `eval echo '${'$as_ac_var'}'` = yes; then
10547 cat >>confdefs.h <<_ACEOF
10548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10549 _ACEOF
10552 done
10615 for ac_header in \
10616 arpa/inet.h \
10617 arpa/nameser.h \
10618 direct.h \
10619 elf.h \
10620 float.h \
10621 ieeefp.h \
10622 io.h \
10623 libio.h \
10624 libutil.h \
10625 link.h \
10626 linux/cdrom.h \
10627 linux/input.h \
10628 linux/joystick.h \
10629 linux/serial.h \
10630 linux/ucdrom.h \
10631 net/if.h \
10632 netdb.h \
10633 netinet/in.h \
10634 netinet/in_systm.h \
10635 netinet/ip.h \
10636 netinet/tcp.h \
10637 pty.h \
10638 resolv.h \
10639 sched.h \
10640 socket.h \
10641 stdint.h \
10642 strings.h \
10643 sys/cdio.h \
10644 sys/errno.h \
10645 sys/file.h \
10646 sys/filio.h \
10647 sys/inttypes.h \
10648 sys/ipc.h \
10649 sys/link.h \
10650 sys/lwp.h \
10651 sys/mman.h \
10652 sys/modem.h \
10653 sys/mount.h \
10654 sys/msg.h \
10655 sys/param.h \
10656 sys/ptrace.h \
10657 sys/reg.h \
10658 sys/signal.h \
10659 sys/shm.h \
10660 sys/socket.h \
10661 sys/sockio.h \
10662 sys/statfs.h \
10663 sys/strtio.h \
10664 sys/syscall.h \
10665 sys/time.h \
10666 sys/user.h \
10667 sys/wait.h \
10668 sys/v86.h \
10669 sys/v86intr.h \
10670 sys/vfs.h \
10671 sys/vm86.h \
10672 syscall.h \
10673 ucontext.h \
10674 unistd.h \
10677 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10679 echo "$as_me:$LINENO: checking for $ac_header" >&5
10680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10682 echo $ECHO_N "(cached) $ECHO_C" >&6
10684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10686 else
10687 # Is the header compilable?
10688 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10689 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10690 cat >conftest.$ac_ext <<_ACEOF
10691 #line $LINENO "configure"
10692 #include "confdefs.h"
10693 $ac_includes_default
10694 #include <$ac_header>
10695 _ACEOF
10696 rm -f conftest.$ac_objext
10697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10698 (eval $ac_compile) 2>&5
10699 ac_status=$?
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); } &&
10702 { ac_try='test -s conftest.$ac_objext'
10703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10704 (eval $ac_try) 2>&5
10705 ac_status=$?
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); }; }; then
10708 ac_header_compiler=yes
10709 else
10710 echo "$as_me: failed program was:" >&5
10711 cat conftest.$ac_ext >&5
10712 ac_header_compiler=no
10714 rm -f conftest.$ac_objext conftest.$ac_ext
10715 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10716 echo "${ECHO_T}$ac_header_compiler" >&6
10718 # Is the header present?
10719 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10720 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10721 cat >conftest.$ac_ext <<_ACEOF
10722 #line $LINENO "configure"
10723 #include "confdefs.h"
10724 #include <$ac_header>
10725 _ACEOF
10726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10728 ac_status=$?
10729 egrep -v '^ *\+' conftest.er1 >conftest.err
10730 rm -f conftest.er1
10731 cat conftest.err >&5
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); } >/dev/null; then
10734 if test -s conftest.err; then
10735 ac_cpp_err=$ac_c_preproc_warn_flag
10736 else
10737 ac_cpp_err=
10739 else
10740 ac_cpp_err=yes
10742 if test -z "$ac_cpp_err"; then
10743 ac_header_preproc=yes
10744 else
10745 echo "$as_me: failed program was:" >&5
10746 cat conftest.$ac_ext >&5
10747 ac_header_preproc=no
10749 rm -f conftest.err conftest.$ac_ext
10750 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10751 echo "${ECHO_T}$ac_header_preproc" >&6
10753 # So? What about this header?
10754 case $ac_header_compiler:$ac_header_preproc in
10755 yes:no )
10756 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10757 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10760 no:yes )
10761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10764 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10767 esac
10768 echo "$as_me:$LINENO: checking for $ac_header" >&5
10769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10771 echo $ECHO_N "(cached) $ECHO_C" >&6
10772 else
10773 eval "$as_ac_Header=$ac_header_preproc"
10775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10776 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10780 cat >>confdefs.h <<_ACEOF
10781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10782 _ACEOF
10786 done
10788 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10789 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10790 if test "${ac_cv_header_stat_broken+set}" = set; then
10791 echo $ECHO_N "(cached) $ECHO_C" >&6
10792 else
10793 cat >conftest.$ac_ext <<_ACEOF
10794 #line $LINENO "configure"
10795 #include "confdefs.h"
10796 #include <sys/types.h>
10797 #include <sys/stat.h>
10799 #if defined(S_ISBLK) && defined(S_IFDIR)
10800 # if S_ISBLK (S_IFDIR)
10801 You lose.
10802 # endif
10803 #endif
10805 #if defined(S_ISBLK) && defined(S_IFCHR)
10806 # if S_ISBLK (S_IFCHR)
10807 You lose.
10808 # endif
10809 #endif
10811 #if defined(S_ISLNK) && defined(S_IFREG)
10812 # if S_ISLNK (S_IFREG)
10813 You lose.
10814 # endif
10815 #endif
10817 #if defined(S_ISSOCK) && defined(S_IFREG)
10818 # if S_ISSOCK (S_IFREG)
10819 You lose.
10820 # endif
10821 #endif
10823 _ACEOF
10824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10825 egrep "You lose" >/dev/null 2>&1; then
10826 ac_cv_header_stat_broken=yes
10827 else
10828 ac_cv_header_stat_broken=no
10830 rm -f conftest*
10833 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10834 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10835 if test $ac_cv_header_stat_broken = yes; then
10837 cat >>confdefs.h <<\_ACEOF
10838 #define STAT_MACROS_BROKEN 1
10839 _ACEOF
10845 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10846 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10847 if test "${ac_cv_prog_cc_stdc+set}" = set; then
10848 echo $ECHO_N "(cached) $ECHO_C" >&6
10849 else
10850 ac_cv_prog_cc_stdc=no
10851 ac_save_CC=$CC
10852 cat >conftest.$ac_ext <<_ACEOF
10853 #line $LINENO "configure"
10854 #include "confdefs.h"
10855 #include <stdarg.h>
10856 #include <stdio.h>
10857 #include <sys/types.h>
10858 #include <sys/stat.h>
10859 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10860 struct buf { int x; };
10861 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10862 static char *e (p, i)
10863 char **p;
10864 int i;
10866 return p[i];
10868 static char *f (char * (*g) (char **, int), char **p, ...)
10870 char *s;
10871 va_list v;
10872 va_start (v,p);
10873 s = g (p, va_arg (v,int));
10874 va_end (v);
10875 return s;
10877 int test (int i, double x);
10878 struct s1 {int (*f) (int a);};
10879 struct s2 {int (*f) (double a);};
10880 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10881 int argc;
10882 char **argv;
10883 #ifdef F77_DUMMY_MAIN
10884 # ifdef __cplusplus
10885 extern "C"
10886 # endif
10887 int F77_DUMMY_MAIN() { return 1; }
10888 #endif
10890 main ()
10892 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10894 return 0;
10896 _ACEOF
10897 # Don't try gcc -ansi; that turns off useful extensions and
10898 # breaks some systems' header files.
10899 # AIX -qlanglvl=ansi
10900 # Ultrix and OSF/1 -std1
10901 # HP-UX 10.20 and later -Ae
10902 # HP-UX older versions -Aa -D_HPUX_SOURCE
10903 # SVR4 -Xc -D__EXTENSIONS__
10904 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10906 CC="$ac_save_CC $ac_arg"
10907 rm -f conftest.$ac_objext
10908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10909 (eval $ac_compile) 2>&5
10910 ac_status=$?
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); } &&
10913 { ac_try='test -s conftest.$ac_objext'
10914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10915 (eval $ac_try) 2>&5
10916 ac_status=$?
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); }; }; then
10919 ac_cv_prog_cc_stdc=$ac_arg
10920 break
10921 else
10922 echo "$as_me: failed program was:" >&5
10923 cat conftest.$ac_ext >&5
10925 rm -f conftest.$ac_objext
10926 done
10927 rm -f conftest.$ac_ext conftest.$ac_objext
10928 CC=$ac_save_CC
10932 case "x$ac_cv_prog_cc_stdc" in
10933 x|xno)
10934 echo "$as_me:$LINENO: result: none needed" >&5
10935 echo "${ECHO_T}none needed" >&6 ;;
10937 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10938 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10939 CC="$CC $ac_cv_prog_cc_stdc" ;;
10940 esac
10942 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10943 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10944 if test "${ac_cv_c_const+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
10946 else
10947 cat >conftest.$ac_ext <<_ACEOF
10948 #line $LINENO "configure"
10949 #include "confdefs.h"
10951 #ifdef F77_DUMMY_MAIN
10952 # ifdef __cplusplus
10953 extern "C"
10954 # endif
10955 int F77_DUMMY_MAIN() { return 1; }
10956 #endif
10958 main ()
10960 /* FIXME: Include the comments suggested by Paul. */
10961 #ifndef __cplusplus
10962 /* Ultrix mips cc rejects this. */
10963 typedef int charset[2];
10964 const charset x;
10965 /* SunOS 4.1.1 cc rejects this. */
10966 char const *const *ccp;
10967 char **p;
10968 /* NEC SVR4.0.2 mips cc rejects this. */
10969 struct point {int x, y;};
10970 static struct point const zero = {0,0};
10971 /* AIX XL C 1.02.0.0 rejects this.
10972 It does not let you subtract one const X* pointer from another in
10973 an arm of an if-expression whose if-part is not a constant
10974 expression */
10975 const char *g = "string";
10976 ccp = &g + (g ? g-g : 0);
10977 /* HPUX 7.0 cc rejects these. */
10978 ++ccp;
10979 p = (char**) ccp;
10980 ccp = (char const *const *) p;
10981 { /* SCO 3.2v4 cc rejects this. */
10982 char *t;
10983 char const *s = 0 ? (char *) 0 : (char const *) 0;
10985 *t++ = 0;
10987 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10988 int x[] = {25, 17};
10989 const int *foo = &x[0];
10990 ++foo;
10992 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10993 typedef const int *iptr;
10994 iptr p = 0;
10995 ++p;
10997 { /* AIX XL C 1.02.0.0 rejects this saying
10998 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10999 struct s { int j; const int *ap[3]; };
11000 struct s *b; b->j = 5;
11002 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11003 const int foo = 10;
11005 #endif
11008 return 0;
11010 _ACEOF
11011 rm -f conftest.$ac_objext
11012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11013 (eval $ac_compile) 2>&5
11014 ac_status=$?
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); } &&
11017 { ac_try='test -s conftest.$ac_objext'
11018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11019 (eval $ac_try) 2>&5
11020 ac_status=$?
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; }; then
11023 ac_cv_c_const=yes
11024 else
11025 echo "$as_me: failed program was:" >&5
11026 cat conftest.$ac_ext >&5
11027 ac_cv_c_const=no
11029 rm -f conftest.$ac_objext conftest.$ac_ext
11031 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11032 echo "${ECHO_T}$ac_cv_c_const" >&6
11033 if test $ac_cv_c_const = no; then
11035 cat >>confdefs.h <<\_ACEOF
11036 #define const
11037 _ACEOF
11041 echo "$as_me:$LINENO: checking for inline" >&5
11042 echo $ECHO_N "checking for inline... $ECHO_C" >&6
11043 if test "${ac_cv_c_inline+set}" = set; then
11044 echo $ECHO_N "(cached) $ECHO_C" >&6
11045 else
11046 ac_cv_c_inline=no
11047 for ac_kw in inline __inline__ __inline; do
11048 cat >conftest.$ac_ext <<_ACEOF
11049 #line $LINENO "configure"
11050 #include "confdefs.h"
11051 #ifndef __cplusplus
11052 static $ac_kw int static_foo () {return 0; }
11053 $ac_kw int foo () {return 0; }
11054 #endif
11056 _ACEOF
11057 rm -f conftest.$ac_objext
11058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11059 (eval $ac_compile) 2>&5
11060 ac_status=$?
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); } &&
11063 { ac_try='test -s conftest.$ac_objext'
11064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11065 (eval $ac_try) 2>&5
11066 ac_status=$?
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); }; }; then
11069 ac_cv_c_inline=$ac_kw; break
11070 else
11071 echo "$as_me: failed program was:" >&5
11072 cat conftest.$ac_ext >&5
11074 rm -f conftest.$ac_objext conftest.$ac_ext
11075 done
11078 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11079 echo "${ECHO_T}$ac_cv_c_inline" >&6
11080 case $ac_cv_c_inline in
11081 inline | yes) ;;
11083 cat >>confdefs.h <<\_ACEOF
11084 #define inline
11085 _ACEOF
11087 *) cat >>confdefs.h <<_ACEOF
11088 #define inline $ac_cv_c_inline
11089 _ACEOF
11091 esac
11093 echo "$as_me:$LINENO: checking for mode_t" >&5
11094 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11095 if test "${ac_cv_type_mode_t+set}" = set; then
11096 echo $ECHO_N "(cached) $ECHO_C" >&6
11097 else
11098 cat >conftest.$ac_ext <<_ACEOF
11099 #line $LINENO "configure"
11100 #include "confdefs.h"
11101 $ac_includes_default
11102 #ifdef F77_DUMMY_MAIN
11103 # ifdef __cplusplus
11104 extern "C"
11105 # endif
11106 int F77_DUMMY_MAIN() { return 1; }
11107 #endif
11109 main ()
11111 if ((mode_t *) 0)
11112 return 0;
11113 if (sizeof (mode_t))
11114 return 0;
11116 return 0;
11118 _ACEOF
11119 rm -f conftest.$ac_objext
11120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11121 (eval $ac_compile) 2>&5
11122 ac_status=$?
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); } &&
11125 { ac_try='test -s conftest.$ac_objext'
11126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11127 (eval $ac_try) 2>&5
11128 ac_status=$?
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); }; }; then
11131 ac_cv_type_mode_t=yes
11132 else
11133 echo "$as_me: failed program was:" >&5
11134 cat conftest.$ac_ext >&5
11135 ac_cv_type_mode_t=no
11137 rm -f conftest.$ac_objext conftest.$ac_ext
11139 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11140 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11141 if test $ac_cv_type_mode_t = yes; then
11143 else
11145 cat >>confdefs.h <<_ACEOF
11146 #define mode_t int
11147 _ACEOF
11151 echo "$as_me:$LINENO: checking for off_t" >&5
11152 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11153 if test "${ac_cv_type_off_t+set}" = set; then
11154 echo $ECHO_N "(cached) $ECHO_C" >&6
11155 else
11156 cat >conftest.$ac_ext <<_ACEOF
11157 #line $LINENO "configure"
11158 #include "confdefs.h"
11159 $ac_includes_default
11160 #ifdef F77_DUMMY_MAIN
11161 # ifdef __cplusplus
11162 extern "C"
11163 # endif
11164 int F77_DUMMY_MAIN() { return 1; }
11165 #endif
11167 main ()
11169 if ((off_t *) 0)
11170 return 0;
11171 if (sizeof (off_t))
11172 return 0;
11174 return 0;
11176 _ACEOF
11177 rm -f conftest.$ac_objext
11178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11179 (eval $ac_compile) 2>&5
11180 ac_status=$?
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); } &&
11183 { ac_try='test -s conftest.$ac_objext'
11184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185 (eval $ac_try) 2>&5
11186 ac_status=$?
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; }; then
11189 ac_cv_type_off_t=yes
11190 else
11191 echo "$as_me: failed program was:" >&5
11192 cat conftest.$ac_ext >&5
11193 ac_cv_type_off_t=no
11195 rm -f conftest.$ac_objext conftest.$ac_ext
11197 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11198 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11199 if test $ac_cv_type_off_t = yes; then
11201 else
11203 cat >>confdefs.h <<_ACEOF
11204 #define off_t long
11205 _ACEOF
11209 echo "$as_me:$LINENO: checking for pid_t" >&5
11210 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11211 if test "${ac_cv_type_pid_t+set}" = set; then
11212 echo $ECHO_N "(cached) $ECHO_C" >&6
11213 else
11214 cat >conftest.$ac_ext <<_ACEOF
11215 #line $LINENO "configure"
11216 #include "confdefs.h"
11217 $ac_includes_default
11218 #ifdef F77_DUMMY_MAIN
11219 # ifdef __cplusplus
11220 extern "C"
11221 # endif
11222 int F77_DUMMY_MAIN() { return 1; }
11223 #endif
11225 main ()
11227 if ((pid_t *) 0)
11228 return 0;
11229 if (sizeof (pid_t))
11230 return 0;
11232 return 0;
11234 _ACEOF
11235 rm -f conftest.$ac_objext
11236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11237 (eval $ac_compile) 2>&5
11238 ac_status=$?
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); } &&
11241 { ac_try='test -s conftest.$ac_objext'
11242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11243 (eval $ac_try) 2>&5
11244 ac_status=$?
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); }; }; then
11247 ac_cv_type_pid_t=yes
11248 else
11249 echo "$as_me: failed program was:" >&5
11250 cat conftest.$ac_ext >&5
11251 ac_cv_type_pid_t=no
11253 rm -f conftest.$ac_objext conftest.$ac_ext
11255 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11256 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11257 if test $ac_cv_type_pid_t = yes; then
11259 else
11261 cat >>confdefs.h <<_ACEOF
11262 #define pid_t int
11263 _ACEOF
11267 echo "$as_me:$LINENO: checking for size_t" >&5
11268 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11269 if test "${ac_cv_type_size_t+set}" = set; then
11270 echo $ECHO_N "(cached) $ECHO_C" >&6
11271 else
11272 cat >conftest.$ac_ext <<_ACEOF
11273 #line $LINENO "configure"
11274 #include "confdefs.h"
11275 $ac_includes_default
11276 #ifdef F77_DUMMY_MAIN
11277 # ifdef __cplusplus
11278 extern "C"
11279 # endif
11280 int F77_DUMMY_MAIN() { return 1; }
11281 #endif
11283 main ()
11285 if ((size_t *) 0)
11286 return 0;
11287 if (sizeof (size_t))
11288 return 0;
11290 return 0;
11292 _ACEOF
11293 rm -f conftest.$ac_objext
11294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11295 (eval $ac_compile) 2>&5
11296 ac_status=$?
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } &&
11299 { ac_try='test -s conftest.$ac_objext'
11300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11301 (eval $ac_try) 2>&5
11302 ac_status=$?
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); }; }; then
11305 ac_cv_type_size_t=yes
11306 else
11307 echo "$as_me: failed program was:" >&5
11308 cat conftest.$ac_ext >&5
11309 ac_cv_type_size_t=no
11311 rm -f conftest.$ac_objext conftest.$ac_ext
11313 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11314 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11315 if test $ac_cv_type_size_t = yes; then
11317 else
11319 cat >>confdefs.h <<_ACEOF
11320 #define size_t unsigned
11321 _ACEOF
11325 echo "$as_me:$LINENO: checking for long long" >&5
11326 echo $ECHO_N "checking for long long... $ECHO_C" >&6
11327 if test "${ac_cv_type_long_long+set}" = set; then
11328 echo $ECHO_N "(cached) $ECHO_C" >&6
11329 else
11330 cat >conftest.$ac_ext <<_ACEOF
11331 #line $LINENO "configure"
11332 #include "confdefs.h"
11333 $ac_includes_default
11334 #ifdef F77_DUMMY_MAIN
11335 # ifdef __cplusplus
11336 extern "C"
11337 # endif
11338 int F77_DUMMY_MAIN() { return 1; }
11339 #endif
11341 main ()
11343 if ((long long *) 0)
11344 return 0;
11345 if (sizeof (long long))
11346 return 0;
11348 return 0;
11350 _ACEOF
11351 rm -f conftest.$ac_objext
11352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11353 (eval $ac_compile) 2>&5
11354 ac_status=$?
11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); } &&
11357 { ac_try='test -s conftest.$ac_objext'
11358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11359 (eval $ac_try) 2>&5
11360 ac_status=$?
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); }; }; then
11363 ac_cv_type_long_long=yes
11364 else
11365 echo "$as_me: failed program was:" >&5
11366 cat conftest.$ac_ext >&5
11367 ac_cv_type_long_long=no
11369 rm -f conftest.$ac_objext conftest.$ac_ext
11371 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11372 echo "${ECHO_T}$ac_cv_type_long_long" >&6
11374 echo "$as_me:$LINENO: checking size of long long" >&5
11375 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
11376 if test "${ac_cv_sizeof_long_long+set}" = set; then
11377 echo $ECHO_N "(cached) $ECHO_C" >&6
11378 else
11379 if test "$ac_cv_type_long_long" = yes; then
11380 # The cast to unsigned long works around a bug in the HP C Compiler
11381 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11382 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11383 # This bug is HP SR number 8606223364.
11384 if test "$cross_compiling" = yes; then
11385 # Depending upon the size, compute the lo and hi bounds.
11386 cat >conftest.$ac_ext <<_ACEOF
11387 #line $LINENO "configure"
11388 #include "confdefs.h"
11389 $ac_includes_default
11390 #ifdef F77_DUMMY_MAIN
11391 # ifdef __cplusplus
11392 extern "C"
11393 # endif
11394 int F77_DUMMY_MAIN() { return 1; }
11395 #endif
11397 main ()
11399 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
11400 test_array [0] = 0
11403 return 0;
11405 _ACEOF
11406 rm -f conftest.$ac_objext
11407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11408 (eval $ac_compile) 2>&5
11409 ac_status=$?
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); } &&
11412 { ac_try='test -s conftest.$ac_objext'
11413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11414 (eval $ac_try) 2>&5
11415 ac_status=$?
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); }; }; then
11418 ac_lo=0 ac_mid=0
11419 while :; do
11420 cat >conftest.$ac_ext <<_ACEOF
11421 #line $LINENO "configure"
11422 #include "confdefs.h"
11423 $ac_includes_default
11424 #ifdef F77_DUMMY_MAIN
11425 # ifdef __cplusplus
11426 extern "C"
11427 # endif
11428 int F77_DUMMY_MAIN() { return 1; }
11429 #endif
11431 main ()
11433 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11434 test_array [0] = 0
11437 return 0;
11439 _ACEOF
11440 rm -f conftest.$ac_objext
11441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11442 (eval $ac_compile) 2>&5
11443 ac_status=$?
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); } &&
11446 { ac_try='test -s conftest.$ac_objext'
11447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11448 (eval $ac_try) 2>&5
11449 ac_status=$?
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); }; }; then
11452 ac_hi=$ac_mid; break
11453 else
11454 echo "$as_me: failed program was:" >&5
11455 cat conftest.$ac_ext >&5
11456 ac_lo=`expr $ac_mid + 1`
11457 if test $ac_lo -le $ac_mid; then
11458 ac_lo= ac_hi=
11459 break
11461 ac_mid=`expr 2 '*' $ac_mid + 1`
11463 rm -f conftest.$ac_objext conftest.$ac_ext
11464 done
11465 else
11466 echo "$as_me: failed program was:" >&5
11467 cat conftest.$ac_ext >&5
11468 cat >conftest.$ac_ext <<_ACEOF
11469 #line $LINENO "configure"
11470 #include "confdefs.h"
11471 $ac_includes_default
11472 #ifdef F77_DUMMY_MAIN
11473 # ifdef __cplusplus
11474 extern "C"
11475 # endif
11476 int F77_DUMMY_MAIN() { return 1; }
11477 #endif
11479 main ()
11481 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
11482 test_array [0] = 0
11485 return 0;
11487 _ACEOF
11488 rm -f conftest.$ac_objext
11489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11490 (eval $ac_compile) 2>&5
11491 ac_status=$?
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); } &&
11494 { ac_try='test -s conftest.$ac_objext'
11495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11496 (eval $ac_try) 2>&5
11497 ac_status=$?
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); }; }; then
11500 ac_hi=-1 ac_mid=-1
11501 while :; do
11502 cat >conftest.$ac_ext <<_ACEOF
11503 #line $LINENO "configure"
11504 #include "confdefs.h"
11505 $ac_includes_default
11506 #ifdef F77_DUMMY_MAIN
11507 # ifdef __cplusplus
11508 extern "C"
11509 # endif
11510 int F77_DUMMY_MAIN() { return 1; }
11511 #endif
11513 main ()
11515 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
11516 test_array [0] = 0
11519 return 0;
11521 _ACEOF
11522 rm -f conftest.$ac_objext
11523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11524 (eval $ac_compile) 2>&5
11525 ac_status=$?
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); } &&
11528 { ac_try='test -s conftest.$ac_objext'
11529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11530 (eval $ac_try) 2>&5
11531 ac_status=$?
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); }; }; then
11534 ac_lo=$ac_mid; break
11535 else
11536 echo "$as_me: failed program was:" >&5
11537 cat conftest.$ac_ext >&5
11538 ac_hi=`expr '(' $ac_mid ')' - 1`
11539 if test $ac_mid -le $ac_hi; then
11540 ac_lo= ac_hi=
11541 break
11543 ac_mid=`expr 2 '*' $ac_mid`
11545 rm -f conftest.$ac_objext conftest.$ac_ext
11546 done
11547 else
11548 echo "$as_me: failed program was:" >&5
11549 cat conftest.$ac_ext >&5
11550 ac_lo= ac_hi=
11552 rm -f conftest.$ac_objext conftest.$ac_ext
11554 rm -f conftest.$ac_objext conftest.$ac_ext
11555 # Binary search between lo and hi bounds.
11556 while test "x$ac_lo" != "x$ac_hi"; do
11557 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11558 cat >conftest.$ac_ext <<_ACEOF
11559 #line $LINENO "configure"
11560 #include "confdefs.h"
11561 $ac_includes_default
11562 #ifdef F77_DUMMY_MAIN
11563 # ifdef __cplusplus
11564 extern "C"
11565 # endif
11566 int F77_DUMMY_MAIN() { return 1; }
11567 #endif
11569 main ()
11571 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11572 test_array [0] = 0
11575 return 0;
11577 _ACEOF
11578 rm -f conftest.$ac_objext
11579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11580 (eval $ac_compile) 2>&5
11581 ac_status=$?
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); } &&
11584 { ac_try='test -s conftest.$ac_objext'
11585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11586 (eval $ac_try) 2>&5
11587 ac_status=$?
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); }; }; then
11590 ac_hi=$ac_mid
11591 else
11592 echo "$as_me: failed program was:" >&5
11593 cat conftest.$ac_ext >&5
11594 ac_lo=`expr '(' $ac_mid ')' + 1`
11596 rm -f conftest.$ac_objext conftest.$ac_ext
11597 done
11598 case $ac_lo in
11599 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11600 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
11601 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
11602 { (exit 1); exit 1; }; } ;;
11603 esac
11604 else
11605 if test "$cross_compiling" = yes; then
11606 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
11607 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11608 { (exit 1); exit 1; }; }
11609 else
11610 cat >conftest.$ac_ext <<_ACEOF
11611 #line $LINENO "configure"
11612 #include "confdefs.h"
11613 $ac_includes_default
11614 long longval () { return (long) (sizeof (long long)); }
11615 unsigned long ulongval () { return (long) (sizeof (long long)); }
11616 #include <stdio.h>
11617 #include <stdlib.h>
11618 #ifdef F77_DUMMY_MAIN
11619 # ifdef __cplusplus
11620 extern "C"
11621 # endif
11622 int F77_DUMMY_MAIN() { return 1; }
11623 #endif
11625 main ()
11628 FILE *f = fopen ("conftest.val", "w");
11629 if (! f)
11630 exit (1);
11631 if (((long) (sizeof (long long))) < 0)
11633 long i = longval ();
11634 if (i != ((long) (sizeof (long long))))
11635 exit (1);
11636 fprintf (f, "%ld\n", i);
11638 else
11640 unsigned long i = ulongval ();
11641 if (i != ((long) (sizeof (long long))))
11642 exit (1);
11643 fprintf (f, "%lu\n", i);
11645 exit (ferror (f) || fclose (f) != 0);
11648 return 0;
11650 _ACEOF
11651 rm -f conftest$ac_exeext
11652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11653 (eval $ac_link) 2>&5
11654 ac_status=$?
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658 (eval $ac_try) 2>&5
11659 ac_status=$?
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); }; }; then
11662 ac_cv_sizeof_long_long=`cat conftest.val`
11663 else
11664 echo "$as_me: program exited with status $ac_status" >&5
11665 echo "$as_me: failed program was:" >&5
11666 cat conftest.$ac_ext >&5
11667 ( exit $ac_status )
11668 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
11669 echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
11670 { (exit 1); exit 1; }; }
11672 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11675 rm -f conftest.val
11676 else
11677 ac_cv_sizeof_long_long=0
11680 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11681 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
11682 cat >>confdefs.h <<_ACEOF
11683 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11684 _ACEOF
11688 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
11689 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
11690 if test "${wine_cv_linux_input_h+set}" = set; then
11691 echo $ECHO_N "(cached) $ECHO_C" >&6
11692 else
11693 cat >conftest.$ac_ext <<_ACEOF
11694 #line $LINENO "configure"
11695 #include "confdefs.h"
11697 #include <linux/input.h>
11699 #ifdef F77_DUMMY_MAIN
11700 # ifdef __cplusplus
11701 extern "C"
11702 # endif
11703 int F77_DUMMY_MAIN() { return 1; }
11704 #endif
11706 main ()
11709 int foo = EVIOCGBIT(EV_ABS,42);
11710 int bar = BTN_PINKIE;
11711 int fortytwo = 42;
11714 return 0;
11716 _ACEOF
11717 rm -f conftest.$ac_objext
11718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11719 (eval $ac_compile) 2>&5
11720 ac_status=$?
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); } &&
11723 { ac_try='test -s conftest.$ac_objext'
11724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725 (eval $ac_try) 2>&5
11726 ac_status=$?
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; }; then
11729 wine_cv_linux_input_h=yes
11730 else
11731 echo "$as_me: failed program was:" >&5
11732 cat conftest.$ac_ext >&5
11733 wine_cv_linux_input_h=no
11735 rm -f conftest.$ac_objext conftest.$ac_ext
11738 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
11739 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
11740 if test "$wine_cv_linux_input_h" = "yes"
11741 then
11743 cat >>confdefs.h <<\_ACEOF
11744 #define HAVE_CORRECT_LINUXINPUT_H 1
11745 _ACEOF
11750 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
11751 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
11752 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
11753 echo $ECHO_N "(cached) $ECHO_C" >&6
11754 else
11755 cat >conftest.$ac_ext <<_ACEOF
11756 #line $LINENO "configure"
11757 #include "confdefs.h"
11759 #include <netdb.h>
11761 #ifdef F77_DUMMY_MAIN
11762 # ifdef __cplusplus
11763 extern "C"
11764 # endif
11765 int F77_DUMMY_MAIN() { return 1; }
11766 #endif
11768 main ()
11771 char *name=NULL;
11772 struct hostent he;
11773 struct hostent *result;
11774 char *buf=NULL;
11775 int bufsize=0;
11776 int res,errnr;
11777 char *addr=NULL;
11778 int addrlen=0;
11779 int addrtype=0;
11780 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
11781 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
11784 return 0;
11786 _ACEOF
11787 rm -f conftest.$ac_objext
11788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11789 (eval $ac_compile) 2>&5
11790 ac_status=$?
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); } &&
11793 { ac_try='test -s conftest.$ac_objext'
11794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795 (eval $ac_try) 2>&5
11796 ac_status=$?
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; }; then
11799 wine_cv_linux_gethostbyname_r_6=yes
11800 else
11801 echo "$as_me: failed program was:" >&5
11802 cat conftest.$ac_ext >&5
11803 wine_cv_linux_gethostbyname_r_6=no
11806 rm -f conftest.$ac_objext conftest.$ac_ext
11809 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
11810 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
11811 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
11812 then
11814 cat >>confdefs.h <<\_ACEOF
11815 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
11816 _ACEOF
11820 if test "$ac_cv_header_linux_joystick_h" = "yes"
11821 then
11822 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
11823 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
11824 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
11825 echo $ECHO_N "(cached) $ECHO_C" >&6
11826 else
11827 cat >conftest.$ac_ext <<_ACEOF
11828 #line $LINENO "configure"
11829 #include "confdefs.h"
11831 #include <sys/ioctl.h>
11832 #include <linux/joystick.h>
11834 struct js_event blub;
11835 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
11836 #error "no 2.2 header"
11837 #endif
11839 #ifdef F77_DUMMY_MAIN
11840 # ifdef __cplusplus
11841 extern "C"
11842 # endif
11843 int F77_DUMMY_MAIN() { return 1; }
11844 #endif
11846 main ()
11848 /*empty*/
11850 return 0;
11852 _ACEOF
11853 rm -f conftest.$ac_objext
11854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11855 (eval $ac_compile) 2>&5
11856 ac_status=$?
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); } &&
11859 { ac_try='test -s conftest.$ac_objext'
11860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11861 (eval $ac_try) 2>&5
11862 ac_status=$?
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }; }; then
11865 wine_cv_linux_joystick_22_api=yes
11866 else
11867 echo "$as_me: failed program was:" >&5
11868 cat conftest.$ac_ext >&5
11869 wine_cv_linux_joystick_22_api=no
11871 rm -f conftest.$ac_objext conftest.$ac_ext
11874 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
11875 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
11876 if test "$wine_cv_linux_joystick_22_api" = "yes"
11877 then
11879 cat >>confdefs.h <<\_ACEOF
11880 #define HAVE_LINUX_22_JOYSTICK_API 1
11881 _ACEOF
11887 if test "$ac_cv_header_sys_vfs_h" = "yes"
11888 then
11889 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
11890 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
11891 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
11892 echo $ECHO_N "(cached) $ECHO_C" >&6
11893 else
11894 cat >conftest.$ac_ext <<_ACEOF
11895 #line $LINENO "configure"
11896 #include "confdefs.h"
11898 #include <sys/types.h>
11899 #ifdef HAVE_SYS_PARAM_H
11900 # include <sys/param.h>
11901 #endif
11902 #include <sys/vfs.h>
11904 #ifdef F77_DUMMY_MAIN
11905 # ifdef __cplusplus
11906 extern "C"
11907 # endif
11908 int F77_DUMMY_MAIN() { return 1; }
11909 #endif
11911 main ()
11914 struct statfs stfs;
11916 memset(&stfs,0,sizeof(stfs));
11919 return 0;
11921 _ACEOF
11922 rm -f conftest.$ac_objext
11923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11924 (eval $ac_compile) 2>&5
11925 ac_status=$?
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); } &&
11928 { ac_try='test -s conftest.$ac_objext'
11929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930 (eval $ac_try) 2>&5
11931 ac_status=$?
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; }; then
11934 wine_cv_sys_vfs_has_statfs=yes
11935 else
11936 echo "$as_me: failed program was:" >&5
11937 cat conftest.$ac_ext >&5
11938 wine_cv_sys_vfs_has_statfs=no
11941 rm -f conftest.$ac_objext conftest.$ac_ext
11944 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
11945 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
11946 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
11947 then
11949 cat >>confdefs.h <<\_ACEOF
11950 #define STATFS_DEFINED_BY_SYS_VFS 1
11951 _ACEOF
11956 if test "$ac_cv_header_sys_statfs_h" = "yes"
11957 then
11958 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
11959 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
11960 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
11961 echo $ECHO_N "(cached) $ECHO_C" >&6
11962 else
11963 cat >conftest.$ac_ext <<_ACEOF
11964 #line $LINENO "configure"
11965 #include "confdefs.h"
11967 #include <sys/types.h>
11968 #ifdef HAVE_SYS_PARAM_H
11969 # include <sys/param.h>
11970 #endif
11971 #include <sys/statfs.h>
11973 #ifdef F77_DUMMY_MAIN
11974 # ifdef __cplusplus
11975 extern "C"
11976 # endif
11977 int F77_DUMMY_MAIN() { return 1; }
11978 #endif
11980 main ()
11983 struct statfs stfs;
11986 return 0;
11988 _ACEOF
11989 rm -f conftest.$ac_objext
11990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11991 (eval $ac_compile) 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); } &&
11995 { ac_try='test -s conftest.$ac_objext'
11996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11997 (eval $ac_try) 2>&5
11998 ac_status=$?
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); }; }; then
12001 wine_cv_sys_statfs_has_statfs=yes
12002 else
12003 echo "$as_me: failed program was:" >&5
12004 cat conftest.$ac_ext >&5
12005 wine_cv_sys_statfs_has_statfs=no
12008 rm -f conftest.$ac_objext conftest.$ac_ext
12011 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
12012 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
12013 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
12014 then
12016 cat >>confdefs.h <<\_ACEOF
12017 #define STATFS_DEFINED_BY_SYS_STATFS 1
12018 _ACEOF
12023 if test "$ac_cv_header_sys_mount_h" = "yes"
12024 then
12025 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
12026 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
12027 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
12028 echo $ECHO_N "(cached) $ECHO_C" >&6
12029 else
12030 cat >conftest.$ac_ext <<_ACEOF
12031 #line $LINENO "configure"
12032 #include "confdefs.h"
12034 #include <sys/types.h>
12035 #ifdef HAVE_SYS_PARAM_H
12036 # include <sys/param.h>
12037 #endif
12038 #include <sys/mount.h>
12040 #ifdef F77_DUMMY_MAIN
12041 # ifdef __cplusplus
12042 extern "C"
12043 # endif
12044 int F77_DUMMY_MAIN() { return 1; }
12045 #endif
12047 main ()
12050 struct statfs stfs;
12053 return 0;
12055 _ACEOF
12056 rm -f conftest.$ac_objext
12057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12058 (eval $ac_compile) 2>&5
12059 ac_status=$?
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); } &&
12062 { ac_try='test -s conftest.$ac_objext'
12063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12064 (eval $ac_try) 2>&5
12065 ac_status=$?
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); }; }; then
12068 wine_cv_sys_mount_has_statfs=yes
12069 else
12070 echo "$as_me: failed program was:" >&5
12071 cat conftest.$ac_ext >&5
12072 wine_cv_sys_mount_has_statfs=no
12075 rm -f conftest.$ac_objext conftest.$ac_ext
12078 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
12079 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
12080 if test "$wine_cv_sys_mount_has_statfs" = "yes"
12081 then
12083 cat >>confdefs.h <<\_ACEOF
12084 #define STATFS_DEFINED_BY_SYS_MOUNT 1
12085 _ACEOF
12095 echo "$as_me:$LINENO: checking for f_bfree in struct statfs" >&5
12096 echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6
12097 if test "${ac_cv_c_statfs_f_bfree+set}" = set; then
12098 echo $ECHO_N "(cached) $ECHO_C" >&6
12099 else
12100 cat >conftest.$ac_ext <<_ACEOF
12101 #line $LINENO "configure"
12102 #include "confdefs.h"
12103 #include <sys/types.h>
12104 #ifdef HAVE_SYS_PARAM_H
12105 # include <sys/param.h>
12106 #endif
12107 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
12108 # include <sys/mount.h>
12109 #else
12110 # ifdef STATFS_DEFINED_BY_SYS_VFS
12111 # include <sys/vfs.h>
12112 # else
12113 # ifdef STATFS_DEFINED_BY_SYS_STATFS
12114 # include <sys/statfs.h>
12115 # endif
12116 # endif
12117 #endif
12118 #ifdef F77_DUMMY_MAIN
12119 # ifdef __cplusplus
12120 extern "C"
12121 # endif
12122 int F77_DUMMY_MAIN() { return 1; }
12123 #endif
12125 main ()
12127 struct statfs s; s.f_bfree = 0
12129 return 0;
12131 _ACEOF
12132 rm -f conftest.$ac_objext
12133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12134 (eval $ac_compile) 2>&5
12135 ac_status=$?
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); } &&
12138 { ac_try='test -s conftest.$ac_objext'
12139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12140 (eval $ac_try) 2>&5
12141 ac_status=$?
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); }; }; then
12144 ac_cv_c_statfs_f_bfree="yes"
12145 else
12146 echo "$as_me: failed program was:" >&5
12147 cat conftest.$ac_ext >&5
12148 ac_cv_c_statfs_f_bfree="no"
12150 rm -f conftest.$ac_objext conftest.$ac_ext
12152 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bfree" >&5
12153 echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6
12154 if test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then
12156 cat >>confdefs.h <<\_ACEOF
12157 #define STATFS_HAS_BFREE 1
12158 _ACEOF
12164 echo "$as_me:$LINENO: checking for f_bavail in struct statfs" >&5
12165 echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6
12166 if test "${ac_cv_c_statfs_f_bavail+set}" = set; then
12167 echo $ECHO_N "(cached) $ECHO_C" >&6
12168 else
12169 cat >conftest.$ac_ext <<_ACEOF
12170 #line $LINENO "configure"
12171 #include "confdefs.h"
12172 #include <sys/types.h>
12173 #ifdef HAVE_SYS_PARAM_H
12174 # include <sys/param.h>
12175 #endif
12176 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
12177 # include <sys/mount.h>
12178 #else
12179 # ifdef STATFS_DEFINED_BY_SYS_VFS
12180 # include <sys/vfs.h>
12181 # else
12182 # ifdef STATFS_DEFINED_BY_SYS_STATFS
12183 # include <sys/statfs.h>
12184 # endif
12185 # endif
12186 #endif
12187 #ifdef F77_DUMMY_MAIN
12188 # ifdef __cplusplus
12189 extern "C"
12190 # endif
12191 int F77_DUMMY_MAIN() { return 1; }
12192 #endif
12194 main ()
12196 struct statfs s; s.f_bavail = 0
12198 return 0;
12200 _ACEOF
12201 rm -f conftest.$ac_objext
12202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12203 (eval $ac_compile) 2>&5
12204 ac_status=$?
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); } &&
12207 { ac_try='test -s conftest.$ac_objext'
12208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12209 (eval $ac_try) 2>&5
12210 ac_status=$?
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); }; }; then
12213 ac_cv_c_statfs_f_bavail="yes"
12214 else
12215 echo "$as_me: failed program was:" >&5
12216 cat conftest.$ac_ext >&5
12217 ac_cv_c_statfs_f_bavail="no"
12219 rm -f conftest.$ac_objext conftest.$ac_ext
12221 echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bavail" >&5
12222 echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6
12223 if test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then
12225 cat >>confdefs.h <<\_ACEOF
12226 #define STATFS_HAS_BAVAIL 1
12227 _ACEOF
12233 echo "$as_me:$LINENO: checking for msg_accrights in struct msghdr" >&5
12234 echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6
12235 if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then
12236 echo $ECHO_N "(cached) $ECHO_C" >&6
12237 else
12238 cat >conftest.$ac_ext <<_ACEOF
12239 #line $LINENO "configure"
12240 #include "confdefs.h"
12241 #include <sys/types.h>
12242 #include <sys/socket.h>
12243 #ifdef F77_DUMMY_MAIN
12244 # ifdef __cplusplus
12245 extern "C"
12246 # endif
12247 int F77_DUMMY_MAIN() { return 1; }
12248 #endif
12250 main ()
12252 struct msghdr s; s.msg_accrights = 0
12254 return 0;
12256 _ACEOF
12257 rm -f conftest.$ac_objext
12258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12259 (eval $ac_compile) 2>&5
12260 ac_status=$?
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); } &&
12263 { ac_try='test -s conftest.$ac_objext'
12264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12265 (eval $ac_try) 2>&5
12266 ac_status=$?
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); }; }; then
12269 ac_cv_c_msghdr_msg_accrights="yes"
12270 else
12271 echo "$as_me: failed program was:" >&5
12272 cat conftest.$ac_ext >&5
12273 ac_cv_c_msghdr_msg_accrights="no"
12275 rm -f conftest.$ac_objext conftest.$ac_ext
12277 echo "$as_me:$LINENO: result: $ac_cv_c_msghdr_msg_accrights" >&5
12278 echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6
12279 if test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then
12281 cat >>confdefs.h <<\_ACEOF
12282 #define HAVE_MSGHDR_ACCRIGHTS 1
12283 _ACEOF
12289 echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
12290 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
12291 if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then
12292 echo $ECHO_N "(cached) $ECHO_C" >&6
12293 else
12294 cat >conftest.$ac_ext <<_ACEOF
12295 #line $LINENO "configure"
12296 #include "confdefs.h"
12297 #include <sys/types.h>
12298 #include <sys/socket.h>
12299 #ifdef F77_DUMMY_MAIN
12300 # ifdef __cplusplus
12301 extern "C"
12302 # endif
12303 int F77_DUMMY_MAIN() { return 1; }
12304 #endif
12306 main ()
12308 struct sockaddr s; s.sa_len = 0
12310 return 0;
12312 _ACEOF
12313 rm -f conftest.$ac_objext
12314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12315 (eval $ac_compile) 2>&5
12316 ac_status=$?
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); } &&
12319 { ac_try='test -s conftest.$ac_objext'
12320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12321 (eval $ac_try) 2>&5
12322 ac_status=$?
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); }; }; then
12325 ac_cv_c_sockaddr_sa_len="yes"
12326 else
12327 echo "$as_me: failed program was:" >&5
12328 cat conftest.$ac_ext >&5
12329 ac_cv_c_sockaddr_sa_len="no"
12331 rm -f conftest.$ac_objext conftest.$ac_ext
12333 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_sa_len" >&5
12334 echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6
12335 if test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then
12337 cat >>confdefs.h <<\_ACEOF
12338 #define HAVE_SOCKADDR_SA_LEN 1
12339 _ACEOF
12345 echo "$as_me:$LINENO: checking for sun_len in struct sockaddr_un" >&5
12346 echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6
12347 if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then
12348 echo $ECHO_N "(cached) $ECHO_C" >&6
12349 else
12350 cat >conftest.$ac_ext <<_ACEOF
12351 #line $LINENO "configure"
12352 #include "confdefs.h"
12353 #include <sys/types.h>
12354 #include <sys/socket.h>
12355 #include <sys/un.h>
12356 #ifdef F77_DUMMY_MAIN
12357 # ifdef __cplusplus
12358 extern "C"
12359 # endif
12360 int F77_DUMMY_MAIN() { return 1; }
12361 #endif
12363 main ()
12365 struct sockaddr_un s; s.sun_len = 0
12367 return 0;
12369 _ACEOF
12370 rm -f conftest.$ac_objext
12371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12372 (eval $ac_compile) 2>&5
12373 ac_status=$?
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); } &&
12376 { ac_try='test -s conftest.$ac_objext'
12377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12378 (eval $ac_try) 2>&5
12379 ac_status=$?
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); }; }; then
12382 ac_cv_c_sockaddr_un_sun_len="yes"
12383 else
12384 echo "$as_me: failed program was:" >&5
12385 cat conftest.$ac_ext >&5
12386 ac_cv_c_sockaddr_un_sun_len="no"
12388 rm -f conftest.$ac_objext conftest.$ac_ext
12390 echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_un_sun_len" >&5
12391 echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6
12392 if test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then
12394 cat >>confdefs.h <<\_ACEOF
12395 #define HAVE_SOCKADDR_SUN_LEN 1
12396 _ACEOF
12403 case $target_cpu in
12404 *i345678986* )
12405 echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
12406 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
12407 if test "${ac_cv_cpp_def_i386+set}" = set; then
12408 echo $ECHO_N "(cached) $ECHO_C" >&6
12409 else
12410 cat >conftest.$ac_ext <<_ACEOF
12411 #line $LINENO "configure"
12412 #include "confdefs.h"
12413 #ifndef __i386__
12415 #endif
12416 _ACEOF
12417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12418 egrep "yes" >/dev/null 2>&1; then
12419 ac_cv_cpp_def_i386="yes"
12420 else
12421 ac_cv_cpp_def_i386="no"
12423 rm -f conftest*
12426 echo "$as_me:$LINENO: result: $ac_cv_cpp_def_i386" >&5
12427 echo "${ECHO_T}$ac_cv_cpp_def_i386" >&6
12429 esac
12430 if test "$ac_cv_cpp_def_i386" = "yes"
12431 then
12432 CFLAGS="$CFLAGS -D__i386__"
12433 LINTFLAGS="$LINTFLAGS -D__i386__"
12442 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
12444 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
12446 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
12448 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
12450 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
12452 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
12454 ac_config_commands="$ac_config_commands dlls/dinput/joystick"
12456 ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
12458 ac_config_commands="$ac_config_commands dlls/dinput/mouse"
12460 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
12462 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
12464 ac_config_commands="$ac_config_commands dlls/gdi/win16drv"
12466 ac_config_commands="$ac_config_commands dlls/kernel/messages"
12468 ac_config_commands="$ac_config_commands dlls/kernel/tests"
12470 ac_config_commands="$ac_config_commands dlls/oleaut32/tests"
12472 ac_config_commands="$ac_config_commands dlls/user/dde"
12474 ac_config_commands="$ac_config_commands dlls/user/resources"
12476 ac_config_commands="$ac_config_commands dlls/user/tests"
12478 ac_config_commands="$ac_config_commands dlls/wineps/data"
12480 ac_config_commands="$ac_config_commands include/wine"
12482 ac_config_commands="$ac_config_commands programs/regapi/tests"
12484 ac_config_commands="$ac_config_commands programs/winetest/tests"
12487 MAKE_RULES=Make.rules
12490 MAKE_DLL_RULES=dlls/Makedll.rules
12493 MAKE_PROG_RULES=programs/Makeprog.rules
12496 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules programs/Makeprog.rules Makefile controls/Makefile debugger/Makefile dlls/Makefile dlls/advapi32/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/comctl32/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dsound/Makefile dlls/gdi/Makefile dlls/glu32/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/kernel/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msg711/Makefile dlls/msdmo/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt20/Makefile dlls/msvideo/Makefile dlls/netapi32/Makefile dlls/ntdll/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleaut32/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/user/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winspool/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile files/Makefile graphics/Makefile graphics/x11drv/Makefile if1632/Makefile include/Makefile library/Makefile libtest/Makefile loader/Makefile loader/ne/Makefile memory/Makefile misc/Makefile miscemu/Makefile msdos/Makefile objects/Makefile ole/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/notepad/Makefile programs/osversioncheck/Makefile programs/progman/Makefile programs/regapi/Makefile programs/regedit/Makefile programs/regtest/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineconsole/Makefile programs/winemine/Makefile programs/winetest/Makefile programs/winhelp/Makefile programs/winver/Makefile relay32/Makefile scheduler/Makefile server/Makefile tools/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wrc/Makefile tsx11/Makefile unicode/Makefile win32/Makefile windows/Makefile windows/x11drv/Makefile"
12499 cat >confcache <<\_ACEOF
12500 # This file is a shell script that caches the results of configure
12501 # tests run on this system so they can be shared between configure
12502 # scripts and configure runs, see configure's option --config-cache.
12503 # It is not useful on other systems. If it contains results you don't
12504 # want to keep, you may remove or edit it.
12506 # config.status only pays attention to the cache file if you give it
12507 # the --recheck option to rerun configure.
12509 # `ac_cv_env_foo' variables (set or unset) will be overriden when
12510 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12511 # following values.
12513 _ACEOF
12515 # The following way of writing the cache mishandles newlines in values,
12516 # but we know of no workaround that is simple, portable, and efficient.
12517 # So, don't put newlines in cache variables' values.
12518 # Ultrix sh set writes to stderr and can't be redirected directly,
12519 # and sets the high bit in the cache file unless we assign to the vars.
12521 (set) 2>&1 |
12522 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12523 *ac_space=\ *)
12524 # `set' does not quote correctly, so add quotes (double-quote
12525 # substitution turns \\\\ into \\, and sed turns \\ into \).
12526 sed -n \
12527 "s/'/'\\\\''/g;
12528 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12531 # `set' quotes correctly as required by POSIX, so do not add quotes.
12532 sed -n \
12533 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12535 esac;
12537 sed '
12538 t clear
12539 : clear
12540 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12541 t end
12542 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12543 : end' >>confcache
12544 if cmp -s $cache_file confcache; then :; else
12545 if test -w $cache_file; then
12546 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12547 cat confcache >$cache_file
12548 else
12549 echo "not updating unwritable cache $cache_file"
12552 rm -f confcache
12554 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12555 # Let make expand exec_prefix.
12556 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12558 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12559 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12560 # trailing colons and then remove the whole line if VPATH becomes empty
12561 # (actually we leave an empty line to preserve line numbers).
12562 if test "x$srcdir" = x.; then
12563 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12564 s/:*\$(srcdir):*/:/;
12565 s/:*\${srcdir}:*/:/;
12566 s/:*@srcdir@:*/:/;
12567 s/^\([^=]*=[ ]*\):*/\1/;
12568 s/:*$//;
12569 s/^[^=]*=[ ]*$//;
12573 DEFS=-DHAVE_CONFIG_H
12576 : ${CONFIG_STATUS=./config.status}
12577 ac_clean_files_save=$ac_clean_files
12578 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12579 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12580 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12581 cat >$CONFIG_STATUS <<_ACEOF
12582 #! $SHELL
12583 # Generated by $as_me.
12584 # Run this file to recreate the current configuration.
12585 # Compiler output produced by configure, useful for debugging
12586 # configure, is in config.log if it exists.
12588 debug=false
12589 SHELL=\${CONFIG_SHELL-$SHELL}
12590 _ACEOF
12592 cat >>$CONFIG_STATUS <<\_ACEOF
12594 ## --------------------- ##
12595 ## M4sh Initialization. ##
12596 ## --------------------- ##
12598 # Be Bourne compatible
12599 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12600 emulate sh
12601 NULLCMD=:
12602 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12603 set -o posix
12606 # NLS nuisances.
12607 # Support unset when possible.
12608 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12609 as_unset=unset
12610 else
12611 as_unset=false
12614 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
12615 { $as_unset LANG || test "${LANG+set}" != set; } ||
12616 { LANG=C; export LANG; }
12617 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
12618 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
12619 { LC_ALL=C; export LC_ALL; }
12620 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
12621 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
12622 { LC_TIME=C; export LC_TIME; }
12623 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
12624 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
12625 { LC_CTYPE=C; export LC_CTYPE; }
12626 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
12627 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
12628 { LANGUAGE=C; export LANGUAGE; }
12629 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
12630 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
12631 { LC_COLLATE=C; export LC_COLLATE; }
12632 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
12633 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
12634 { LC_NUMERIC=C; export LC_NUMERIC; }
12635 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
12636 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
12637 { LC_MESSAGES=C; export LC_MESSAGES; }
12640 # Name of the executable.
12641 as_me=`(basename "$0") 2>/dev/null ||
12642 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12643 X"$0" : 'X\(//\)$' \| \
12644 X"$0" : 'X\(/\)$' \| \
12645 . : '\(.\)' 2>/dev/null ||
12646 echo X/"$0" |
12647 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12648 /^X\/\(\/\/\)$/{ s//\1/; q; }
12649 /^X\/\(\/\).*/{ s//\1/; q; }
12650 s/.*/./; q'`
12652 # PATH needs CR, and LINENO needs CR and PATH.
12653 # Avoid depending upon Character Ranges.
12654 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12655 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12656 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12657 as_cr_digits='0123456789'
12658 as_cr_alnum=$as_cr_Letters$as_cr_digits
12660 # The user is always right.
12661 if test "${PATH_SEPARATOR+set}" != set; then
12662 echo "#! /bin/sh" >conftest.sh
12663 echo "exit 0" >>conftest.sh
12664 chmod +x conftest.sh
12665 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
12666 PATH_SEPARATOR=';'
12667 else
12668 PATH_SEPARATOR=:
12670 rm -f conftest.sh
12674 as_lineno_1=$LINENO
12675 as_lineno_2=$LINENO
12676 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12677 test "x$as_lineno_1" != "x$as_lineno_2" &&
12678 test "x$as_lineno_3" = "x$as_lineno_2" || {
12679 # Find who we are. Look in the path if we contain no path at all
12680 # relative or not.
12681 case $0 in
12682 *[\\/]* ) as_myself=$0 ;;
12683 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12684 for as_dir in $PATH
12686 IFS=$as_save_IFS
12687 test -z "$as_dir" && as_dir=.
12688 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12689 done
12692 esac
12693 # We did not find ourselves, most probably we were run as `sh COMMAND'
12694 # in which case we are not to be found in the path.
12695 if test "x$as_myself" = x; then
12696 as_myself=$0
12698 if test ! -f "$as_myself"; then
12699 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12700 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12701 { (exit 1); exit 1; }; }
12703 case $CONFIG_SHELL in
12705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12706 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12708 IFS=$as_save_IFS
12709 test -z "$as_dir" && as_dir=.
12710 for as_base in sh bash ksh sh5; do
12711 case $as_dir in
12713 if ("$as_dir/$as_base" -c '
12714 as_lineno_1=$LINENO
12715 as_lineno_2=$LINENO
12716 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12717 test "x$as_lineno_1" != "x$as_lineno_2" &&
12718 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12719 CONFIG_SHELL=$as_dir/$as_base
12720 export CONFIG_SHELL
12721 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12722 fi;;
12723 esac
12724 done
12725 done
12727 esac
12729 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12730 # uniformly replaced by the line number. The first 'sed' inserts a
12731 # line-number line before each line; the second 'sed' does the real
12732 # work. The second script uses 'N' to pair each line-number line
12733 # with the numbered line, and appends trailing '-' during
12734 # substitution so that $LINENO is not a special case at line end.
12735 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12736 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12737 sed '=' <$as_myself |
12738 sed '
12740 s,$,-,
12741 : loop
12742 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12743 t loop
12744 s,-$,,
12745 s,^['$as_cr_digits']*\n,,
12746 ' >$as_me.lineno &&
12747 chmod +x $as_me.lineno ||
12748 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12749 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12750 { (exit 1); exit 1; }; }
12752 # Don't try to exec as it changes $[0], causing all sort of problems
12753 # (the dirname of $[0] is not the place where we might find the
12754 # original and so on. Autoconf is especially sensible to this).
12755 . ./$as_me.lineno
12756 # Exit status is that of the last command.
12757 exit
12761 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12762 *c*,-n*) ECHO_N= ECHO_C='
12763 ' ECHO_T=' ' ;;
12764 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12765 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12766 esac
12768 if expr a : '\(a\)' >/dev/null 2>&1; then
12769 as_expr=expr
12770 else
12771 as_expr=false
12774 rm -f conf$$ conf$$.exe conf$$.file
12775 echo >conf$$.file
12776 if ln -s conf$$.file conf$$ 2>/dev/null; then
12777 # We could just check for DJGPP; but this test a) works b) is more generic
12778 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12779 if test -f conf$$.exe; then
12780 # Don't use ln at all; we don't have any links
12781 as_ln_s='cp -p'
12782 else
12783 as_ln_s='ln -s'
12785 elif ln conf$$.file conf$$ 2>/dev/null; then
12786 as_ln_s=ln
12787 else
12788 as_ln_s='cp -p'
12790 rm -f conf$$ conf$$.exe conf$$.file
12792 as_executable_p="test -f"
12794 # Sed expression to map a string onto a valid CPP name.
12795 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12797 # Sed expression to map a string onto a valid variable name.
12798 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12801 # IFS
12802 # We need space, tab and new line, in precisely that order.
12803 as_nl='
12805 IFS=" $as_nl"
12807 # CDPATH.
12808 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
12810 exec 6>&1
12812 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12813 # report actual input values of CONFIG_FILES etc. instead of their
12814 # values after options handling. Logging --version etc. is OK.
12815 exec 5>>config.log
12817 echo
12818 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12819 ## Running $as_me. ##
12820 _ASBOX
12821 } >&5
12822 cat >&5 <<_CSEOF
12824 This file was extended by Wine $as_me 20020411, which was
12825 generated by GNU Autoconf 2.53. Invocation command line was
12827 CONFIG_FILES = $CONFIG_FILES
12828 CONFIG_HEADERS = $CONFIG_HEADERS
12829 CONFIG_LINKS = $CONFIG_LINKS
12830 CONFIG_COMMANDS = $CONFIG_COMMANDS
12831 $ $0 $@
12833 _CSEOF
12834 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12835 echo >&5
12836 _ACEOF
12838 # Files that config.status was made for.
12839 if test -n "$ac_config_files"; then
12840 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12843 if test -n "$ac_config_headers"; then
12844 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12847 if test -n "$ac_config_links"; then
12848 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12851 if test -n "$ac_config_commands"; then
12852 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12855 cat >>$CONFIG_STATUS <<\_ACEOF
12857 ac_cs_usage="\
12858 \`$as_me' instantiates files from templates according to the
12859 current configuration.
12861 Usage: $0 [OPTIONS] [FILE]...
12863 -h, --help print this help, then exit
12864 -V, --version print version number, then exit
12865 -d, --debug don't remove temporary files
12866 --recheck update $as_me by reconfiguring in the same conditions
12867 --file=FILE[:TEMPLATE]
12868 instantiate the configuration file FILE
12869 --header=FILE[:TEMPLATE]
12870 instantiate the configuration header FILE
12872 Configuration files:
12873 $config_files
12875 Configuration headers:
12876 $config_headers
12878 Configuration commands:
12879 $config_commands
12881 Report bugs to <bug-autoconf@gnu.org>."
12882 _ACEOF
12884 cat >>$CONFIG_STATUS <<_ACEOF
12885 ac_cs_version="\\
12886 Wine config.status 20020411
12887 configured by $0, generated by GNU Autoconf 2.53,
12888 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12890 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12891 Free Software Foundation, Inc.
12892 This config.status script is free software; the Free Software Foundation
12893 gives unlimited permission to copy, distribute and modify it."
12894 srcdir=$srcdir
12895 INSTALL="$INSTALL"
12896 _ACEOF
12898 cat >>$CONFIG_STATUS <<\_ACEOF
12899 # If no file are specified by the user, then we need to provide default
12900 # value. By we need to know if files were specified by the user.
12901 ac_need_defaults=:
12902 while test $# != 0
12904 case $1 in
12905 --*=*)
12906 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12907 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12908 shift
12909 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
12910 shift
12912 -*);;
12913 *) # This is not an option, so the user has probably given explicit
12914 # arguments.
12915 ac_need_defaults=false;;
12916 esac
12918 case $1 in
12919 # Handling of the options.
12920 _ACEOF
12921 cat >>$CONFIG_STATUS <<_ACEOF
12922 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12923 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
12924 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
12925 _ACEOF
12926 cat >>$CONFIG_STATUS <<\_ACEOF
12927 --version | --vers* | -V )
12928 echo "$ac_cs_version"; exit 0 ;;
12929 --he | --h)
12930 # Conflict between --help and --header
12931 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12932 Try \`$0 --help' for more information." >&5
12933 echo "$as_me: error: ambiguous option: $1
12934 Try \`$0 --help' for more information." >&2;}
12935 { (exit 1); exit 1; }; };;
12936 --help | --hel | -h )
12937 echo "$ac_cs_usage"; exit 0 ;;
12938 --debug | --d* | -d )
12939 debug=: ;;
12940 --file | --fil | --fi | --f )
12941 shift
12942 CONFIG_FILES="$CONFIG_FILES $1"
12943 ac_need_defaults=false;;
12944 --header | --heade | --head | --hea )
12945 shift
12946 CONFIG_HEADERS="$CONFIG_HEADERS $1"
12947 ac_need_defaults=false;;
12949 # This is an error.
12950 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12951 Try \`$0 --help' for more information." >&5
12952 echo "$as_me: error: unrecognized option: $1
12953 Try \`$0 --help' for more information." >&2;}
12954 { (exit 1); exit 1; }; } ;;
12956 *) ac_config_targets="$ac_config_targets $1" ;;
12958 esac
12959 shift
12960 done
12962 _ACEOF
12968 cat >>$CONFIG_STATUS <<\_ACEOF
12969 for ac_config_target in $ac_config_targets
12971 case "$ac_config_target" in
12972 # Handling of arguments.
12973 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
12974 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
12975 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
12976 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12977 "controls/Makefile" ) CONFIG_FILES="$CONFIG_FILES controls/Makefile" ;;
12978 "debugger/Makefile" ) CONFIG_FILES="$CONFIG_FILES debugger/Makefile" ;;
12979 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
12980 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
12981 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
12982 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
12983 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
12984 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
12985 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
12986 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
12987 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
12988 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
12989 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
12990 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
12991 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
12992 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
12993 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
12994 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
12995 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
12996 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
12997 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
12998 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
12999 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
13000 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
13001 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
13002 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
13003 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
13004 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
13005 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
13006 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
13007 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
13008 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
13009 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
13010 "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
13011 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
13012 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
13013 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
13014 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
13015 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
13016 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
13017 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
13018 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
13019 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
13020 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
13021 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
13022 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
13023 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
13024 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
13025 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
13026 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
13027 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
13028 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
13029 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
13030 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
13031 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
13032 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
13033 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
13034 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
13035 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
13036 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
13037 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
13038 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
13039 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
13040 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
13041 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
13042 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
13043 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
13044 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
13045 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
13046 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
13047 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
13048 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
13049 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
13050 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
13051 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
13052 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
13053 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
13054 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
13055 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
13056 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
13057 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
13058 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
13059 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
13060 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
13061 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
13062 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
13063 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
13064 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
13065 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
13066 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
13067 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
13068 "files/Makefile" ) CONFIG_FILES="$CONFIG_FILES files/Makefile" ;;
13069 "graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES graphics/Makefile" ;;
13070 "graphics/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES graphics/x11drv/Makefile" ;;
13071 "if1632/Makefile" ) CONFIG_FILES="$CONFIG_FILES if1632/Makefile" ;;
13072 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13073 "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
13074 "libtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES libtest/Makefile" ;;
13075 "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
13076 "loader/ne/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/ne/Makefile" ;;
13077 "memory/Makefile" ) CONFIG_FILES="$CONFIG_FILES memory/Makefile" ;;
13078 "misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
13079 "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
13080 "msdos/Makefile" ) CONFIG_FILES="$CONFIG_FILES msdos/Makefile" ;;
13081 "objects/Makefile" ) CONFIG_FILES="$CONFIG_FILES objects/Makefile" ;;
13082 "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;;
13083 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
13084 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
13085 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
13086 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
13087 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
13088 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
13089 "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
13090 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
13091 "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
13092 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
13093 "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
13094 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
13095 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
13096 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
13097 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
13098 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
13099 "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
13100 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
13101 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
13102 "relay32/Makefile" ) CONFIG_FILES="$CONFIG_FILES relay32/Makefile" ;;
13103 "scheduler/Makefile" ) CONFIG_FILES="$CONFIG_FILES scheduler/Makefile" ;;
13104 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
13105 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
13106 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
13107 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
13108 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
13109 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
13110 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
13111 "tsx11/Makefile" ) CONFIG_FILES="$CONFIG_FILES tsx11/Makefile" ;;
13112 "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;;
13113 "win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
13114 "windows/Makefile" ) CONFIG_FILES="$CONFIG_FILES windows/Makefile" ;;
13115 "windows/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES windows/x11drv/Makefile" ;;
13116 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
13117 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
13118 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
13119 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
13120 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
13121 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
13122 "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
13123 "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
13124 "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
13125 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
13126 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
13127 "dlls/gdi/win16drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/win16drv" ;;
13128 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
13129 "dlls/kernel/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/tests" ;;
13130 "dlls/oleaut32/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/oleaut32/tests" ;;
13131 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
13132 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
13133 "dlls/user/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/tests" ;;
13134 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
13135 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
13136 "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
13137 "programs/winetest/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/winetest/tests" ;;
13138 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
13139 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13140 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13141 { (exit 1); exit 1; }; };;
13142 esac
13143 done
13145 # If the user did not use the arguments to specify the items to instantiate,
13146 # then the envvar interface is used. Set only those that are not.
13147 # We use the long form for the default assignment because of an extremely
13148 # bizarre bug on SunOS 4.1.3.
13149 if $ac_need_defaults; then
13150 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13151 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13152 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13155 # Create a temporary directory, and hook for its removal unless debugging.
13156 $debug ||
13158 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13159 trap '{ (exit 1); exit 1; }' 1 2 13 15
13162 # Create a (secure) tmp directory for tmp files.
13163 : ${TMPDIR=/tmp}
13165 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
13166 test -n "$tmp" && test -d "$tmp"
13167 } ||
13169 tmp=$TMPDIR/cs$$-$RANDOM
13170 (umask 077 && mkdir $tmp)
13171 } ||
13173 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
13174 { (exit 1); exit 1; }
13177 _ACEOF
13179 cat >>$CONFIG_STATUS <<_ACEOF
13182 # CONFIG_FILES section.
13185 # No need to generate the scripts if there are no CONFIG_FILES.
13186 # This happens for instance when ./config.status config.h
13187 if test -n "\$CONFIG_FILES"; then
13188 # Protect against being on the right side of a sed subst in config.status.
13189 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13190 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13191 s,@SHELL@,$SHELL,;t t
13192 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13193 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13194 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13195 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13196 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13197 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13198 s,@exec_prefix@,$exec_prefix,;t t
13199 s,@prefix@,$prefix,;t t
13200 s,@program_transform_name@,$program_transform_name,;t t
13201 s,@bindir@,$bindir,;t t
13202 s,@sbindir@,$sbindir,;t t
13203 s,@libexecdir@,$libexecdir,;t t
13204 s,@datadir@,$datadir,;t t
13205 s,@sysconfdir@,$sysconfdir,;t t
13206 s,@sharedstatedir@,$sharedstatedir,;t t
13207 s,@localstatedir@,$localstatedir,;t t
13208 s,@libdir@,$libdir,;t t
13209 s,@includedir@,$includedir,;t t
13210 s,@oldincludedir@,$oldincludedir,;t t
13211 s,@infodir@,$infodir,;t t
13212 s,@mandir@,$mandir,;t t
13213 s,@build_alias@,$build_alias,;t t
13214 s,@host_alias@,$host_alias,;t t
13215 s,@target_alias@,$target_alias,;t t
13216 s,@DEFS@,$DEFS,;t t
13217 s,@ECHO_C@,$ECHO_C,;t t
13218 s,@ECHO_N@,$ECHO_N,;t t
13219 s,@ECHO_T@,$ECHO_T,;t t
13220 s,@LIBS@,$LIBS,;t t
13221 s,@OPTIONS@,$OPTIONS,;t t
13222 s,@build@,$build,;t t
13223 s,@build_cpu@,$build_cpu,;t t
13224 s,@build_vendor@,$build_vendor,;t t
13225 s,@build_os@,$build_os,;t t
13226 s,@host@,$host,;t t
13227 s,@host_cpu@,$host_cpu,;t t
13228 s,@host_vendor@,$host_vendor,;t t
13229 s,@host_os@,$host_os,;t t
13230 s,@target@,$target,;t t
13231 s,@target_cpu@,$target_cpu,;t t
13232 s,@target_vendor@,$target_vendor,;t t
13233 s,@target_os@,$target_os,;t t
13234 s,@SET_MAKE@,$SET_MAKE,;t t
13235 s,@CC@,$CC,;t t
13236 s,@CFLAGS@,$CFLAGS,;t t
13237 s,@LDFLAGS@,$LDFLAGS,;t t
13238 s,@CPPFLAGS@,$CPPFLAGS,;t t
13239 s,@ac_ct_CC@,$ac_ct_CC,;t t
13240 s,@EXEEXT@,$EXEEXT,;t t
13241 s,@OBJEXT@,$OBJEXT,;t t
13242 s,@CPP@,$CPP,;t t
13243 s,@X_CFLAGS@,$X_CFLAGS,;t t
13244 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
13245 s,@X_LIBS@,$X_LIBS,;t t
13246 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
13247 s,@YACC@,$YACC,;t t
13248 s,@LEX@,$LEX,;t t
13249 s,@LEXLIB@,$LEXLIB,;t t
13250 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
13251 s,@XYACC@,$XYACC,;t t
13252 s,@XLEX@,$XLEX,;t t
13253 s,@RANLIB@,$RANLIB,;t t
13254 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13255 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13256 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13257 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13258 s,@LN_S@,$LN_S,;t t
13259 s,@C2MAN@,$C2MAN,;t t
13260 s,@LDCONFIG@,$LDCONFIG,;t t
13261 s,@LINT@,$LINT,;t t
13262 s,@LINTFLAGS@,$LINTFLAGS,;t t
13263 s,@LDCOMBINE@,$LDCOMBINE,;t t
13264 s,@UTILLIBS@,$UTILLIBS,;t t
13265 s,@DLLIBS@,$DLLIBS,;t t
13266 s,@JPEGLIB@,$JPEGLIB,;t t
13267 s,@XLIB@,$XLIB,;t t
13268 s,@XFILES@,$XFILES,;t t
13269 s,@OPENGLFILES@,$OPENGLFILES,;t t
13270 s,@GLU32FILES@,$GLU32FILES,;t t
13271 s,@CURSESLIBS@,$CURSESLIBS,;t t
13272 s,@CUPSLIBS@,$CUPSLIBS,;t t
13273 s,@sane_devel@,$sane_devel,;t t
13274 s,@SANELIBS@,$SANELIBS,;t t
13275 s,@SANEINCL@,$SANEINCL,;t t
13276 s,@ft_devel@,$ft_devel,;t t
13277 s,@ft_devel2@,$ft_devel2,;t t
13278 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
13279 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
13280 s,@ARTSLIBS@,$ARTSLIBS,;t t
13281 s,@ARTSINCL@,$ARTSINCL,;t t
13282 s,@DLLWRAP@,$DLLWRAP,;t t
13283 s,@DLLFLAGS@,$DLLFLAGS,;t t
13284 s,@DLLEXT@,$DLLEXT,;t t
13285 s,@LDSHARED@,$LDSHARED,;t t
13286 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
13287 s,@LIBEXT@,$LIBEXT,;t t
13288 s,@LDPATH@,$LDPATH,;t t
13289 s,@ALLOCA@,$ALLOCA,;t t
13290 /@MAKE_RULES@/r $MAKE_RULES
13291 s,@MAKE_RULES@,,;t t
13292 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
13293 s,@MAKE_DLL_RULES@,,;t t
13294 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
13295 s,@MAKE_PROG_RULES@,,;t t
13296 CEOF
13298 _ACEOF
13300 cat >>$CONFIG_STATUS <<\_ACEOF
13301 # Split the substitutions into bite-sized pieces for seds with
13302 # small command number limits, like on Digital OSF/1 and HP-UX.
13303 ac_max_sed_lines=48
13304 ac_sed_frag=1 # Number of current file.
13305 ac_beg=1 # First line for current file.
13306 ac_end=$ac_max_sed_lines # Line after last line for current file.
13307 ac_more_lines=:
13308 ac_sed_cmds=
13309 while $ac_more_lines; do
13310 if test $ac_beg -gt 1; then
13311 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13312 else
13313 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13315 if test ! -s $tmp/subs.frag; then
13316 ac_more_lines=false
13317 else
13318 # The purpose of the label and of the branching condition is to
13319 # speed up the sed processing (if there are no `@' at all, there
13320 # is no need to browse any of the substitutions).
13321 # These are the two extra sed commands mentioned above.
13322 (echo ':t
13323 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13324 if test -z "$ac_sed_cmds"; then
13325 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13326 else
13327 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13329 ac_sed_frag=`expr $ac_sed_frag + 1`
13330 ac_beg=$ac_end
13331 ac_end=`expr $ac_end + $ac_max_sed_lines`
13333 done
13334 if test -z "$ac_sed_cmds"; then
13335 ac_sed_cmds=cat
13337 fi # test -n "$CONFIG_FILES"
13339 _ACEOF
13340 cat >>$CONFIG_STATUS <<\_ACEOF
13341 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13342 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13343 case $ac_file in
13344 - | *:- | *:-:* ) # input from stdin
13345 cat >$tmp/stdin
13346 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13347 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13348 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13349 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13350 * ) ac_file_in=$ac_file.in ;;
13351 esac
13353 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13354 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13355 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13356 X"$ac_file" : 'X\(//\)[^/]' \| \
13357 X"$ac_file" : 'X\(//\)$' \| \
13358 X"$ac_file" : 'X\(/\)' \| \
13359 . : '\(.\)' 2>/dev/null ||
13360 echo X"$ac_file" |
13361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13362 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13363 /^X\(\/\/\)$/{ s//\1/; q; }
13364 /^X\(\/\).*/{ s//\1/; q; }
13365 s/.*/./; q'`
13366 { case "$ac_dir" in
13367 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13368 *) as_incr_dir=.;;
13369 esac
13370 as_dummy="$ac_dir"
13371 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13372 case $as_mkdir_dir in
13373 # Skip DOS drivespec
13374 ?:) as_incr_dir=$as_mkdir_dir ;;
13376 as_incr_dir=$as_incr_dir/$as_mkdir_dir
13377 test -d "$as_incr_dir" ||
13378 mkdir "$as_incr_dir" ||
13379 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
13380 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
13381 { (exit 1); exit 1; }; }
13383 esac
13384 done; }
13386 ac_builddir=.
13388 if test "$ac_dir" != .; then
13389 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13390 # A "../" for each directory in $ac_dir_suffix.
13391 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13392 else
13393 ac_dir_suffix= ac_top_builddir=
13396 case $srcdir in
13397 .) # No --srcdir option. We are building in place.
13398 ac_srcdir=.
13399 if test -z "$ac_top_builddir"; then
13400 ac_top_srcdir=.
13401 else
13402 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13403 fi ;;
13404 [\\/]* | ?:[\\/]* ) # Absolute path.
13405 ac_srcdir=$srcdir$ac_dir_suffix;
13406 ac_top_srcdir=$srcdir ;;
13407 *) # Relative path.
13408 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13409 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13410 esac
13411 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
13412 # absolute.
13413 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
13414 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
13415 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
13416 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
13419 case $INSTALL in
13420 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13421 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13422 esac
13424 if test x"$ac_file" != x-; then
13425 { echo "$as_me:$LINENO: creating $ac_file" >&5
13426 echo "$as_me: creating $ac_file" >&6;}
13427 rm -f "$ac_file"
13429 # Let's still pretend it is `configure' which instantiates (i.e., don't
13430 # use $as_me), people would be surprised to read:
13431 # /* config.h. Generated by config.status. */
13432 if test x"$ac_file" = x-; then
13433 configure_input=
13434 else
13435 configure_input="$ac_file. "
13437 configure_input=$configure_input"Generated from `echo $ac_file_in |
13438 sed 's,.*/,,'` by configure."
13440 # First look for the input files in the build tree, otherwise in the
13441 # src tree.
13442 ac_file_inputs=`IFS=:
13443 for f in $ac_file_in; do
13444 case $f in
13445 -) echo $tmp/stdin ;;
13446 [\\/$]*)
13447 # Absolute (can't be DOS-style, as IFS=:)
13448 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13449 echo "$as_me: error: cannot find input file: $f" >&2;}
13450 { (exit 1); exit 1; }; }
13451 echo $f;;
13452 *) # Relative
13453 if test -f "$f"; then
13454 # Build tree
13455 echo $f
13456 elif test -f "$srcdir/$f"; then
13457 # Source tree
13458 echo $srcdir/$f
13459 else
13460 # /dev/null tree
13461 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13462 echo "$as_me: error: cannot find input file: $f" >&2;}
13463 { (exit 1); exit 1; }; }
13464 fi;;
13465 esac
13466 done` || { (exit 1); exit 1; }
13467 _ACEOF
13468 cat >>$CONFIG_STATUS <<_ACEOF
13469 sed "$ac_vpsub
13470 $extrasub
13471 _ACEOF
13472 cat >>$CONFIG_STATUS <<\_ACEOF
13474 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13475 s,@configure_input@,$configure_input,;t t
13476 s,@srcdir@,$ac_srcdir,;t t
13477 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13478 s,@top_srcdir@,$ac_top_srcdir,;t t
13479 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13480 s,@builddir@,$ac_builddir,;t t
13481 s,@abs_builddir@,$ac_abs_builddir,;t t
13482 s,@top_builddir@,$ac_top_builddir,;t t
13483 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13484 s,@INSTALL@,$ac_INSTALL,;t t
13485 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13486 rm -f $tmp/stdin
13487 if test x"$ac_file" != x-; then
13488 mv $tmp/out $ac_file
13489 else
13490 cat $tmp/out
13491 rm -f $tmp/out
13494 done
13495 _ACEOF
13496 cat >>$CONFIG_STATUS <<\_ACEOF
13499 # CONFIG_HEADER section.
13502 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13503 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13505 # ac_d sets the value in "#define NAME VALUE" lines.
13506 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13507 ac_dB='[ ].*$,\1#\2'
13508 ac_dC=' '
13509 ac_dD=',;t'
13510 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13511 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13512 ac_uB='$,\1#\2define\3'
13513 ac_uC=' '
13514 ac_uD=',;t'
13516 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13517 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13518 case $ac_file in
13519 - | *:- | *:-:* ) # input from stdin
13520 cat >$tmp/stdin
13521 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13522 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13523 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13524 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13525 * ) ac_file_in=$ac_file.in ;;
13526 esac
13528 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13529 echo "$as_me: creating $ac_file" >&6;}
13531 # First look for the input files in the build tree, otherwise in the
13532 # src tree.
13533 ac_file_inputs=`IFS=:
13534 for f in $ac_file_in; do
13535 case $f in
13536 -) echo $tmp/stdin ;;
13537 [\\/$]*)
13538 # Absolute (can't be DOS-style, as IFS=:)
13539 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13540 echo "$as_me: error: cannot find input file: $f" >&2;}
13541 { (exit 1); exit 1; }; }
13542 echo $f;;
13543 *) # Relative
13544 if test -f "$f"; then
13545 # Build tree
13546 echo $f
13547 elif test -f "$srcdir/$f"; then
13548 # Source tree
13549 echo $srcdir/$f
13550 else
13551 # /dev/null tree
13552 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13553 echo "$as_me: error: cannot find input file: $f" >&2;}
13554 { (exit 1); exit 1; }; }
13555 fi;;
13556 esac
13557 done` || { (exit 1); exit 1; }
13558 # Remove the trailing spaces.
13559 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13561 _ACEOF
13563 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13564 # `conftest.undefs', that substitutes the proper values into
13565 # config.h.in to produce config.h. The first handles `#define'
13566 # templates, and the second `#undef' templates.
13567 # And first: Protect against being on the right side of a sed subst in
13568 # config.status. Protect against being in an unquoted here document
13569 # in config.status.
13570 rm -f conftest.defines conftest.undefs
13571 # Using a here document instead of a string reduces the quoting nightmare.
13572 # Putting comments in sed scripts is not portable.
13574 # `end' is used to avoid that the second main sed command (meant for
13575 # 0-ary CPP macros) applies to n-ary macro definitions.
13576 # See the Autoconf documentation for `clear'.
13577 cat >confdef2sed.sed <<\_ACEOF
13578 s/[\\&,]/\\&/g
13579 s,[\\$`],\\&,g
13580 t clear
13581 : clear
13582 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13583 t end
13584 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13585 : end
13586 _ACEOF
13587 # If some macros were called several times there might be several times
13588 # the same #defines, which is useless. Nevertheless, we may not want to
13589 # sort them, since we want the *last* AC-DEFINE to be honored.
13590 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13591 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13592 rm -f confdef2sed.sed
13594 # This sed command replaces #undef with comments. This is necessary, for
13595 # example, in the case of _POSIX_SOURCE, which is predefined and required
13596 # on some systems where configure will not decide to define it.
13597 cat >>conftest.undefs <<\_ACEOF
13598 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13599 _ACEOF
13601 # Break up conftest.defines because some shells have a limit on the size
13602 # of here documents, and old seds have small limits too (100 cmds).
13603 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13604 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13605 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13606 echo ' :' >>$CONFIG_STATUS
13607 rm -f conftest.tail
13608 while grep . conftest.defines >/dev/null
13610 # Write a limited-size here document to $tmp/defines.sed.
13611 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13612 # Speed up: don't consider the non `#define' lines.
13613 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13614 # Work around the forget-to-reset-the-flag bug.
13615 echo 't clr' >>$CONFIG_STATUS
13616 echo ': clr' >>$CONFIG_STATUS
13617 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13618 echo 'CEOF
13619 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13620 rm -f $tmp/in
13621 mv $tmp/out $tmp/in
13622 ' >>$CONFIG_STATUS
13623 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13624 rm -f conftest.defines
13625 mv conftest.tail conftest.defines
13626 done
13627 rm -f conftest.defines
13628 echo ' fi # egrep' >>$CONFIG_STATUS
13629 echo >>$CONFIG_STATUS
13631 # Break up conftest.undefs because some shells have a limit on the size
13632 # of here documents, and old seds have small limits too (100 cmds).
13633 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13634 rm -f conftest.tail
13635 while grep . conftest.undefs >/dev/null
13637 # Write a limited-size here document to $tmp/undefs.sed.
13638 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13639 # Speed up: don't consider the non `#undef'
13640 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13641 # Work around the forget-to-reset-the-flag bug.
13642 echo 't clr' >>$CONFIG_STATUS
13643 echo ': clr' >>$CONFIG_STATUS
13644 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13645 echo 'CEOF
13646 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13647 rm -f $tmp/in
13648 mv $tmp/out $tmp/in
13649 ' >>$CONFIG_STATUS
13650 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13651 rm -f conftest.undefs
13652 mv conftest.tail conftest.undefs
13653 done
13654 rm -f conftest.undefs
13656 cat >>$CONFIG_STATUS <<\_ACEOF
13657 # Let's still pretend it is `configure' which instantiates (i.e., don't
13658 # use $as_me), people would be surprised to read:
13659 # /* config.h. Generated by config.status. */
13660 if test x"$ac_file" = x-; then
13661 echo "/* Generated by configure. */" >$tmp/config.h
13662 else
13663 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13665 cat $tmp/in >>$tmp/config.h
13666 rm -f $tmp/in
13667 if test x"$ac_file" != x-; then
13668 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
13669 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13670 echo "$as_me: $ac_file is unchanged" >&6;}
13671 else
13672 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13673 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13674 X"$ac_file" : 'X\(//\)[^/]' \| \
13675 X"$ac_file" : 'X\(//\)$' \| \
13676 X"$ac_file" : 'X\(/\)' \| \
13677 . : '\(.\)' 2>/dev/null ||
13678 echo X"$ac_file" |
13679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13681 /^X\(\/\/\)$/{ s//\1/; q; }
13682 /^X\(\/\).*/{ s//\1/; q; }
13683 s/.*/./; q'`
13684 { case "$ac_dir" in
13685 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13686 *) as_incr_dir=.;;
13687 esac
13688 as_dummy="$ac_dir"
13689 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13690 case $as_mkdir_dir in
13691 # Skip DOS drivespec
13692 ?:) as_incr_dir=$as_mkdir_dir ;;
13694 as_incr_dir=$as_incr_dir/$as_mkdir_dir
13695 test -d "$as_incr_dir" ||
13696 mkdir "$as_incr_dir" ||
13697 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
13698 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
13699 { (exit 1); exit 1; }; }
13701 esac
13702 done; }
13704 rm -f $ac_file
13705 mv $tmp/config.h $ac_file
13707 else
13708 cat $tmp/config.h
13709 rm -f $tmp/config.h
13711 done
13712 _ACEOF
13713 cat >>$CONFIG_STATUS <<\_ACEOF
13716 # CONFIG_COMMANDS section.
13718 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13719 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13720 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13721 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13722 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13723 X"$ac_dest" : 'X\(//\)[^/]' \| \
13724 X"$ac_dest" : 'X\(//\)$' \| \
13725 X"$ac_dest" : 'X\(/\)' \| \
13726 . : '\(.\)' 2>/dev/null ||
13727 echo X"$ac_dest" |
13728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13729 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13730 /^X\(\/\/\)$/{ s//\1/; q; }
13731 /^X\(\/\).*/{ s//\1/; q; }
13732 s/.*/./; q'`
13733 ac_builddir=.
13735 if test "$ac_dir" != .; then
13736 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13737 # A "../" for each directory in $ac_dir_suffix.
13738 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13739 else
13740 ac_dir_suffix= ac_top_builddir=
13743 case $srcdir in
13744 .) # No --srcdir option. We are building in place.
13745 ac_srcdir=.
13746 if test -z "$ac_top_builddir"; then
13747 ac_top_srcdir=.
13748 else
13749 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13750 fi ;;
13751 [\\/]* | ?:[\\/]* ) # Absolute path.
13752 ac_srcdir=$srcdir$ac_dir_suffix;
13753 ac_top_srcdir=$srcdir ;;
13754 *) # Relative path.
13755 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13756 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13757 esac
13758 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
13759 # absolute.
13760 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
13761 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
13762 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
13763 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
13766 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13767 echo "$as_me: executing $ac_dest commands" >&6;}
13768 case $ac_dest in
13769 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
13770 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
13771 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
13772 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
13773 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
13774 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
13775 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
13776 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
13777 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
13778 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
13779 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
13780 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
13781 dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
13782 echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
13783 dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
13784 echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
13785 dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
13786 echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
13787 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
13788 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
13789 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
13790 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
13791 dlls/gdi/win16drv ) test -d "dlls/gdi/win16drv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/win16drv" >&5
13792 echo "$as_me: creating dlls/gdi/win16drv" >&6;} && mkdir "dlls/gdi/win16drv") ;;
13793 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
13794 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
13795 dlls/kernel/tests ) test -d "dlls/kernel/tests" || ({ echo "$as_me:$LINENO: creating dlls/kernel/tests" >&5
13796 echo "$as_me: creating dlls/kernel/tests" >&6;} && mkdir "dlls/kernel/tests") ;;
13797 dlls/oleaut32/tests ) test -d "dlls/oleaut32/tests" || ({ echo "$as_me:$LINENO: creating dlls/oleaut32/tests" >&5
13798 echo "$as_me: creating dlls/oleaut32/tests" >&6;} && mkdir "dlls/oleaut32/tests") ;;
13799 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
13800 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
13801 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
13802 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
13803 dlls/user/tests ) test -d "dlls/user/tests" || ({ echo "$as_me:$LINENO: creating dlls/user/tests" >&5
13804 echo "$as_me: creating dlls/user/tests" >&6;} && mkdir "dlls/user/tests") ;;
13805 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
13806 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
13807 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
13808 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
13809 programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
13810 echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
13811 programs/winetest/tests ) test -d "programs/winetest/tests" || ({ echo "$as_me:$LINENO: creating programs/winetest/tests" >&5
13812 echo "$as_me: creating programs/winetest/tests" >&6;} && mkdir "programs/winetest/tests") ;;
13813 esac
13814 done
13815 _ACEOF
13817 cat >>$CONFIG_STATUS <<\_ACEOF
13819 { (exit 0); exit 0; }
13820 _ACEOF
13821 chmod +x $CONFIG_STATUS
13822 ac_clean_files=$ac_clean_files_save
13825 # configure is writing to config.log, and then calls config.status.
13826 # config.status does its own redirection, appending to config.log.
13827 # Unfortunately, on DOS this fails, as config.log is still kept open
13828 # by configure, so config.status won't be able to write to it; its
13829 # output is simply discarded. So we exec the FD to /dev/null,
13830 # effectively closing config.log, so it can be properly (re)opened and
13831 # appended to by config.status. When coming back to configure, we
13832 # need to make the FD available again.
13833 if test "$no_create" != yes; then
13834 ac_cs_success=:
13835 exec 5>/dev/null
13836 $SHELL $CONFIG_STATUS || ac_cs_success=false
13837 exec 5>>config.log
13838 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13839 # would make configure fail if this is the last instruction.
13840 $ac_cs_success || { (exit 1); exit 1; }
13844 if test "$have_x" = "no"
13845 then
13846 echo
13847 echo "*** Warning: X development files not found. Wine will be built without"
13848 echo "*** X support, which currently does not work, and would probably not be"
13849 echo "*** what you want anyway. You will need to install devel packages of"
13850 echo "*** Xlib/Xfree86 at the very least."
13853 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
13854 then
13855 echo
13856 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
13857 echo "*** terminal resize support. Consider upgrading ncurses."
13860 if test "$wine_cv_libc_reentrant" = "no"
13861 then
13862 echo
13863 echo "*** Warning: non-reentrant libc detected. Wine will be built without"
13864 echo "*** threading support. Consider upgrading libc to a more recent"
13865 echo "*** reentrant version of libc."
13868 if test "$have_x" = "yes" -a "$wine_cv_x_reentrant" != "yes"
13869 then
13870 echo
13871 echo "*** Warning: non-reentrant X11 library detected. Multi-threaded"
13872 echo "*** applications won't work properly. You should upgrade your X11 library."
13875 if test "$wine_cv_opengl_version_OK" = "no"
13876 then
13877 echo
13878 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
13879 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
13882 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "x"
13883 then
13884 echo
13885 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
13886 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
13887 echo "*** A fix for glibc 2.1.3 that seems to work is included in this version of Wine,"
13888 echo "*** start configure with '--enable-opengl' to force OpenGL support."
13891 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "xyes"
13892 then
13893 echo
13894 echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you"
13895 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
13896 echo "*** support before reporting bugs."
13899 if test "$wine_cv_warn_cups_h" = "yes"
13900 then
13901 echo
13902 echo "*** Note: You have cups runtime libraries, but no development"
13903 echo "*** libraries. Install the cups-devel package or whichever package"
13904 echo "*** contains cups.h to enable CUPS support in Wine."
13907 if test "$wine_cv_msg_freetype" = "yes"
13908 then
13909 echo
13910 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
13911 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
13912 echo "*** freetype-devel package (or its equivalent on your distribution) to"
13913 echo "*** enable Wine to use TrueType fonts."
13916 echo
13917 echo "Configure finished. Do 'make depend && make' to compile Wine."
13918 echo