Avoid compiler warning in vector_position().
[wine/wine64.git] / configure
blob27467ec7048ba2b8f4c6958a6689be142dab9c35
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Wine 20040309.
5 # Report bugs to <wine-devel@winehq.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251 exec 6>&1
254 # Initializations.
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='Wine'
271 PACKAGE_TARNAME='wine'
272 PACKAGE_VERSION='20040309'
273 PACKAGE_STRING='Wine 20040309'
274 PACKAGE_BUGREPORT='wine-devel@winehq.org'
276 ac_unique_file="server/atom.c"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 # include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 # include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 # include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS WIN16_FILES WIN16_INSTALL build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPPBIN ac_ct_CPPBIN TOOLSDIR CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LEX LEXLIB LEX_OUTPUT_ROOT XLEX BISON AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES LN_S LN LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS DB2HTML DB2PDF DB2PS DB2TXT LIBPTHREAD JPEGLIB EGREP GIFLIB XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS GLUT_LIBS GLUT32FILES NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS ft_devel ft_devel2 FREETYPEINCL ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS CAPI4LINUXLIBS EXTRACFLAGS DLLEXT DLLFLAGS DLLIBS LDSHARED LDDLLFLAGS LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS WINE_BINARIES MAIN_BINARY LDD ALLOCA LIBOBJS LTLIBOBJS'
315 ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_LIB_RULES MAKE_PROG_RULES'
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
355 ac_prev=
356 for ac_option
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
369 case $ac_option in
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
388 --config-cache | -C)
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
588 -with-* | --with-*)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 esac
652 done
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669 done
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
680 esac
681 done
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
727 else
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CXX_set=${CXX+set}
772 ac_env_CXX_value=$CXX
773 ac_cv_env_CXX_set=${CXX+set}
774 ac_cv_env_CXX_value=$CXX
775 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_env_CXXFLAGS_value=$CXXFLAGS
777 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
778 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
779 ac_env_CPP_set=${CPP+set}
780 ac_env_CPP_value=$CPP
781 ac_cv_env_CPP_set=${CPP+set}
782 ac_cv_env_CPP_value=$CPP
785 # Report the --help message.
787 if test "$ac_init_help" = "long"; then
788 # Omit some internal or obsolete options to make the list less imposing.
789 # This message is too long to be a string in the A/UX 3.1 sh.
790 cat <<_ACEOF
791 \`configure' configures Wine 20040309 to adapt to many kinds of systems.
793 Usage: $0 [OPTION]... [VAR=VALUE]...
795 To assign environment variables (e.g., CC, CFLAGS...), specify them as
796 VAR=VALUE. See below for descriptions of some of the useful variables.
798 Defaults for the options are specified in brackets.
800 Configuration:
801 -h, --help display this help and exit
802 --help=short display options specific to this package
803 --help=recursive display the short help of all the included packages
804 -V, --version display version information and exit
805 -q, --quiet, --silent do not print \`checking...' messages
806 --cache-file=FILE cache test results in FILE [disabled]
807 -C, --config-cache alias for \`--cache-file=config.cache'
808 -n, --no-create do not create output files
809 --srcdir=DIR find the sources in DIR [configure dir or \`..']
811 _ACEOF
813 cat <<_ACEOF
814 Installation directories:
815 --prefix=PREFIX install architecture-independent files in PREFIX
816 [$ac_default_prefix]
817 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 [PREFIX]
820 By default, \`make install' will install all the files in
821 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
822 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
823 for instance \`--prefix=\$HOME'.
825 For better control, use the options below.
827 Fine tuning of the installation directories:
828 --bindir=DIR user executables [EPREFIX/bin]
829 --sbindir=DIR system admin executables [EPREFIX/sbin]
830 --libexecdir=DIR program executables [EPREFIX/libexec]
831 --datadir=DIR read-only architecture-independent data [PREFIX/share]
832 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
833 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
834 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
835 --libdir=DIR object code libraries [EPREFIX/lib]
836 --includedir=DIR C header files [PREFIX/include]
837 --oldincludedir=DIR C header files for non-gcc [/usr/include]
838 --infodir=DIR info documentation [PREFIX/info]
839 --mandir=DIR man documentation [PREFIX/man]
840 _ACEOF
842 cat <<\_ACEOF
844 X features:
845 --x-includes=DIR X include files are in DIR
846 --x-libraries=DIR X library files are in DIR
848 System types:
849 --build=BUILD configure for building on BUILD [guessed]
850 --host=HOST cross-compile to build programs to run on HOST [BUILD]
851 _ACEOF
854 if test -n "$ac_init_help"; then
855 case $ac_init_help in
856 short | recursive ) echo "Configuration of Wine 20040309:";;
857 esac
858 cat <<\_ACEOF
860 Optional Features:
861 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
862 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
863 --disable-win16 do not include Win16 support
864 --disable-debug compile out all debugging messages
865 --disable-trace compile out TRACE messages
867 Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --without-opengl do not use OpenGL
871 --without-curses do not use curses
872 --with-wine-tools=<dir> use Wine tools from directory <dir>
873 --with-x use the X Window System
875 Some influential environment variables:
876 CC C compiler command
877 CFLAGS C compiler flags
878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
879 nonstandard directory <lib dir>
880 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
881 headers in a nonstandard directory <include dir>
882 CXX C++ compiler command
883 CXXFLAGS C++ compiler flags
884 CPP C preprocessor
886 Use these variables to override the choices made by `configure' or to help
887 it to find libraries and programs with nonstandard names/locations.
889 Report bugs to <wine-devel@winehq.org>.
890 _ACEOF
893 if test "$ac_init_help" = "recursive"; then
894 # If there are subdirs, report their specific --help.
895 ac_popdir=`pwd`
896 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
897 test -d $ac_dir || continue
898 ac_builddir=.
900 if test "$ac_dir" != .; then
901 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
902 # A "../" for each directory in $ac_dir_suffix.
903 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
904 else
905 ac_dir_suffix= ac_top_builddir=
908 case $srcdir in
909 .) # No --srcdir option. We are building in place.
910 ac_srcdir=.
911 if test -z "$ac_top_builddir"; then
912 ac_top_srcdir=.
913 else
914 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
915 fi ;;
916 [\\/]* | ?:[\\/]* ) # Absolute path.
917 ac_srcdir=$srcdir$ac_dir_suffix;
918 ac_top_srcdir=$srcdir ;;
919 *) # Relative path.
920 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
921 ac_top_srcdir=$ac_top_builddir$srcdir ;;
922 esac
924 # Do not use `cd foo && pwd` to compute absolute paths, because
925 # the directories may not exist.
926 case `pwd` in
927 .) ac_abs_builddir="$ac_dir";;
929 case "$ac_dir" in
930 .) ac_abs_builddir=`pwd`;;
931 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
932 *) ac_abs_builddir=`pwd`/"$ac_dir";;
933 esac;;
934 esac
935 case $ac_abs_builddir in
936 .) ac_abs_top_builddir=${ac_top_builddir}.;;
938 case ${ac_top_builddir}. in
939 .) ac_abs_top_builddir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
941 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
942 esac;;
943 esac
944 case $ac_abs_builddir in
945 .) ac_abs_srcdir=$ac_srcdir;;
947 case $ac_srcdir in
948 .) ac_abs_srcdir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
950 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
951 esac;;
952 esac
953 case $ac_abs_builddir in
954 .) ac_abs_top_srcdir=$ac_top_srcdir;;
956 case $ac_top_srcdir in
957 .) ac_abs_top_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
959 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
960 esac;;
961 esac
963 cd $ac_dir
964 # Check for guested configure; otherwise get Cygnus style configure.
965 if test -f $ac_srcdir/configure.gnu; then
966 echo
967 $SHELL $ac_srcdir/configure.gnu --help=recursive
968 elif test -f $ac_srcdir/configure; then
969 echo
970 $SHELL $ac_srcdir/configure --help=recursive
971 elif test -f $ac_srcdir/configure.ac ||
972 test -f $ac_srcdir/configure.in; then
973 echo
974 $ac_configure --help
975 else
976 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
978 cd "$ac_popdir"
979 done
982 test -n "$ac_init_help" && exit 0
983 if $ac_init_version; then
984 cat <<\_ACEOF
985 Wine configure 20040309
986 generated by GNU Autoconf 2.59
988 Copyright (C) 2003 Free Software Foundation, Inc.
989 This configure script is free software; the Free Software Foundation
990 gives unlimited permission to copy, distribute and modify it.
991 _ACEOF
992 exit 0
994 exec 5>config.log
995 cat >&5 <<_ACEOF
996 This file contains any messages produced by compilers while
997 running configure, to aid debugging if configure makes a mistake.
999 It was created by Wine $as_me 20040309, which was
1000 generated by GNU Autoconf 2.59. Invocation command line was
1002 $ $0 $@
1004 _ACEOF
1006 cat <<_ASUNAME
1007 ## --------- ##
1008 ## Platform. ##
1009 ## --------- ##
1011 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1012 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1013 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1014 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1015 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1017 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1018 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1020 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1021 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1022 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1023 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1024 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1025 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1026 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1028 _ASUNAME
1030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1031 for as_dir in $PATH
1033 IFS=$as_save_IFS
1034 test -z "$as_dir" && as_dir=.
1035 echo "PATH: $as_dir"
1036 done
1038 } >&5
1040 cat >&5 <<_ACEOF
1043 ## ----------- ##
1044 ## Core tests. ##
1045 ## ----------- ##
1047 _ACEOF
1050 # Keep a trace of the command line.
1051 # Strip out --no-create and --no-recursion so they do not pile up.
1052 # Strip out --silent because we don't want to record it for future runs.
1053 # Also quote any args containing shell meta-characters.
1054 # Make two passes to allow for proper duplicate-argument suppression.
1055 ac_configure_args=
1056 ac_configure_args0=
1057 ac_configure_args1=
1058 ac_sep=
1059 ac_must_keep_next=false
1060 for ac_pass in 1 2
1062 for ac_arg
1064 case $ac_arg in
1065 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067 | -silent | --silent | --silen | --sile | --sil)
1068 continue ;;
1069 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1070 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1071 esac
1072 case $ac_pass in
1073 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1075 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1076 if test $ac_must_keep_next = true; then
1077 ac_must_keep_next=false # Got value, back to normal.
1078 else
1079 case $ac_arg in
1080 *=* | --config-cache | -C | -disable-* | --disable-* \
1081 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1082 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1083 | -with-* | --with-* | -without-* | --without-* | --x)
1084 case "$ac_configure_args0 " in
1085 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1086 esac
1088 -* ) ac_must_keep_next=true ;;
1089 esac
1091 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1092 # Get rid of the leading space.
1093 ac_sep=" "
1095 esac
1096 done
1097 done
1098 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1099 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1101 # When interrupted or exit'd, cleanup temporary files, and complete
1102 # config.log. We remove comments because anyway the quotes in there
1103 # would cause problems or look ugly.
1104 # WARNING: Be sure not to use single quotes in there, as some shells,
1105 # such as our DU 5.0 friend, will then `close' the trap.
1106 trap 'exit_status=$?
1107 # Save into config.log some information that might help in debugging.
1109 echo
1111 cat <<\_ASBOX
1112 ## ---------------- ##
1113 ## Cache variables. ##
1114 ## ---------------- ##
1115 _ASBOX
1116 echo
1117 # The following way of writing the cache mishandles newlines in values,
1119 (set) 2>&1 |
1120 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1121 *ac_space=\ *)
1122 sed -n \
1123 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1124 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1127 sed -n \
1128 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1130 esac;
1132 echo
1134 cat <<\_ASBOX
1135 ## ----------------- ##
1136 ## Output variables. ##
1137 ## ----------------- ##
1138 _ASBOX
1139 echo
1140 for ac_var in $ac_subst_vars
1142 eval ac_val=$`echo $ac_var`
1143 echo "$ac_var='"'"'$ac_val'"'"'"
1144 done | sort
1145 echo
1147 if test -n "$ac_subst_files"; then
1148 cat <<\_ASBOX
1149 ## ------------- ##
1150 ## Output files. ##
1151 ## ------------- ##
1152 _ASBOX
1153 echo
1154 for ac_var in $ac_subst_files
1156 eval ac_val=$`echo $ac_var`
1157 echo "$ac_var='"'"'$ac_val'"'"'"
1158 done | sort
1159 echo
1162 if test -s confdefs.h; then
1163 cat <<\_ASBOX
1164 ## ----------- ##
1165 ## confdefs.h. ##
1166 ## ----------- ##
1167 _ASBOX
1168 echo
1169 sed "/^$/d" confdefs.h | sort
1170 echo
1172 test "$ac_signal" != 0 &&
1173 echo "$as_me: caught signal $ac_signal"
1174 echo "$as_me: exit $exit_status"
1175 } >&5
1176 rm -f core *.core &&
1177 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1178 exit $exit_status
1180 for ac_signal in 1 2 13 15; do
1181 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1182 done
1183 ac_signal=0
1185 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1186 rm -rf conftest* confdefs.h
1187 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1188 echo >confdefs.h
1190 # Predefined preprocessor variables.
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_NAME "$PACKAGE_NAME"
1194 _ACEOF
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1199 _ACEOF
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1204 _ACEOF
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_STRING "$PACKAGE_STRING"
1209 _ACEOF
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1214 _ACEOF
1217 # Let the site file select an alternate cache file if it wants to.
1218 # Prefer explicitly selected file to automatically selected ones.
1219 if test -z "$CONFIG_SITE"; then
1220 if test "x$prefix" != xNONE; then
1221 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1222 else
1223 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1226 for ac_site_file in $CONFIG_SITE; do
1227 if test -r "$ac_site_file"; then
1228 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1229 echo "$as_me: loading site script $ac_site_file" >&6;}
1230 sed 's/^/| /' "$ac_site_file" >&5
1231 . "$ac_site_file"
1233 done
1235 if test -r "$cache_file"; then
1236 # Some versions of bash will fail to source /dev/null (special
1237 # files actually), so we avoid doing that.
1238 if test -f "$cache_file"; then
1239 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1240 echo "$as_me: loading cache $cache_file" >&6;}
1241 case $cache_file in
1242 [\\/]* | ?:[\\/]* ) . $cache_file;;
1243 *) . ./$cache_file;;
1244 esac
1246 else
1247 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1248 echo "$as_me: creating cache $cache_file" >&6;}
1249 >$cache_file
1252 # Check that the precious variables saved in the cache have kept the same
1253 # value.
1254 ac_cache_corrupted=false
1255 for ac_var in `(set) 2>&1 |
1256 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1257 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1258 eval ac_new_set=\$ac_env_${ac_var}_set
1259 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1260 eval ac_new_val="\$ac_env_${ac_var}_value"
1261 case $ac_old_set,$ac_new_set in
1262 set,)
1263 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1264 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1266 ,set)
1267 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1269 ac_cache_corrupted=: ;;
1270 ,);;
1272 if test "x$ac_old_val" != "x$ac_new_val"; then
1273 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1274 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1275 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1276 echo "$as_me: former value: $ac_old_val" >&2;}
1277 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1278 echo "$as_me: current value: $ac_new_val" >&2;}
1279 ac_cache_corrupted=:
1280 fi;;
1281 esac
1282 # Pass precious variables to config.status.
1283 if test "$ac_new_set" = set; then
1284 case $ac_new_val in
1285 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1286 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1287 *) ac_arg=$ac_var=$ac_new_val ;;
1288 esac
1289 case " $ac_configure_args " in
1290 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1291 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1292 esac
1294 done
1295 if $ac_cache_corrupted; then
1296 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1297 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1298 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1299 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1300 { (exit 1); exit 1; }; }
1303 ac_ext=c
1304 ac_cpp='$CPP $CPPFLAGS'
1305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1336 ac_config_headers="$ac_config_headers include/config.h"
1338 ac_aux_dir=
1339 for ac_dir in tools $srcdir/tools; do
1340 if test -f $ac_dir/install-sh; then
1341 ac_aux_dir=$ac_dir
1342 ac_install_sh="$ac_aux_dir/install-sh -c"
1343 break
1344 elif test -f $ac_dir/install.sh; then
1345 ac_aux_dir=$ac_dir
1346 ac_install_sh="$ac_aux_dir/install.sh -c"
1347 break
1348 elif test -f $ac_dir/shtool; then
1349 ac_aux_dir=$ac_dir
1350 ac_install_sh="$ac_aux_dir/shtool install -c"
1351 break
1353 done
1354 if test -z "$ac_aux_dir"; then
1355 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1356 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1357 { (exit 1); exit 1; }; }
1359 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1360 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1361 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1365 # Check whether --enable-win16 or --disable-win16 was given.
1366 if test "${enable_win16+set}" = set; then
1367 enableval="$enable_win16"
1370 # Check whether --enable-debug or --disable-debug was given.
1371 if test "${enable_debug+set}" = set; then
1372 enableval="$enable_debug"
1375 # Check whether --enable-trace or --disable-trace was given.
1376 if test "${enable_trace+set}" = set; then
1377 enableval="$enable_trace"
1382 # Check whether --with-opengl or --without-opengl was given.
1383 if test "${with_opengl+set}" = set; then
1384 withval="$with_opengl"
1388 # Check whether --with-curses or --without-curses was given.
1389 if test "${with_curses+set}" = set; then
1390 withval="$with_curses"
1394 # Check whether --with-wine-tools or --without-wine-tools was given.
1395 if test "${with_wine_tools+set}" = set; then
1396 withval="$with_wine_tools"
1400 WIN16_FILES="\$(WIN16_FILES)"
1402 WIN16_INSTALL="\$(WIN16_INSTALL)"
1404 if test "x$enable_win16" = "xno"
1405 then
1406 WIN16_FILES=""
1407 WIN16_INSTALL=""
1409 if test "x$enable_debug" = "xno"
1410 then
1412 cat >>confdefs.h <<\_ACEOF
1413 #define NO_DEBUG_MSGS 1
1414 _ACEOF
1417 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1418 then
1420 cat >>confdefs.h <<\_ACEOF
1421 #define NO_TRACE_MSGS 1
1422 _ACEOF
1427 # Make sure we can run config.sub.
1428 $ac_config_sub sun4 >/dev/null 2>&1 ||
1429 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1430 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1431 { (exit 1); exit 1; }; }
1433 echo "$as_me:$LINENO: checking build system type" >&5
1434 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1435 if test "${ac_cv_build+set}" = set; then
1436 echo $ECHO_N "(cached) $ECHO_C" >&6
1437 else
1438 ac_cv_build_alias=$build_alias
1439 test -z "$ac_cv_build_alias" &&
1440 ac_cv_build_alias=`$ac_config_guess`
1441 test -z "$ac_cv_build_alias" &&
1442 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1443 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1444 { (exit 1); exit 1; }; }
1445 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1446 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1447 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1448 { (exit 1); exit 1; }; }
1451 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1452 echo "${ECHO_T}$ac_cv_build" >&6
1453 build=$ac_cv_build
1454 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1455 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1456 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1459 echo "$as_me:$LINENO: checking host system type" >&5
1460 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1461 if test "${ac_cv_host+set}" = set; then
1462 echo $ECHO_N "(cached) $ECHO_C" >&6
1463 else
1464 ac_cv_host_alias=$host_alias
1465 test -z "$ac_cv_host_alias" &&
1466 ac_cv_host_alias=$ac_cv_build_alias
1467 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1468 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1469 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1470 { (exit 1); exit 1; }; }
1473 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1474 echo "${ECHO_T}$ac_cv_host" >&6
1475 host=$ac_cv_host
1476 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1477 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1478 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1481 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1482 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1483 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1484 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 else
1487 cat >conftest.make <<\_ACEOF
1488 all:
1489 @echo 'ac_maketemp="$(MAKE)"'
1490 _ACEOF
1491 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1492 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1493 if test -n "$ac_maketemp"; then
1494 eval ac_cv_prog_make_${ac_make}_set=yes
1495 else
1496 eval ac_cv_prog_make_${ac_make}_set=no
1498 rm -f conftest.make
1500 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1501 echo "$as_me:$LINENO: result: yes" >&5
1502 echo "${ECHO_T}yes" >&6
1503 SET_MAKE=
1504 else
1505 echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1507 SET_MAKE="MAKE=${MAKE-make}"
1510 ac_ext=c
1511 ac_cpp='$CPP $CPPFLAGS'
1512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1515 if test -n "$ac_tool_prefix"; then
1516 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1517 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1518 echo "$as_me:$LINENO: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_CC+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1522 else
1523 if test -n "$CC"; then
1524 ac_cv_prog_CC="$CC" # Let the user override the test.
1525 else
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527 for as_dir in $PATH
1529 IFS=$as_save_IFS
1530 test -z "$as_dir" && as_dir=.
1531 for ac_exec_ext in '' $ac_executable_extensions; do
1532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535 break 2
1537 done
1538 done
1542 CC=$ac_cv_prog_CC
1543 if test -n "$CC"; then
1544 echo "$as_me:$LINENO: result: $CC" >&5
1545 echo "${ECHO_T}$CC" >&6
1546 else
1547 echo "$as_me:$LINENO: result: no" >&5
1548 echo "${ECHO_T}no" >&6
1552 if test -z "$ac_cv_prog_CC"; then
1553 ac_ct_CC=$CC
1554 # Extract the first word of "gcc", so it can be a program name with args.
1555 set dummy gcc; ac_word=$2
1556 echo "$as_me:$LINENO: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1560 else
1561 if test -n "$ac_ct_CC"; then
1562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1563 else
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 for as_dir in $PATH
1567 IFS=$as_save_IFS
1568 test -z "$as_dir" && as_dir=.
1569 for ac_exec_ext in '' $ac_executable_extensions; do
1570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571 ac_cv_prog_ac_ct_CC="gcc"
1572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573 break 2
1575 done
1576 done
1580 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1581 if test -n "$ac_ct_CC"; then
1582 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1583 echo "${ECHO_T}$ac_ct_CC" >&6
1584 else
1585 echo "$as_me:$LINENO: result: no" >&5
1586 echo "${ECHO_T}no" >&6
1589 CC=$ac_ct_CC
1590 else
1591 CC="$ac_cv_prog_CC"
1594 if test -z "$CC"; then
1595 if test -n "$ac_tool_prefix"; then
1596 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1597 set dummy ${ac_tool_prefix}cc; ac_word=$2
1598 echo "$as_me:$LINENO: checking for $ac_word" >&5
1599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600 if test "${ac_cv_prog_CC+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1602 else
1603 if test -n "$CC"; then
1604 ac_cv_prog_CC="$CC" # Let the user override the test.
1605 else
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 for as_dir in $PATH
1609 IFS=$as_save_IFS
1610 test -z "$as_dir" && as_dir=.
1611 for ac_exec_ext in '' $ac_executable_extensions; do
1612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613 ac_cv_prog_CC="${ac_tool_prefix}cc"
1614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615 break 2
1617 done
1618 done
1622 CC=$ac_cv_prog_CC
1623 if test -n "$CC"; then
1624 echo "$as_me:$LINENO: result: $CC" >&5
1625 echo "${ECHO_T}$CC" >&6
1626 else
1627 echo "$as_me:$LINENO: result: no" >&5
1628 echo "${ECHO_T}no" >&6
1632 if test -z "$ac_cv_prog_CC"; then
1633 ac_ct_CC=$CC
1634 # Extract the first word of "cc", so it can be a program name with args.
1635 set dummy cc; ac_word=$2
1636 echo "$as_me:$LINENO: checking for $ac_word" >&5
1637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641 if test -n "$ac_ct_CC"; then
1642 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1643 else
1644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645 for as_dir in $PATH
1647 IFS=$as_save_IFS
1648 test -z "$as_dir" && as_dir=.
1649 for ac_exec_ext in '' $ac_executable_extensions; do
1650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1651 ac_cv_prog_ac_ct_CC="cc"
1652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1653 break 2
1655 done
1656 done
1660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1661 if test -n "$ac_ct_CC"; then
1662 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1663 echo "${ECHO_T}$ac_ct_CC" >&6
1664 else
1665 echo "$as_me:$LINENO: result: no" >&5
1666 echo "${ECHO_T}no" >&6
1669 CC=$ac_ct_CC
1670 else
1671 CC="$ac_cv_prog_CC"
1675 if test -z "$CC"; then
1676 # Extract the first word of "cc", so it can be a program name with args.
1677 set dummy cc; ac_word=$2
1678 echo "$as_me:$LINENO: checking for $ac_word" >&5
1679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1680 if test "${ac_cv_prog_CC+set}" = set; then
1681 echo $ECHO_N "(cached) $ECHO_C" >&6
1682 else
1683 if test -n "$CC"; then
1684 ac_cv_prog_CC="$CC" # Let the user override the test.
1685 else
1686 ac_prog_rejected=no
1687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 for as_dir in $PATH
1690 IFS=$as_save_IFS
1691 test -z "$as_dir" && as_dir=.
1692 for ac_exec_ext in '' $ac_executable_extensions; do
1693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1694 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1695 ac_prog_rejected=yes
1696 continue
1698 ac_cv_prog_CC="cc"
1699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1700 break 2
1702 done
1703 done
1705 if test $ac_prog_rejected = yes; then
1706 # We found a bogon in the path, so make sure we never use it.
1707 set dummy $ac_cv_prog_CC
1708 shift
1709 if test $# != 0; then
1710 # We chose a different compiler from the bogus one.
1711 # However, it has the same basename, so the bogon will be chosen
1712 # first if we set CC to just the basename; use the full file name.
1713 shift
1714 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1719 CC=$ac_cv_prog_CC
1720 if test -n "$CC"; then
1721 echo "$as_me:$LINENO: result: $CC" >&5
1722 echo "${ECHO_T}$CC" >&6
1723 else
1724 echo "$as_me:$LINENO: result: no" >&5
1725 echo "${ECHO_T}no" >&6
1729 if test -z "$CC"; then
1730 if test -n "$ac_tool_prefix"; then
1731 for ac_prog in cl
1733 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1734 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_CC+set}" = set; then
1738 echo $ECHO_N "(cached) $ECHO_C" >&6
1739 else
1740 if test -n "$CC"; then
1741 ac_cv_prog_CC="$CC" # Let the user override the test.
1742 else
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 for as_dir in $PATH
1746 IFS=$as_save_IFS
1747 test -z "$as_dir" && as_dir=.
1748 for ac_exec_ext in '' $ac_executable_extensions; do
1749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1752 break 2
1754 done
1755 done
1759 CC=$ac_cv_prog_CC
1760 if test -n "$CC"; then
1761 echo "$as_me:$LINENO: result: $CC" >&5
1762 echo "${ECHO_T}$CC" >&6
1763 else
1764 echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1768 test -n "$CC" && break
1769 done
1771 if test -z "$CC"; then
1772 ac_ct_CC=$CC
1773 for ac_prog in cl
1775 # Extract the first word of "$ac_prog", so it can be a program name with args.
1776 set dummy $ac_prog; ac_word=$2
1777 echo "$as_me:$LINENO: checking for $ac_word" >&5
1778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1781 else
1782 if test -n "$ac_ct_CC"; then
1783 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1784 else
1785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1786 for as_dir in $PATH
1788 IFS=$as_save_IFS
1789 test -z "$as_dir" && as_dir=.
1790 for ac_exec_ext in '' $ac_executable_extensions; do
1791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792 ac_cv_prog_ac_ct_CC="$ac_prog"
1793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1794 break 2
1796 done
1797 done
1801 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1802 if test -n "$ac_ct_CC"; then
1803 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1804 echo "${ECHO_T}$ac_ct_CC" >&6
1805 else
1806 echo "$as_me:$LINENO: result: no" >&5
1807 echo "${ECHO_T}no" >&6
1810 test -n "$ac_ct_CC" && break
1811 done
1813 CC=$ac_ct_CC
1819 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1820 See \`config.log' for more details." >&5
1821 echo "$as_me: error: no acceptable C compiler found in \$PATH
1822 See \`config.log' for more details." >&2;}
1823 { (exit 1); exit 1; }; }
1825 # Provide some information about the compiler.
1826 echo "$as_me:$LINENO:" \
1827 "checking for C compiler version" >&5
1828 ac_compiler=`set X $ac_compile; echo $2`
1829 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1830 (eval $ac_compiler --version </dev/null >&5) 2>&5
1831 ac_status=$?
1832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1833 (exit $ac_status); }
1834 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1835 (eval $ac_compiler -v </dev/null >&5) 2>&5
1836 ac_status=$?
1837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1838 (exit $ac_status); }
1839 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1840 (eval $ac_compiler -V </dev/null >&5) 2>&5
1841 ac_status=$?
1842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843 (exit $ac_status); }
1845 cat >conftest.$ac_ext <<_ACEOF
1846 /* confdefs.h. */
1847 _ACEOF
1848 cat confdefs.h >>conftest.$ac_ext
1849 cat >>conftest.$ac_ext <<_ACEOF
1850 /* end confdefs.h. */
1853 main ()
1857 return 0;
1859 _ACEOF
1860 ac_clean_files_save=$ac_clean_files
1861 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1862 # Try to create an executable without -o first, disregard a.out.
1863 # It will help us diagnose broken compilers, and finding out an intuition
1864 # of exeext.
1865 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1866 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1867 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1868 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1869 (eval $ac_link_default) 2>&5
1870 ac_status=$?
1871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1872 (exit $ac_status); }; then
1873 # Find the output, starting from the most likely. This scheme is
1874 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1875 # resort.
1877 # Be careful to initialize this variable, since it used to be cached.
1878 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1879 ac_cv_exeext=
1880 # b.out is created by i960 compilers.
1881 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1883 test -f "$ac_file" || continue
1884 case $ac_file in
1885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1887 conftest.$ac_ext )
1888 # This is the source file.
1890 [ab].out )
1891 # We found the default executable, but exeext='' is most
1892 # certainly right.
1893 break;;
1894 *.* )
1895 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1896 # FIXME: I believe we export ac_cv_exeext for Libtool,
1897 # but it would be cool to find out if it's true. Does anybody
1898 # maintain Libtool? --akim.
1899 export ac_cv_exeext
1900 break;;
1902 break;;
1903 esac
1904 done
1905 else
1906 echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1909 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1910 See \`config.log' for more details." >&5
1911 echo "$as_me: error: C compiler cannot create executables
1912 See \`config.log' for more details." >&2;}
1913 { (exit 77); exit 77; }; }
1916 ac_exeext=$ac_cv_exeext
1917 echo "$as_me:$LINENO: result: $ac_file" >&5
1918 echo "${ECHO_T}$ac_file" >&6
1920 # Check the compiler produces executables we can run. If not, either
1921 # the compiler is broken, or we cross compile.
1922 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1923 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1924 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1925 # If not cross compiling, check that we can run a simple program.
1926 if test "$cross_compiling" != yes; then
1927 if { ac_try='./$ac_file'
1928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1929 (eval $ac_try) 2>&5
1930 ac_status=$?
1931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932 (exit $ac_status); }; }; then
1933 cross_compiling=no
1934 else
1935 if test "$cross_compiling" = maybe; then
1936 cross_compiling=yes
1937 else
1938 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1939 If you meant to cross compile, use \`--host'.
1940 See \`config.log' for more details." >&5
1941 echo "$as_me: error: cannot run C compiled programs.
1942 If you meant to cross compile, use \`--host'.
1943 See \`config.log' for more details." >&2;}
1944 { (exit 1); exit 1; }; }
1948 echo "$as_me:$LINENO: result: yes" >&5
1949 echo "${ECHO_T}yes" >&6
1951 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1952 ac_clean_files=$ac_clean_files_save
1953 # Check the compiler produces executables we can run. If not, either
1954 # the compiler is broken, or we cross compile.
1955 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1956 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1957 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1958 echo "${ECHO_T}$cross_compiling" >&6
1960 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1961 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1963 (eval $ac_link) 2>&5
1964 ac_status=$?
1965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1966 (exit $ac_status); }; then
1967 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1968 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1969 # work properly (i.e., refer to `conftest.exe'), while it won't with
1970 # `rm'.
1971 for ac_file in conftest.exe conftest conftest.*; do
1972 test -f "$ac_file" || continue
1973 case $ac_file in
1974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1975 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1976 export ac_cv_exeext
1977 break;;
1978 * ) break;;
1979 esac
1980 done
1981 else
1982 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1983 See \`config.log' for more details." >&5
1984 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1985 See \`config.log' for more details." >&2;}
1986 { (exit 1); exit 1; }; }
1989 rm -f conftest$ac_cv_exeext
1990 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1991 echo "${ECHO_T}$ac_cv_exeext" >&6
1993 rm -f conftest.$ac_ext
1994 EXEEXT=$ac_cv_exeext
1995 ac_exeext=$EXEEXT
1996 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1997 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1998 if test "${ac_cv_objext+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001 cat >conftest.$ac_ext <<_ACEOF
2002 /* confdefs.h. */
2003 _ACEOF
2004 cat confdefs.h >>conftest.$ac_ext
2005 cat >>conftest.$ac_ext <<_ACEOF
2006 /* end confdefs.h. */
2009 main ()
2013 return 0;
2015 _ACEOF
2016 rm -f conftest.o conftest.obj
2017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2018 (eval $ac_compile) 2>&5
2019 ac_status=$?
2020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021 (exit $ac_status); }; then
2022 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2023 case $ac_file in
2024 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2025 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2026 break;;
2027 esac
2028 done
2029 else
2030 echo "$as_me: failed program was:" >&5
2031 sed 's/^/| /' conftest.$ac_ext >&5
2033 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2034 See \`config.log' for more details." >&5
2035 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2036 See \`config.log' for more details." >&2;}
2037 { (exit 1); exit 1; }; }
2040 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2042 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2043 echo "${ECHO_T}$ac_cv_objext" >&6
2044 OBJEXT=$ac_cv_objext
2045 ac_objext=$OBJEXT
2046 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2047 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2048 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051 cat >conftest.$ac_ext <<_ACEOF
2052 /* confdefs.h. */
2053 _ACEOF
2054 cat confdefs.h >>conftest.$ac_ext
2055 cat >>conftest.$ac_ext <<_ACEOF
2056 /* end confdefs.h. */
2059 main ()
2061 #ifndef __GNUC__
2062 choke me
2063 #endif
2066 return 0;
2068 _ACEOF
2069 rm -f conftest.$ac_objext
2070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2071 (eval $ac_compile) 2>conftest.er1
2072 ac_status=$?
2073 grep -v '^ *+' conftest.er1 >conftest.err
2074 rm -f conftest.er1
2075 cat conftest.err >&5
2076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2077 (exit $ac_status); } &&
2078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2080 (eval $ac_try) 2>&5
2081 ac_status=$?
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); }; } &&
2084 { ac_try='test -s conftest.$ac_objext'
2085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2086 (eval $ac_try) 2>&5
2087 ac_status=$?
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }; }; then
2090 ac_compiler_gnu=yes
2091 else
2092 echo "$as_me: failed program was:" >&5
2093 sed 's/^/| /' conftest.$ac_ext >&5
2095 ac_compiler_gnu=no
2097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2098 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2101 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2102 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2103 GCC=`test $ac_compiler_gnu = yes && echo yes`
2104 ac_test_CFLAGS=${CFLAGS+set}
2105 ac_save_CFLAGS=$CFLAGS
2106 CFLAGS="-g"
2107 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2108 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2109 if test "${ac_cv_prog_cc_g+set}" = set; then
2110 echo $ECHO_N "(cached) $ECHO_C" >&6
2111 else
2112 cat >conftest.$ac_ext <<_ACEOF
2113 /* confdefs.h. */
2114 _ACEOF
2115 cat confdefs.h >>conftest.$ac_ext
2116 cat >>conftest.$ac_ext <<_ACEOF
2117 /* end confdefs.h. */
2120 main ()
2124 return 0;
2126 _ACEOF
2127 rm -f conftest.$ac_objext
2128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2129 (eval $ac_compile) 2>conftest.er1
2130 ac_status=$?
2131 grep -v '^ *+' conftest.er1 >conftest.err
2132 rm -f conftest.er1
2133 cat conftest.err >&5
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); } &&
2136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2138 (eval $ac_try) 2>&5
2139 ac_status=$?
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }; } &&
2142 { ac_try='test -s conftest.$ac_objext'
2143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2144 (eval $ac_try) 2>&5
2145 ac_status=$?
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }; }; then
2148 ac_cv_prog_cc_g=yes
2149 else
2150 echo "$as_me: failed program was:" >&5
2151 sed 's/^/| /' conftest.$ac_ext >&5
2153 ac_cv_prog_cc_g=no
2155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2157 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2158 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2159 if test "$ac_test_CFLAGS" = set; then
2160 CFLAGS=$ac_save_CFLAGS
2161 elif test $ac_cv_prog_cc_g = yes; then
2162 if test "$GCC" = yes; then
2163 CFLAGS="-g -O2"
2164 else
2165 CFLAGS="-g"
2167 else
2168 if test "$GCC" = yes; then
2169 CFLAGS="-O2"
2170 else
2171 CFLAGS=
2174 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2175 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2176 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2178 else
2179 ac_cv_prog_cc_stdc=no
2180 ac_save_CC=$CC
2181 cat >conftest.$ac_ext <<_ACEOF
2182 /* confdefs.h. */
2183 _ACEOF
2184 cat confdefs.h >>conftest.$ac_ext
2185 cat >>conftest.$ac_ext <<_ACEOF
2186 /* end confdefs.h. */
2187 #include <stdarg.h>
2188 #include <stdio.h>
2189 #include <sys/types.h>
2190 #include <sys/stat.h>
2191 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2192 struct buf { int x; };
2193 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2194 static char *e (p, i)
2195 char **p;
2196 int i;
2198 return p[i];
2200 static char *f (char * (*g) (char **, int), char **p, ...)
2202 char *s;
2203 va_list v;
2204 va_start (v,p);
2205 s = g (p, va_arg (v,int));
2206 va_end (v);
2207 return s;
2210 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2211 function prototypes and stuff, but not '\xHH' hex character constants.
2212 These don't provoke an error unfortunately, instead are silently treated
2213 as 'x'. The following induces an error, until -std1 is added to get
2214 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2215 array size at least. It's necessary to write '\x00'==0 to get something
2216 that's true only with -std1. */
2217 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2219 int test (int i, double x);
2220 struct s1 {int (*f) (int a);};
2221 struct s2 {int (*f) (double a);};
2222 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2223 int argc;
2224 char **argv;
2226 main ()
2228 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2230 return 0;
2232 _ACEOF
2233 # Don't try gcc -ansi; that turns off useful extensions and
2234 # breaks some systems' header files.
2235 # AIX -qlanglvl=ansi
2236 # Ultrix and OSF/1 -std1
2237 # HP-UX 10.20 and later -Ae
2238 # HP-UX older versions -Aa -D_HPUX_SOURCE
2239 # SVR4 -Xc -D__EXTENSIONS__
2240 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2242 CC="$ac_save_CC $ac_arg"
2243 rm -f conftest.$ac_objext
2244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2245 (eval $ac_compile) 2>conftest.er1
2246 ac_status=$?
2247 grep -v '^ *+' conftest.er1 >conftest.err
2248 rm -f conftest.er1
2249 cat conftest.err >&5
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); } &&
2252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254 (eval $ac_try) 2>&5
2255 ac_status=$?
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); }; } &&
2258 { ac_try='test -s conftest.$ac_objext'
2259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260 (eval $ac_try) 2>&5
2261 ac_status=$?
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; }; then
2264 ac_cv_prog_cc_stdc=$ac_arg
2265 break
2266 else
2267 echo "$as_me: failed program was:" >&5
2268 sed 's/^/| /' conftest.$ac_ext >&5
2271 rm -f conftest.err conftest.$ac_objext
2272 done
2273 rm -f conftest.$ac_ext conftest.$ac_objext
2274 CC=$ac_save_CC
2278 case "x$ac_cv_prog_cc_stdc" in
2279 x|xno)
2280 echo "$as_me:$LINENO: result: none needed" >&5
2281 echo "${ECHO_T}none needed" >&6 ;;
2283 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2284 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2285 CC="$CC $ac_cv_prog_cc_stdc" ;;
2286 esac
2288 # Some people use a C++ compiler to compile C. Since we use `exit',
2289 # in C++ we need to declare it. In case someone uses the same compiler
2290 # for both compiling C and C++ we need to have the C++ compiler decide
2291 # the declaration of exit, since it's the most demanding environment.
2292 cat >conftest.$ac_ext <<_ACEOF
2293 #ifndef __cplusplus
2294 choke me
2295 #endif
2296 _ACEOF
2297 rm -f conftest.$ac_objext
2298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299 (eval $ac_compile) 2>conftest.er1
2300 ac_status=$?
2301 grep -v '^ *+' conftest.er1 >conftest.err
2302 rm -f conftest.er1
2303 cat conftest.err >&5
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); } &&
2306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308 (eval $ac_try) 2>&5
2309 ac_status=$?
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }; } &&
2312 { ac_try='test -s conftest.$ac_objext'
2313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2314 (eval $ac_try) 2>&5
2315 ac_status=$?
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; }; then
2318 for ac_declaration in \
2319 '' \
2320 'extern "C" void std::exit (int) throw (); using std::exit;' \
2321 'extern "C" void std::exit (int); using std::exit;' \
2322 'extern "C" void exit (int) throw ();' \
2323 'extern "C" void exit (int);' \
2324 'void exit (int);'
2326 cat >conftest.$ac_ext <<_ACEOF
2327 /* confdefs.h. */
2328 _ACEOF
2329 cat confdefs.h >>conftest.$ac_ext
2330 cat >>conftest.$ac_ext <<_ACEOF
2331 /* end confdefs.h. */
2332 $ac_declaration
2333 #include <stdlib.h>
2335 main ()
2337 exit (42);
2339 return 0;
2341 _ACEOF
2342 rm -f conftest.$ac_objext
2343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344 (eval $ac_compile) 2>conftest.er1
2345 ac_status=$?
2346 grep -v '^ *+' conftest.er1 >conftest.err
2347 rm -f conftest.er1
2348 cat conftest.err >&5
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); } &&
2351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353 (eval $ac_try) 2>&5
2354 ac_status=$?
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; } &&
2357 { ac_try='test -s conftest.$ac_objext'
2358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359 (eval $ac_try) 2>&5
2360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; }; then
2364 else
2365 echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.$ac_ext >&5
2368 continue
2370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2371 cat >conftest.$ac_ext <<_ACEOF
2372 /* confdefs.h. */
2373 _ACEOF
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h. */
2377 $ac_declaration
2379 main ()
2381 exit (42);
2383 return 0;
2385 _ACEOF
2386 rm -f conftest.$ac_objext
2387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2388 (eval $ac_compile) 2>conftest.er1
2389 ac_status=$?
2390 grep -v '^ *+' conftest.er1 >conftest.err
2391 rm -f conftest.er1
2392 cat conftest.err >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); } &&
2395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 (eval $ac_try) 2>&5
2398 ac_status=$?
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; } &&
2401 { ac_try='test -s conftest.$ac_objext'
2402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 (eval $ac_try) 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; }; then
2407 break
2408 else
2409 echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2414 done
2415 rm -f conftest*
2416 if test -n "$ac_declaration"; then
2417 echo '#ifdef __cplusplus' >>confdefs.h
2418 echo $ac_declaration >>confdefs.h
2419 echo '#endif' >>confdefs.h
2422 else
2423 echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2428 ac_ext=c
2429 ac_cpp='$CPP $CPPFLAGS'
2430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2434 ac_ext=cc
2435 ac_cpp='$CXXCPP $CPPFLAGS'
2436 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2437 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2438 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2439 if test -n "$ac_tool_prefix"; then
2440 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2442 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2443 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2444 echo "$as_me:$LINENO: checking for $ac_word" >&5
2445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2446 if test "${ac_cv_prog_CXX+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2448 else
2449 if test -n "$CXX"; then
2450 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2451 else
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 for as_dir in $PATH
2455 IFS=$as_save_IFS
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2459 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2461 break 2
2463 done
2464 done
2468 CXX=$ac_cv_prog_CXX
2469 if test -n "$CXX"; then
2470 echo "$as_me:$LINENO: result: $CXX" >&5
2471 echo "${ECHO_T}$CXX" >&6
2472 else
2473 echo "$as_me:$LINENO: result: no" >&5
2474 echo "${ECHO_T}no" >&6
2477 test -n "$CXX" && break
2478 done
2480 if test -z "$CXX"; then
2481 ac_ct_CXX=$CXX
2482 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2484 # Extract the first word of "$ac_prog", so it can be a program name with args.
2485 set dummy $ac_prog; ac_word=$2
2486 echo "$as_me:$LINENO: checking for $ac_word" >&5
2487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2488 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
2490 else
2491 if test -n "$ac_ct_CXX"; then
2492 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2493 else
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495 for as_dir in $PATH
2497 IFS=$as_save_IFS
2498 test -z "$as_dir" && as_dir=.
2499 for ac_exec_ext in '' $ac_executable_extensions; do
2500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2501 ac_cv_prog_ac_ct_CXX="$ac_prog"
2502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 break 2
2505 done
2506 done
2510 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2511 if test -n "$ac_ct_CXX"; then
2512 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2513 echo "${ECHO_T}$ac_ct_CXX" >&6
2514 else
2515 echo "$as_me:$LINENO: result: no" >&5
2516 echo "${ECHO_T}no" >&6
2519 test -n "$ac_ct_CXX" && break
2520 done
2521 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2523 CXX=$ac_ct_CXX
2527 # Provide some information about the compiler.
2528 echo "$as_me:$LINENO:" \
2529 "checking for C++ compiler version" >&5
2530 ac_compiler=`set X $ac_compile; echo $2`
2531 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2532 (eval $ac_compiler --version </dev/null >&5) 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }
2536 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2537 (eval $ac_compiler -v </dev/null >&5) 2>&5
2538 ac_status=$?
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }
2541 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2542 (eval $ac_compiler -V </dev/null >&5) 2>&5
2543 ac_status=$?
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }
2547 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2548 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2549 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2550 echo $ECHO_N "(cached) $ECHO_C" >&6
2551 else
2552 cat >conftest.$ac_ext <<_ACEOF
2553 /* confdefs.h. */
2554 _ACEOF
2555 cat confdefs.h >>conftest.$ac_ext
2556 cat >>conftest.$ac_ext <<_ACEOF
2557 /* end confdefs.h. */
2560 main ()
2562 #ifndef __GNUC__
2563 choke me
2564 #endif
2567 return 0;
2569 _ACEOF
2570 rm -f conftest.$ac_objext
2571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2572 (eval $ac_compile) 2>conftest.er1
2573 ac_status=$?
2574 grep -v '^ *+' conftest.er1 >conftest.err
2575 rm -f conftest.er1
2576 cat conftest.err >&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); } &&
2579 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581 (eval $ac_try) 2>&5
2582 ac_status=$?
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; } &&
2585 { ac_try='test -s conftest.$ac_objext'
2586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587 (eval $ac_try) 2>&5
2588 ac_status=$?
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; }; then
2591 ac_compiler_gnu=yes
2592 else
2593 echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2596 ac_compiler_gnu=no
2598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2599 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2602 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2603 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2604 GXX=`test $ac_compiler_gnu = yes && echo yes`
2605 ac_test_CXXFLAGS=${CXXFLAGS+set}
2606 ac_save_CXXFLAGS=$CXXFLAGS
2607 CXXFLAGS="-g"
2608 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2609 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2610 if test "${ac_cv_prog_cxx_g+set}" = set; then
2611 echo $ECHO_N "(cached) $ECHO_C" >&6
2612 else
2613 cat >conftest.$ac_ext <<_ACEOF
2614 /* confdefs.h. */
2615 _ACEOF
2616 cat confdefs.h >>conftest.$ac_ext
2617 cat >>conftest.$ac_ext <<_ACEOF
2618 /* end confdefs.h. */
2621 main ()
2625 return 0;
2627 _ACEOF
2628 rm -f conftest.$ac_objext
2629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2630 (eval $ac_compile) 2>conftest.er1
2631 ac_status=$?
2632 grep -v '^ *+' conftest.er1 >conftest.err
2633 rm -f conftest.er1
2634 cat conftest.err >&5
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); } &&
2637 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 (eval $ac_try) 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; } &&
2643 { ac_try='test -s conftest.$ac_objext'
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645 (eval $ac_try) 2>&5
2646 ac_status=$?
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; }; then
2649 ac_cv_prog_cxx_g=yes
2650 else
2651 echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2654 ac_cv_prog_cxx_g=no
2656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2658 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2659 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2660 if test "$ac_test_CXXFLAGS" = set; then
2661 CXXFLAGS=$ac_save_CXXFLAGS
2662 elif test $ac_cv_prog_cxx_g = yes; then
2663 if test "$GXX" = yes; then
2664 CXXFLAGS="-g -O2"
2665 else
2666 CXXFLAGS="-g"
2668 else
2669 if test "$GXX" = yes; then
2670 CXXFLAGS="-O2"
2671 else
2672 CXXFLAGS=
2675 for ac_declaration in \
2676 '' \
2677 'extern "C" void std::exit (int) throw (); using std::exit;' \
2678 'extern "C" void std::exit (int); using std::exit;' \
2679 'extern "C" void exit (int) throw ();' \
2680 'extern "C" void exit (int);' \
2681 'void exit (int);'
2683 cat >conftest.$ac_ext <<_ACEOF
2684 /* confdefs.h. */
2685 _ACEOF
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h. */
2689 $ac_declaration
2690 #include <stdlib.h>
2692 main ()
2694 exit (42);
2696 return 0;
2698 _ACEOF
2699 rm -f conftest.$ac_objext
2700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2701 (eval $ac_compile) 2>conftest.er1
2702 ac_status=$?
2703 grep -v '^ *+' conftest.er1 >conftest.err
2704 rm -f conftest.er1
2705 cat conftest.err >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); } &&
2708 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 (eval $ac_try) 2>&5
2711 ac_status=$?
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; } &&
2714 { ac_try='test -s conftest.$ac_objext'
2715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716 (eval $ac_try) 2>&5
2717 ac_status=$?
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; }; then
2721 else
2722 echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.$ac_ext >&5
2725 continue
2727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2728 cat >conftest.$ac_ext <<_ACEOF
2729 /* confdefs.h. */
2730 _ACEOF
2731 cat confdefs.h >>conftest.$ac_ext
2732 cat >>conftest.$ac_ext <<_ACEOF
2733 /* end confdefs.h. */
2734 $ac_declaration
2736 main ()
2738 exit (42);
2740 return 0;
2742 _ACEOF
2743 rm -f conftest.$ac_objext
2744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2745 (eval $ac_compile) 2>conftest.er1
2746 ac_status=$?
2747 grep -v '^ *+' conftest.er1 >conftest.err
2748 rm -f conftest.er1
2749 cat conftest.err >&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); } &&
2752 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754 (eval $ac_try) 2>&5
2755 ac_status=$?
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }; } &&
2758 { ac_try='test -s conftest.$ac_objext'
2759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760 (eval $ac_try) 2>&5
2761 ac_status=$?
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); }; }; then
2764 break
2765 else
2766 echo "$as_me: failed program was:" >&5
2767 sed 's/^/| /' conftest.$ac_ext >&5
2770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2771 done
2772 rm -f conftest*
2773 if test -n "$ac_declaration"; then
2774 echo '#ifdef __cplusplus' >>confdefs.h
2775 echo $ac_declaration >>confdefs.h
2776 echo '#endif' >>confdefs.h
2779 ac_ext=c
2780 ac_cpp='$CPP $CPPFLAGS'
2781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2785 if test -n "$ac_tool_prefix"; then
2786 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
2787 set dummy ${ac_tool_prefix}cpp; ac_word=$2
2788 echo "$as_me:$LINENO: checking for $ac_word" >&5
2789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2790 if test "${ac_cv_prog_CPPBIN+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 else
2793 if test -n "$CPPBIN"; then
2794 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
2795 else
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2799 IFS=$as_save_IFS
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2803 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
2804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 break 2
2807 done
2808 done
2812 CPPBIN=$ac_cv_prog_CPPBIN
2813 if test -n "$CPPBIN"; then
2814 echo "$as_me:$LINENO: result: $CPPBIN" >&5
2815 echo "${ECHO_T}$CPPBIN" >&6
2816 else
2817 echo "$as_me:$LINENO: result: no" >&5
2818 echo "${ECHO_T}no" >&6
2822 if test -z "$ac_cv_prog_CPPBIN"; then
2823 ac_ct_CPPBIN=$CPPBIN
2824 # Extract the first word of "cpp", so it can be a program name with args.
2825 set dummy cpp; ac_word=$2
2826 echo "$as_me:$LINENO: checking for $ac_word" >&5
2827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2828 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2830 else
2831 if test -n "$ac_ct_CPPBIN"; then
2832 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2841 ac_cv_prog_ac_ct_CPPBIN="cpp"
2842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 break 2
2845 done
2846 done
2848 test -z "$ac_cv_prog_ac_ct_CPPBIN" && ac_cv_prog_ac_ct_CPPBIN="cpp"
2851 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
2852 if test -n "$ac_ct_CPPBIN"; then
2853 echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
2854 echo "${ECHO_T}$ac_ct_CPPBIN" >&6
2855 else
2856 echo "$as_me:$LINENO: result: no" >&5
2857 echo "${ECHO_T}no" >&6
2860 CPPBIN=$ac_ct_CPPBIN
2861 else
2862 CPPBIN="$ac_cv_prog_CPPBIN"
2866 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2867 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2868 if test "${wine_cv_toolsdir+set}" = set; then
2869 echo $ECHO_N "(cached) $ECHO_C" >&6
2870 else
2871 if test -z "$with_wine_tools"; then
2872 if test "$cross_compiling" = "yes"; then
2873 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2874 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2875 { (exit 1); exit 1; }; }
2876 else
2877 wine_cv_toolsdir="\$(TOPOBJDIR)"
2879 elif test -d "$with_wine_tools/tools/winebuild"; then
2880 case $with_wine_tools in
2881 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2882 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2883 esac
2884 else
2885 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2886 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2887 { (exit 1); exit 1; }; }
2890 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2891 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2892 TOOLSDIR=$wine_cv_toolsdir
2896 ac_ext=c
2897 ac_cpp='$CPP $CPPFLAGS'
2898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2901 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2902 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2903 # On Suns, sometimes $CPP names a directory.
2904 if test -n "$CPP" && test -d "$CPP"; then
2905 CPP=
2907 if test -z "$CPP"; then
2908 if test "${ac_cv_prog_CPP+set}" = set; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2910 else
2911 # Double quotes because CPP needs to be expanded
2912 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2914 ac_preproc_ok=false
2915 for ac_c_preproc_warn_flag in '' yes
2917 # Use a header file that comes with gcc, so configuring glibc
2918 # with a fresh cross-compiler works.
2919 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2920 # <limits.h> exists even on freestanding compilers.
2921 # On the NeXT, cc -E runs the code through the compiler's parser,
2922 # not just through cpp. "Syntax error" is here to catch this case.
2923 cat >conftest.$ac_ext <<_ACEOF
2924 /* confdefs.h. */
2925 _ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h. */
2929 #ifdef __STDC__
2930 # include <limits.h>
2931 #else
2932 # include <assert.h>
2933 #endif
2934 Syntax error
2935 _ACEOF
2936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2937 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2938 ac_status=$?
2939 grep -v '^ *+' conftest.er1 >conftest.err
2940 rm -f conftest.er1
2941 cat conftest.err >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } >/dev/null; then
2944 if test -s conftest.err; then
2945 ac_cpp_err=$ac_c_preproc_warn_flag
2946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2947 else
2948 ac_cpp_err=
2950 else
2951 ac_cpp_err=yes
2953 if test -z "$ac_cpp_err"; then
2955 else
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2959 # Broken: fails on valid input.
2960 continue
2962 rm -f conftest.err conftest.$ac_ext
2964 # OK, works on sane cases. Now check whether non-existent headers
2965 # can be detected and how.
2966 cat >conftest.$ac_ext <<_ACEOF
2967 /* confdefs.h. */
2968 _ACEOF
2969 cat confdefs.h >>conftest.$ac_ext
2970 cat >>conftest.$ac_ext <<_ACEOF
2971 /* end confdefs.h. */
2972 #include <ac_nonexistent.h>
2973 _ACEOF
2974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2976 ac_status=$?
2977 grep -v '^ *+' conftest.er1 >conftest.err
2978 rm -f conftest.er1
2979 cat conftest.err >&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } >/dev/null; then
2982 if test -s conftest.err; then
2983 ac_cpp_err=$ac_c_preproc_warn_flag
2984 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2985 else
2986 ac_cpp_err=
2988 else
2989 ac_cpp_err=yes
2991 if test -z "$ac_cpp_err"; then
2992 # Broken: success on invalid input.
2993 continue
2994 else
2995 echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2998 # Passes both tests.
2999 ac_preproc_ok=:
3000 break
3002 rm -f conftest.err conftest.$ac_ext
3004 done
3005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3006 rm -f conftest.err conftest.$ac_ext
3007 if $ac_preproc_ok; then
3008 break
3011 done
3012 ac_cv_prog_CPP=$CPP
3015 CPP=$ac_cv_prog_CPP
3016 else
3017 ac_cv_prog_CPP=$CPP
3019 echo "$as_me:$LINENO: result: $CPP" >&5
3020 echo "${ECHO_T}$CPP" >&6
3021 ac_preproc_ok=false
3022 for ac_c_preproc_warn_flag in '' yes
3024 # Use a header file that comes with gcc, so configuring glibc
3025 # with a fresh cross-compiler works.
3026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3027 # <limits.h> exists even on freestanding compilers.
3028 # On the NeXT, cc -E runs the code through the compiler's parser,
3029 # not just through cpp. "Syntax error" is here to catch this case.
3030 cat >conftest.$ac_ext <<_ACEOF
3031 /* confdefs.h. */
3032 _ACEOF
3033 cat confdefs.h >>conftest.$ac_ext
3034 cat >>conftest.$ac_ext <<_ACEOF
3035 /* end confdefs.h. */
3036 #ifdef __STDC__
3037 # include <limits.h>
3038 #else
3039 # include <assert.h>
3040 #endif
3041 Syntax error
3042 _ACEOF
3043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3045 ac_status=$?
3046 grep -v '^ *+' conftest.er1 >conftest.err
3047 rm -f conftest.er1
3048 cat conftest.err >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } >/dev/null; then
3051 if test -s conftest.err; then
3052 ac_cpp_err=$ac_c_preproc_warn_flag
3053 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3054 else
3055 ac_cpp_err=
3057 else
3058 ac_cpp_err=yes
3060 if test -z "$ac_cpp_err"; then
3062 else
3063 echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3066 # Broken: fails on valid input.
3067 continue
3069 rm -f conftest.err conftest.$ac_ext
3071 # OK, works on sane cases. Now check whether non-existent headers
3072 # can be detected and how.
3073 cat >conftest.$ac_ext <<_ACEOF
3074 /* confdefs.h. */
3075 _ACEOF
3076 cat confdefs.h >>conftest.$ac_ext
3077 cat >>conftest.$ac_ext <<_ACEOF
3078 /* end confdefs.h. */
3079 #include <ac_nonexistent.h>
3080 _ACEOF
3081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3083 ac_status=$?
3084 grep -v '^ *+' conftest.er1 >conftest.err
3085 rm -f conftest.er1
3086 cat conftest.err >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); } >/dev/null; then
3089 if test -s conftest.err; then
3090 ac_cpp_err=$ac_c_preproc_warn_flag
3091 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3092 else
3093 ac_cpp_err=
3095 else
3096 ac_cpp_err=yes
3098 if test -z "$ac_cpp_err"; then
3099 # Broken: success on invalid input.
3100 continue
3101 else
3102 echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3105 # Passes both tests.
3106 ac_preproc_ok=:
3107 break
3109 rm -f conftest.err conftest.$ac_ext
3111 done
3112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3113 rm -f conftest.err conftest.$ac_ext
3114 if $ac_preproc_ok; then
3116 else
3117 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3118 See \`config.log' for more details." >&5
3119 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3120 See \`config.log' for more details." >&2;}
3121 { (exit 1); exit 1; }; }
3124 ac_ext=c
3125 ac_cpp='$CPP $CPPFLAGS'
3126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3132 if test "x$ac_path_x_has_been_run" != xyes; then
3133 echo "$as_me:$LINENO: checking for X" >&5
3134 echo $ECHO_N "checking for X... $ECHO_C" >&6
3136 ac_path_x_has_been_run=yes
3138 # Check whether --with-x or --without-x was given.
3139 if test "${with_x+set}" = set; then
3140 withval="$with_x"
3143 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3144 if test "x$with_x" = xno; then
3145 # The user explicitly disabled X.
3146 have_x=disabled
3147 else
3148 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3149 # Both variables are already set.
3150 have_x=yes
3151 else
3152 if test "${ac_cv_have_x+set}" = set; then
3153 echo $ECHO_N "(cached) $ECHO_C" >&6
3154 else
3155 # One or both of the vars are not set, and there is no cached value.
3156 ac_x_includes=no ac_x_libraries=no
3157 rm -fr conftest.dir
3158 if mkdir conftest.dir; then
3159 cd conftest.dir
3160 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3161 cat >Imakefile <<'_ACEOF'
3162 acfindx:
3163 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3164 _ACEOF
3165 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3166 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3167 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3168 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3169 for ac_extension in a so sl; do
3170 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3171 test -f $ac_im_libdir/libX11.$ac_extension; then
3172 ac_im_usrlibdir=$ac_im_libdir; break
3174 done
3175 # Screen out bogus values from the imake configuration. They are
3176 # bogus both because they are the default anyway, and because
3177 # using them would break gcc on systems where it needs fixed includes.
3178 case $ac_im_incroot in
3179 /usr/include) ;;
3180 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3181 esac
3182 case $ac_im_usrlibdir in
3183 /usr/lib | /lib) ;;
3184 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3185 esac
3187 cd ..
3188 rm -fr conftest.dir
3191 # Standard set of common directories for X headers.
3192 # Check X11 before X11Rn because it is often a symlink to the current release.
3193 ac_x_header_dirs='
3194 /usr/X11/include
3195 /usr/X11R6/include
3196 /usr/X11R5/include
3197 /usr/X11R4/include
3199 /usr/include/X11
3200 /usr/include/X11R6
3201 /usr/include/X11R5
3202 /usr/include/X11R4
3204 /usr/local/X11/include
3205 /usr/local/X11R6/include
3206 /usr/local/X11R5/include
3207 /usr/local/X11R4/include
3209 /usr/local/include/X11
3210 /usr/local/include/X11R6
3211 /usr/local/include/X11R5
3212 /usr/local/include/X11R4
3214 /usr/X386/include
3215 /usr/x386/include
3216 /usr/XFree86/include/X11
3218 /usr/include
3219 /usr/local/include
3220 /usr/unsupported/include
3221 /usr/athena/include
3222 /usr/local/x11r5/include
3223 /usr/lpp/Xamples/include
3225 /usr/openwin/include
3226 /usr/openwin/share/include'
3228 if test "$ac_x_includes" = no; then
3229 # Guess where to find include files, by looking for a specified header file.
3230 # First, try using that file with no special directory specified.
3231 cat >conftest.$ac_ext <<_ACEOF
3232 /* confdefs.h. */
3233 _ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h. */
3237 #include <X11/Intrinsic.h>
3238 _ACEOF
3239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3241 ac_status=$?
3242 grep -v '^ *+' conftest.er1 >conftest.err
3243 rm -f conftest.er1
3244 cat conftest.err >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } >/dev/null; then
3247 if test -s conftest.err; then
3248 ac_cpp_err=$ac_c_preproc_warn_flag
3249 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3250 else
3251 ac_cpp_err=
3253 else
3254 ac_cpp_err=yes
3256 if test -z "$ac_cpp_err"; then
3257 # We can compile using X headers with no special include directory.
3258 ac_x_includes=
3259 else
3260 echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3263 for ac_dir in $ac_x_header_dirs; do
3264 if test -r "$ac_dir/X11/Intrinsic.h"; then
3265 ac_x_includes=$ac_dir
3266 break
3268 done
3270 rm -f conftest.err conftest.$ac_ext
3271 fi # $ac_x_includes = no
3273 if test "$ac_x_libraries" = no; then
3274 # Check for the libraries.
3275 # See if we find them without any special options.
3276 # Don't add to $LIBS permanently.
3277 ac_save_LIBS=$LIBS
3278 LIBS="-lXt $LIBS"
3279 cat >conftest.$ac_ext <<_ACEOF
3280 /* confdefs.h. */
3281 _ACEOF
3282 cat confdefs.h >>conftest.$ac_ext
3283 cat >>conftest.$ac_ext <<_ACEOF
3284 /* end confdefs.h. */
3285 #include <X11/Intrinsic.h>
3287 main ()
3289 XtMalloc (0)
3291 return 0;
3293 _ACEOF
3294 rm -f conftest.$ac_objext conftest$ac_exeext
3295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3296 (eval $ac_link) 2>conftest.er1
3297 ac_status=$?
3298 grep -v '^ *+' conftest.er1 >conftest.err
3299 rm -f conftest.er1
3300 cat conftest.err >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); } &&
3303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3305 (eval $ac_try) 2>&5
3306 ac_status=$?
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }; } &&
3309 { ac_try='test -s conftest$ac_exeext'
3310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3311 (eval $ac_try) 2>&5
3312 ac_status=$?
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }; }; then
3315 LIBS=$ac_save_LIBS
3316 # We can link X programs with no special library path.
3317 ac_x_libraries=
3318 else
3319 echo "$as_me: failed program was:" >&5
3320 sed 's/^/| /' conftest.$ac_ext >&5
3322 LIBS=$ac_save_LIBS
3323 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3325 # Don't even attempt the hair of trying to link an X program!
3326 for ac_extension in a so sl; do
3327 if test -r $ac_dir/libXt.$ac_extension; then
3328 ac_x_libraries=$ac_dir
3329 break 2
3331 done
3332 done
3334 rm -f conftest.err conftest.$ac_objext \
3335 conftest$ac_exeext conftest.$ac_ext
3336 fi # $ac_x_libraries = no
3338 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3339 # Didn't find X anywhere. Cache the known absence of X.
3340 ac_cv_have_x="have_x=no"
3341 else
3342 # Record where we found X for the cache.
3343 ac_cv_have_x="have_x=yes \
3344 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3349 eval "$ac_cv_have_x"
3350 fi # $with_x != no
3352 if test "$have_x" != yes; then
3353 echo "$as_me:$LINENO: result: $have_x" >&5
3354 echo "${ECHO_T}$have_x" >&6
3355 no_x=yes
3356 else
3357 # If each of the values was on the command line, it overrides each guess.
3358 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3359 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3360 # Update the cache value to reflect the command line values.
3361 ac_cv_have_x="have_x=yes \
3362 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3363 # It might be that x_includes is empty (headers are found in the
3364 # standard search path. Then output the corresponding message
3365 ac_out_x_includes=$x_includes
3366 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
3367 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
3368 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
3372 if test "$no_x" = yes; then
3373 # Not all programs may use this symbol, but it does not hurt to define it.
3375 cat >>confdefs.h <<\_ACEOF
3376 #define X_DISPLAY_MISSING 1
3377 _ACEOF
3379 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3380 else
3381 if test -n "$x_includes"; then
3382 X_CFLAGS="$X_CFLAGS -I$x_includes"
3385 # It would also be nice to do this for all -L options, not just this one.
3386 if test -n "$x_libraries"; then
3387 X_LIBS="$X_LIBS -L$x_libraries"
3388 # For Solaris; some versions of Sun CC require a space after -R and
3389 # others require no space. Words are not sufficient . . . .
3390 case `(uname -sr) 2>/dev/null` in
3391 "SunOS 5"*)
3392 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3393 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3394 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3395 cat >conftest.$ac_ext <<_ACEOF
3396 /* confdefs.h. */
3397 _ACEOF
3398 cat confdefs.h >>conftest.$ac_ext
3399 cat >>conftest.$ac_ext <<_ACEOF
3400 /* end confdefs.h. */
3403 main ()
3407 return 0;
3409 _ACEOF
3410 rm -f conftest.$ac_objext conftest$ac_exeext
3411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3412 (eval $ac_link) 2>conftest.er1
3413 ac_status=$?
3414 grep -v '^ *+' conftest.er1 >conftest.err
3415 rm -f conftest.er1
3416 cat conftest.err >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } &&
3419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421 (eval $ac_try) 2>&5
3422 ac_status=$?
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; } &&
3425 { ac_try='test -s conftest$ac_exeext'
3426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427 (eval $ac_try) 2>&5
3428 ac_status=$?
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); }; }; then
3431 ac_R_nospace=yes
3432 else
3433 echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3436 ac_R_nospace=no
3438 rm -f conftest.err conftest.$ac_objext \
3439 conftest$ac_exeext conftest.$ac_ext
3440 if test $ac_R_nospace = yes; then
3441 echo "$as_me:$LINENO: result: no" >&5
3442 echo "${ECHO_T}no" >&6
3443 X_LIBS="$X_LIBS -R$x_libraries"
3444 else
3445 LIBS="$ac_xsave_LIBS -R $x_libraries"
3446 cat >conftest.$ac_ext <<_ACEOF
3447 /* confdefs.h. */
3448 _ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h. */
3454 main ()
3458 return 0;
3460 _ACEOF
3461 rm -f conftest.$ac_objext conftest$ac_exeext
3462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3463 (eval $ac_link) 2>conftest.er1
3464 ac_status=$?
3465 grep -v '^ *+' conftest.er1 >conftest.err
3466 rm -f conftest.er1
3467 cat conftest.err >&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); } &&
3470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472 (eval $ac_try) 2>&5
3473 ac_status=$?
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); }; } &&
3476 { ac_try='test -s conftest$ac_exeext'
3477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478 (eval $ac_try) 2>&5
3479 ac_status=$?
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); }; }; then
3482 ac_R_space=yes
3483 else
3484 echo "$as_me: failed program was:" >&5
3485 sed 's/^/| /' conftest.$ac_ext >&5
3487 ac_R_space=no
3489 rm -f conftest.err conftest.$ac_objext \
3490 conftest$ac_exeext conftest.$ac_ext
3491 if test $ac_R_space = yes; then
3492 echo "$as_me:$LINENO: result: yes" >&5
3493 echo "${ECHO_T}yes" >&6
3494 X_LIBS="$X_LIBS -R $x_libraries"
3495 else
3496 echo "$as_me:$LINENO: result: neither works" >&5
3497 echo "${ECHO_T}neither works" >&6
3500 LIBS=$ac_xsave_LIBS
3501 esac
3504 # Check for system-dependent libraries X programs must link with.
3505 # Do this before checking for the system-independent R6 libraries
3506 # (-lICE), since we may need -lsocket or whatever for X linking.
3508 if test "$ISC" = yes; then
3509 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3510 else
3511 # Martyn Johnson says this is needed for Ultrix, if the X
3512 # libraries were built with DECnet support. And Karl Berry says
3513 # the Alpha needs dnet_stub (dnet does not exist).
3514 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3515 cat >conftest.$ac_ext <<_ACEOF
3516 /* confdefs.h. */
3517 _ACEOF
3518 cat confdefs.h >>conftest.$ac_ext
3519 cat >>conftest.$ac_ext <<_ACEOF
3520 /* end confdefs.h. */
3522 /* Override any gcc2 internal prototype to avoid an error. */
3523 #ifdef __cplusplus
3524 extern "C"
3525 #endif
3526 /* We use char because int might match the return type of a gcc2
3527 builtin and then its argument prototype would still apply. */
3528 char XOpenDisplay ();
3530 main ()
3532 XOpenDisplay ();
3534 return 0;
3536 _ACEOF
3537 rm -f conftest.$ac_objext conftest$ac_exeext
3538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3539 (eval $ac_link) 2>conftest.er1
3540 ac_status=$?
3541 grep -v '^ *+' conftest.er1 >conftest.err
3542 rm -f conftest.er1
3543 cat conftest.err >&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } &&
3546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548 (eval $ac_try) 2>&5
3549 ac_status=$?
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; } &&
3552 { ac_try='test -s conftest$ac_exeext'
3553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554 (eval $ac_try) 2>&5
3555 ac_status=$?
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); }; }; then
3559 else
3560 echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3563 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3564 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3565 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3566 echo $ECHO_N "(cached) $ECHO_C" >&6
3567 else
3568 ac_check_lib_save_LIBS=$LIBS
3569 LIBS="-ldnet $LIBS"
3570 cat >conftest.$ac_ext <<_ACEOF
3571 /* confdefs.h. */
3572 _ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h. */
3577 /* Override any gcc2 internal prototype to avoid an error. */
3578 #ifdef __cplusplus
3579 extern "C"
3580 #endif
3581 /* We use char because int might match the return type of a gcc2
3582 builtin and then its argument prototype would still apply. */
3583 char dnet_ntoa ();
3585 main ()
3587 dnet_ntoa ();
3589 return 0;
3591 _ACEOF
3592 rm -f conftest.$ac_objext conftest$ac_exeext
3593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3594 (eval $ac_link) 2>conftest.er1
3595 ac_status=$?
3596 grep -v '^ *+' conftest.er1 >conftest.err
3597 rm -f conftest.er1
3598 cat conftest.err >&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); } &&
3601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3603 (eval $ac_try) 2>&5
3604 ac_status=$?
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); }; } &&
3607 { ac_try='test -s conftest$ac_exeext'
3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 (eval $ac_try) 2>&5
3610 ac_status=$?
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; }; then
3613 ac_cv_lib_dnet_dnet_ntoa=yes
3614 else
3615 echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3618 ac_cv_lib_dnet_dnet_ntoa=no
3620 rm -f conftest.err conftest.$ac_objext \
3621 conftest$ac_exeext conftest.$ac_ext
3622 LIBS=$ac_check_lib_save_LIBS
3624 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3625 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3626 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3627 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3630 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3631 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3632 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3633 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3634 echo $ECHO_N "(cached) $ECHO_C" >&6
3635 else
3636 ac_check_lib_save_LIBS=$LIBS
3637 LIBS="-ldnet_stub $LIBS"
3638 cat >conftest.$ac_ext <<_ACEOF
3639 /* confdefs.h. */
3640 _ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3645 /* Override any gcc2 internal prototype to avoid an error. */
3646 #ifdef __cplusplus
3647 extern "C"
3648 #endif
3649 /* We use char because int might match the return type of a gcc2
3650 builtin and then its argument prototype would still apply. */
3651 char dnet_ntoa ();
3653 main ()
3655 dnet_ntoa ();
3657 return 0;
3659 _ACEOF
3660 rm -f conftest.$ac_objext conftest$ac_exeext
3661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3662 (eval $ac_link) 2>conftest.er1
3663 ac_status=$?
3664 grep -v '^ *+' conftest.er1 >conftest.err
3665 rm -f conftest.er1
3666 cat conftest.err >&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } &&
3669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671 (eval $ac_try) 2>&5
3672 ac_status=$?
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; } &&
3675 { ac_try='test -s conftest$ac_exeext'
3676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677 (eval $ac_try) 2>&5
3678 ac_status=$?
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); }; }; then
3681 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3682 else
3683 echo "$as_me: failed program was:" >&5
3684 sed 's/^/| /' conftest.$ac_ext >&5
3686 ac_cv_lib_dnet_stub_dnet_ntoa=no
3688 rm -f conftest.err conftest.$ac_objext \
3689 conftest$ac_exeext conftest.$ac_ext
3690 LIBS=$ac_check_lib_save_LIBS
3692 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3693 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3694 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3695 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3700 rm -f conftest.err conftest.$ac_objext \
3701 conftest$ac_exeext conftest.$ac_ext
3702 LIBS="$ac_xsave_LIBS"
3704 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3705 # to get the SysV transport functions.
3706 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3707 # needs -lnsl.
3708 # The nsl library prevents programs from opening the X display
3709 # on Irix 5.2, according to T.E. Dickey.
3710 # The functions gethostbyname, getservbyname, and inet_addr are
3711 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3712 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3713 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3714 if test "${ac_cv_func_gethostbyname+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3716 else
3717 cat >conftest.$ac_ext <<_ACEOF
3718 /* confdefs.h. */
3719 _ACEOF
3720 cat confdefs.h >>conftest.$ac_ext
3721 cat >>conftest.$ac_ext <<_ACEOF
3722 /* end confdefs.h. */
3723 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3725 #define gethostbyname innocuous_gethostbyname
3727 /* System header to define __stub macros and hopefully few prototypes,
3728 which can conflict with char gethostbyname (); below.
3729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3730 <limits.h> exists even on freestanding compilers. */
3732 #ifdef __STDC__
3733 # include <limits.h>
3734 #else
3735 # include <assert.h>
3736 #endif
3738 #undef gethostbyname
3740 /* Override any gcc2 internal prototype to avoid an error. */
3741 #ifdef __cplusplus
3742 extern "C"
3744 #endif
3745 /* We use char because int might match the return type of a gcc2
3746 builtin and then its argument prototype would still apply. */
3747 char gethostbyname ();
3748 /* The GNU C library defines this for functions which it implements
3749 to always fail with ENOSYS. Some functions are actually named
3750 something starting with __ and the normal name is an alias. */
3751 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3752 choke me
3753 #else
3754 char (*f) () = gethostbyname;
3755 #endif
3756 #ifdef __cplusplus
3758 #endif
3761 main ()
3763 return f != gethostbyname;
3765 return 0;
3767 _ACEOF
3768 rm -f conftest.$ac_objext conftest$ac_exeext
3769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3770 (eval $ac_link) 2>conftest.er1
3771 ac_status=$?
3772 grep -v '^ *+' conftest.er1 >conftest.err
3773 rm -f conftest.er1
3774 cat conftest.err >&5
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); } &&
3777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779 (eval $ac_try) 2>&5
3780 ac_status=$?
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); }; } &&
3783 { ac_try='test -s conftest$ac_exeext'
3784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785 (eval $ac_try) 2>&5
3786 ac_status=$?
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); }; }; then
3789 ac_cv_func_gethostbyname=yes
3790 else
3791 echo "$as_me: failed program was:" >&5
3792 sed 's/^/| /' conftest.$ac_ext >&5
3794 ac_cv_func_gethostbyname=no
3796 rm -f conftest.err conftest.$ac_objext \
3797 conftest$ac_exeext conftest.$ac_ext
3799 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3800 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3802 if test $ac_cv_func_gethostbyname = no; then
3803 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3804 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3805 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 else
3808 ac_check_lib_save_LIBS=$LIBS
3809 LIBS="-lnsl $LIBS"
3810 cat >conftest.$ac_ext <<_ACEOF
3811 /* confdefs.h. */
3812 _ACEOF
3813 cat confdefs.h >>conftest.$ac_ext
3814 cat >>conftest.$ac_ext <<_ACEOF
3815 /* end confdefs.h. */
3817 /* Override any gcc2 internal prototype to avoid an error. */
3818 #ifdef __cplusplus
3819 extern "C"
3820 #endif
3821 /* We use char because int might match the return type of a gcc2
3822 builtin and then its argument prototype would still apply. */
3823 char gethostbyname ();
3825 main ()
3827 gethostbyname ();
3829 return 0;
3831 _ACEOF
3832 rm -f conftest.$ac_objext conftest$ac_exeext
3833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3834 (eval $ac_link) 2>conftest.er1
3835 ac_status=$?
3836 grep -v '^ *+' conftest.er1 >conftest.err
3837 rm -f conftest.er1
3838 cat conftest.err >&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } &&
3841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843 (eval $ac_try) 2>&5
3844 ac_status=$?
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); }; } &&
3847 { ac_try='test -s conftest$ac_exeext'
3848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3849 (eval $ac_try) 2>&5
3850 ac_status=$?
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); }; }; then
3853 ac_cv_lib_nsl_gethostbyname=yes
3854 else
3855 echo "$as_me: failed program was:" >&5
3856 sed 's/^/| /' conftest.$ac_ext >&5
3858 ac_cv_lib_nsl_gethostbyname=no
3860 rm -f conftest.err conftest.$ac_objext \
3861 conftest$ac_exeext conftest.$ac_ext
3862 LIBS=$ac_check_lib_save_LIBS
3864 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3865 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3866 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3867 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3870 if test $ac_cv_lib_nsl_gethostbyname = no; then
3871 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3872 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3873 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3875 else
3876 ac_check_lib_save_LIBS=$LIBS
3877 LIBS="-lbsd $LIBS"
3878 cat >conftest.$ac_ext <<_ACEOF
3879 /* confdefs.h. */
3880 _ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h. */
3885 /* Override any gcc2 internal prototype to avoid an error. */
3886 #ifdef __cplusplus
3887 extern "C"
3888 #endif
3889 /* We use char because int might match the return type of a gcc2
3890 builtin and then its argument prototype would still apply. */
3891 char gethostbyname ();
3893 main ()
3895 gethostbyname ();
3897 return 0;
3899 _ACEOF
3900 rm -f conftest.$ac_objext conftest$ac_exeext
3901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3902 (eval $ac_link) 2>conftest.er1
3903 ac_status=$?
3904 grep -v '^ *+' conftest.er1 >conftest.err
3905 rm -f conftest.er1
3906 cat conftest.err >&5
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); } &&
3909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3911 (eval $ac_try) 2>&5
3912 ac_status=$?
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); }; } &&
3915 { ac_try='test -s conftest$ac_exeext'
3916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917 (eval $ac_try) 2>&5
3918 ac_status=$?
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); }; }; then
3921 ac_cv_lib_bsd_gethostbyname=yes
3922 else
3923 echo "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3926 ac_cv_lib_bsd_gethostbyname=no
3928 rm -f conftest.err conftest.$ac_objext \
3929 conftest$ac_exeext conftest.$ac_ext
3930 LIBS=$ac_check_lib_save_LIBS
3932 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3933 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3934 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3935 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3941 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3942 # socket/setsockopt and other routines are undefined under SCO ODT
3943 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3944 # on later versions), says Simon Leinen: it contains gethostby*
3945 # variants that don't use the name server (or something). -lsocket
3946 # must be given before -lnsl if both are needed. We assume that
3947 # if connect needs -lnsl, so does gethostbyname.
3948 echo "$as_me:$LINENO: checking for connect" >&5
3949 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3950 if test "${ac_cv_func_connect+set}" = set; then
3951 echo $ECHO_N "(cached) $ECHO_C" >&6
3952 else
3953 cat >conftest.$ac_ext <<_ACEOF
3954 /* confdefs.h. */
3955 _ACEOF
3956 cat confdefs.h >>conftest.$ac_ext
3957 cat >>conftest.$ac_ext <<_ACEOF
3958 /* end confdefs.h. */
3959 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
3960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3961 #define connect innocuous_connect
3963 /* System header to define __stub macros and hopefully few prototypes,
3964 which can conflict with char connect (); below.
3965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3966 <limits.h> exists even on freestanding compilers. */
3968 #ifdef __STDC__
3969 # include <limits.h>
3970 #else
3971 # include <assert.h>
3972 #endif
3974 #undef connect
3976 /* Override any gcc2 internal prototype to avoid an error. */
3977 #ifdef __cplusplus
3978 extern "C"
3980 #endif
3981 /* We use char because int might match the return type of a gcc2
3982 builtin and then its argument prototype would still apply. */
3983 char connect ();
3984 /* The GNU C library defines this for functions which it implements
3985 to always fail with ENOSYS. Some functions are actually named
3986 something starting with __ and the normal name is an alias. */
3987 #if defined (__stub_connect) || defined (__stub___connect)
3988 choke me
3989 #else
3990 char (*f) () = connect;
3991 #endif
3992 #ifdef __cplusplus
3994 #endif
3997 main ()
3999 return f != connect;
4001 return 0;
4003 _ACEOF
4004 rm -f conftest.$ac_objext conftest$ac_exeext
4005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4006 (eval $ac_link) 2>conftest.er1
4007 ac_status=$?
4008 grep -v '^ *+' conftest.er1 >conftest.err
4009 rm -f conftest.er1
4010 cat conftest.err >&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } &&
4013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015 (eval $ac_try) 2>&5
4016 ac_status=$?
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }; } &&
4019 { ac_try='test -s conftest$ac_exeext'
4020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021 (eval $ac_try) 2>&5
4022 ac_status=$?
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); }; }; then
4025 ac_cv_func_connect=yes
4026 else
4027 echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4030 ac_cv_func_connect=no
4032 rm -f conftest.err conftest.$ac_objext \
4033 conftest$ac_exeext conftest.$ac_ext
4035 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4036 echo "${ECHO_T}$ac_cv_func_connect" >&6
4038 if test $ac_cv_func_connect = no; then
4039 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4040 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4041 if test "${ac_cv_lib_socket_connect+set}" = set; then
4042 echo $ECHO_N "(cached) $ECHO_C" >&6
4043 else
4044 ac_check_lib_save_LIBS=$LIBS
4045 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4046 cat >conftest.$ac_ext <<_ACEOF
4047 /* confdefs.h. */
4048 _ACEOF
4049 cat confdefs.h >>conftest.$ac_ext
4050 cat >>conftest.$ac_ext <<_ACEOF
4051 /* end confdefs.h. */
4053 /* Override any gcc2 internal prototype to avoid an error. */
4054 #ifdef __cplusplus
4055 extern "C"
4056 #endif
4057 /* We use char because int might match the return type of a gcc2
4058 builtin and then its argument prototype would still apply. */
4059 char connect ();
4061 main ()
4063 connect ();
4065 return 0;
4067 _ACEOF
4068 rm -f conftest.$ac_objext conftest$ac_exeext
4069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4070 (eval $ac_link) 2>conftest.er1
4071 ac_status=$?
4072 grep -v '^ *+' conftest.er1 >conftest.err
4073 rm -f conftest.er1
4074 cat conftest.err >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } &&
4077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079 (eval $ac_try) 2>&5
4080 ac_status=$?
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; } &&
4083 { ac_try='test -s conftest$ac_exeext'
4084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085 (eval $ac_try) 2>&5
4086 ac_status=$?
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; }; then
4089 ac_cv_lib_socket_connect=yes
4090 else
4091 echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4094 ac_cv_lib_socket_connect=no
4096 rm -f conftest.err conftest.$ac_objext \
4097 conftest$ac_exeext conftest.$ac_ext
4098 LIBS=$ac_check_lib_save_LIBS
4100 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4101 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4102 if test $ac_cv_lib_socket_connect = yes; then
4103 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4108 # Guillermo Gomez says -lposix is necessary on A/UX.
4109 echo "$as_me:$LINENO: checking for remove" >&5
4110 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4111 if test "${ac_cv_func_remove+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4113 else
4114 cat >conftest.$ac_ext <<_ACEOF
4115 /* confdefs.h. */
4116 _ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h. */
4120 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4122 #define remove innocuous_remove
4124 /* System header to define __stub macros and hopefully few prototypes,
4125 which can conflict with char remove (); below.
4126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4127 <limits.h> exists even on freestanding compilers. */
4129 #ifdef __STDC__
4130 # include <limits.h>
4131 #else
4132 # include <assert.h>
4133 #endif
4135 #undef remove
4137 /* Override any gcc2 internal prototype to avoid an error. */
4138 #ifdef __cplusplus
4139 extern "C"
4141 #endif
4142 /* We use char because int might match the return type of a gcc2
4143 builtin and then its argument prototype would still apply. */
4144 char remove ();
4145 /* The GNU C library defines this for functions which it implements
4146 to always fail with ENOSYS. Some functions are actually named
4147 something starting with __ and the normal name is an alias. */
4148 #if defined (__stub_remove) || defined (__stub___remove)
4149 choke me
4150 #else
4151 char (*f) () = remove;
4152 #endif
4153 #ifdef __cplusplus
4155 #endif
4158 main ()
4160 return f != remove;
4162 return 0;
4164 _ACEOF
4165 rm -f conftest.$ac_objext conftest$ac_exeext
4166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4167 (eval $ac_link) 2>conftest.er1
4168 ac_status=$?
4169 grep -v '^ *+' conftest.er1 >conftest.err
4170 rm -f conftest.er1
4171 cat conftest.err >&5
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); } &&
4174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176 (eval $ac_try) 2>&5
4177 ac_status=$?
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); }; } &&
4180 { ac_try='test -s conftest$ac_exeext'
4181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182 (eval $ac_try) 2>&5
4183 ac_status=$?
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); }; }; then
4186 ac_cv_func_remove=yes
4187 else
4188 echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4191 ac_cv_func_remove=no
4193 rm -f conftest.err conftest.$ac_objext \
4194 conftest$ac_exeext conftest.$ac_ext
4196 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4197 echo "${ECHO_T}$ac_cv_func_remove" >&6
4199 if test $ac_cv_func_remove = no; then
4200 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4201 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4202 if test "${ac_cv_lib_posix_remove+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205 ac_check_lib_save_LIBS=$LIBS
4206 LIBS="-lposix $LIBS"
4207 cat >conftest.$ac_ext <<_ACEOF
4208 /* confdefs.h. */
4209 _ACEOF
4210 cat confdefs.h >>conftest.$ac_ext
4211 cat >>conftest.$ac_ext <<_ACEOF
4212 /* end confdefs.h. */
4214 /* Override any gcc2 internal prototype to avoid an error. */
4215 #ifdef __cplusplus
4216 extern "C"
4217 #endif
4218 /* We use char because int might match the return type of a gcc2
4219 builtin and then its argument prototype would still apply. */
4220 char remove ();
4222 main ()
4224 remove ();
4226 return 0;
4228 _ACEOF
4229 rm -f conftest.$ac_objext conftest$ac_exeext
4230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4231 (eval $ac_link) 2>conftest.er1
4232 ac_status=$?
4233 grep -v '^ *+' conftest.er1 >conftest.err
4234 rm -f conftest.er1
4235 cat conftest.err >&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); } &&
4238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4240 (eval $ac_try) 2>&5
4241 ac_status=$?
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; } &&
4244 { ac_try='test -s conftest$ac_exeext'
4245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4246 (eval $ac_try) 2>&5
4247 ac_status=$?
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); }; }; then
4250 ac_cv_lib_posix_remove=yes
4251 else
4252 echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4255 ac_cv_lib_posix_remove=no
4257 rm -f conftest.err conftest.$ac_objext \
4258 conftest$ac_exeext conftest.$ac_ext
4259 LIBS=$ac_check_lib_save_LIBS
4261 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4262 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4263 if test $ac_cv_lib_posix_remove = yes; then
4264 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4269 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4270 echo "$as_me:$LINENO: checking for shmat" >&5
4271 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4272 if test "${ac_cv_func_shmat+set}" = set; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 else
4275 cat >conftest.$ac_ext <<_ACEOF
4276 /* confdefs.h. */
4277 _ACEOF
4278 cat confdefs.h >>conftest.$ac_ext
4279 cat >>conftest.$ac_ext <<_ACEOF
4280 /* end confdefs.h. */
4281 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4283 #define shmat innocuous_shmat
4285 /* System header to define __stub macros and hopefully few prototypes,
4286 which can conflict with char shmat (); below.
4287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4288 <limits.h> exists even on freestanding compilers. */
4290 #ifdef __STDC__
4291 # include <limits.h>
4292 #else
4293 # include <assert.h>
4294 #endif
4296 #undef shmat
4298 /* Override any gcc2 internal prototype to avoid an error. */
4299 #ifdef __cplusplus
4300 extern "C"
4302 #endif
4303 /* We use char because int might match the return type of a gcc2
4304 builtin and then its argument prototype would still apply. */
4305 char shmat ();
4306 /* The GNU C library defines this for functions which it implements
4307 to always fail with ENOSYS. Some functions are actually named
4308 something starting with __ and the normal name is an alias. */
4309 #if defined (__stub_shmat) || defined (__stub___shmat)
4310 choke me
4311 #else
4312 char (*f) () = shmat;
4313 #endif
4314 #ifdef __cplusplus
4316 #endif
4319 main ()
4321 return f != shmat;
4323 return 0;
4325 _ACEOF
4326 rm -f conftest.$ac_objext conftest$ac_exeext
4327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4328 (eval $ac_link) 2>conftest.er1
4329 ac_status=$?
4330 grep -v '^ *+' conftest.er1 >conftest.err
4331 rm -f conftest.er1
4332 cat conftest.err >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } &&
4335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337 (eval $ac_try) 2>&5
4338 ac_status=$?
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; } &&
4341 { ac_try='test -s conftest$ac_exeext'
4342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343 (eval $ac_try) 2>&5
4344 ac_status=$?
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
4347 ac_cv_func_shmat=yes
4348 else
4349 echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4352 ac_cv_func_shmat=no
4354 rm -f conftest.err conftest.$ac_objext \
4355 conftest$ac_exeext conftest.$ac_ext
4357 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4358 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4360 if test $ac_cv_func_shmat = no; then
4361 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4362 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4363 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4365 else
4366 ac_check_lib_save_LIBS=$LIBS
4367 LIBS="-lipc $LIBS"
4368 cat >conftest.$ac_ext <<_ACEOF
4369 /* confdefs.h. */
4370 _ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h. */
4375 /* Override any gcc2 internal prototype to avoid an error. */
4376 #ifdef __cplusplus
4377 extern "C"
4378 #endif
4379 /* We use char because int might match the return type of a gcc2
4380 builtin and then its argument prototype would still apply. */
4381 char shmat ();
4383 main ()
4385 shmat ();
4387 return 0;
4389 _ACEOF
4390 rm -f conftest.$ac_objext conftest$ac_exeext
4391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4392 (eval $ac_link) 2>conftest.er1
4393 ac_status=$?
4394 grep -v '^ *+' conftest.er1 >conftest.err
4395 rm -f conftest.er1
4396 cat conftest.err >&5
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); } &&
4399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4401 (eval $ac_try) 2>&5
4402 ac_status=$?
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); }; } &&
4405 { ac_try='test -s conftest$ac_exeext'
4406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4407 (eval $ac_try) 2>&5
4408 ac_status=$?
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); }; }; then
4411 ac_cv_lib_ipc_shmat=yes
4412 else
4413 echo "$as_me: failed program was:" >&5
4414 sed 's/^/| /' conftest.$ac_ext >&5
4416 ac_cv_lib_ipc_shmat=no
4418 rm -f conftest.err conftest.$ac_objext \
4419 conftest$ac_exeext conftest.$ac_ext
4420 LIBS=$ac_check_lib_save_LIBS
4422 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4423 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4424 if test $ac_cv_lib_ipc_shmat = yes; then
4425 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4431 # Check for libraries that X11R6 Xt/Xaw programs need.
4432 ac_save_LDFLAGS=$LDFLAGS
4433 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4434 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4435 # check for ICE first), but we must link in the order -lSM -lICE or
4436 # we get undefined symbols. So assume we have SM if we have ICE.
4437 # These have to be linked with before -lX11, unlike the other
4438 # libraries we check for below, so use a different variable.
4439 # John Interrante, Karl Berry
4440 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4441 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4442 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 else
4445 ac_check_lib_save_LIBS=$LIBS
4446 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4447 cat >conftest.$ac_ext <<_ACEOF
4448 /* confdefs.h. */
4449 _ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h. */
4454 /* Override any gcc2 internal prototype to avoid an error. */
4455 #ifdef __cplusplus
4456 extern "C"
4457 #endif
4458 /* We use char because int might match the return type of a gcc2
4459 builtin and then its argument prototype would still apply. */
4460 char IceConnectionNumber ();
4462 main ()
4464 IceConnectionNumber ();
4466 return 0;
4468 _ACEOF
4469 rm -f conftest.$ac_objext conftest$ac_exeext
4470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4471 (eval $ac_link) 2>conftest.er1
4472 ac_status=$?
4473 grep -v '^ *+' conftest.er1 >conftest.err
4474 rm -f conftest.er1
4475 cat conftest.err >&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); } &&
4478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480 (eval $ac_try) 2>&5
4481 ac_status=$?
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; } &&
4484 { ac_try='test -s conftest$ac_exeext'
4485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4486 (eval $ac_try) 2>&5
4487 ac_status=$?
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); }; }; then
4490 ac_cv_lib_ICE_IceConnectionNumber=yes
4491 else
4492 echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4495 ac_cv_lib_ICE_IceConnectionNumber=no
4497 rm -f conftest.err conftest.$ac_objext \
4498 conftest$ac_exeext conftest.$ac_ext
4499 LIBS=$ac_check_lib_save_LIBS
4501 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4502 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4503 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4504 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4507 LDFLAGS=$ac_save_LDFLAGS
4511 for ac_prog in flex lex
4513 # Extract the first word of "$ac_prog", so it can be a program name with args.
4514 set dummy $ac_prog; ac_word=$2
4515 echo "$as_me:$LINENO: checking for $ac_word" >&5
4516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4517 if test "${ac_cv_prog_LEX+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 else
4520 if test -n "$LEX"; then
4521 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4522 else
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 for as_dir in $PATH
4526 IFS=$as_save_IFS
4527 test -z "$as_dir" && as_dir=.
4528 for ac_exec_ext in '' $ac_executable_extensions; do
4529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4530 ac_cv_prog_LEX="$ac_prog"
4531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4532 break 2
4534 done
4535 done
4539 LEX=$ac_cv_prog_LEX
4540 if test -n "$LEX"; then
4541 echo "$as_me:$LINENO: result: $LEX" >&5
4542 echo "${ECHO_T}$LEX" >&6
4543 else
4544 echo "$as_me:$LINENO: result: no" >&5
4545 echo "${ECHO_T}no" >&6
4548 test -n "$LEX" && break
4549 done
4550 test -n "$LEX" || LEX=":"
4552 if test -z "$LEXLIB"
4553 then
4554 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4555 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4556 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559 ac_check_lib_save_LIBS=$LIBS
4560 LIBS="-lfl $LIBS"
4561 cat >conftest.$ac_ext <<_ACEOF
4562 /* confdefs.h. */
4563 _ACEOF
4564 cat confdefs.h >>conftest.$ac_ext
4565 cat >>conftest.$ac_ext <<_ACEOF
4566 /* end confdefs.h. */
4568 /* Override any gcc2 internal prototype to avoid an error. */
4569 #ifdef __cplusplus
4570 extern "C"
4571 #endif
4572 /* We use char because int might match the return type of a gcc2
4573 builtin and then its argument prototype would still apply. */
4574 char yywrap ();
4576 main ()
4578 yywrap ();
4580 return 0;
4582 _ACEOF
4583 rm -f conftest.$ac_objext conftest$ac_exeext
4584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4585 (eval $ac_link) 2>conftest.er1
4586 ac_status=$?
4587 grep -v '^ *+' conftest.er1 >conftest.err
4588 rm -f conftest.er1
4589 cat conftest.err >&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); } &&
4592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4594 (eval $ac_try) 2>&5
4595 ac_status=$?
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); }; } &&
4598 { ac_try='test -s conftest$ac_exeext'
4599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600 (eval $ac_try) 2>&5
4601 ac_status=$?
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; }; then
4604 ac_cv_lib_fl_yywrap=yes
4605 else
4606 echo "$as_me: failed program was:" >&5
4607 sed 's/^/| /' conftest.$ac_ext >&5
4609 ac_cv_lib_fl_yywrap=no
4611 rm -f conftest.err conftest.$ac_objext \
4612 conftest$ac_exeext conftest.$ac_ext
4613 LIBS=$ac_check_lib_save_LIBS
4615 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4616 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4617 if test $ac_cv_lib_fl_yywrap = yes; then
4618 LEXLIB="-lfl"
4619 else
4620 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4621 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4622 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625 ac_check_lib_save_LIBS=$LIBS
4626 LIBS="-ll $LIBS"
4627 cat >conftest.$ac_ext <<_ACEOF
4628 /* confdefs.h. */
4629 _ACEOF
4630 cat confdefs.h >>conftest.$ac_ext
4631 cat >>conftest.$ac_ext <<_ACEOF
4632 /* end confdefs.h. */
4634 /* Override any gcc2 internal prototype to avoid an error. */
4635 #ifdef __cplusplus
4636 extern "C"
4637 #endif
4638 /* We use char because int might match the return type of a gcc2
4639 builtin and then its argument prototype would still apply. */
4640 char yywrap ();
4642 main ()
4644 yywrap ();
4646 return 0;
4648 _ACEOF
4649 rm -f conftest.$ac_objext conftest$ac_exeext
4650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4651 (eval $ac_link) 2>conftest.er1
4652 ac_status=$?
4653 grep -v '^ *+' conftest.er1 >conftest.err
4654 rm -f conftest.er1
4655 cat conftest.err >&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); } &&
4658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
4664 { ac_try='test -s conftest$ac_exeext'
4665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666 (eval $ac_try) 2>&5
4667 ac_status=$?
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); }; }; then
4670 ac_cv_lib_l_yywrap=yes
4671 else
4672 echo "$as_me: failed program was:" >&5
4673 sed 's/^/| /' conftest.$ac_ext >&5
4675 ac_cv_lib_l_yywrap=no
4677 rm -f conftest.err conftest.$ac_objext \
4678 conftest$ac_exeext conftest.$ac_ext
4679 LIBS=$ac_check_lib_save_LIBS
4681 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4682 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4683 if test $ac_cv_lib_l_yywrap = yes; then
4684 LEXLIB="-ll"
4691 if test "x$LEX" != "x:"; then
4692 echo "$as_me:$LINENO: checking lex output file root" >&5
4693 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4694 if test "${ac_cv_prog_lex_root+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4696 else
4697 # The minimal lex program is just a single line: %%. But some broken lexes
4698 # (Solaris, I think it was) want two %% lines, so accommodate them.
4699 cat >conftest.l <<_ACEOF
4702 _ACEOF
4703 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4704 (eval $LEX conftest.l) 2>&5
4705 ac_status=$?
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }
4708 if test -f lex.yy.c; then
4709 ac_cv_prog_lex_root=lex.yy
4710 elif test -f lexyy.c; then
4711 ac_cv_prog_lex_root=lexyy
4712 else
4713 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4714 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4715 { (exit 1); exit 1; }; }
4718 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4719 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4720 rm -f conftest.l
4721 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4723 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4724 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4725 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4726 echo $ECHO_N "(cached) $ECHO_C" >&6
4727 else
4728 # POSIX says lex can declare yytext either as a pointer or an array; the
4729 # default is implementation-dependent. Figure out which it is, since
4730 # not all implementations provide the %pointer and %array declarations.
4731 ac_cv_prog_lex_yytext_pointer=no
4732 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4733 ac_save_LIBS=$LIBS
4734 LIBS="$LIBS $LEXLIB"
4735 cat >conftest.$ac_ext <<_ACEOF
4736 `cat $LEX_OUTPUT_ROOT.c`
4737 _ACEOF
4738 rm -f conftest.$ac_objext conftest$ac_exeext
4739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4740 (eval $ac_link) 2>conftest.er1
4741 ac_status=$?
4742 grep -v '^ *+' conftest.er1 >conftest.err
4743 rm -f conftest.er1
4744 cat conftest.err >&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); } &&
4747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4749 (eval $ac_try) 2>&5
4750 ac_status=$?
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }; } &&
4753 { ac_try='test -s conftest$ac_exeext'
4754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755 (eval $ac_try) 2>&5
4756 ac_status=$?
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; }; then
4759 ac_cv_prog_lex_yytext_pointer=yes
4760 else
4761 echo "$as_me: failed program was:" >&5
4762 sed 's/^/| /' conftest.$ac_ext >&5
4765 rm -f conftest.err conftest.$ac_objext \
4766 conftest$ac_exeext conftest.$ac_ext
4767 LIBS=$ac_save_LIBS
4768 rm -f "${LEX_OUTPUT_ROOT}.c"
4771 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4772 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4773 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4775 cat >>confdefs.h <<\_ACEOF
4776 #define YYTEXT_POINTER 1
4777 _ACEOF
4783 for ac_prog in $LEX flex lex
4785 # Extract the first word of "$ac_prog", so it can be a program name with args.
4786 set dummy $ac_prog; ac_word=$2
4787 echo "$as_me:$LINENO: checking for $ac_word" >&5
4788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4789 if test "${ac_cv_prog_XLEX+set}" = set; then
4790 echo $ECHO_N "(cached) $ECHO_C" >&6
4791 else
4792 if test -n "$XLEX"; then
4793 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4794 else
4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 for as_dir in $PATH
4798 IFS=$as_save_IFS
4799 test -z "$as_dir" && as_dir=.
4800 for ac_exec_ext in '' $ac_executable_extensions; do
4801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4802 ac_cv_prog_XLEX="$ac_prog"
4803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4804 break 2
4806 done
4807 done
4811 XLEX=$ac_cv_prog_XLEX
4812 if test -n "$XLEX"; then
4813 echo "$as_me:$LINENO: result: $XLEX" >&5
4814 echo "${ECHO_T}$XLEX" >&6
4815 else
4816 echo "$as_me:$LINENO: result: no" >&5
4817 echo "${ECHO_T}no" >&6
4820 test -n "$XLEX" && break
4821 done
4822 test -n "$XLEX" || XLEX="none"
4824 if test "$XLEX" = "none"
4825 then
4826 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
4827 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4828 { (exit 1); exit 1; }; }
4831 for ac_prog in bison
4833 # Extract the first word of "$ac_prog", so it can be a program name with args.
4834 set dummy $ac_prog; ac_word=$2
4835 echo "$as_me:$LINENO: checking for $ac_word" >&5
4836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4837 if test "${ac_cv_prog_BISON+set}" = set; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 else
4840 if test -n "$BISON"; then
4841 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4842 else
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 for as_dir in $PATH
4846 IFS=$as_save_IFS
4847 test -z "$as_dir" && as_dir=.
4848 for ac_exec_ext in '' $ac_executable_extensions; do
4849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4850 ac_cv_prog_BISON="$ac_prog"
4851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4852 break 2
4854 done
4855 done
4859 BISON=$ac_cv_prog_BISON
4860 if test -n "$BISON"; then
4861 echo "$as_me:$LINENO: result: $BISON" >&5
4862 echo "${ECHO_T}$BISON" >&6
4863 else
4864 echo "$as_me:$LINENO: result: no" >&5
4865 echo "${ECHO_T}no" >&6
4868 test -n "$BISON" && break
4869 done
4870 test -n "$BISON" || BISON="none"
4872 if test "$BISON" = "none"
4873 then
4874 { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
4875 echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
4876 { (exit 1); exit 1; }; }
4879 if test -n "$ac_tool_prefix"; then
4880 for ac_prog in gas as
4882 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4883 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4884 echo "$as_me:$LINENO: checking for $ac_word" >&5
4885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4886 if test "${ac_cv_prog_AS+set}" = set; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4888 else
4889 if test -n "$AS"; then
4890 ac_cv_prog_AS="$AS" # Let the user override the test.
4891 else
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 for as_dir in $PATH
4895 IFS=$as_save_IFS
4896 test -z "$as_dir" && as_dir=.
4897 for ac_exec_ext in '' $ac_executable_extensions; do
4898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4899 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
4900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4901 break 2
4903 done
4904 done
4908 AS=$ac_cv_prog_AS
4909 if test -n "$AS"; then
4910 echo "$as_me:$LINENO: result: $AS" >&5
4911 echo "${ECHO_T}$AS" >&6
4912 else
4913 echo "$as_me:$LINENO: result: no" >&5
4914 echo "${ECHO_T}no" >&6
4917 test -n "$AS" && break
4918 done
4920 if test -z "$AS"; then
4921 ac_ct_AS=$AS
4922 for ac_prog in gas as
4924 # Extract the first word of "$ac_prog", so it can be a program name with args.
4925 set dummy $ac_prog; ac_word=$2
4926 echo "$as_me:$LINENO: checking for $ac_word" >&5
4927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4928 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4929 echo $ECHO_N "(cached) $ECHO_C" >&6
4930 else
4931 if test -n "$ac_ct_AS"; then
4932 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4933 else
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 for as_dir in $PATH
4937 IFS=$as_save_IFS
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4941 ac_cv_prog_ac_ct_AS="$ac_prog"
4942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 break 2
4945 done
4946 done
4950 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4951 if test -n "$ac_ct_AS"; then
4952 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4953 echo "${ECHO_T}$ac_ct_AS" >&6
4954 else
4955 echo "$as_me:$LINENO: result: no" >&5
4956 echo "${ECHO_T}no" >&6
4959 test -n "$ac_ct_AS" && break
4960 done
4961 test -n "$ac_ct_AS" || ac_ct_AS="as"
4963 AS=$ac_ct_AS
4966 if test -n "$ac_tool_prefix"; then
4967 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4968 set dummy ${ac_tool_prefix}ld; ac_word=$2
4969 echo "$as_me:$LINENO: checking for $ac_word" >&5
4970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4971 if test "${ac_cv_prog_LD+set}" = set; then
4972 echo $ECHO_N "(cached) $ECHO_C" >&6
4973 else
4974 if test -n "$LD"; then
4975 ac_cv_prog_LD="$LD" # Let the user override the test.
4976 else
4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 for as_dir in $PATH
4980 IFS=$as_save_IFS
4981 test -z "$as_dir" && as_dir=.
4982 for ac_exec_ext in '' $ac_executable_extensions; do
4983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4984 ac_cv_prog_LD="${ac_tool_prefix}ld"
4985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4986 break 2
4988 done
4989 done
4993 LD=$ac_cv_prog_LD
4994 if test -n "$LD"; then
4995 echo "$as_me:$LINENO: result: $LD" >&5
4996 echo "${ECHO_T}$LD" >&6
4997 else
4998 echo "$as_me:$LINENO: result: no" >&5
4999 echo "${ECHO_T}no" >&6
5003 if test -z "$ac_cv_prog_LD"; then
5004 ac_ct_LD=$LD
5005 # Extract the first word of "ld", so it can be a program name with args.
5006 set dummy ld; ac_word=$2
5007 echo "$as_me:$LINENO: checking for $ac_word" >&5
5008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5009 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5011 else
5012 if test -n "$ac_ct_LD"; then
5013 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5014 else
5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 for as_dir in $PATH
5018 IFS=$as_save_IFS
5019 test -z "$as_dir" && as_dir=.
5020 for ac_exec_ext in '' $ac_executable_extensions; do
5021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5022 ac_cv_prog_ac_ct_LD="ld"
5023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5024 break 2
5026 done
5027 done
5029 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
5032 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5033 if test -n "$ac_ct_LD"; then
5034 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5035 echo "${ECHO_T}$ac_ct_LD" >&6
5036 else
5037 echo "$as_me:$LINENO: result: no" >&5
5038 echo "${ECHO_T}no" >&6
5041 LD=$ac_ct_LD
5042 else
5043 LD="$ac_cv_prog_LD"
5046 if test -n "$ac_tool_prefix"; then
5047 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5048 set dummy ${ac_tool_prefix}ar; ac_word=$2
5049 echo "$as_me:$LINENO: checking for $ac_word" >&5
5050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5051 if test "${ac_cv_prog_AR+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5053 else
5054 if test -n "$AR"; then
5055 ac_cv_prog_AR="$AR" # Let the user override the test.
5056 else
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH
5060 IFS=$as_save_IFS
5061 test -z "$as_dir" && as_dir=.
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5064 ac_cv_prog_AR="${ac_tool_prefix}ar"
5065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5066 break 2
5068 done
5069 done
5073 AR=$ac_cv_prog_AR
5074 if test -n "$AR"; then
5075 echo "$as_me:$LINENO: result: $AR" >&5
5076 echo "${ECHO_T}$AR" >&6
5077 else
5078 echo "$as_me:$LINENO: result: no" >&5
5079 echo "${ECHO_T}no" >&6
5083 if test -z "$ac_cv_prog_AR"; then
5084 ac_ct_AR=$AR
5085 # Extract the first word of "ar", so it can be a program name with args.
5086 set dummy ar; ac_word=$2
5087 echo "$as_me:$LINENO: checking for $ac_word" >&5
5088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5089 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5090 echo $ECHO_N "(cached) $ECHO_C" >&6
5091 else
5092 if test -n "$ac_ct_AR"; then
5093 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5094 else
5095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 for as_dir in $PATH
5098 IFS=$as_save_IFS
5099 test -z "$as_dir" && as_dir=.
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5102 ac_cv_prog_ac_ct_AR="ar"
5103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5104 break 2
5106 done
5107 done
5109 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
5112 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5113 if test -n "$ac_ct_AR"; then
5114 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5115 echo "${ECHO_T}$ac_ct_AR" >&6
5116 else
5117 echo "$as_me:$LINENO: result: no" >&5
5118 echo "${ECHO_T}no" >&6
5121 AR=$ac_ct_AR
5122 else
5123 AR="$ac_cv_prog_AR"
5126 if test -n "$ac_tool_prefix"; then
5127 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5128 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5129 echo "$as_me:$LINENO: checking for $ac_word" >&5
5130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5131 if test "${ac_cv_prog_RANLIB+set}" = set; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
5133 else
5134 if test -n "$RANLIB"; then
5135 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5136 else
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 for as_dir in $PATH
5140 IFS=$as_save_IFS
5141 test -z "$as_dir" && as_dir=.
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5144 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5146 break 2
5148 done
5149 done
5153 RANLIB=$ac_cv_prog_RANLIB
5154 if test -n "$RANLIB"; then
5155 echo "$as_me:$LINENO: result: $RANLIB" >&5
5156 echo "${ECHO_T}$RANLIB" >&6
5157 else
5158 echo "$as_me:$LINENO: result: no" >&5
5159 echo "${ECHO_T}no" >&6
5163 if test -z "$ac_cv_prog_RANLIB"; then
5164 ac_ct_RANLIB=$RANLIB
5165 # Extract the first word of "ranlib", so it can be a program name with args.
5166 set dummy ranlib; ac_word=$2
5167 echo "$as_me:$LINENO: checking for $ac_word" >&5
5168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5169 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172 if test -n "$ac_ct_RANLIB"; then
5173 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5174 else
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH
5178 IFS=$as_save_IFS
5179 test -z "$as_dir" && as_dir=.
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5182 ac_cv_prog_ac_ct_RANLIB="ranlib"
5183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5184 break 2
5186 done
5187 done
5189 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5192 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5193 if test -n "$ac_ct_RANLIB"; then
5194 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5195 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5196 else
5197 echo "$as_me:$LINENO: result: no" >&5
5198 echo "${ECHO_T}no" >&6
5201 RANLIB=$ac_ct_RANLIB
5202 else
5203 RANLIB="$ac_cv_prog_RANLIB"
5206 if test -n "$ac_tool_prefix"; then
5207 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5208 set dummy ${ac_tool_prefix}strip; ac_word=$2
5209 echo "$as_me:$LINENO: checking for $ac_word" >&5
5210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5211 if test "${ac_cv_prog_STRIP+set}" = set; then
5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5213 else
5214 if test -n "$STRIP"; then
5215 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5216 else
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 for as_dir in $PATH
5220 IFS=$as_save_IFS
5221 test -z "$as_dir" && as_dir=.
5222 for ac_exec_ext in '' $ac_executable_extensions; do
5223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5224 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5226 break 2
5228 done
5229 done
5233 STRIP=$ac_cv_prog_STRIP
5234 if test -n "$STRIP"; then
5235 echo "$as_me:$LINENO: result: $STRIP" >&5
5236 echo "${ECHO_T}$STRIP" >&6
5237 else
5238 echo "$as_me:$LINENO: result: no" >&5
5239 echo "${ECHO_T}no" >&6
5243 if test -z "$ac_cv_prog_STRIP"; then
5244 ac_ct_STRIP=$STRIP
5245 # Extract the first word of "strip", so it can be a program name with args.
5246 set dummy strip; ac_word=$2
5247 echo "$as_me:$LINENO: checking for $ac_word" >&5
5248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5249 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5250 echo $ECHO_N "(cached) $ECHO_C" >&6
5251 else
5252 if test -n "$ac_ct_STRIP"; then
5253 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5254 else
5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 for as_dir in $PATH
5258 IFS=$as_save_IFS
5259 test -z "$as_dir" && as_dir=.
5260 for ac_exec_ext in '' $ac_executable_extensions; do
5261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5262 ac_cv_prog_ac_ct_STRIP="strip"
5263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 break 2
5266 done
5267 done
5269 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
5272 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5273 if test -n "$ac_ct_STRIP"; then
5274 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5275 echo "${ECHO_T}$ac_ct_STRIP" >&6
5276 else
5277 echo "$as_me:$LINENO: result: no" >&5
5278 echo "${ECHO_T}no" >&6
5281 STRIP=$ac_ct_STRIP
5282 else
5283 STRIP="$ac_cv_prog_STRIP"
5286 if test -n "$ac_tool_prefix"; then
5287 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5288 set dummy ${ac_tool_prefix}windres; ac_word=$2
5289 echo "$as_me:$LINENO: checking for $ac_word" >&5
5290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5291 if test "${ac_cv_prog_WINDRES+set}" = set; then
5292 echo $ECHO_N "(cached) $ECHO_C" >&6
5293 else
5294 if test -n "$WINDRES"; then
5295 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5296 else
5297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298 for as_dir in $PATH
5300 IFS=$as_save_IFS
5301 test -z "$as_dir" && as_dir=.
5302 for ac_exec_ext in '' $ac_executable_extensions; do
5303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5304 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5306 break 2
5308 done
5309 done
5313 WINDRES=$ac_cv_prog_WINDRES
5314 if test -n "$WINDRES"; then
5315 echo "$as_me:$LINENO: result: $WINDRES" >&5
5316 echo "${ECHO_T}$WINDRES" >&6
5317 else
5318 echo "$as_me:$LINENO: result: no" >&5
5319 echo "${ECHO_T}no" >&6
5323 if test -z "$ac_cv_prog_WINDRES"; then
5324 ac_ct_WINDRES=$WINDRES
5325 # Extract the first word of "windres", so it can be a program name with args.
5326 set dummy windres; ac_word=$2
5327 echo "$as_me:$LINENO: checking for $ac_word" >&5
5328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5329 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5331 else
5332 if test -n "$ac_ct_WINDRES"; then
5333 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5334 else
5335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336 for as_dir in $PATH
5338 IFS=$as_save_IFS
5339 test -z "$as_dir" && as_dir=.
5340 for ac_exec_ext in '' $ac_executable_extensions; do
5341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5342 ac_cv_prog_ac_ct_WINDRES="windres"
5343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5344 break 2
5346 done
5347 done
5349 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
5352 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5353 if test -n "$ac_ct_WINDRES"; then
5354 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5355 echo "${ECHO_T}$ac_ct_WINDRES" >&6
5356 else
5357 echo "$as_me:$LINENO: result: no" >&5
5358 echo "${ECHO_T}no" >&6
5361 WINDRES=$ac_ct_WINDRES
5362 else
5363 WINDRES="$ac_cv_prog_WINDRES"
5366 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5367 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5368 LN_S=$as_ln_s
5369 if test "$LN_S" = "ln -s"; then
5370 echo "$as_me:$LINENO: result: yes" >&5
5371 echo "${ECHO_T}yes" >&6
5372 else
5373 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5374 echo "${ECHO_T}no, using $LN_S" >&6
5377 echo "$as_me:$LINENO: checking whether ln works" >&5
5378 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
5379 rm -f conf$$ conf$$.file
5380 echo >conf$$.file
5381 if ln conf$$.file conf$$ 2>/dev/null; then
5382 LN=ln
5384 echo "$as_me:$LINENO: result: yes" >&5
5385 echo "${ECHO_T}yes" >&6
5386 else
5387 LN="cp -p"
5389 echo "$as_me:$LINENO: result: no, using $LN" >&5
5390 echo "${ECHO_T}no, using $LN" >&6
5392 rm -f conf$$ conf$$.file
5393 # Extract the first word of "ldconfig", so it can be a program name with args.
5394 set dummy ldconfig; ac_word=$2
5395 echo "$as_me:$LINENO: checking for $ac_word" >&5
5396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5397 if test "${ac_cv_path_LDCONFIG+set}" = set; then
5398 echo $ECHO_N "(cached) $ECHO_C" >&6
5399 else
5400 case $LDCONFIG in
5401 [\\/]* | ?:[\\/]*)
5402 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 for as_dir in /sbin /usr/sbin $PATH
5408 IFS=$as_save_IFS
5409 test -z "$as_dir" && as_dir=.
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5412 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5414 break 2
5416 done
5417 done
5419 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5421 esac
5423 LDCONFIG=$ac_cv_path_LDCONFIG
5425 if test -n "$LDCONFIG"; then
5426 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
5427 echo "${ECHO_T}$LDCONFIG" >&6
5428 else
5429 echo "$as_me:$LINENO: result: no" >&5
5430 echo "${ECHO_T}no" >&6
5433 # Find a good install program. We prefer a C program (faster),
5434 # so one script is as good as another. But avoid the broken or
5435 # incompatible versions:
5436 # SysV /etc/install, /usr/sbin/install
5437 # SunOS /usr/etc/install
5438 # IRIX /sbin/install
5439 # AIX /bin/install
5440 # AmigaOS /C/install, which installs bootblocks on floppy discs
5441 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5442 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5443 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5444 # OS/2's system install, which has a completely different semantic
5445 # ./install, which can be erroneously created by make from ./install.sh.
5446 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5447 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5448 if test -z "$INSTALL"; then
5449 if test "${ac_cv_path_install+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5451 else
5452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453 for as_dir in $PATH
5455 IFS=$as_save_IFS
5456 test -z "$as_dir" && as_dir=.
5457 # Account for people who put trailing slashes in PATH elements.
5458 case $as_dir/ in
5459 ./ | .// | /cC/* | \
5460 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5461 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5462 /usr/ucb/* ) ;;
5464 # OSF1 and SCO ODT 3.0 have their own names for install.
5465 # Don't use installbsd from OSF since it installs stuff as root
5466 # by default.
5467 for ac_prog in ginstall scoinst install; do
5468 for ac_exec_ext in '' $ac_executable_extensions; do
5469 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5470 if test $ac_prog = install &&
5471 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5472 # AIX install. It has an incompatible calling convention.
5474 elif test $ac_prog = install &&
5475 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5476 # program-specific install script used by HP pwplus--don't use.
5478 else
5479 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5480 break 3
5483 done
5484 done
5486 esac
5487 done
5491 if test "${ac_cv_path_install+set}" = set; then
5492 INSTALL=$ac_cv_path_install
5493 else
5494 # As a last resort, use the slow shell script. We don't cache a
5495 # path for INSTALL within a source directory, because that will
5496 # break other packages using the cache if that directory is
5497 # removed, or if the path is relative.
5498 INSTALL=$ac_install_sh
5501 echo "$as_me:$LINENO: result: $INSTALL" >&5
5502 echo "${ECHO_T}$INSTALL" >&6
5504 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5505 # It thinks the first close brace ends the variable substitution.
5506 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5508 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5510 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5512 case "$INSTALL" in
5513 [\\/$]* | ?:[\\/]* ) ;;
5514 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
5515 esac
5517 for ac_prog in lclint lint
5519 # Extract the first word of "$ac_prog", so it can be a program name with args.
5520 set dummy $ac_prog; ac_word=$2
5521 echo "$as_me:$LINENO: checking for $ac_word" >&5
5522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5523 if test "${ac_cv_prog_LINT+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5525 else
5526 if test -n "$LINT"; then
5527 ac_cv_prog_LINT="$LINT" # Let the user override the test.
5528 else
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 for as_dir in $PATH
5532 IFS=$as_save_IFS
5533 test -z "$as_dir" && as_dir=.
5534 for ac_exec_ext in '' $ac_executable_extensions; do
5535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5536 ac_cv_prog_LINT="$ac_prog"
5537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5538 break 2
5540 done
5541 done
5545 LINT=$ac_cv_prog_LINT
5546 if test -n "$LINT"; then
5547 echo "$as_me:$LINENO: result: $LINT" >&5
5548 echo "${ECHO_T}$LINT" >&6
5549 else
5550 echo "$as_me:$LINENO: result: no" >&5
5551 echo "${ECHO_T}no" >&6
5554 test -n "$LINT" && break
5555 done
5557 if test "$LINT" = "lint"
5558 then
5559 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
5564 for ac_prog in docbook2html db2html
5566 # Extract the first word of "$ac_prog", so it can be a program name with args.
5567 set dummy $ac_prog; ac_word=$2
5568 echo "$as_me:$LINENO: checking for $ac_word" >&5
5569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5570 if test "${ac_cv_prog_DB2HTML+set}" = set; then
5571 echo $ECHO_N "(cached) $ECHO_C" >&6
5572 else
5573 if test -n "$DB2HTML"; then
5574 ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
5575 else
5576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577 for as_dir in $PATH
5579 IFS=$as_save_IFS
5580 test -z "$as_dir" && as_dir=.
5581 for ac_exec_ext in '' $ac_executable_extensions; do
5582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5583 ac_cv_prog_DB2HTML="$ac_prog"
5584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5585 break 2
5587 done
5588 done
5592 DB2HTML=$ac_cv_prog_DB2HTML
5593 if test -n "$DB2HTML"; then
5594 echo "$as_me:$LINENO: result: $DB2HTML" >&5
5595 echo "${ECHO_T}$DB2HTML" >&6
5596 else
5597 echo "$as_me:$LINENO: result: no" >&5
5598 echo "${ECHO_T}no" >&6
5601 test -n "$DB2HTML" && break
5602 done
5603 test -n "$DB2HTML" || DB2HTML="false"
5607 for ac_prog in docbook2pdf db2pdf
5609 # Extract the first word of "$ac_prog", so it can be a program name with args.
5610 set dummy $ac_prog; ac_word=$2
5611 echo "$as_me:$LINENO: checking for $ac_word" >&5
5612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5613 if test "${ac_cv_prog_DB2PDF+set}" = set; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 else
5616 if test -n "$DB2PDF"; then
5617 ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
5618 else
5619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620 for as_dir in $PATH
5622 IFS=$as_save_IFS
5623 test -z "$as_dir" && as_dir=.
5624 for ac_exec_ext in '' $ac_executable_extensions; do
5625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5626 ac_cv_prog_DB2PDF="$ac_prog"
5627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5628 break 2
5630 done
5631 done
5635 DB2PDF=$ac_cv_prog_DB2PDF
5636 if test -n "$DB2PDF"; then
5637 echo "$as_me:$LINENO: result: $DB2PDF" >&5
5638 echo "${ECHO_T}$DB2PDF" >&6
5639 else
5640 echo "$as_me:$LINENO: result: no" >&5
5641 echo "${ECHO_T}no" >&6
5644 test -n "$DB2PDF" && break
5645 done
5646 test -n "$DB2PDF" || DB2PDF="false"
5650 for ac_prog in docbook2ps db2ps
5652 # Extract the first word of "$ac_prog", so it can be a program name with args.
5653 set dummy $ac_prog; ac_word=$2
5654 echo "$as_me:$LINENO: checking for $ac_word" >&5
5655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5656 if test "${ac_cv_prog_DB2PS+set}" = set; then
5657 echo $ECHO_N "(cached) $ECHO_C" >&6
5658 else
5659 if test -n "$DB2PS"; then
5660 ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
5661 else
5662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663 for as_dir in $PATH
5665 IFS=$as_save_IFS
5666 test -z "$as_dir" && as_dir=.
5667 for ac_exec_ext in '' $ac_executable_extensions; do
5668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5669 ac_cv_prog_DB2PS="$ac_prog"
5670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5671 break 2
5673 done
5674 done
5678 DB2PS=$ac_cv_prog_DB2PS
5679 if test -n "$DB2PS"; then
5680 echo "$as_me:$LINENO: result: $DB2PS" >&5
5681 echo "${ECHO_T}$DB2PS" >&6
5682 else
5683 echo "$as_me:$LINENO: result: no" >&5
5684 echo "${ECHO_T}no" >&6
5687 test -n "$DB2PS" && break
5688 done
5689 test -n "$DB2PS" || DB2PS="false"
5693 for ac_prog in docbook2txt db2txt
5695 # Extract the first word of "$ac_prog", so it can be a program name with args.
5696 set dummy $ac_prog; ac_word=$2
5697 echo "$as_me:$LINENO: checking for $ac_word" >&5
5698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5699 if test "${ac_cv_prog_DB2TXT+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5701 else
5702 if test -n "$DB2TXT"; then
5703 ac_cv_prog_DB2TXT="$DB2TXT" # Let the user override the test.
5704 else
5705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706 for as_dir in $PATH
5708 IFS=$as_save_IFS
5709 test -z "$as_dir" && as_dir=.
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5712 ac_cv_prog_DB2TXT="$ac_prog"
5713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 break 2
5716 done
5717 done
5721 DB2TXT=$ac_cv_prog_DB2TXT
5722 if test -n "$DB2TXT"; then
5723 echo "$as_me:$LINENO: result: $DB2TXT" >&5
5724 echo "${ECHO_T}$DB2TXT" >&6
5725 else
5726 echo "$as_me:$LINENO: result: no" >&5
5727 echo "${ECHO_T}no" >&6
5730 test -n "$DB2TXT" && break
5731 done
5732 test -n "$DB2TXT" || DB2TXT="false"
5738 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
5739 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5740 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5742 else
5743 ac_check_lib_save_LIBS=$LIBS
5744 LIBS="-li386 $LIBS"
5745 cat >conftest.$ac_ext <<_ACEOF
5746 /* confdefs.h. */
5747 _ACEOF
5748 cat confdefs.h >>conftest.$ac_ext
5749 cat >>conftest.$ac_ext <<_ACEOF
5750 /* end confdefs.h. */
5752 /* Override any gcc2 internal prototype to avoid an error. */
5753 #ifdef __cplusplus
5754 extern "C"
5755 #endif
5756 /* We use char because int might match the return type of a gcc2
5757 builtin and then its argument prototype would still apply. */
5758 char i386_set_ldt ();
5760 main ()
5762 i386_set_ldt ();
5764 return 0;
5766 _ACEOF
5767 rm -f conftest.$ac_objext conftest$ac_exeext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5769 (eval $ac_link) 2>conftest.er1
5770 ac_status=$?
5771 grep -v '^ *+' conftest.er1 >conftest.err
5772 rm -f conftest.er1
5773 cat conftest.err >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); } &&
5776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778 (eval $ac_try) 2>&5
5779 ac_status=$?
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; } &&
5782 { ac_try='test -s conftest$ac_exeext'
5783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784 (eval $ac_try) 2>&5
5785 ac_status=$?
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); }; }; then
5788 ac_cv_lib_i386_i386_set_ldt=yes
5789 else
5790 echo "$as_me: failed program was:" >&5
5791 sed 's/^/| /' conftest.$ac_ext >&5
5793 ac_cv_lib_i386_i386_set_ldt=no
5795 rm -f conftest.err conftest.$ac_objext \
5796 conftest$ac_exeext conftest.$ac_ext
5797 LIBS=$ac_check_lib_save_LIBS
5799 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5800 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5801 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
5802 cat >>confdefs.h <<_ACEOF
5803 #define HAVE_LIBI386 1
5804 _ACEOF
5806 LIBS="-li386 $LIBS"
5811 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5812 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5813 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5814 echo $ECHO_N "(cached) $ECHO_C" >&6
5815 else
5816 ac_check_lib_save_LIBS=$LIBS
5817 LIBS="-lossaudio $LIBS"
5818 cat >conftest.$ac_ext <<_ACEOF
5819 /* confdefs.h. */
5820 _ACEOF
5821 cat confdefs.h >>conftest.$ac_ext
5822 cat >>conftest.$ac_ext <<_ACEOF
5823 /* end confdefs.h. */
5825 /* Override any gcc2 internal prototype to avoid an error. */
5826 #ifdef __cplusplus
5827 extern "C"
5828 #endif
5829 /* We use char because int might match the return type of a gcc2
5830 builtin and then its argument prototype would still apply. */
5831 char _oss_ioctl ();
5833 main ()
5835 _oss_ioctl ();
5837 return 0;
5839 _ACEOF
5840 rm -f conftest.$ac_objext conftest$ac_exeext
5841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5842 (eval $ac_link) 2>conftest.er1
5843 ac_status=$?
5844 grep -v '^ *+' conftest.er1 >conftest.err
5845 rm -f conftest.er1
5846 cat conftest.err >&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); } &&
5849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5851 (eval $ac_try) 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_ossaudio__oss_ioctl=yes
5862 else
5863 echo "$as_me: failed program was:" >&5
5864 sed 's/^/| /' conftest.$ac_ext >&5
5866 ac_cv_lib_ossaudio__oss_ioctl=no
5868 rm -f conftest.err conftest.$ac_objext \
5869 conftest$ac_exeext conftest.$ac_ext
5870 LIBS=$ac_check_lib_save_LIBS
5872 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5873 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5874 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5875 cat >>confdefs.h <<_ACEOF
5876 #define HAVE_LIBOSSAUDIO 1
5877 _ACEOF
5879 LIBS="-lossaudio $LIBS"
5884 for ac_func in iswalnum
5886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5887 echo "$as_me:$LINENO: checking for $ac_func" >&5
5888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5889 if eval "test \"\${$as_ac_var+set}\" = set"; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 else
5892 cat >conftest.$ac_ext <<_ACEOF
5893 /* confdefs.h. */
5894 _ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5898 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5900 #define $ac_func innocuous_$ac_func
5902 /* System header to define __stub macros and hopefully few prototypes,
5903 which can conflict with char $ac_func (); below.
5904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5905 <limits.h> exists even on freestanding compilers. */
5907 #ifdef __STDC__
5908 # include <limits.h>
5909 #else
5910 # include <assert.h>
5911 #endif
5913 #undef $ac_func
5915 /* Override any gcc2 internal prototype to avoid an error. */
5916 #ifdef __cplusplus
5917 extern "C"
5919 #endif
5920 /* We use char because int might match the return type of a gcc2
5921 builtin and then its argument prototype would still apply. */
5922 char $ac_func ();
5923 /* The GNU C library defines this for functions which it implements
5924 to always fail with ENOSYS. Some functions are actually named
5925 something starting with __ and the normal name is an alias. */
5926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5927 choke me
5928 #else
5929 char (*f) () = $ac_func;
5930 #endif
5931 #ifdef __cplusplus
5933 #endif
5936 main ()
5938 return f != $ac_func;
5940 return 0;
5942 _ACEOF
5943 rm -f conftest.$ac_objext conftest$ac_exeext
5944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5945 (eval $ac_link) 2>conftest.er1
5946 ac_status=$?
5947 grep -v '^ *+' conftest.er1 >conftest.err
5948 rm -f conftest.er1
5949 cat conftest.err >&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); } &&
5952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5954 (eval $ac_try) 2>&5
5955 ac_status=$?
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); }; } &&
5958 { ac_try='test -s conftest$ac_exeext'
5959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960 (eval $ac_try) 2>&5
5961 ac_status=$?
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); }; }; then
5964 eval "$as_ac_var=yes"
5965 else
5966 echo "$as_me: failed program was:" >&5
5967 sed 's/^/| /' conftest.$ac_ext >&5
5969 eval "$as_ac_var=no"
5971 rm -f conftest.err conftest.$ac_objext \
5972 conftest$ac_exeext conftest.$ac_ext
5974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5975 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5976 if test `eval echo '${'$as_ac_var'}'` = yes; then
5977 cat >>confdefs.h <<_ACEOF
5978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5979 _ACEOF
5981 else
5983 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
5984 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
5985 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988 ac_check_lib_save_LIBS=$LIBS
5989 LIBS="-lw $LIBS"
5990 cat >conftest.$ac_ext <<_ACEOF
5991 /* confdefs.h. */
5992 _ACEOF
5993 cat confdefs.h >>conftest.$ac_ext
5994 cat >>conftest.$ac_ext <<_ACEOF
5995 /* end confdefs.h. */
5997 /* Override any gcc2 internal prototype to avoid an error. */
5998 #ifdef __cplusplus
5999 extern "C"
6000 #endif
6001 /* We use char because int might match the return type of a gcc2
6002 builtin and then its argument prototype would still apply. */
6003 char iswalnum ();
6005 main ()
6007 iswalnum ();
6009 return 0;
6011 _ACEOF
6012 rm -f conftest.$ac_objext conftest$ac_exeext
6013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6014 (eval $ac_link) 2>conftest.er1
6015 ac_status=$?
6016 grep -v '^ *+' conftest.er1 >conftest.err
6017 rm -f conftest.er1
6018 cat conftest.err >&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } &&
6021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023 (eval $ac_try) 2>&5
6024 ac_status=$?
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; } &&
6027 { ac_try='test -s conftest$ac_exeext'
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029 (eval $ac_try) 2>&5
6030 ac_status=$?
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; }; then
6033 ac_cv_lib_w_iswalnum=yes
6034 else
6035 echo "$as_me: failed program was:" >&5
6036 sed 's/^/| /' conftest.$ac_ext >&5
6038 ac_cv_lib_w_iswalnum=no
6040 rm -f conftest.err conftest.$ac_objext \
6041 conftest$ac_exeext conftest.$ac_ext
6042 LIBS=$ac_check_lib_save_LIBS
6044 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
6045 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
6046 if test $ac_cv_lib_w_iswalnum = yes; then
6047 cat >>confdefs.h <<_ACEOF
6048 #define HAVE_LIBW 1
6049 _ACEOF
6051 LIBS="-lw $LIBS"
6056 done
6059 for ac_func in gethostbyname
6061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6062 echo "$as_me:$LINENO: checking for $ac_func" >&5
6063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6064 if eval "test \"\${$as_ac_var+set}\" = set"; then
6065 echo $ECHO_N "(cached) $ECHO_C" >&6
6066 else
6067 cat >conftest.$ac_ext <<_ACEOF
6068 /* confdefs.h. */
6069 _ACEOF
6070 cat confdefs.h >>conftest.$ac_ext
6071 cat >>conftest.$ac_ext <<_ACEOF
6072 /* end confdefs.h. */
6073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6075 #define $ac_func innocuous_$ac_func
6077 /* System header to define __stub macros and hopefully few prototypes,
6078 which can conflict with char $ac_func (); below.
6079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6080 <limits.h> exists even on freestanding compilers. */
6082 #ifdef __STDC__
6083 # include <limits.h>
6084 #else
6085 # include <assert.h>
6086 #endif
6088 #undef $ac_func
6090 /* Override any gcc2 internal prototype to avoid an error. */
6091 #ifdef __cplusplus
6092 extern "C"
6094 #endif
6095 /* We use char because int might match the return type of a gcc2
6096 builtin and then its argument prototype would still apply. */
6097 char $ac_func ();
6098 /* The GNU C library defines this for functions which it implements
6099 to always fail with ENOSYS. Some functions are actually named
6100 something starting with __ and the normal name is an alias. */
6101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6102 choke me
6103 #else
6104 char (*f) () = $ac_func;
6105 #endif
6106 #ifdef __cplusplus
6108 #endif
6111 main ()
6113 return f != $ac_func;
6115 return 0;
6117 _ACEOF
6118 rm -f conftest.$ac_objext conftest$ac_exeext
6119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6120 (eval $ac_link) 2>conftest.er1
6121 ac_status=$?
6122 grep -v '^ *+' conftest.er1 >conftest.err
6123 rm -f conftest.er1
6124 cat conftest.err >&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); } &&
6127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129 (eval $ac_try) 2>&5
6130 ac_status=$?
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; } &&
6133 { ac_try='test -s conftest$ac_exeext'
6134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135 (eval $ac_try) 2>&5
6136 ac_status=$?
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; }; then
6139 eval "$as_ac_var=yes"
6140 else
6141 echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6144 eval "$as_ac_var=no"
6146 rm -f conftest.err conftest.$ac_objext \
6147 conftest$ac_exeext conftest.$ac_ext
6149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6150 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6151 if test `eval echo '${'$as_ac_var'}'` = yes; then
6152 cat >>confdefs.h <<_ACEOF
6153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6154 _ACEOF
6156 else
6158 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6159 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6160 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
6162 else
6163 ac_check_lib_save_LIBS=$LIBS
6164 LIBS="-lnsl $LIBS"
6165 cat >conftest.$ac_ext <<_ACEOF
6166 /* confdefs.h. */
6167 _ACEOF
6168 cat confdefs.h >>conftest.$ac_ext
6169 cat >>conftest.$ac_ext <<_ACEOF
6170 /* end confdefs.h. */
6172 /* Override any gcc2 internal prototype to avoid an error. */
6173 #ifdef __cplusplus
6174 extern "C"
6175 #endif
6176 /* We use char because int might match the return type of a gcc2
6177 builtin and then its argument prototype would still apply. */
6178 char gethostbyname ();
6180 main ()
6182 gethostbyname ();
6184 return 0;
6186 _ACEOF
6187 rm -f conftest.$ac_objext conftest$ac_exeext
6188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6189 (eval $ac_link) 2>conftest.er1
6190 ac_status=$?
6191 grep -v '^ *+' conftest.er1 >conftest.err
6192 rm -f conftest.er1
6193 cat conftest.err >&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } &&
6196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198 (eval $ac_try) 2>&5
6199 ac_status=$?
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; } &&
6202 { ac_try='test -s conftest$ac_exeext'
6203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6204 (eval $ac_try) 2>&5
6205 ac_status=$?
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); }; }; then
6208 ac_cv_lib_nsl_gethostbyname=yes
6209 else
6210 echo "$as_me: failed program was:" >&5
6211 sed 's/^/| /' conftest.$ac_ext >&5
6213 ac_cv_lib_nsl_gethostbyname=no
6215 rm -f conftest.err conftest.$ac_objext \
6216 conftest$ac_exeext conftest.$ac_ext
6217 LIBS=$ac_check_lib_save_LIBS
6219 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6220 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6221 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6222 cat >>confdefs.h <<_ACEOF
6223 #define HAVE_LIBNSL 1
6224 _ACEOF
6226 LIBS="-lnsl $LIBS"
6231 done
6234 for ac_func in connect
6236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6237 echo "$as_me:$LINENO: checking for $ac_func" >&5
6238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6239 if eval "test \"\${$as_ac_var+set}\" = set"; then
6240 echo $ECHO_N "(cached) $ECHO_C" >&6
6241 else
6242 cat >conftest.$ac_ext <<_ACEOF
6243 /* confdefs.h. */
6244 _ACEOF
6245 cat confdefs.h >>conftest.$ac_ext
6246 cat >>conftest.$ac_ext <<_ACEOF
6247 /* end confdefs.h. */
6248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6250 #define $ac_func innocuous_$ac_func
6252 /* System header to define __stub macros and hopefully few prototypes,
6253 which can conflict with char $ac_func (); below.
6254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6255 <limits.h> exists even on freestanding compilers. */
6257 #ifdef __STDC__
6258 # include <limits.h>
6259 #else
6260 # include <assert.h>
6261 #endif
6263 #undef $ac_func
6265 /* Override any gcc2 internal prototype to avoid an error. */
6266 #ifdef __cplusplus
6267 extern "C"
6269 #endif
6270 /* We use char because int might match the return type of a gcc2
6271 builtin and then its argument prototype would still apply. */
6272 char $ac_func ();
6273 /* The GNU C library defines this for functions which it implements
6274 to always fail with ENOSYS. Some functions are actually named
6275 something starting with __ and the normal name is an alias. */
6276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6277 choke me
6278 #else
6279 char (*f) () = $ac_func;
6280 #endif
6281 #ifdef __cplusplus
6283 #endif
6286 main ()
6288 return f != $ac_func;
6290 return 0;
6292 _ACEOF
6293 rm -f conftest.$ac_objext conftest$ac_exeext
6294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6295 (eval $ac_link) 2>conftest.er1
6296 ac_status=$?
6297 grep -v '^ *+' conftest.er1 >conftest.err
6298 rm -f conftest.er1
6299 cat conftest.err >&5
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); } &&
6302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6304 (eval $ac_try) 2>&5
6305 ac_status=$?
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); }; } &&
6308 { ac_try='test -s conftest$ac_exeext'
6309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6310 (eval $ac_try) 2>&5
6311 ac_status=$?
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); }; }; then
6314 eval "$as_ac_var=yes"
6315 else
6316 echo "$as_me: failed program was:" >&5
6317 sed 's/^/| /' conftest.$ac_ext >&5
6319 eval "$as_ac_var=no"
6321 rm -f conftest.err conftest.$ac_objext \
6322 conftest$ac_exeext conftest.$ac_ext
6324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6325 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6326 if test `eval echo '${'$as_ac_var'}'` = yes; then
6327 cat >>confdefs.h <<_ACEOF
6328 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6329 _ACEOF
6331 else
6333 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6334 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6335 if test "${ac_cv_lib_socket_connect+set}" = set; then
6336 echo $ECHO_N "(cached) $ECHO_C" >&6
6337 else
6338 ac_check_lib_save_LIBS=$LIBS
6339 LIBS="-lsocket $LIBS"
6340 cat >conftest.$ac_ext <<_ACEOF
6341 /* confdefs.h. */
6342 _ACEOF
6343 cat confdefs.h >>conftest.$ac_ext
6344 cat >>conftest.$ac_ext <<_ACEOF
6345 /* end confdefs.h. */
6347 /* Override any gcc2 internal prototype to avoid an error. */
6348 #ifdef __cplusplus
6349 extern "C"
6350 #endif
6351 /* We use char because int might match the return type of a gcc2
6352 builtin and then its argument prototype would still apply. */
6353 char connect ();
6355 main ()
6357 connect ();
6359 return 0;
6361 _ACEOF
6362 rm -f conftest.$ac_objext conftest$ac_exeext
6363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6364 (eval $ac_link) 2>conftest.er1
6365 ac_status=$?
6366 grep -v '^ *+' conftest.er1 >conftest.err
6367 rm -f conftest.er1
6368 cat conftest.err >&5
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); } &&
6371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6373 (eval $ac_try) 2>&5
6374 ac_status=$?
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); }; } &&
6377 { ac_try='test -s conftest$ac_exeext'
6378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6379 (eval $ac_try) 2>&5
6380 ac_status=$?
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); }; }; then
6383 ac_cv_lib_socket_connect=yes
6384 else
6385 echo "$as_me: failed program was:" >&5
6386 sed 's/^/| /' conftest.$ac_ext >&5
6388 ac_cv_lib_socket_connect=no
6390 rm -f conftest.err conftest.$ac_objext \
6391 conftest$ac_exeext conftest.$ac_ext
6392 LIBS=$ac_check_lib_save_LIBS
6394 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6395 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6396 if test $ac_cv_lib_socket_connect = yes; then
6397 cat >>confdefs.h <<_ACEOF
6398 #define HAVE_LIBSOCKET 1
6399 _ACEOF
6401 LIBS="-lsocket $LIBS"
6406 done
6409 for ac_func in inet_aton
6411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6412 echo "$as_me:$LINENO: checking for $ac_func" >&5
6413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6414 if eval "test \"\${$as_ac_var+set}\" = set"; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
6416 else
6417 cat >conftest.$ac_ext <<_ACEOF
6418 /* confdefs.h. */
6419 _ACEOF
6420 cat confdefs.h >>conftest.$ac_ext
6421 cat >>conftest.$ac_ext <<_ACEOF
6422 /* end confdefs.h. */
6423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6425 #define $ac_func innocuous_$ac_func
6427 /* System header to define __stub macros and hopefully few prototypes,
6428 which can conflict with char $ac_func (); below.
6429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6430 <limits.h> exists even on freestanding compilers. */
6432 #ifdef __STDC__
6433 # include <limits.h>
6434 #else
6435 # include <assert.h>
6436 #endif
6438 #undef $ac_func
6440 /* Override any gcc2 internal prototype to avoid an error. */
6441 #ifdef __cplusplus
6442 extern "C"
6444 #endif
6445 /* We use char because int might match the return type of a gcc2
6446 builtin and then its argument prototype would still apply. */
6447 char $ac_func ();
6448 /* The GNU C library defines this for functions which it implements
6449 to always fail with ENOSYS. Some functions are actually named
6450 something starting with __ and the normal name is an alias. */
6451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6452 choke me
6453 #else
6454 char (*f) () = $ac_func;
6455 #endif
6456 #ifdef __cplusplus
6458 #endif
6461 main ()
6463 return f != $ac_func;
6465 return 0;
6467 _ACEOF
6468 rm -f conftest.$ac_objext conftest$ac_exeext
6469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6470 (eval $ac_link) 2>conftest.er1
6471 ac_status=$?
6472 grep -v '^ *+' conftest.er1 >conftest.err
6473 rm -f conftest.er1
6474 cat conftest.err >&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); } &&
6477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6479 (eval $ac_try) 2>&5
6480 ac_status=$?
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); }; } &&
6483 { ac_try='test -s conftest$ac_exeext'
6484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6485 (eval $ac_try) 2>&5
6486 ac_status=$?
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); }; }; then
6489 eval "$as_ac_var=yes"
6490 else
6491 echo "$as_me: failed program was:" >&5
6492 sed 's/^/| /' conftest.$ac_ext >&5
6494 eval "$as_ac_var=no"
6496 rm -f conftest.err conftest.$ac_objext \
6497 conftest$ac_exeext conftest.$ac_ext
6499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6500 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6501 if test `eval echo '${'$as_ac_var'}'` = yes; then
6502 cat >>confdefs.h <<_ACEOF
6503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6504 _ACEOF
6506 else
6508 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
6509 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
6510 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
6512 else
6513 ac_check_lib_save_LIBS=$LIBS
6514 LIBS="-lresolv $LIBS"
6515 cat >conftest.$ac_ext <<_ACEOF
6516 /* confdefs.h. */
6517 _ACEOF
6518 cat confdefs.h >>conftest.$ac_ext
6519 cat >>conftest.$ac_ext <<_ACEOF
6520 /* end confdefs.h. */
6522 /* Override any gcc2 internal prototype to avoid an error. */
6523 #ifdef __cplusplus
6524 extern "C"
6525 #endif
6526 /* We use char because int might match the return type of a gcc2
6527 builtin and then its argument prototype would still apply. */
6528 char inet_aton ();
6530 main ()
6532 inet_aton ();
6534 return 0;
6536 _ACEOF
6537 rm -f conftest.$ac_objext conftest$ac_exeext
6538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6539 (eval $ac_link) 2>conftest.er1
6540 ac_status=$?
6541 grep -v '^ *+' conftest.er1 >conftest.err
6542 rm -f conftest.er1
6543 cat conftest.err >&5
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); } &&
6546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6548 (eval $ac_try) 2>&5
6549 ac_status=$?
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); }; } &&
6552 { ac_try='test -s conftest$ac_exeext'
6553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554 (eval $ac_try) 2>&5
6555 ac_status=$?
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; }; then
6558 ac_cv_lib_resolv_inet_aton=yes
6559 else
6560 echo "$as_me: failed program was:" >&5
6561 sed 's/^/| /' conftest.$ac_ext >&5
6563 ac_cv_lib_resolv_inet_aton=no
6565 rm -f conftest.err conftest.$ac_objext \
6566 conftest$ac_exeext conftest.$ac_ext
6567 LIBS=$ac_check_lib_save_LIBS
6569 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
6570 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
6571 if test $ac_cv_lib_resolv_inet_aton = yes; then
6572 cat >>confdefs.h <<_ACEOF
6573 #define HAVE_LIBRESOLV 1
6574 _ACEOF
6576 LIBS="-lresolv $LIBS"
6581 done
6584 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
6585 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
6586 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6588 else
6589 ac_check_lib_save_LIBS=$LIBS
6590 LIBS="-lxpg4 $LIBS"
6591 cat >conftest.$ac_ext <<_ACEOF
6592 /* confdefs.h. */
6593 _ACEOF
6594 cat confdefs.h >>conftest.$ac_ext
6595 cat >>conftest.$ac_ext <<_ACEOF
6596 /* end confdefs.h. */
6598 /* Override any gcc2 internal prototype to avoid an error. */
6599 #ifdef __cplusplus
6600 extern "C"
6601 #endif
6602 /* We use char because int might match the return type of a gcc2
6603 builtin and then its argument prototype would still apply. */
6604 char _xpg4_setrunelocale ();
6606 main ()
6608 _xpg4_setrunelocale ();
6610 return 0;
6612 _ACEOF
6613 rm -f conftest.$ac_objext conftest$ac_exeext
6614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6615 (eval $ac_link) 2>conftest.er1
6616 ac_status=$?
6617 grep -v '^ *+' conftest.er1 >conftest.err
6618 rm -f conftest.er1
6619 cat conftest.err >&5
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); } &&
6622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624 (eval $ac_try) 2>&5
6625 ac_status=$?
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); }; } &&
6628 { ac_try='test -s conftest$ac_exeext'
6629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6630 (eval $ac_try) 2>&5
6631 ac_status=$?
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; }; then
6634 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
6635 else
6636 echo "$as_me: failed program was:" >&5
6637 sed 's/^/| /' conftest.$ac_ext >&5
6639 ac_cv_lib_xpg4__xpg4_setrunelocale=no
6641 rm -f conftest.err conftest.$ac_objext \
6642 conftest$ac_exeext conftest.$ac_ext
6643 LIBS=$ac_check_lib_save_LIBS
6645 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
6646 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
6647 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
6648 cat >>confdefs.h <<_ACEOF
6649 #define HAVE_LIBXPG4 1
6650 _ACEOF
6652 LIBS="-lxpg4 $LIBS"
6657 echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
6658 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6
6659 if test "${ac_cv_lib_poll_poll+set}" = set; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
6661 else
6662 ac_check_lib_save_LIBS=$LIBS
6663 LIBS="-lpoll $LIBS"
6664 cat >conftest.$ac_ext <<_ACEOF
6665 /* confdefs.h. */
6666 _ACEOF
6667 cat confdefs.h >>conftest.$ac_ext
6668 cat >>conftest.$ac_ext <<_ACEOF
6669 /* end confdefs.h. */
6671 /* Override any gcc2 internal prototype to avoid an error. */
6672 #ifdef __cplusplus
6673 extern "C"
6674 #endif
6675 /* We use char because int might match the return type of a gcc2
6676 builtin and then its argument prototype would still apply. */
6677 char poll ();
6679 main ()
6681 poll ();
6683 return 0;
6685 _ACEOF
6686 rm -f conftest.$ac_objext conftest$ac_exeext
6687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6688 (eval $ac_link) 2>conftest.er1
6689 ac_status=$?
6690 grep -v '^ *+' conftest.er1 >conftest.err
6691 rm -f conftest.er1
6692 cat conftest.err >&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); } &&
6695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697 (eval $ac_try) 2>&5
6698 ac_status=$?
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); }; } &&
6701 { ac_try='test -s conftest$ac_exeext'
6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6703 (eval $ac_try) 2>&5
6704 ac_status=$?
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; }; then
6707 ac_cv_lib_poll_poll=yes
6708 else
6709 echo "$as_me: failed program was:" >&5
6710 sed 's/^/| /' conftest.$ac_ext >&5
6712 ac_cv_lib_poll_poll=no
6714 rm -f conftest.err conftest.$ac_objext \
6715 conftest$ac_exeext conftest.$ac_ext
6716 LIBS=$ac_check_lib_save_LIBS
6718 echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
6719 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6
6720 if test $ac_cv_lib_poll_poll = yes; then
6721 cat >>confdefs.h <<_ACEOF
6722 #define HAVE_LIBPOLL 1
6723 _ACEOF
6725 LIBS="-lpoll $LIBS"
6729 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
6730 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
6731 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6733 else
6734 ac_check_lib_save_LIBS=$LIBS
6735 LIBS="-lpthread $LIBS"
6736 cat >conftest.$ac_ext <<_ACEOF
6737 /* confdefs.h. */
6738 _ACEOF
6739 cat confdefs.h >>conftest.$ac_ext
6740 cat >>conftest.$ac_ext <<_ACEOF
6741 /* end confdefs.h. */
6743 /* Override any gcc2 internal prototype to avoid an error. */
6744 #ifdef __cplusplus
6745 extern "C"
6746 #endif
6747 /* We use char because int might match the return type of a gcc2
6748 builtin and then its argument prototype would still apply. */
6749 char pthread_create ();
6751 main ()
6753 pthread_create ();
6755 return 0;
6757 _ACEOF
6758 rm -f conftest.$ac_objext conftest$ac_exeext
6759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6760 (eval $ac_link) 2>conftest.er1
6761 ac_status=$?
6762 grep -v '^ *+' conftest.er1 >conftest.err
6763 rm -f conftest.er1
6764 cat conftest.err >&5
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); } &&
6767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6769 (eval $ac_try) 2>&5
6770 ac_status=$?
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); }; } &&
6773 { ac_try='test -s conftest$ac_exeext'
6774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775 (eval $ac_try) 2>&5
6776 ac_status=$?
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); }; }; then
6779 ac_cv_lib_pthread_pthread_create=yes
6780 else
6781 echo "$as_me: failed program was:" >&5
6782 sed 's/^/| /' conftest.$ac_ext >&5
6784 ac_cv_lib_pthread_pthread_create=no
6786 rm -f conftest.err conftest.$ac_objext \
6787 conftest$ac_exeext conftest.$ac_ext
6788 LIBS=$ac_check_lib_save_LIBS
6790 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
6791 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
6792 if test $ac_cv_lib_pthread_pthread_create = yes; then
6793 LIBPTHREAD="-lpthread"
6798 JPEGLIB=""
6800 echo "$as_me:$LINENO: checking for egrep" >&5
6801 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6802 if test "${ac_cv_prog_egrep+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6804 else
6805 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6806 then ac_cv_prog_egrep='grep -E'
6807 else ac_cv_prog_egrep='egrep'
6810 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6811 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6812 EGREP=$ac_cv_prog_egrep
6815 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6816 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6817 if test "${ac_cv_header_stdc+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6819 else
6820 cat >conftest.$ac_ext <<_ACEOF
6821 /* confdefs.h. */
6822 _ACEOF
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h. */
6826 #include <stdlib.h>
6827 #include <stdarg.h>
6828 #include <string.h>
6829 #include <float.h>
6832 main ()
6836 return 0;
6838 _ACEOF
6839 rm -f conftest.$ac_objext
6840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6841 (eval $ac_compile) 2>conftest.er1
6842 ac_status=$?
6843 grep -v '^ *+' conftest.er1 >conftest.err
6844 rm -f conftest.er1
6845 cat conftest.err >&5
6846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); } &&
6848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6850 (eval $ac_try) 2>&5
6851 ac_status=$?
6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); }; } &&
6854 { ac_try='test -s conftest.$ac_objext'
6855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6856 (eval $ac_try) 2>&5
6857 ac_status=$?
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); }; }; then
6860 ac_cv_header_stdc=yes
6861 else
6862 echo "$as_me: failed program was:" >&5
6863 sed 's/^/| /' conftest.$ac_ext >&5
6865 ac_cv_header_stdc=no
6867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6869 if test $ac_cv_header_stdc = yes; then
6870 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6871 cat >conftest.$ac_ext <<_ACEOF
6872 /* confdefs.h. */
6873 _ACEOF
6874 cat confdefs.h >>conftest.$ac_ext
6875 cat >>conftest.$ac_ext <<_ACEOF
6876 /* end confdefs.h. */
6877 #include <string.h>
6879 _ACEOF
6880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6881 $EGREP "memchr" >/dev/null 2>&1; then
6883 else
6884 ac_cv_header_stdc=no
6886 rm -f conftest*
6890 if test $ac_cv_header_stdc = yes; then
6891 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6892 cat >conftest.$ac_ext <<_ACEOF
6893 /* confdefs.h. */
6894 _ACEOF
6895 cat confdefs.h >>conftest.$ac_ext
6896 cat >>conftest.$ac_ext <<_ACEOF
6897 /* end confdefs.h. */
6898 #include <stdlib.h>
6900 _ACEOF
6901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6902 $EGREP "free" >/dev/null 2>&1; then
6904 else
6905 ac_cv_header_stdc=no
6907 rm -f conftest*
6911 if test $ac_cv_header_stdc = yes; then
6912 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6913 if test "$cross_compiling" = yes; then
6915 else
6916 cat >conftest.$ac_ext <<_ACEOF
6917 /* confdefs.h. */
6918 _ACEOF
6919 cat confdefs.h >>conftest.$ac_ext
6920 cat >>conftest.$ac_ext <<_ACEOF
6921 /* end confdefs.h. */
6922 #include <ctype.h>
6923 #if ((' ' & 0x0FF) == 0x020)
6924 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6925 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6926 #else
6927 # define ISLOWER(c) \
6928 (('a' <= (c) && (c) <= 'i') \
6929 || ('j' <= (c) && (c) <= 'r') \
6930 || ('s' <= (c) && (c) <= 'z'))
6931 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6932 #endif
6934 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6936 main ()
6938 int i;
6939 for (i = 0; i < 256; i++)
6940 if (XOR (islower (i), ISLOWER (i))
6941 || toupper (i) != TOUPPER (i))
6942 exit(2);
6943 exit (0);
6945 _ACEOF
6946 rm -f conftest$ac_exeext
6947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6948 (eval $ac_link) 2>&5
6949 ac_status=$?
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6953 (eval $ac_try) 2>&5
6954 ac_status=$?
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); }; }; then
6958 else
6959 echo "$as_me: program exited with status $ac_status" >&5
6960 echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6963 ( exit $ac_status )
6964 ac_cv_header_stdc=no
6966 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6970 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6971 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6972 if test $ac_cv_header_stdc = yes; then
6974 cat >>confdefs.h <<\_ACEOF
6975 #define STDC_HEADERS 1
6976 _ACEOF
6980 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6990 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6991 inttypes.h stdint.h unistd.h
6993 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6994 echo "$as_me:$LINENO: checking for $ac_header" >&5
6995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6997 echo $ECHO_N "(cached) $ECHO_C" >&6
6998 else
6999 cat >conftest.$ac_ext <<_ACEOF
7000 /* confdefs.h. */
7001 _ACEOF
7002 cat confdefs.h >>conftest.$ac_ext
7003 cat >>conftest.$ac_ext <<_ACEOF
7004 /* end confdefs.h. */
7005 $ac_includes_default
7007 #include <$ac_header>
7008 _ACEOF
7009 rm -f conftest.$ac_objext
7010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7011 (eval $ac_compile) 2>conftest.er1
7012 ac_status=$?
7013 grep -v '^ *+' conftest.er1 >conftest.err
7014 rm -f conftest.er1
7015 cat conftest.err >&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); } &&
7018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020 (eval $ac_try) 2>&5
7021 ac_status=$?
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); }; } &&
7024 { ac_try='test -s conftest.$ac_objext'
7025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026 (eval $ac_try) 2>&5
7027 ac_status=$?
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); }; }; then
7030 eval "$as_ac_Header=yes"
7031 else
7032 echo "$as_me: failed program was:" >&5
7033 sed 's/^/| /' conftest.$ac_ext >&5
7035 eval "$as_ac_Header=no"
7037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7042 cat >>confdefs.h <<_ACEOF
7043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7044 _ACEOF
7048 done
7052 for ac_header in jpeglib.h
7054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7056 echo "$as_me:$LINENO: checking for $ac_header" >&5
7057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7059 echo $ECHO_N "(cached) $ECHO_C" >&6
7061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7063 else
7064 # Is the header compilable?
7065 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7067 cat >conftest.$ac_ext <<_ACEOF
7068 /* confdefs.h. */
7069 _ACEOF
7070 cat confdefs.h >>conftest.$ac_ext
7071 cat >>conftest.$ac_ext <<_ACEOF
7072 /* end confdefs.h. */
7073 $ac_includes_default
7074 #include <$ac_header>
7075 _ACEOF
7076 rm -f conftest.$ac_objext
7077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7078 (eval $ac_compile) 2>conftest.er1
7079 ac_status=$?
7080 grep -v '^ *+' conftest.er1 >conftest.err
7081 rm -f conftest.er1
7082 cat conftest.err >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } &&
7085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7087 (eval $ac_try) 2>&5
7088 ac_status=$?
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); }; } &&
7091 { ac_try='test -s conftest.$ac_objext'
7092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7093 (eval $ac_try) 2>&5
7094 ac_status=$?
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); }; }; then
7097 ac_header_compiler=yes
7098 else
7099 echo "$as_me: failed program was:" >&5
7100 sed 's/^/| /' conftest.$ac_ext >&5
7102 ac_header_compiler=no
7104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7105 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7106 echo "${ECHO_T}$ac_header_compiler" >&6
7108 # Is the header present?
7109 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7110 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7111 cat >conftest.$ac_ext <<_ACEOF
7112 /* confdefs.h. */
7113 _ACEOF
7114 cat confdefs.h >>conftest.$ac_ext
7115 cat >>conftest.$ac_ext <<_ACEOF
7116 /* end confdefs.h. */
7117 #include <$ac_header>
7118 _ACEOF
7119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7121 ac_status=$?
7122 grep -v '^ *+' conftest.er1 >conftest.err
7123 rm -f conftest.er1
7124 cat conftest.err >&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); } >/dev/null; then
7127 if test -s conftest.err; then
7128 ac_cpp_err=$ac_c_preproc_warn_flag
7129 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7130 else
7131 ac_cpp_err=
7133 else
7134 ac_cpp_err=yes
7136 if test -z "$ac_cpp_err"; then
7137 ac_header_preproc=yes
7138 else
7139 echo "$as_me: failed program was:" >&5
7140 sed 's/^/| /' conftest.$ac_ext >&5
7142 ac_header_preproc=no
7144 rm -f conftest.err conftest.$ac_ext
7145 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7146 echo "${ECHO_T}$ac_header_preproc" >&6
7148 # So? What about this header?
7149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7150 yes:no: )
7151 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7152 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7154 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7155 ac_header_preproc=yes
7157 no:yes:* )
7158 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7159 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7160 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7161 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7162 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7163 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7164 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7165 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7167 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7168 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7169 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7171 cat <<\_ASBOX
7172 ## ------------------------------------ ##
7173 ## Report this to wine-devel@winehq.org ##
7174 ## ------------------------------------ ##
7175 _ASBOX
7177 sed "s/^/$as_me: WARNING: /" >&2
7179 esac
7180 echo "$as_me:$LINENO: checking for $ac_header" >&5
7181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7183 echo $ECHO_N "(cached) $ECHO_C" >&6
7184 else
7185 eval "$as_ac_Header=\$ac_header_preproc"
7187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7192 cat >>confdefs.h <<_ACEOF
7193 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7194 _ACEOF
7195 echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
7196 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
7197 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7199 else
7200 ac_check_lib_save_LIBS=$LIBS
7201 LIBS="-ljpeg $LIBS"
7202 cat >conftest.$ac_ext <<_ACEOF
7203 /* confdefs.h. */
7204 _ACEOF
7205 cat confdefs.h >>conftest.$ac_ext
7206 cat >>conftest.$ac_ext <<_ACEOF
7207 /* end confdefs.h. */
7209 /* Override any gcc2 internal prototype to avoid an error. */
7210 #ifdef __cplusplus
7211 extern "C"
7212 #endif
7213 /* We use char because int might match the return type of a gcc2
7214 builtin and then its argument prototype would still apply. */
7215 char jpeg_start_decompress ();
7217 main ()
7219 jpeg_start_decompress ();
7221 return 0;
7223 _ACEOF
7224 rm -f conftest.$ac_objext conftest$ac_exeext
7225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7226 (eval $ac_link) 2>conftest.er1
7227 ac_status=$?
7228 grep -v '^ *+' conftest.er1 >conftest.err
7229 rm -f conftest.er1
7230 cat conftest.err >&5
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); } &&
7233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7235 (eval $ac_try) 2>&5
7236 ac_status=$?
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); }; } &&
7239 { ac_try='test -s conftest$ac_exeext'
7240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7241 (eval $ac_try) 2>&5
7242 ac_status=$?
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); }; }; then
7245 ac_cv_lib_jpeg_jpeg_start_decompress=yes
7246 else
7247 echo "$as_me: failed program was:" >&5
7248 sed 's/^/| /' conftest.$ac_ext >&5
7250 ac_cv_lib_jpeg_jpeg_start_decompress=no
7252 rm -f conftest.err conftest.$ac_objext \
7253 conftest$ac_exeext conftest.$ac_ext
7254 LIBS=$ac_check_lib_save_LIBS
7256 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
7257 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
7258 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
7260 cat >>confdefs.h <<\_ACEOF
7261 #define HAVE_LIBJPEG 1
7262 _ACEOF
7264 JPEGLIB="-ljpeg"
7271 done
7274 GIFLIB=""
7277 for ac_header in gif_lib.h
7279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7280 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7281 echo "$as_me:$LINENO: checking for $ac_header" >&5
7282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7284 echo $ECHO_N "(cached) $ECHO_C" >&6
7286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7288 else
7289 # Is the header compilable?
7290 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7291 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7292 cat >conftest.$ac_ext <<_ACEOF
7293 /* confdefs.h. */
7294 _ACEOF
7295 cat confdefs.h >>conftest.$ac_ext
7296 cat >>conftest.$ac_ext <<_ACEOF
7297 /* end confdefs.h. */
7298 $ac_includes_default
7299 #include <$ac_header>
7300 _ACEOF
7301 rm -f conftest.$ac_objext
7302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7303 (eval $ac_compile) 2>conftest.er1
7304 ac_status=$?
7305 grep -v '^ *+' conftest.er1 >conftest.err
7306 rm -f conftest.er1
7307 cat conftest.err >&5
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); } &&
7310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7312 (eval $ac_try) 2>&5
7313 ac_status=$?
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); }; } &&
7316 { ac_try='test -s conftest.$ac_objext'
7317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7318 (eval $ac_try) 2>&5
7319 ac_status=$?
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); }; }; then
7322 ac_header_compiler=yes
7323 else
7324 echo "$as_me: failed program was:" >&5
7325 sed 's/^/| /' conftest.$ac_ext >&5
7327 ac_header_compiler=no
7329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7330 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7331 echo "${ECHO_T}$ac_header_compiler" >&6
7333 # Is the header present?
7334 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7335 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7336 cat >conftest.$ac_ext <<_ACEOF
7337 /* confdefs.h. */
7338 _ACEOF
7339 cat confdefs.h >>conftest.$ac_ext
7340 cat >>conftest.$ac_ext <<_ACEOF
7341 /* end confdefs.h. */
7342 #include <$ac_header>
7343 _ACEOF
7344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7346 ac_status=$?
7347 grep -v '^ *+' conftest.er1 >conftest.err
7348 rm -f conftest.er1
7349 cat conftest.err >&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); } >/dev/null; then
7352 if test -s conftest.err; then
7353 ac_cpp_err=$ac_c_preproc_warn_flag
7354 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7355 else
7356 ac_cpp_err=
7358 else
7359 ac_cpp_err=yes
7361 if test -z "$ac_cpp_err"; then
7362 ac_header_preproc=yes
7363 else
7364 echo "$as_me: failed program was:" >&5
7365 sed 's/^/| /' conftest.$ac_ext >&5
7367 ac_header_preproc=no
7369 rm -f conftest.err conftest.$ac_ext
7370 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7371 echo "${ECHO_T}$ac_header_preproc" >&6
7373 # So? What about this header?
7374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7375 yes:no: )
7376 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7377 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7379 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7380 ac_header_preproc=yes
7382 no:yes:* )
7383 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7384 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7385 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7386 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7387 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7388 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7389 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7390 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7392 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7393 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7394 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7396 cat <<\_ASBOX
7397 ## ------------------------------------ ##
7398 ## Report this to wine-devel@winehq.org ##
7399 ## ------------------------------------ ##
7400 _ASBOX
7402 sed "s/^/$as_me: WARNING: /" >&2
7404 esac
7405 echo "$as_me:$LINENO: checking for $ac_header" >&5
7406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7408 echo $ECHO_N "(cached) $ECHO_C" >&6
7409 else
7410 eval "$as_ac_Header=\$ac_header_preproc"
7412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7413 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7417 cat >>confdefs.h <<_ACEOF
7418 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7419 _ACEOF
7420 echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
7421 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
7422 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
7423 echo $ECHO_N "(cached) $ECHO_C" >&6
7424 else
7425 ac_check_lib_save_LIBS=$LIBS
7426 LIBS="-lungif $LIBS"
7427 cat >conftest.$ac_ext <<_ACEOF
7428 /* confdefs.h. */
7429 _ACEOF
7430 cat confdefs.h >>conftest.$ac_ext
7431 cat >>conftest.$ac_ext <<_ACEOF
7432 /* end confdefs.h. */
7434 /* Override any gcc2 internal prototype to avoid an error. */
7435 #ifdef __cplusplus
7436 extern "C"
7437 #endif
7438 /* We use char because int might match the return type of a gcc2
7439 builtin and then its argument prototype would still apply. */
7440 char DGifOpen ();
7442 main ()
7444 DGifOpen ();
7446 return 0;
7448 _ACEOF
7449 rm -f conftest.$ac_objext conftest$ac_exeext
7450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7451 (eval $ac_link) 2>conftest.er1
7452 ac_status=$?
7453 grep -v '^ *+' conftest.er1 >conftest.err
7454 rm -f conftest.er1
7455 cat conftest.err >&5
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); } &&
7458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460 (eval $ac_try) 2>&5
7461 ac_status=$?
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); }; } &&
7464 { ac_try='test -s conftest$ac_exeext'
7465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7466 (eval $ac_try) 2>&5
7467 ac_status=$?
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); }; }; then
7470 ac_cv_lib_ungif_DGifOpen=yes
7471 else
7472 echo "$as_me: failed program was:" >&5
7473 sed 's/^/| /' conftest.$ac_ext >&5
7475 ac_cv_lib_ungif_DGifOpen=no
7477 rm -f conftest.err conftest.$ac_objext \
7478 conftest$ac_exeext conftest.$ac_ext
7479 LIBS=$ac_check_lib_save_LIBS
7481 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
7482 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
7483 if test $ac_cv_lib_ungif_DGifOpen = yes; then
7485 cat >>confdefs.h <<\_ACEOF
7486 #define HAVE_LIBGIF 1
7487 _ACEOF
7489 GIFLIB="-lungif"
7490 else
7491 echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
7492 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6
7493 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
7494 echo $ECHO_N "(cached) $ECHO_C" >&6
7495 else
7496 ac_check_lib_save_LIBS=$LIBS
7497 LIBS="-lgif $LIBS"
7498 cat >conftest.$ac_ext <<_ACEOF
7499 /* confdefs.h. */
7500 _ACEOF
7501 cat confdefs.h >>conftest.$ac_ext
7502 cat >>conftest.$ac_ext <<_ACEOF
7503 /* end confdefs.h. */
7505 /* Override any gcc2 internal prototype to avoid an error. */
7506 #ifdef __cplusplus
7507 extern "C"
7508 #endif
7509 /* We use char because int might match the return type of a gcc2
7510 builtin and then its argument prototype would still apply. */
7511 char DGifOpen ();
7513 main ()
7515 DGifOpen ();
7517 return 0;
7519 _ACEOF
7520 rm -f conftest.$ac_objext conftest$ac_exeext
7521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7522 (eval $ac_link) 2>conftest.er1
7523 ac_status=$?
7524 grep -v '^ *+' conftest.er1 >conftest.err
7525 rm -f conftest.er1
7526 cat conftest.err >&5
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); } &&
7529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7531 (eval $ac_try) 2>&5
7532 ac_status=$?
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); }; } &&
7535 { ac_try='test -s conftest$ac_exeext'
7536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7537 (eval $ac_try) 2>&5
7538 ac_status=$?
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); }; }; then
7541 ac_cv_lib_gif_DGifOpen=yes
7542 else
7543 echo "$as_me: failed program was:" >&5
7544 sed 's/^/| /' conftest.$ac_ext >&5
7546 ac_cv_lib_gif_DGifOpen=no
7548 rm -f conftest.err conftest.$ac_objext \
7549 conftest$ac_exeext conftest.$ac_ext
7550 LIBS=$ac_check_lib_save_LIBS
7552 echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
7553 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6
7554 if test $ac_cv_lib_gif_DGifOpen = yes; then
7555 cat >>confdefs.h <<\_ACEOF
7556 #define HAVE_LIBGIF 1
7557 _ACEOF
7559 GIFLIB="-lgif"
7566 done
7571 XFILES=""
7573 OPENGLFILES=""
7575 GLU32FILES=""
7577 OPENGL_LIBS=""
7578 if test "$have_x" = "yes"
7579 then
7580 XLIB="-lXext -lX11"
7581 ac_save_CPPFLAGS="$CPPFLAGS"
7582 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7585 for ac_header in X11/Xlib.h
7587 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7589 echo "$as_me:$LINENO: checking for $ac_header" >&5
7590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7596 else
7597 # Is the header compilable?
7598 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7599 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7600 cat >conftest.$ac_ext <<_ACEOF
7601 /* confdefs.h. */
7602 _ACEOF
7603 cat confdefs.h >>conftest.$ac_ext
7604 cat >>conftest.$ac_ext <<_ACEOF
7605 /* end confdefs.h. */
7606 $ac_includes_default
7607 #include <$ac_header>
7608 _ACEOF
7609 rm -f conftest.$ac_objext
7610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7611 (eval $ac_compile) 2>conftest.er1
7612 ac_status=$?
7613 grep -v '^ *+' conftest.er1 >conftest.err
7614 rm -f conftest.er1
7615 cat conftest.err >&5
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); } &&
7618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7620 (eval $ac_try) 2>&5
7621 ac_status=$?
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); }; } &&
7624 { ac_try='test -s conftest.$ac_objext'
7625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7626 (eval $ac_try) 2>&5
7627 ac_status=$?
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); }; }; then
7630 ac_header_compiler=yes
7631 else
7632 echo "$as_me: failed program was:" >&5
7633 sed 's/^/| /' conftest.$ac_ext >&5
7635 ac_header_compiler=no
7637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7639 echo "${ECHO_T}$ac_header_compiler" >&6
7641 # Is the header present?
7642 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7643 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7644 cat >conftest.$ac_ext <<_ACEOF
7645 /* confdefs.h. */
7646 _ACEOF
7647 cat confdefs.h >>conftest.$ac_ext
7648 cat >>conftest.$ac_ext <<_ACEOF
7649 /* end confdefs.h. */
7650 #include <$ac_header>
7651 _ACEOF
7652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7654 ac_status=$?
7655 grep -v '^ *+' conftest.er1 >conftest.err
7656 rm -f conftest.er1
7657 cat conftest.err >&5
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); } >/dev/null; then
7660 if test -s conftest.err; then
7661 ac_cpp_err=$ac_c_preproc_warn_flag
7662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7663 else
7664 ac_cpp_err=
7666 else
7667 ac_cpp_err=yes
7669 if test -z "$ac_cpp_err"; then
7670 ac_header_preproc=yes
7671 else
7672 echo "$as_me: failed program was:" >&5
7673 sed 's/^/| /' conftest.$ac_ext >&5
7675 ac_header_preproc=no
7677 rm -f conftest.err conftest.$ac_ext
7678 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7679 echo "${ECHO_T}$ac_header_preproc" >&6
7681 # So? What about this header?
7682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7683 yes:no: )
7684 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7685 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7687 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7688 ac_header_preproc=yes
7690 no:yes:* )
7691 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7692 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7693 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7694 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7695 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7696 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7697 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7698 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7700 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7701 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7702 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7704 cat <<\_ASBOX
7705 ## ------------------------------------ ##
7706 ## Report this to wine-devel@winehq.org ##
7707 ## ------------------------------------ ##
7708 _ASBOX
7710 sed "s/^/$as_me: WARNING: /" >&2
7712 esac
7713 echo "$as_me:$LINENO: checking for $ac_header" >&5
7714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
7717 else
7718 eval "$as_ac_Header=\$ac_header_preproc"
7720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7725 cat >>confdefs.h <<_ACEOF
7726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7727 _ACEOF
7739 for ac_header in X11/XKBlib.h \
7740 X11/Xutil.h \
7741 X11/extensions/shape.h \
7742 X11/extensions/XInput.h \
7743 X11/extensions/XShm.h \
7744 X11/extensions/Xrandr.h \
7745 X11/extensions/Xrender.h \
7746 X11/extensions/Xvlib.h \
7747 X11/extensions/xf86dga.h \
7748 X11/extensions/xf86vmode.h
7750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7751 echo "$as_me:$LINENO: checking for $ac_header" >&5
7752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7754 echo $ECHO_N "(cached) $ECHO_C" >&6
7755 else
7756 cat >conftest.$ac_ext <<_ACEOF
7757 /* confdefs.h. */
7758 _ACEOF
7759 cat confdefs.h >>conftest.$ac_ext
7760 cat >>conftest.$ac_ext <<_ACEOF
7761 /* end confdefs.h. */
7762 #include <X11/Xlib.h>
7763 #ifdef HAVE_X11_XUTIL_H
7764 # include <X11/Xutil.h>
7765 #endif
7767 #include <$ac_header>
7768 _ACEOF
7769 rm -f conftest.$ac_objext
7770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7771 (eval $ac_compile) 2>conftest.er1
7772 ac_status=$?
7773 grep -v '^ *+' conftest.er1 >conftest.err
7774 rm -f conftest.er1
7775 cat conftest.err >&5
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); } &&
7778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7780 (eval $ac_try) 2>&5
7781 ac_status=$?
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); }; } &&
7784 { ac_try='test -s conftest.$ac_objext'
7785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7786 (eval $ac_try) 2>&5
7787 ac_status=$?
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); }; }; then
7790 eval "$as_ac_Header=yes"
7791 else
7792 echo "$as_me: failed program was:" >&5
7793 sed 's/^/| /' conftest.$ac_ext >&5
7795 eval "$as_ac_Header=no"
7797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7802 cat >>confdefs.h <<_ACEOF
7803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7804 _ACEOF
7808 done
7811 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7812 then
7813 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
7814 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
7815 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
7816 echo $ECHO_N "(cached) $ECHO_C" >&6
7817 else
7818 ac_check_lib_save_LIBS=$LIBS
7819 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7820 cat >conftest.$ac_ext <<_ACEOF
7821 /* confdefs.h. */
7822 _ACEOF
7823 cat confdefs.h >>conftest.$ac_ext
7824 cat >>conftest.$ac_ext <<_ACEOF
7825 /* end confdefs.h. */
7827 /* Override any gcc2 internal prototype to avoid an error. */
7828 #ifdef __cplusplus
7829 extern "C"
7830 #endif
7831 /* We use char because int might match the return type of a gcc2
7832 builtin and then its argument prototype would still apply. */
7833 char XkbQueryExtension ();
7835 main ()
7837 XkbQueryExtension ();
7839 return 0;
7841 _ACEOF
7842 rm -f conftest.$ac_objext conftest$ac_exeext
7843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7844 (eval $ac_link) 2>conftest.er1
7845 ac_status=$?
7846 grep -v '^ *+' conftest.er1 >conftest.err
7847 rm -f conftest.er1
7848 cat conftest.err >&5
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); } &&
7851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7853 (eval $ac_try) 2>&5
7854 ac_status=$?
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); }; } &&
7857 { ac_try='test -s conftest$ac_exeext'
7858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7859 (eval $ac_try) 2>&5
7860 ac_status=$?
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); }; }; then
7863 ac_cv_lib_X11_XkbQueryExtension=yes
7864 else
7865 echo "$as_me: failed program was:" >&5
7866 sed 's/^/| /' conftest.$ac_ext >&5
7868 ac_cv_lib_X11_XkbQueryExtension=no
7870 rm -f conftest.err conftest.$ac_objext \
7871 conftest$ac_exeext conftest.$ac_ext
7872 LIBS=$ac_check_lib_save_LIBS
7874 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
7875 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
7876 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
7878 cat >>confdefs.h <<\_ACEOF
7879 #define HAVE_XKB 1
7880 _ACEOF
7886 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
7887 then
7888 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
7889 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
7890 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
7891 echo $ECHO_N "(cached) $ECHO_C" >&6
7892 else
7893 ac_check_lib_save_LIBS=$LIBS
7894 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7895 cat >conftest.$ac_ext <<_ACEOF
7896 /* confdefs.h. */
7897 _ACEOF
7898 cat confdefs.h >>conftest.$ac_ext
7899 cat >>conftest.$ac_ext <<_ACEOF
7900 /* end confdefs.h. */
7902 /* Override any gcc2 internal prototype to avoid an error. */
7903 #ifdef __cplusplus
7904 extern "C"
7905 #endif
7906 /* We use char because int might match the return type of a gcc2
7907 builtin and then its argument prototype would still apply. */
7908 char XShmQueryExtension ();
7910 main ()
7912 XShmQueryExtension ();
7914 return 0;
7916 _ACEOF
7917 rm -f conftest.$ac_objext conftest$ac_exeext
7918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7919 (eval $ac_link) 2>conftest.er1
7920 ac_status=$?
7921 grep -v '^ *+' conftest.er1 >conftest.err
7922 rm -f conftest.er1
7923 cat conftest.err >&5
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); } &&
7926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7928 (eval $ac_try) 2>&5
7929 ac_status=$?
7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931 (exit $ac_status); }; } &&
7932 { ac_try='test -s conftest$ac_exeext'
7933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7934 (eval $ac_try) 2>&5
7935 ac_status=$?
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); }; }; then
7938 ac_cv_lib_Xext_XShmQueryExtension=yes
7939 else
7940 echo "$as_me: failed program was:" >&5
7941 sed 's/^/| /' conftest.$ac_ext >&5
7943 ac_cv_lib_Xext_XShmQueryExtension=no
7945 rm -f conftest.err conftest.$ac_objext \
7946 conftest$ac_exeext conftest.$ac_ext
7947 LIBS=$ac_check_lib_save_LIBS
7949 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
7950 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7951 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
7953 cat >>confdefs.h <<\_ACEOF
7954 #define HAVE_LIBXXSHM 1
7955 _ACEOF
7961 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
7962 then
7963 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7964 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7965 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7966 echo $ECHO_N "(cached) $ECHO_C" >&6
7967 else
7968 ac_check_lib_save_LIBS=$LIBS
7969 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7970 cat >conftest.$ac_ext <<_ACEOF
7971 /* confdefs.h. */
7972 _ACEOF
7973 cat confdefs.h >>conftest.$ac_ext
7974 cat >>conftest.$ac_ext <<_ACEOF
7975 /* end confdefs.h. */
7977 /* Override any gcc2 internal prototype to avoid an error. */
7978 #ifdef __cplusplus
7979 extern "C"
7980 #endif
7981 /* We use char because int might match the return type of a gcc2
7982 builtin and then its argument prototype would still apply. */
7983 char XShapeQueryExtension ();
7985 main ()
7987 XShapeQueryExtension ();
7989 return 0;
7991 _ACEOF
7992 rm -f conftest.$ac_objext conftest$ac_exeext
7993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7994 (eval $ac_link) 2>conftest.er1
7995 ac_status=$?
7996 grep -v '^ *+' conftest.er1 >conftest.err
7997 rm -f conftest.er1
7998 cat conftest.err >&5
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); } &&
8001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8003 (eval $ac_try) 2>&5
8004 ac_status=$?
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); }; } &&
8007 { ac_try='test -s conftest$ac_exeext'
8008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8009 (eval $ac_try) 2>&5
8010 ac_status=$?
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); }; }; then
8013 ac_cv_lib_Xext_XShapeQueryExtension=yes
8014 else
8015 echo "$as_me: failed program was:" >&5
8016 sed 's/^/| /' conftest.$ac_ext >&5
8018 ac_cv_lib_Xext_XShapeQueryExtension=no
8020 rm -f conftest.err conftest.$ac_objext \
8021 conftest$ac_exeext conftest.$ac_ext
8022 LIBS=$ac_check_lib_save_LIBS
8024 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8025 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8026 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8028 cat >>confdefs.h <<\_ACEOF
8029 #define HAVE_LIBXSHAPE 1
8030 _ACEOF
8036 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
8037 then
8038 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
8039 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
8040 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
8041 echo $ECHO_N "(cached) $ECHO_C" >&6
8042 else
8043 ac_check_lib_save_LIBS=$LIBS
8044 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8045 cat >conftest.$ac_ext <<_ACEOF
8046 /* confdefs.h. */
8047 _ACEOF
8048 cat confdefs.h >>conftest.$ac_ext
8049 cat >>conftest.$ac_ext <<_ACEOF
8050 /* end confdefs.h. */
8052 /* Override any gcc2 internal prototype to avoid an error. */
8053 #ifdef __cplusplus
8054 extern "C"
8055 #endif
8056 /* We use char because int might match the return type of a gcc2
8057 builtin and then its argument prototype would still apply. */
8058 char XDGAQueryExtension ();
8060 main ()
8062 XDGAQueryExtension ();
8064 return 0;
8066 _ACEOF
8067 rm -f conftest.$ac_objext conftest$ac_exeext
8068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8069 (eval $ac_link) 2>conftest.er1
8070 ac_status=$?
8071 grep -v '^ *+' conftest.er1 >conftest.err
8072 rm -f conftest.er1
8073 cat conftest.err >&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } &&
8076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8078 (eval $ac_try) 2>&5
8079 ac_status=$?
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }; } &&
8082 { ac_try='test -s conftest$ac_exeext'
8083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8084 (eval $ac_try) 2>&5
8085 ac_status=$?
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); }; }; then
8088 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
8089 else
8090 echo "$as_me: failed program was:" >&5
8091 sed 's/^/| /' conftest.$ac_ext >&5
8093 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
8095 rm -f conftest.err conftest.$ac_objext \
8096 conftest$ac_exeext conftest.$ac_ext
8097 LIBS=$ac_check_lib_save_LIBS
8099 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
8100 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
8101 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
8103 cat >>confdefs.h <<\_ACEOF
8104 #define HAVE_LIBXXF86DGA2 1
8105 _ACEOF
8107 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
8109 else
8110 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
8111 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
8112 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
8113 echo $ECHO_N "(cached) $ECHO_C" >&6
8114 else
8115 ac_check_lib_save_LIBS=$LIBS
8116 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
8117 $LIBS"
8118 cat >conftest.$ac_ext <<_ACEOF
8119 /* confdefs.h. */
8120 _ACEOF
8121 cat confdefs.h >>conftest.$ac_ext
8122 cat >>conftest.$ac_ext <<_ACEOF
8123 /* end confdefs.h. */
8125 /* Override any gcc2 internal prototype to avoid an error. */
8126 #ifdef __cplusplus
8127 extern "C"
8128 #endif
8129 /* We use char because int might match the return type of a gcc2
8130 builtin and then its argument prototype would still apply. */
8131 char XF86DGAQueryExtension ();
8133 main ()
8135 XF86DGAQueryExtension ();
8137 return 0;
8139 _ACEOF
8140 rm -f conftest.$ac_objext conftest$ac_exeext
8141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8142 (eval $ac_link) 2>conftest.er1
8143 ac_status=$?
8144 grep -v '^ *+' conftest.er1 >conftest.err
8145 rm -f conftest.er1
8146 cat conftest.err >&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); } &&
8149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8151 (eval $ac_try) 2>&5
8152 ac_status=$?
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); }; } &&
8155 { ac_try='test -s conftest$ac_exeext'
8156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8157 (eval $ac_try) 2>&5
8158 ac_status=$?
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); }; }; then
8161 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
8162 else
8163 echo "$as_me: failed program was:" >&5
8164 sed 's/^/| /' conftest.$ac_ext >&5
8166 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
8168 rm -f conftest.err conftest.$ac_objext \
8169 conftest$ac_exeext conftest.$ac_ext
8170 LIBS=$ac_check_lib_save_LIBS
8172 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
8173 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
8174 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
8176 cat >>confdefs.h <<\_ACEOF
8177 #define HAVE_LIBXXF86DGA 1
8178 _ACEOF
8180 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
8189 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
8190 then
8191 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
8192 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
8193 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
8194 echo $ECHO_N "(cached) $ECHO_C" >&6
8195 else
8196 ac_check_lib_save_LIBS=$LIBS
8197 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8198 cat >conftest.$ac_ext <<_ACEOF
8199 /* confdefs.h. */
8200 _ACEOF
8201 cat confdefs.h >>conftest.$ac_ext
8202 cat >>conftest.$ac_ext <<_ACEOF
8203 /* end confdefs.h. */
8205 /* Override any gcc2 internal prototype to avoid an error. */
8206 #ifdef __cplusplus
8207 extern "C"
8208 #endif
8209 /* We use char because int might match the return type of a gcc2
8210 builtin and then its argument prototype would still apply. */
8211 char XF86VidModeQueryExtension ();
8213 main ()
8215 XF86VidModeQueryExtension ();
8217 return 0;
8219 _ACEOF
8220 rm -f conftest.$ac_objext conftest$ac_exeext
8221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8222 (eval $ac_link) 2>conftest.er1
8223 ac_status=$?
8224 grep -v '^ *+' conftest.er1 >conftest.err
8225 rm -f conftest.er1
8226 cat conftest.err >&5
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); } &&
8229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8231 (eval $ac_try) 2>&5
8232 ac_status=$?
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); }; } &&
8235 { ac_try='test -s conftest$ac_exeext'
8236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8237 (eval $ac_try) 2>&5
8238 ac_status=$?
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); }; }; then
8241 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
8242 else
8243 echo "$as_me: failed program was:" >&5
8244 sed 's/^/| /' conftest.$ac_ext >&5
8246 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
8248 rm -f conftest.err conftest.$ac_objext \
8249 conftest$ac_exeext conftest.$ac_ext
8250 LIBS=$ac_check_lib_save_LIBS
8252 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
8253 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
8254 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
8256 cat >>confdefs.h <<\_ACEOF
8257 #define HAVE_LIBXXF86VM 1
8258 _ACEOF
8260 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
8266 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
8267 then
8268 echo "$as_me:$LINENO: checking for XRRSetScreenConfigAndRate in -lXrandr" >&5
8269 echo $ECHO_N "checking for XRRSetScreenConfigAndRate in -lXrandr... $ECHO_C" >&6
8270 if test "${ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate+set}" = set; then
8271 echo $ECHO_N "(cached) $ECHO_C" >&6
8272 else
8273 ac_check_lib_save_LIBS=$LIBS
8274 LIBS="-lXrandr $X_LIBS -lXrender -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8275 cat >conftest.$ac_ext <<_ACEOF
8276 /* confdefs.h. */
8277 _ACEOF
8278 cat confdefs.h >>conftest.$ac_ext
8279 cat >>conftest.$ac_ext <<_ACEOF
8280 /* end confdefs.h. */
8282 /* Override any gcc2 internal prototype to avoid an error. */
8283 #ifdef __cplusplus
8284 extern "C"
8285 #endif
8286 /* We use char because int might match the return type of a gcc2
8287 builtin and then its argument prototype would still apply. */
8288 char XRRSetScreenConfigAndRate ();
8290 main ()
8292 XRRSetScreenConfigAndRate ();
8294 return 0;
8296 _ACEOF
8297 rm -f conftest.$ac_objext conftest$ac_exeext
8298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8299 (eval $ac_link) 2>conftest.er1
8300 ac_status=$?
8301 grep -v '^ *+' conftest.er1 >conftest.err
8302 rm -f conftest.er1
8303 cat conftest.err >&5
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); } &&
8306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8308 (eval $ac_try) 2>&5
8309 ac_status=$?
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); }; } &&
8312 { ac_try='test -s conftest$ac_exeext'
8313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8314 (eval $ac_try) 2>&5
8315 ac_status=$?
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); }; }; then
8318 ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate=yes
8319 else
8320 echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8323 ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate=no
8325 rm -f conftest.err conftest.$ac_objext \
8326 conftest$ac_exeext conftest.$ac_ext
8327 LIBS=$ac_check_lib_save_LIBS
8329 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate" >&5
8330 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate" >&6
8331 if test $ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate = yes; then
8333 cat >>confdefs.h <<\_ACEOF
8334 #define HAVE_LIBXRANDR 1
8335 _ACEOF
8337 X_PRE_LIBS="$X_PRE_LIBS -lXrandr -lXrender"
8343 if test "$ac_cv_header_X11_extensions_Xvlib_h" = "yes"
8344 then
8345 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
8346 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
8347 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
8348 echo $ECHO_N "(cached) $ECHO_C" >&6
8349 else
8350 ac_check_lib_save_LIBS=$LIBS
8351 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8352 cat >conftest.$ac_ext <<_ACEOF
8353 /* confdefs.h. */
8354 _ACEOF
8355 cat confdefs.h >>conftest.$ac_ext
8356 cat >>conftest.$ac_ext <<_ACEOF
8357 /* end confdefs.h. */
8359 /* Override any gcc2 internal prototype to avoid an error. */
8360 #ifdef __cplusplus
8361 extern "C"
8362 #endif
8363 /* We use char because int might match the return type of a gcc2
8364 builtin and then its argument prototype would still apply. */
8365 char XvShmCreateImage ();
8367 main ()
8369 XvShmCreateImage ();
8371 return 0;
8373 _ACEOF
8374 rm -f conftest.$ac_objext conftest$ac_exeext
8375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8376 (eval $ac_link) 2>conftest.er1
8377 ac_status=$?
8378 grep -v '^ *+' conftest.er1 >conftest.err
8379 rm -f conftest.er1
8380 cat conftest.err >&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); } &&
8383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8385 (eval $ac_try) 2>&5
8386 ac_status=$?
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); }; } &&
8389 { ac_try='test -s conftest$ac_exeext'
8390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8391 (eval $ac_try) 2>&5
8392 ac_status=$?
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); }; }; then
8395 ac_cv_lib_Xv_XvShmCreateImage=yes
8396 else
8397 echo "$as_me: failed program was:" >&5
8398 sed 's/^/| /' conftest.$ac_ext >&5
8400 ac_cv_lib_Xv_XvShmCreateImage=no
8402 rm -f conftest.err conftest.$ac_objext \
8403 conftest$ac_exeext conftest.$ac_ext
8404 LIBS=$ac_check_lib_save_LIBS
8406 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
8407 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
8408 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
8410 cat >>confdefs.h <<\_ACEOF
8411 #define HAVE_XVIDEO 1
8412 _ACEOF
8414 X_PRE_LIBS="$X_PRE_LIBS -lXv"
8423 done
8425 if test "x$with_opengl" != "xno"
8426 then
8427 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
8428 then
8429 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
8430 This prevents linking to OpenGL. Delete the file and restart configure." >&5
8431 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
8432 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
8433 { (exit 1); exit 1; }; }
8438 for ac_header in GL/gl.h GL/glx.h
8440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8442 echo "$as_me:$LINENO: checking for $ac_header" >&5
8443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8445 echo $ECHO_N "(cached) $ECHO_C" >&6
8447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8449 else
8450 # Is the header compilable?
8451 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8453 cat >conftest.$ac_ext <<_ACEOF
8454 /* confdefs.h. */
8455 _ACEOF
8456 cat confdefs.h >>conftest.$ac_ext
8457 cat >>conftest.$ac_ext <<_ACEOF
8458 /* end confdefs.h. */
8459 $ac_includes_default
8460 #include <$ac_header>
8461 _ACEOF
8462 rm -f conftest.$ac_objext
8463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8464 (eval $ac_compile) 2>conftest.er1
8465 ac_status=$?
8466 grep -v '^ *+' conftest.er1 >conftest.err
8467 rm -f conftest.er1
8468 cat conftest.err >&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); } &&
8471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473 (eval $ac_try) 2>&5
8474 ac_status=$?
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); }; } &&
8477 { ac_try='test -s conftest.$ac_objext'
8478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8479 (eval $ac_try) 2>&5
8480 ac_status=$?
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); }; }; then
8483 ac_header_compiler=yes
8484 else
8485 echo "$as_me: failed program was:" >&5
8486 sed 's/^/| /' conftest.$ac_ext >&5
8488 ac_header_compiler=no
8490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8491 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8492 echo "${ECHO_T}$ac_header_compiler" >&6
8494 # Is the header present?
8495 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8497 cat >conftest.$ac_ext <<_ACEOF
8498 /* confdefs.h. */
8499 _ACEOF
8500 cat confdefs.h >>conftest.$ac_ext
8501 cat >>conftest.$ac_ext <<_ACEOF
8502 /* end confdefs.h. */
8503 #include <$ac_header>
8504 _ACEOF
8505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8506 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8507 ac_status=$?
8508 grep -v '^ *+' conftest.er1 >conftest.err
8509 rm -f conftest.er1
8510 cat conftest.err >&5
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); } >/dev/null; then
8513 if test -s conftest.err; then
8514 ac_cpp_err=$ac_c_preproc_warn_flag
8515 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8516 else
8517 ac_cpp_err=
8519 else
8520 ac_cpp_err=yes
8522 if test -z "$ac_cpp_err"; then
8523 ac_header_preproc=yes
8524 else
8525 echo "$as_me: failed program was:" >&5
8526 sed 's/^/| /' conftest.$ac_ext >&5
8528 ac_header_preproc=no
8530 rm -f conftest.err conftest.$ac_ext
8531 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8532 echo "${ECHO_T}$ac_header_preproc" >&6
8534 # So? What about this header?
8535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8536 yes:no: )
8537 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8538 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8540 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8541 ac_header_preproc=yes
8543 no:yes:* )
8544 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8546 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8547 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8548 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8549 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8550 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8551 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8554 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8555 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8557 cat <<\_ASBOX
8558 ## ------------------------------------ ##
8559 ## Report this to wine-devel@winehq.org ##
8560 ## ------------------------------------ ##
8561 _ASBOX
8563 sed "s/^/$as_me: WARNING: /" >&2
8565 esac
8566 echo "$as_me:$LINENO: checking for $ac_header" >&5
8567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8569 echo $ECHO_N "(cached) $ECHO_C" >&6
8570 else
8571 eval "$as_ac_Header=\$ac_header_preproc"
8573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8578 cat >>confdefs.h <<_ACEOF
8579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8580 _ACEOF
8584 done
8586 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8587 then
8589 for ac_header in GL/glext.h
8591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8592 echo "$as_me:$LINENO: checking for $ac_header" >&5
8593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8595 echo $ECHO_N "(cached) $ECHO_C" >&6
8596 else
8597 cat >conftest.$ac_ext <<_ACEOF
8598 /* confdefs.h. */
8599 _ACEOF
8600 cat confdefs.h >>conftest.$ac_ext
8601 cat >>conftest.$ac_ext <<_ACEOF
8602 /* end confdefs.h. */
8603 #include <GL/glx.h>
8605 #include <$ac_header>
8606 _ACEOF
8607 rm -f conftest.$ac_objext
8608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8609 (eval $ac_compile) 2>conftest.er1
8610 ac_status=$?
8611 grep -v '^ *+' conftest.er1 >conftest.err
8612 rm -f conftest.er1
8613 cat conftest.err >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); } &&
8616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8618 (eval $ac_try) 2>&5
8619 ac_status=$?
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; } &&
8622 { ac_try='test -s conftest.$ac_objext'
8623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8624 (eval $ac_try) 2>&5
8625 ac_status=$?
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); }; }; then
8628 eval "$as_ac_Header=yes"
8629 else
8630 echo "$as_me: failed program was:" >&5
8631 sed 's/^/| /' conftest.$ac_ext >&5
8633 eval "$as_ac_Header=no"
8635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8640 cat >>confdefs.h <<_ACEOF
8641 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8642 _ACEOF
8646 done
8648 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
8649 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
8650 if test "${wine_cv_opengl_version_OK+set}" = set; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
8652 else
8653 cat >conftest.$ac_ext <<_ACEOF
8654 /* confdefs.h. */
8655 _ACEOF
8656 cat confdefs.h >>conftest.$ac_ext
8657 cat >>conftest.$ac_ext <<_ACEOF
8658 /* end confdefs.h. */
8659 #include <GL/gl.h>
8661 main ()
8663 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8665 return 0;
8667 _ACEOF
8668 rm -f conftest.$ac_objext
8669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8670 (eval $ac_compile) 2>conftest.er1
8671 ac_status=$?
8672 grep -v '^ *+' conftest.er1 >conftest.err
8673 rm -f conftest.er1
8674 cat conftest.err >&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); } &&
8677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8679 (eval $ac_try) 2>&5
8680 ac_status=$?
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); }; } &&
8683 { ac_try='test -s conftest.$ac_objext'
8684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8685 (eval $ac_try) 2>&5
8686 ac_status=$?
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); }; }; then
8689 wine_cv_opengl_version_OK="yes"
8690 else
8691 echo "$as_me: failed program was:" >&5
8692 sed 's/^/| /' conftest.$ac_ext >&5
8694 wine_cv_opengl_version_OK="no"
8697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8700 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
8701 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
8703 if test "$wine_cv_opengl_version_OK" = "yes"
8704 then
8705 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
8706 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
8707 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8708 echo $ECHO_N "(cached) $ECHO_C" >&6
8709 else
8710 ac_check_lib_save_LIBS=$LIBS
8711 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8712 cat >conftest.$ac_ext <<_ACEOF
8713 /* confdefs.h. */
8714 _ACEOF
8715 cat confdefs.h >>conftest.$ac_ext
8716 cat >>conftest.$ac_ext <<_ACEOF
8717 /* end confdefs.h. */
8719 /* Override any gcc2 internal prototype to avoid an error. */
8720 #ifdef __cplusplus
8721 extern "C"
8722 #endif
8723 /* We use char because int might match the return type of a gcc2
8724 builtin and then its argument prototype would still apply. */
8725 char glXCreateContext ();
8727 main ()
8729 glXCreateContext ();
8731 return 0;
8733 _ACEOF
8734 rm -f conftest.$ac_objext conftest$ac_exeext
8735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8736 (eval $ac_link) 2>conftest.er1
8737 ac_status=$?
8738 grep -v '^ *+' conftest.er1 >conftest.err
8739 rm -f conftest.er1
8740 cat conftest.err >&5
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); } &&
8743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8745 (eval $ac_try) 2>&5
8746 ac_status=$?
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); }; } &&
8749 { ac_try='test -s conftest$ac_exeext'
8750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8751 (eval $ac_try) 2>&5
8752 ac_status=$?
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); }; }; then
8755 ac_cv_lib_GL_glXCreateContext=yes
8756 else
8757 echo "$as_me: failed program was:" >&5
8758 sed 's/^/| /' conftest.$ac_ext >&5
8760 ac_cv_lib_GL_glXCreateContext=no
8762 rm -f conftest.err conftest.$ac_objext \
8763 conftest$ac_exeext conftest.$ac_ext
8764 LIBS=$ac_check_lib_save_LIBS
8766 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
8767 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8768 if test $ac_cv_lib_GL_glXCreateContext = yes; then
8769 OPENGL_LIBS="-lGL"
8774 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
8775 then
8776 OPENGLFILES='$(OPENGLFILES)'
8778 cat >>confdefs.h <<\_ACEOF
8779 #define HAVE_OPENGL 1
8780 _ACEOF
8783 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
8784 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
8785 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
8786 echo $ECHO_N "(cached) $ECHO_C" >&6
8787 else
8788 ac_check_lib_save_LIBS=$LIBS
8789 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8790 cat >conftest.$ac_ext <<_ACEOF
8791 /* confdefs.h. */
8792 _ACEOF
8793 cat confdefs.h >>conftest.$ac_ext
8794 cat >>conftest.$ac_ext <<_ACEOF
8795 /* end confdefs.h. */
8797 /* Override any gcc2 internal prototype to avoid an error. */
8798 #ifdef __cplusplus
8799 extern "C"
8800 #endif
8801 /* We use char because int might match the return type of a gcc2
8802 builtin and then its argument prototype would still apply. */
8803 char glXGetProcAddressARB ();
8805 main ()
8807 glXGetProcAddressARB ();
8809 return 0;
8811 _ACEOF
8812 rm -f conftest.$ac_objext conftest$ac_exeext
8813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8814 (eval $ac_link) 2>conftest.er1
8815 ac_status=$?
8816 grep -v '^ *+' conftest.er1 >conftest.err
8817 rm -f conftest.er1
8818 cat conftest.err >&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); } &&
8821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8823 (eval $ac_try) 2>&5
8824 ac_status=$?
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); }; } &&
8827 { ac_try='test -s conftest$ac_exeext'
8828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8829 (eval $ac_try) 2>&5
8830 ac_status=$?
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); }; }; then
8833 ac_cv_lib_GL_glXGetProcAddressARB=yes
8834 else
8835 echo "$as_me: failed program was:" >&5
8836 sed 's/^/| /' conftest.$ac_ext >&5
8838 ac_cv_lib_GL_glXGetProcAddressARB=no
8840 rm -f conftest.err conftest.$ac_objext \
8841 conftest$ac_exeext conftest.$ac_ext
8842 LIBS=$ac_check_lib_save_LIBS
8844 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
8845 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
8846 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
8848 cat >>confdefs.h <<\_ACEOF
8849 #define HAVE_GLX_GETPROCADDRESS 1
8850 _ACEOF
8855 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
8856 then
8857 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
8858 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
8859 if test "${wine_cv_extension_prototypes+set}" = set; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8861 else
8862 cat >conftest.$ac_ext <<_ACEOF
8863 /* confdefs.h. */
8864 _ACEOF
8865 cat confdefs.h >>conftest.$ac_ext
8866 cat >>conftest.$ac_ext <<_ACEOF
8867 /* end confdefs.h. */
8868 #include <GL/gl.h>
8869 #ifdef HAVE_GL_GLEXT_H
8870 # include <GL/glext.h>
8871 #endif
8874 main ()
8876 PFNGLCOLORTABLEEXTPROC test_proc;
8878 return 0;
8880 _ACEOF
8881 rm -f conftest.$ac_objext
8882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8883 (eval $ac_compile) 2>conftest.er1
8884 ac_status=$?
8885 grep -v '^ *+' conftest.er1 >conftest.err
8886 rm -f conftest.er1
8887 cat conftest.err >&5
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); } &&
8890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8892 (eval $ac_try) 2>&5
8893 ac_status=$?
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 (exit $ac_status); }; } &&
8896 { ac_try='test -s conftest.$ac_objext'
8897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8898 (eval $ac_try) 2>&5
8899 ac_status=$?
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); }; }; then
8902 wine_cv_extension_prototypes="yes"
8903 else
8904 echo "$as_me: failed program was:" >&5
8905 sed 's/^/| /' conftest.$ac_ext >&5
8907 wine_cv_extension_prototypes="no"
8910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8913 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
8914 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
8915 if test "$wine_cv_extension_prototypes" = "yes"
8916 then
8918 cat >>confdefs.h <<\_ACEOF
8919 #define HAVE_GLEXT_PROTOTYPES 1
8920 _ACEOF
8926 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
8927 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8928 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8929 echo $ECHO_N "(cached) $ECHO_C" >&6
8930 else
8931 ac_check_lib_save_LIBS=$LIBS
8932 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
8933 $LIBS"
8934 cat >conftest.$ac_ext <<_ACEOF
8935 /* confdefs.h. */
8936 _ACEOF
8937 cat confdefs.h >>conftest.$ac_ext
8938 cat >>conftest.$ac_ext <<_ACEOF
8939 /* end confdefs.h. */
8941 /* Override any gcc2 internal prototype to avoid an error. */
8942 #ifdef __cplusplus
8943 extern "C"
8944 #endif
8945 /* We use char because int might match the return type of a gcc2
8946 builtin and then its argument prototype would still apply. */
8947 char gluLookAt ();
8949 main ()
8951 gluLookAt ();
8953 return 0;
8955 _ACEOF
8956 rm -f conftest.$ac_objext conftest$ac_exeext
8957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8958 (eval $ac_link) 2>conftest.er1
8959 ac_status=$?
8960 grep -v '^ *+' conftest.er1 >conftest.err
8961 rm -f conftest.er1
8962 cat conftest.err >&5
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); } &&
8965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8967 (eval $ac_try) 2>&5
8968 ac_status=$?
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); }; } &&
8971 { ac_try='test -s conftest$ac_exeext'
8972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8973 (eval $ac_try) 2>&5
8974 ac_status=$?
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); }; }; then
8977 ac_cv_lib_GLU_gluLookAt=yes
8978 else
8979 echo "$as_me: failed program was:" >&5
8980 sed 's/^/| /' conftest.$ac_ext >&5
8982 ac_cv_lib_GLU_gluLookAt=no
8984 rm -f conftest.err conftest.$ac_objext \
8985 conftest$ac_exeext conftest.$ac_ext
8986 LIBS=$ac_check_lib_save_LIBS
8988 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
8989 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
8990 if test $ac_cv_lib_GLU_gluLookAt = yes; then
8991 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
8992 GLU32FILES='$(GLU32FILES)'
8998 echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
8999 echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6
9000 if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
9001 echo $ECHO_N "(cached) $ECHO_C" >&6
9002 else
9003 ac_check_lib_save_LIBS=$LIBS
9004 LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
9005 cat >conftest.$ac_ext <<_ACEOF
9006 /* confdefs.h. */
9007 _ACEOF
9008 cat confdefs.h >>conftest.$ac_ext
9009 cat >>conftest.$ac_ext <<_ACEOF
9010 /* end confdefs.h. */
9012 /* Override any gcc2 internal prototype to avoid an error. */
9013 #ifdef __cplusplus
9014 extern "C"
9015 #endif
9016 /* We use char because int might match the return type of a gcc2
9017 builtin and then its argument prototype would still apply. */
9018 char glutMainLoop ();
9020 main ()
9022 glutMainLoop ();
9024 return 0;
9026 _ACEOF
9027 rm -f conftest.$ac_objext conftest$ac_exeext
9028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9029 (eval $ac_link) 2>conftest.er1
9030 ac_status=$?
9031 grep -v '^ *+' conftest.er1 >conftest.err
9032 rm -f conftest.er1
9033 cat conftest.err >&5
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 (exit $ac_status); } &&
9036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9038 (eval $ac_try) 2>&5
9039 ac_status=$?
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); }; } &&
9042 { ac_try='test -s conftest$ac_exeext'
9043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044 (eval $ac_try) 2>&5
9045 ac_status=$?
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); }; }; then
9048 ac_cv_lib_glut_glutMainLoop=yes
9049 else
9050 echo "$as_me: failed program was:" >&5
9051 sed 's/^/| /' conftest.$ac_ext >&5
9053 ac_cv_lib_glut_glutMainLoop=no
9055 rm -f conftest.err conftest.$ac_objext \
9056 conftest$ac_exeext conftest.$ac_ext
9057 LIBS=$ac_check_lib_save_LIBS
9059 echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
9060 echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6
9061 if test $ac_cv_lib_glut_glutMainLoop = yes; then
9062 GLUT_LIBS="-lglut -lXmu -lXi"
9064 GLUT32FILES='$(GLUT32FILES)'
9071 NASLIBS=""
9074 for ac_header in audio/audiolib.h
9076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9078 echo "$as_me:$LINENO: checking for $ac_header" >&5
9079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9081 echo $ECHO_N "(cached) $ECHO_C" >&6
9083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9085 else
9086 # Is the header compilable?
9087 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9089 cat >conftest.$ac_ext <<_ACEOF
9090 /* confdefs.h. */
9091 _ACEOF
9092 cat confdefs.h >>conftest.$ac_ext
9093 cat >>conftest.$ac_ext <<_ACEOF
9094 /* end confdefs.h. */
9095 $ac_includes_default
9096 #include <$ac_header>
9097 _ACEOF
9098 rm -f conftest.$ac_objext
9099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9100 (eval $ac_compile) 2>conftest.er1
9101 ac_status=$?
9102 grep -v '^ *+' conftest.er1 >conftest.err
9103 rm -f conftest.er1
9104 cat conftest.err >&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); } &&
9107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109 (eval $ac_try) 2>&5
9110 ac_status=$?
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); }; } &&
9113 { ac_try='test -s conftest.$ac_objext'
9114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9115 (eval $ac_try) 2>&5
9116 ac_status=$?
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); }; }; then
9119 ac_header_compiler=yes
9120 else
9121 echo "$as_me: failed program was:" >&5
9122 sed 's/^/| /' conftest.$ac_ext >&5
9124 ac_header_compiler=no
9126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9127 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9128 echo "${ECHO_T}$ac_header_compiler" >&6
9130 # Is the header present?
9131 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9132 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9133 cat >conftest.$ac_ext <<_ACEOF
9134 /* confdefs.h. */
9135 _ACEOF
9136 cat confdefs.h >>conftest.$ac_ext
9137 cat >>conftest.$ac_ext <<_ACEOF
9138 /* end confdefs.h. */
9139 #include <$ac_header>
9140 _ACEOF
9141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9143 ac_status=$?
9144 grep -v '^ *+' conftest.er1 >conftest.err
9145 rm -f conftest.er1
9146 cat conftest.err >&5
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); } >/dev/null; then
9149 if test -s conftest.err; then
9150 ac_cpp_err=$ac_c_preproc_warn_flag
9151 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9152 else
9153 ac_cpp_err=
9155 else
9156 ac_cpp_err=yes
9158 if test -z "$ac_cpp_err"; then
9159 ac_header_preproc=yes
9160 else
9161 echo "$as_me: failed program was:" >&5
9162 sed 's/^/| /' conftest.$ac_ext >&5
9164 ac_header_preproc=no
9166 rm -f conftest.err conftest.$ac_ext
9167 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9168 echo "${ECHO_T}$ac_header_preproc" >&6
9170 # So? What about this header?
9171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9172 yes:no: )
9173 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9174 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9176 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9177 ac_header_preproc=yes
9179 no:yes:* )
9180 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9181 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9182 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9183 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9184 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9185 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9186 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9187 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9189 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9190 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9191 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9193 cat <<\_ASBOX
9194 ## ------------------------------------ ##
9195 ## Report this to wine-devel@winehq.org ##
9196 ## ------------------------------------ ##
9197 _ASBOX
9199 sed "s/^/$as_me: WARNING: /" >&2
9201 esac
9202 echo "$as_me:$LINENO: checking for $ac_header" >&5
9203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9205 echo $ECHO_N "(cached) $ECHO_C" >&6
9206 else
9207 eval "$as_ac_Header=\$ac_header_preproc"
9209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9210 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9214 cat >>confdefs.h <<_ACEOF
9215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9216 _ACEOF
9218 for ac_header in audio/soundlib.h
9220 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9221 echo "$as_me:$LINENO: checking for $ac_header" >&5
9222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9224 echo $ECHO_N "(cached) $ECHO_C" >&6
9225 else
9226 cat >conftest.$ac_ext <<_ACEOF
9227 /* confdefs.h. */
9228 _ACEOF
9229 cat confdefs.h >>conftest.$ac_ext
9230 cat >>conftest.$ac_ext <<_ACEOF
9231 /* end confdefs.h. */
9232 #include <audio/audiolib.h>
9234 #include <$ac_header>
9235 _ACEOF
9236 rm -f conftest.$ac_objext
9237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9238 (eval $ac_compile) 2>conftest.er1
9239 ac_status=$?
9240 grep -v '^ *+' conftest.er1 >conftest.err
9241 rm -f conftest.er1
9242 cat conftest.err >&5
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); } &&
9245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9247 (eval $ac_try) 2>&5
9248 ac_status=$?
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); }; } &&
9251 { ac_try='test -s conftest.$ac_objext'
9252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9253 (eval $ac_try) 2>&5
9254 ac_status=$?
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); }; }; then
9257 eval "$as_ac_Header=yes"
9258 else
9259 echo "$as_me: failed program was:" >&5
9260 sed 's/^/| /' conftest.$ac_ext >&5
9262 eval "$as_ac_Header=no"
9264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9269 cat >>confdefs.h <<_ACEOF
9270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9271 _ACEOF
9275 done
9277 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
9278 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
9279 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
9280 echo $ECHO_N "(cached) $ECHO_C" >&6
9281 else
9282 ac_check_lib_save_LIBS=$LIBS
9283 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9284 cat >conftest.$ac_ext <<_ACEOF
9285 /* confdefs.h. */
9286 _ACEOF
9287 cat confdefs.h >>conftest.$ac_ext
9288 cat >>conftest.$ac_ext <<_ACEOF
9289 /* end confdefs.h. */
9291 /* Override any gcc2 internal prototype to avoid an error. */
9292 #ifdef __cplusplus
9293 extern "C"
9294 #endif
9295 /* We use char because int might match the return type of a gcc2
9296 builtin and then its argument prototype would still apply. */
9297 char AuCreateFlow ();
9299 main ()
9301 AuCreateFlow ();
9303 return 0;
9305 _ACEOF
9306 rm -f conftest.$ac_objext conftest$ac_exeext
9307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9308 (eval $ac_link) 2>conftest.er1
9309 ac_status=$?
9310 grep -v '^ *+' conftest.er1 >conftest.err
9311 rm -f conftest.er1
9312 cat conftest.err >&5
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); } &&
9315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9317 (eval $ac_try) 2>&5
9318 ac_status=$?
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); }; } &&
9321 { ac_try='test -s conftest$ac_exeext'
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_lib_audio_AuCreateFlow=yes
9328 else
9329 echo "$as_me: failed program was:" >&5
9330 sed 's/^/| /' conftest.$ac_ext >&5
9332 ac_cv_lib_audio_AuCreateFlow=no
9334 rm -f conftest.err conftest.$ac_objext \
9335 conftest$ac_exeext conftest.$ac_ext
9336 LIBS=$ac_check_lib_save_LIBS
9338 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
9339 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
9340 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
9342 cat >>confdefs.h <<\_ACEOF
9343 #define HAVE_NAS 1
9344 _ACEOF
9346 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
9351 done
9354 CPPFLAGS="$ac_save_CPPFLAGS"
9355 XFILES='$(XFILES)'
9356 else
9357 XLIB=""
9358 X_CFLAGS=""
9359 X_LIBS=""
9362 CURSESLIBS=""
9363 if test "x$with_curses" != "xno"
9364 then
9366 for ac_header in ncurses.h
9368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9370 echo "$as_me:$LINENO: checking for $ac_header" >&5
9371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9373 echo $ECHO_N "(cached) $ECHO_C" >&6
9375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9377 else
9378 # Is the header compilable?
9379 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9381 cat >conftest.$ac_ext <<_ACEOF
9382 /* confdefs.h. */
9383 _ACEOF
9384 cat confdefs.h >>conftest.$ac_ext
9385 cat >>conftest.$ac_ext <<_ACEOF
9386 /* end confdefs.h. */
9387 $ac_includes_default
9388 #include <$ac_header>
9389 _ACEOF
9390 rm -f conftest.$ac_objext
9391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9392 (eval $ac_compile) 2>conftest.er1
9393 ac_status=$?
9394 grep -v '^ *+' conftest.er1 >conftest.err
9395 rm -f conftest.er1
9396 cat conftest.err >&5
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); } &&
9399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401 (eval $ac_try) 2>&5
9402 ac_status=$?
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); }; } &&
9405 { ac_try='test -s conftest.$ac_objext'
9406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9407 (eval $ac_try) 2>&5
9408 ac_status=$?
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); }; }; then
9411 ac_header_compiler=yes
9412 else
9413 echo "$as_me: failed program was:" >&5
9414 sed 's/^/| /' conftest.$ac_ext >&5
9416 ac_header_compiler=no
9418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9419 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9420 echo "${ECHO_T}$ac_header_compiler" >&6
9422 # Is the header present?
9423 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9425 cat >conftest.$ac_ext <<_ACEOF
9426 /* confdefs.h. */
9427 _ACEOF
9428 cat confdefs.h >>conftest.$ac_ext
9429 cat >>conftest.$ac_ext <<_ACEOF
9430 /* end confdefs.h. */
9431 #include <$ac_header>
9432 _ACEOF
9433 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9434 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9435 ac_status=$?
9436 grep -v '^ *+' conftest.er1 >conftest.err
9437 rm -f conftest.er1
9438 cat conftest.err >&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); } >/dev/null; then
9441 if test -s conftest.err; then
9442 ac_cpp_err=$ac_c_preproc_warn_flag
9443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9444 else
9445 ac_cpp_err=
9447 else
9448 ac_cpp_err=yes
9450 if test -z "$ac_cpp_err"; then
9451 ac_header_preproc=yes
9452 else
9453 echo "$as_me: failed program was:" >&5
9454 sed 's/^/| /' conftest.$ac_ext >&5
9456 ac_header_preproc=no
9458 rm -f conftest.err conftest.$ac_ext
9459 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9460 echo "${ECHO_T}$ac_header_preproc" >&6
9462 # So? What about this header?
9463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9464 yes:no: )
9465 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9466 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9468 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9469 ac_header_preproc=yes
9471 no:yes:* )
9472 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9473 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9474 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9475 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9476 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9477 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9478 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9479 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9482 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9483 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9485 cat <<\_ASBOX
9486 ## ------------------------------------ ##
9487 ## Report this to wine-devel@winehq.org ##
9488 ## ------------------------------------ ##
9489 _ASBOX
9491 sed "s/^/$as_me: WARNING: /" >&2
9493 esac
9494 echo "$as_me:$LINENO: checking for $ac_header" >&5
9495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9497 echo $ECHO_N "(cached) $ECHO_C" >&6
9498 else
9499 eval "$as_ac_Header=\$ac_header_preproc"
9501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9506 cat >>confdefs.h <<_ACEOF
9507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9508 _ACEOF
9509 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
9510 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
9511 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
9512 echo $ECHO_N "(cached) $ECHO_C" >&6
9513 else
9514 ac_check_lib_save_LIBS=$LIBS
9515 LIBS="-lncurses $LIBS"
9516 cat >conftest.$ac_ext <<_ACEOF
9517 /* confdefs.h. */
9518 _ACEOF
9519 cat confdefs.h >>conftest.$ac_ext
9520 cat >>conftest.$ac_ext <<_ACEOF
9521 /* end confdefs.h. */
9523 /* Override any gcc2 internal prototype to avoid an error. */
9524 #ifdef __cplusplus
9525 extern "C"
9526 #endif
9527 /* We use char because int might match the return type of a gcc2
9528 builtin and then its argument prototype would still apply. */
9529 char waddch ();
9531 main ()
9533 waddch ();
9535 return 0;
9537 _ACEOF
9538 rm -f conftest.$ac_objext conftest$ac_exeext
9539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9540 (eval $ac_link) 2>conftest.er1
9541 ac_status=$?
9542 grep -v '^ *+' conftest.er1 >conftest.err
9543 rm -f conftest.er1
9544 cat conftest.err >&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); } &&
9547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9549 (eval $ac_try) 2>&5
9550 ac_status=$?
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); }; } &&
9553 { ac_try='test -s conftest$ac_exeext'
9554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9555 (eval $ac_try) 2>&5
9556 ac_status=$?
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); }; }; then
9559 ac_cv_lib_ncurses_waddch=yes
9560 else
9561 echo "$as_me: failed program was:" >&5
9562 sed 's/^/| /' conftest.$ac_ext >&5
9564 ac_cv_lib_ncurses_waddch=no
9566 rm -f conftest.err conftest.$ac_objext \
9567 conftest$ac_exeext conftest.$ac_ext
9568 LIBS=$ac_check_lib_save_LIBS
9570 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
9571 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
9572 if test $ac_cv_lib_ncurses_waddch = yes; then
9574 cat >>confdefs.h <<\_ACEOF
9575 #define HAVE_LIBNCURSES 1
9576 _ACEOF
9578 CURSESLIBS="-lncurses"
9579 else
9581 for ac_header in curses.h
9583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9585 echo "$as_me:$LINENO: checking for $ac_header" >&5
9586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9588 echo $ECHO_N "(cached) $ECHO_C" >&6
9590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9592 else
9593 # Is the header compilable?
9594 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9595 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9596 cat >conftest.$ac_ext <<_ACEOF
9597 /* confdefs.h. */
9598 _ACEOF
9599 cat confdefs.h >>conftest.$ac_ext
9600 cat >>conftest.$ac_ext <<_ACEOF
9601 /* end confdefs.h. */
9602 $ac_includes_default
9603 #include <$ac_header>
9604 _ACEOF
9605 rm -f conftest.$ac_objext
9606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9607 (eval $ac_compile) 2>conftest.er1
9608 ac_status=$?
9609 grep -v '^ *+' conftest.er1 >conftest.err
9610 rm -f conftest.er1
9611 cat conftest.err >&5
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); } &&
9614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9616 (eval $ac_try) 2>&5
9617 ac_status=$?
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); }; } &&
9620 { ac_try='test -s conftest.$ac_objext'
9621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9622 (eval $ac_try) 2>&5
9623 ac_status=$?
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; }; then
9626 ac_header_compiler=yes
9627 else
9628 echo "$as_me: failed program was:" >&5
9629 sed 's/^/| /' conftest.$ac_ext >&5
9631 ac_header_compiler=no
9633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9634 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9635 echo "${ECHO_T}$ac_header_compiler" >&6
9637 # Is the header present?
9638 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9639 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9640 cat >conftest.$ac_ext <<_ACEOF
9641 /* confdefs.h. */
9642 _ACEOF
9643 cat confdefs.h >>conftest.$ac_ext
9644 cat >>conftest.$ac_ext <<_ACEOF
9645 /* end confdefs.h. */
9646 #include <$ac_header>
9647 _ACEOF
9648 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9649 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9650 ac_status=$?
9651 grep -v '^ *+' conftest.er1 >conftest.err
9652 rm -f conftest.er1
9653 cat conftest.err >&5
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); } >/dev/null; then
9656 if test -s conftest.err; then
9657 ac_cpp_err=$ac_c_preproc_warn_flag
9658 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9659 else
9660 ac_cpp_err=
9662 else
9663 ac_cpp_err=yes
9665 if test -z "$ac_cpp_err"; then
9666 ac_header_preproc=yes
9667 else
9668 echo "$as_me: failed program was:" >&5
9669 sed 's/^/| /' conftest.$ac_ext >&5
9671 ac_header_preproc=no
9673 rm -f conftest.err conftest.$ac_ext
9674 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9675 echo "${ECHO_T}$ac_header_preproc" >&6
9677 # So? What about this header?
9678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9679 yes:no: )
9680 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9681 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9683 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9684 ac_header_preproc=yes
9686 no:yes:* )
9687 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9688 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9689 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9690 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9691 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9692 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9693 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9694 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9697 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9698 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9700 cat <<\_ASBOX
9701 ## ------------------------------------ ##
9702 ## Report this to wine-devel@winehq.org ##
9703 ## ------------------------------------ ##
9704 _ASBOX
9706 sed "s/^/$as_me: WARNING: /" >&2
9708 esac
9709 echo "$as_me:$LINENO: checking for $ac_header" >&5
9710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9712 echo $ECHO_N "(cached) $ECHO_C" >&6
9713 else
9714 eval "$as_ac_Header=\$ac_header_preproc"
9716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9721 cat >>confdefs.h <<_ACEOF
9722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9723 _ACEOF
9724 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
9725 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
9726 if test "${ac_cv_lib_curses_waddch+set}" = set; then
9727 echo $ECHO_N "(cached) $ECHO_C" >&6
9728 else
9729 ac_check_lib_save_LIBS=$LIBS
9730 LIBS="-lcurses $LIBS"
9731 cat >conftest.$ac_ext <<_ACEOF
9732 /* confdefs.h. */
9733 _ACEOF
9734 cat confdefs.h >>conftest.$ac_ext
9735 cat >>conftest.$ac_ext <<_ACEOF
9736 /* end confdefs.h. */
9738 /* Override any gcc2 internal prototype to avoid an error. */
9739 #ifdef __cplusplus
9740 extern "C"
9741 #endif
9742 /* We use char because int might match the return type of a gcc2
9743 builtin and then its argument prototype would still apply. */
9744 char waddch ();
9746 main ()
9748 waddch ();
9750 return 0;
9752 _ACEOF
9753 rm -f conftest.$ac_objext conftest$ac_exeext
9754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9755 (eval $ac_link) 2>conftest.er1
9756 ac_status=$?
9757 grep -v '^ *+' conftest.er1 >conftest.err
9758 rm -f conftest.er1
9759 cat conftest.err >&5
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); } &&
9762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9764 (eval $ac_try) 2>&5
9765 ac_status=$?
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); }; } &&
9768 { ac_try='test -s conftest$ac_exeext'
9769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9770 (eval $ac_try) 2>&5
9771 ac_status=$?
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); }; }; then
9774 ac_cv_lib_curses_waddch=yes
9775 else
9776 echo "$as_me: failed program was:" >&5
9777 sed 's/^/| /' conftest.$ac_ext >&5
9779 ac_cv_lib_curses_waddch=no
9781 rm -f conftest.err conftest.$ac_objext \
9782 conftest$ac_exeext conftest.$ac_ext
9783 LIBS=$ac_check_lib_save_LIBS
9785 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
9786 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
9787 if test $ac_cv_lib_curses_waddch = yes; then
9789 cat >>confdefs.h <<\_ACEOF
9790 #define HAVE_LIBCURSES 1
9791 _ACEOF
9793 CURSESLIBS="-lcurses"
9798 done
9804 done
9806 saved_libs="$LIBS"
9807 LIBS="$CURSESLIBS $LIBS"
9810 for ac_func in getbkgd resizeterm
9812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9813 echo "$as_me:$LINENO: checking for $ac_func" >&5
9814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9815 if eval "test \"\${$as_ac_var+set}\" = set"; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
9817 else
9818 cat >conftest.$ac_ext <<_ACEOF
9819 /* confdefs.h. */
9820 _ACEOF
9821 cat confdefs.h >>conftest.$ac_ext
9822 cat >>conftest.$ac_ext <<_ACEOF
9823 /* end confdefs.h. */
9824 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9826 #define $ac_func innocuous_$ac_func
9828 /* System header to define __stub macros and hopefully few prototypes,
9829 which can conflict with char $ac_func (); below.
9830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9831 <limits.h> exists even on freestanding compilers. */
9833 #ifdef __STDC__
9834 # include <limits.h>
9835 #else
9836 # include <assert.h>
9837 #endif
9839 #undef $ac_func
9841 /* Override any gcc2 internal prototype to avoid an error. */
9842 #ifdef __cplusplus
9843 extern "C"
9845 #endif
9846 /* We use char because int might match the return type of a gcc2
9847 builtin and then its argument prototype would still apply. */
9848 char $ac_func ();
9849 /* The GNU C library defines this for functions which it implements
9850 to always fail with ENOSYS. Some functions are actually named
9851 something starting with __ and the normal name is an alias. */
9852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9853 choke me
9854 #else
9855 char (*f) () = $ac_func;
9856 #endif
9857 #ifdef __cplusplus
9859 #endif
9862 main ()
9864 return f != $ac_func;
9866 return 0;
9868 _ACEOF
9869 rm -f conftest.$ac_objext conftest$ac_exeext
9870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9871 (eval $ac_link) 2>conftest.er1
9872 ac_status=$?
9873 grep -v '^ *+' conftest.er1 >conftest.err
9874 rm -f conftest.er1
9875 cat conftest.err >&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); } &&
9878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9880 (eval $ac_try) 2>&5
9881 ac_status=$?
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); }; } &&
9884 { ac_try='test -s conftest$ac_exeext'
9885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9886 (eval $ac_try) 2>&5
9887 ac_status=$?
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); }; }; then
9890 eval "$as_ac_var=yes"
9891 else
9892 echo "$as_me: failed program was:" >&5
9893 sed 's/^/| /' conftest.$ac_ext >&5
9895 eval "$as_ac_var=no"
9897 rm -f conftest.err conftest.$ac_objext \
9898 conftest$ac_exeext conftest.$ac_ext
9900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9901 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9902 if test `eval echo '${'$as_ac_var'}'` = yes; then
9903 cat >>confdefs.h <<_ACEOF
9904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9905 _ACEOF
9908 done
9910 LIBS="$saved_libs"
9914 # Extract the first word of "sane-config", so it can be a program name with args.
9915 set dummy sane-config; ac_word=$2
9916 echo "$as_me:$LINENO: checking for $ac_word" >&5
9917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9918 if test "${ac_cv_prog_sane_devel+set}" = set; then
9919 echo $ECHO_N "(cached) $ECHO_C" >&6
9920 else
9921 if test -n "$sane_devel"; then
9922 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9923 else
9924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9925 for as_dir in $PATH
9927 IFS=$as_save_IFS
9928 test -z "$as_dir" && as_dir=.
9929 for ac_exec_ext in '' $ac_executable_extensions; do
9930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9931 ac_cv_prog_sane_devel="sane-config"
9932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9933 break 2
9935 done
9936 done
9938 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9941 sane_devel=$ac_cv_prog_sane_devel
9942 if test -n "$sane_devel"; then
9943 echo "$as_me:$LINENO: result: $sane_devel" >&5
9944 echo "${ECHO_T}$sane_devel" >&6
9945 else
9946 echo "$as_me:$LINENO: result: no" >&5
9947 echo "${ECHO_T}no" >&6
9950 if test "$sane_devel" = "no"
9951 then
9952 SANELIBS=""
9953 SANEINCL=""
9954 else
9955 SANELIBS="`$sane_devel --libs`"
9956 SANEINCL="`$sane_devel --cflags`"
9957 ac_save_CPPFLAGS="$CPPFLAGS"
9958 ac_save_LIBS="$LIBS"
9959 CPPFLAGS="$CPPFLAGS $SANEINCL"
9960 LIBS="$LIBS $SANELIBS"
9961 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9962 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9963 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9964 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9965 echo $ECHO_N "(cached) $ECHO_C" >&6
9967 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9968 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9969 else
9970 # Is the header compilable?
9971 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
9972 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
9973 cat >conftest.$ac_ext <<_ACEOF
9974 /* confdefs.h. */
9975 _ACEOF
9976 cat confdefs.h >>conftest.$ac_ext
9977 cat >>conftest.$ac_ext <<_ACEOF
9978 /* end confdefs.h. */
9979 $ac_includes_default
9980 #include <sane/sane.h>
9981 _ACEOF
9982 rm -f conftest.$ac_objext
9983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9984 (eval $ac_compile) 2>conftest.er1
9985 ac_status=$?
9986 grep -v '^ *+' conftest.er1 >conftest.err
9987 rm -f conftest.er1
9988 cat conftest.err >&5
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); } &&
9991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9993 (eval $ac_try) 2>&5
9994 ac_status=$?
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); }; } &&
9997 { ac_try='test -s conftest.$ac_objext'
9998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999 (eval $ac_try) 2>&5
10000 ac_status=$?
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; }; then
10003 ac_header_compiler=yes
10004 else
10005 echo "$as_me: failed program was:" >&5
10006 sed 's/^/| /' conftest.$ac_ext >&5
10008 ac_header_compiler=no
10010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10011 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10012 echo "${ECHO_T}$ac_header_compiler" >&6
10014 # Is the header present?
10015 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
10016 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
10017 cat >conftest.$ac_ext <<_ACEOF
10018 /* confdefs.h. */
10019 _ACEOF
10020 cat confdefs.h >>conftest.$ac_ext
10021 cat >>conftest.$ac_ext <<_ACEOF
10022 /* end confdefs.h. */
10023 #include <sane/sane.h>
10024 _ACEOF
10025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10027 ac_status=$?
10028 grep -v '^ *+' conftest.er1 >conftest.err
10029 rm -f conftest.er1
10030 cat conftest.err >&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); } >/dev/null; then
10033 if test -s conftest.err; then
10034 ac_cpp_err=$ac_c_preproc_warn_flag
10035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10036 else
10037 ac_cpp_err=
10039 else
10040 ac_cpp_err=yes
10042 if test -z "$ac_cpp_err"; then
10043 ac_header_preproc=yes
10044 else
10045 echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.$ac_ext >&5
10048 ac_header_preproc=no
10050 rm -f conftest.err conftest.$ac_ext
10051 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10052 echo "${ECHO_T}$ac_header_preproc" >&6
10054 # So? What about this header?
10055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10056 yes:no: )
10057 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
10058 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10059 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
10060 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
10061 ac_header_preproc=yes
10063 no:yes:* )
10064 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
10065 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
10066 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
10067 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
10068 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
10069 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
10070 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
10071 echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
10072 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
10073 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
10074 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
10075 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
10077 cat <<\_ASBOX
10078 ## ------------------------------------ ##
10079 ## Report this to wine-devel@winehq.org ##
10080 ## ------------------------------------ ##
10081 _ASBOX
10083 sed "s/^/$as_me: WARNING: /" >&2
10085 esac
10086 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
10087 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
10088 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10089 echo $ECHO_N "(cached) $ECHO_C" >&6
10090 else
10091 ac_cv_header_sane_sane_h=$ac_header_preproc
10093 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
10094 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
10097 if test $ac_cv_header_sane_sane_h = yes; then
10098 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
10099 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
10100 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
10101 echo $ECHO_N "(cached) $ECHO_C" >&6
10102 else
10103 ac_check_lib_save_LIBS=$LIBS
10104 LIBS="-lsane $LIBS"
10105 cat >conftest.$ac_ext <<_ACEOF
10106 /* confdefs.h. */
10107 _ACEOF
10108 cat confdefs.h >>conftest.$ac_ext
10109 cat >>conftest.$ac_ext <<_ACEOF
10110 /* end confdefs.h. */
10112 /* Override any gcc2 internal prototype to avoid an error. */
10113 #ifdef __cplusplus
10114 extern "C"
10115 #endif
10116 /* We use char because int might match the return type of a gcc2
10117 builtin and then its argument prototype would still apply. */
10118 char sane_open ();
10120 main ()
10122 sane_open ();
10124 return 0;
10126 _ACEOF
10127 rm -f conftest.$ac_objext conftest$ac_exeext
10128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10129 (eval $ac_link) 2>conftest.er1
10130 ac_status=$?
10131 grep -v '^ *+' conftest.er1 >conftest.err
10132 rm -f conftest.er1
10133 cat conftest.err >&5
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); } &&
10136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10138 (eval $ac_try) 2>&5
10139 ac_status=$?
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); }; } &&
10142 { ac_try='test -s conftest$ac_exeext'
10143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10144 (eval $ac_try) 2>&5
10145 ac_status=$?
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); }; }; then
10148 ac_cv_lib_sane_sane_open=yes
10149 else
10150 echo "$as_me: failed program was:" >&5
10151 sed 's/^/| /' conftest.$ac_ext >&5
10153 ac_cv_lib_sane_sane_open=no
10155 rm -f conftest.err conftest.$ac_objext \
10156 conftest$ac_exeext conftest.$ac_ext
10157 LIBS=$ac_check_lib_save_LIBS
10159 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
10160 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
10161 if test $ac_cv_lib_sane_sane_open = yes; then
10163 cat >>confdefs.h <<\_ACEOF
10164 #define HAVE_SANE 1
10165 _ACEOF
10167 else
10168 SANELIBS=""
10169 SANEINCL=""
10172 else
10173 SANELIBS=""
10174 SANEINCL=""
10178 LIBS="$ac_save_LIBS"
10179 CPPFLAGS="$ac_save_CPPFLAGS"
10185 for ac_header in unicode/ubidi.h
10187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10189 echo "$as_me:$LINENO: checking for $ac_header" >&5
10190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10192 echo $ECHO_N "(cached) $ECHO_C" >&6
10194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10196 else
10197 # Is the header compilable?
10198 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10199 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10200 cat >conftest.$ac_ext <<_ACEOF
10201 /* confdefs.h. */
10202 _ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h. */
10206 $ac_includes_default
10207 #include <$ac_header>
10208 _ACEOF
10209 rm -f conftest.$ac_objext
10210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10211 (eval $ac_compile) 2>conftest.er1
10212 ac_status=$?
10213 grep -v '^ *+' conftest.er1 >conftest.err
10214 rm -f conftest.er1
10215 cat conftest.err >&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } &&
10218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10220 (eval $ac_try) 2>&5
10221 ac_status=$?
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; } &&
10224 { ac_try='test -s conftest.$ac_objext'
10225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10226 (eval $ac_try) 2>&5
10227 ac_status=$?
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); }; }; then
10230 ac_header_compiler=yes
10231 else
10232 echo "$as_me: failed program was:" >&5
10233 sed 's/^/| /' conftest.$ac_ext >&5
10235 ac_header_compiler=no
10237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10238 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10239 echo "${ECHO_T}$ac_header_compiler" >&6
10241 # Is the header present?
10242 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10244 cat >conftest.$ac_ext <<_ACEOF
10245 /* confdefs.h. */
10246 _ACEOF
10247 cat confdefs.h >>conftest.$ac_ext
10248 cat >>conftest.$ac_ext <<_ACEOF
10249 /* end confdefs.h. */
10250 #include <$ac_header>
10251 _ACEOF
10252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10254 ac_status=$?
10255 grep -v '^ *+' conftest.er1 >conftest.err
10256 rm -f conftest.er1
10257 cat conftest.err >&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); } >/dev/null; then
10260 if test -s conftest.err; then
10261 ac_cpp_err=$ac_c_preproc_warn_flag
10262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10263 else
10264 ac_cpp_err=
10266 else
10267 ac_cpp_err=yes
10269 if test -z "$ac_cpp_err"; then
10270 ac_header_preproc=yes
10271 else
10272 echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.$ac_ext >&5
10275 ac_header_preproc=no
10277 rm -f conftest.err conftest.$ac_ext
10278 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10279 echo "${ECHO_T}$ac_header_preproc" >&6
10281 # So? What about this header?
10282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10283 yes:no: )
10284 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10285 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10287 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10288 ac_header_preproc=yes
10290 no:yes:* )
10291 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10292 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10293 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10294 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10295 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10296 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10297 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10298 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10300 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10301 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10302 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10304 cat <<\_ASBOX
10305 ## ------------------------------------ ##
10306 ## Report this to wine-devel@winehq.org ##
10307 ## ------------------------------------ ##
10308 _ASBOX
10310 sed "s/^/$as_me: WARNING: /" >&2
10312 esac
10313 echo "$as_me:$LINENO: checking for $ac_header" >&5
10314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10316 echo $ECHO_N "(cached) $ECHO_C" >&6
10317 else
10318 eval "$as_ac_Header=\$ac_header_preproc"
10320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10324 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10325 cat >>confdefs.h <<_ACEOF
10326 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10327 _ACEOF
10331 done
10333 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
10334 then
10335 saved_libs="$LIBS"
10336 ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
10337 ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libsicuuc.a}"
10338 ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libsicudata.a}"
10339 echo "$as_me:$LINENO: checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB" >&5
10340 echo $ECHO_N "checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB... $ECHO_C" >&6
10341 LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
10342 cat >conftest.$ac_ext <<_ACEOF
10343 /* confdefs.h. */
10344 _ACEOF
10345 cat confdefs.h >>conftest.$ac_ext
10346 cat >>conftest.$ac_ext <<_ACEOF
10347 /* end confdefs.h. */
10348 #include <unicode/ubidi.h>
10350 main ()
10352 ubidi_open()
10354 return 0;
10356 _ACEOF
10357 rm -f conftest.$ac_objext conftest$ac_exeext
10358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10359 (eval $ac_link) 2>conftest.er1
10360 ac_status=$?
10361 grep -v '^ *+' conftest.er1 >conftest.err
10362 rm -f conftest.er1
10363 cat conftest.err >&5
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); } &&
10366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10368 (eval $ac_try) 2>&5
10369 ac_status=$?
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); }; } &&
10372 { ac_try='test -s conftest$ac_exeext'
10373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10374 (eval $ac_try) 2>&5
10375 ac_status=$?
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); }; }; then
10379 cat >>confdefs.h <<\_ACEOF
10380 #define HAVE_ICU 1
10381 _ACEOF
10383 ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
10385 echo "$as_me:$LINENO: result: yes" >&5
10386 echo "${ECHO_T}yes" >&6
10387 else
10388 echo "$as_me: failed program was:" >&5
10389 sed 's/^/| /' conftest.$ac_ext >&5
10391 echo "$as_me:$LINENO: result: no" >&5
10392 echo "${ECHO_T}no" >&6
10394 rm -f conftest.err conftest.$ac_objext \
10395 conftest$ac_exeext conftest.$ac_ext
10396 LIBS="$saved_libs"
10399 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
10400 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
10401 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10403 else
10404 ac_check_lib_save_LIBS=$LIBS
10405 LIBS="-lfreetype $X_LIBS $LIBS"
10406 cat >conftest.$ac_ext <<_ACEOF
10407 /* confdefs.h. */
10408 _ACEOF
10409 cat confdefs.h >>conftest.$ac_ext
10410 cat >>conftest.$ac_ext <<_ACEOF
10411 /* end confdefs.h. */
10413 /* Override any gcc2 internal prototype to avoid an error. */
10414 #ifdef __cplusplus
10415 extern "C"
10416 #endif
10417 /* We use char because int might match the return type of a gcc2
10418 builtin and then its argument prototype would still apply. */
10419 char FT_Init_FreeType ();
10421 main ()
10423 FT_Init_FreeType ();
10425 return 0;
10427 _ACEOF
10428 rm -f conftest.$ac_objext conftest$ac_exeext
10429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10430 (eval $ac_link) 2>conftest.er1
10431 ac_status=$?
10432 grep -v '^ *+' conftest.er1 >conftest.err
10433 rm -f conftest.er1
10434 cat conftest.err >&5
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); } &&
10437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10439 (eval $ac_try) 2>&5
10440 ac_status=$?
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); }; } &&
10443 { ac_try='test -s conftest$ac_exeext'
10444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10445 (eval $ac_try) 2>&5
10446 ac_status=$?
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); }; }; then
10449 ac_cv_lib_freetype_FT_Init_FreeType=yes
10450 else
10451 echo "$as_me: failed program was:" >&5
10452 sed 's/^/| /' conftest.$ac_ext >&5
10454 ac_cv_lib_freetype_FT_Init_FreeType=no
10456 rm -f conftest.err conftest.$ac_objext \
10457 conftest$ac_exeext conftest.$ac_ext
10458 LIBS=$ac_check_lib_save_LIBS
10460 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10461 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10462 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10463 ft_lib=yes
10464 else
10465 ft_lib=no
10468 if test "$ft_lib" = "no"
10469 then
10470 FREETYPEINCL=""
10471 wine_cv_msg_freetype=no
10472 else
10473 # Extract the first word of "freetype-config", so it can be a program name with args.
10474 set dummy freetype-config; ac_word=$2
10475 echo "$as_me:$LINENO: checking for $ac_word" >&5
10476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10477 if test "${ac_cv_prog_ft_devel+set}" = set; then
10478 echo $ECHO_N "(cached) $ECHO_C" >&6
10479 else
10480 if test -n "$ft_devel"; then
10481 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10482 else
10483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10484 for as_dir in $PATH
10486 IFS=$as_save_IFS
10487 test -z "$as_dir" && as_dir=.
10488 for ac_exec_ext in '' $ac_executable_extensions; do
10489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10490 ac_cv_prog_ft_devel="freetype-config"
10491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10492 break 2
10494 done
10495 done
10497 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
10500 ft_devel=$ac_cv_prog_ft_devel
10501 if test -n "$ft_devel"; then
10502 echo "$as_me:$LINENO: result: $ft_devel" >&5
10503 echo "${ECHO_T}$ft_devel" >&6
10504 else
10505 echo "$as_me:$LINENO: result: no" >&5
10506 echo "${ECHO_T}no" >&6
10509 if test "$ft_devel" = "no"
10510 then
10511 # Extract the first word of "freetype2-config", so it can be a program name with args.
10512 set dummy freetype2-config; ac_word=$2
10513 echo "$as_me:$LINENO: checking for $ac_word" >&5
10514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10515 if test "${ac_cv_prog_ft_devel2+set}" = set; then
10516 echo $ECHO_N "(cached) $ECHO_C" >&6
10517 else
10518 if test -n "$ft_devel2"; then
10519 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
10520 else
10521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10522 for as_dir in $PATH
10524 IFS=$as_save_IFS
10525 test -z "$as_dir" && as_dir=.
10526 for ac_exec_ext in '' $ac_executable_extensions; do
10527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10528 ac_cv_prog_ft_devel2="freetype2-config"
10529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10530 break 2
10532 done
10533 done
10535 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
10538 ft_devel2=$ac_cv_prog_ft_devel2
10539 if test -n "$ft_devel2"; then
10540 echo "$as_me:$LINENO: result: $ft_devel2" >&5
10541 echo "${ECHO_T}$ft_devel2" >&6
10542 else
10543 echo "$as_me:$LINENO: result: no" >&5
10544 echo "${ECHO_T}no" >&6
10547 if test "$ft_devel2" = "freetype2-config"
10548 then
10549 ft_devel=$ft_devel2
10552 if test "$ft_devel" = "no"
10553 then
10554 FREETYPEINCL=""
10555 wine_cv_msg_freetype=yes
10556 else
10557 FREETYPEINCL=`$ft_devel --cflags`
10558 ac_save_CPPFLAGS="$CPPFLAGS"
10559 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
10569 for ac_header in ft2build.h \
10570 freetype/freetype.h \
10571 freetype/ftglyph.h \
10572 freetype/tttables.h \
10573 freetype/ftnames.h \
10574 freetype/ftsnames.h \
10575 freetype/ttnameid.h \
10576 freetype/ftoutln.h \
10577 freetype/internal/sfnt.h
10579 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10580 echo "$as_me:$LINENO: checking for $ac_header" >&5
10581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10583 echo $ECHO_N "(cached) $ECHO_C" >&6
10584 else
10585 cat >conftest.$ac_ext <<_ACEOF
10586 /* confdefs.h. */
10587 _ACEOF
10588 cat confdefs.h >>conftest.$ac_ext
10589 cat >>conftest.$ac_ext <<_ACEOF
10590 /* end confdefs.h. */
10591 #if HAVE_FT2BUILD_H
10592 #include <ft2build.h>
10593 #endif
10595 #include <$ac_header>
10596 _ACEOF
10597 rm -f conftest.$ac_objext
10598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10599 (eval $ac_compile) 2>conftest.er1
10600 ac_status=$?
10601 grep -v '^ *+' conftest.er1 >conftest.err
10602 rm -f conftest.er1
10603 cat conftest.err >&5
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); } &&
10606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10608 (eval $ac_try) 2>&5
10609 ac_status=$?
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); }; } &&
10612 { ac_try='test -s conftest.$ac_objext'
10613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10614 (eval $ac_try) 2>&5
10615 ac_status=$?
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); }; }; then
10618 eval "$as_ac_Header=yes"
10619 else
10620 echo "$as_me: failed program was:" >&5
10621 sed 's/^/| /' conftest.$ac_ext >&5
10623 eval "$as_ac_Header=no"
10625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10630 cat >>confdefs.h <<_ACEOF
10631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10632 _ACEOF
10636 done
10638 cat >conftest.$ac_ext <<_ACEOF
10639 /* confdefs.h. */
10640 _ACEOF
10641 cat confdefs.h >>conftest.$ac_ext
10642 cat >>conftest.$ac_ext <<_ACEOF
10643 /* end confdefs.h. */
10644 #include <ft2build.h>
10645 #include <freetype/fttrigon.h>
10646 _ACEOF
10647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10648 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10649 ac_status=$?
10650 grep -v '^ *+' conftest.er1 >conftest.err
10651 rm -f conftest.er1
10652 cat conftest.err >&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } >/dev/null; then
10655 if test -s conftest.err; then
10656 ac_cpp_err=$ac_c_preproc_warn_flag
10657 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10658 else
10659 ac_cpp_err=
10661 else
10662 ac_cpp_err=yes
10664 if test -z "$ac_cpp_err"; then
10666 cat >>confdefs.h <<\_ACEOF
10667 #define HAVE_FREETYPE_FTTRIGON_H 1
10668 _ACEOF
10670 wine_cv_fttrigon=yes
10671 else
10672 echo "$as_me: failed program was:" >&5
10673 sed 's/^/| /' conftest.$ac_ext >&5
10675 wine_cv_fttrigon=no
10677 rm -f conftest.err conftest.$ac_ext
10678 CPPFLAGS="$ac_save_CPPFLAGS"
10679 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10680 then
10682 cat >>confdefs.h <<\_ACEOF
10683 #define HAVE_FREETYPE 1
10684 _ACEOF
10686 wine_cv_msg_freetype=no
10687 else
10688 FREETYPEINCL=""
10689 wine_cv_msg_freetype=yes
10695 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
10696 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
10697 if test "${ac_cv_c_ppdev+set}" = set; then
10698 echo $ECHO_N "(cached) $ECHO_C" >&6
10699 else
10700 cat >conftest.$ac_ext <<_ACEOF
10701 /* confdefs.h. */
10702 _ACEOF
10703 cat confdefs.h >>conftest.$ac_ext
10704 cat >>conftest.$ac_ext <<_ACEOF
10705 /* end confdefs.h. */
10706 #include <linux/ppdev.h>
10708 main ()
10710 ioctl (1,PPCLAIM,0)
10712 return 0;
10714 _ACEOF
10715 rm -f conftest.$ac_objext
10716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10717 (eval $ac_compile) 2>conftest.er1
10718 ac_status=$?
10719 grep -v '^ *+' conftest.er1 >conftest.err
10720 rm -f conftest.er1
10721 cat conftest.err >&5
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); } &&
10724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10726 (eval $ac_try) 2>&5
10727 ac_status=$?
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); }; } &&
10730 { ac_try='test -s conftest.$ac_objext'
10731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10732 (eval $ac_try) 2>&5
10733 ac_status=$?
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; }; then
10736 ac_cv_c_ppdev="yes"
10737 else
10738 echo "$as_me: failed program was:" >&5
10739 sed 's/^/| /' conftest.$ac_ext >&5
10741 ac_cv_c_ppdev="no"
10743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10746 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
10747 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
10748 if test "$ac_cv_c_ppdev" = "yes"
10749 then
10751 cat >>confdefs.h <<\_ACEOF
10752 #define HAVE_PPDEV 1
10753 _ACEOF
10757 echo "$as_me:$LINENO: checking for va_copy" >&5
10758 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10759 if test "${ac_cv_c_va_copy+set}" = set; then
10760 echo $ECHO_N "(cached) $ECHO_C" >&6
10761 else
10762 cat >conftest.$ac_ext <<_ACEOF
10763 /* confdefs.h. */
10764 _ACEOF
10765 cat confdefs.h >>conftest.$ac_ext
10766 cat >>conftest.$ac_ext <<_ACEOF
10767 /* end confdefs.h. */
10768 #include <stdarg.h>
10770 main ()
10772 va_list ap1, ap2;
10773 va_copy(ap1,ap2);
10776 return 0;
10778 _ACEOF
10779 rm -f conftest.$ac_objext conftest$ac_exeext
10780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10781 (eval $ac_link) 2>conftest.er1
10782 ac_status=$?
10783 grep -v '^ *+' conftest.er1 >conftest.err
10784 rm -f conftest.er1
10785 cat conftest.err >&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); } &&
10788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790 (eval $ac_try) 2>&5
10791 ac_status=$?
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); }; } &&
10794 { ac_try='test -s conftest$ac_exeext'
10795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10796 (eval $ac_try) 2>&5
10797 ac_status=$?
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; }; then
10800 ac_cv_c_va_copy="yes"
10801 else
10802 echo "$as_me: failed program was:" >&5
10803 sed 's/^/| /' conftest.$ac_ext >&5
10805 ac_cv_c_va_copy="no"
10807 rm -f conftest.err conftest.$ac_objext \
10808 conftest$ac_exeext conftest.$ac_ext
10811 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
10812 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
10813 if test "$ac_cv_c_va_copy" = "yes"
10814 then
10816 cat >>confdefs.h <<\_ACEOF
10817 #define HAVE_VA_COPY 1
10818 _ACEOF
10821 echo "$as_me:$LINENO: checking for __va_copy" >&5
10822 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10823 if test "${ac_cv_c___va_copy+set}" = set; then
10824 echo $ECHO_N "(cached) $ECHO_C" >&6
10825 else
10826 cat >conftest.$ac_ext <<_ACEOF
10827 /* confdefs.h. */
10828 _ACEOF
10829 cat confdefs.h >>conftest.$ac_ext
10830 cat >>conftest.$ac_ext <<_ACEOF
10831 /* end confdefs.h. */
10832 #include <stdarg.h>
10834 main ()
10836 va_list ap1, ap2;
10837 __va_copy(ap1,ap2);
10840 return 0;
10842 _ACEOF
10843 rm -f conftest.$ac_objext conftest$ac_exeext
10844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10845 (eval $ac_link) 2>conftest.er1
10846 ac_status=$?
10847 grep -v '^ *+' conftest.er1 >conftest.err
10848 rm -f conftest.er1
10849 cat conftest.err >&5
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); } &&
10852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10854 (eval $ac_try) 2>&5
10855 ac_status=$?
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); }; } &&
10858 { ac_try='test -s conftest$ac_exeext'
10859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10860 (eval $ac_try) 2>&5
10861 ac_status=$?
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); }; }; then
10864 ac_cv_c___va_copy="yes"
10865 else
10866 echo "$as_me: failed program was:" >&5
10867 sed 's/^/| /' conftest.$ac_ext >&5
10869 ac_cv_c___va_copy="no"
10871 rm -f conftest.err conftest.$ac_objext \
10872 conftest$ac_exeext conftest.$ac_ext
10875 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
10876 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
10877 if test "$ac_cv_c___va_copy" = "yes"
10878 then
10880 cat >>confdefs.h <<\_ACEOF
10881 #define HAVE___VA_COPY 1
10882 _ACEOF
10886 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10887 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
10888 if test "${ac_cv_c_sigsetjmp+set}" = set; then
10889 echo $ECHO_N "(cached) $ECHO_C" >&6
10890 else
10891 cat >conftest.$ac_ext <<_ACEOF
10892 /* confdefs.h. */
10893 _ACEOF
10894 cat confdefs.h >>conftest.$ac_ext
10895 cat >>conftest.$ac_ext <<_ACEOF
10896 /* end confdefs.h. */
10897 #include <setjmp.h>
10899 main ()
10901 sigjmp_buf buf;
10902 sigsetjmp( buf, 1 );
10903 siglongjmp( buf, 1 );
10905 return 0;
10907 _ACEOF
10908 rm -f conftest.$ac_objext conftest$ac_exeext
10909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10910 (eval $ac_link) 2>conftest.er1
10911 ac_status=$?
10912 grep -v '^ *+' conftest.er1 >conftest.err
10913 rm -f conftest.er1
10914 cat conftest.err >&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); } &&
10917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10919 (eval $ac_try) 2>&5
10920 ac_status=$?
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); }; } &&
10923 { ac_try='test -s conftest$ac_exeext'
10924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10925 (eval $ac_try) 2>&5
10926 ac_status=$?
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); }; }; then
10929 ac_cv_c_sigsetjmp="yes"
10930 else
10931 echo "$as_me: failed program was:" >&5
10932 sed 's/^/| /' conftest.$ac_ext >&5
10934 ac_cv_c_sigsetjmp="no"
10936 rm -f conftest.err conftest.$ac_objext \
10937 conftest$ac_exeext conftest.$ac_ext
10940 echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
10941 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6
10942 if test "$ac_cv_c_sigsetjmp" = "yes"
10943 then
10945 cat >>confdefs.h <<\_ACEOF
10946 #define HAVE_SIGSETJMP 1
10947 _ACEOF
10951 echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
10952 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
10953 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
10954 echo $ECHO_N "(cached) $ECHO_C" >&6
10955 else
10956 cat >conftest.$ac_ext <<_ACEOF
10957 /* confdefs.h. */
10958 _ACEOF
10959 cat confdefs.h >>conftest.$ac_ext
10960 cat >>conftest.$ac_ext <<_ACEOF
10961 /* end confdefs.h. */
10962 #define _GNU_SOURCE
10963 #include <pthread.h>
10966 main ()
10968 if ((pthread_rwlock_t *) 0)
10969 return 0;
10970 if (sizeof (pthread_rwlock_t))
10971 return 0;
10973 return 0;
10975 _ACEOF
10976 rm -f conftest.$ac_objext
10977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10978 (eval $ac_compile) 2>conftest.er1
10979 ac_status=$?
10980 grep -v '^ *+' conftest.er1 >conftest.err
10981 rm -f conftest.er1
10982 cat conftest.err >&5
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); } &&
10985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10987 (eval $ac_try) 2>&5
10988 ac_status=$?
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); }; } &&
10991 { ac_try='test -s conftest.$ac_objext'
10992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10993 (eval $ac_try) 2>&5
10994 ac_status=$?
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); }; }; then
10997 ac_cv_type_pthread_rwlock_t=yes
10998 else
10999 echo "$as_me: failed program was:" >&5
11000 sed 's/^/| /' conftest.$ac_ext >&5
11002 ac_cv_type_pthread_rwlock_t=no
11004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11006 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
11007 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
11008 if test $ac_cv_type_pthread_rwlock_t = yes; then
11010 cat >>confdefs.h <<_ACEOF
11011 #define HAVE_PTHREAD_RWLOCK_T 1
11012 _ACEOF
11016 echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
11017 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
11018 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
11019 echo $ECHO_N "(cached) $ECHO_C" >&6
11020 else
11021 cat >conftest.$ac_ext <<_ACEOF
11022 /* confdefs.h. */
11023 _ACEOF
11024 cat confdefs.h >>conftest.$ac_ext
11025 cat >>conftest.$ac_ext <<_ACEOF
11026 /* end confdefs.h. */
11027 #define _GNU_SOURCE
11028 #include <pthread.h>
11031 main ()
11033 if ((pthread_rwlockattr_t *) 0)
11034 return 0;
11035 if (sizeof (pthread_rwlockattr_t))
11036 return 0;
11038 return 0;
11040 _ACEOF
11041 rm -f conftest.$ac_objext
11042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11043 (eval $ac_compile) 2>conftest.er1
11044 ac_status=$?
11045 grep -v '^ *+' conftest.er1 >conftest.err
11046 rm -f conftest.er1
11047 cat conftest.err >&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } &&
11050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11052 (eval $ac_try) 2>&5
11053 ac_status=$?
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); }; } &&
11056 { ac_try='test -s conftest.$ac_objext'
11057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11058 (eval $ac_try) 2>&5
11059 ac_status=$?
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; }; then
11062 ac_cv_type_pthread_rwlockattr_t=yes
11063 else
11064 echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11067 ac_cv_type_pthread_rwlockattr_t=no
11069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11071 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
11072 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
11073 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
11075 cat >>confdefs.h <<_ACEOF
11076 #define HAVE_PTHREAD_RWLOCKATTR_T 1
11077 _ACEOF
11083 ac_save_LIBS="$LIBS"
11084 LIBS="$LIBS $LIBPTHREAD"
11086 for ac_func in pthread_getattr_np
11088 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11089 echo "$as_me:$LINENO: checking for $ac_func" >&5
11090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11091 if eval "test \"\${$as_ac_var+set}\" = set"; then
11092 echo $ECHO_N "(cached) $ECHO_C" >&6
11093 else
11094 cat >conftest.$ac_ext <<_ACEOF
11095 /* confdefs.h. */
11096 _ACEOF
11097 cat confdefs.h >>conftest.$ac_ext
11098 cat >>conftest.$ac_ext <<_ACEOF
11099 /* end confdefs.h. */
11100 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11102 #define $ac_func innocuous_$ac_func
11104 /* System header to define __stub macros and hopefully few prototypes,
11105 which can conflict with char $ac_func (); below.
11106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11107 <limits.h> exists even on freestanding compilers. */
11109 #ifdef __STDC__
11110 # include <limits.h>
11111 #else
11112 # include <assert.h>
11113 #endif
11115 #undef $ac_func
11117 /* Override any gcc2 internal prototype to avoid an error. */
11118 #ifdef __cplusplus
11119 extern "C"
11121 #endif
11122 /* We use char because int might match the return type of a gcc2
11123 builtin and then its argument prototype would still apply. */
11124 char $ac_func ();
11125 /* The GNU C library defines this for functions which it implements
11126 to always fail with ENOSYS. Some functions are actually named
11127 something starting with __ and the normal name is an alias. */
11128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11129 choke me
11130 #else
11131 char (*f) () = $ac_func;
11132 #endif
11133 #ifdef __cplusplus
11135 #endif
11138 main ()
11140 return f != $ac_func;
11142 return 0;
11144 _ACEOF
11145 rm -f conftest.$ac_objext conftest$ac_exeext
11146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11147 (eval $ac_link) 2>conftest.er1
11148 ac_status=$?
11149 grep -v '^ *+' conftest.er1 >conftest.err
11150 rm -f conftest.er1
11151 cat conftest.err >&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); } &&
11154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11156 (eval $ac_try) 2>&5
11157 ac_status=$?
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); }; } &&
11160 { ac_try='test -s conftest$ac_exeext'
11161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11162 (eval $ac_try) 2>&5
11163 ac_status=$?
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); }; }; then
11166 eval "$as_ac_var=yes"
11167 else
11168 echo "$as_me: failed program was:" >&5
11169 sed 's/^/| /' conftest.$ac_ext >&5
11171 eval "$as_ac_var=no"
11173 rm -f conftest.err conftest.$ac_objext \
11174 conftest$ac_exeext conftest.$ac_ext
11176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11177 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11178 if test `eval echo '${'$as_ac_var'}'` = yes; then
11179 cat >>confdefs.h <<_ACEOF
11180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11181 _ACEOF
11184 done
11186 LIBS="$ac_save_LIBS"
11191 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
11193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11195 echo "$as_me:$LINENO: checking for $ac_header" >&5
11196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11198 echo $ECHO_N "(cached) $ECHO_C" >&6
11200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11202 else
11203 # Is the header compilable?
11204 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11205 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11206 cat >conftest.$ac_ext <<_ACEOF
11207 /* confdefs.h. */
11208 _ACEOF
11209 cat confdefs.h >>conftest.$ac_ext
11210 cat >>conftest.$ac_ext <<_ACEOF
11211 /* end confdefs.h. */
11212 $ac_includes_default
11213 #include <$ac_header>
11214 _ACEOF
11215 rm -f conftest.$ac_objext
11216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11217 (eval $ac_compile) 2>conftest.er1
11218 ac_status=$?
11219 grep -v '^ *+' conftest.er1 >conftest.err
11220 rm -f conftest.er1
11221 cat conftest.err >&5
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); } &&
11224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11226 (eval $ac_try) 2>&5
11227 ac_status=$?
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); }; } &&
11230 { ac_try='test -s conftest.$ac_objext'
11231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232 (eval $ac_try) 2>&5
11233 ac_status=$?
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); }; }; then
11236 ac_header_compiler=yes
11237 else
11238 echo "$as_me: failed program was:" >&5
11239 sed 's/^/| /' conftest.$ac_ext >&5
11241 ac_header_compiler=no
11243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11244 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11245 echo "${ECHO_T}$ac_header_compiler" >&6
11247 # Is the header present?
11248 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11249 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11250 cat >conftest.$ac_ext <<_ACEOF
11251 /* confdefs.h. */
11252 _ACEOF
11253 cat confdefs.h >>conftest.$ac_ext
11254 cat >>conftest.$ac_ext <<_ACEOF
11255 /* end confdefs.h. */
11256 #include <$ac_header>
11257 _ACEOF
11258 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11260 ac_status=$?
11261 grep -v '^ *+' conftest.er1 >conftest.err
11262 rm -f conftest.er1
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } >/dev/null; then
11266 if test -s conftest.err; then
11267 ac_cpp_err=$ac_c_preproc_warn_flag
11268 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11269 else
11270 ac_cpp_err=
11272 else
11273 ac_cpp_err=yes
11275 if test -z "$ac_cpp_err"; then
11276 ac_header_preproc=yes
11277 else
11278 echo "$as_me: failed program was:" >&5
11279 sed 's/^/| /' conftest.$ac_ext >&5
11281 ac_header_preproc=no
11283 rm -f conftest.err conftest.$ac_ext
11284 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11285 echo "${ECHO_T}$ac_header_preproc" >&6
11287 # So? What about this header?
11288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11289 yes:no: )
11290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11293 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11294 ac_header_preproc=yes
11296 no:yes:* )
11297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11300 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11302 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11304 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11308 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11310 cat <<\_ASBOX
11311 ## ------------------------------------ ##
11312 ## Report this to wine-devel@winehq.org ##
11313 ## ------------------------------------ ##
11314 _ASBOX
11316 sed "s/^/$as_me: WARNING: /" >&2
11318 esac
11319 echo "$as_me:$LINENO: checking for $ac_header" >&5
11320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11322 echo $ECHO_N "(cached) $ECHO_C" >&6
11323 else
11324 eval "$as_ac_Header=\$ac_header_preproc"
11326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11331 cat >>confdefs.h <<_ACEOF
11332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11333 _ACEOF
11334 break
11337 done
11340 echo "$as_me:$LINENO: checking for Open Sound System" >&5
11341 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
11342 if test "${ac_cv_c_opensoundsystem+set}" = set; then
11343 echo $ECHO_N "(cached) $ECHO_C" >&6
11344 else
11345 cat >conftest.$ac_ext <<_ACEOF
11346 /* confdefs.h. */
11347 _ACEOF
11348 cat confdefs.h >>conftest.$ac_ext
11349 cat >>conftest.$ac_ext <<_ACEOF
11350 /* end confdefs.h. */
11352 #if defined(HAVE_SYS_SOUNDCARD_H)
11353 #include <sys/soundcard.h>
11354 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11355 #include <machine/soundcard.h>
11356 #elif defined(HAVE_SOUNDCARD_H)
11357 #include <soundcard.h>
11358 #endif
11361 main ()
11365 /* check for one of the Open Sound System specific SNDCTL_ defines */
11366 #if !defined(SNDCTL_DSP_STEREO)
11367 #error No open sound system
11368 #endif
11371 return 0;
11373 _ACEOF
11374 rm -f conftest.$ac_objext
11375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11376 (eval $ac_compile) 2>conftest.er1
11377 ac_status=$?
11378 grep -v '^ *+' conftest.er1 >conftest.err
11379 rm -f conftest.er1
11380 cat conftest.err >&5
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); } &&
11383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11385 (eval $ac_try) 2>&5
11386 ac_status=$?
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); }; } &&
11389 { ac_try='test -s conftest.$ac_objext'
11390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391 (eval $ac_try) 2>&5
11392 ac_status=$?
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; }; then
11395 ac_cv_c_opensoundsystem="yes"
11396 else
11397 echo "$as_me: failed program was:" >&5
11398 sed 's/^/| /' conftest.$ac_ext >&5
11400 ac_cv_c_opensoundsystem="no"
11402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11404 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
11405 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
11407 if test "$ac_cv_c_opensoundsystem" = "yes"
11408 then
11410 cat >>confdefs.h <<\_ACEOF
11411 #define HAVE_OSS 1
11412 _ACEOF
11416 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
11417 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
11418 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
11419 echo $ECHO_N "(cached) $ECHO_C" >&6
11420 else
11421 cat >conftest.$ac_ext <<_ACEOF
11422 /* confdefs.h. */
11423 _ACEOF
11424 cat confdefs.h >>conftest.$ac_ext
11425 cat >>conftest.$ac_ext <<_ACEOF
11426 /* end confdefs.h. */
11428 #if defined(HAVE_SYS_SOUNDCARD_H)
11429 #include <sys/soundcard.h>
11430 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11431 #include <machine/soundcard.h>
11432 #elif defined(HAVE_SOUNDCARD_H)
11433 #include <soundcard.h>
11434 #endif
11437 main ()
11441 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
11442 #if !defined(SNDCTL_SEQ_SYNC)
11443 #error No open sound system MIDI interface
11444 #endif
11447 return 0;
11449 _ACEOF
11450 rm -f conftest.$ac_objext
11451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11452 (eval $ac_compile) 2>conftest.er1
11453 ac_status=$?
11454 grep -v '^ *+' conftest.er1 >conftest.err
11455 rm -f conftest.er1
11456 cat conftest.err >&5
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); } &&
11459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11461 (eval $ac_try) 2>&5
11462 ac_status=$?
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); }; } &&
11465 { ac_try='test -s conftest.$ac_objext'
11466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11467 (eval $ac_try) 2>&5
11468 ac_status=$?
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); }; }; then
11471 ac_cv_c_opensoundsystem_midi="yes"
11472 else
11473 echo "$as_me: failed program was:" >&5
11474 sed 's/^/| /' conftest.$ac_ext >&5
11476 ac_cv_c_opensoundsystem_midi="no"
11478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11480 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
11481 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
11483 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
11484 then
11486 cat >>confdefs.h <<\_ACEOF
11487 #define HAVE_OSS_MIDI 1
11488 _ACEOF
11492 # Extract the first word of "artsc-config", so it can be a program name with args.
11493 set dummy artsc-config; ac_word=$2
11494 echo "$as_me:$LINENO: checking for $ac_word" >&5
11495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11496 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
11497 echo $ECHO_N "(cached) $ECHO_C" >&6
11498 else
11499 case $ARTSCCONFIG in
11500 [\\/]* | ?:[\\/]*)
11501 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
11504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11505 for as_dir in $PATH
11507 IFS=$as_save_IFS
11508 test -z "$as_dir" && as_dir=.
11509 for ac_exec_ext in '' $ac_executable_extensions; do
11510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11511 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
11512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11513 break 2
11515 done
11516 done
11519 esac
11521 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
11523 if test -n "$ARTSCCONFIG"; then
11524 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
11525 echo "${ECHO_T}$ARTSCCONFIG" >&6
11526 else
11527 echo "$as_me:$LINENO: result: no" >&5
11528 echo "${ECHO_T}no" >&6
11531 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
11532 then
11533 ARTSC_CFLAGS=""
11534 for i in `$ARTSCCONFIG --cflags`
11536 case "$i" in
11537 -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
11538 esac
11539 done
11540 ARTSC_LIBS=`$ARTSCCONFIG --libs`
11541 save_CFLAGS="$CFLAGS"
11542 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
11543 cat >conftest.$ac_ext <<_ACEOF
11544 /* confdefs.h. */
11545 _ACEOF
11546 cat confdefs.h >>conftest.$ac_ext
11547 cat >>conftest.$ac_ext <<_ACEOF
11548 /* end confdefs.h. */
11549 #include <artsc.h>
11551 main ()
11553 arts_stream_t stream;
11555 return 0;
11557 _ACEOF
11558 rm -f conftest.$ac_objext
11559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11560 (eval $ac_compile) 2>conftest.er1
11561 ac_status=$?
11562 grep -v '^ *+' conftest.er1 >conftest.err
11563 rm -f conftest.er1
11564 cat conftest.err >&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } &&
11567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11569 (eval $ac_try) 2>&5
11570 ac_status=$?
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); }; } &&
11573 { ac_try='test -s conftest.$ac_objext'
11574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11575 (eval $ac_try) 2>&5
11576 ac_status=$?
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); }; }; then
11579 ARTSLIBS=$ARTSC_LIBS
11581 ARTSINCL=$ARTSC_CFLAGS
11584 cat >>confdefs.h <<\_ACEOF
11585 #define HAVE_ARTS 1
11586 _ACEOF
11588 else
11589 echo "$as_me: failed program was:" >&5
11590 sed 's/^/| /' conftest.$ac_ext >&5
11593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11594 CFLAGS="$save_CFLAGS"
11597 ALSALIBS=""
11601 for ac_header in alsa/asoundlib.h sys/asoundlib.h
11603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11605 echo "$as_me:$LINENO: checking for $ac_header" >&5
11606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11608 echo $ECHO_N "(cached) $ECHO_C" >&6
11610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11612 else
11613 # Is the header compilable?
11614 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11615 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11616 cat >conftest.$ac_ext <<_ACEOF
11617 /* confdefs.h. */
11618 _ACEOF
11619 cat confdefs.h >>conftest.$ac_ext
11620 cat >>conftest.$ac_ext <<_ACEOF
11621 /* end confdefs.h. */
11622 $ac_includes_default
11623 #include <$ac_header>
11624 _ACEOF
11625 rm -f conftest.$ac_objext
11626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11627 (eval $ac_compile) 2>conftest.er1
11628 ac_status=$?
11629 grep -v '^ *+' conftest.er1 >conftest.err
11630 rm -f conftest.er1
11631 cat conftest.err >&5
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); } &&
11634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11636 (eval $ac_try) 2>&5
11637 ac_status=$?
11638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); }; } &&
11640 { ac_try='test -s conftest.$ac_objext'
11641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11642 (eval $ac_try) 2>&5
11643 ac_status=$?
11644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645 (exit $ac_status); }; }; then
11646 ac_header_compiler=yes
11647 else
11648 echo "$as_me: failed program was:" >&5
11649 sed 's/^/| /' conftest.$ac_ext >&5
11651 ac_header_compiler=no
11653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11654 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11655 echo "${ECHO_T}$ac_header_compiler" >&6
11657 # Is the header present?
11658 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11659 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11660 cat >conftest.$ac_ext <<_ACEOF
11661 /* confdefs.h. */
11662 _ACEOF
11663 cat confdefs.h >>conftest.$ac_ext
11664 cat >>conftest.$ac_ext <<_ACEOF
11665 /* end confdefs.h. */
11666 #include <$ac_header>
11667 _ACEOF
11668 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11669 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11670 ac_status=$?
11671 grep -v '^ *+' conftest.er1 >conftest.err
11672 rm -f conftest.er1
11673 cat conftest.err >&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); } >/dev/null; then
11676 if test -s conftest.err; then
11677 ac_cpp_err=$ac_c_preproc_warn_flag
11678 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11679 else
11680 ac_cpp_err=
11682 else
11683 ac_cpp_err=yes
11685 if test -z "$ac_cpp_err"; then
11686 ac_header_preproc=yes
11687 else
11688 echo "$as_me: failed program was:" >&5
11689 sed 's/^/| /' conftest.$ac_ext >&5
11691 ac_header_preproc=no
11693 rm -f conftest.err conftest.$ac_ext
11694 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11695 echo "${ECHO_T}$ac_header_preproc" >&6
11697 # So? What about this header?
11698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11699 yes:no: )
11700 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11701 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11703 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11704 ac_header_preproc=yes
11706 no:yes:* )
11707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11710 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11711 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11712 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11713 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11714 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11716 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11717 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11718 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11720 cat <<\_ASBOX
11721 ## ------------------------------------ ##
11722 ## Report this to wine-devel@winehq.org ##
11723 ## ------------------------------------ ##
11724 _ASBOX
11726 sed "s/^/$as_me: WARNING: /" >&2
11728 esac
11729 echo "$as_me:$LINENO: checking for $ac_header" >&5
11730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11732 echo $ECHO_N "(cached) $ECHO_C" >&6
11733 else
11734 eval "$as_ac_Header=\$ac_header_preproc"
11736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11741 cat >>confdefs.h <<_ACEOF
11742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11743 _ACEOF
11744 break
11747 done
11749 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11750 then
11751 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
11752 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
11753 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
11754 echo $ECHO_N "(cached) $ECHO_C" >&6
11755 else
11756 ac_check_lib_save_LIBS=$LIBS
11757 LIBS="-lasound $LIBS"
11758 cat >conftest.$ac_ext <<_ACEOF
11759 /* confdefs.h. */
11760 _ACEOF
11761 cat confdefs.h >>conftest.$ac_ext
11762 cat >>conftest.$ac_ext <<_ACEOF
11763 /* end confdefs.h. */
11765 /* Override any gcc2 internal prototype to avoid an error. */
11766 #ifdef __cplusplus
11767 extern "C"
11768 #endif
11769 /* We use char because int might match the return type of a gcc2
11770 builtin and then its argument prototype would still apply. */
11771 char snd_pcm_open ();
11773 main ()
11775 snd_pcm_open ();
11777 return 0;
11779 _ACEOF
11780 rm -f conftest.$ac_objext conftest$ac_exeext
11781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11782 (eval $ac_link) 2>conftest.er1
11783 ac_status=$?
11784 grep -v '^ *+' conftest.er1 >conftest.err
11785 rm -f conftest.er1
11786 cat conftest.err >&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); } &&
11789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791 (eval $ac_try) 2>&5
11792 ac_status=$?
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; } &&
11795 { ac_try='test -s conftest$ac_exeext'
11796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11797 (eval $ac_try) 2>&5
11798 ac_status=$?
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); }; }; then
11801 ac_cv_lib_asound_snd_pcm_open=yes
11802 else
11803 echo "$as_me: failed program was:" >&5
11804 sed 's/^/| /' conftest.$ac_ext >&5
11806 ac_cv_lib_asound_snd_pcm_open=no
11808 rm -f conftest.err conftest.$ac_objext \
11809 conftest$ac_exeext conftest.$ac_ext
11810 LIBS=$ac_check_lib_save_LIBS
11812 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
11813 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
11814 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
11816 cat >>confdefs.h <<\_ACEOF
11817 #define HAVE_ALSA 1
11818 _ACEOF
11820 ALSALIBS="-lasound"
11826 AUDIOIOLIBS=""
11829 for ac_header in libaudioio.h
11831 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11833 echo "$as_me:$LINENO: checking for $ac_header" >&5
11834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11836 echo $ECHO_N "(cached) $ECHO_C" >&6
11838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11839 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11840 else
11841 # Is the header compilable?
11842 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11843 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11844 cat >conftest.$ac_ext <<_ACEOF
11845 /* confdefs.h. */
11846 _ACEOF
11847 cat confdefs.h >>conftest.$ac_ext
11848 cat >>conftest.$ac_ext <<_ACEOF
11849 /* end confdefs.h. */
11850 $ac_includes_default
11851 #include <$ac_header>
11852 _ACEOF
11853 rm -f conftest.$ac_objext
11854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11855 (eval $ac_compile) 2>conftest.er1
11856 ac_status=$?
11857 grep -v '^ *+' conftest.er1 >conftest.err
11858 rm -f conftest.er1
11859 cat conftest.err >&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } &&
11862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11864 (eval $ac_try) 2>&5
11865 ac_status=$?
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); }; } &&
11868 { ac_try='test -s conftest.$ac_objext'
11869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11870 (eval $ac_try) 2>&5
11871 ac_status=$?
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); }; }; then
11874 ac_header_compiler=yes
11875 else
11876 echo "$as_me: failed program was:" >&5
11877 sed 's/^/| /' conftest.$ac_ext >&5
11879 ac_header_compiler=no
11881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11882 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11883 echo "${ECHO_T}$ac_header_compiler" >&6
11885 # Is the header present?
11886 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11887 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11888 cat >conftest.$ac_ext <<_ACEOF
11889 /* confdefs.h. */
11890 _ACEOF
11891 cat confdefs.h >>conftest.$ac_ext
11892 cat >>conftest.$ac_ext <<_ACEOF
11893 /* end confdefs.h. */
11894 #include <$ac_header>
11895 _ACEOF
11896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11897 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11898 ac_status=$?
11899 grep -v '^ *+' conftest.er1 >conftest.err
11900 rm -f conftest.er1
11901 cat conftest.err >&5
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); } >/dev/null; then
11904 if test -s conftest.err; then
11905 ac_cpp_err=$ac_c_preproc_warn_flag
11906 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11907 else
11908 ac_cpp_err=
11910 else
11911 ac_cpp_err=yes
11913 if test -z "$ac_cpp_err"; then
11914 ac_header_preproc=yes
11915 else
11916 echo "$as_me: failed program was:" >&5
11917 sed 's/^/| /' conftest.$ac_ext >&5
11919 ac_header_preproc=no
11921 rm -f conftest.err conftest.$ac_ext
11922 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11923 echo "${ECHO_T}$ac_header_preproc" >&6
11925 # So? What about this header?
11926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11927 yes:no: )
11928 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11929 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11931 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11932 ac_header_preproc=yes
11934 no:yes:* )
11935 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11936 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11937 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11938 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11939 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11940 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11941 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11942 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11944 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11945 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11946 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11948 cat <<\_ASBOX
11949 ## ------------------------------------ ##
11950 ## Report this to wine-devel@winehq.org ##
11951 ## ------------------------------------ ##
11952 _ASBOX
11954 sed "s/^/$as_me: WARNING: /" >&2
11956 esac
11957 echo "$as_me:$LINENO: checking for $ac_header" >&5
11958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11960 echo $ECHO_N "(cached) $ECHO_C" >&6
11961 else
11962 eval "$as_ac_Header=\$ac_header_preproc"
11964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11969 cat >>confdefs.h <<_ACEOF
11970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11971 _ACEOF
11972 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
11973 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
11974 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
11975 echo $ECHO_N "(cached) $ECHO_C" >&6
11976 else
11977 ac_check_lib_save_LIBS=$LIBS
11978 LIBS="-laudioio $LIBS"
11979 cat >conftest.$ac_ext <<_ACEOF
11980 /* confdefs.h. */
11981 _ACEOF
11982 cat confdefs.h >>conftest.$ac_ext
11983 cat >>conftest.$ac_ext <<_ACEOF
11984 /* end confdefs.h. */
11986 /* Override any gcc2 internal prototype to avoid an error. */
11987 #ifdef __cplusplus
11988 extern "C"
11989 #endif
11990 /* We use char because int might match the return type of a gcc2
11991 builtin and then its argument prototype would still apply. */
11992 char AudioIOGetVersion ();
11994 main ()
11996 AudioIOGetVersion ();
11998 return 0;
12000 _ACEOF
12001 rm -f conftest.$ac_objext conftest$ac_exeext
12002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12003 (eval $ac_link) 2>conftest.er1
12004 ac_status=$?
12005 grep -v '^ *+' conftest.er1 >conftest.err
12006 rm -f conftest.er1
12007 cat conftest.err >&5
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); } &&
12010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12012 (eval $ac_try) 2>&5
12013 ac_status=$?
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); }; } &&
12016 { ac_try='test -s conftest$ac_exeext'
12017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12018 (eval $ac_try) 2>&5
12019 ac_status=$?
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; }; then
12022 ac_cv_lib_audioio_AudioIOGetVersion=yes
12023 else
12024 echo "$as_me: failed program was:" >&5
12025 sed 's/^/| /' conftest.$ac_ext >&5
12027 ac_cv_lib_audioio_AudioIOGetVersion=no
12029 rm -f conftest.err conftest.$ac_objext \
12030 conftest$ac_exeext conftest.$ac_ext
12031 LIBS=$ac_check_lib_save_LIBS
12033 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
12034 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
12035 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
12036 AUDIOIOLIBS="-laudioio"
12038 cat >>confdefs.h <<\_ACEOF
12039 #define HAVE_LIBAUDIOIO 1
12040 _ACEOF
12046 done
12051 for ac_header in capi20.h
12053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12055 echo "$as_me:$LINENO: checking for $ac_header" >&5
12056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12058 echo $ECHO_N "(cached) $ECHO_C" >&6
12060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12062 else
12063 # Is the header compilable?
12064 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12065 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12066 cat >conftest.$ac_ext <<_ACEOF
12067 /* confdefs.h. */
12068 _ACEOF
12069 cat confdefs.h >>conftest.$ac_ext
12070 cat >>conftest.$ac_ext <<_ACEOF
12071 /* end confdefs.h. */
12072 $ac_includes_default
12073 #include <$ac_header>
12074 _ACEOF
12075 rm -f conftest.$ac_objext
12076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12077 (eval $ac_compile) 2>conftest.er1
12078 ac_status=$?
12079 grep -v '^ *+' conftest.er1 >conftest.err
12080 rm -f conftest.er1
12081 cat conftest.err >&5
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); } &&
12084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12086 (eval $ac_try) 2>&5
12087 ac_status=$?
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); }; } &&
12090 { ac_try='test -s conftest.$ac_objext'
12091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12092 (eval $ac_try) 2>&5
12093 ac_status=$?
12094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095 (exit $ac_status); }; }; then
12096 ac_header_compiler=yes
12097 else
12098 echo "$as_me: failed program was:" >&5
12099 sed 's/^/| /' conftest.$ac_ext >&5
12101 ac_header_compiler=no
12103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12104 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12105 echo "${ECHO_T}$ac_header_compiler" >&6
12107 # Is the header present?
12108 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12109 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12110 cat >conftest.$ac_ext <<_ACEOF
12111 /* confdefs.h. */
12112 _ACEOF
12113 cat confdefs.h >>conftest.$ac_ext
12114 cat >>conftest.$ac_ext <<_ACEOF
12115 /* end confdefs.h. */
12116 #include <$ac_header>
12117 _ACEOF
12118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12120 ac_status=$?
12121 grep -v '^ *+' conftest.er1 >conftest.err
12122 rm -f conftest.er1
12123 cat conftest.err >&5
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); } >/dev/null; then
12126 if test -s conftest.err; then
12127 ac_cpp_err=$ac_c_preproc_warn_flag
12128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12129 else
12130 ac_cpp_err=
12132 else
12133 ac_cpp_err=yes
12135 if test -z "$ac_cpp_err"; then
12136 ac_header_preproc=yes
12137 else
12138 echo "$as_me: failed program was:" >&5
12139 sed 's/^/| /' conftest.$ac_ext >&5
12141 ac_header_preproc=no
12143 rm -f conftest.err conftest.$ac_ext
12144 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12145 echo "${ECHO_T}$ac_header_preproc" >&6
12147 # So? What about this header?
12148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12149 yes:no: )
12150 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12151 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12153 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12154 ac_header_preproc=yes
12156 no:yes:* )
12157 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12158 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12159 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12160 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12161 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12162 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12163 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12164 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12167 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12168 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12170 cat <<\_ASBOX
12171 ## ------------------------------------ ##
12172 ## Report this to wine-devel@winehq.org ##
12173 ## ------------------------------------ ##
12174 _ASBOX
12176 sed "s/^/$as_me: WARNING: /" >&2
12178 esac
12179 echo "$as_me:$LINENO: checking for $ac_header" >&5
12180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12182 echo $ECHO_N "(cached) $ECHO_C" >&6
12183 else
12184 eval "$as_ac_Header=\$ac_header_preproc"
12186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12191 cat >>confdefs.h <<_ACEOF
12192 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12193 _ACEOF
12196 for ac_header in linux/capi.h
12198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12200 echo "$as_me:$LINENO: checking for $ac_header" >&5
12201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12203 echo $ECHO_N "(cached) $ECHO_C" >&6
12205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12207 else
12208 # Is the header compilable?
12209 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12210 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12211 cat >conftest.$ac_ext <<_ACEOF
12212 /* confdefs.h. */
12213 _ACEOF
12214 cat confdefs.h >>conftest.$ac_ext
12215 cat >>conftest.$ac_ext <<_ACEOF
12216 /* end confdefs.h. */
12217 $ac_includes_default
12218 #include <$ac_header>
12219 _ACEOF
12220 rm -f conftest.$ac_objext
12221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12222 (eval $ac_compile) 2>conftest.er1
12223 ac_status=$?
12224 grep -v '^ *+' conftest.er1 >conftest.err
12225 rm -f conftest.er1
12226 cat conftest.err >&5
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); } &&
12229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231 (eval $ac_try) 2>&5
12232 ac_status=$?
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; } &&
12235 { ac_try='test -s conftest.$ac_objext'
12236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12237 (eval $ac_try) 2>&5
12238 ac_status=$?
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); }; }; then
12241 ac_header_compiler=yes
12242 else
12243 echo "$as_me: failed program was:" >&5
12244 sed 's/^/| /' conftest.$ac_ext >&5
12246 ac_header_compiler=no
12248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12249 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12250 echo "${ECHO_T}$ac_header_compiler" >&6
12252 # Is the header present?
12253 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12255 cat >conftest.$ac_ext <<_ACEOF
12256 /* confdefs.h. */
12257 _ACEOF
12258 cat confdefs.h >>conftest.$ac_ext
12259 cat >>conftest.$ac_ext <<_ACEOF
12260 /* end confdefs.h. */
12261 #include <$ac_header>
12262 _ACEOF
12263 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12264 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12265 ac_status=$?
12266 grep -v '^ *+' conftest.er1 >conftest.err
12267 rm -f conftest.er1
12268 cat conftest.err >&5
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); } >/dev/null; then
12271 if test -s conftest.err; then
12272 ac_cpp_err=$ac_c_preproc_warn_flag
12273 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12274 else
12275 ac_cpp_err=
12277 else
12278 ac_cpp_err=yes
12280 if test -z "$ac_cpp_err"; then
12281 ac_header_preproc=yes
12282 else
12283 echo "$as_me: failed program was:" >&5
12284 sed 's/^/| /' conftest.$ac_ext >&5
12286 ac_header_preproc=no
12288 rm -f conftest.err conftest.$ac_ext
12289 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12290 echo "${ECHO_T}$ac_header_preproc" >&6
12292 # So? What about this header?
12293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12294 yes:no: )
12295 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12298 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12299 ac_header_preproc=yes
12301 no:yes:* )
12302 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12304 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12305 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12306 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12307 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12308 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12309 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12312 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12313 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12315 cat <<\_ASBOX
12316 ## ------------------------------------ ##
12317 ## Report this to wine-devel@winehq.org ##
12318 ## ------------------------------------ ##
12319 _ASBOX
12321 sed "s/^/$as_me: WARNING: /" >&2
12323 esac
12324 echo "$as_me:$LINENO: checking for $ac_header" >&5
12325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12327 echo $ECHO_N "(cached) $ECHO_C" >&6
12328 else
12329 eval "$as_ac_Header=\$ac_header_preproc"
12331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12336 cat >>confdefs.h <<_ACEOF
12337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12338 _ACEOF
12340 echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
12341 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6
12342 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
12343 echo $ECHO_N "(cached) $ECHO_C" >&6
12344 else
12345 ac_check_lib_save_LIBS=$LIBS
12346 LIBS="-lcapi20 $LIBS"
12347 cat >conftest.$ac_ext <<_ACEOF
12348 /* confdefs.h. */
12349 _ACEOF
12350 cat confdefs.h >>conftest.$ac_ext
12351 cat >>conftest.$ac_ext <<_ACEOF
12352 /* end confdefs.h. */
12354 /* Override any gcc2 internal prototype to avoid an error. */
12355 #ifdef __cplusplus
12356 extern "C"
12357 #endif
12358 /* We use char because int might match the return type of a gcc2
12359 builtin and then its argument prototype would still apply. */
12360 char capi20_register ();
12362 main ()
12364 capi20_register ();
12366 return 0;
12368 _ACEOF
12369 rm -f conftest.$ac_objext conftest$ac_exeext
12370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12371 (eval $ac_link) 2>conftest.er1
12372 ac_status=$?
12373 grep -v '^ *+' conftest.er1 >conftest.err
12374 rm -f conftest.er1
12375 cat conftest.err >&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); } &&
12378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12380 (eval $ac_try) 2>&5
12381 ac_status=$?
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); }; } &&
12384 { ac_try='test -s conftest$ac_exeext'
12385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12386 (eval $ac_try) 2>&5
12387 ac_status=$?
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); }; }; then
12390 ac_cv_lib_capi20_capi20_register=yes
12391 else
12392 echo "$as_me: failed program was:" >&5
12393 sed 's/^/| /' conftest.$ac_ext >&5
12395 ac_cv_lib_capi20_capi20_register=no
12397 rm -f conftest.err conftest.$ac_objext \
12398 conftest$ac_exeext conftest.$ac_ext
12399 LIBS=$ac_check_lib_save_LIBS
12401 echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
12402 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6
12403 if test $ac_cv_lib_capi20_capi20_register = yes; then
12406 cat >>confdefs.h <<\_ACEOF
12407 #define HAVE_CAPI4LINUX 1
12408 _ACEOF
12410 CAPI4LINUXLIBS="-lcapi20"
12418 done
12423 done
12427 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
12428 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
12429 if test "${ac_cv_mmap64_works+set}" = set; then
12430 echo $ECHO_N "(cached) $ECHO_C" >&6
12431 else
12432 if test "$cross_compiling" = yes; then
12433 ac_cv_mmap64_works="no"
12434 else
12435 cat >conftest.$ac_ext <<_ACEOF
12436 /* confdefs.h. */
12437 _ACEOF
12438 cat confdefs.h >>conftest.$ac_ext
12439 cat >>conftest.$ac_ext <<_ACEOF
12440 /* end confdefs.h. */
12442 #define _FILE_OFFSET_BITS 64
12443 #include <stdio.h>
12444 #include <unistd.h>
12445 #include <fcntl.h>
12446 #include <sys/mman.h>
12447 #include <errno.h>
12449 int main(int argc,char **argv) {
12450 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
12451 if (fd == -1) exit(1);
12453 unlink("conftest.map");
12455 write(fd,"test",4);
12457 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
12458 (errno == EINVAL)
12460 exit(1);
12462 close(fd);
12463 fprintf(stderr,"success!\n");
12464 exit(0);
12468 _ACEOF
12469 rm -f conftest$ac_exeext
12470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12471 (eval $ac_link) 2>&5
12472 ac_status=$?
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12476 (eval $ac_try) 2>&5
12477 ac_status=$?
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); }; }; then
12480 ac_cv_mmap64_works="yes"
12481 else
12482 echo "$as_me: program exited with status $ac_status" >&5
12483 echo "$as_me: failed program was:" >&5
12484 sed 's/^/| /' conftest.$ac_ext >&5
12486 ( exit $ac_status )
12487 ac_cv_mmap64_works="no"
12489 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12492 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
12493 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
12495 if test "$ac_cv_mmap64_works" = "yes"
12496 then
12498 cat >>confdefs.h <<\_ACEOF
12499 #define _FILE_OFFSET_BITS 64
12500 _ACEOF
12505 EXTRACFLAGS=""
12507 if test "x${GCC}" = "xyes"
12508 then
12509 EXTRACFLAGS="-Wall -pipe"
12511 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
12512 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
12513 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12515 else
12516 if test "$cross_compiling" = yes; then
12517 ac_cv_c_gcc_strength_bug="yes"
12518 else
12519 cat >conftest.$ac_ext <<_ACEOF
12520 /* confdefs.h. */
12521 _ACEOF
12522 cat confdefs.h >>conftest.$ac_ext
12523 cat >>conftest.$ac_ext <<_ACEOF
12524 /* end confdefs.h. */
12526 int L[4] = {0,1,2,3};
12527 int main(void) {
12528 static int Array[3];
12529 unsigned int B = 3;
12530 int i;
12531 for(i=0; i<B; i++) Array[i] = i - 3;
12532 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12533 L[i] = 4;
12535 exit( Array[1] != -2 || L[2] != 3);
12537 _ACEOF
12538 rm -f conftest$ac_exeext
12539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12540 (eval $ac_link) 2>&5
12541 ac_status=$?
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12545 (eval $ac_try) 2>&5
12546 ac_status=$?
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); }; }; then
12549 ac_cv_c_gcc_strength_bug="no"
12550 else
12551 echo "$as_me: program exited with status $ac_status" >&5
12552 echo "$as_me: failed program was:" >&5
12553 sed 's/^/| /' conftest.$ac_ext >&5
12555 ( exit $ac_status )
12556 ac_cv_c_gcc_strength_bug="yes"
12558 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12561 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
12562 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
12563 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12564 then
12565 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12568 echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
12569 echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6
12570 if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
12571 echo $ECHO_N "(cached) $ECHO_C" >&6
12572 else
12573 ac_wine_try_cflags_saved=$CFLAGS
12574 CFLAGS="$CFLAGS -fshort-wchar"
12575 cat >conftest.$ac_ext <<_ACEOF
12576 /* confdefs.h. */
12577 _ACEOF
12578 cat confdefs.h >>conftest.$ac_ext
12579 cat >>conftest.$ac_ext <<_ACEOF
12580 /* end confdefs.h. */
12583 main ()
12587 return 0;
12589 _ACEOF
12590 rm -f conftest.$ac_objext conftest$ac_exeext
12591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12592 (eval $ac_link) 2>conftest.er1
12593 ac_status=$?
12594 grep -v '^ *+' conftest.er1 >conftest.err
12595 rm -f conftest.er1
12596 cat conftest.err >&5
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); } &&
12599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12601 (eval $ac_try) 2>&5
12602 ac_status=$?
12603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); }; } &&
12605 { ac_try='test -s conftest$ac_exeext'
12606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12607 (eval $ac_try) 2>&5
12608 ac_status=$?
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); }; }; then
12611 ac_cv_c_gcc_fshort_wchar="yes"
12612 else
12613 echo "$as_me: failed program was:" >&5
12614 sed 's/^/| /' conftest.$ac_ext >&5
12616 ac_cv_c_gcc_fshort_wchar="no"
12618 rm -f conftest.err conftest.$ac_objext \
12619 conftest$ac_exeext conftest.$ac_ext
12620 CFLAGS=$ac_wine_try_cflags_saved
12622 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
12623 echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6
12624 if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
12625 then
12627 cat >>confdefs.h <<\_ACEOF
12628 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
12629 _ACEOF
12633 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
12634 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
12635 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
12636 echo $ECHO_N "(cached) $ECHO_C" >&6
12637 else
12638 ac_wine_try_cflags_saved=$CFLAGS
12639 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
12640 cat >conftest.$ac_ext <<_ACEOF
12641 /* confdefs.h. */
12642 _ACEOF
12643 cat confdefs.h >>conftest.$ac_ext
12644 cat >>conftest.$ac_ext <<_ACEOF
12645 /* end confdefs.h. */
12648 main ()
12652 return 0;
12654 _ACEOF
12655 rm -f conftest.$ac_objext conftest$ac_exeext
12656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12657 (eval $ac_link) 2>conftest.er1
12658 ac_status=$?
12659 grep -v '^ *+' conftest.er1 >conftest.err
12660 rm -f conftest.er1
12661 cat conftest.err >&5
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); } &&
12664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12666 (eval $ac_try) 2>&5
12667 ac_status=$?
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); }; } &&
12670 { ac_try='test -s conftest$ac_exeext'
12671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12672 (eval $ac_try) 2>&5
12673 ac_status=$?
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); }; }; then
12676 ac_cv_c_gcc_stack_boundary="yes"
12677 else
12678 echo "$as_me: failed program was:" >&5
12679 sed 's/^/| /' conftest.$ac_ext >&5
12681 ac_cv_c_gcc_stack_boundary="no"
12683 rm -f conftest.err conftest.$ac_objext \
12684 conftest$ac_exeext conftest.$ac_ext
12685 CFLAGS=$ac_wine_try_cflags_saved
12687 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
12688 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
12689 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
12690 then
12691 EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
12694 echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
12695 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
12696 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
12697 echo $ECHO_N "(cached) $ECHO_C" >&6
12698 else
12699 ac_wine_try_cflags_saved=$CFLAGS
12700 CFLAGS="$CFLAGS -fno-strict-aliasing"
12701 cat >conftest.$ac_ext <<_ACEOF
12702 /* confdefs.h. */
12703 _ACEOF
12704 cat confdefs.h >>conftest.$ac_ext
12705 cat >>conftest.$ac_ext <<_ACEOF
12706 /* end confdefs.h. */
12709 main ()
12713 return 0;
12715 _ACEOF
12716 rm -f conftest.$ac_objext conftest$ac_exeext
12717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12718 (eval $ac_link) 2>conftest.er1
12719 ac_status=$?
12720 grep -v '^ *+' conftest.er1 >conftest.err
12721 rm -f conftest.er1
12722 cat conftest.err >&5
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); } &&
12725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12727 (eval $ac_try) 2>&5
12728 ac_status=$?
12729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730 (exit $ac_status); }; } &&
12731 { ac_try='test -s conftest$ac_exeext'
12732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12733 (eval $ac_try) 2>&5
12734 ac_status=$?
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); }; }; then
12737 ac_cv_c_gcc_no_strict_aliasing="yes"
12738 else
12739 echo "$as_me: failed program was:" >&5
12740 sed 's/^/| /' conftest.$ac_ext >&5
12742 ac_cv_c_gcc_no_strict_aliasing="no"
12744 rm -f conftest.err conftest.$ac_objext \
12745 conftest$ac_exeext conftest.$ac_ext
12746 CFLAGS=$ac_wine_try_cflags_saved
12748 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
12749 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
12750 if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
12751 then
12752 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12755 echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
12756 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
12757 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
12758 echo $ECHO_N "(cached) $ECHO_C" >&6
12759 else
12760 ac_wine_try_cflags_saved=$CFLAGS
12761 CFLAGS="$CFLAGS -gstabs+"
12762 cat >conftest.$ac_ext <<_ACEOF
12763 /* confdefs.h. */
12764 _ACEOF
12765 cat confdefs.h >>conftest.$ac_ext
12766 cat >>conftest.$ac_ext <<_ACEOF
12767 /* end confdefs.h. */
12770 main ()
12774 return 0;
12776 _ACEOF
12777 rm -f conftest.$ac_objext conftest$ac_exeext
12778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12779 (eval $ac_link) 2>conftest.er1
12780 ac_status=$?
12781 grep -v '^ *+' conftest.er1 >conftest.err
12782 rm -f conftest.er1
12783 cat conftest.err >&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); } &&
12786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12788 (eval $ac_try) 2>&5
12789 ac_status=$?
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; } &&
12792 { ac_try='test -s conftest$ac_exeext'
12793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12794 (eval $ac_try) 2>&5
12795 ac_status=$?
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); }; }; then
12798 ac_cv_c_gcc_gstabs="yes"
12799 else
12800 echo "$as_me: failed program was:" >&5
12801 sed 's/^/| /' conftest.$ac_ext >&5
12803 ac_cv_c_gcc_gstabs="no"
12805 rm -f conftest.err conftest.$ac_objext \
12806 conftest$ac_exeext conftest.$ac_ext
12807 CFLAGS=$ac_wine_try_cflags_saved
12809 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
12810 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
12811 if test "$ac_cv_c_gcc_gstabs" = "yes"
12812 then
12813 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12816 saved_CFLAGS="$CFLAGS"
12817 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12818 echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
12819 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
12820 if test "${ac_cv_c_string_h_warnings+set}" = set; then
12821 echo $ECHO_N "(cached) $ECHO_C" >&6
12822 else
12823 cat >conftest.$ac_ext <<_ACEOF
12824 /* confdefs.h. */
12825 _ACEOF
12826 cat confdefs.h >>conftest.$ac_ext
12827 cat >>conftest.$ac_ext <<_ACEOF
12828 /* end confdefs.h. */
12829 #include <string.h>
12831 main ()
12835 return 0;
12837 _ACEOF
12838 rm -f conftest.$ac_objext
12839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12840 (eval $ac_compile) 2>conftest.er1
12841 ac_status=$?
12842 grep -v '^ *+' conftest.er1 >conftest.err
12843 rm -f conftest.er1
12844 cat conftest.err >&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); } &&
12847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12849 (eval $ac_try) 2>&5
12850 ac_status=$?
12851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); }; } &&
12853 { ac_try='test -s conftest.$ac_objext'
12854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12855 (eval $ac_try) 2>&5
12856 ac_status=$?
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); }; }; then
12859 ac_cv_c_string_h_warnings=no
12860 else
12861 echo "$as_me: failed program was:" >&5
12862 sed 's/^/| /' conftest.$ac_ext >&5
12864 ac_cv_c_string_h_warnings=yes
12866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12868 echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
12869 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
12870 CFLAGS="$saved_CFLAGS"
12871 if test "$ac_cv_c_string_h_warnings" = "no"
12872 then
12873 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12878 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
12879 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
12880 if test "${ac_cv_asm_func_def+set}" = set; then
12881 echo $ECHO_N "(cached) $ECHO_C" >&6
12882 else
12883 cat >conftest.$ac_ext <<_ACEOF
12884 /* confdefs.h. */
12885 _ACEOF
12886 cat confdefs.h >>conftest.$ac_ext
12887 cat >>conftest.$ac_ext <<_ACEOF
12888 /* end confdefs.h. */
12889 void ac_asm(void) { asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0"); }
12892 main ()
12896 return 0;
12898 _ACEOF
12899 rm -f conftest.$ac_objext conftest$ac_exeext
12900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12901 (eval $ac_link) 2>conftest.er1
12902 ac_status=$?
12903 grep -v '^ *+' conftest.er1 >conftest.err
12904 rm -f conftest.er1
12905 cat conftest.err >&5
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); } &&
12908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12910 (eval $ac_try) 2>&5
12911 ac_status=$?
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; } &&
12914 { ac_try='test -s conftest$ac_exeext'
12915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12916 (eval $ac_try) 2>&5
12917 ac_status=$?
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); }; }; then
12920 ac_cv_asm_func_def=".def"
12921 else
12922 echo "$as_me: failed program was:" >&5
12923 sed 's/^/| /' conftest.$ac_ext >&5
12925 cat >conftest.$ac_ext <<_ACEOF
12926 /* confdefs.h. */
12927 _ACEOF
12928 cat confdefs.h >>conftest.$ac_ext
12929 cat >>conftest.$ac_ext <<_ACEOF
12930 /* end confdefs.h. */
12931 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
12934 main ()
12938 return 0;
12940 _ACEOF
12941 rm -f conftest.$ac_objext conftest$ac_exeext
12942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12943 (eval $ac_link) 2>conftest.er1
12944 ac_status=$?
12945 grep -v '^ *+' conftest.er1 >conftest.err
12946 rm -f conftest.er1
12947 cat conftest.err >&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); } &&
12950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12952 (eval $ac_try) 2>&5
12953 ac_status=$?
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); }; } &&
12956 { ac_try='test -s conftest$ac_exeext'
12957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12958 (eval $ac_try) 2>&5
12959 ac_status=$?
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; }; then
12962 ac_cv_asm_func_def=".type @function"
12963 else
12964 echo "$as_me: failed program was:" >&5
12965 sed 's/^/| /' conftest.$ac_ext >&5
12967 cat >conftest.$ac_ext <<_ACEOF
12968 /* confdefs.h. */
12969 _ACEOF
12970 cat confdefs.h >>conftest.$ac_ext
12971 cat >>conftest.$ac_ext <<_ACEOF
12972 /* end confdefs.h. */
12973 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
12976 main ()
12980 return 0;
12982 _ACEOF
12983 rm -f conftest.$ac_objext conftest$ac_exeext
12984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12985 (eval $ac_link) 2>conftest.er1
12986 ac_status=$?
12987 grep -v '^ *+' conftest.er1 >conftest.err
12988 rm -f conftest.er1
12989 cat conftest.err >&5
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); } &&
12992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12994 (eval $ac_try) 2>&5
12995 ac_status=$?
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); }; } &&
12998 { ac_try='test -s conftest$ac_exeext'
12999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13000 (eval $ac_try) 2>&5
13001 ac_status=$?
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); }; }; then
13004 ac_cv_asm_func_def=".type 2"
13005 else
13006 echo "$as_me: failed program was:" >&5
13007 sed 's/^/| /' conftest.$ac_ext >&5
13009 ac_cv_asm_func_def="unknown"
13011 rm -f conftest.err conftest.$ac_objext \
13012 conftest$ac_exeext conftest.$ac_ext
13014 rm -f conftest.err conftest.$ac_objext \
13015 conftest$ac_exeext conftest.$ac_ext
13017 rm -f conftest.err conftest.$ac_objext \
13018 conftest$ac_exeext conftest.$ac_ext
13020 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
13021 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
13025 case "$ac_cv_asm_func_def" in
13026 ".def")
13027 cat >>confdefs.h <<\_ACEOF
13028 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
13029 _ACEOF
13031 ".type @function")
13032 cat >>confdefs.h <<\_ACEOF
13033 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
13034 _ACEOF
13036 ".type 2")
13037 cat >>confdefs.h <<\_ACEOF
13038 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
13039 _ACEOF
13042 cat >>confdefs.h <<\_ACEOF
13043 #define __ASM_FUNC(name) ""
13044 _ACEOF
13046 esac
13049 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
13050 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
13051 if test "${ac_cv_c_extern_prefix+set}" = set; then
13052 echo $ECHO_N "(cached) $ECHO_C" >&6
13053 else
13054 cat >conftest.$ac_ext <<_ACEOF
13055 /* confdefs.h. */
13056 _ACEOF
13057 cat confdefs.h >>conftest.$ac_ext
13058 cat >>conftest.$ac_ext <<_ACEOF
13059 /* end confdefs.h. */
13060 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
13061 extern int ac_test;
13063 main ()
13065 if (ac_test) return 1
13067 return 0;
13069 _ACEOF
13070 rm -f conftest.$ac_objext conftest$ac_exeext
13071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13072 (eval $ac_link) 2>conftest.er1
13073 ac_status=$?
13074 grep -v '^ *+' conftest.er1 >conftest.err
13075 rm -f conftest.er1
13076 cat conftest.err >&5
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); } &&
13079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13081 (eval $ac_try) 2>&5
13082 ac_status=$?
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); }; } &&
13085 { ac_try='test -s conftest$ac_exeext'
13086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13087 (eval $ac_try) 2>&5
13088 ac_status=$?
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); }; }; then
13091 ac_cv_c_extern_prefix="yes"
13092 else
13093 echo "$as_me: failed program was:" >&5
13094 sed 's/^/| /' conftest.$ac_ext >&5
13096 ac_cv_c_extern_prefix="no"
13098 rm -f conftest.err conftest.$ac_objext \
13099 conftest$ac_exeext conftest.$ac_ext
13101 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
13102 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
13106 if test "$ac_cv_c_extern_prefix" = "yes"
13107 then
13108 cat >>confdefs.h <<\_ACEOF
13109 #define __ASM_NAME(name) "_" name
13110 _ACEOF
13112 else
13113 cat >>confdefs.h <<\_ACEOF
13114 #define __ASM_NAME(name) name
13115 _ACEOF
13120 echo "$as_me:$LINENO: checking for assembler keyword for ASCII strings" >&5
13121 echo $ECHO_N "checking for assembler keyword for ASCII strings... $ECHO_C" >&6
13122 if test "${ac_cv_c_asm_string+set}" = set; then
13123 echo $ECHO_N "(cached) $ECHO_C" >&6
13124 else
13125 cat >conftest.$ac_ext <<_ACEOF
13126 /* confdefs.h. */
13127 _ACEOF
13128 cat confdefs.h >>conftest.$ac_ext
13129 cat >>conftest.$ac_ext <<_ACEOF
13130 /* end confdefs.h. */
13131 void ac_asm(void) { asm(".data\\n\\t.string \\"test\\"\\n\\t.text"); }
13134 main ()
13138 return 0;
13140 _ACEOF
13141 rm -f conftest.$ac_objext conftest$ac_exeext
13142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13143 (eval $ac_link) 2>conftest.er1
13144 ac_status=$?
13145 grep -v '^ *+' conftest.er1 >conftest.err
13146 rm -f conftest.er1
13147 cat conftest.err >&5
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); } &&
13150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13152 (eval $ac_try) 2>&5
13153 ac_status=$?
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; } &&
13156 { ac_try='test -s conftest$ac_exeext'
13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158 (eval $ac_try) 2>&5
13159 ac_status=$?
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; }; then
13162 ac_cv_c_asm_string=".string"
13163 else
13164 echo "$as_me: failed program was:" >&5
13165 sed 's/^/| /' conftest.$ac_ext >&5
13167 cat >conftest.$ac_ext <<_ACEOF
13168 /* confdefs.h. */
13169 _ACEOF
13170 cat confdefs.h >>conftest.$ac_ext
13171 cat >>conftest.$ac_ext <<_ACEOF
13172 /* end confdefs.h. */
13173 void ac_asm(void) { asm(".data\\n\\t.asciz \\"test\\"\\n\\t.text"); }
13176 main ()
13180 return 0;
13182 _ACEOF
13183 rm -f conftest.$ac_objext conftest$ac_exeext
13184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13185 (eval $ac_link) 2>conftest.er1
13186 ac_status=$?
13187 grep -v '^ *+' conftest.er1 >conftest.err
13188 rm -f conftest.er1
13189 cat conftest.err >&5
13190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191 (exit $ac_status); } &&
13192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13194 (eval $ac_try) 2>&5
13195 ac_status=$?
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); }; } &&
13198 { ac_try='test -s conftest$ac_exeext'
13199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13200 (eval $ac_try) 2>&5
13201 ac_status=$?
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); }; }; then
13204 ac_cv_c_asm_string=".asciz"
13205 else
13206 echo "$as_me: failed program was:" >&5
13207 sed 's/^/| /' conftest.$ac_ext >&5
13209 cat >conftest.$ac_ext <<_ACEOF
13210 /* confdefs.h. */
13211 _ACEOF
13212 cat confdefs.h >>conftest.$ac_ext
13213 cat >>conftest.$ac_ext <<_ACEOF
13214 /* end confdefs.h. */
13215 void ac_asm(void) { asm(".data\\n\\t.ascii \\"test\\"\\n\\t.text"); }
13218 main ()
13222 return 0;
13224 _ACEOF
13225 rm -f conftest.$ac_objext conftest$ac_exeext
13226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13227 (eval $ac_link) 2>conftest.er1
13228 ac_status=$?
13229 grep -v '^ *+' conftest.er1 >conftest.err
13230 rm -f conftest.er1
13231 cat conftest.err >&5
13232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233 (exit $ac_status); } &&
13234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13236 (eval $ac_try) 2>&5
13237 ac_status=$?
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); }; } &&
13240 { ac_try='test -s conftest$ac_exeext'
13241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13242 (eval $ac_try) 2>&5
13243 ac_status=$?
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); }; }; then
13246 ac_cv_c_asm_string=".ascii"
13247 else
13248 echo "$as_me: failed program was:" >&5
13249 sed 's/^/| /' conftest.$ac_ext >&5
13251 { { echo "$as_me:$LINENO: error: could not discover how to produce C strings with assembler." >&5
13252 echo "$as_me: error: could not discover how to produce C strings with assembler." >&2;}
13253 { (exit 1); exit 1; }; }
13255 rm -f conftest.err conftest.$ac_objext \
13256 conftest$ac_exeext conftest.$ac_ext
13258 rm -f conftest.err conftest.$ac_objext \
13259 conftest$ac_exeext conftest.$ac_ext
13261 rm -f conftest.err conftest.$ac_objext \
13262 conftest$ac_exeext conftest.$ac_ext
13264 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
13265 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
13268 cat >>confdefs.h <<_ACEOF
13269 #define __ASM_STRING "$ac_cv_c_asm_string"
13270 _ACEOF
13274 echo "$as_me:$LINENO: checking for assembler keyword for word values" >&5
13275 echo $ECHO_N "checking for assembler keyword for word values... $ECHO_C" >&6
13276 if test "${ac_cv_c_asm_short+set}" = set; then
13277 echo $ECHO_N "(cached) $ECHO_C" >&6
13278 else
13279 cat >conftest.$ac_ext <<_ACEOF
13280 /* confdefs.h. */
13281 _ACEOF
13282 cat confdefs.h >>conftest.$ac_ext
13283 cat >>conftest.$ac_ext <<_ACEOF
13284 /* end confdefs.h. */
13285 void ac_asm(void) { asm(".data\\n\\t.short 1\\n\\t.text"); }
13288 main ()
13292 return 0;
13294 _ACEOF
13295 rm -f conftest.$ac_objext conftest$ac_exeext
13296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13297 (eval $ac_link) 2>conftest.er1
13298 ac_status=$?
13299 grep -v '^ *+' conftest.er1 >conftest.err
13300 rm -f conftest.er1
13301 cat conftest.err >&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); } &&
13304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13306 (eval $ac_try) 2>&5
13307 ac_status=$?
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); }; } &&
13310 { ac_try='test -s conftest$ac_exeext'
13311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13312 (eval $ac_try) 2>&5
13313 ac_status=$?
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); }; }; then
13316 ac_cv_c_asm_short=".short"
13317 else
13318 echo "$as_me: failed program was:" >&5
13319 sed 's/^/| /' conftest.$ac_ext >&5
13321 cat >conftest.$ac_ext <<_ACEOF
13322 /* confdefs.h. */
13323 _ACEOF
13324 cat confdefs.h >>conftest.$ac_ext
13325 cat >>conftest.$ac_ext <<_ACEOF
13326 /* end confdefs.h. */
13327 void ac_asm(void) { asm(".data\\n\\t.half 1\\n\\t.text"); }
13330 main ()
13334 return 0;
13336 _ACEOF
13337 rm -f conftest.$ac_objext conftest$ac_exeext
13338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13339 (eval $ac_link) 2>conftest.er1
13340 ac_status=$?
13341 grep -v '^ *+' conftest.er1 >conftest.err
13342 rm -f conftest.er1
13343 cat conftest.err >&5
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); } &&
13346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13348 (eval $ac_try) 2>&5
13349 ac_status=$?
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); }; } &&
13352 { ac_try='test -s conftest$ac_exeext'
13353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13354 (eval $ac_try) 2>&5
13355 ac_status=$?
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); }; }; then
13358 ac_cv_c_asm_short=".half"
13359 else
13360 echo "$as_me: failed program was:" >&5
13361 sed 's/^/| /' conftest.$ac_ext >&5
13363 { { echo "$as_me:$LINENO: error: could not discover how to specify word values with assembler." >&5
13364 echo "$as_me: error: could not discover how to specify word values with assembler." >&2;}
13365 { (exit 1); exit 1; }; }
13367 rm -f conftest.err conftest.$ac_objext \
13368 conftest$ac_exeext conftest.$ac_ext
13370 rm -f conftest.err conftest.$ac_objext \
13371 conftest$ac_exeext conftest.$ac_ext
13373 echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
13374 echo "${ECHO_T}$ac_cv_c_asm_short" >&6
13377 cat >>confdefs.h <<_ACEOF
13378 #define __ASM_SHORT "$ac_cv_c_asm_short"
13379 _ACEOF
13383 DLLEXT=""
13385 DLLFLAGS="-D_REENTRANT"
13387 DLLIBS=""
13389 LDSHARED=""
13391 LDDLLFLAGS=""
13393 LIBEXT="so"
13395 IMPLIBEXT="def"
13398 case $host_os in
13399 cygwin*|mingw32*)
13400 if test -n "$ac_tool_prefix"; then
13401 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13402 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13403 echo "$as_me:$LINENO: checking for $ac_word" >&5
13404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13405 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13406 echo $ECHO_N "(cached) $ECHO_C" >&6
13407 else
13408 if test -n "$DLLTOOL"; then
13409 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13410 else
13411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13412 for as_dir in $PATH
13414 IFS=$as_save_IFS
13415 test -z "$as_dir" && as_dir=.
13416 for ac_exec_ext in '' $ac_executable_extensions; do
13417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13418 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13420 break 2
13422 done
13423 done
13427 DLLTOOL=$ac_cv_prog_DLLTOOL
13428 if test -n "$DLLTOOL"; then
13429 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13430 echo "${ECHO_T}$DLLTOOL" >&6
13431 else
13432 echo "$as_me:$LINENO: result: no" >&5
13433 echo "${ECHO_T}no" >&6
13437 if test -z "$ac_cv_prog_DLLTOOL"; then
13438 ac_ct_DLLTOOL=$DLLTOOL
13439 # Extract the first word of "dlltool", so it can be a program name with args.
13440 set dummy dlltool; ac_word=$2
13441 echo "$as_me:$LINENO: checking for $ac_word" >&5
13442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13443 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
13444 echo $ECHO_N "(cached) $ECHO_C" >&6
13445 else
13446 if test -n "$ac_ct_DLLTOOL"; then
13447 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13448 else
13449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13450 for as_dir in $PATH
13452 IFS=$as_save_IFS
13453 test -z "$as_dir" && as_dir=.
13454 for ac_exec_ext in '' $ac_executable_extensions; do
13455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13456 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13458 break 2
13460 done
13461 done
13463 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
13466 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13467 if test -n "$ac_ct_DLLTOOL"; then
13468 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13469 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
13470 else
13471 echo "$as_me:$LINENO: result: no" >&5
13472 echo "${ECHO_T}no" >&6
13475 DLLTOOL=$ac_ct_DLLTOOL
13476 else
13477 DLLTOOL="$ac_cv_prog_DLLTOOL"
13480 if test -n "$ac_tool_prefix"; then
13481 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
13482 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
13483 echo "$as_me:$LINENO: checking for $ac_word" >&5
13484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13485 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
13486 echo $ECHO_N "(cached) $ECHO_C" >&6
13487 else
13488 if test -n "$DLLWRAP"; then
13489 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
13490 else
13491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13492 for as_dir in $PATH
13494 IFS=$as_save_IFS
13495 test -z "$as_dir" && as_dir=.
13496 for ac_exec_ext in '' $ac_executable_extensions; do
13497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13498 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
13499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13500 break 2
13502 done
13503 done
13507 DLLWRAP=$ac_cv_prog_DLLWRAP
13508 if test -n "$DLLWRAP"; then
13509 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
13510 echo "${ECHO_T}$DLLWRAP" >&6
13511 else
13512 echo "$as_me:$LINENO: result: no" >&5
13513 echo "${ECHO_T}no" >&6
13517 if test -z "$ac_cv_prog_DLLWRAP"; then
13518 ac_ct_DLLWRAP=$DLLWRAP
13519 # Extract the first word of "dllwrap", so it can be a program name with args.
13520 set dummy dllwrap; ac_word=$2
13521 echo "$as_me:$LINENO: checking for $ac_word" >&5
13522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13523 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
13524 echo $ECHO_N "(cached) $ECHO_C" >&6
13525 else
13526 if test -n "$ac_ct_DLLWRAP"; then
13527 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
13528 else
13529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13530 for as_dir in $PATH
13532 IFS=$as_save_IFS
13533 test -z "$as_dir" && as_dir=.
13534 for ac_exec_ext in '' $ac_executable_extensions; do
13535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13536 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
13537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13538 break 2
13540 done
13541 done
13543 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
13546 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
13547 if test -n "$ac_ct_DLLWRAP"; then
13548 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
13549 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
13550 else
13551 echo "$as_me:$LINENO: result: no" >&5
13552 echo "${ECHO_T}no" >&6
13555 DLLWRAP=$ac_ct_DLLWRAP
13556 else
13557 DLLWRAP="$ac_cv_prog_DLLWRAP"
13560 if test "$DLLWRAP" = "false"; then
13561 LIBEXT="a"
13562 else
13563 LIBEXT="dll"
13565 IMPLIBEXT="a"
13569 for ac_header in dlfcn.h
13571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13573 echo "$as_me:$LINENO: checking for $ac_header" >&5
13574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13576 echo $ECHO_N "(cached) $ECHO_C" >&6
13578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13580 else
13581 # Is the header compilable?
13582 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13583 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13584 cat >conftest.$ac_ext <<_ACEOF
13585 /* confdefs.h. */
13586 _ACEOF
13587 cat confdefs.h >>conftest.$ac_ext
13588 cat >>conftest.$ac_ext <<_ACEOF
13589 /* end confdefs.h. */
13590 $ac_includes_default
13591 #include <$ac_header>
13592 _ACEOF
13593 rm -f conftest.$ac_objext
13594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13595 (eval $ac_compile) 2>conftest.er1
13596 ac_status=$?
13597 grep -v '^ *+' conftest.er1 >conftest.err
13598 rm -f conftest.er1
13599 cat conftest.err >&5
13600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601 (exit $ac_status); } &&
13602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13604 (eval $ac_try) 2>&5
13605 ac_status=$?
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); }; } &&
13608 { ac_try='test -s conftest.$ac_objext'
13609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13610 (eval $ac_try) 2>&5
13611 ac_status=$?
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); }; }; then
13614 ac_header_compiler=yes
13615 else
13616 echo "$as_me: failed program was:" >&5
13617 sed 's/^/| /' conftest.$ac_ext >&5
13619 ac_header_compiler=no
13621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13622 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13623 echo "${ECHO_T}$ac_header_compiler" >&6
13625 # Is the header present?
13626 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13627 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13628 cat >conftest.$ac_ext <<_ACEOF
13629 /* confdefs.h. */
13630 _ACEOF
13631 cat confdefs.h >>conftest.$ac_ext
13632 cat >>conftest.$ac_ext <<_ACEOF
13633 /* end confdefs.h. */
13634 #include <$ac_header>
13635 _ACEOF
13636 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13638 ac_status=$?
13639 grep -v '^ *+' conftest.er1 >conftest.err
13640 rm -f conftest.er1
13641 cat conftest.err >&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } >/dev/null; then
13644 if test -s conftest.err; then
13645 ac_cpp_err=$ac_c_preproc_warn_flag
13646 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13647 else
13648 ac_cpp_err=
13650 else
13651 ac_cpp_err=yes
13653 if test -z "$ac_cpp_err"; then
13654 ac_header_preproc=yes
13655 else
13656 echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13659 ac_header_preproc=no
13661 rm -f conftest.err conftest.$ac_ext
13662 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13663 echo "${ECHO_T}$ac_header_preproc" >&6
13665 # So? What about this header?
13666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13667 yes:no: )
13668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13669 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13671 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13672 ac_header_preproc=yes
13674 no:yes:* )
13675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13676 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13678 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13680 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13682 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13686 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13688 cat <<\_ASBOX
13689 ## ------------------------------------ ##
13690 ## Report this to wine-devel@winehq.org ##
13691 ## ------------------------------------ ##
13692 _ASBOX
13694 sed "s/^/$as_me: WARNING: /" >&2
13696 esac
13697 echo "$as_me:$LINENO: checking for $ac_header" >&5
13698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13700 echo $ECHO_N "(cached) $ECHO_C" >&6
13701 else
13702 eval "$as_ac_Header=\$ac_header_preproc"
13704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13708 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13709 cat >>confdefs.h <<_ACEOF
13710 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13711 _ACEOF
13713 for ac_func in dlopen
13715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13716 echo "$as_me:$LINENO: checking for $ac_func" >&5
13717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13718 if eval "test \"\${$as_ac_var+set}\" = set"; then
13719 echo $ECHO_N "(cached) $ECHO_C" >&6
13720 else
13721 cat >conftest.$ac_ext <<_ACEOF
13722 /* confdefs.h. */
13723 _ACEOF
13724 cat confdefs.h >>conftest.$ac_ext
13725 cat >>conftest.$ac_ext <<_ACEOF
13726 /* end confdefs.h. */
13727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13729 #define $ac_func innocuous_$ac_func
13731 /* System header to define __stub macros and hopefully few prototypes,
13732 which can conflict with char $ac_func (); below.
13733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13734 <limits.h> exists even on freestanding compilers. */
13736 #ifdef __STDC__
13737 # include <limits.h>
13738 #else
13739 # include <assert.h>
13740 #endif
13742 #undef $ac_func
13744 /* Override any gcc2 internal prototype to avoid an error. */
13745 #ifdef __cplusplus
13746 extern "C"
13748 #endif
13749 /* We use char because int might match the return type of a gcc2
13750 builtin and then its argument prototype would still apply. */
13751 char $ac_func ();
13752 /* The GNU C library defines this for functions which it implements
13753 to always fail with ENOSYS. Some functions are actually named
13754 something starting with __ and the normal name is an alias. */
13755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13756 choke me
13757 #else
13758 char (*f) () = $ac_func;
13759 #endif
13760 #ifdef __cplusplus
13762 #endif
13765 main ()
13767 return f != $ac_func;
13769 return 0;
13771 _ACEOF
13772 rm -f conftest.$ac_objext conftest$ac_exeext
13773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13774 (eval $ac_link) 2>conftest.er1
13775 ac_status=$?
13776 grep -v '^ *+' conftest.er1 >conftest.err
13777 rm -f conftest.er1
13778 cat conftest.err >&5
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); } &&
13781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13783 (eval $ac_try) 2>&5
13784 ac_status=$?
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); }; } &&
13787 { ac_try='test -s conftest$ac_exeext'
13788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13789 (eval $ac_try) 2>&5
13790 ac_status=$?
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); }; }; then
13793 eval "$as_ac_var=yes"
13794 else
13795 echo "$as_me: failed program was:" >&5
13796 sed 's/^/| /' conftest.$ac_ext >&5
13798 eval "$as_ac_var=no"
13800 rm -f conftest.err conftest.$ac_objext \
13801 conftest$ac_exeext conftest.$ac_ext
13803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13804 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13805 if test `eval echo '${'$as_ac_var'}'` = yes; then
13806 cat >>confdefs.h <<_ACEOF
13807 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13808 _ACEOF
13810 else
13811 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13812 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13813 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13814 echo $ECHO_N "(cached) $ECHO_C" >&6
13815 else
13816 ac_check_lib_save_LIBS=$LIBS
13817 LIBS="-ldl $LIBS"
13818 cat >conftest.$ac_ext <<_ACEOF
13819 /* confdefs.h. */
13820 _ACEOF
13821 cat confdefs.h >>conftest.$ac_ext
13822 cat >>conftest.$ac_ext <<_ACEOF
13823 /* end confdefs.h. */
13825 /* Override any gcc2 internal prototype to avoid an error. */
13826 #ifdef __cplusplus
13827 extern "C"
13828 #endif
13829 /* We use char because int might match the return type of a gcc2
13830 builtin and then its argument prototype would still apply. */
13831 char dlopen ();
13833 main ()
13835 dlopen ();
13837 return 0;
13839 _ACEOF
13840 rm -f conftest.$ac_objext conftest$ac_exeext
13841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13842 (eval $ac_link) 2>conftest.er1
13843 ac_status=$?
13844 grep -v '^ *+' conftest.er1 >conftest.err
13845 rm -f conftest.er1
13846 cat conftest.err >&5
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); } &&
13849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13852 ac_status=$?
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; } &&
13855 { ac_try='test -s conftest$ac_exeext'
13856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13857 (eval $ac_try) 2>&5
13858 ac_status=$?
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; }; then
13861 ac_cv_lib_dl_dlopen=yes
13862 else
13863 echo "$as_me: failed program was:" >&5
13864 sed 's/^/| /' conftest.$ac_ext >&5
13866 ac_cv_lib_dl_dlopen=no
13868 rm -f conftest.err conftest.$ac_objext \
13869 conftest$ac_exeext conftest.$ac_ext
13870 LIBS=$ac_check_lib_save_LIBS
13872 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13873 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13874 if test $ac_cv_lib_dl_dlopen = yes; then
13876 cat >>confdefs.h <<\_ACEOF
13877 #define HAVE_DLOPEN 1
13878 _ACEOF
13880 DLLIBS="-ldl"
13881 else
13882 LIBEXT="a"
13886 done
13888 else
13889 LIBEXT="a"
13892 done
13895 if test "$LIBEXT" = "so"
13896 then
13897 DLLFLAGS="$DLLFLAGS -fPIC"
13898 DLLEXT=".so"
13899 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
13900 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
13901 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
13902 echo $ECHO_N "(cached) $ECHO_C" >&6
13903 else
13904 ac_wine_try_cflags_saved=$CFLAGS
13905 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
13906 cat >conftest.$ac_ext <<_ACEOF
13907 /* confdefs.h. */
13908 _ACEOF
13909 cat confdefs.h >>conftest.$ac_ext
13910 cat >>conftest.$ac_ext <<_ACEOF
13911 /* end confdefs.h. */
13914 main ()
13918 return 0;
13920 _ACEOF
13921 rm -f conftest.$ac_objext conftest$ac_exeext
13922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13923 (eval $ac_link) 2>conftest.er1
13924 ac_status=$?
13925 grep -v '^ *+' conftest.er1 >conftest.err
13926 rm -f conftest.er1
13927 cat conftest.err >&5
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); } &&
13930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13932 (eval $ac_try) 2>&5
13933 ac_status=$?
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); }; } &&
13936 { ac_try='test -s conftest$ac_exeext'
13937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13938 (eval $ac_try) 2>&5
13939 ac_status=$?
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); }; }; then
13942 ac_cv_c_dll_gnuelf="yes"
13943 else
13944 echo "$as_me: failed program was:" >&5
13945 sed 's/^/| /' conftest.$ac_ext >&5
13947 ac_cv_c_dll_gnuelf="no"
13949 rm -f conftest.err conftest.$ac_objext \
13950 conftest$ac_exeext conftest.$ac_ext
13951 CFLAGS=$ac_wine_try_cflags_saved
13953 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
13954 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
13955 if test "$ac_cv_c_dll_gnuelf" = "yes"
13956 then
13957 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
13958 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
13959 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
13960 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
13961 if test "${ac_cv_c_dll_zdefs+set}" = set; then
13962 echo $ECHO_N "(cached) $ECHO_C" >&6
13963 else
13964 ac_wine_try_cflags_saved=$CFLAGS
13965 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
13966 cat >conftest.$ac_ext <<_ACEOF
13967 /* confdefs.h. */
13968 _ACEOF
13969 cat confdefs.h >>conftest.$ac_ext
13970 cat >>conftest.$ac_ext <<_ACEOF
13971 /* end confdefs.h. */
13974 main ()
13978 return 0;
13980 _ACEOF
13981 rm -f conftest.$ac_objext conftest$ac_exeext
13982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13983 (eval $ac_link) 2>conftest.er1
13984 ac_status=$?
13985 grep -v '^ *+' conftest.er1 >conftest.err
13986 rm -f conftest.er1
13987 cat conftest.err >&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } &&
13990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13992 (eval $ac_try) 2>&5
13993 ac_status=$?
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); }; } &&
13996 { ac_try='test -s conftest$ac_exeext'
13997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13998 (eval $ac_try) 2>&5
13999 ac_status=$?
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); }; }; then
14002 ac_cv_c_dll_zdefs="yes"
14003 else
14004 echo "$as_me: failed program was:" >&5
14005 sed 's/^/| /' conftest.$ac_ext >&5
14007 ac_cv_c_dll_zdefs="no"
14009 rm -f conftest.err conftest.$ac_objext \
14010 conftest$ac_exeext conftest.$ac_ext
14011 CFLAGS=$ac_wine_try_cflags_saved
14013 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
14014 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
14015 if test "$ac_cv_c_dll_zdefs" = "yes"
14016 then
14017 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
14020 echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
14021 echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6
14022 if test "${ac_cv_c_dll_init_fini+set}" = set; then
14023 echo $ECHO_N "(cached) $ECHO_C" >&6
14024 else
14025 ac_wine_try_cflags_saved=$CFLAGS
14026 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
14027 cat >conftest.$ac_ext <<_ACEOF
14028 /* confdefs.h. */
14029 _ACEOF
14030 cat confdefs.h >>conftest.$ac_ext
14031 cat >>conftest.$ac_ext <<_ACEOF
14032 /* end confdefs.h. */
14035 main ()
14039 return 0;
14041 _ACEOF
14042 rm -f conftest.$ac_objext conftest$ac_exeext
14043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14044 (eval $ac_link) 2>conftest.er1
14045 ac_status=$?
14046 grep -v '^ *+' conftest.er1 >conftest.err
14047 rm -f conftest.er1
14048 cat conftest.err >&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); } &&
14051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14053 (eval $ac_try) 2>&5
14054 ac_status=$?
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); }; } &&
14057 { ac_try='test -s conftest$ac_exeext'
14058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14059 (eval $ac_try) 2>&5
14060 ac_status=$?
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); }; }; then
14063 ac_cv_c_dll_init_fini="yes"
14064 else
14065 echo "$as_me: failed program was:" >&5
14066 sed 's/^/| /' conftest.$ac_ext >&5
14068 ac_cv_c_dll_init_fini="no"
14070 rm -f conftest.err conftest.$ac_objext \
14071 conftest$ac_exeext conftest.$ac_ext
14072 CFLAGS=$ac_wine_try_cflags_saved
14074 echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
14075 echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6
14076 if test "$ac_cv_c_dll_init_fini" = "yes"
14077 then
14078 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
14081 echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
14082 echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6
14083 if test "${ac_cv_c_ld_version_scripts+set}" = set; then
14084 echo $ECHO_N "(cached) $ECHO_C" >&6
14085 else
14086 echo '{ global: *; };' >conftest.map
14087 ac_wine_try_cflags_saved=$CFLAGS
14088 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
14089 cat >conftest.$ac_ext <<_ACEOF
14090 /* confdefs.h. */
14091 _ACEOF
14092 cat confdefs.h >>conftest.$ac_ext
14093 cat >>conftest.$ac_ext <<_ACEOF
14094 /* end confdefs.h. */
14097 main ()
14101 return 0;
14103 _ACEOF
14104 rm -f conftest.$ac_objext conftest$ac_exeext
14105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14106 (eval $ac_link) 2>conftest.er1
14107 ac_status=$?
14108 grep -v '^ *+' conftest.er1 >conftest.err
14109 rm -f conftest.er1
14110 cat conftest.err >&5
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); } &&
14113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14115 (eval $ac_try) 2>&5
14116 ac_status=$?
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); }; } &&
14119 { ac_try='test -s conftest$ac_exeext'
14120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14121 (eval $ac_try) 2>&5
14122 ac_status=$?
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); }; }; then
14125 ac_cv_c_ld_version_scripts="yes"
14126 else
14127 echo "$as_me: failed program was:" >&5
14128 sed 's/^/| /' conftest.$ac_ext >&5
14130 ac_cv_c_ld_version_scripts="no"
14132 rm -f conftest.err conftest.$ac_objext \
14133 conftest$ac_exeext conftest.$ac_ext
14134 CFLAGS=$ac_wine_try_cflags_saved
14135 rm -f conftest.map
14137 echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
14138 echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6
14139 if test "$ac_cv_c_ld_version_scripts" = "yes"
14140 then
14141 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
14144 echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
14145 echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6
14146 if test "${ac_cv_c_export_dynamic+set}" = set; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
14148 else
14149 ac_wine_try_cflags_saved=$CFLAGS
14150 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
14151 cat >conftest.$ac_ext <<_ACEOF
14152 /* confdefs.h. */
14153 _ACEOF
14154 cat confdefs.h >>conftest.$ac_ext
14155 cat >>conftest.$ac_ext <<_ACEOF
14156 /* end confdefs.h. */
14159 main ()
14163 return 0;
14165 _ACEOF
14166 rm -f conftest.$ac_objext conftest$ac_exeext
14167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14168 (eval $ac_link) 2>conftest.er1
14169 ac_status=$?
14170 grep -v '^ *+' conftest.er1 >conftest.err
14171 rm -f conftest.er1
14172 cat conftest.err >&5
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); } &&
14175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14177 (eval $ac_try) 2>&5
14178 ac_status=$?
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); }; } &&
14181 { ac_try='test -s conftest$ac_exeext'
14182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14183 (eval $ac_try) 2>&5
14184 ac_status=$?
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; }; then
14187 ac_cv_c_export_dynamic="yes"
14188 else
14189 echo "$as_me: failed program was:" >&5
14190 sed 's/^/| /' conftest.$ac_ext >&5
14192 ac_cv_c_export_dynamic="no"
14194 rm -f conftest.err conftest.$ac_objext \
14195 conftest$ac_exeext conftest.$ac_ext
14196 CFLAGS=$ac_wine_try_cflags_saved
14198 echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
14199 echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6
14200 if test "$ac_cv_c_export_dynamic" = "yes"
14201 then
14202 LDEXECFLAGS="-Wl,--export-dynamic"
14206 case $host_cpu in
14207 *i[3456789]86*)
14208 echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x00110000" >&5
14209 echo $ECHO_N "checking whether we can relocate the executable to 0x00110000... $ECHO_C" >&6
14210 if test "${ac_cv_ld_reloc_exec+set}" = set; then
14211 echo $ECHO_N "(cached) $ECHO_C" >&6
14212 else
14213 saved_CFLAGS="$CFLAGS"
14214 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x00110400"
14215 if test "$cross_compiling" = yes; then
14216 ac_cv_ld_reloc_exec="no"
14217 else
14218 cat >conftest.$ac_ext <<_ACEOF
14219 /* confdefs.h. */
14220 _ACEOF
14221 cat confdefs.h >>conftest.$ac_ext
14222 cat >>conftest.$ac_ext <<_ACEOF
14223 /* end confdefs.h. */
14224 #include <unistd.h>
14225 int main() { return (sbrk(32*1024*1024) == (void *)-1); }
14226 _ACEOF
14227 rm -f conftest$ac_exeext
14228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14229 (eval $ac_link) 2>&5
14230 ac_status=$?
14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14234 (eval $ac_try) 2>&5
14235 ac_status=$?
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); }; }; then
14238 ac_cv_ld_reloc_exec="yes"
14239 else
14240 echo "$as_me: program exited with status $ac_status" >&5
14241 echo "$as_me: failed program was:" >&5
14242 sed 's/^/| /' conftest.$ac_ext >&5
14244 ( exit $ac_status )
14245 ac_cv_ld_reloc_exec="no"
14247 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14249 CFLAGS="$saved_CFLAGS"
14251 echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
14252 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
14253 if test "$ac_cv_ld_reloc_exec" = "yes"
14254 then
14255 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x00110400"
14258 esac
14260 else
14261 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
14262 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
14263 if test "${ac_cv_c_dll_unixware+set}" = set; then
14264 echo $ECHO_N "(cached) $ECHO_C" >&6
14265 else
14266 ac_wine_try_cflags_saved=$CFLAGS
14267 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
14268 cat >conftest.$ac_ext <<_ACEOF
14269 /* confdefs.h. */
14270 _ACEOF
14271 cat confdefs.h >>conftest.$ac_ext
14272 cat >>conftest.$ac_ext <<_ACEOF
14273 /* end confdefs.h. */
14276 main ()
14280 return 0;
14282 _ACEOF
14283 rm -f conftest.$ac_objext conftest$ac_exeext
14284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14285 (eval $ac_link) 2>conftest.er1
14286 ac_status=$?
14287 grep -v '^ *+' conftest.er1 >conftest.err
14288 rm -f conftest.er1
14289 cat conftest.err >&5
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); } &&
14292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14294 (eval $ac_try) 2>&5
14295 ac_status=$?
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); }; } &&
14298 { ac_try='test -s conftest$ac_exeext'
14299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14300 (eval $ac_try) 2>&5
14301 ac_status=$?
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); }; }; then
14304 ac_cv_c_dll_unixware="yes"
14305 else
14306 echo "$as_me: failed program was:" >&5
14307 sed 's/^/| /' conftest.$ac_ext >&5
14309 ac_cv_c_dll_unixware="no"
14311 rm -f conftest.err conftest.$ac_objext \
14312 conftest$ac_exeext conftest.$ac_ext
14313 CFLAGS=$ac_wine_try_cflags_saved
14315 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
14316 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
14317 if test "$ac_cv_c_dll_unixware" = "yes"
14318 then
14319 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
14320 LDDLLFLAGS="-Wl,-G,-B,symbolic"
14322 else
14323 echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
14324 echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6
14325 if test "${ac_cv_c_dll_macho+set}" = set; then
14326 echo $ECHO_N "(cached) $ECHO_C" >&6
14327 else
14328 ac_wine_try_cflags_saved=$CFLAGS
14329 CFLAGS="$CFLAGS -bundle"
14330 cat >conftest.$ac_ext <<_ACEOF
14331 /* confdefs.h. */
14332 _ACEOF
14333 cat confdefs.h >>conftest.$ac_ext
14334 cat >>conftest.$ac_ext <<_ACEOF
14335 /* end confdefs.h. */
14338 main ()
14342 return 0;
14344 _ACEOF
14345 rm -f conftest.$ac_objext conftest$ac_exeext
14346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14347 (eval $ac_link) 2>conftest.er1
14348 ac_status=$?
14349 grep -v '^ *+' conftest.er1 >conftest.err
14350 rm -f conftest.er1
14351 cat conftest.err >&5
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); } &&
14354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14356 (eval $ac_try) 2>&5
14357 ac_status=$?
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); }; } &&
14360 { ac_try='test -s conftest$ac_exeext'
14361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14362 (eval $ac_try) 2>&5
14363 ac_status=$?
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 (exit $ac_status); }; }; then
14366 ac_cv_c_dll_macho="yes"
14367 else
14368 echo "$as_me: failed program was:" >&5
14369 sed 's/^/| /' conftest.$ac_ext >&5
14371 ac_cv_c_dll_macho="no"
14373 rm -f conftest.err conftest.$ac_objext \
14374 conftest$ac_exeext conftest.$ac_ext
14375 CFLAGS=$ac_wine_try_cflags_saved
14377 echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
14378 echo "${ECHO_T}$ac_cv_c_dll_macho" >&6
14379 if test "$ac_cv_c_dll_macho" = "yes"
14380 then
14381 LIBEXT="dylib"
14382 LDDLLFLAGS="-bundle -flat_namespace -undefined suppress"
14383 LDSHARED="\$(CC) -dynamiclib"
14384 CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp"
14390 CROSSTEST=""
14392 if test "$cross_compiling" = "no"
14393 then
14394 for ac_prog in i586-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
14396 # Extract the first word of "$ac_prog", so it can be a program name with args.
14397 set dummy $ac_prog; ac_word=$2
14398 echo "$as_me:$LINENO: checking for $ac_word" >&5
14399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14400 if test "${ac_cv_prog_CROSSCC+set}" = set; then
14401 echo $ECHO_N "(cached) $ECHO_C" >&6
14402 else
14403 if test -n "$CROSSCC"; then
14404 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
14405 else
14406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14407 for as_dir in $PATH
14409 IFS=$as_save_IFS
14410 test -z "$as_dir" && as_dir=.
14411 for ac_exec_ext in '' $ac_executable_extensions; do
14412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14413 ac_cv_prog_CROSSCC="$ac_prog"
14414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14415 break 2
14417 done
14418 done
14422 CROSSCC=$ac_cv_prog_CROSSCC
14423 if test -n "$CROSSCC"; then
14424 echo "$as_me:$LINENO: result: $CROSSCC" >&5
14425 echo "${ECHO_T}$CROSSCC" >&6
14426 else
14427 echo "$as_me:$LINENO: result: no" >&5
14428 echo "${ECHO_T}no" >&6
14431 test -n "$CROSSCC" && break
14432 done
14433 test -n "$CROSSCC" || CROSSCC="false"
14435 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
14437 # Extract the first word of "$ac_prog", so it can be a program name with args.
14438 set dummy $ac_prog; ac_word=$2
14439 echo "$as_me:$LINENO: checking for $ac_word" >&5
14440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14441 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14442 echo $ECHO_N "(cached) $ECHO_C" >&6
14443 else
14444 if test -n "$DLLTOOL"; then
14445 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14446 else
14447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14448 for as_dir in $PATH
14450 IFS=$as_save_IFS
14451 test -z "$as_dir" && as_dir=.
14452 for ac_exec_ext in '' $ac_executable_extensions; do
14453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14454 ac_cv_prog_DLLTOOL="$ac_prog"
14455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14456 break 2
14458 done
14459 done
14463 DLLTOOL=$ac_cv_prog_DLLTOOL
14464 if test -n "$DLLTOOL"; then
14465 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14466 echo "${ECHO_T}$DLLTOOL" >&6
14467 else
14468 echo "$as_me:$LINENO: result: no" >&5
14469 echo "${ECHO_T}no" >&6
14472 test -n "$DLLTOOL" && break
14473 done
14474 test -n "$DLLTOOL" || DLLTOOL="false"
14476 for ac_prog in i586-mingw32msvc-windres i386-mingw32-windres mingw-windres
14478 # Extract the first word of "$ac_prog", so it can be a program name with args.
14479 set dummy $ac_prog; ac_word=$2
14480 echo "$as_me:$LINENO: checking for $ac_word" >&5
14481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14482 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
14483 echo $ECHO_N "(cached) $ECHO_C" >&6
14484 else
14485 if test -n "$CROSSWINDRES"; then
14486 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
14487 else
14488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14489 for as_dir in $PATH
14491 IFS=$as_save_IFS
14492 test -z "$as_dir" && as_dir=.
14493 for ac_exec_ext in '' $ac_executable_extensions; do
14494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14495 ac_cv_prog_CROSSWINDRES="$ac_prog"
14496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14497 break 2
14499 done
14500 done
14504 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
14505 if test -n "$CROSSWINDRES"; then
14506 echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
14507 echo "${ECHO_T}$CROSSWINDRES" >&6
14508 else
14509 echo "$as_me:$LINENO: result: no" >&5
14510 echo "${ECHO_T}no" >&6
14513 test -n "$CROSSWINDRES" && break
14514 done
14515 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
14517 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
14520 esac
14522 if test "$LIBEXT" = "a"; then
14523 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
14524 It is currently not possible to build Wine without shared library
14525 (.so) support to allow transparent switch between .so and .dll files.
14526 If you are using Linux, you will need a newer binutils.
14527 " >&5
14528 echo "$as_me: error: could not find a way to build shared libraries.
14529 It is currently not possible to build Wine without shared library
14530 (.so) support to allow transparent switch between .so and .dll files.
14531 If you are using Linux, you will need a newer binutils.
14532 " >&2;}
14533 { (exit 1); exit 1; }; }
14536 case $build_os in
14537 cygwin*|mingw32*)
14538 LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
14540 darwin*|macosx*)
14541 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\""
14544 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
14546 esac
14548 case $host_os in
14549 mingw32*)
14550 CRTLIBS="-lmsvcrt"
14552 esac
14554 case $host_os in
14555 linux*)
14556 WINE_BINARIES="wine-glibc wine-kthread wine-pthread"
14558 MAIN_BINARY="wine-glibc"
14562 WINE_BINARIES="wine-kthread"
14564 MAIN_BINARY="wine-kthread"
14567 esac
14570 if test "$LIBEXT" = "so"
14571 then
14572 # Extract the first word of "ldd", so it can be a program name with args.
14573 set dummy ldd; ac_word=$2
14574 echo "$as_me:$LINENO: checking for $ac_word" >&5
14575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14576 if test "${ac_cv_path_LDD+set}" = set; then
14577 echo $ECHO_N "(cached) $ECHO_C" >&6
14578 else
14579 case $LDD in
14580 [\\/]* | ?:[\\/]*)
14581 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
14584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14585 as_dummy="/sbin:/usr/sbin:$PATH"
14586 for as_dir in $as_dummy
14588 IFS=$as_save_IFS
14589 test -z "$as_dir" && as_dir=.
14590 for ac_exec_ext in '' $ac_executable_extensions; do
14591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14592 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
14593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14594 break 2
14596 done
14597 done
14599 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
14601 esac
14603 LDD=$ac_cv_path_LDD
14605 if test -n "$LDD"; then
14606 echo "$as_me:$LINENO: result: $LDD" >&5
14607 echo "${ECHO_T}$LDD" >&6
14608 else
14609 echo "$as_me:$LINENO: result: no" >&5
14610 echo "${ECHO_T}no" >&6
14614 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
14615 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
14616 if test "${ac_cv_lib_soname_X11+set}" = set; then
14617 echo $ECHO_N "(cached) $ECHO_C" >&6
14618 else
14619 ac_get_soname_save_LIBS=$LIBS
14620 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
14621 cat >conftest.$ac_ext <<_ACEOF
14622 /* confdefs.h. */
14623 _ACEOF
14624 cat confdefs.h >>conftest.$ac_ext
14625 cat >>conftest.$ac_ext <<_ACEOF
14626 /* end confdefs.h. */
14628 /* Override any gcc2 internal prototype to avoid an error. */
14629 #ifdef __cplusplus
14630 extern "C"
14631 #endif
14632 /* We use char because int might match the return type of a gcc2
14633 builtin and then its argument prototype would still apply. */
14634 char XCreateWindow ();
14636 main ()
14638 XCreateWindow ();
14640 return 0;
14642 _ACEOF
14643 rm -f conftest.$ac_objext conftest$ac_exeext
14644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14645 (eval $ac_link) 2>conftest.er1
14646 ac_status=$?
14647 grep -v '^ *+' conftest.er1 >conftest.err
14648 rm -f conftest.er1
14649 cat conftest.err >&5
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); } &&
14652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14654 (eval $ac_try) 2>&5
14655 ac_status=$?
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); }; } &&
14658 { ac_try='test -s conftest$ac_exeext'
14659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14660 (eval $ac_try) 2>&5
14661 ac_status=$?
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); }; }; then
14664 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^.*\(libX11\.so[^ ]*\).*$/\1/'`
14665 if test "x$ac_cv_lib_soname_X11" = "x"
14666 then
14667 ac_cv_lib_soname_X11="libX11.so"
14669 else
14670 echo "$as_me: failed program was:" >&5
14671 sed 's/^/| /' conftest.$ac_ext >&5
14673 ac_cv_lib_soname_X11="libX11.so"
14675 rm -f conftest.err conftest.$ac_objext \
14676 conftest$ac_exeext conftest.$ac_ext
14677 LIBS=$ac_get_soname_save_LIBS
14679 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
14680 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
14681 if test "x$ac_cv_lib_soname_X11" != xNONE
14682 then
14683 cat >>confdefs.h <<_ACEOF
14684 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
14685 _ACEOF
14688 echo "$as_me:$LINENO: checking for -lXext soname" >&5
14689 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
14690 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14691 echo $ECHO_N "(cached) $ECHO_C" >&6
14692 else
14693 ac_get_soname_save_LIBS=$LIBS
14694 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14695 cat >conftest.$ac_ext <<_ACEOF
14696 /* confdefs.h. */
14697 _ACEOF
14698 cat confdefs.h >>conftest.$ac_ext
14699 cat >>conftest.$ac_ext <<_ACEOF
14700 /* end confdefs.h. */
14702 /* Override any gcc2 internal prototype to avoid an error. */
14703 #ifdef __cplusplus
14704 extern "C"
14705 #endif
14706 /* We use char because int might match the return type of a gcc2
14707 builtin and then its argument prototype would still apply. */
14708 char XextCreateExtension ();
14710 main ()
14712 XextCreateExtension ();
14714 return 0;
14716 _ACEOF
14717 rm -f conftest.$ac_objext conftest$ac_exeext
14718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14719 (eval $ac_link) 2>conftest.er1
14720 ac_status=$?
14721 grep -v '^ *+' conftest.er1 >conftest.err
14722 rm -f conftest.er1
14723 cat conftest.err >&5
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); } &&
14726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14728 (eval $ac_try) 2>&5
14729 ac_status=$?
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); }; } &&
14732 { ac_try='test -s conftest$ac_exeext'
14733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734 (eval $ac_try) 2>&5
14735 ac_status=$?
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; }; then
14738 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^.*\(libXext\.so[^ ]*\).*$/\1/'`
14739 if test "x$ac_cv_lib_soname_Xext" = "x"
14740 then
14741 ac_cv_lib_soname_Xext="libXext.so"
14743 else
14744 echo "$as_me: failed program was:" >&5
14745 sed 's/^/| /' conftest.$ac_ext >&5
14747 ac_cv_lib_soname_Xext="libXext.so"
14749 rm -f conftest.err conftest.$ac_objext \
14750 conftest$ac_exeext conftest.$ac_ext
14751 LIBS=$ac_get_soname_save_LIBS
14753 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14754 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
14755 if test "x$ac_cv_lib_soname_Xext" != xNONE
14756 then
14757 cat >>confdefs.h <<_ACEOF
14758 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14759 _ACEOF
14762 echo "$as_me:$LINENO: checking for -lXi soname" >&5
14763 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6
14764 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14765 echo $ECHO_N "(cached) $ECHO_C" >&6
14766 else
14767 ac_get_soname_save_LIBS=$LIBS
14768 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14769 cat >conftest.$ac_ext <<_ACEOF
14770 /* confdefs.h. */
14771 _ACEOF
14772 cat confdefs.h >>conftest.$ac_ext
14773 cat >>conftest.$ac_ext <<_ACEOF
14774 /* end confdefs.h. */
14776 /* Override any gcc2 internal prototype to avoid an error. */
14777 #ifdef __cplusplus
14778 extern "C"
14779 #endif
14780 /* We use char because int might match the return type of a gcc2
14781 builtin and then its argument prototype would still apply. */
14782 char XOpenDevice ();
14784 main ()
14786 XOpenDevice ();
14788 return 0;
14790 _ACEOF
14791 rm -f conftest.$ac_objext conftest$ac_exeext
14792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14793 (eval $ac_link) 2>conftest.er1
14794 ac_status=$?
14795 grep -v '^ *+' conftest.er1 >conftest.err
14796 rm -f conftest.er1
14797 cat conftest.err >&5
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); } &&
14800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14802 (eval $ac_try) 2>&5
14803 ac_status=$?
14804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 (exit $ac_status); }; } &&
14806 { ac_try='test -s conftest$ac_exeext'
14807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14808 (eval $ac_try) 2>&5
14809 ac_status=$?
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); }; }; then
14812 ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.so | sed 's/^.*\(libXi\.so[^ ]*\).*$/\1/'`
14813 if test "x$ac_cv_lib_soname_Xi" = "x"
14814 then
14815 ac_cv_lib_soname_Xi="libXi.so"
14817 else
14818 echo "$as_me: failed program was:" >&5
14819 sed 's/^/| /' conftest.$ac_ext >&5
14821 ac_cv_lib_soname_Xi="libXi.so"
14823 rm -f conftest.err conftest.$ac_objext \
14824 conftest$ac_exeext conftest.$ac_ext
14825 LIBS=$ac_get_soname_save_LIBS
14827 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
14828 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6
14829 if test "x$ac_cv_lib_soname_Xi" != xNONE
14830 then
14831 cat >>confdefs.h <<_ACEOF
14832 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
14833 _ACEOF
14836 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
14837 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
14838 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14839 echo $ECHO_N "(cached) $ECHO_C" >&6
14840 else
14841 ac_get_soname_save_LIBS=$LIBS
14842 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14843 cat >conftest.$ac_ext <<_ACEOF
14844 /* confdefs.h. */
14845 _ACEOF
14846 cat confdefs.h >>conftest.$ac_ext
14847 cat >>conftest.$ac_ext <<_ACEOF
14848 /* end confdefs.h. */
14850 /* Override any gcc2 internal prototype to avoid an error. */
14851 #ifdef __cplusplus
14852 extern "C"
14853 #endif
14854 /* We use char because int might match the return type of a gcc2
14855 builtin and then its argument prototype would still apply. */
14856 char XRenderQueryExtension ();
14858 main ()
14860 XRenderQueryExtension ();
14862 return 0;
14864 _ACEOF
14865 rm -f conftest.$ac_objext conftest$ac_exeext
14866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14867 (eval $ac_link) 2>conftest.er1
14868 ac_status=$?
14869 grep -v '^ *+' conftest.er1 >conftest.err
14870 rm -f conftest.er1
14871 cat conftest.err >&5
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); } &&
14874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14876 (eval $ac_try) 2>&5
14877 ac_status=$?
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); }; } &&
14880 { ac_try='test -s conftest$ac_exeext'
14881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14882 (eval $ac_try) 2>&5
14883 ac_status=$?
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); }; }; then
14886 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^.*\(libXrender\.so[^ ]*\).*$/\1/'`
14887 if test "x$ac_cv_lib_soname_Xrender" = "x"
14888 then
14889 ac_cv_lib_soname_Xrender="libXrender.so"
14891 else
14892 echo "$as_me: failed program was:" >&5
14893 sed 's/^/| /' conftest.$ac_ext >&5
14895 ac_cv_lib_soname_Xrender="libXrender.so"
14897 rm -f conftest.err conftest.$ac_objext \
14898 conftest$ac_exeext conftest.$ac_ext
14899 LIBS=$ac_get_soname_save_LIBS
14901 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
14902 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
14903 if test "x$ac_cv_lib_soname_Xrender" != xNONE
14904 then
14905 cat >>confdefs.h <<_ACEOF
14906 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
14907 _ACEOF
14910 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
14911 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
14912 if test "${ac_cv_lib_soname_freetype+set}" = set; then
14913 echo $ECHO_N "(cached) $ECHO_C" >&6
14914 else
14915 ac_get_soname_save_LIBS=$LIBS
14916 LIBS="-lfreetype $X_LIBS $LIBS"
14917 cat >conftest.$ac_ext <<_ACEOF
14918 /* confdefs.h. */
14919 _ACEOF
14920 cat confdefs.h >>conftest.$ac_ext
14921 cat >>conftest.$ac_ext <<_ACEOF
14922 /* end confdefs.h. */
14924 /* Override any gcc2 internal prototype to avoid an error. */
14925 #ifdef __cplusplus
14926 extern "C"
14927 #endif
14928 /* We use char because int might match the return type of a gcc2
14929 builtin and then its argument prototype would still apply. */
14930 char FT_Init_FreeType ();
14932 main ()
14934 FT_Init_FreeType ();
14936 return 0;
14938 _ACEOF
14939 rm -f conftest.$ac_objext conftest$ac_exeext
14940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14941 (eval $ac_link) 2>conftest.er1
14942 ac_status=$?
14943 grep -v '^ *+' conftest.er1 >conftest.err
14944 rm -f conftest.er1
14945 cat conftest.err >&5
14946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947 (exit $ac_status); } &&
14948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14950 (eval $ac_try) 2>&5
14951 ac_status=$?
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); }; } &&
14954 { ac_try='test -s conftest$ac_exeext'
14955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14956 (eval $ac_try) 2>&5
14957 ac_status=$?
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); }; }; then
14960 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^.*\(libfreetype\.so[^ ]*\).*$/\1/'`
14961 if test "x$ac_cv_lib_soname_freetype" = "x"
14962 then
14963 ac_cv_lib_soname_freetype="libfreetype.so"
14965 else
14966 echo "$as_me: failed program was:" >&5
14967 sed 's/^/| /' conftest.$ac_ext >&5
14969 ac_cv_lib_soname_freetype="libfreetype.so"
14971 rm -f conftest.err conftest.$ac_objext \
14972 conftest$ac_exeext conftest.$ac_ext
14973 LIBS=$ac_get_soname_save_LIBS
14975 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
14976 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
14977 if test "x$ac_cv_lib_soname_freetype" != xNONE
14978 then
14979 cat >>confdefs.h <<_ACEOF
14980 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
14981 _ACEOF
14984 echo "$as_me:$LINENO: checking for -lGL soname" >&5
14985 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
14986 if test "${ac_cv_lib_soname_GL+set}" = set; then
14987 echo $ECHO_N "(cached) $ECHO_C" >&6
14988 else
14989 ac_get_soname_save_LIBS=$LIBS
14990 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
14991 cat >conftest.$ac_ext <<_ACEOF
14992 /* confdefs.h. */
14993 _ACEOF
14994 cat confdefs.h >>conftest.$ac_ext
14995 cat >>conftest.$ac_ext <<_ACEOF
14996 /* end confdefs.h. */
14998 /* Override any gcc2 internal prototype to avoid an error. */
14999 #ifdef __cplusplus
15000 extern "C"
15001 #endif
15002 /* We use char because int might match the return type of a gcc2
15003 builtin and then its argument prototype would still apply. */
15004 char glXQueryExtension ();
15006 main ()
15008 glXQueryExtension ();
15010 return 0;
15012 _ACEOF
15013 rm -f conftest.$ac_objext conftest$ac_exeext
15014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15015 (eval $ac_link) 2>conftest.er1
15016 ac_status=$?
15017 grep -v '^ *+' conftest.er1 >conftest.err
15018 rm -f conftest.er1
15019 cat conftest.err >&5
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); } &&
15022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15024 (eval $ac_try) 2>&5
15025 ac_status=$?
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); }; } &&
15028 { ac_try='test -s conftest$ac_exeext'
15029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15030 (eval $ac_try) 2>&5
15031 ac_status=$?
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); }; }; then
15034 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^.*\(libGL\.so[^ ]*\).*$/\1/'`
15035 if test "x$ac_cv_lib_soname_GL" = "x"
15036 then
15037 ac_cv_lib_soname_GL="libGL.so"
15039 else
15040 echo "$as_me: failed program was:" >&5
15041 sed 's/^/| /' conftest.$ac_ext >&5
15043 ac_cv_lib_soname_GL="libGL.so"
15045 rm -f conftest.err conftest.$ac_objext \
15046 conftest$ac_exeext conftest.$ac_ext
15047 LIBS=$ac_get_soname_save_LIBS
15049 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
15050 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
15051 if test "x$ac_cv_lib_soname_GL" != xNONE
15052 then
15053 cat >>confdefs.h <<_ACEOF
15054 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
15055 _ACEOF
15058 echo "$as_me:$LINENO: checking for -lcups soname" >&5
15059 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
15060 if test "${ac_cv_lib_soname_cups+set}" = set; then
15061 echo $ECHO_N "(cached) $ECHO_C" >&6
15062 else
15063 ac_get_soname_save_LIBS=$LIBS
15064 LIBS="-lcups $LIBS"
15065 cat >conftest.$ac_ext <<_ACEOF
15066 /* confdefs.h. */
15067 _ACEOF
15068 cat confdefs.h >>conftest.$ac_ext
15069 cat >>conftest.$ac_ext <<_ACEOF
15070 /* end confdefs.h. */
15072 /* Override any gcc2 internal prototype to avoid an error. */
15073 #ifdef __cplusplus
15074 extern "C"
15075 #endif
15076 /* We use char because int might match the return type of a gcc2
15077 builtin and then its argument prototype would still apply. */
15078 char cupsGetDefault ();
15080 main ()
15082 cupsGetDefault ();
15084 return 0;
15086 _ACEOF
15087 rm -f conftest.$ac_objext conftest$ac_exeext
15088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15089 (eval $ac_link) 2>conftest.er1
15090 ac_status=$?
15091 grep -v '^ *+' conftest.er1 >conftest.err
15092 rm -f conftest.er1
15093 cat conftest.err >&5
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); } &&
15096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15098 (eval $ac_try) 2>&5
15099 ac_status=$?
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }; } &&
15102 { ac_try='test -s conftest$ac_exeext'
15103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15104 (eval $ac_try) 2>&5
15105 ac_status=$?
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); }; }; then
15108 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^.*\(libcups\.so[^ ]*\).*$/\1/'`
15109 if test "x$ac_cv_lib_soname_cups" = "x"
15110 then
15111 ac_cv_lib_soname_cups="libcups.so"
15113 else
15114 echo "$as_me: failed program was:" >&5
15115 sed 's/^/| /' conftest.$ac_ext >&5
15117 ac_cv_lib_soname_cups="libcups.so"
15119 rm -f conftest.err conftest.$ac_objext \
15120 conftest$ac_exeext conftest.$ac_ext
15121 LIBS=$ac_get_soname_save_LIBS
15123 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
15124 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
15125 if test "x$ac_cv_lib_soname_cups" != xNONE
15126 then
15127 cat >>confdefs.h <<_ACEOF
15128 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
15129 _ACEOF
15132 echo "$as_me:$LINENO: checking for -ljack soname" >&5
15133 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
15134 if test "${ac_cv_lib_soname_jack+set}" = set; then
15135 echo $ECHO_N "(cached) $ECHO_C" >&6
15136 else
15137 ac_get_soname_save_LIBS=$LIBS
15138 LIBS="-ljack $LIBS"
15139 cat >conftest.$ac_ext <<_ACEOF
15140 /* confdefs.h. */
15141 _ACEOF
15142 cat confdefs.h >>conftest.$ac_ext
15143 cat >>conftest.$ac_ext <<_ACEOF
15144 /* end confdefs.h. */
15146 /* Override any gcc2 internal prototype to avoid an error. */
15147 #ifdef __cplusplus
15148 extern "C"
15149 #endif
15150 /* We use char because int might match the return type of a gcc2
15151 builtin and then its argument prototype would still apply. */
15152 char jack_client_new ();
15154 main ()
15156 jack_client_new ();
15158 return 0;
15160 _ACEOF
15161 rm -f conftest.$ac_objext conftest$ac_exeext
15162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15163 (eval $ac_link) 2>conftest.er1
15164 ac_status=$?
15165 grep -v '^ *+' conftest.er1 >conftest.err
15166 rm -f conftest.er1
15167 cat conftest.err >&5
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); } &&
15170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15172 (eval $ac_try) 2>&5
15173 ac_status=$?
15174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 (exit $ac_status); }; } &&
15176 { ac_try='test -s conftest$ac_exeext'
15177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15178 (eval $ac_try) 2>&5
15179 ac_status=$?
15180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181 (exit $ac_status); }; }; then
15182 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed 's/^.*\(libjack\.so[^ ]*\).*$/\1/'`
15183 if test "x$ac_cv_lib_soname_jack" = "x"
15184 then
15185 ac_cv_lib_soname_jack="libjack.so"
15187 else
15188 echo "$as_me: failed program was:" >&5
15189 sed 's/^/| /' conftest.$ac_ext >&5
15191 ac_cv_lib_soname_jack="libjack.so"
15193 rm -f conftest.err conftest.$ac_objext \
15194 conftest$ac_exeext conftest.$ac_ext
15195 LIBS=$ac_get_soname_save_LIBS
15197 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
15198 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
15199 if test "x$ac_cv_lib_soname_jack" != xNONE
15200 then
15201 cat >>confdefs.h <<_ACEOF
15202 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
15203 _ACEOF
15206 echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
15207 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6
15208 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15209 echo $ECHO_N "(cached) $ECHO_C" >&6
15210 else
15211 ac_get_soname_save_LIBS=$LIBS
15212 LIBS="-lfontconfig $LIBS"
15213 cat >conftest.$ac_ext <<_ACEOF
15214 /* confdefs.h. */
15215 _ACEOF
15216 cat confdefs.h >>conftest.$ac_ext
15217 cat >>conftest.$ac_ext <<_ACEOF
15218 /* end confdefs.h. */
15220 /* Override any gcc2 internal prototype to avoid an error. */
15221 #ifdef __cplusplus
15222 extern "C"
15223 #endif
15224 /* We use char because int might match the return type of a gcc2
15225 builtin and then its argument prototype would still apply. */
15226 char FcInit ();
15228 main ()
15230 FcInit ();
15232 return 0;
15234 _ACEOF
15235 rm -f conftest.$ac_objext conftest$ac_exeext
15236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15237 (eval $ac_link) 2>conftest.er1
15238 ac_status=$?
15239 grep -v '^ *+' conftest.er1 >conftest.err
15240 rm -f conftest.er1
15241 cat conftest.err >&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); } &&
15244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15246 (eval $ac_try) 2>&5
15247 ac_status=$?
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); }; } &&
15250 { ac_try='test -s conftest$ac_exeext'
15251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15252 (eval $ac_try) 2>&5
15253 ac_status=$?
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); }; }; then
15256 ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.so | sed 's/^.*\(libfontconfig\.so[^ ]*\).*$/\1/'`
15257 if test "x$ac_cv_lib_soname_fontconfig" = "x"
15258 then
15259 ac_cv_lib_soname_fontconfig="libfontconfig.so"
15261 else
15262 echo "$as_me: failed program was:" >&5
15263 sed 's/^/| /' conftest.$ac_ext >&5
15265 ac_cv_lib_soname_fontconfig="libfontconfig.so"
15267 rm -f conftest.err conftest.$ac_objext \
15268 conftest$ac_exeext conftest.$ac_ext
15269 LIBS=$ac_get_soname_save_LIBS
15271 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
15272 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6
15273 if test "x$ac_cv_lib_soname_fontconfig" != xNONE
15274 then
15275 cat >>confdefs.h <<_ACEOF
15276 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
15277 _ACEOF
15280 echo "$as_me:$LINENO: checking for -lssl soname" >&5
15281 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
15282 if test "${ac_cv_lib_soname_ssl+set}" = set; then
15283 echo $ECHO_N "(cached) $ECHO_C" >&6
15284 else
15285 ac_get_soname_save_LIBS=$LIBS
15286 LIBS="-lssl $LIBS"
15287 cat >conftest.$ac_ext <<_ACEOF
15288 /* confdefs.h. */
15289 _ACEOF
15290 cat confdefs.h >>conftest.$ac_ext
15291 cat >>conftest.$ac_ext <<_ACEOF
15292 /* end confdefs.h. */
15294 /* Override any gcc2 internal prototype to avoid an error. */
15295 #ifdef __cplusplus
15296 extern "C"
15297 #endif
15298 /* We use char because int might match the return type of a gcc2
15299 builtin and then its argument prototype would still apply. */
15300 char SSL_library_init ();
15302 main ()
15304 SSL_library_init ();
15306 return 0;
15308 _ACEOF
15309 rm -f conftest.$ac_objext conftest$ac_exeext
15310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15311 (eval $ac_link) 2>conftest.er1
15312 ac_status=$?
15313 grep -v '^ *+' conftest.er1 >conftest.err
15314 rm -f conftest.er1
15315 cat conftest.err >&5
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); } &&
15318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15320 (eval $ac_try) 2>&5
15321 ac_status=$?
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); }; } &&
15324 { ac_try='test -s conftest$ac_exeext'
15325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15326 (eval $ac_try) 2>&5
15327 ac_status=$?
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); }; }; then
15330 ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.so | sed 's/^.*\(libssl\.so[^ ]*\).*$/\1/'`
15331 if test "x$ac_cv_lib_soname_ssl" = "x"
15332 then
15333 ac_cv_lib_soname_ssl="libssl.so"
15335 else
15336 echo "$as_me: failed program was:" >&5
15337 sed 's/^/| /' conftest.$ac_ext >&5
15339 ac_cv_lib_soname_ssl="libssl.so"
15341 rm -f conftest.err conftest.$ac_objext \
15342 conftest$ac_exeext conftest.$ac_ext
15343 LIBS=$ac_get_soname_save_LIBS
15345 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
15346 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
15347 if test "x$ac_cv_lib_soname_ssl" != xNONE
15348 then
15349 cat >>confdefs.h <<_ACEOF
15350 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
15351 _ACEOF
15354 echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
15355 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
15356 if test "${ac_cv_lib_soname_crypto+set}" = set; then
15357 echo $ECHO_N "(cached) $ECHO_C" >&6
15358 else
15359 ac_get_soname_save_LIBS=$LIBS
15360 LIBS="-lcrypto $LIBS"
15361 cat >conftest.$ac_ext <<_ACEOF
15362 /* confdefs.h. */
15363 _ACEOF
15364 cat confdefs.h >>conftest.$ac_ext
15365 cat >>conftest.$ac_ext <<_ACEOF
15366 /* end confdefs.h. */
15368 /* Override any gcc2 internal prototype to avoid an error. */
15369 #ifdef __cplusplus
15370 extern "C"
15371 #endif
15372 /* We use char because int might match the return type of a gcc2
15373 builtin and then its argument prototype would still apply. */
15374 char BIO_new_socket ();
15376 main ()
15378 BIO_new_socket ();
15380 return 0;
15382 _ACEOF
15383 rm -f conftest.$ac_objext conftest$ac_exeext
15384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15385 (eval $ac_link) 2>conftest.er1
15386 ac_status=$?
15387 grep -v '^ *+' conftest.er1 >conftest.err
15388 rm -f conftest.er1
15389 cat conftest.err >&5
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); } &&
15392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394 (eval $ac_try) 2>&5
15395 ac_status=$?
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; } &&
15398 { ac_try='test -s conftest$ac_exeext'
15399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15400 (eval $ac_try) 2>&5
15401 ac_status=$?
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); }; }; then
15404 ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.so | sed 's/^.*\(libcrypto\.so[^ ]*\).*$/\1/'`
15405 if test "x$ac_cv_lib_soname_crypto" = "x"
15406 then
15407 ac_cv_lib_soname_crypto="libcrypto.so"
15409 else
15410 echo "$as_me: failed program was:" >&5
15411 sed 's/^/| /' conftest.$ac_ext >&5
15413 ac_cv_lib_soname_crypto="libcrypto.so"
15415 rm -f conftest.err conftest.$ac_objext \
15416 conftest$ac_exeext conftest.$ac_ext
15417 LIBS=$ac_get_soname_save_LIBS
15419 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
15420 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
15421 if test "x$ac_cv_lib_soname_crypto" != xNONE
15422 then
15423 cat >>confdefs.h <<_ACEOF
15424 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
15425 _ACEOF
15428 echo "$as_me:$LINENO: checking for -lncurses soname" >&5
15429 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
15430 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15431 echo $ECHO_N "(cached) $ECHO_C" >&6
15432 else
15433 ac_get_soname_save_LIBS=$LIBS
15434 LIBS="-lncurses $LIBS"
15435 cat >conftest.$ac_ext <<_ACEOF
15436 /* confdefs.h. */
15437 _ACEOF
15438 cat confdefs.h >>conftest.$ac_ext
15439 cat >>conftest.$ac_ext <<_ACEOF
15440 /* end confdefs.h. */
15442 /* Override any gcc2 internal prototype to avoid an error. */
15443 #ifdef __cplusplus
15444 extern "C"
15445 #endif
15446 /* We use char because int might match the return type of a gcc2
15447 builtin and then its argument prototype would still apply. */
15448 char waddch ();
15450 main ()
15452 waddch ();
15454 return 0;
15456 _ACEOF
15457 rm -f conftest.$ac_objext conftest$ac_exeext
15458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15459 (eval $ac_link) 2>conftest.er1
15460 ac_status=$?
15461 grep -v '^ *+' conftest.er1 >conftest.err
15462 rm -f conftest.er1
15463 cat conftest.err >&5
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); } &&
15466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15468 (eval $ac_try) 2>&5
15469 ac_status=$?
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); }; } &&
15472 { ac_try='test -s conftest$ac_exeext'
15473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15474 (eval $ac_try) 2>&5
15475 ac_status=$?
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); }; }; then
15478 ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.so | sed 's/^.*\(libncurses\.so[^ ]*\).*$/\1/'`
15479 if test "x$ac_cv_lib_soname_ncurses" = "x"
15480 then
15481 ac_cv_lib_soname_ncurses="libncurses.so"
15483 else
15484 echo "$as_me: failed program was:" >&5
15485 sed 's/^/| /' conftest.$ac_ext >&5
15487 ac_cv_lib_soname_ncurses="libncurses.so"
15489 rm -f conftest.err conftest.$ac_objext \
15490 conftest$ac_exeext conftest.$ac_ext
15491 LIBS=$ac_get_soname_save_LIBS
15493 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
15494 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
15495 if test "x$ac_cv_lib_soname_ncurses" != xNONE
15496 then
15497 cat >>confdefs.h <<_ACEOF
15498 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
15499 _ACEOF
15502 echo "$as_me:$LINENO: checking for -lcurses soname" >&5
15503 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
15504 if test "${ac_cv_lib_soname_curses+set}" = set; then
15505 echo $ECHO_N "(cached) $ECHO_C" >&6
15506 else
15507 ac_get_soname_save_LIBS=$LIBS
15508 LIBS="-lcurses $LIBS"
15509 cat >conftest.$ac_ext <<_ACEOF
15510 /* confdefs.h. */
15511 _ACEOF
15512 cat confdefs.h >>conftest.$ac_ext
15513 cat >>conftest.$ac_ext <<_ACEOF
15514 /* end confdefs.h. */
15516 /* Override any gcc2 internal prototype to avoid an error. */
15517 #ifdef __cplusplus
15518 extern "C"
15519 #endif
15520 /* We use char because int might match the return type of a gcc2
15521 builtin and then its argument prototype would still apply. */
15522 char waddch ();
15524 main ()
15526 waddch ();
15528 return 0;
15530 _ACEOF
15531 rm -f conftest.$ac_objext conftest$ac_exeext
15532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15533 (eval $ac_link) 2>conftest.er1
15534 ac_status=$?
15535 grep -v '^ *+' conftest.er1 >conftest.err
15536 rm -f conftest.er1
15537 cat conftest.err >&5
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); } &&
15540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15542 (eval $ac_try) 2>&5
15543 ac_status=$?
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); }; } &&
15546 { ac_try='test -s conftest$ac_exeext'
15547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15548 (eval $ac_try) 2>&5
15549 ac_status=$?
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); }; }; then
15552 ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.so | sed 's/^.*\(libcurses\.so[^ ]*\).*$/\1/'`
15553 if test "x$ac_cv_lib_soname_curses" = "x"
15554 then
15555 ac_cv_lib_soname_curses="libcurses.so"
15557 else
15558 echo "$as_me: failed program was:" >&5
15559 sed 's/^/| /' conftest.$ac_ext >&5
15561 ac_cv_lib_soname_curses="libcurses.so"
15563 rm -f conftest.err conftest.$ac_objext \
15564 conftest$ac_exeext conftest.$ac_ext
15565 LIBS=$ac_get_soname_save_LIBS
15567 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
15568 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
15569 if test "x$ac_cv_lib_soname_curses" != xNONE
15570 then
15571 cat >>confdefs.h <<_ACEOF
15572 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
15573 _ACEOF
15579 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15580 # for constant arguments. Useless!
15581 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15582 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15583 if test "${ac_cv_working_alloca_h+set}" = set; then
15584 echo $ECHO_N "(cached) $ECHO_C" >&6
15585 else
15586 cat >conftest.$ac_ext <<_ACEOF
15587 /* confdefs.h. */
15588 _ACEOF
15589 cat confdefs.h >>conftest.$ac_ext
15590 cat >>conftest.$ac_ext <<_ACEOF
15591 /* end confdefs.h. */
15592 #include <alloca.h>
15594 main ()
15596 char *p = (char *) alloca (2 * sizeof (int));
15598 return 0;
15600 _ACEOF
15601 rm -f conftest.$ac_objext conftest$ac_exeext
15602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15603 (eval $ac_link) 2>conftest.er1
15604 ac_status=$?
15605 grep -v '^ *+' conftest.er1 >conftest.err
15606 rm -f conftest.er1
15607 cat conftest.err >&5
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); } &&
15610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15612 (eval $ac_try) 2>&5
15613 ac_status=$?
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); }; } &&
15616 { ac_try='test -s conftest$ac_exeext'
15617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15618 (eval $ac_try) 2>&5
15619 ac_status=$?
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); }; }; then
15622 ac_cv_working_alloca_h=yes
15623 else
15624 echo "$as_me: failed program was:" >&5
15625 sed 's/^/| /' conftest.$ac_ext >&5
15627 ac_cv_working_alloca_h=no
15629 rm -f conftest.err conftest.$ac_objext \
15630 conftest$ac_exeext conftest.$ac_ext
15632 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15633 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15634 if test $ac_cv_working_alloca_h = yes; then
15636 cat >>confdefs.h <<\_ACEOF
15637 #define HAVE_ALLOCA_H 1
15638 _ACEOF
15642 echo "$as_me:$LINENO: checking for alloca" >&5
15643 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15644 if test "${ac_cv_func_alloca_works+set}" = set; then
15645 echo $ECHO_N "(cached) $ECHO_C" >&6
15646 else
15647 cat >conftest.$ac_ext <<_ACEOF
15648 /* confdefs.h. */
15649 _ACEOF
15650 cat confdefs.h >>conftest.$ac_ext
15651 cat >>conftest.$ac_ext <<_ACEOF
15652 /* end confdefs.h. */
15653 #ifdef __GNUC__
15654 # define alloca __builtin_alloca
15655 #else
15656 # ifdef _MSC_VER
15657 # include <malloc.h>
15658 # define alloca _alloca
15659 # else
15660 # if HAVE_ALLOCA_H
15661 # include <alloca.h>
15662 # else
15663 # ifdef _AIX
15664 #pragma alloca
15665 # else
15666 # ifndef alloca /* predefined by HP cc +Olibcalls */
15667 char *alloca ();
15668 # endif
15669 # endif
15670 # endif
15671 # endif
15672 #endif
15675 main ()
15677 char *p = (char *) alloca (1);
15679 return 0;
15681 _ACEOF
15682 rm -f conftest.$ac_objext conftest$ac_exeext
15683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15684 (eval $ac_link) 2>conftest.er1
15685 ac_status=$?
15686 grep -v '^ *+' conftest.er1 >conftest.err
15687 rm -f conftest.er1
15688 cat conftest.err >&5
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); } &&
15691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15693 (eval $ac_try) 2>&5
15694 ac_status=$?
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); }; } &&
15697 { ac_try='test -s conftest$ac_exeext'
15698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15699 (eval $ac_try) 2>&5
15700 ac_status=$?
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); }; }; then
15703 ac_cv_func_alloca_works=yes
15704 else
15705 echo "$as_me: failed program was:" >&5
15706 sed 's/^/| /' conftest.$ac_ext >&5
15708 ac_cv_func_alloca_works=no
15710 rm -f conftest.err conftest.$ac_objext \
15711 conftest$ac_exeext conftest.$ac_ext
15713 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15714 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15716 if test $ac_cv_func_alloca_works = yes; then
15718 cat >>confdefs.h <<\_ACEOF
15719 #define HAVE_ALLOCA 1
15720 _ACEOF
15722 else
15723 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15724 # that cause trouble. Some versions do not even contain alloca or
15725 # contain a buggy version. If you still want to use their alloca,
15726 # use ar to extract alloca.o from them instead of compiling alloca.c.
15728 ALLOCA=alloca.$ac_objext
15730 cat >>confdefs.h <<\_ACEOF
15731 #define C_ALLOCA 1
15732 _ACEOF
15735 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15736 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15737 if test "${ac_cv_os_cray+set}" = set; then
15738 echo $ECHO_N "(cached) $ECHO_C" >&6
15739 else
15740 cat >conftest.$ac_ext <<_ACEOF
15741 /* confdefs.h. */
15742 _ACEOF
15743 cat confdefs.h >>conftest.$ac_ext
15744 cat >>conftest.$ac_ext <<_ACEOF
15745 /* end confdefs.h. */
15746 #if defined(CRAY) && ! defined(CRAY2)
15747 webecray
15748 #else
15749 wenotbecray
15750 #endif
15752 _ACEOF
15753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15754 $EGREP "webecray" >/dev/null 2>&1; then
15755 ac_cv_os_cray=yes
15756 else
15757 ac_cv_os_cray=no
15759 rm -f conftest*
15762 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15763 echo "${ECHO_T}$ac_cv_os_cray" >&6
15764 if test $ac_cv_os_cray = yes; then
15765 for ac_func in _getb67 GETB67 getb67; do
15766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15767 echo "$as_me:$LINENO: checking for $ac_func" >&5
15768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15769 if eval "test \"\${$as_ac_var+set}\" = set"; then
15770 echo $ECHO_N "(cached) $ECHO_C" >&6
15771 else
15772 cat >conftest.$ac_ext <<_ACEOF
15773 /* confdefs.h. */
15774 _ACEOF
15775 cat confdefs.h >>conftest.$ac_ext
15776 cat >>conftest.$ac_ext <<_ACEOF
15777 /* end confdefs.h. */
15778 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15780 #define $ac_func innocuous_$ac_func
15782 /* System header to define __stub macros and hopefully few prototypes,
15783 which can conflict with char $ac_func (); below.
15784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15785 <limits.h> exists even on freestanding compilers. */
15787 #ifdef __STDC__
15788 # include <limits.h>
15789 #else
15790 # include <assert.h>
15791 #endif
15793 #undef $ac_func
15795 /* Override any gcc2 internal prototype to avoid an error. */
15796 #ifdef __cplusplus
15797 extern "C"
15799 #endif
15800 /* We use char because int might match the return type of a gcc2
15801 builtin and then its argument prototype would still apply. */
15802 char $ac_func ();
15803 /* The GNU C library defines this for functions which it implements
15804 to always fail with ENOSYS. Some functions are actually named
15805 something starting with __ and the normal name is an alias. */
15806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15807 choke me
15808 #else
15809 char (*f) () = $ac_func;
15810 #endif
15811 #ifdef __cplusplus
15813 #endif
15816 main ()
15818 return f != $ac_func;
15820 return 0;
15822 _ACEOF
15823 rm -f conftest.$ac_objext conftest$ac_exeext
15824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15825 (eval $ac_link) 2>conftest.er1
15826 ac_status=$?
15827 grep -v '^ *+' conftest.er1 >conftest.err
15828 rm -f conftest.er1
15829 cat conftest.err >&5
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); } &&
15832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15834 (eval $ac_try) 2>&5
15835 ac_status=$?
15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); }; } &&
15838 { ac_try='test -s conftest$ac_exeext'
15839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15840 (eval $ac_try) 2>&5
15841 ac_status=$?
15842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); }; }; then
15844 eval "$as_ac_var=yes"
15845 else
15846 echo "$as_me: failed program was:" >&5
15847 sed 's/^/| /' conftest.$ac_ext >&5
15849 eval "$as_ac_var=no"
15851 rm -f conftest.err conftest.$ac_objext \
15852 conftest$ac_exeext conftest.$ac_ext
15854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15855 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15856 if test `eval echo '${'$as_ac_var'}'` = yes; then
15858 cat >>confdefs.h <<_ACEOF
15859 #define CRAY_STACKSEG_END $ac_func
15860 _ACEOF
15862 break
15865 done
15868 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15869 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15870 if test "${ac_cv_c_stack_direction+set}" = set; then
15871 echo $ECHO_N "(cached) $ECHO_C" >&6
15872 else
15873 if test "$cross_compiling" = yes; then
15874 ac_cv_c_stack_direction=0
15875 else
15876 cat >conftest.$ac_ext <<_ACEOF
15877 /* confdefs.h. */
15878 _ACEOF
15879 cat confdefs.h >>conftest.$ac_ext
15880 cat >>conftest.$ac_ext <<_ACEOF
15881 /* end confdefs.h. */
15883 find_stack_direction ()
15885 static char *addr = 0;
15886 auto char dummy;
15887 if (addr == 0)
15889 addr = &dummy;
15890 return find_stack_direction ();
15892 else
15893 return (&dummy > addr) ? 1 : -1;
15897 main ()
15899 exit (find_stack_direction () < 0);
15901 _ACEOF
15902 rm -f conftest$ac_exeext
15903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15904 (eval $ac_link) 2>&5
15905 ac_status=$?
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15909 (eval $ac_try) 2>&5
15910 ac_status=$?
15911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); }; }; then
15913 ac_cv_c_stack_direction=1
15914 else
15915 echo "$as_me: program exited with status $ac_status" >&5
15916 echo "$as_me: failed program was:" >&5
15917 sed 's/^/| /' conftest.$ac_ext >&5
15919 ( exit $ac_status )
15920 ac_cv_c_stack_direction=-1
15922 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15925 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15926 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15928 cat >>confdefs.h <<_ACEOF
15929 #define STACK_DIRECTION $ac_cv_c_stack_direction
15930 _ACEOF
15992 for ac_func in \
15993 _lwp_create \
15994 _lwp_self \
15995 _pclose \
15996 _popen \
15997 _snprintf \
15998 _spawnvp \
15999 _stricmp \
16000 _strnicmp \
16001 _vsnprintf \
16002 chsize \
16003 clone \
16004 finite \
16005 fpclass \
16006 fstatfs \
16007 fstatvfs \
16008 ftruncate \
16009 ftruncate64 \
16010 futimes \
16011 getnetbyaddr \
16012 getnetbyname \
16013 getopt_long \
16014 getpagesize \
16015 getprotobyname \
16016 getprotobynumber \
16017 getpwuid \
16018 getservbyport \
16019 gettid \
16020 gettimeofday \
16021 inet_network \
16022 lseek64 \
16023 lstat \
16024 memmove \
16025 mmap \
16026 pclose \
16027 popen \
16028 pread \
16029 pwrite \
16030 readlink \
16031 rfork \
16032 select \
16033 sendmsg \
16034 settimeofday \
16035 sigaltstack \
16036 snprintf \
16037 spawnvp \
16038 statfs \
16039 statvfs \
16040 strcasecmp \
16041 strerror \
16042 strncasecmp \
16043 tcgetattr \
16044 timegm \
16045 usleep \
16046 vfscanf \
16047 vsnprintf \
16048 wait4 \
16049 waitpid \
16052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16053 echo "$as_me:$LINENO: checking for $ac_func" >&5
16054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16055 if eval "test \"\${$as_ac_var+set}\" = set"; then
16056 echo $ECHO_N "(cached) $ECHO_C" >&6
16057 else
16058 cat >conftest.$ac_ext <<_ACEOF
16059 /* confdefs.h. */
16060 _ACEOF
16061 cat confdefs.h >>conftest.$ac_ext
16062 cat >>conftest.$ac_ext <<_ACEOF
16063 /* end confdefs.h. */
16064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16066 #define $ac_func innocuous_$ac_func
16068 /* System header to define __stub macros and hopefully few prototypes,
16069 which can conflict with char $ac_func (); below.
16070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16071 <limits.h> exists even on freestanding compilers. */
16073 #ifdef __STDC__
16074 # include <limits.h>
16075 #else
16076 # include <assert.h>
16077 #endif
16079 #undef $ac_func
16081 /* Override any gcc2 internal prototype to avoid an error. */
16082 #ifdef __cplusplus
16083 extern "C"
16085 #endif
16086 /* We use char because int might match the return type of a gcc2
16087 builtin and then its argument prototype would still apply. */
16088 char $ac_func ();
16089 /* The GNU C library defines this for functions which it implements
16090 to always fail with ENOSYS. Some functions are actually named
16091 something starting with __ and the normal name is an alias. */
16092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16093 choke me
16094 #else
16095 char (*f) () = $ac_func;
16096 #endif
16097 #ifdef __cplusplus
16099 #endif
16102 main ()
16104 return f != $ac_func;
16106 return 0;
16108 _ACEOF
16109 rm -f conftest.$ac_objext conftest$ac_exeext
16110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16111 (eval $ac_link) 2>conftest.er1
16112 ac_status=$?
16113 grep -v '^ *+' conftest.er1 >conftest.err
16114 rm -f conftest.er1
16115 cat conftest.err >&5
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); } &&
16118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16120 (eval $ac_try) 2>&5
16121 ac_status=$?
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); }; } &&
16124 { ac_try='test -s conftest$ac_exeext'
16125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16126 (eval $ac_try) 2>&5
16127 ac_status=$?
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); }; }; then
16130 eval "$as_ac_var=yes"
16131 else
16132 echo "$as_me: failed program was:" >&5
16133 sed 's/^/| /' conftest.$ac_ext >&5
16135 eval "$as_ac_var=no"
16137 rm -f conftest.err conftest.$ac_objext \
16138 conftest$ac_exeext conftest.$ac_ext
16140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16141 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16142 if test `eval echo '${'$as_ac_var'}'` = yes; then
16143 cat >>confdefs.h <<_ACEOF
16144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16145 _ACEOF
16148 done
16236 for ac_header in \
16237 arpa/inet.h \
16238 arpa/nameser.h \
16239 cups/cups.h \
16240 direct.h \
16241 elf.h \
16242 float.h \
16243 fontconfig/fontconfig.h \
16244 getopt.h \
16245 ieeefp.h \
16246 io.h \
16247 jack/jack.h \
16248 libio.h \
16249 libutil.h \
16250 link.h \
16251 linux/cdrom.h \
16252 linux/hdreg.h \
16253 linux/input.h \
16254 linux/ioctl.h \
16255 linux/joystick.h \
16256 linux/major.h \
16257 linux/param.h \
16258 linux/serial.h \
16259 linux/ucdrom.h \
16260 machine/cpu.h \
16261 netdb.h \
16262 netinet/in.h \
16263 netinet/in_systm.h \
16264 netinet/tcp.h \
16265 netinet/tcp_fsm.h \
16266 openssl/ssl.h \
16267 process.h \
16268 pthread.h \
16269 pty.h \
16270 pwd.h \
16271 regex.h \
16272 sched.h \
16273 scsi/sg.h \
16274 scsi/scsi.h \
16275 scsi/scsi_ioctl.h \
16276 socket.h \
16277 stdint.h \
16278 strings.h \
16279 sys/cdio.h \
16280 sys/elf32.h \
16281 sys/errno.h \
16282 sys/exec_elf.h \
16283 sys/file.h \
16284 sys/filio.h \
16285 sys/inttypes.h \
16286 sys/ioctl.h \
16287 sys/ipc.h \
16288 sys/link.h \
16289 sys/lwp.h \
16290 sys/mman.h \
16291 sys/modem.h \
16292 sys/msg.h \
16293 sys/param.h \
16294 sys/poll.h \
16295 sys/ptrace.h \
16296 sys/reg.h \
16297 sys/scsiio.h \
16298 sys/shm.h \
16299 sys/signal.h \
16300 sys/socket.h \
16301 sys/sockio.h \
16302 sys/statfs.h \
16303 sys/statvfs.h \
16304 sys/strtio.h \
16305 sys/syscall.h \
16306 sys/sysctl.h \
16307 sys/time.h \
16308 sys/times.h \
16309 sys/uio.h \
16310 sys/un.h \
16311 sys/v86.h \
16312 sys/v86intr.h \
16313 sys/vfs.h \
16314 sys/vm86.h \
16315 sys/wait.h \
16316 syscall.h \
16317 termios.h \
16318 unistd.h \
16319 utime.h \
16320 valgrind/memcheck.h
16323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16325 echo "$as_me:$LINENO: checking for $ac_header" >&5
16326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16328 echo $ECHO_N "(cached) $ECHO_C" >&6
16330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16332 else
16333 # Is the header compilable?
16334 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16336 cat >conftest.$ac_ext <<_ACEOF
16337 /* confdefs.h. */
16338 _ACEOF
16339 cat confdefs.h >>conftest.$ac_ext
16340 cat >>conftest.$ac_ext <<_ACEOF
16341 /* end confdefs.h. */
16342 $ac_includes_default
16343 #include <$ac_header>
16344 _ACEOF
16345 rm -f conftest.$ac_objext
16346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16347 (eval $ac_compile) 2>conftest.er1
16348 ac_status=$?
16349 grep -v '^ *+' conftest.er1 >conftest.err
16350 rm -f conftest.er1
16351 cat conftest.err >&5
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); } &&
16354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16356 (eval $ac_try) 2>&5
16357 ac_status=$?
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }; } &&
16360 { ac_try='test -s conftest.$ac_objext'
16361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16362 (eval $ac_try) 2>&5
16363 ac_status=$?
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); }; }; then
16366 ac_header_compiler=yes
16367 else
16368 echo "$as_me: failed program was:" >&5
16369 sed 's/^/| /' conftest.$ac_ext >&5
16371 ac_header_compiler=no
16373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16374 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16375 echo "${ECHO_T}$ac_header_compiler" >&6
16377 # Is the header present?
16378 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16379 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16380 cat >conftest.$ac_ext <<_ACEOF
16381 /* confdefs.h. */
16382 _ACEOF
16383 cat confdefs.h >>conftest.$ac_ext
16384 cat >>conftest.$ac_ext <<_ACEOF
16385 /* end confdefs.h. */
16386 #include <$ac_header>
16387 _ACEOF
16388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16389 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16390 ac_status=$?
16391 grep -v '^ *+' conftest.er1 >conftest.err
16392 rm -f conftest.er1
16393 cat conftest.err >&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); } >/dev/null; then
16396 if test -s conftest.err; then
16397 ac_cpp_err=$ac_c_preproc_warn_flag
16398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16399 else
16400 ac_cpp_err=
16402 else
16403 ac_cpp_err=yes
16405 if test -z "$ac_cpp_err"; then
16406 ac_header_preproc=yes
16407 else
16408 echo "$as_me: failed program was:" >&5
16409 sed 's/^/| /' conftest.$ac_ext >&5
16411 ac_header_preproc=no
16413 rm -f conftest.err conftest.$ac_ext
16414 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16415 echo "${ECHO_T}$ac_header_preproc" >&6
16417 # So? What about this header?
16418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16419 yes:no: )
16420 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16424 ac_header_preproc=yes
16426 no:yes:* )
16427 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16429 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16430 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16431 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16432 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16433 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16434 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16437 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16438 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16440 cat <<\_ASBOX
16441 ## ------------------------------------ ##
16442 ## Report this to wine-devel@winehq.org ##
16443 ## ------------------------------------ ##
16444 _ASBOX
16446 sed "s/^/$as_me: WARNING: /" >&2
16448 esac
16449 echo "$as_me:$LINENO: checking for $ac_header" >&5
16450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16452 echo $ECHO_N "(cached) $ECHO_C" >&6
16453 else
16454 eval "$as_ac_Header=\$ac_header_preproc"
16456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16461 cat >>confdefs.h <<_ACEOF
16462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16463 _ACEOF
16467 done
16469 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
16470 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
16471 if test "${ac_cv_header_stat_broken+set}" = set; then
16472 echo $ECHO_N "(cached) $ECHO_C" >&6
16473 else
16474 cat >conftest.$ac_ext <<_ACEOF
16475 /* confdefs.h. */
16476 _ACEOF
16477 cat confdefs.h >>conftest.$ac_ext
16478 cat >>conftest.$ac_ext <<_ACEOF
16479 /* end confdefs.h. */
16480 #include <sys/types.h>
16481 #include <sys/stat.h>
16483 #if defined(S_ISBLK) && defined(S_IFDIR)
16484 # if S_ISBLK (S_IFDIR)
16485 You lose.
16486 # endif
16487 #endif
16489 #if defined(S_ISBLK) && defined(S_IFCHR)
16490 # if S_ISBLK (S_IFCHR)
16491 You lose.
16492 # endif
16493 #endif
16495 #if defined(S_ISLNK) && defined(S_IFREG)
16496 # if S_ISLNK (S_IFREG)
16497 You lose.
16498 # endif
16499 #endif
16501 #if defined(S_ISSOCK) && defined(S_IFREG)
16502 # if S_ISSOCK (S_IFREG)
16503 You lose.
16504 # endif
16505 #endif
16507 _ACEOF
16508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16509 $EGREP "You lose" >/dev/null 2>&1; then
16510 ac_cv_header_stat_broken=yes
16511 else
16512 ac_cv_header_stat_broken=no
16514 rm -f conftest*
16517 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
16518 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
16519 if test $ac_cv_header_stat_broken = yes; then
16521 cat >>confdefs.h <<\_ACEOF
16522 #define STAT_MACROS_BROKEN 1
16523 _ACEOF
16531 for ac_header in sys/mount.h sys/user.h
16533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16534 echo "$as_me:$LINENO: checking for $ac_header" >&5
16535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16537 echo $ECHO_N "(cached) $ECHO_C" >&6
16538 else
16539 cat >conftest.$ac_ext <<_ACEOF
16540 /* confdefs.h. */
16541 _ACEOF
16542 cat confdefs.h >>conftest.$ac_ext
16543 cat >>conftest.$ac_ext <<_ACEOF
16544 /* end confdefs.h. */
16545 #include <sys/types.h>
16546 #if HAVE_SYS_PARAM_H
16547 # include <sys/param.h>
16548 #endif
16550 #include <$ac_header>
16551 _ACEOF
16552 rm -f conftest.$ac_objext
16553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16554 (eval $ac_compile) 2>conftest.er1
16555 ac_status=$?
16556 grep -v '^ *+' conftest.er1 >conftest.err
16557 rm -f conftest.er1
16558 cat conftest.err >&5
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); } &&
16561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16563 (eval $ac_try) 2>&5
16564 ac_status=$?
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); }; } &&
16567 { ac_try='test -s conftest.$ac_objext'
16568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16569 (eval $ac_try) 2>&5
16570 ac_status=$?
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); }; }; then
16573 eval "$as_ac_Header=yes"
16574 else
16575 echo "$as_me: failed program was:" >&5
16576 sed 's/^/| /' conftest.$ac_ext >&5
16578 eval "$as_ac_Header=no"
16580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16583 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16585 cat >>confdefs.h <<_ACEOF
16586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16587 _ACEOF
16591 done
16599 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h
16601 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16602 echo "$as_me:$LINENO: checking for $ac_header" >&5
16603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16605 echo $ECHO_N "(cached) $ECHO_C" >&6
16606 else
16607 cat >conftest.$ac_ext <<_ACEOF
16608 /* confdefs.h. */
16609 _ACEOF
16610 cat confdefs.h >>conftest.$ac_ext
16611 cat >>conftest.$ac_ext <<_ACEOF
16612 /* end confdefs.h. */
16613 #include <sys/types.h>
16614 #if HAVE_SYS_SOCKET_H
16615 # include <sys/socket.h>
16616 #endif
16618 #include <$ac_header>
16619 _ACEOF
16620 rm -f conftest.$ac_objext
16621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16622 (eval $ac_compile) 2>conftest.er1
16623 ac_status=$?
16624 grep -v '^ *+' conftest.er1 >conftest.err
16625 rm -f conftest.er1
16626 cat conftest.err >&5
16627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628 (exit $ac_status); } &&
16629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16631 (eval $ac_try) 2>&5
16632 ac_status=$?
16633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634 (exit $ac_status); }; } &&
16635 { ac_try='test -s conftest.$ac_objext'
16636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16637 (eval $ac_try) 2>&5
16638 ac_status=$?
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); }; }; then
16641 eval "$as_ac_Header=yes"
16642 else
16643 echo "$as_me: failed program was:" >&5
16644 sed 's/^/| /' conftest.$ac_ext >&5
16646 eval "$as_ac_Header=no"
16648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16653 cat >>confdefs.h <<_ACEOF
16654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16655 _ACEOF
16659 done
16663 for ac_header in resolv.h
16665 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16666 echo "$as_me:$LINENO: checking for $ac_header" >&5
16667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16669 echo $ECHO_N "(cached) $ECHO_C" >&6
16670 else
16671 cat >conftest.$ac_ext <<_ACEOF
16672 /* confdefs.h. */
16673 _ACEOF
16674 cat confdefs.h >>conftest.$ac_ext
16675 cat >>conftest.$ac_ext <<_ACEOF
16676 /* end confdefs.h. */
16677 #include <sys/types.h>
16678 #if HAVE_SYS_SOCKET_H
16679 # include <sys/socket.h>
16680 #endif
16681 #if HAVE_NETINET_IN_H
16682 # include <netinet/in.h>
16683 #endif
16684 #if HAVE_ARPA_NAMESER_H
16685 # include <arpa/nameser.h>
16686 #endif
16688 #include <$ac_header>
16689 _ACEOF
16690 rm -f conftest.$ac_objext
16691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16692 (eval $ac_compile) 2>conftest.er1
16693 ac_status=$?
16694 grep -v '^ *+' conftest.er1 >conftest.err
16695 rm -f conftest.er1
16696 cat conftest.err >&5
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); } &&
16699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16701 (eval $ac_try) 2>&5
16702 ac_status=$?
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); }; } &&
16705 { ac_try='test -s conftest.$ac_objext'
16706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16707 (eval $ac_try) 2>&5
16708 ac_status=$?
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); }; }; then
16711 eval "$as_ac_Header=yes"
16712 else
16713 echo "$as_me: failed program was:" >&5
16714 sed 's/^/| /' conftest.$ac_ext >&5
16716 eval "$as_ac_Header=no"
16718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16722 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16723 cat >>confdefs.h <<_ACEOF
16724 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16725 _ACEOF
16729 done
16733 for ac_header in netinet/ip.h
16735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16736 echo "$as_me:$LINENO: checking for $ac_header" >&5
16737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16739 echo $ECHO_N "(cached) $ECHO_C" >&6
16740 else
16741 cat >conftest.$ac_ext <<_ACEOF
16742 /* confdefs.h. */
16743 _ACEOF
16744 cat confdefs.h >>conftest.$ac_ext
16745 cat >>conftest.$ac_ext <<_ACEOF
16746 /* end confdefs.h. */
16747 #include <sys/types.h>
16748 #if HAVE_SYS_SOCKET_H
16749 # include <sys/socket.h>
16750 #endif
16751 #if HAVE_NETINET_IN_SYSTM_H
16752 # include <netinet/in_systm.h>
16753 #endif
16755 #include <$ac_header>
16756 _ACEOF
16757 rm -f conftest.$ac_objext
16758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16759 (eval $ac_compile) 2>conftest.er1
16760 ac_status=$?
16761 grep -v '^ *+' conftest.er1 >conftest.err
16762 rm -f conftest.er1
16763 cat conftest.err >&5
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); } &&
16766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16768 (eval $ac_try) 2>&5
16769 ac_status=$?
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); }; } &&
16772 { ac_try='test -s conftest.$ac_objext'
16773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16774 (eval $ac_try) 2>&5
16775 ac_status=$?
16776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); }; }; then
16778 eval "$as_ac_Header=yes"
16779 else
16780 echo "$as_me: failed program was:" >&5
16781 sed 's/^/| /' conftest.$ac_ext >&5
16783 eval "$as_ac_Header=no"
16785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16790 cat >>confdefs.h <<_ACEOF
16791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16792 _ACEOF
16796 done
16800 for ac_header in ucontext.h
16802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16803 echo "$as_me:$LINENO: checking for $ac_header" >&5
16804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16806 echo $ECHO_N "(cached) $ECHO_C" >&6
16807 else
16808 cat >conftest.$ac_ext <<_ACEOF
16809 /* confdefs.h. */
16810 _ACEOF
16811 cat confdefs.h >>conftest.$ac_ext
16812 cat >>conftest.$ac_ext <<_ACEOF
16813 /* end confdefs.h. */
16814 #include <signal.h>
16816 #include <$ac_header>
16817 _ACEOF
16818 rm -f conftest.$ac_objext
16819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16820 (eval $ac_compile) 2>conftest.er1
16821 ac_status=$?
16822 grep -v '^ *+' conftest.er1 >conftest.err
16823 rm -f conftest.er1
16824 cat conftest.err >&5
16825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826 (exit $ac_status); } &&
16827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16829 (eval $ac_try) 2>&5
16830 ac_status=$?
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); }; } &&
16833 { ac_try='test -s conftest.$ac_objext'
16834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16835 (eval $ac_try) 2>&5
16836 ac_status=$?
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); }; }; then
16839 eval "$as_ac_Header=yes"
16840 else
16841 echo "$as_me: failed program was:" >&5
16842 sed 's/^/| /' conftest.$ac_ext >&5
16844 eval "$as_ac_Header=no"
16846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16849 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16851 cat >>confdefs.h <<_ACEOF
16852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16853 _ACEOF
16857 done
16861 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
16862 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
16863 if test "${ac_cv_c_ipx_gnu+set}" = set; then
16864 echo $ECHO_N "(cached) $ECHO_C" >&6
16865 else
16866 cat >conftest.$ac_ext <<_ACEOF
16867 /* confdefs.h. */
16868 _ACEOF
16869 cat confdefs.h >>conftest.$ac_ext
16870 cat >>conftest.$ac_ext <<_ACEOF
16871 /* end confdefs.h. */
16872 #include <sys/types.h>
16873 #ifdef HAVE_SYS_SOCKET_H
16874 # include <sys/socket.h>
16875 #endif
16876 #include <netipx/ipx.h>
16878 main ()
16880 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
16882 return 0;
16884 _ACEOF
16885 rm -f conftest.$ac_objext
16886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16887 (eval $ac_compile) 2>conftest.er1
16888 ac_status=$?
16889 grep -v '^ *+' conftest.er1 >conftest.err
16890 rm -f conftest.er1
16891 cat conftest.err >&5
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); } &&
16894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16896 (eval $ac_try) 2>&5
16897 ac_status=$?
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); }; } &&
16900 { ac_try='test -s conftest.$ac_objext'
16901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16902 (eval $ac_try) 2>&5
16903 ac_status=$?
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); }; }; then
16906 ac_cv_c_ipx_gnu="yes"
16907 else
16908 echo "$as_me: failed program was:" >&5
16909 sed 's/^/| /' conftest.$ac_ext >&5
16911 ac_cv_c_ipx_gnu="no"
16913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16916 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
16917 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
16918 if test "$ac_cv_c_ipx_gnu" = "yes"
16919 then
16921 cat >>confdefs.h <<\_ACEOF
16922 #define HAVE_IPX_GNU 1
16923 _ACEOF
16927 if test "$ac_cv_c_ipx_gnu" = "no"
16928 then
16929 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
16930 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
16931 if test "${ac_cv_c_ipx_linux+set}" = set; then
16932 echo $ECHO_N "(cached) $ECHO_C" >&6
16933 else
16934 cat >conftest.$ac_ext <<_ACEOF
16935 /* confdefs.h. */
16936 _ACEOF
16937 cat confdefs.h >>conftest.$ac_ext
16938 cat >>conftest.$ac_ext <<_ACEOF
16939 /* end confdefs.h. */
16940 #include <sys/types.h>
16941 #ifdef HAVE_SYS_SOCKET_H
16942 # include <sys/socket.h>
16943 #endif
16944 #include <asm/types.h>
16945 #include <linux/ipx.h>
16947 main ()
16949 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
16951 return 0;
16953 _ACEOF
16954 rm -f conftest.$ac_objext
16955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16956 (eval $ac_compile) 2>conftest.er1
16957 ac_status=$?
16958 grep -v '^ *+' conftest.er1 >conftest.err
16959 rm -f conftest.er1
16960 cat conftest.err >&5
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); } &&
16963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16965 (eval $ac_try) 2>&5
16966 ac_status=$?
16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); }; } &&
16969 { ac_try='test -s conftest.$ac_objext'
16970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16971 (eval $ac_try) 2>&5
16972 ac_status=$?
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); }; }; then
16975 ac_cv_c_ipx_linux="yes"
16976 else
16977 echo "$as_me: failed program was:" >&5
16978 sed 's/^/| /' conftest.$ac_ext >&5
16980 ac_cv_c_ipx_linux="no"
16982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16985 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
16986 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
16987 if test "$ac_cv_c_ipx_linux" = "yes"
16988 then
16990 cat >>confdefs.h <<\_ACEOF
16991 #define HAVE_IPX_LINUX 1
16992 _ACEOF
16998 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16999 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17000 if test "${ac_cv_c_const+set}" = set; then
17001 echo $ECHO_N "(cached) $ECHO_C" >&6
17002 else
17003 cat >conftest.$ac_ext <<_ACEOF
17004 /* confdefs.h. */
17005 _ACEOF
17006 cat confdefs.h >>conftest.$ac_ext
17007 cat >>conftest.$ac_ext <<_ACEOF
17008 /* end confdefs.h. */
17011 main ()
17013 /* FIXME: Include the comments suggested by Paul. */
17014 #ifndef __cplusplus
17015 /* Ultrix mips cc rejects this. */
17016 typedef int charset[2];
17017 const charset x;
17018 /* SunOS 4.1.1 cc rejects this. */
17019 char const *const *ccp;
17020 char **p;
17021 /* NEC SVR4.0.2 mips cc rejects this. */
17022 struct point {int x, y;};
17023 static struct point const zero = {0,0};
17024 /* AIX XL C 1.02.0.0 rejects this.
17025 It does not let you subtract one const X* pointer from another in
17026 an arm of an if-expression whose if-part is not a constant
17027 expression */
17028 const char *g = "string";
17029 ccp = &g + (g ? g-g : 0);
17030 /* HPUX 7.0 cc rejects these. */
17031 ++ccp;
17032 p = (char**) ccp;
17033 ccp = (char const *const *) p;
17034 { /* SCO 3.2v4 cc rejects this. */
17035 char *t;
17036 char const *s = 0 ? (char *) 0 : (char const *) 0;
17038 *t++ = 0;
17040 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17041 int x[] = {25, 17};
17042 const int *foo = &x[0];
17043 ++foo;
17045 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17046 typedef const int *iptr;
17047 iptr p = 0;
17048 ++p;
17050 { /* AIX XL C 1.02.0.0 rejects this saying
17051 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17052 struct s { int j; const int *ap[3]; };
17053 struct s *b; b->j = 5;
17055 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17056 const int foo = 10;
17058 #endif
17061 return 0;
17063 _ACEOF
17064 rm -f conftest.$ac_objext
17065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17066 (eval $ac_compile) 2>conftest.er1
17067 ac_status=$?
17068 grep -v '^ *+' conftest.er1 >conftest.err
17069 rm -f conftest.er1
17070 cat conftest.err >&5
17071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); } &&
17073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17075 (eval $ac_try) 2>&5
17076 ac_status=$?
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); }; } &&
17079 { ac_try='test -s conftest.$ac_objext'
17080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17081 (eval $ac_try) 2>&5
17082 ac_status=$?
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); }; }; then
17085 ac_cv_c_const=yes
17086 else
17087 echo "$as_me: failed program was:" >&5
17088 sed 's/^/| /' conftest.$ac_ext >&5
17090 ac_cv_c_const=no
17092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17094 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17095 echo "${ECHO_T}$ac_cv_c_const" >&6
17096 if test $ac_cv_c_const = no; then
17098 cat >>confdefs.h <<\_ACEOF
17099 #define const
17100 _ACEOF
17104 echo "$as_me:$LINENO: checking for inline" >&5
17105 echo $ECHO_N "checking for inline... $ECHO_C" >&6
17106 if test "${ac_cv_c_inline+set}" = set; then
17107 echo $ECHO_N "(cached) $ECHO_C" >&6
17108 else
17109 ac_cv_c_inline=no
17110 for ac_kw in inline __inline__ __inline; do
17111 cat >conftest.$ac_ext <<_ACEOF
17112 /* confdefs.h. */
17113 _ACEOF
17114 cat confdefs.h >>conftest.$ac_ext
17115 cat >>conftest.$ac_ext <<_ACEOF
17116 /* end confdefs.h. */
17117 #ifndef __cplusplus
17118 typedef int foo_t;
17119 static $ac_kw foo_t static_foo () {return 0; }
17120 $ac_kw foo_t foo () {return 0; }
17121 #endif
17123 _ACEOF
17124 rm -f conftest.$ac_objext
17125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17126 (eval $ac_compile) 2>conftest.er1
17127 ac_status=$?
17128 grep -v '^ *+' conftest.er1 >conftest.err
17129 rm -f conftest.er1
17130 cat conftest.err >&5
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); } &&
17133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17135 (eval $ac_try) 2>&5
17136 ac_status=$?
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); }; } &&
17139 { ac_try='test -s conftest.$ac_objext'
17140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17141 (eval $ac_try) 2>&5
17142 ac_status=$?
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); }; }; then
17145 ac_cv_c_inline=$ac_kw; break
17146 else
17147 echo "$as_me: failed program was:" >&5
17148 sed 's/^/| /' conftest.$ac_ext >&5
17151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17152 done
17155 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17156 echo "${ECHO_T}$ac_cv_c_inline" >&6
17159 case $ac_cv_c_inline in
17160 inline | yes) ;;
17162 case $ac_cv_c_inline in
17163 no) ac_val=;;
17164 *) ac_val=$ac_cv_c_inline;;
17165 esac
17166 cat >>confdefs.h <<_ACEOF
17167 #ifndef __cplusplus
17168 #define inline $ac_val
17169 #endif
17170 _ACEOF
17172 esac
17174 echo "$as_me:$LINENO: checking for mode_t" >&5
17175 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
17176 if test "${ac_cv_type_mode_t+set}" = set; then
17177 echo $ECHO_N "(cached) $ECHO_C" >&6
17178 else
17179 cat >conftest.$ac_ext <<_ACEOF
17180 /* confdefs.h. */
17181 _ACEOF
17182 cat confdefs.h >>conftest.$ac_ext
17183 cat >>conftest.$ac_ext <<_ACEOF
17184 /* end confdefs.h. */
17185 $ac_includes_default
17187 main ()
17189 if ((mode_t *) 0)
17190 return 0;
17191 if (sizeof (mode_t))
17192 return 0;
17194 return 0;
17196 _ACEOF
17197 rm -f conftest.$ac_objext
17198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17199 (eval $ac_compile) 2>conftest.er1
17200 ac_status=$?
17201 grep -v '^ *+' conftest.er1 >conftest.err
17202 rm -f conftest.er1
17203 cat conftest.err >&5
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); } &&
17206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17208 (eval $ac_try) 2>&5
17209 ac_status=$?
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); }; } &&
17212 { ac_try='test -s conftest.$ac_objext'
17213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17214 (eval $ac_try) 2>&5
17215 ac_status=$?
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); }; }; then
17218 ac_cv_type_mode_t=yes
17219 else
17220 echo "$as_me: failed program was:" >&5
17221 sed 's/^/| /' conftest.$ac_ext >&5
17223 ac_cv_type_mode_t=no
17225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17227 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
17228 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
17229 if test $ac_cv_type_mode_t = yes; then
17231 cat >>confdefs.h <<_ACEOF
17232 #define HAVE_MODE_T 1
17233 _ACEOF
17237 echo "$as_me:$LINENO: checking for off_t" >&5
17238 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
17239 if test "${ac_cv_type_off_t+set}" = set; then
17240 echo $ECHO_N "(cached) $ECHO_C" >&6
17241 else
17242 cat >conftest.$ac_ext <<_ACEOF
17243 /* confdefs.h. */
17244 _ACEOF
17245 cat confdefs.h >>conftest.$ac_ext
17246 cat >>conftest.$ac_ext <<_ACEOF
17247 /* end confdefs.h. */
17248 $ac_includes_default
17250 main ()
17252 if ((off_t *) 0)
17253 return 0;
17254 if (sizeof (off_t))
17255 return 0;
17257 return 0;
17259 _ACEOF
17260 rm -f conftest.$ac_objext
17261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17262 (eval $ac_compile) 2>conftest.er1
17263 ac_status=$?
17264 grep -v '^ *+' conftest.er1 >conftest.err
17265 rm -f conftest.er1
17266 cat conftest.err >&5
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); } &&
17269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17271 (eval $ac_try) 2>&5
17272 ac_status=$?
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); }; } &&
17275 { ac_try='test -s conftest.$ac_objext'
17276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17277 (eval $ac_try) 2>&5
17278 ac_status=$?
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); }; }; then
17281 ac_cv_type_off_t=yes
17282 else
17283 echo "$as_me: failed program was:" >&5
17284 sed 's/^/| /' conftest.$ac_ext >&5
17286 ac_cv_type_off_t=no
17288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17290 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
17291 echo "${ECHO_T}$ac_cv_type_off_t" >&6
17292 if test $ac_cv_type_off_t = yes; then
17294 cat >>confdefs.h <<_ACEOF
17295 #define HAVE_OFF_T 1
17296 _ACEOF
17300 echo "$as_me:$LINENO: checking for pid_t" >&5
17301 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17302 if test "${ac_cv_type_pid_t+set}" = set; then
17303 echo $ECHO_N "(cached) $ECHO_C" >&6
17304 else
17305 cat >conftest.$ac_ext <<_ACEOF
17306 /* confdefs.h. */
17307 _ACEOF
17308 cat confdefs.h >>conftest.$ac_ext
17309 cat >>conftest.$ac_ext <<_ACEOF
17310 /* end confdefs.h. */
17311 $ac_includes_default
17313 main ()
17315 if ((pid_t *) 0)
17316 return 0;
17317 if (sizeof (pid_t))
17318 return 0;
17320 return 0;
17322 _ACEOF
17323 rm -f conftest.$ac_objext
17324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17325 (eval $ac_compile) 2>conftest.er1
17326 ac_status=$?
17327 grep -v '^ *+' conftest.er1 >conftest.err
17328 rm -f conftest.er1
17329 cat conftest.err >&5
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); } &&
17332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17334 (eval $ac_try) 2>&5
17335 ac_status=$?
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); }; } &&
17338 { ac_try='test -s conftest.$ac_objext'
17339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17340 (eval $ac_try) 2>&5
17341 ac_status=$?
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); }; }; then
17344 ac_cv_type_pid_t=yes
17345 else
17346 echo "$as_me: failed program was:" >&5
17347 sed 's/^/| /' conftest.$ac_ext >&5
17349 ac_cv_type_pid_t=no
17351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17353 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17354 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17355 if test $ac_cv_type_pid_t = yes; then
17357 cat >>confdefs.h <<_ACEOF
17358 #define HAVE_PID_T 1
17359 _ACEOF
17363 echo "$as_me:$LINENO: checking for size_t" >&5
17364 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17365 if test "${ac_cv_type_size_t+set}" = set; then
17366 echo $ECHO_N "(cached) $ECHO_C" >&6
17367 else
17368 cat >conftest.$ac_ext <<_ACEOF
17369 /* confdefs.h. */
17370 _ACEOF
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h. */
17374 $ac_includes_default
17376 main ()
17378 if ((size_t *) 0)
17379 return 0;
17380 if (sizeof (size_t))
17381 return 0;
17383 return 0;
17385 _ACEOF
17386 rm -f conftest.$ac_objext
17387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17388 (eval $ac_compile) 2>conftest.er1
17389 ac_status=$?
17390 grep -v '^ *+' conftest.er1 >conftest.err
17391 rm -f conftest.er1
17392 cat conftest.err >&5
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); } &&
17395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17397 (eval $ac_try) 2>&5
17398 ac_status=$?
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); }; } &&
17401 { ac_try='test -s conftest.$ac_objext'
17402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17403 (eval $ac_try) 2>&5
17404 ac_status=$?
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); }; }; then
17407 ac_cv_type_size_t=yes
17408 else
17409 echo "$as_me: failed program was:" >&5
17410 sed 's/^/| /' conftest.$ac_ext >&5
17412 ac_cv_type_size_t=no
17414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17416 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17417 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17418 if test $ac_cv_type_size_t = yes; then
17420 cat >>confdefs.h <<_ACEOF
17421 #define HAVE_SIZE_T 1
17422 _ACEOF
17426 echo "$as_me:$LINENO: checking for ssize_t" >&5
17427 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17428 if test "${ac_cv_type_ssize_t+set}" = set; then
17429 echo $ECHO_N "(cached) $ECHO_C" >&6
17430 else
17431 cat >conftest.$ac_ext <<_ACEOF
17432 /* confdefs.h. */
17433 _ACEOF
17434 cat confdefs.h >>conftest.$ac_ext
17435 cat >>conftest.$ac_ext <<_ACEOF
17436 /* end confdefs.h. */
17437 $ac_includes_default
17439 main ()
17441 if ((ssize_t *) 0)
17442 return 0;
17443 if (sizeof (ssize_t))
17444 return 0;
17446 return 0;
17448 _ACEOF
17449 rm -f conftest.$ac_objext
17450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17451 (eval $ac_compile) 2>conftest.er1
17452 ac_status=$?
17453 grep -v '^ *+' conftest.er1 >conftest.err
17454 rm -f conftest.er1
17455 cat conftest.err >&5
17456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); } &&
17458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17460 (eval $ac_try) 2>&5
17461 ac_status=$?
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); }; } &&
17464 { ac_try='test -s conftest.$ac_objext'
17465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17466 (eval $ac_try) 2>&5
17467 ac_status=$?
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); }; }; then
17470 ac_cv_type_ssize_t=yes
17471 else
17472 echo "$as_me: failed program was:" >&5
17473 sed 's/^/| /' conftest.$ac_ext >&5
17475 ac_cv_type_ssize_t=no
17477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17479 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
17480 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17481 if test $ac_cv_type_ssize_t = yes; then
17483 cat >>confdefs.h <<_ACEOF
17484 #define HAVE_SSIZE_T 1
17485 _ACEOF
17489 echo "$as_me:$LINENO: checking for long long" >&5
17490 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17491 if test "${ac_cv_type_long_long+set}" = set; then
17492 echo $ECHO_N "(cached) $ECHO_C" >&6
17493 else
17494 cat >conftest.$ac_ext <<_ACEOF
17495 /* confdefs.h. */
17496 _ACEOF
17497 cat confdefs.h >>conftest.$ac_ext
17498 cat >>conftest.$ac_ext <<_ACEOF
17499 /* end confdefs.h. */
17500 $ac_includes_default
17502 main ()
17504 if ((long long *) 0)
17505 return 0;
17506 if (sizeof (long long))
17507 return 0;
17509 return 0;
17511 _ACEOF
17512 rm -f conftest.$ac_objext
17513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17514 (eval $ac_compile) 2>conftest.er1
17515 ac_status=$?
17516 grep -v '^ *+' conftest.er1 >conftest.err
17517 rm -f conftest.er1
17518 cat conftest.err >&5
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); } &&
17521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17523 (eval $ac_try) 2>&5
17524 ac_status=$?
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); }; } &&
17527 { ac_try='test -s conftest.$ac_objext'
17528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17529 (eval $ac_try) 2>&5
17530 ac_status=$?
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); }; }; then
17533 ac_cv_type_long_long=yes
17534 else
17535 echo "$as_me: failed program was:" >&5
17536 sed 's/^/| /' conftest.$ac_ext >&5
17538 ac_cv_type_long_long=no
17540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17542 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17543 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17544 if test $ac_cv_type_long_long = yes; then
17546 cat >>confdefs.h <<_ACEOF
17547 #define HAVE_LONG_LONG 1
17548 _ACEOF
17552 echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
17553 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6
17554 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
17555 echo $ECHO_N "(cached) $ECHO_C" >&6
17556 else
17557 cat >conftest.$ac_ext <<_ACEOF
17558 /* confdefs.h. */
17559 _ACEOF
17560 cat confdefs.h >>conftest.$ac_ext
17561 cat >>conftest.$ac_ext <<_ACEOF
17562 /* end confdefs.h. */
17563 $ac_includes_default
17565 main ()
17567 if ((fsblkcnt_t *) 0)
17568 return 0;
17569 if (sizeof (fsblkcnt_t))
17570 return 0;
17572 return 0;
17574 _ACEOF
17575 rm -f conftest.$ac_objext
17576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17577 (eval $ac_compile) 2>conftest.er1
17578 ac_status=$?
17579 grep -v '^ *+' conftest.er1 >conftest.err
17580 rm -f conftest.er1
17581 cat conftest.err >&5
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); } &&
17584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17586 (eval $ac_try) 2>&5
17587 ac_status=$?
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); }; } &&
17590 { ac_try='test -s conftest.$ac_objext'
17591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17592 (eval $ac_try) 2>&5
17593 ac_status=$?
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); }; }; then
17596 ac_cv_type_fsblkcnt_t=yes
17597 else
17598 echo "$as_me: failed program was:" >&5
17599 sed 's/^/| /' conftest.$ac_ext >&5
17601 ac_cv_type_fsblkcnt_t=no
17603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17605 echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
17606 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6
17607 if test $ac_cv_type_fsblkcnt_t = yes; then
17609 cat >>confdefs.h <<_ACEOF
17610 #define HAVE_FSBLKCNT_T 1
17611 _ACEOF
17615 echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
17616 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6
17617 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
17618 echo $ECHO_N "(cached) $ECHO_C" >&6
17619 else
17620 cat >conftest.$ac_ext <<_ACEOF
17621 /* confdefs.h. */
17622 _ACEOF
17623 cat confdefs.h >>conftest.$ac_ext
17624 cat >>conftest.$ac_ext <<_ACEOF
17625 /* end confdefs.h. */
17626 $ac_includes_default
17628 main ()
17630 if ((fsfilcnt_t *) 0)
17631 return 0;
17632 if (sizeof (fsfilcnt_t))
17633 return 0;
17635 return 0;
17637 _ACEOF
17638 rm -f conftest.$ac_objext
17639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17640 (eval $ac_compile) 2>conftest.er1
17641 ac_status=$?
17642 grep -v '^ *+' conftest.er1 >conftest.err
17643 rm -f conftest.er1
17644 cat conftest.err >&5
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); } &&
17647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17649 (eval $ac_try) 2>&5
17650 ac_status=$?
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); }; } &&
17653 { ac_try='test -s conftest.$ac_objext'
17654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655 (eval $ac_try) 2>&5
17656 ac_status=$?
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); }; }; then
17659 ac_cv_type_fsfilcnt_t=yes
17660 else
17661 echo "$as_me: failed program was:" >&5
17662 sed 's/^/| /' conftest.$ac_ext >&5
17664 ac_cv_type_fsfilcnt_t=no
17666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17668 echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
17669 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6
17670 if test $ac_cv_type_fsfilcnt_t = yes; then
17672 cat >>confdefs.h <<_ACEOF
17673 #define HAVE_FSFILCNT_T 1
17674 _ACEOF
17680 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
17681 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
17682 if test "${wine_cv_linux_input_h+set}" = set; then
17683 echo $ECHO_N "(cached) $ECHO_C" >&6
17684 else
17685 cat >conftest.$ac_ext <<_ACEOF
17686 /* confdefs.h. */
17687 _ACEOF
17688 cat confdefs.h >>conftest.$ac_ext
17689 cat >>conftest.$ac_ext <<_ACEOF
17690 /* end confdefs.h. */
17692 #include <linux/input.h>
17695 main ()
17698 int foo = EVIOCGBIT(EV_ABS,42);
17699 int bar = BTN_PINKIE;
17700 int fortytwo = 42;
17703 return 0;
17705 _ACEOF
17706 rm -f conftest.$ac_objext
17707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17708 (eval $ac_compile) 2>conftest.er1
17709 ac_status=$?
17710 grep -v '^ *+' conftest.er1 >conftest.err
17711 rm -f conftest.er1
17712 cat conftest.err >&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } &&
17715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17717 (eval $ac_try) 2>&5
17718 ac_status=$?
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); }; } &&
17721 { ac_try='test -s conftest.$ac_objext'
17722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17723 (eval $ac_try) 2>&5
17724 ac_status=$?
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); }; }; then
17727 wine_cv_linux_input_h=yes
17728 else
17729 echo "$as_me: failed program was:" >&5
17730 sed 's/^/| /' conftest.$ac_ext >&5
17732 wine_cv_linux_input_h=no
17734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17737 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
17738 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
17739 if test "$wine_cv_linux_input_h" = "yes"
17740 then
17742 cat >>confdefs.h <<\_ACEOF
17743 #define HAVE_CORRECT_LINUXINPUT_H 1
17744 _ACEOF
17749 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
17750 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
17751 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
17752 echo $ECHO_N "(cached) $ECHO_C" >&6
17753 else
17754 cat >conftest.$ac_ext <<_ACEOF
17755 /* confdefs.h. */
17756 _ACEOF
17757 cat confdefs.h >>conftest.$ac_ext
17758 cat >>conftest.$ac_ext <<_ACEOF
17759 /* end confdefs.h. */
17761 #include <netdb.h>
17764 main ()
17767 char *name=NULL;
17768 struct hostent he;
17769 struct hostent *result;
17770 char *buf=NULL;
17771 int bufsize=0;
17772 int res,errnr;
17773 char *addr=NULL;
17774 int addrlen=0;
17775 int addrtype=0;
17776 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
17777 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
17780 return 0;
17782 _ACEOF
17783 rm -f conftest.$ac_objext conftest$ac_exeext
17784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17785 (eval $ac_link) 2>conftest.er1
17786 ac_status=$?
17787 grep -v '^ *+' conftest.er1 >conftest.err
17788 rm -f conftest.er1
17789 cat conftest.err >&5
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); } &&
17792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17794 (eval $ac_try) 2>&5
17795 ac_status=$?
17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); }; } &&
17798 { ac_try='test -s conftest$ac_exeext'
17799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17800 (eval $ac_try) 2>&5
17801 ac_status=$?
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); }; }; then
17804 wine_cv_linux_gethostbyname_r_6=yes
17805 else
17806 echo "$as_me: failed program was:" >&5
17807 sed 's/^/| /' conftest.$ac_ext >&5
17809 wine_cv_linux_gethostbyname_r_6=no
17812 rm -f conftest.err conftest.$ac_objext \
17813 conftest$ac_exeext conftest.$ac_ext
17816 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
17817 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
17818 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
17819 then
17821 cat >>confdefs.h <<\_ACEOF
17822 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
17823 _ACEOF
17827 if test "$ac_cv_header_linux_joystick_h" = "yes"
17828 then
17829 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
17830 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
17831 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
17832 echo $ECHO_N "(cached) $ECHO_C" >&6
17833 else
17834 cat >conftest.$ac_ext <<_ACEOF
17835 /* confdefs.h. */
17836 _ACEOF
17837 cat confdefs.h >>conftest.$ac_ext
17838 cat >>conftest.$ac_ext <<_ACEOF
17839 /* end confdefs.h. */
17841 #include <sys/ioctl.h>
17842 #include <linux/joystick.h>
17844 struct js_event blub;
17845 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
17846 #error "no 2.2 header"
17847 #endif
17850 main ()
17852 /*empty*/
17854 return 0;
17856 _ACEOF
17857 rm -f conftest.$ac_objext
17858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17859 (eval $ac_compile) 2>conftest.er1
17860 ac_status=$?
17861 grep -v '^ *+' conftest.er1 >conftest.err
17862 rm -f conftest.er1
17863 cat conftest.err >&5
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); } &&
17866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868 (eval $ac_try) 2>&5
17869 ac_status=$?
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); }; } &&
17872 { ac_try='test -s conftest.$ac_objext'
17873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17874 (eval $ac_try) 2>&5
17875 ac_status=$?
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); }; }; then
17878 wine_cv_linux_joystick_22_api=yes
17879 else
17880 echo "$as_me: failed program was:" >&5
17881 sed 's/^/| /' conftest.$ac_ext >&5
17883 wine_cv_linux_joystick_22_api=no
17885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17888 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
17889 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
17890 if test "$wine_cv_linux_joystick_22_api" = "yes"
17891 then
17893 cat >>confdefs.h <<\_ACEOF
17894 #define HAVE_LINUX_22_JOYSTICK_API 1
17895 _ACEOF
17901 if test "$ac_cv_header_sys_vfs_h" = "yes"
17902 then
17903 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
17904 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
17905 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
17906 echo $ECHO_N "(cached) $ECHO_C" >&6
17907 else
17908 cat >conftest.$ac_ext <<_ACEOF
17909 /* confdefs.h. */
17910 _ACEOF
17911 cat confdefs.h >>conftest.$ac_ext
17912 cat >>conftest.$ac_ext <<_ACEOF
17913 /* end confdefs.h. */
17915 #include <sys/types.h>
17916 #ifdef HAVE_SYS_PARAM_H
17917 # include <sys/param.h>
17918 #endif
17919 #include <sys/vfs.h>
17922 main ()
17925 struct statfs stfs;
17927 memset(&stfs,0,sizeof(stfs));
17930 return 0;
17932 _ACEOF
17933 rm -f conftest.$ac_objext
17934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17935 (eval $ac_compile) 2>conftest.er1
17936 ac_status=$?
17937 grep -v '^ *+' conftest.er1 >conftest.err
17938 rm -f conftest.er1
17939 cat conftest.err >&5
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); } &&
17942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17944 (eval $ac_try) 2>&5
17945 ac_status=$?
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); }; } &&
17948 { ac_try='test -s conftest.$ac_objext'
17949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17950 (eval $ac_try) 2>&5
17951 ac_status=$?
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); }; }; then
17954 wine_cv_sys_vfs_has_statfs=yes
17955 else
17956 echo "$as_me: failed program was:" >&5
17957 sed 's/^/| /' conftest.$ac_ext >&5
17959 wine_cv_sys_vfs_has_statfs=no
17962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17965 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
17966 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
17967 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
17968 then
17970 cat >>confdefs.h <<\_ACEOF
17971 #define STATFS_DEFINED_BY_SYS_VFS 1
17972 _ACEOF
17977 if test "$ac_cv_header_sys_statfs_h" = "yes"
17978 then
17979 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
17980 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
17981 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
17982 echo $ECHO_N "(cached) $ECHO_C" >&6
17983 else
17984 cat >conftest.$ac_ext <<_ACEOF
17985 /* confdefs.h. */
17986 _ACEOF
17987 cat confdefs.h >>conftest.$ac_ext
17988 cat >>conftest.$ac_ext <<_ACEOF
17989 /* end confdefs.h. */
17991 #include <sys/types.h>
17992 #ifdef HAVE_SYS_PARAM_H
17993 # include <sys/param.h>
17994 #endif
17995 #include <sys/statfs.h>
17998 main ()
18001 struct statfs stfs;
18004 return 0;
18006 _ACEOF
18007 rm -f conftest.$ac_objext
18008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18009 (eval $ac_compile) 2>conftest.er1
18010 ac_status=$?
18011 grep -v '^ *+' conftest.er1 >conftest.err
18012 rm -f conftest.er1
18013 cat conftest.err >&5
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); } &&
18016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18018 (eval $ac_try) 2>&5
18019 ac_status=$?
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); }; } &&
18022 { ac_try='test -s conftest.$ac_objext'
18023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18024 (eval $ac_try) 2>&5
18025 ac_status=$?
18026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027 (exit $ac_status); }; }; then
18028 wine_cv_sys_statfs_has_statfs=yes
18029 else
18030 echo "$as_me: failed program was:" >&5
18031 sed 's/^/| /' conftest.$ac_ext >&5
18033 wine_cv_sys_statfs_has_statfs=no
18036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18039 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
18040 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
18041 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
18042 then
18044 cat >>confdefs.h <<\_ACEOF
18045 #define STATFS_DEFINED_BY_SYS_STATFS 1
18046 _ACEOF
18051 if test "$ac_cv_header_sys_mount_h" = "yes"
18052 then
18053 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
18054 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
18055 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
18056 echo $ECHO_N "(cached) $ECHO_C" >&6
18057 else
18058 cat >conftest.$ac_ext <<_ACEOF
18059 /* confdefs.h. */
18060 _ACEOF
18061 cat confdefs.h >>conftest.$ac_ext
18062 cat >>conftest.$ac_ext <<_ACEOF
18063 /* end confdefs.h. */
18065 #include <sys/types.h>
18066 #ifdef HAVE_SYS_PARAM_H
18067 # include <sys/param.h>
18068 #endif
18069 #include <sys/mount.h>
18072 main ()
18075 struct statfs stfs;
18078 return 0;
18080 _ACEOF
18081 rm -f conftest.$ac_objext
18082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18083 (eval $ac_compile) 2>conftest.er1
18084 ac_status=$?
18085 grep -v '^ *+' conftest.er1 >conftest.err
18086 rm -f conftest.er1
18087 cat conftest.err >&5
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); } &&
18090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18092 (eval $ac_try) 2>&5
18093 ac_status=$?
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); }; } &&
18096 { ac_try='test -s conftest.$ac_objext'
18097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18098 (eval $ac_try) 2>&5
18099 ac_status=$?
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); }; }; then
18102 wine_cv_sys_mount_has_statfs=yes
18103 else
18104 echo "$as_me: failed program was:" >&5
18105 sed 's/^/| /' conftest.$ac_ext >&5
18107 wine_cv_sys_mount_has_statfs=no
18110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18113 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
18114 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
18115 if test "$wine_cv_sys_mount_has_statfs" = "yes"
18116 then
18118 cat >>confdefs.h <<\_ACEOF
18119 #define STATFS_DEFINED_BY_SYS_MOUNT 1
18120 _ACEOF
18126 echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
18127 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
18128 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
18129 echo $ECHO_N "(cached) $ECHO_C" >&6
18130 else
18131 cat >conftest.$ac_ext <<_ACEOF
18132 /* confdefs.h. */
18133 _ACEOF
18134 cat confdefs.h >>conftest.$ac_ext
18135 cat >>conftest.$ac_ext <<_ACEOF
18136 /* end confdefs.h. */
18137 #include <sys/types.h>
18138 #ifdef HAVE_SYS_PARAM_H
18139 # include <sys/param.h>
18140 #endif
18141 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18142 # include <sys/mount.h>
18143 #else
18144 # ifdef STATFS_DEFINED_BY_SYS_VFS
18145 # include <sys/vfs.h>
18146 # else
18147 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18148 # include <sys/statfs.h>
18149 # endif
18150 # endif
18151 #endif
18154 main ()
18156 static struct statfs ac_aggr;
18157 if (ac_aggr.f_bfree)
18158 return 0;
18160 return 0;
18162 _ACEOF
18163 rm -f conftest.$ac_objext
18164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18165 (eval $ac_compile) 2>conftest.er1
18166 ac_status=$?
18167 grep -v '^ *+' conftest.er1 >conftest.err
18168 rm -f conftest.er1
18169 cat conftest.err >&5
18170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171 (exit $ac_status); } &&
18172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18174 (eval $ac_try) 2>&5
18175 ac_status=$?
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); }; } &&
18178 { ac_try='test -s conftest.$ac_objext'
18179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18180 (eval $ac_try) 2>&5
18181 ac_status=$?
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); }; }; then
18184 ac_cv_member_struct_statfs_f_bfree=yes
18185 else
18186 echo "$as_me: failed program was:" >&5
18187 sed 's/^/| /' conftest.$ac_ext >&5
18189 cat >conftest.$ac_ext <<_ACEOF
18190 /* confdefs.h. */
18191 _ACEOF
18192 cat confdefs.h >>conftest.$ac_ext
18193 cat >>conftest.$ac_ext <<_ACEOF
18194 /* end confdefs.h. */
18195 #include <sys/types.h>
18196 #ifdef HAVE_SYS_PARAM_H
18197 # include <sys/param.h>
18198 #endif
18199 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18200 # include <sys/mount.h>
18201 #else
18202 # ifdef STATFS_DEFINED_BY_SYS_VFS
18203 # include <sys/vfs.h>
18204 # else
18205 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18206 # include <sys/statfs.h>
18207 # endif
18208 # endif
18209 #endif
18212 main ()
18214 static struct statfs ac_aggr;
18215 if (sizeof ac_aggr.f_bfree)
18216 return 0;
18218 return 0;
18220 _ACEOF
18221 rm -f conftest.$ac_objext
18222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18223 (eval $ac_compile) 2>conftest.er1
18224 ac_status=$?
18225 grep -v '^ *+' conftest.er1 >conftest.err
18226 rm -f conftest.er1
18227 cat conftest.err >&5
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); } &&
18230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18232 (eval $ac_try) 2>&5
18233 ac_status=$?
18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); }; } &&
18236 { ac_try='test -s conftest.$ac_objext'
18237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18238 (eval $ac_try) 2>&5
18239 ac_status=$?
18240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241 (exit $ac_status); }; }; then
18242 ac_cv_member_struct_statfs_f_bfree=yes
18243 else
18244 echo "$as_me: failed program was:" >&5
18245 sed 's/^/| /' conftest.$ac_ext >&5
18247 ac_cv_member_struct_statfs_f_bfree=no
18249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18253 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
18254 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
18255 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
18257 cat >>confdefs.h <<_ACEOF
18258 #define HAVE_STRUCT_STATFS_F_BFREE 1
18259 _ACEOF
18263 echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
18264 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
18265 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
18266 echo $ECHO_N "(cached) $ECHO_C" >&6
18267 else
18268 cat >conftest.$ac_ext <<_ACEOF
18269 /* confdefs.h. */
18270 _ACEOF
18271 cat confdefs.h >>conftest.$ac_ext
18272 cat >>conftest.$ac_ext <<_ACEOF
18273 /* end confdefs.h. */
18274 #include <sys/types.h>
18275 #ifdef HAVE_SYS_PARAM_H
18276 # include <sys/param.h>
18277 #endif
18278 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18279 # include <sys/mount.h>
18280 #else
18281 # ifdef STATFS_DEFINED_BY_SYS_VFS
18282 # include <sys/vfs.h>
18283 # else
18284 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18285 # include <sys/statfs.h>
18286 # endif
18287 # endif
18288 #endif
18291 main ()
18293 static struct statfs ac_aggr;
18294 if (ac_aggr.f_bavail)
18295 return 0;
18297 return 0;
18299 _ACEOF
18300 rm -f conftest.$ac_objext
18301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18302 (eval $ac_compile) 2>conftest.er1
18303 ac_status=$?
18304 grep -v '^ *+' conftest.er1 >conftest.err
18305 rm -f conftest.er1
18306 cat conftest.err >&5
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); } &&
18309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18311 (eval $ac_try) 2>&5
18312 ac_status=$?
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); }; } &&
18315 { ac_try='test -s conftest.$ac_objext'
18316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18317 (eval $ac_try) 2>&5
18318 ac_status=$?
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); }; }; then
18321 ac_cv_member_struct_statfs_f_bavail=yes
18322 else
18323 echo "$as_me: failed program was:" >&5
18324 sed 's/^/| /' conftest.$ac_ext >&5
18326 cat >conftest.$ac_ext <<_ACEOF
18327 /* confdefs.h. */
18328 _ACEOF
18329 cat confdefs.h >>conftest.$ac_ext
18330 cat >>conftest.$ac_ext <<_ACEOF
18331 /* end confdefs.h. */
18332 #include <sys/types.h>
18333 #ifdef HAVE_SYS_PARAM_H
18334 # include <sys/param.h>
18335 #endif
18336 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18337 # include <sys/mount.h>
18338 #else
18339 # ifdef STATFS_DEFINED_BY_SYS_VFS
18340 # include <sys/vfs.h>
18341 # else
18342 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18343 # include <sys/statfs.h>
18344 # endif
18345 # endif
18346 #endif
18349 main ()
18351 static struct statfs ac_aggr;
18352 if (sizeof ac_aggr.f_bavail)
18353 return 0;
18355 return 0;
18357 _ACEOF
18358 rm -f conftest.$ac_objext
18359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18360 (eval $ac_compile) 2>conftest.er1
18361 ac_status=$?
18362 grep -v '^ *+' conftest.er1 >conftest.err
18363 rm -f conftest.er1
18364 cat conftest.err >&5
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); } &&
18367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18369 (eval $ac_try) 2>&5
18370 ac_status=$?
18371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372 (exit $ac_status); }; } &&
18373 { ac_try='test -s conftest.$ac_objext'
18374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18375 (eval $ac_try) 2>&5
18376 ac_status=$?
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); }; }; then
18379 ac_cv_member_struct_statfs_f_bavail=yes
18380 else
18381 echo "$as_me: failed program was:" >&5
18382 sed 's/^/| /' conftest.$ac_ext >&5
18384 ac_cv_member_struct_statfs_f_bavail=no
18386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18390 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
18391 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
18392 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
18394 cat >>confdefs.h <<_ACEOF
18395 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
18396 _ACEOF
18400 echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
18401 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6
18402 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
18403 echo $ECHO_N "(cached) $ECHO_C" >&6
18404 else
18405 cat >conftest.$ac_ext <<_ACEOF
18406 /* confdefs.h. */
18407 _ACEOF
18408 cat confdefs.h >>conftest.$ac_ext
18409 cat >>conftest.$ac_ext <<_ACEOF
18410 /* end confdefs.h. */
18411 #include <sys/types.h>
18412 #ifdef HAVE_SYS_PARAM_H
18413 # include <sys/param.h>
18414 #endif
18415 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18416 # include <sys/mount.h>
18417 #else
18418 # ifdef STATFS_DEFINED_BY_SYS_VFS
18419 # include <sys/vfs.h>
18420 # else
18421 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18422 # include <sys/statfs.h>
18423 # endif
18424 # endif
18425 #endif
18428 main ()
18430 static struct statfs ac_aggr;
18431 if (ac_aggr.f_frsize)
18432 return 0;
18434 return 0;
18436 _ACEOF
18437 rm -f conftest.$ac_objext
18438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18439 (eval $ac_compile) 2>conftest.er1
18440 ac_status=$?
18441 grep -v '^ *+' conftest.er1 >conftest.err
18442 rm -f conftest.er1
18443 cat conftest.err >&5
18444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445 (exit $ac_status); } &&
18446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18448 (eval $ac_try) 2>&5
18449 ac_status=$?
18450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451 (exit $ac_status); }; } &&
18452 { ac_try='test -s conftest.$ac_objext'
18453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18454 (eval $ac_try) 2>&5
18455 ac_status=$?
18456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457 (exit $ac_status); }; }; then
18458 ac_cv_member_struct_statfs_f_frsize=yes
18459 else
18460 echo "$as_me: failed program was:" >&5
18461 sed 's/^/| /' conftest.$ac_ext >&5
18463 cat >conftest.$ac_ext <<_ACEOF
18464 /* confdefs.h. */
18465 _ACEOF
18466 cat confdefs.h >>conftest.$ac_ext
18467 cat >>conftest.$ac_ext <<_ACEOF
18468 /* end confdefs.h. */
18469 #include <sys/types.h>
18470 #ifdef HAVE_SYS_PARAM_H
18471 # include <sys/param.h>
18472 #endif
18473 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18474 # include <sys/mount.h>
18475 #else
18476 # ifdef STATFS_DEFINED_BY_SYS_VFS
18477 # include <sys/vfs.h>
18478 # else
18479 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18480 # include <sys/statfs.h>
18481 # endif
18482 # endif
18483 #endif
18486 main ()
18488 static struct statfs ac_aggr;
18489 if (sizeof ac_aggr.f_frsize)
18490 return 0;
18492 return 0;
18494 _ACEOF
18495 rm -f conftest.$ac_objext
18496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18497 (eval $ac_compile) 2>conftest.er1
18498 ac_status=$?
18499 grep -v '^ *+' conftest.er1 >conftest.err
18500 rm -f conftest.er1
18501 cat conftest.err >&5
18502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503 (exit $ac_status); } &&
18504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18506 (eval $ac_try) 2>&5
18507 ac_status=$?
18508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509 (exit $ac_status); }; } &&
18510 { ac_try='test -s conftest.$ac_objext'
18511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18512 (eval $ac_try) 2>&5
18513 ac_status=$?
18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); }; }; then
18516 ac_cv_member_struct_statfs_f_frsize=yes
18517 else
18518 echo "$as_me: failed program was:" >&5
18519 sed 's/^/| /' conftest.$ac_ext >&5
18521 ac_cv_member_struct_statfs_f_frsize=no
18523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18527 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
18528 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6
18529 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
18531 cat >>confdefs.h <<_ACEOF
18532 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
18533 _ACEOF
18537 echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
18538 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6
18539 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
18540 echo $ECHO_N "(cached) $ECHO_C" >&6
18541 else
18542 cat >conftest.$ac_ext <<_ACEOF
18543 /* confdefs.h. */
18544 _ACEOF
18545 cat confdefs.h >>conftest.$ac_ext
18546 cat >>conftest.$ac_ext <<_ACEOF
18547 /* end confdefs.h. */
18548 #include <sys/types.h>
18549 #ifdef HAVE_SYS_PARAM_H
18550 # include <sys/param.h>
18551 #endif
18552 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18553 # include <sys/mount.h>
18554 #else
18555 # ifdef STATFS_DEFINED_BY_SYS_VFS
18556 # include <sys/vfs.h>
18557 # else
18558 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18559 # include <sys/statfs.h>
18560 # endif
18561 # endif
18562 #endif
18565 main ()
18567 static struct statfs ac_aggr;
18568 if (ac_aggr.f_ffree)
18569 return 0;
18571 return 0;
18573 _ACEOF
18574 rm -f conftest.$ac_objext
18575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18576 (eval $ac_compile) 2>conftest.er1
18577 ac_status=$?
18578 grep -v '^ *+' conftest.er1 >conftest.err
18579 rm -f conftest.er1
18580 cat conftest.err >&5
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); } &&
18583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18585 (eval $ac_try) 2>&5
18586 ac_status=$?
18587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588 (exit $ac_status); }; } &&
18589 { ac_try='test -s conftest.$ac_objext'
18590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18591 (eval $ac_try) 2>&5
18592 ac_status=$?
18593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594 (exit $ac_status); }; }; then
18595 ac_cv_member_struct_statfs_f_ffree=yes
18596 else
18597 echo "$as_me: failed program was:" >&5
18598 sed 's/^/| /' conftest.$ac_ext >&5
18600 cat >conftest.$ac_ext <<_ACEOF
18601 /* confdefs.h. */
18602 _ACEOF
18603 cat confdefs.h >>conftest.$ac_ext
18604 cat >>conftest.$ac_ext <<_ACEOF
18605 /* end confdefs.h. */
18606 #include <sys/types.h>
18607 #ifdef HAVE_SYS_PARAM_H
18608 # include <sys/param.h>
18609 #endif
18610 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18611 # include <sys/mount.h>
18612 #else
18613 # ifdef STATFS_DEFINED_BY_SYS_VFS
18614 # include <sys/vfs.h>
18615 # else
18616 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18617 # include <sys/statfs.h>
18618 # endif
18619 # endif
18620 #endif
18623 main ()
18625 static struct statfs ac_aggr;
18626 if (sizeof ac_aggr.f_ffree)
18627 return 0;
18629 return 0;
18631 _ACEOF
18632 rm -f conftest.$ac_objext
18633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18634 (eval $ac_compile) 2>conftest.er1
18635 ac_status=$?
18636 grep -v '^ *+' conftest.er1 >conftest.err
18637 rm -f conftest.er1
18638 cat conftest.err >&5
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); } &&
18641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18643 (eval $ac_try) 2>&5
18644 ac_status=$?
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); }; } &&
18647 { ac_try='test -s conftest.$ac_objext'
18648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18649 (eval $ac_try) 2>&5
18650 ac_status=$?
18651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652 (exit $ac_status); }; }; then
18653 ac_cv_member_struct_statfs_f_ffree=yes
18654 else
18655 echo "$as_me: failed program was:" >&5
18656 sed 's/^/| /' conftest.$ac_ext >&5
18658 ac_cv_member_struct_statfs_f_ffree=no
18660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18664 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
18665 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6
18666 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
18668 cat >>confdefs.h <<_ACEOF
18669 #define HAVE_STRUCT_STATFS_F_FFREE 1
18670 _ACEOF
18674 echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
18675 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6
18676 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
18677 echo $ECHO_N "(cached) $ECHO_C" >&6
18678 else
18679 cat >conftest.$ac_ext <<_ACEOF
18680 /* confdefs.h. */
18681 _ACEOF
18682 cat confdefs.h >>conftest.$ac_ext
18683 cat >>conftest.$ac_ext <<_ACEOF
18684 /* end confdefs.h. */
18685 #include <sys/types.h>
18686 #ifdef HAVE_SYS_PARAM_H
18687 # include <sys/param.h>
18688 #endif
18689 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18690 # include <sys/mount.h>
18691 #else
18692 # ifdef STATFS_DEFINED_BY_SYS_VFS
18693 # include <sys/vfs.h>
18694 # else
18695 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18696 # include <sys/statfs.h>
18697 # endif
18698 # endif
18699 #endif
18702 main ()
18704 static struct statfs ac_aggr;
18705 if (ac_aggr.f_favail)
18706 return 0;
18708 return 0;
18710 _ACEOF
18711 rm -f conftest.$ac_objext
18712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18713 (eval $ac_compile) 2>conftest.er1
18714 ac_status=$?
18715 grep -v '^ *+' conftest.er1 >conftest.err
18716 rm -f conftest.er1
18717 cat conftest.err >&5
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); } &&
18720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18722 (eval $ac_try) 2>&5
18723 ac_status=$?
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); }; } &&
18726 { ac_try='test -s conftest.$ac_objext'
18727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18728 (eval $ac_try) 2>&5
18729 ac_status=$?
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); }; }; then
18732 ac_cv_member_struct_statfs_f_favail=yes
18733 else
18734 echo "$as_me: failed program was:" >&5
18735 sed 's/^/| /' conftest.$ac_ext >&5
18737 cat >conftest.$ac_ext <<_ACEOF
18738 /* confdefs.h. */
18739 _ACEOF
18740 cat confdefs.h >>conftest.$ac_ext
18741 cat >>conftest.$ac_ext <<_ACEOF
18742 /* end confdefs.h. */
18743 #include <sys/types.h>
18744 #ifdef HAVE_SYS_PARAM_H
18745 # include <sys/param.h>
18746 #endif
18747 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18748 # include <sys/mount.h>
18749 #else
18750 # ifdef STATFS_DEFINED_BY_SYS_VFS
18751 # include <sys/vfs.h>
18752 # else
18753 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18754 # include <sys/statfs.h>
18755 # endif
18756 # endif
18757 #endif
18760 main ()
18762 static struct statfs ac_aggr;
18763 if (sizeof ac_aggr.f_favail)
18764 return 0;
18766 return 0;
18768 _ACEOF
18769 rm -f conftest.$ac_objext
18770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18771 (eval $ac_compile) 2>conftest.er1
18772 ac_status=$?
18773 grep -v '^ *+' conftest.er1 >conftest.err
18774 rm -f conftest.er1
18775 cat conftest.err >&5
18776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777 (exit $ac_status); } &&
18778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18780 (eval $ac_try) 2>&5
18781 ac_status=$?
18782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783 (exit $ac_status); }; } &&
18784 { ac_try='test -s conftest.$ac_objext'
18785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18786 (eval $ac_try) 2>&5
18787 ac_status=$?
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); }; }; then
18790 ac_cv_member_struct_statfs_f_favail=yes
18791 else
18792 echo "$as_me: failed program was:" >&5
18793 sed 's/^/| /' conftest.$ac_ext >&5
18795 ac_cv_member_struct_statfs_f_favail=no
18797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18801 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
18802 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6
18803 if test $ac_cv_member_struct_statfs_f_favail = yes; then
18805 cat >>confdefs.h <<_ACEOF
18806 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
18807 _ACEOF
18811 echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
18812 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
18813 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
18814 echo $ECHO_N "(cached) $ECHO_C" >&6
18815 else
18816 cat >conftest.$ac_ext <<_ACEOF
18817 /* confdefs.h. */
18818 _ACEOF
18819 cat confdefs.h >>conftest.$ac_ext
18820 cat >>conftest.$ac_ext <<_ACEOF
18821 /* end confdefs.h. */
18822 #include <sys/types.h>
18823 #ifdef HAVE_SYS_PARAM_H
18824 # include <sys/param.h>
18825 #endif
18826 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18827 # include <sys/mount.h>
18828 #else
18829 # ifdef STATFS_DEFINED_BY_SYS_VFS
18830 # include <sys/vfs.h>
18831 # else
18832 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18833 # include <sys/statfs.h>
18834 # endif
18835 # endif
18836 #endif
18839 main ()
18841 static struct statfs ac_aggr;
18842 if (ac_aggr.f_namelen)
18843 return 0;
18845 return 0;
18847 _ACEOF
18848 rm -f conftest.$ac_objext
18849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18850 (eval $ac_compile) 2>conftest.er1
18851 ac_status=$?
18852 grep -v '^ *+' conftest.er1 >conftest.err
18853 rm -f conftest.er1
18854 cat conftest.err >&5
18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); } &&
18857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18859 (eval $ac_try) 2>&5
18860 ac_status=$?
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); }; } &&
18863 { ac_try='test -s conftest.$ac_objext'
18864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18865 (eval $ac_try) 2>&5
18866 ac_status=$?
18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); }; }; then
18869 ac_cv_member_struct_statfs_f_namelen=yes
18870 else
18871 echo "$as_me: failed program was:" >&5
18872 sed 's/^/| /' conftest.$ac_ext >&5
18874 cat >conftest.$ac_ext <<_ACEOF
18875 /* confdefs.h. */
18876 _ACEOF
18877 cat confdefs.h >>conftest.$ac_ext
18878 cat >>conftest.$ac_ext <<_ACEOF
18879 /* end confdefs.h. */
18880 #include <sys/types.h>
18881 #ifdef HAVE_SYS_PARAM_H
18882 # include <sys/param.h>
18883 #endif
18884 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18885 # include <sys/mount.h>
18886 #else
18887 # ifdef STATFS_DEFINED_BY_SYS_VFS
18888 # include <sys/vfs.h>
18889 # else
18890 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18891 # include <sys/statfs.h>
18892 # endif
18893 # endif
18894 #endif
18897 main ()
18899 static struct statfs ac_aggr;
18900 if (sizeof ac_aggr.f_namelen)
18901 return 0;
18903 return 0;
18905 _ACEOF
18906 rm -f conftest.$ac_objext
18907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18908 (eval $ac_compile) 2>conftest.er1
18909 ac_status=$?
18910 grep -v '^ *+' conftest.er1 >conftest.err
18911 rm -f conftest.er1
18912 cat conftest.err >&5
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); } &&
18915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18917 (eval $ac_try) 2>&5
18918 ac_status=$?
18919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920 (exit $ac_status); }; } &&
18921 { ac_try='test -s conftest.$ac_objext'
18922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18923 (eval $ac_try) 2>&5
18924 ac_status=$?
18925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926 (exit $ac_status); }; }; then
18927 ac_cv_member_struct_statfs_f_namelen=yes
18928 else
18929 echo "$as_me: failed program was:" >&5
18930 sed 's/^/| /' conftest.$ac_ext >&5
18932 ac_cv_member_struct_statfs_f_namelen=no
18934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18938 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
18939 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
18940 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
18942 cat >>confdefs.h <<_ACEOF
18943 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
18944 _ACEOF
18950 echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
18951 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6
18952 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
18953 echo $ECHO_N "(cached) $ECHO_C" >&6
18954 else
18955 cat >conftest.$ac_ext <<_ACEOF
18956 /* confdefs.h. */
18957 _ACEOF
18958 cat confdefs.h >>conftest.$ac_ext
18959 cat >>conftest.$ac_ext <<_ACEOF
18960 /* end confdefs.h. */
18961 #ifdef HAVE_SYS_STATVFS_H
18962 #include <sys/statvfs.h>
18963 #endif
18966 main ()
18968 static struct statvfs ac_aggr;
18969 if (ac_aggr.f_blocks)
18970 return 0;
18972 return 0;
18974 _ACEOF
18975 rm -f conftest.$ac_objext
18976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18977 (eval $ac_compile) 2>conftest.er1
18978 ac_status=$?
18979 grep -v '^ *+' conftest.er1 >conftest.err
18980 rm -f conftest.er1
18981 cat conftest.err >&5
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); } &&
18984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18986 (eval $ac_try) 2>&5
18987 ac_status=$?
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); }; } &&
18990 { ac_try='test -s conftest.$ac_objext'
18991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18992 (eval $ac_try) 2>&5
18993 ac_status=$?
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); }; }; then
18996 ac_cv_member_struct_statvfs_f_blocks=yes
18997 else
18998 echo "$as_me: failed program was:" >&5
18999 sed 's/^/| /' conftest.$ac_ext >&5
19001 cat >conftest.$ac_ext <<_ACEOF
19002 /* confdefs.h. */
19003 _ACEOF
19004 cat confdefs.h >>conftest.$ac_ext
19005 cat >>conftest.$ac_ext <<_ACEOF
19006 /* end confdefs.h. */
19007 #ifdef HAVE_SYS_STATVFS_H
19008 #include <sys/statvfs.h>
19009 #endif
19012 main ()
19014 static struct statvfs ac_aggr;
19015 if (sizeof ac_aggr.f_blocks)
19016 return 0;
19018 return 0;
19020 _ACEOF
19021 rm -f conftest.$ac_objext
19022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19023 (eval $ac_compile) 2>conftest.er1
19024 ac_status=$?
19025 grep -v '^ *+' conftest.er1 >conftest.err
19026 rm -f conftest.er1
19027 cat conftest.err >&5
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); } &&
19030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19032 (eval $ac_try) 2>&5
19033 ac_status=$?
19034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035 (exit $ac_status); }; } &&
19036 { ac_try='test -s conftest.$ac_objext'
19037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19038 (eval $ac_try) 2>&5
19039 ac_status=$?
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); }; }; then
19042 ac_cv_member_struct_statvfs_f_blocks=yes
19043 else
19044 echo "$as_me: failed program was:" >&5
19045 sed 's/^/| /' conftest.$ac_ext >&5
19047 ac_cv_member_struct_statvfs_f_blocks=no
19049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19053 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
19054 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6
19055 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
19057 cat >>confdefs.h <<_ACEOF
19058 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
19059 _ACEOF
19065 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
19066 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
19067 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
19068 echo $ECHO_N "(cached) $ECHO_C" >&6
19069 else
19070 cat >conftest.$ac_ext <<_ACEOF
19071 /* confdefs.h. */
19072 _ACEOF
19073 cat confdefs.h >>conftest.$ac_ext
19074 cat >>conftest.$ac_ext <<_ACEOF
19075 /* end confdefs.h. */
19076 #include <sys/types.h>
19077 #ifdef HAVE_SYS_SOCKET_H
19078 # include <sys/socket.h>
19079 #endif
19080 #ifdef HAVE_SYS_UN_H
19081 # include <sys/un.h>
19082 #endif
19085 main ()
19087 static struct msghdr ac_aggr;
19088 if (ac_aggr.msg_accrights)
19089 return 0;
19091 return 0;
19093 _ACEOF
19094 rm -f conftest.$ac_objext
19095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19096 (eval $ac_compile) 2>conftest.er1
19097 ac_status=$?
19098 grep -v '^ *+' conftest.er1 >conftest.err
19099 rm -f conftest.er1
19100 cat conftest.err >&5
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); } &&
19103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19105 (eval $ac_try) 2>&5
19106 ac_status=$?
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); }; } &&
19109 { ac_try='test -s conftest.$ac_objext'
19110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19111 (eval $ac_try) 2>&5
19112 ac_status=$?
19113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); }; }; then
19115 ac_cv_member_struct_msghdr_msg_accrights=yes
19116 else
19117 echo "$as_me: failed program was:" >&5
19118 sed 's/^/| /' conftest.$ac_ext >&5
19120 cat >conftest.$ac_ext <<_ACEOF
19121 /* confdefs.h. */
19122 _ACEOF
19123 cat confdefs.h >>conftest.$ac_ext
19124 cat >>conftest.$ac_ext <<_ACEOF
19125 /* end confdefs.h. */
19126 #include <sys/types.h>
19127 #ifdef HAVE_SYS_SOCKET_H
19128 # include <sys/socket.h>
19129 #endif
19130 #ifdef HAVE_SYS_UN_H
19131 # include <sys/un.h>
19132 #endif
19135 main ()
19137 static struct msghdr ac_aggr;
19138 if (sizeof ac_aggr.msg_accrights)
19139 return 0;
19141 return 0;
19143 _ACEOF
19144 rm -f conftest.$ac_objext
19145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19146 (eval $ac_compile) 2>conftest.er1
19147 ac_status=$?
19148 grep -v '^ *+' conftest.er1 >conftest.err
19149 rm -f conftest.er1
19150 cat conftest.err >&5
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); } &&
19153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19155 (eval $ac_try) 2>&5
19156 ac_status=$?
19157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); }; } &&
19159 { ac_try='test -s conftest.$ac_objext'
19160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19161 (eval $ac_try) 2>&5
19162 ac_status=$?
19163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164 (exit $ac_status); }; }; then
19165 ac_cv_member_struct_msghdr_msg_accrights=yes
19166 else
19167 echo "$as_me: failed program was:" >&5
19168 sed 's/^/| /' conftest.$ac_ext >&5
19170 ac_cv_member_struct_msghdr_msg_accrights=no
19172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19176 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
19177 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
19178 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
19180 cat >>confdefs.h <<_ACEOF
19181 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
19182 _ACEOF
19186 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
19187 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
19188 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
19189 echo $ECHO_N "(cached) $ECHO_C" >&6
19190 else
19191 cat >conftest.$ac_ext <<_ACEOF
19192 /* confdefs.h. */
19193 _ACEOF
19194 cat confdefs.h >>conftest.$ac_ext
19195 cat >>conftest.$ac_ext <<_ACEOF
19196 /* end confdefs.h. */
19197 #include <sys/types.h>
19198 #ifdef HAVE_SYS_SOCKET_H
19199 # include <sys/socket.h>
19200 #endif
19201 #ifdef HAVE_SYS_UN_H
19202 # include <sys/un.h>
19203 #endif
19206 main ()
19208 static struct sockaddr ac_aggr;
19209 if (ac_aggr.sa_len)
19210 return 0;
19212 return 0;
19214 _ACEOF
19215 rm -f conftest.$ac_objext
19216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19217 (eval $ac_compile) 2>conftest.er1
19218 ac_status=$?
19219 grep -v '^ *+' conftest.er1 >conftest.err
19220 rm -f conftest.er1
19221 cat conftest.err >&5
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); } &&
19224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19226 (eval $ac_try) 2>&5
19227 ac_status=$?
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); }; } &&
19230 { ac_try='test -s conftest.$ac_objext'
19231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19232 (eval $ac_try) 2>&5
19233 ac_status=$?
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); }; }; then
19236 ac_cv_member_struct_sockaddr_sa_len=yes
19237 else
19238 echo "$as_me: failed program was:" >&5
19239 sed 's/^/| /' conftest.$ac_ext >&5
19241 cat >conftest.$ac_ext <<_ACEOF
19242 /* confdefs.h. */
19243 _ACEOF
19244 cat confdefs.h >>conftest.$ac_ext
19245 cat >>conftest.$ac_ext <<_ACEOF
19246 /* end confdefs.h. */
19247 #include <sys/types.h>
19248 #ifdef HAVE_SYS_SOCKET_H
19249 # include <sys/socket.h>
19250 #endif
19251 #ifdef HAVE_SYS_UN_H
19252 # include <sys/un.h>
19253 #endif
19256 main ()
19258 static struct sockaddr ac_aggr;
19259 if (sizeof ac_aggr.sa_len)
19260 return 0;
19262 return 0;
19264 _ACEOF
19265 rm -f conftest.$ac_objext
19266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19267 (eval $ac_compile) 2>conftest.er1
19268 ac_status=$?
19269 grep -v '^ *+' conftest.er1 >conftest.err
19270 rm -f conftest.er1
19271 cat conftest.err >&5
19272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273 (exit $ac_status); } &&
19274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19276 (eval $ac_try) 2>&5
19277 ac_status=$?
19278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); }; } &&
19280 { ac_try='test -s conftest.$ac_objext'
19281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19282 (eval $ac_try) 2>&5
19283 ac_status=$?
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); }; }; then
19286 ac_cv_member_struct_sockaddr_sa_len=yes
19287 else
19288 echo "$as_me: failed program was:" >&5
19289 sed 's/^/| /' conftest.$ac_ext >&5
19291 ac_cv_member_struct_sockaddr_sa_len=no
19293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19297 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
19298 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
19299 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
19301 cat >>confdefs.h <<_ACEOF
19302 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
19303 _ACEOF
19307 echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
19308 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
19309 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
19310 echo $ECHO_N "(cached) $ECHO_C" >&6
19311 else
19312 cat >conftest.$ac_ext <<_ACEOF
19313 /* confdefs.h. */
19314 _ACEOF
19315 cat confdefs.h >>conftest.$ac_ext
19316 cat >>conftest.$ac_ext <<_ACEOF
19317 /* end confdefs.h. */
19318 #include <sys/types.h>
19319 #ifdef HAVE_SYS_SOCKET_H
19320 # include <sys/socket.h>
19321 #endif
19322 #ifdef HAVE_SYS_UN_H
19323 # include <sys/un.h>
19324 #endif
19327 main ()
19329 static struct sockaddr_un ac_aggr;
19330 if (ac_aggr.sun_len)
19331 return 0;
19333 return 0;
19335 _ACEOF
19336 rm -f conftest.$ac_objext
19337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19338 (eval $ac_compile) 2>conftest.er1
19339 ac_status=$?
19340 grep -v '^ *+' conftest.er1 >conftest.err
19341 rm -f conftest.er1
19342 cat conftest.err >&5
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); } &&
19345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19347 (eval $ac_try) 2>&5
19348 ac_status=$?
19349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350 (exit $ac_status); }; } &&
19351 { ac_try='test -s conftest.$ac_objext'
19352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19353 (eval $ac_try) 2>&5
19354 ac_status=$?
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); }; }; then
19357 ac_cv_member_struct_sockaddr_un_sun_len=yes
19358 else
19359 echo "$as_me: failed program was:" >&5
19360 sed 's/^/| /' conftest.$ac_ext >&5
19362 cat >conftest.$ac_ext <<_ACEOF
19363 /* confdefs.h. */
19364 _ACEOF
19365 cat confdefs.h >>conftest.$ac_ext
19366 cat >>conftest.$ac_ext <<_ACEOF
19367 /* end confdefs.h. */
19368 #include <sys/types.h>
19369 #ifdef HAVE_SYS_SOCKET_H
19370 # include <sys/socket.h>
19371 #endif
19372 #ifdef HAVE_SYS_UN_H
19373 # include <sys/un.h>
19374 #endif
19377 main ()
19379 static struct sockaddr_un ac_aggr;
19380 if (sizeof ac_aggr.sun_len)
19381 return 0;
19383 return 0;
19385 _ACEOF
19386 rm -f conftest.$ac_objext
19387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19388 (eval $ac_compile) 2>conftest.er1
19389 ac_status=$?
19390 grep -v '^ *+' conftest.er1 >conftest.err
19391 rm -f conftest.er1
19392 cat conftest.err >&5
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); } &&
19395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19397 (eval $ac_try) 2>&5
19398 ac_status=$?
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); }; } &&
19401 { ac_try='test -s conftest.$ac_objext'
19402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19403 (eval $ac_try) 2>&5
19404 ac_status=$?
19405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406 (exit $ac_status); }; }; then
19407 ac_cv_member_struct_sockaddr_un_sun_len=yes
19408 else
19409 echo "$as_me: failed program was:" >&5
19410 sed 's/^/| /' conftest.$ac_ext >&5
19412 ac_cv_member_struct_sockaddr_un_sun_len=no
19414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19418 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
19419 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
19420 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
19422 cat >>confdefs.h <<_ACEOF
19423 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
19424 _ACEOF
19430 echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
19431 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
19432 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
19433 echo $ECHO_N "(cached) $ECHO_C" >&6
19434 else
19435 cat >conftest.$ac_ext <<_ACEOF
19436 /* confdefs.h. */
19437 _ACEOF
19438 cat confdefs.h >>conftest.$ac_ext
19439 cat >>conftest.$ac_ext <<_ACEOF
19440 /* end confdefs.h. */
19441 #include <signal.h>
19444 main ()
19446 static siginfo_t ac_aggr;
19447 if (ac_aggr.si_fd)
19448 return 0;
19450 return 0;
19452 _ACEOF
19453 rm -f conftest.$ac_objext
19454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19455 (eval $ac_compile) 2>conftest.er1
19456 ac_status=$?
19457 grep -v '^ *+' conftest.er1 >conftest.err
19458 rm -f conftest.er1
19459 cat conftest.err >&5
19460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461 (exit $ac_status); } &&
19462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19464 (eval $ac_try) 2>&5
19465 ac_status=$?
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); }; } &&
19468 { ac_try='test -s conftest.$ac_objext'
19469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19470 (eval $ac_try) 2>&5
19471 ac_status=$?
19472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473 (exit $ac_status); }; }; then
19474 ac_cv_member_siginfo_t_si_fd=yes
19475 else
19476 echo "$as_me: failed program was:" >&5
19477 sed 's/^/| /' conftest.$ac_ext >&5
19479 cat >conftest.$ac_ext <<_ACEOF
19480 /* confdefs.h. */
19481 _ACEOF
19482 cat confdefs.h >>conftest.$ac_ext
19483 cat >>conftest.$ac_ext <<_ACEOF
19484 /* end confdefs.h. */
19485 #include <signal.h>
19488 main ()
19490 static siginfo_t ac_aggr;
19491 if (sizeof ac_aggr.si_fd)
19492 return 0;
19494 return 0;
19496 _ACEOF
19497 rm -f conftest.$ac_objext
19498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19499 (eval $ac_compile) 2>conftest.er1
19500 ac_status=$?
19501 grep -v '^ *+' conftest.er1 >conftest.err
19502 rm -f conftest.er1
19503 cat conftest.err >&5
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); } &&
19506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19508 (eval $ac_try) 2>&5
19509 ac_status=$?
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); }; } &&
19512 { ac_try='test -s conftest.$ac_objext'
19513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19514 (eval $ac_try) 2>&5
19515 ac_status=$?
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); }; }; then
19518 ac_cv_member_siginfo_t_si_fd=yes
19519 else
19520 echo "$as_me: failed program was:" >&5
19521 sed 's/^/| /' conftest.$ac_ext >&5
19523 ac_cv_member_siginfo_t_si_fd=no
19525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19529 echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
19530 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
19531 if test $ac_cv_member_siginfo_t_si_fd = yes; then
19533 cat >>confdefs.h <<_ACEOF
19534 #define HAVE_SIGINFO_T_SI_FD 1
19535 _ACEOF
19541 echo "$as_me:$LINENO: checking for struct option.name" >&5
19542 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
19543 if test "${ac_cv_member_struct_option_name+set}" = set; then
19544 echo $ECHO_N "(cached) $ECHO_C" >&6
19545 else
19546 cat >conftest.$ac_ext <<_ACEOF
19547 /* confdefs.h. */
19548 _ACEOF
19549 cat confdefs.h >>conftest.$ac_ext
19550 cat >>conftest.$ac_ext <<_ACEOF
19551 /* end confdefs.h. */
19552 #ifdef HAVE_GETOPT_H
19553 #include <getopt.h>
19554 #endif
19557 main ()
19559 static struct option ac_aggr;
19560 if (ac_aggr.name)
19561 return 0;
19563 return 0;
19565 _ACEOF
19566 rm -f conftest.$ac_objext
19567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19568 (eval $ac_compile) 2>conftest.er1
19569 ac_status=$?
19570 grep -v '^ *+' conftest.er1 >conftest.err
19571 rm -f conftest.er1
19572 cat conftest.err >&5
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); } &&
19575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19577 (eval $ac_try) 2>&5
19578 ac_status=$?
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); }; } &&
19581 { ac_try='test -s conftest.$ac_objext'
19582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19583 (eval $ac_try) 2>&5
19584 ac_status=$?
19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); }; }; then
19587 ac_cv_member_struct_option_name=yes
19588 else
19589 echo "$as_me: failed program was:" >&5
19590 sed 's/^/| /' conftest.$ac_ext >&5
19592 cat >conftest.$ac_ext <<_ACEOF
19593 /* confdefs.h. */
19594 _ACEOF
19595 cat confdefs.h >>conftest.$ac_ext
19596 cat >>conftest.$ac_ext <<_ACEOF
19597 /* end confdefs.h. */
19598 #ifdef HAVE_GETOPT_H
19599 #include <getopt.h>
19600 #endif
19603 main ()
19605 static struct option ac_aggr;
19606 if (sizeof ac_aggr.name)
19607 return 0;
19609 return 0;
19611 _ACEOF
19612 rm -f conftest.$ac_objext
19613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19614 (eval $ac_compile) 2>conftest.er1
19615 ac_status=$?
19616 grep -v '^ *+' conftest.er1 >conftest.err
19617 rm -f conftest.er1
19618 cat conftest.err >&5
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); } &&
19621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19623 (eval $ac_try) 2>&5
19624 ac_status=$?
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); }; } &&
19627 { ac_try='test -s conftest.$ac_objext'
19628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19629 (eval $ac_try) 2>&5
19630 ac_status=$?
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); }; }; then
19633 ac_cv_member_struct_option_name=yes
19634 else
19635 echo "$as_me: failed program was:" >&5
19636 sed 's/^/| /' conftest.$ac_ext >&5
19638 ac_cv_member_struct_option_name=no
19640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19644 echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
19645 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
19646 if test $ac_cv_member_struct_option_name = yes; then
19648 cat >>confdefs.h <<_ACEOF
19649 #define HAVE_STRUCT_OPTION_NAME 1
19650 _ACEOF
19656 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19657 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
19658 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19659 echo $ECHO_N "(cached) $ECHO_C" >&6
19660 else
19661 cat >conftest.$ac_ext <<_ACEOF
19662 /* confdefs.h. */
19663 _ACEOF
19664 cat confdefs.h >>conftest.$ac_ext
19665 cat >>conftest.$ac_ext <<_ACEOF
19666 /* end confdefs.h. */
19667 $ac_includes_default
19669 main ()
19671 static struct stat ac_aggr;
19672 if (ac_aggr.st_blocks)
19673 return 0;
19675 return 0;
19677 _ACEOF
19678 rm -f conftest.$ac_objext
19679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19680 (eval $ac_compile) 2>conftest.er1
19681 ac_status=$?
19682 grep -v '^ *+' conftest.er1 >conftest.err
19683 rm -f conftest.er1
19684 cat conftest.err >&5
19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686 (exit $ac_status); } &&
19687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19689 (eval $ac_try) 2>&5
19690 ac_status=$?
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); }; } &&
19693 { ac_try='test -s conftest.$ac_objext'
19694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19695 (eval $ac_try) 2>&5
19696 ac_status=$?
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); }; }; then
19699 ac_cv_member_struct_stat_st_blocks=yes
19700 else
19701 echo "$as_me: failed program was:" >&5
19702 sed 's/^/| /' conftest.$ac_ext >&5
19704 cat >conftest.$ac_ext <<_ACEOF
19705 /* confdefs.h. */
19706 _ACEOF
19707 cat confdefs.h >>conftest.$ac_ext
19708 cat >>conftest.$ac_ext <<_ACEOF
19709 /* end confdefs.h. */
19710 $ac_includes_default
19712 main ()
19714 static struct stat ac_aggr;
19715 if (sizeof ac_aggr.st_blocks)
19716 return 0;
19718 return 0;
19720 _ACEOF
19721 rm -f conftest.$ac_objext
19722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19723 (eval $ac_compile) 2>conftest.er1
19724 ac_status=$?
19725 grep -v '^ *+' conftest.er1 >conftest.err
19726 rm -f conftest.er1
19727 cat conftest.err >&5
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); } &&
19730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19732 (eval $ac_try) 2>&5
19733 ac_status=$?
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); }; } &&
19736 { ac_try='test -s conftest.$ac_objext'
19737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19738 (eval $ac_try) 2>&5
19739 ac_status=$?
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); }; }; then
19742 ac_cv_member_struct_stat_st_blocks=yes
19743 else
19744 echo "$as_me: failed program was:" >&5
19745 sed 's/^/| /' conftest.$ac_ext >&5
19747 ac_cv_member_struct_stat_st_blocks=no
19749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19753 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19754 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
19755 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19757 cat >>confdefs.h <<_ACEOF
19758 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19759 _ACEOF
19766 case $host_cpu in
19767 *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
19768 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
19769 if test "${ac_cv_cpp_def___i386__+set}" = set; then
19770 echo $ECHO_N "(cached) $ECHO_C" >&6
19771 else
19772 cat >conftest.$ac_ext <<_ACEOF
19773 /* confdefs.h. */
19774 _ACEOF
19775 cat confdefs.h >>conftest.$ac_ext
19776 cat >>conftest.$ac_ext <<_ACEOF
19777 /* end confdefs.h. */
19778 #ifndef __i386__
19780 #endif
19781 _ACEOF
19782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19783 $EGREP "yes" >/dev/null 2>&1; then
19784 ac_cv_cpp_def___i386__=yes
19785 else
19786 ac_cv_cpp_def___i386__=no
19788 rm -f conftest*
19791 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
19792 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
19793 if test $ac_cv_cpp_def___i386__ = yes; then
19794 CFLAGS="$CFLAGS -D__i386__"
19795 LINTFLAGS="$LINTFLAGS -D__i386__"
19798 *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
19799 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
19800 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
19801 echo $ECHO_N "(cached) $ECHO_C" >&6
19802 else
19803 cat >conftest.$ac_ext <<_ACEOF
19804 /* confdefs.h. */
19805 _ACEOF
19806 cat confdefs.h >>conftest.$ac_ext
19807 cat >>conftest.$ac_ext <<_ACEOF
19808 /* end confdefs.h. */
19809 #ifndef __ALPHA__
19811 #endif
19812 _ACEOF
19813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19814 $EGREP "yes" >/dev/null 2>&1; then
19815 ac_cv_cpp_def___ALPHA__=yes
19816 else
19817 ac_cv_cpp_def___ALPHA__=no
19819 rm -f conftest*
19822 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
19823 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
19824 if test $ac_cv_cpp_def___ALPHA__ = yes; then
19825 CFLAGS="$CFLAGS -D__ALPHA__"
19826 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
19829 *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
19830 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
19831 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
19832 echo $ECHO_N "(cached) $ECHO_C" >&6
19833 else
19834 cat >conftest.$ac_ext <<_ACEOF
19835 /* confdefs.h. */
19836 _ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h. */
19840 #ifndef __sparc__
19842 #endif
19843 _ACEOF
19844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19845 $EGREP "yes" >/dev/null 2>&1; then
19846 ac_cv_cpp_def___sparc__=yes
19847 else
19848 ac_cv_cpp_def___sparc__=no
19850 rm -f conftest*
19853 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
19854 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
19855 if test $ac_cv_cpp_def___sparc__ = yes; then
19856 CFLAGS="$CFLAGS -D__sparc__"
19857 LINTFLAGS="$LINTFLAGS -D__sparc__"
19860 *powerpc*) echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
19861 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
19862 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
19863 echo $ECHO_N "(cached) $ECHO_C" >&6
19864 else
19865 cat >conftest.$ac_ext <<_ACEOF
19866 /* confdefs.h. */
19867 _ACEOF
19868 cat confdefs.h >>conftest.$ac_ext
19869 cat >>conftest.$ac_ext <<_ACEOF
19870 /* end confdefs.h. */
19871 #ifndef __powerpc__
19873 #endif
19874 _ACEOF
19875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19876 $EGREP "yes" >/dev/null 2>&1; then
19877 ac_cv_cpp_def___powerpc__=yes
19878 else
19879 ac_cv_cpp_def___powerpc__=no
19881 rm -f conftest*
19884 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
19885 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
19886 if test $ac_cv_cpp_def___powerpc__ = yes; then
19887 CFLAGS="$CFLAGS -D__powerpc__"
19888 LINTFLAGS="$LINTFLAGS -D__powerpc__"
19891 esac
19893 case $host_vendor in
19894 *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
19895 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
19896 if test "${ac_cv_cpp_def___sun__+set}" = set; then
19897 echo $ECHO_N "(cached) $ECHO_C" >&6
19898 else
19899 cat >conftest.$ac_ext <<_ACEOF
19900 /* confdefs.h. */
19901 _ACEOF
19902 cat confdefs.h >>conftest.$ac_ext
19903 cat >>conftest.$ac_ext <<_ACEOF
19904 /* end confdefs.h. */
19905 #ifndef __sun__
19907 #endif
19908 _ACEOF
19909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19910 $EGREP "yes" >/dev/null 2>&1; then
19911 ac_cv_cpp_def___sun__=yes
19912 else
19913 ac_cv_cpp_def___sun__=no
19915 rm -f conftest*
19918 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
19919 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
19920 if test $ac_cv_cpp_def___sun__ = yes; then
19921 CFLAGS="$CFLAGS -D__sun__"
19922 LINTFLAGS="$LINTFLAGS -D__sun__"
19925 esac
19931 ac_config_commands="$ac_config_commands controls"
19933 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
19935 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
19937 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
19939 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
19941 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
19943 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
19945 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
19947 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
19949 ac_config_commands="$ac_config_commands dlls/kernel/messages"
19951 ac_config_commands="$ac_config_commands dlls/user/dde"
19953 ac_config_commands="$ac_config_commands dlls/user/resources"
19955 ac_config_commands="$ac_config_commands dlls/wineps/data"
19957 ac_config_commands="$ac_config_commands files"
19959 ac_config_commands="$ac_config_commands include/wine"
19961 ac_config_commands="$ac_config_commands misc"
19963 ac_config_commands="$ac_config_commands objects"
19965 ac_config_commands="$ac_config_commands programs/regedit/tests"
19967 ac_config_commands="$ac_config_commands windows"
19970 MAKE_RULES=Make.rules
19973 MAKE_DLL_RULES=dlls/Makedll.rules
19976 MAKE_TEST_RULES=dlls/Maketest.rules
19979 MAKE_LIB_RULES=libs/Makelib.rules
19982 MAKE_PROG_RULES=programs/Makeprog.rules
19985 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules libs/Makelib.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/amstream/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/capi2032/Makefile dlls/cards/Makefile dlls/cfgmgr32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3d9/Makefile dlls/d3dim/Makefile dlls/d3dx8/Makefile dlls/dbghelp/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/dswave/Makefile dlls/dxerr8/Makefile dlls/dxerr9/Makefile dlls/dxguid/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/iccvid/Makefile dlls/icmp/Makefile dlls/ifsmgr.vxd/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msdmo/Makefile dlls/mshtml/Makefile dlls/msi/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrt40/Makefile dlls/msvcrtd/Makefile dlls/msvidc32/Makefile dlls/msvideo/Makefile dlls/mswsock/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/newdev/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/rsabase/Makefile dlls/secur32/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/uuid/Makefile dlls/uxtheme/Makefile dlls/vdhcp.vxd/Makefile dlls/version/Makefile dlls/version/tests/Makefile dlls/vmm.vxd/Makefile dlls/vnbt.vxd/Makefile dlls/vnetbios.vxd/Makefile dlls/vtdapi.vxd/Makefile dlls/vwin32.vxd/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/wined3d/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/tests/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winejack/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/winspool/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/unicode/Makefile libs/wine/Makefile libs/wpp/Makefile loader/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/notepad/Makefile programs/progman/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/taskmgr/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winebrowser/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile"
19988 cat >confcache <<\_ACEOF
19989 # This file is a shell script that caches the results of configure
19990 # tests run on this system so they can be shared between configure
19991 # scripts and configure runs, see configure's option --config-cache.
19992 # It is not useful on other systems. If it contains results you don't
19993 # want to keep, you may remove or edit it.
19995 # config.status only pays attention to the cache file if you give it
19996 # the --recheck option to rerun configure.
19998 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19999 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20000 # following values.
20002 _ACEOF
20004 # The following way of writing the cache mishandles newlines in values,
20005 # but we know of no workaround that is simple, portable, and efficient.
20006 # So, don't put newlines in cache variables' values.
20007 # Ultrix sh set writes to stderr and can't be redirected directly,
20008 # and sets the high bit in the cache file unless we assign to the vars.
20010 (set) 2>&1 |
20011 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20012 *ac_space=\ *)
20013 # `set' does not quote correctly, so add quotes (double-quote
20014 # substitution turns \\\\ into \\, and sed turns \\ into \).
20015 sed -n \
20016 "s/'/'\\\\''/g;
20017 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20020 # `set' quotes correctly as required by POSIX, so do not add quotes.
20021 sed -n \
20022 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20024 esac;
20026 sed '
20027 t clear
20028 : clear
20029 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20030 t end
20031 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20032 : end' >>confcache
20033 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20034 if test -w $cache_file; then
20035 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20036 cat confcache >$cache_file
20037 else
20038 echo "not updating unwritable cache $cache_file"
20041 rm -f confcache
20043 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20044 # Let make expand exec_prefix.
20045 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20047 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20048 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20049 # trailing colons and then remove the whole line if VPATH becomes empty
20050 # (actually we leave an empty line to preserve line numbers).
20051 if test "x$srcdir" = x.; then
20052 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20053 s/:*\$(srcdir):*/:/;
20054 s/:*\${srcdir}:*/:/;
20055 s/:*@srcdir@:*/:/;
20056 s/^\([^=]*=[ ]*\):*/\1/;
20057 s/:*$//;
20058 s/^[^=]*=[ ]*$//;
20062 DEFS=-DHAVE_CONFIG_H
20064 ac_libobjs=
20065 ac_ltlibobjs=
20066 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20067 # 1. Remove the extension, and $U if already installed.
20068 ac_i=`echo "$ac_i" |
20069 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20070 # 2. Add them.
20071 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20072 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20073 done
20074 LIBOBJS=$ac_libobjs
20076 LTLIBOBJS=$ac_ltlibobjs
20080 : ${CONFIG_STATUS=./config.status}
20081 ac_clean_files_save=$ac_clean_files
20082 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20083 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20084 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20085 cat >$CONFIG_STATUS <<_ACEOF
20086 #! $SHELL
20087 # Generated by $as_me.
20088 # Run this file to recreate the current configuration.
20089 # Compiler output produced by configure, useful for debugging
20090 # configure, is in config.log if it exists.
20092 debug=false
20093 ac_cs_recheck=false
20094 ac_cs_silent=false
20095 SHELL=\${CONFIG_SHELL-$SHELL}
20096 _ACEOF
20098 cat >>$CONFIG_STATUS <<\_ACEOF
20099 ## --------------------- ##
20100 ## M4sh Initialization. ##
20101 ## --------------------- ##
20103 # Be Bourne compatible
20104 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20105 emulate sh
20106 NULLCMD=:
20107 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20108 # is contrary to our usage. Disable this feature.
20109 alias -g '${1+"$@"}'='"$@"'
20110 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20111 set -o posix
20113 DUALCASE=1; export DUALCASE # for MKS sh
20115 # Support unset when possible.
20116 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20117 as_unset=unset
20118 else
20119 as_unset=false
20123 # Work around bugs in pre-3.0 UWIN ksh.
20124 $as_unset ENV MAIL MAILPATH
20125 PS1='$ '
20126 PS2='> '
20127 PS4='+ '
20129 # NLS nuisances.
20130 for as_var in \
20131 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20132 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20133 LC_TELEPHONE LC_TIME
20135 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20136 eval $as_var=C; export $as_var
20137 else
20138 $as_unset $as_var
20140 done
20142 # Required to use basename.
20143 if expr a : '\(a\)' >/dev/null 2>&1; then
20144 as_expr=expr
20145 else
20146 as_expr=false
20149 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20150 as_basename=basename
20151 else
20152 as_basename=false
20156 # Name of the executable.
20157 as_me=`$as_basename "$0" ||
20158 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20159 X"$0" : 'X\(//\)$' \| \
20160 X"$0" : 'X\(/\)$' \| \
20161 . : '\(.\)' 2>/dev/null ||
20162 echo X/"$0" |
20163 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20164 /^X\/\(\/\/\)$/{ s//\1/; q; }
20165 /^X\/\(\/\).*/{ s//\1/; q; }
20166 s/.*/./; q'`
20169 # PATH needs CR, and LINENO needs CR and PATH.
20170 # Avoid depending upon Character Ranges.
20171 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20172 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20173 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20174 as_cr_digits='0123456789'
20175 as_cr_alnum=$as_cr_Letters$as_cr_digits
20177 # The user is always right.
20178 if test "${PATH_SEPARATOR+set}" != set; then
20179 echo "#! /bin/sh" >conf$$.sh
20180 echo "exit 0" >>conf$$.sh
20181 chmod +x conf$$.sh
20182 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20183 PATH_SEPARATOR=';'
20184 else
20185 PATH_SEPARATOR=:
20187 rm -f conf$$.sh
20191 as_lineno_1=$LINENO
20192 as_lineno_2=$LINENO
20193 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20194 test "x$as_lineno_1" != "x$as_lineno_2" &&
20195 test "x$as_lineno_3" = "x$as_lineno_2" || {
20196 # Find who we are. Look in the path if we contain no path at all
20197 # relative or not.
20198 case $0 in
20199 *[\\/]* ) as_myself=$0 ;;
20200 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20201 for as_dir in $PATH
20203 IFS=$as_save_IFS
20204 test -z "$as_dir" && as_dir=.
20205 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20206 done
20209 esac
20210 # We did not find ourselves, most probably we were run as `sh COMMAND'
20211 # in which case we are not to be found in the path.
20212 if test "x$as_myself" = x; then
20213 as_myself=$0
20215 if test ! -f "$as_myself"; then
20216 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20217 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20218 { (exit 1); exit 1; }; }
20220 case $CONFIG_SHELL in
20222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20225 IFS=$as_save_IFS
20226 test -z "$as_dir" && as_dir=.
20227 for as_base in sh bash ksh sh5; do
20228 case $as_dir in
20230 if ("$as_dir/$as_base" -c '
20231 as_lineno_1=$LINENO
20232 as_lineno_2=$LINENO
20233 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20234 test "x$as_lineno_1" != "x$as_lineno_2" &&
20235 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20236 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20237 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20238 CONFIG_SHELL=$as_dir/$as_base
20239 export CONFIG_SHELL
20240 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20241 fi;;
20242 esac
20243 done
20244 done
20246 esac
20248 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20249 # uniformly replaced by the line number. The first 'sed' inserts a
20250 # line-number line before each line; the second 'sed' does the real
20251 # work. The second script uses 'N' to pair each line-number line
20252 # with the numbered line, and appends trailing '-' during
20253 # substitution so that $LINENO is not a special case at line end.
20254 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20255 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20256 sed '=' <$as_myself |
20257 sed '
20259 s,$,-,
20260 : loop
20261 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20262 t loop
20263 s,-$,,
20264 s,^['$as_cr_digits']*\n,,
20265 ' >$as_me.lineno &&
20266 chmod +x $as_me.lineno ||
20267 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20268 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20269 { (exit 1); exit 1; }; }
20271 # Don't try to exec as it changes $[0], causing all sort of problems
20272 # (the dirname of $[0] is not the place where we might find the
20273 # original and so on. Autoconf is especially sensible to this).
20274 . ./$as_me.lineno
20275 # Exit status is that of the last command.
20276 exit
20280 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20281 *c*,-n*) ECHO_N= ECHO_C='
20282 ' ECHO_T=' ' ;;
20283 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20284 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20285 esac
20287 if expr a : '\(a\)' >/dev/null 2>&1; then
20288 as_expr=expr
20289 else
20290 as_expr=false
20293 rm -f conf$$ conf$$.exe conf$$.file
20294 echo >conf$$.file
20295 if ln -s conf$$.file conf$$ 2>/dev/null; then
20296 # We could just check for DJGPP; but this test a) works b) is more generic
20297 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20298 if test -f conf$$.exe; then
20299 # Don't use ln at all; we don't have any links
20300 as_ln_s='cp -p'
20301 else
20302 as_ln_s='ln -s'
20304 elif ln conf$$.file conf$$ 2>/dev/null; then
20305 as_ln_s=ln
20306 else
20307 as_ln_s='cp -p'
20309 rm -f conf$$ conf$$.exe conf$$.file
20311 if mkdir -p . 2>/dev/null; then
20312 as_mkdir_p=:
20313 else
20314 test -d ./-p && rmdir ./-p
20315 as_mkdir_p=false
20318 as_executable_p="test -f"
20320 # Sed expression to map a string onto a valid CPP name.
20321 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20323 # Sed expression to map a string onto a valid variable name.
20324 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20327 # IFS
20328 # We need space, tab and new line, in precisely that order.
20329 as_nl='
20331 IFS=" $as_nl"
20333 # CDPATH.
20334 $as_unset CDPATH
20336 exec 6>&1
20338 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20339 # report actual input values of CONFIG_FILES etc. instead of their
20340 # values after options handling. Logging --version etc. is OK.
20341 exec 5>>config.log
20343 echo
20344 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20345 ## Running $as_me. ##
20346 _ASBOX
20347 } >&5
20348 cat >&5 <<_CSEOF
20350 This file was extended by Wine $as_me 20040309, which was
20351 generated by GNU Autoconf 2.59. Invocation command line was
20353 CONFIG_FILES = $CONFIG_FILES
20354 CONFIG_HEADERS = $CONFIG_HEADERS
20355 CONFIG_LINKS = $CONFIG_LINKS
20356 CONFIG_COMMANDS = $CONFIG_COMMANDS
20357 $ $0 $@
20359 _CSEOF
20360 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20361 echo >&5
20362 _ACEOF
20364 # Files that config.status was made for.
20365 if test -n "$ac_config_files"; then
20366 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20369 if test -n "$ac_config_headers"; then
20370 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20373 if test -n "$ac_config_links"; then
20374 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20377 if test -n "$ac_config_commands"; then
20378 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20381 cat >>$CONFIG_STATUS <<\_ACEOF
20383 ac_cs_usage="\
20384 \`$as_me' instantiates files from templates according to the
20385 current configuration.
20387 Usage: $0 [OPTIONS] [FILE]...
20389 -h, --help print this help, then exit
20390 -V, --version print version number, then exit
20391 -q, --quiet do not print progress messages
20392 -d, --debug don't remove temporary files
20393 --recheck update $as_me by reconfiguring in the same conditions
20394 --file=FILE[:TEMPLATE]
20395 instantiate the configuration file FILE
20396 --header=FILE[:TEMPLATE]
20397 instantiate the configuration header FILE
20399 Configuration files:
20400 $config_files
20402 Configuration headers:
20403 $config_headers
20405 Configuration commands:
20406 $config_commands
20408 Report bugs to <bug-autoconf@gnu.org>."
20409 _ACEOF
20411 cat >>$CONFIG_STATUS <<_ACEOF
20412 ac_cs_version="\\
20413 Wine config.status 20040309
20414 configured by $0, generated by GNU Autoconf 2.59,
20415 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20417 Copyright (C) 2003 Free Software Foundation, Inc.
20418 This config.status script is free software; the Free Software Foundation
20419 gives unlimited permission to copy, distribute and modify it."
20420 srcdir=$srcdir
20421 INSTALL="$INSTALL"
20422 _ACEOF
20424 cat >>$CONFIG_STATUS <<\_ACEOF
20425 # If no file are specified by the user, then we need to provide default
20426 # value. By we need to know if files were specified by the user.
20427 ac_need_defaults=:
20428 while test $# != 0
20430 case $1 in
20431 --*=*)
20432 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20433 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20434 ac_shift=:
20437 ac_option=$1
20438 ac_optarg=$2
20439 ac_shift=shift
20441 *) # This is not an option, so the user has probably given explicit
20442 # arguments.
20443 ac_option=$1
20444 ac_need_defaults=false;;
20445 esac
20447 case $ac_option in
20448 # Handling of the options.
20449 _ACEOF
20450 cat >>$CONFIG_STATUS <<\_ACEOF
20451 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20452 ac_cs_recheck=: ;;
20453 --version | --vers* | -V )
20454 echo "$ac_cs_version"; exit 0 ;;
20455 --he | --h)
20456 # Conflict between --help and --header
20457 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20458 Try \`$0 --help' for more information." >&5
20459 echo "$as_me: error: ambiguous option: $1
20460 Try \`$0 --help' for more information." >&2;}
20461 { (exit 1); exit 1; }; };;
20462 --help | --hel | -h )
20463 echo "$ac_cs_usage"; exit 0 ;;
20464 --debug | --d* | -d )
20465 debug=: ;;
20466 --file | --fil | --fi | --f )
20467 $ac_shift
20468 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20469 ac_need_defaults=false;;
20470 --header | --heade | --head | --hea )
20471 $ac_shift
20472 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20473 ac_need_defaults=false;;
20474 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20475 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20476 ac_cs_silent=: ;;
20478 # This is an error.
20479 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20480 Try \`$0 --help' for more information." >&5
20481 echo "$as_me: error: unrecognized option: $1
20482 Try \`$0 --help' for more information." >&2;}
20483 { (exit 1); exit 1; }; } ;;
20485 *) ac_config_targets="$ac_config_targets $1" ;;
20487 esac
20488 shift
20489 done
20491 ac_configure_extra_args=
20493 if $ac_cs_silent; then
20494 exec 6>/dev/null
20495 ac_configure_extra_args="$ac_configure_extra_args --silent"
20498 _ACEOF
20499 cat >>$CONFIG_STATUS <<_ACEOF
20500 if \$ac_cs_recheck; then
20501 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20502 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20505 _ACEOF
20511 cat >>$CONFIG_STATUS <<\_ACEOF
20512 for ac_config_target in $ac_config_targets
20514 case "$ac_config_target" in
20515 # Handling of arguments.
20516 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
20517 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
20518 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
20519 "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
20520 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
20521 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20522 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
20523 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
20524 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
20525 "dlls/amstream/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
20526 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
20527 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
20528 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
20529 "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
20530 "dlls/cards/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
20531 "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
20532 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
20533 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
20534 "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
20535 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
20536 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
20537 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
20538 "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
20539 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
20540 "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
20541 "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
20542 "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
20543 "dlls/dbghelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
20544 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
20545 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
20546 "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
20547 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
20548 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
20549 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
20550 "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
20551 "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
20552 "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
20553 "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
20554 "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
20555 "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
20556 "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
20557 "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
20558 "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
20559 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
20560 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
20561 "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
20562 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
20563 "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
20564 "dlls/dswave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
20565 "dlls/dxerr8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
20566 "dlls/dxerr9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
20567 "dlls/dxguid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
20568 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
20569 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
20570 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
20571 "dlls/glut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
20572 "dlls/iccvid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
20573 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
20574 "dlls/ifsmgr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
20575 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
20576 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
20577 "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
20578 "dlls/iphlpapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
20579 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
20580 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
20581 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
20582 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
20583 "dlls/mmdevldr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
20584 "dlls/monodebg.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
20585 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
20586 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
20587 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
20588 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
20589 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
20590 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
20591 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
20592 "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
20593 "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
20594 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
20595 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
20596 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
20597 "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
20598 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
20599 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
20600 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
20601 "dlls/msvcrt40/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
20602 "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
20603 "dlls/msvidc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
20604 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
20605 "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
20606 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
20607 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
20608 "dlls/newdev/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
20609 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
20610 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
20611 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
20612 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
20613 "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
20614 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
20615 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
20616 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
20617 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
20618 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
20619 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
20620 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
20621 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
20622 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
20623 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
20624 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
20625 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
20626 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
20627 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
20628 "dlls/rsabase/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
20629 "dlls/secur32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
20630 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
20631 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
20632 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
20633 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
20634 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
20635 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
20636 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
20637 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
20638 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
20639 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
20640 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
20641 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
20642 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
20643 "dlls/unicows/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
20644 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
20645 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
20646 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
20647 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
20648 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
20649 "dlls/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
20650 "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
20651 "dlls/vdhcp.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
20652 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
20653 "dlls/version/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
20654 "dlls/vmm.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
20655 "dlls/vnbt.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
20656 "dlls/vnetbios.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
20657 "dlls/vtdapi.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
20658 "dlls/vwin32.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
20659 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
20660 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
20661 "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
20662 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
20663 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
20664 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
20665 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
20666 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
20667 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
20668 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
20669 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
20670 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
20671 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
20672 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
20673 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
20674 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
20675 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
20676 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
20677 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
20678 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
20679 "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
20680 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
20681 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
20682 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
20683 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
20684 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
20685 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
20686 "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
20687 "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
20688 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
20689 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
20690 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
20691 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
20692 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
20693 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20694 "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
20695 "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
20696 "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
20697 "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
20698 "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
20699 "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
20700 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
20701 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
20702 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
20703 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
20704 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
20705 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
20706 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
20707 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
20708 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
20709 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
20710 "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
20711 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
20712 "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
20713 "programs/taskmgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
20714 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
20715 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
20716 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
20717 "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
20718 "programs/winebrowser/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
20719 "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
20720 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
20721 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
20722 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
20723 "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
20724 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
20725 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
20726 "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
20727 "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
20728 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
20729 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
20730 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
20731 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
20732 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
20733 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
20734 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
20735 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
20736 "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
20737 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
20738 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
20739 "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
20740 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
20741 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
20742 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
20743 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
20744 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
20745 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
20746 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
20747 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
20748 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
20749 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
20750 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
20751 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
20752 "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
20753 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
20754 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
20755 "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
20756 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
20757 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
20758 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
20759 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20760 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20761 { (exit 1); exit 1; }; };;
20762 esac
20763 done
20765 # If the user did not use the arguments to specify the items to instantiate,
20766 # then the envvar interface is used. Set only those that are not.
20767 # We use the long form for the default assignment because of an extremely
20768 # bizarre bug on SunOS 4.1.3.
20769 if $ac_need_defaults; then
20770 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20771 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20772 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20775 # Have a temporary directory for convenience. Make it in the build tree
20776 # simply because there is no reason to put it here, and in addition,
20777 # creating and moving files from /tmp can sometimes cause problems.
20778 # Create a temporary directory, and hook for its removal unless debugging.
20779 $debug ||
20781 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20782 trap '{ (exit 1); exit 1; }' 1 2 13 15
20785 # Create a (secure) tmp directory for tmp files.
20788 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20789 test -n "$tmp" && test -d "$tmp"
20790 } ||
20792 tmp=./confstat$$-$RANDOM
20793 (umask 077 && mkdir $tmp)
20794 } ||
20796 echo "$me: cannot create a temporary directory in ." >&2
20797 { (exit 1); exit 1; }
20800 _ACEOF
20802 cat >>$CONFIG_STATUS <<_ACEOF
20805 # CONFIG_FILES section.
20808 # No need to generate the scripts if there are no CONFIG_FILES.
20809 # This happens for instance when ./config.status config.h
20810 if test -n "\$CONFIG_FILES"; then
20811 # Protect against being on the right side of a sed subst in config.status.
20812 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20813 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20814 s,@SHELL@,$SHELL,;t t
20815 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20816 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20817 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20818 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20819 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20820 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20821 s,@exec_prefix@,$exec_prefix,;t t
20822 s,@prefix@,$prefix,;t t
20823 s,@program_transform_name@,$program_transform_name,;t t
20824 s,@bindir@,$bindir,;t t
20825 s,@sbindir@,$sbindir,;t t
20826 s,@libexecdir@,$libexecdir,;t t
20827 s,@datadir@,$datadir,;t t
20828 s,@sysconfdir@,$sysconfdir,;t t
20829 s,@sharedstatedir@,$sharedstatedir,;t t
20830 s,@localstatedir@,$localstatedir,;t t
20831 s,@libdir@,$libdir,;t t
20832 s,@includedir@,$includedir,;t t
20833 s,@oldincludedir@,$oldincludedir,;t t
20834 s,@infodir@,$infodir,;t t
20835 s,@mandir@,$mandir,;t t
20836 s,@build_alias@,$build_alias,;t t
20837 s,@host_alias@,$host_alias,;t t
20838 s,@target_alias@,$target_alias,;t t
20839 s,@DEFS@,$DEFS,;t t
20840 s,@ECHO_C@,$ECHO_C,;t t
20841 s,@ECHO_N@,$ECHO_N,;t t
20842 s,@ECHO_T@,$ECHO_T,;t t
20843 s,@LIBS@,$LIBS,;t t
20844 s,@WIN16_FILES@,$WIN16_FILES,;t t
20845 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
20846 s,@build@,$build,;t t
20847 s,@build_cpu@,$build_cpu,;t t
20848 s,@build_vendor@,$build_vendor,;t t
20849 s,@build_os@,$build_os,;t t
20850 s,@host@,$host,;t t
20851 s,@host_cpu@,$host_cpu,;t t
20852 s,@host_vendor@,$host_vendor,;t t
20853 s,@host_os@,$host_os,;t t
20854 s,@SET_MAKE@,$SET_MAKE,;t t
20855 s,@CC@,$CC,;t t
20856 s,@CFLAGS@,$CFLAGS,;t t
20857 s,@LDFLAGS@,$LDFLAGS,;t t
20858 s,@CPPFLAGS@,$CPPFLAGS,;t t
20859 s,@ac_ct_CC@,$ac_ct_CC,;t t
20860 s,@EXEEXT@,$EXEEXT,;t t
20861 s,@OBJEXT@,$OBJEXT,;t t
20862 s,@CXX@,$CXX,;t t
20863 s,@CXXFLAGS@,$CXXFLAGS,;t t
20864 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20865 s,@CPPBIN@,$CPPBIN,;t t
20866 s,@ac_ct_CPPBIN@,$ac_ct_CPPBIN,;t t
20867 s,@TOOLSDIR@,$TOOLSDIR,;t t
20868 s,@CPP@,$CPP,;t t
20869 s,@X_CFLAGS@,$X_CFLAGS,;t t
20870 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20871 s,@X_LIBS@,$X_LIBS,;t t
20872 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20873 s,@LEX@,$LEX,;t t
20874 s,@LEXLIB@,$LEXLIB,;t t
20875 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
20876 s,@XLEX@,$XLEX,;t t
20877 s,@BISON@,$BISON,;t t
20878 s,@AS@,$AS,;t t
20879 s,@ac_ct_AS@,$ac_ct_AS,;t t
20880 s,@LD@,$LD,;t t
20881 s,@ac_ct_LD@,$ac_ct_LD,;t t
20882 s,@AR@,$AR,;t t
20883 s,@ac_ct_AR@,$ac_ct_AR,;t t
20884 s,@RANLIB@,$RANLIB,;t t
20885 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20886 s,@STRIP@,$STRIP,;t t
20887 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20888 s,@WINDRES@,$WINDRES,;t t
20889 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
20890 s,@LN_S@,$LN_S,;t t
20891 s,@LN@,$LN,;t t
20892 s,@LDCONFIG@,$LDCONFIG,;t t
20893 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20894 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20895 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20896 s,@LINT@,$LINT,;t t
20897 s,@LINTFLAGS@,$LINTFLAGS,;t t
20898 s,@DB2HTML@,$DB2HTML,;t t
20899 s,@DB2PDF@,$DB2PDF,;t t
20900 s,@DB2PS@,$DB2PS,;t t
20901 s,@DB2TXT@,$DB2TXT,;t t
20902 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
20903 s,@JPEGLIB@,$JPEGLIB,;t t
20904 s,@EGREP@,$EGREP,;t t
20905 s,@GIFLIB@,$GIFLIB,;t t
20906 s,@XLIB@,$XLIB,;t t
20907 s,@XFILES@,$XFILES,;t t
20908 s,@OPENGLFILES@,$OPENGLFILES,;t t
20909 s,@GLU32FILES@,$GLU32FILES,;t t
20910 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
20911 s,@GLUT_LIBS@,$GLUT_LIBS,;t t
20912 s,@GLUT32FILES@,$GLUT32FILES,;t t
20913 s,@NASLIBS@,$NASLIBS,;t t
20914 s,@CURSESLIBS@,$CURSESLIBS,;t t
20915 s,@sane_devel@,$sane_devel,;t t
20916 s,@SANELIBS@,$SANELIBS,;t t
20917 s,@SANEINCL@,$SANEINCL,;t t
20918 s,@ICULIBS@,$ICULIBS,;t t
20919 s,@ft_devel@,$ft_devel,;t t
20920 s,@ft_devel2@,$ft_devel2,;t t
20921 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
20922 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
20923 s,@ARTSLIBS@,$ARTSLIBS,;t t
20924 s,@ARTSINCL@,$ARTSINCL,;t t
20925 s,@ALSALIBS@,$ALSALIBS,;t t
20926 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
20927 s,@CAPI4LINUXLIBS@,$CAPI4LINUXLIBS,;t t
20928 s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
20929 s,@DLLEXT@,$DLLEXT,;t t
20930 s,@DLLFLAGS@,$DLLFLAGS,;t t
20931 s,@DLLIBS@,$DLLIBS,;t t
20932 s,@LDSHARED@,$LDSHARED,;t t
20933 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
20934 s,@LIBEXT@,$LIBEXT,;t t
20935 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
20936 s,@DLLTOOL@,$DLLTOOL,;t t
20937 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
20938 s,@DLLWRAP@,$DLLWRAP,;t t
20939 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
20940 s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
20941 s,@CROSSTEST@,$CROSSTEST,;t t
20942 s,@CROSSCC@,$CROSSCC,;t t
20943 s,@CROSSWINDRES@,$CROSSWINDRES,;t t
20944 s,@LDPATH@,$LDPATH,;t t
20945 s,@CRTLIBS@,$CRTLIBS,;t t
20946 s,@WINE_BINARIES@,$WINE_BINARIES,;t t
20947 s,@MAIN_BINARY@,$MAIN_BINARY,;t t
20948 s,@LDD@,$LDD,;t t
20949 s,@ALLOCA@,$ALLOCA,;t t
20950 s,@LIBOBJS@,$LIBOBJS,;t t
20951 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20952 /@MAKE_RULES@/r $MAKE_RULES
20953 s,@MAKE_RULES@,,;t t
20954 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
20955 s,@MAKE_DLL_RULES@,,;t t
20956 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
20957 s,@MAKE_TEST_RULES@,,;t t
20958 /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
20959 s,@MAKE_LIB_RULES@,,;t t
20960 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
20961 s,@MAKE_PROG_RULES@,,;t t
20962 CEOF
20964 _ACEOF
20966 cat >>$CONFIG_STATUS <<\_ACEOF
20967 # Split the substitutions into bite-sized pieces for seds with
20968 # small command number limits, like on Digital OSF/1 and HP-UX.
20969 ac_max_sed_lines=48
20970 ac_sed_frag=1 # Number of current file.
20971 ac_beg=1 # First line for current file.
20972 ac_end=$ac_max_sed_lines # Line after last line for current file.
20973 ac_more_lines=:
20974 ac_sed_cmds=
20975 while $ac_more_lines; do
20976 if test $ac_beg -gt 1; then
20977 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20978 else
20979 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20981 if test ! -s $tmp/subs.frag; then
20982 ac_more_lines=false
20983 else
20984 # The purpose of the label and of the branching condition is to
20985 # speed up the sed processing (if there are no `@' at all, there
20986 # is no need to browse any of the substitutions).
20987 # These are the two extra sed commands mentioned above.
20988 (echo ':t
20989 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20990 if test -z "$ac_sed_cmds"; then
20991 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20992 else
20993 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20995 ac_sed_frag=`expr $ac_sed_frag + 1`
20996 ac_beg=$ac_end
20997 ac_end=`expr $ac_end + $ac_max_sed_lines`
20999 done
21000 if test -z "$ac_sed_cmds"; then
21001 ac_sed_cmds=cat
21003 fi # test -n "$CONFIG_FILES"
21005 _ACEOF
21006 cat >>$CONFIG_STATUS <<\_ACEOF
21007 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21008 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21009 case $ac_file in
21010 - | *:- | *:-:* ) # input from stdin
21011 cat >$tmp/stdin
21012 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21013 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21014 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21015 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21016 * ) ac_file_in=$ac_file.in ;;
21017 esac
21019 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21020 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21021 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21022 X"$ac_file" : 'X\(//\)[^/]' \| \
21023 X"$ac_file" : 'X\(//\)$' \| \
21024 X"$ac_file" : 'X\(/\)' \| \
21025 . : '\(.\)' 2>/dev/null ||
21026 echo X"$ac_file" |
21027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21028 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21029 /^X\(\/\/\)$/{ s//\1/; q; }
21030 /^X\(\/\).*/{ s//\1/; q; }
21031 s/.*/./; q'`
21032 { if $as_mkdir_p; then
21033 mkdir -p "$ac_dir"
21034 else
21035 as_dir="$ac_dir"
21036 as_dirs=
21037 while test ! -d "$as_dir"; do
21038 as_dirs="$as_dir $as_dirs"
21039 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21040 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21041 X"$as_dir" : 'X\(//\)[^/]' \| \
21042 X"$as_dir" : 'X\(//\)$' \| \
21043 X"$as_dir" : 'X\(/\)' \| \
21044 . : '\(.\)' 2>/dev/null ||
21045 echo X"$as_dir" |
21046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21047 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21048 /^X\(\/\/\)$/{ s//\1/; q; }
21049 /^X\(\/\).*/{ s//\1/; q; }
21050 s/.*/./; q'`
21051 done
21052 test ! -n "$as_dirs" || mkdir $as_dirs
21053 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21054 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21055 { (exit 1); exit 1; }; }; }
21057 ac_builddir=.
21059 if test "$ac_dir" != .; then
21060 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21061 # A "../" for each directory in $ac_dir_suffix.
21062 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21063 else
21064 ac_dir_suffix= ac_top_builddir=
21067 case $srcdir in
21068 .) # No --srcdir option. We are building in place.
21069 ac_srcdir=.
21070 if test -z "$ac_top_builddir"; then
21071 ac_top_srcdir=.
21072 else
21073 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21074 fi ;;
21075 [\\/]* | ?:[\\/]* ) # Absolute path.
21076 ac_srcdir=$srcdir$ac_dir_suffix;
21077 ac_top_srcdir=$srcdir ;;
21078 *) # Relative path.
21079 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21080 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21081 esac
21083 # Do not use `cd foo && pwd` to compute absolute paths, because
21084 # the directories may not exist.
21085 case `pwd` in
21086 .) ac_abs_builddir="$ac_dir";;
21088 case "$ac_dir" in
21089 .) ac_abs_builddir=`pwd`;;
21090 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21091 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21092 esac;;
21093 esac
21094 case $ac_abs_builddir in
21095 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21097 case ${ac_top_builddir}. in
21098 .) ac_abs_top_builddir=$ac_abs_builddir;;
21099 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21100 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21101 esac;;
21102 esac
21103 case $ac_abs_builddir in
21104 .) ac_abs_srcdir=$ac_srcdir;;
21106 case $ac_srcdir in
21107 .) ac_abs_srcdir=$ac_abs_builddir;;
21108 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21109 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21110 esac;;
21111 esac
21112 case $ac_abs_builddir in
21113 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21115 case $ac_top_srcdir in
21116 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21117 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21118 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21119 esac;;
21120 esac
21123 case $INSTALL in
21124 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21125 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21126 esac
21128 # Let's still pretend it is `configure' which instantiates (i.e., don't
21129 # use $as_me), people would be surprised to read:
21130 # /* config.h. Generated by config.status. */
21131 if test x"$ac_file" = x-; then
21132 configure_input=
21133 else
21134 configure_input="$ac_file. "
21136 configure_input=$configure_input"Generated from `echo $ac_file_in |
21137 sed 's,.*/,,'` by configure."
21139 # First look for the input files in the build tree, otherwise in the
21140 # src tree.
21141 ac_file_inputs=`IFS=:
21142 for f in $ac_file_in; do
21143 case $f in
21144 -) echo $tmp/stdin ;;
21145 [\\/$]*)
21146 # Absolute (can't be DOS-style, as IFS=:)
21147 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21148 echo "$as_me: error: cannot find input file: $f" >&2;}
21149 { (exit 1); exit 1; }; }
21150 echo "$f";;
21151 *) # Relative
21152 if test -f "$f"; then
21153 # Build tree
21154 echo "$f"
21155 elif test -f "$srcdir/$f"; then
21156 # Source tree
21157 echo "$srcdir/$f"
21158 else
21159 # /dev/null tree
21160 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21161 echo "$as_me: error: cannot find input file: $f" >&2;}
21162 { (exit 1); exit 1; }; }
21163 fi;;
21164 esac
21165 done` || { (exit 1); exit 1; }
21167 if test x"$ac_file" != x-; then
21168 { echo "$as_me:$LINENO: creating $ac_file" >&5
21169 echo "$as_me: creating $ac_file" >&6;}
21170 rm -f "$ac_file"
21172 _ACEOF
21173 cat >>$CONFIG_STATUS <<_ACEOF
21174 sed "$ac_vpsub
21175 $extrasub
21176 _ACEOF
21177 cat >>$CONFIG_STATUS <<\_ACEOF
21179 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21180 s,@configure_input@,$configure_input,;t t
21181 s,@srcdir@,$ac_srcdir,;t t
21182 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21183 s,@top_srcdir@,$ac_top_srcdir,;t t
21184 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21185 s,@builddir@,$ac_builddir,;t t
21186 s,@abs_builddir@,$ac_abs_builddir,;t t
21187 s,@top_builddir@,$ac_top_builddir,;t t
21188 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21189 s,@INSTALL@,$ac_INSTALL,;t t
21190 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21191 rm -f $tmp/stdin
21192 if test x"$ac_file" != x-; then
21193 mv $tmp/out $ac_file
21194 else
21195 cat $tmp/out
21196 rm -f $tmp/out
21199 done
21200 _ACEOF
21201 cat >>$CONFIG_STATUS <<\_ACEOF
21204 # CONFIG_HEADER section.
21207 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21208 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21210 # ac_d sets the value in "#define NAME VALUE" lines.
21211 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21212 ac_dB='[ ].*$,\1#\2'
21213 ac_dC=' '
21214 ac_dD=',;t'
21215 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21216 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21217 ac_uB='$,\1#\2define\3'
21218 ac_uC=' '
21219 ac_uD=',;t'
21221 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21222 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21223 case $ac_file in
21224 - | *:- | *:-:* ) # input from stdin
21225 cat >$tmp/stdin
21226 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21227 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21228 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21229 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21230 * ) ac_file_in=$ac_file.in ;;
21231 esac
21233 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21234 echo "$as_me: creating $ac_file" >&6;}
21236 # First look for the input files in the build tree, otherwise in the
21237 # src tree.
21238 ac_file_inputs=`IFS=:
21239 for f in $ac_file_in; do
21240 case $f in
21241 -) echo $tmp/stdin ;;
21242 [\\/$]*)
21243 # Absolute (can't be DOS-style, as IFS=:)
21244 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21245 echo "$as_me: error: cannot find input file: $f" >&2;}
21246 { (exit 1); exit 1; }; }
21247 # Do quote $f, to prevent DOS paths from being IFS'd.
21248 echo "$f";;
21249 *) # Relative
21250 if test -f "$f"; then
21251 # Build tree
21252 echo "$f"
21253 elif test -f "$srcdir/$f"; then
21254 # Source tree
21255 echo "$srcdir/$f"
21256 else
21257 # /dev/null tree
21258 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21259 echo "$as_me: error: cannot find input file: $f" >&2;}
21260 { (exit 1); exit 1; }; }
21261 fi;;
21262 esac
21263 done` || { (exit 1); exit 1; }
21264 # Remove the trailing spaces.
21265 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21267 _ACEOF
21269 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21270 # `conftest.undefs', that substitutes the proper values into
21271 # config.h.in to produce config.h. The first handles `#define'
21272 # templates, and the second `#undef' templates.
21273 # And first: Protect against being on the right side of a sed subst in
21274 # config.status. Protect against being in an unquoted here document
21275 # in config.status.
21276 rm -f conftest.defines conftest.undefs
21277 # Using a here document instead of a string reduces the quoting nightmare.
21278 # Putting comments in sed scripts is not portable.
21280 # `end' is used to avoid that the second main sed command (meant for
21281 # 0-ary CPP macros) applies to n-ary macro definitions.
21282 # See the Autoconf documentation for `clear'.
21283 cat >confdef2sed.sed <<\_ACEOF
21284 s/[\\&,]/\\&/g
21285 s,[\\$`],\\&,g
21286 t clear
21287 : clear
21288 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21289 t end
21290 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21291 : end
21292 _ACEOF
21293 # If some macros were called several times there might be several times
21294 # the same #defines, which is useless. Nevertheless, we may not want to
21295 # sort them, since we want the *last* AC-DEFINE to be honored.
21296 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21297 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21298 rm -f confdef2sed.sed
21300 # This sed command replaces #undef with comments. This is necessary, for
21301 # example, in the case of _POSIX_SOURCE, which is predefined and required
21302 # on some systems where configure will not decide to define it.
21303 cat >>conftest.undefs <<\_ACEOF
21304 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21305 _ACEOF
21307 # Break up conftest.defines because some shells have a limit on the size
21308 # of here documents, and old seds have small limits too (100 cmds).
21309 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21310 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21311 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21312 echo ' :' >>$CONFIG_STATUS
21313 rm -f conftest.tail
21314 while grep . conftest.defines >/dev/null
21316 # Write a limited-size here document to $tmp/defines.sed.
21317 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21318 # Speed up: don't consider the non `#define' lines.
21319 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21320 # Work around the forget-to-reset-the-flag bug.
21321 echo 't clr' >>$CONFIG_STATUS
21322 echo ': clr' >>$CONFIG_STATUS
21323 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21324 echo 'CEOF
21325 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21326 rm -f $tmp/in
21327 mv $tmp/out $tmp/in
21328 ' >>$CONFIG_STATUS
21329 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21330 rm -f conftest.defines
21331 mv conftest.tail conftest.defines
21332 done
21333 rm -f conftest.defines
21334 echo ' fi # grep' >>$CONFIG_STATUS
21335 echo >>$CONFIG_STATUS
21337 # Break up conftest.undefs because some shells have a limit on the size
21338 # of here documents, and old seds have small limits too (100 cmds).
21339 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21340 rm -f conftest.tail
21341 while grep . conftest.undefs >/dev/null
21343 # Write a limited-size here document to $tmp/undefs.sed.
21344 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21345 # Speed up: don't consider the non `#undef'
21346 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21347 # Work around the forget-to-reset-the-flag bug.
21348 echo 't clr' >>$CONFIG_STATUS
21349 echo ': clr' >>$CONFIG_STATUS
21350 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21351 echo 'CEOF
21352 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21353 rm -f $tmp/in
21354 mv $tmp/out $tmp/in
21355 ' >>$CONFIG_STATUS
21356 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21357 rm -f conftest.undefs
21358 mv conftest.tail conftest.undefs
21359 done
21360 rm -f conftest.undefs
21362 cat >>$CONFIG_STATUS <<\_ACEOF
21363 # Let's still pretend it is `configure' which instantiates (i.e., don't
21364 # use $as_me), people would be surprised to read:
21365 # /* config.h. Generated by config.status. */
21366 if test x"$ac_file" = x-; then
21367 echo "/* Generated by configure. */" >$tmp/config.h
21368 else
21369 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21371 cat $tmp/in >>$tmp/config.h
21372 rm -f $tmp/in
21373 if test x"$ac_file" != x-; then
21374 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21375 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21376 echo "$as_me: $ac_file is unchanged" >&6;}
21377 else
21378 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21379 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21380 X"$ac_file" : 'X\(//\)[^/]' \| \
21381 X"$ac_file" : 'X\(//\)$' \| \
21382 X"$ac_file" : 'X\(/\)' \| \
21383 . : '\(.\)' 2>/dev/null ||
21384 echo X"$ac_file" |
21385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21386 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21387 /^X\(\/\/\)$/{ s//\1/; q; }
21388 /^X\(\/\).*/{ s//\1/; q; }
21389 s/.*/./; q'`
21390 { if $as_mkdir_p; then
21391 mkdir -p "$ac_dir"
21392 else
21393 as_dir="$ac_dir"
21394 as_dirs=
21395 while test ! -d "$as_dir"; do
21396 as_dirs="$as_dir $as_dirs"
21397 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21398 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21399 X"$as_dir" : 'X\(//\)[^/]' \| \
21400 X"$as_dir" : 'X\(//\)$' \| \
21401 X"$as_dir" : 'X\(/\)' \| \
21402 . : '\(.\)' 2>/dev/null ||
21403 echo X"$as_dir" |
21404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21405 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21406 /^X\(\/\/\)$/{ s//\1/; q; }
21407 /^X\(\/\).*/{ s//\1/; q; }
21408 s/.*/./; q'`
21409 done
21410 test ! -n "$as_dirs" || mkdir $as_dirs
21411 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21412 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21413 { (exit 1); exit 1; }; }; }
21415 rm -f $ac_file
21416 mv $tmp/config.h $ac_file
21418 else
21419 cat $tmp/config.h
21420 rm -f $tmp/config.h
21422 done
21423 _ACEOF
21424 cat >>$CONFIG_STATUS <<\_ACEOF
21427 # CONFIG_COMMANDS section.
21429 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21430 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21431 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21432 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21433 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21434 X"$ac_dest" : 'X\(//\)[^/]' \| \
21435 X"$ac_dest" : 'X\(//\)$' \| \
21436 X"$ac_dest" : 'X\(/\)' \| \
21437 . : '\(.\)' 2>/dev/null ||
21438 echo X"$ac_dest" |
21439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21440 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21441 /^X\(\/\/\)$/{ s//\1/; q; }
21442 /^X\(\/\).*/{ s//\1/; q; }
21443 s/.*/./; q'`
21444 { if $as_mkdir_p; then
21445 mkdir -p "$ac_dir"
21446 else
21447 as_dir="$ac_dir"
21448 as_dirs=
21449 while test ! -d "$as_dir"; do
21450 as_dirs="$as_dir $as_dirs"
21451 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21452 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21453 X"$as_dir" : 'X\(//\)[^/]' \| \
21454 X"$as_dir" : 'X\(//\)$' \| \
21455 X"$as_dir" : 'X\(/\)' \| \
21456 . : '\(.\)' 2>/dev/null ||
21457 echo X"$as_dir" |
21458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21459 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21460 /^X\(\/\/\)$/{ s//\1/; q; }
21461 /^X\(\/\).*/{ s//\1/; q; }
21462 s/.*/./; q'`
21463 done
21464 test ! -n "$as_dirs" || mkdir $as_dirs
21465 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21466 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21467 { (exit 1); exit 1; }; }; }
21469 ac_builddir=.
21471 if test "$ac_dir" != .; then
21472 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21473 # A "../" for each directory in $ac_dir_suffix.
21474 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21475 else
21476 ac_dir_suffix= ac_top_builddir=
21479 case $srcdir in
21480 .) # No --srcdir option. We are building in place.
21481 ac_srcdir=.
21482 if test -z "$ac_top_builddir"; then
21483 ac_top_srcdir=.
21484 else
21485 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21486 fi ;;
21487 [\\/]* | ?:[\\/]* ) # Absolute path.
21488 ac_srcdir=$srcdir$ac_dir_suffix;
21489 ac_top_srcdir=$srcdir ;;
21490 *) # Relative path.
21491 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21492 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21493 esac
21495 # Do not use `cd foo && pwd` to compute absolute paths, because
21496 # the directories may not exist.
21497 case `pwd` in
21498 .) ac_abs_builddir="$ac_dir";;
21500 case "$ac_dir" in
21501 .) ac_abs_builddir=`pwd`;;
21502 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21503 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21504 esac;;
21505 esac
21506 case $ac_abs_builddir in
21507 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21509 case ${ac_top_builddir}. in
21510 .) ac_abs_top_builddir=$ac_abs_builddir;;
21511 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21512 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21513 esac;;
21514 esac
21515 case $ac_abs_builddir in
21516 .) ac_abs_srcdir=$ac_srcdir;;
21518 case $ac_srcdir in
21519 .) ac_abs_srcdir=$ac_abs_builddir;;
21520 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21521 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21522 esac;;
21523 esac
21524 case $ac_abs_builddir in
21525 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21527 case $ac_top_srcdir in
21528 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21529 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21530 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21531 esac;;
21532 esac
21535 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21536 echo "$as_me: executing $ac_dest commands" >&6;}
21537 case $ac_dest in
21538 controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
21539 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
21540 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
21541 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
21542 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
21543 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
21544 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
21545 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
21546 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
21547 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
21548 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
21549 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
21550 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
21551 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
21552 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
21553 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
21554 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
21555 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
21556 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
21557 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
21558 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
21559 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
21560 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
21561 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
21562 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
21563 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
21564 files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
21565 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
21566 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
21567 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
21568 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
21569 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
21570 objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
21571 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
21572 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
21573 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
21574 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
21575 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
21576 esac
21577 done
21578 _ACEOF
21580 cat >>$CONFIG_STATUS <<\_ACEOF
21582 { (exit 0); exit 0; }
21583 _ACEOF
21584 chmod +x $CONFIG_STATUS
21585 ac_clean_files=$ac_clean_files_save
21588 # configure is writing to config.log, and then calls config.status.
21589 # config.status does its own redirection, appending to config.log.
21590 # Unfortunately, on DOS this fails, as config.log is still kept open
21591 # by configure, so config.status won't be able to write to it; its
21592 # output is simply discarded. So we exec the FD to /dev/null,
21593 # effectively closing config.log, so it can be properly (re)opened and
21594 # appended to by config.status. When coming back to configure, we
21595 # need to make the FD available again.
21596 if test "$no_create" != yes; then
21597 ac_cs_success=:
21598 ac_config_status_args=
21599 test "$silent" = yes &&
21600 ac_config_status_args="$ac_config_status_args --quiet"
21601 exec 5>/dev/null
21602 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21603 exec 5>>config.log
21604 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21605 # would make configure fail if this is the last instruction.
21606 $ac_cs_success || { (exit 1); exit 1; }
21610 if test "$have_x" = "no"
21611 then
21612 echo
21613 echo "*** Warning: X development files not found. Wine will be built without"
21614 echo "*** X support, which currently does not work, and would probably not be"
21615 echo "*** what you want anyway. You will need to install devel packages of"
21616 echo "*** Xlib/Xfree86 at the very least."
21619 if test "$wine_cv_opengl_version_OK" = "no"
21620 then
21621 echo
21622 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
21623 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
21626 if test "$wine_cv_msg_freetype" = "yes"
21627 then
21628 echo
21629 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
21630 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
21631 echo "*** freetype-devel package (or its equivalent on your distribution) to"
21632 echo "*** enable Wine to use TrueType fonts."
21635 echo
21636 echo "Configure finished. Do 'make depend && make' to compile Wine."
21637 echo