Fix IDirectSoundBuffer8_Initialize function prototype and use.
[wine.git] / configure
blobcdbc458f1505132682be7417cb028f517f9e03f8
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Wine 20040615.
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='20040615'
273 PACKAGE_STRING='Wine 20040615'
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 20040615 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 20040615:";;
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 20040615
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 20040615, 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 cat >conftest.$ac_ext <<_ACEOF
8269 /* confdefs.h. */
8270 _ACEOF
8271 cat confdefs.h >>conftest.$ac_ext
8272 cat >>conftest.$ac_ext <<_ACEOF
8273 /* end confdefs.h. */
8274 #include <X11/Xlib.h>
8275 #include <X11/extensions/Xrandr.h>
8277 main ()
8279 static typeof(XRRSetScreenConfigAndRate) * func;
8281 return 0;
8283 _ACEOF
8284 rm -f conftest.$ac_objext
8285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8286 (eval $ac_compile) 2>conftest.er1
8287 ac_status=$?
8288 grep -v '^ *+' conftest.er1 >conftest.err
8289 rm -f conftest.er1
8290 cat conftest.err >&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); } &&
8293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8295 (eval $ac_try) 2>&5
8296 ac_status=$?
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; } &&
8299 { ac_try='test -s conftest.$ac_objext'
8300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8301 (eval $ac_try) 2>&5
8302 ac_status=$?
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); }; }; then
8306 cat >>confdefs.h <<\_ACEOF
8307 #define HAVE_LIBXRANDR 1
8308 _ACEOF
8310 else
8311 echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
8315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8318 if test "$ac_cv_header_X11_extensions_Xvlib_h" = "yes"
8319 then
8320 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
8321 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
8322 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
8323 echo $ECHO_N "(cached) $ECHO_C" >&6
8324 else
8325 ac_check_lib_save_LIBS=$LIBS
8326 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8327 cat >conftest.$ac_ext <<_ACEOF
8328 /* confdefs.h. */
8329 _ACEOF
8330 cat confdefs.h >>conftest.$ac_ext
8331 cat >>conftest.$ac_ext <<_ACEOF
8332 /* end confdefs.h. */
8334 /* Override any gcc2 internal prototype to avoid an error. */
8335 #ifdef __cplusplus
8336 extern "C"
8337 #endif
8338 /* We use char because int might match the return type of a gcc2
8339 builtin and then its argument prototype would still apply. */
8340 char XvShmCreateImage ();
8342 main ()
8344 XvShmCreateImage ();
8346 return 0;
8348 _ACEOF
8349 rm -f conftest.$ac_objext conftest$ac_exeext
8350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8351 (eval $ac_link) 2>conftest.er1
8352 ac_status=$?
8353 grep -v '^ *+' conftest.er1 >conftest.err
8354 rm -f conftest.er1
8355 cat conftest.err >&5
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); } &&
8358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8360 (eval $ac_try) 2>&5
8361 ac_status=$?
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); }; } &&
8364 { ac_try='test -s conftest$ac_exeext'
8365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8366 (eval $ac_try) 2>&5
8367 ac_status=$?
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); }; }; then
8370 ac_cv_lib_Xv_XvShmCreateImage=yes
8371 else
8372 echo "$as_me: failed program was:" >&5
8373 sed 's/^/| /' conftest.$ac_ext >&5
8375 ac_cv_lib_Xv_XvShmCreateImage=no
8377 rm -f conftest.err conftest.$ac_objext \
8378 conftest$ac_exeext conftest.$ac_ext
8379 LIBS=$ac_check_lib_save_LIBS
8381 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
8382 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
8383 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
8385 cat >>confdefs.h <<\_ACEOF
8386 #define HAVE_XVIDEO 1
8387 _ACEOF
8389 X_PRE_LIBS="$X_PRE_LIBS -lXv"
8398 done
8400 if test "x$with_opengl" != "xno"
8401 then
8402 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
8403 then
8404 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
8405 This prevents linking to OpenGL. Delete the file and restart configure." >&5
8406 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
8407 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
8408 { (exit 1); exit 1; }; }
8413 for ac_header in GL/gl.h GL/glx.h
8415 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8417 echo "$as_me:$LINENO: checking for $ac_header" >&5
8418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8420 echo $ECHO_N "(cached) $ECHO_C" >&6
8422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8424 else
8425 # Is the header compilable?
8426 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8427 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8428 cat >conftest.$ac_ext <<_ACEOF
8429 /* confdefs.h. */
8430 _ACEOF
8431 cat confdefs.h >>conftest.$ac_ext
8432 cat >>conftest.$ac_ext <<_ACEOF
8433 /* end confdefs.h. */
8434 $ac_includes_default
8435 #include <$ac_header>
8436 _ACEOF
8437 rm -f conftest.$ac_objext
8438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8439 (eval $ac_compile) 2>conftest.er1
8440 ac_status=$?
8441 grep -v '^ *+' conftest.er1 >conftest.err
8442 rm -f conftest.er1
8443 cat conftest.err >&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); } &&
8446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8448 (eval $ac_try) 2>&5
8449 ac_status=$?
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); }; } &&
8452 { ac_try='test -s conftest.$ac_objext'
8453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454 (eval $ac_try) 2>&5
8455 ac_status=$?
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); }; }; then
8458 ac_header_compiler=yes
8459 else
8460 echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8463 ac_header_compiler=no
8465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8466 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8467 echo "${ECHO_T}$ac_header_compiler" >&6
8469 # Is the header present?
8470 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8471 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8472 cat >conftest.$ac_ext <<_ACEOF
8473 /* confdefs.h. */
8474 _ACEOF
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h. */
8478 #include <$ac_header>
8479 _ACEOF
8480 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8482 ac_status=$?
8483 grep -v '^ *+' conftest.er1 >conftest.err
8484 rm -f conftest.er1
8485 cat conftest.err >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } >/dev/null; then
8488 if test -s conftest.err; then
8489 ac_cpp_err=$ac_c_preproc_warn_flag
8490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8491 else
8492 ac_cpp_err=
8494 else
8495 ac_cpp_err=yes
8497 if test -z "$ac_cpp_err"; then
8498 ac_header_preproc=yes
8499 else
8500 echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.$ac_ext >&5
8503 ac_header_preproc=no
8505 rm -f conftest.err conftest.$ac_ext
8506 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8507 echo "${ECHO_T}$ac_header_preproc" >&6
8509 # So? What about this header?
8510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8511 yes:no: )
8512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8516 ac_header_preproc=yes
8518 no:yes:* )
8519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8522 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8523 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8525 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8526 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8532 cat <<\_ASBOX
8533 ## ------------------------------------ ##
8534 ## Report this to wine-devel@winehq.org ##
8535 ## ------------------------------------ ##
8536 _ASBOX
8538 sed "s/^/$as_me: WARNING: /" >&2
8540 esac
8541 echo "$as_me:$LINENO: checking for $ac_header" >&5
8542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8544 echo $ECHO_N "(cached) $ECHO_C" >&6
8545 else
8546 eval "$as_ac_Header=\$ac_header_preproc"
8548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8553 cat >>confdefs.h <<_ACEOF
8554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8555 _ACEOF
8559 done
8561 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8562 then
8564 for ac_header in GL/glext.h
8566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8567 echo "$as_me:$LINENO: checking for $ac_header" >&5
8568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8570 echo $ECHO_N "(cached) $ECHO_C" >&6
8571 else
8572 cat >conftest.$ac_ext <<_ACEOF
8573 /* confdefs.h. */
8574 _ACEOF
8575 cat confdefs.h >>conftest.$ac_ext
8576 cat >>conftest.$ac_ext <<_ACEOF
8577 /* end confdefs.h. */
8578 #include <GL/glx.h>
8580 #include <$ac_header>
8581 _ACEOF
8582 rm -f conftest.$ac_objext
8583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8584 (eval $ac_compile) 2>conftest.er1
8585 ac_status=$?
8586 grep -v '^ *+' conftest.er1 >conftest.err
8587 rm -f conftest.er1
8588 cat conftest.err >&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); } &&
8591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8593 (eval $ac_try) 2>&5
8594 ac_status=$?
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); }; } &&
8597 { ac_try='test -s conftest.$ac_objext'
8598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599 (eval $ac_try) 2>&5
8600 ac_status=$?
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); }; }; then
8603 eval "$as_ac_Header=yes"
8604 else
8605 echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.$ac_ext >&5
8608 eval "$as_ac_Header=no"
8610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8615 cat >>confdefs.h <<_ACEOF
8616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8617 _ACEOF
8621 done
8623 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
8624 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
8625 if test "${wine_cv_opengl_version_OK+set}" = set; then
8626 echo $ECHO_N "(cached) $ECHO_C" >&6
8627 else
8628 cat >conftest.$ac_ext <<_ACEOF
8629 /* confdefs.h. */
8630 _ACEOF
8631 cat confdefs.h >>conftest.$ac_ext
8632 cat >>conftest.$ac_ext <<_ACEOF
8633 /* end confdefs.h. */
8634 #include <GL/gl.h>
8636 main ()
8638 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8640 return 0;
8642 _ACEOF
8643 rm -f conftest.$ac_objext
8644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8645 (eval $ac_compile) 2>conftest.er1
8646 ac_status=$?
8647 grep -v '^ *+' conftest.er1 >conftest.err
8648 rm -f conftest.er1
8649 cat conftest.err >&5
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); } &&
8652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8654 (eval $ac_try) 2>&5
8655 ac_status=$?
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); }; } &&
8658 { ac_try='test -s conftest.$ac_objext'
8659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8660 (eval $ac_try) 2>&5
8661 ac_status=$?
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); }; }; then
8664 wine_cv_opengl_version_OK="yes"
8665 else
8666 echo "$as_me: failed program was:" >&5
8667 sed 's/^/| /' conftest.$ac_ext >&5
8669 wine_cv_opengl_version_OK="no"
8672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8675 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
8676 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
8678 if test "$wine_cv_opengl_version_OK" = "yes"
8679 then
8680 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
8681 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
8682 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8683 echo $ECHO_N "(cached) $ECHO_C" >&6
8684 else
8685 ac_check_lib_save_LIBS=$LIBS
8686 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8687 cat >conftest.$ac_ext <<_ACEOF
8688 /* confdefs.h. */
8689 _ACEOF
8690 cat confdefs.h >>conftest.$ac_ext
8691 cat >>conftest.$ac_ext <<_ACEOF
8692 /* end confdefs.h. */
8694 /* Override any gcc2 internal prototype to avoid an error. */
8695 #ifdef __cplusplus
8696 extern "C"
8697 #endif
8698 /* We use char because int might match the return type of a gcc2
8699 builtin and then its argument prototype would still apply. */
8700 char glXCreateContext ();
8702 main ()
8704 glXCreateContext ();
8706 return 0;
8708 _ACEOF
8709 rm -f conftest.$ac_objext conftest$ac_exeext
8710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8711 (eval $ac_link) 2>conftest.er1
8712 ac_status=$?
8713 grep -v '^ *+' conftest.er1 >conftest.err
8714 rm -f conftest.er1
8715 cat conftest.err >&5
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); } &&
8718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8720 (eval $ac_try) 2>&5
8721 ac_status=$?
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); }; } &&
8724 { ac_try='test -s conftest$ac_exeext'
8725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726 (eval $ac_try) 2>&5
8727 ac_status=$?
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); }; }; then
8730 ac_cv_lib_GL_glXCreateContext=yes
8731 else
8732 echo "$as_me: failed program was:" >&5
8733 sed 's/^/| /' conftest.$ac_ext >&5
8735 ac_cv_lib_GL_glXCreateContext=no
8737 rm -f conftest.err conftest.$ac_objext \
8738 conftest$ac_exeext conftest.$ac_ext
8739 LIBS=$ac_check_lib_save_LIBS
8741 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
8742 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8743 if test $ac_cv_lib_GL_glXCreateContext = yes; then
8744 OPENGL_LIBS="-lGL"
8749 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
8750 then
8751 OPENGLFILES='$(OPENGLFILES)'
8753 cat >>confdefs.h <<\_ACEOF
8754 #define HAVE_OPENGL 1
8755 _ACEOF
8758 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
8759 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
8760 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
8761 echo $ECHO_N "(cached) $ECHO_C" >&6
8762 else
8763 ac_check_lib_save_LIBS=$LIBS
8764 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8765 cat >conftest.$ac_ext <<_ACEOF
8766 /* confdefs.h. */
8767 _ACEOF
8768 cat confdefs.h >>conftest.$ac_ext
8769 cat >>conftest.$ac_ext <<_ACEOF
8770 /* end confdefs.h. */
8772 /* Override any gcc2 internal prototype to avoid an error. */
8773 #ifdef __cplusplus
8774 extern "C"
8775 #endif
8776 /* We use char because int might match the return type of a gcc2
8777 builtin and then its argument prototype would still apply. */
8778 char glXGetProcAddressARB ();
8780 main ()
8782 glXGetProcAddressARB ();
8784 return 0;
8786 _ACEOF
8787 rm -f conftest.$ac_objext conftest$ac_exeext
8788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8789 (eval $ac_link) 2>conftest.er1
8790 ac_status=$?
8791 grep -v '^ *+' conftest.er1 >conftest.err
8792 rm -f conftest.er1
8793 cat conftest.err >&5
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); } &&
8796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8798 (eval $ac_try) 2>&5
8799 ac_status=$?
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); }; } &&
8802 { ac_try='test -s conftest$ac_exeext'
8803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8804 (eval $ac_try) 2>&5
8805 ac_status=$?
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); }; }; then
8808 ac_cv_lib_GL_glXGetProcAddressARB=yes
8809 else
8810 echo "$as_me: failed program was:" >&5
8811 sed 's/^/| /' conftest.$ac_ext >&5
8813 ac_cv_lib_GL_glXGetProcAddressARB=no
8815 rm -f conftest.err conftest.$ac_objext \
8816 conftest$ac_exeext conftest.$ac_ext
8817 LIBS=$ac_check_lib_save_LIBS
8819 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
8820 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
8821 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
8823 cat >>confdefs.h <<\_ACEOF
8824 #define HAVE_GLX_GETPROCADDRESS 1
8825 _ACEOF
8830 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
8831 then
8832 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
8833 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
8834 if test "${wine_cv_extension_prototypes+set}" = set; then
8835 echo $ECHO_N "(cached) $ECHO_C" >&6
8836 else
8837 cat >conftest.$ac_ext <<_ACEOF
8838 /* confdefs.h. */
8839 _ACEOF
8840 cat confdefs.h >>conftest.$ac_ext
8841 cat >>conftest.$ac_ext <<_ACEOF
8842 /* end confdefs.h. */
8843 #include <GL/gl.h>
8844 #ifdef HAVE_GL_GLEXT_H
8845 # include <GL/glext.h>
8846 #endif
8849 main ()
8851 PFNGLCOLORTABLEEXTPROC test_proc;
8853 return 0;
8855 _ACEOF
8856 rm -f conftest.$ac_objext
8857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8858 (eval $ac_compile) 2>conftest.er1
8859 ac_status=$?
8860 grep -v '^ *+' conftest.er1 >conftest.err
8861 rm -f conftest.er1
8862 cat conftest.err >&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); } &&
8865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8867 (eval $ac_try) 2>&5
8868 ac_status=$?
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); }; } &&
8871 { ac_try='test -s conftest.$ac_objext'
8872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8873 (eval $ac_try) 2>&5
8874 ac_status=$?
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); }; }; then
8877 wine_cv_extension_prototypes="yes"
8878 else
8879 echo "$as_me: failed program was:" >&5
8880 sed 's/^/| /' conftest.$ac_ext >&5
8882 wine_cv_extension_prototypes="no"
8885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8888 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
8889 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
8890 if test "$wine_cv_extension_prototypes" = "yes"
8891 then
8893 cat >>confdefs.h <<\_ACEOF
8894 #define HAVE_GLEXT_PROTOTYPES 1
8895 _ACEOF
8901 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
8902 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8903 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8904 echo $ECHO_N "(cached) $ECHO_C" >&6
8905 else
8906 ac_check_lib_save_LIBS=$LIBS
8907 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
8908 $LIBS"
8909 cat >conftest.$ac_ext <<_ACEOF
8910 /* confdefs.h. */
8911 _ACEOF
8912 cat confdefs.h >>conftest.$ac_ext
8913 cat >>conftest.$ac_ext <<_ACEOF
8914 /* end confdefs.h. */
8916 /* Override any gcc2 internal prototype to avoid an error. */
8917 #ifdef __cplusplus
8918 extern "C"
8919 #endif
8920 /* We use char because int might match the return type of a gcc2
8921 builtin and then its argument prototype would still apply. */
8922 char gluLookAt ();
8924 main ()
8926 gluLookAt ();
8928 return 0;
8930 _ACEOF
8931 rm -f conftest.$ac_objext conftest$ac_exeext
8932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8933 (eval $ac_link) 2>conftest.er1
8934 ac_status=$?
8935 grep -v '^ *+' conftest.er1 >conftest.err
8936 rm -f conftest.er1
8937 cat conftest.err >&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } &&
8940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8942 (eval $ac_try) 2>&5
8943 ac_status=$?
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); }; } &&
8946 { ac_try='test -s conftest$ac_exeext'
8947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8948 (eval $ac_try) 2>&5
8949 ac_status=$?
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; }; then
8952 ac_cv_lib_GLU_gluLookAt=yes
8953 else
8954 echo "$as_me: failed program was:" >&5
8955 sed 's/^/| /' conftest.$ac_ext >&5
8957 ac_cv_lib_GLU_gluLookAt=no
8959 rm -f conftest.err conftest.$ac_objext \
8960 conftest$ac_exeext conftest.$ac_ext
8961 LIBS=$ac_check_lib_save_LIBS
8963 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
8964 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
8965 if test $ac_cv_lib_GLU_gluLookAt = yes; then
8966 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
8967 GLU32FILES='$(GLU32FILES)'
8973 echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
8974 echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6
8975 if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
8976 echo $ECHO_N "(cached) $ECHO_C" >&6
8977 else
8978 ac_check_lib_save_LIBS=$LIBS
8979 LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
8980 cat >conftest.$ac_ext <<_ACEOF
8981 /* confdefs.h. */
8982 _ACEOF
8983 cat confdefs.h >>conftest.$ac_ext
8984 cat >>conftest.$ac_ext <<_ACEOF
8985 /* end confdefs.h. */
8987 /* Override any gcc2 internal prototype to avoid an error. */
8988 #ifdef __cplusplus
8989 extern "C"
8990 #endif
8991 /* We use char because int might match the return type of a gcc2
8992 builtin and then its argument prototype would still apply. */
8993 char glutMainLoop ();
8995 main ()
8997 glutMainLoop ();
8999 return 0;
9001 _ACEOF
9002 rm -f conftest.$ac_objext conftest$ac_exeext
9003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9004 (eval $ac_link) 2>conftest.er1
9005 ac_status=$?
9006 grep -v '^ *+' conftest.er1 >conftest.err
9007 rm -f conftest.er1
9008 cat conftest.err >&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); } &&
9011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9013 (eval $ac_try) 2>&5
9014 ac_status=$?
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); }; } &&
9017 { ac_try='test -s conftest$ac_exeext'
9018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9019 (eval $ac_try) 2>&5
9020 ac_status=$?
9021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 (exit $ac_status); }; }; then
9023 ac_cv_lib_glut_glutMainLoop=yes
9024 else
9025 echo "$as_me: failed program was:" >&5
9026 sed 's/^/| /' conftest.$ac_ext >&5
9028 ac_cv_lib_glut_glutMainLoop=no
9030 rm -f conftest.err conftest.$ac_objext \
9031 conftest$ac_exeext conftest.$ac_ext
9032 LIBS=$ac_check_lib_save_LIBS
9034 echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
9035 echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6
9036 if test $ac_cv_lib_glut_glutMainLoop = yes; then
9037 GLUT_LIBS="-lglut -lXmu -lXi"
9039 GLUT32FILES='$(GLUT32FILES)'
9046 NASLIBS=""
9049 for ac_header in audio/audiolib.h
9051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9053 echo "$as_me:$LINENO: checking for $ac_header" >&5
9054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9056 echo $ECHO_N "(cached) $ECHO_C" >&6
9058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9060 else
9061 # Is the header compilable?
9062 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9063 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9064 cat >conftest.$ac_ext <<_ACEOF
9065 /* confdefs.h. */
9066 _ACEOF
9067 cat confdefs.h >>conftest.$ac_ext
9068 cat >>conftest.$ac_ext <<_ACEOF
9069 /* end confdefs.h. */
9070 $ac_includes_default
9071 #include <$ac_header>
9072 _ACEOF
9073 rm -f conftest.$ac_objext
9074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9075 (eval $ac_compile) 2>conftest.er1
9076 ac_status=$?
9077 grep -v '^ *+' conftest.er1 >conftest.err
9078 rm -f conftest.er1
9079 cat conftest.err >&5
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); } &&
9082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9084 (eval $ac_try) 2>&5
9085 ac_status=$?
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); }; } &&
9088 { ac_try='test -s conftest.$ac_objext'
9089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090 (eval $ac_try) 2>&5
9091 ac_status=$?
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); }; }; then
9094 ac_header_compiler=yes
9095 else
9096 echo "$as_me: failed program was:" >&5
9097 sed 's/^/| /' conftest.$ac_ext >&5
9099 ac_header_compiler=no
9101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9102 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9103 echo "${ECHO_T}$ac_header_compiler" >&6
9105 # Is the header present?
9106 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9107 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9108 cat >conftest.$ac_ext <<_ACEOF
9109 /* confdefs.h. */
9110 _ACEOF
9111 cat confdefs.h >>conftest.$ac_ext
9112 cat >>conftest.$ac_ext <<_ACEOF
9113 /* end confdefs.h. */
9114 #include <$ac_header>
9115 _ACEOF
9116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9117 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9118 ac_status=$?
9119 grep -v '^ *+' conftest.er1 >conftest.err
9120 rm -f conftest.er1
9121 cat conftest.err >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } >/dev/null; then
9124 if test -s conftest.err; then
9125 ac_cpp_err=$ac_c_preproc_warn_flag
9126 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9127 else
9128 ac_cpp_err=
9130 else
9131 ac_cpp_err=yes
9133 if test -z "$ac_cpp_err"; then
9134 ac_header_preproc=yes
9135 else
9136 echo "$as_me: failed program was:" >&5
9137 sed 's/^/| /' conftest.$ac_ext >&5
9139 ac_header_preproc=no
9141 rm -f conftest.err conftest.$ac_ext
9142 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9143 echo "${ECHO_T}$ac_header_preproc" >&6
9145 # So? What about this header?
9146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9147 yes:no: )
9148 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9149 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9151 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9152 ac_header_preproc=yes
9154 no:yes:* )
9155 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9157 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9158 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9159 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9160 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9161 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9162 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9165 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9166 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9168 cat <<\_ASBOX
9169 ## ------------------------------------ ##
9170 ## Report this to wine-devel@winehq.org ##
9171 ## ------------------------------------ ##
9172 _ASBOX
9174 sed "s/^/$as_me: WARNING: /" >&2
9176 esac
9177 echo "$as_me:$LINENO: checking for $ac_header" >&5
9178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9180 echo $ECHO_N "(cached) $ECHO_C" >&6
9181 else
9182 eval "$as_ac_Header=\$ac_header_preproc"
9184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9189 cat >>confdefs.h <<_ACEOF
9190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9191 _ACEOF
9193 for ac_header in audio/soundlib.h
9195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9196 echo "$as_me:$LINENO: checking for $ac_header" >&5
9197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9199 echo $ECHO_N "(cached) $ECHO_C" >&6
9200 else
9201 cat >conftest.$ac_ext <<_ACEOF
9202 /* confdefs.h. */
9203 _ACEOF
9204 cat confdefs.h >>conftest.$ac_ext
9205 cat >>conftest.$ac_ext <<_ACEOF
9206 /* end confdefs.h. */
9207 #include <audio/audiolib.h>
9209 #include <$ac_header>
9210 _ACEOF
9211 rm -f conftest.$ac_objext
9212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9213 (eval $ac_compile) 2>conftest.er1
9214 ac_status=$?
9215 grep -v '^ *+' conftest.er1 >conftest.err
9216 rm -f conftest.er1
9217 cat conftest.err >&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); } &&
9220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9222 (eval $ac_try) 2>&5
9223 ac_status=$?
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); }; } &&
9226 { ac_try='test -s conftest.$ac_objext'
9227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9228 (eval $ac_try) 2>&5
9229 ac_status=$?
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); }; }; then
9232 eval "$as_ac_Header=yes"
9233 else
9234 echo "$as_me: failed program was:" >&5
9235 sed 's/^/| /' conftest.$ac_ext >&5
9237 eval "$as_ac_Header=no"
9239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9244 cat >>confdefs.h <<_ACEOF
9245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9246 _ACEOF
9250 done
9252 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
9253 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
9254 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
9255 echo $ECHO_N "(cached) $ECHO_C" >&6
9256 else
9257 ac_check_lib_save_LIBS=$LIBS
9258 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9259 cat >conftest.$ac_ext <<_ACEOF
9260 /* confdefs.h. */
9261 _ACEOF
9262 cat confdefs.h >>conftest.$ac_ext
9263 cat >>conftest.$ac_ext <<_ACEOF
9264 /* end confdefs.h. */
9266 /* Override any gcc2 internal prototype to avoid an error. */
9267 #ifdef __cplusplus
9268 extern "C"
9269 #endif
9270 /* We use char because int might match the return type of a gcc2
9271 builtin and then its argument prototype would still apply. */
9272 char AuCreateFlow ();
9274 main ()
9276 AuCreateFlow ();
9278 return 0;
9280 _ACEOF
9281 rm -f conftest.$ac_objext conftest$ac_exeext
9282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9283 (eval $ac_link) 2>conftest.er1
9284 ac_status=$?
9285 grep -v '^ *+' conftest.er1 >conftest.err
9286 rm -f conftest.er1
9287 cat conftest.err >&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); } &&
9290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9292 (eval $ac_try) 2>&5
9293 ac_status=$?
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); }; } &&
9296 { ac_try='test -s conftest$ac_exeext'
9297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9298 (eval $ac_try) 2>&5
9299 ac_status=$?
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); }; }; then
9302 ac_cv_lib_audio_AuCreateFlow=yes
9303 else
9304 echo "$as_me: failed program was:" >&5
9305 sed 's/^/| /' conftest.$ac_ext >&5
9307 ac_cv_lib_audio_AuCreateFlow=no
9309 rm -f conftest.err conftest.$ac_objext \
9310 conftest$ac_exeext conftest.$ac_ext
9311 LIBS=$ac_check_lib_save_LIBS
9313 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
9314 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
9315 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
9317 cat >>confdefs.h <<\_ACEOF
9318 #define HAVE_NAS 1
9319 _ACEOF
9321 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
9326 done
9329 CPPFLAGS="$ac_save_CPPFLAGS"
9330 XFILES='$(XFILES)'
9331 else
9332 XLIB=""
9333 X_CFLAGS=""
9334 X_LIBS=""
9337 CURSESLIBS=""
9338 if test "x$with_curses" != "xno"
9339 then
9341 for ac_header in ncurses.h
9343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9345 echo "$as_me:$LINENO: checking for $ac_header" >&5
9346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9348 echo $ECHO_N "(cached) $ECHO_C" >&6
9350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9352 else
9353 # Is the header compilable?
9354 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9355 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9356 cat >conftest.$ac_ext <<_ACEOF
9357 /* confdefs.h. */
9358 _ACEOF
9359 cat confdefs.h >>conftest.$ac_ext
9360 cat >>conftest.$ac_ext <<_ACEOF
9361 /* end confdefs.h. */
9362 $ac_includes_default
9363 #include <$ac_header>
9364 _ACEOF
9365 rm -f conftest.$ac_objext
9366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9367 (eval $ac_compile) 2>conftest.er1
9368 ac_status=$?
9369 grep -v '^ *+' conftest.er1 >conftest.err
9370 rm -f conftest.er1
9371 cat conftest.err >&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); } &&
9374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9376 (eval $ac_try) 2>&5
9377 ac_status=$?
9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379 (exit $ac_status); }; } &&
9380 { ac_try='test -s conftest.$ac_objext'
9381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9382 (eval $ac_try) 2>&5
9383 ac_status=$?
9384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385 (exit $ac_status); }; }; then
9386 ac_header_compiler=yes
9387 else
9388 echo "$as_me: failed program was:" >&5
9389 sed 's/^/| /' conftest.$ac_ext >&5
9391 ac_header_compiler=no
9393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9394 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9395 echo "${ECHO_T}$ac_header_compiler" >&6
9397 # Is the header present?
9398 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9399 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9400 cat >conftest.$ac_ext <<_ACEOF
9401 /* confdefs.h. */
9402 _ACEOF
9403 cat confdefs.h >>conftest.$ac_ext
9404 cat >>conftest.$ac_ext <<_ACEOF
9405 /* end confdefs.h. */
9406 #include <$ac_header>
9407 _ACEOF
9408 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9409 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9410 ac_status=$?
9411 grep -v '^ *+' conftest.er1 >conftest.err
9412 rm -f conftest.er1
9413 cat conftest.err >&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); } >/dev/null; then
9416 if test -s conftest.err; then
9417 ac_cpp_err=$ac_c_preproc_warn_flag
9418 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9419 else
9420 ac_cpp_err=
9422 else
9423 ac_cpp_err=yes
9425 if test -z "$ac_cpp_err"; then
9426 ac_header_preproc=yes
9427 else
9428 echo "$as_me: failed program was:" >&5
9429 sed 's/^/| /' conftest.$ac_ext >&5
9431 ac_header_preproc=no
9433 rm -f conftest.err conftest.$ac_ext
9434 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9435 echo "${ECHO_T}$ac_header_preproc" >&6
9437 # So? What about this header?
9438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9439 yes:no: )
9440 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9441 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9443 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9444 ac_header_preproc=yes
9446 no:yes:* )
9447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9450 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9451 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9452 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9453 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9454 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9457 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9458 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9460 cat <<\_ASBOX
9461 ## ------------------------------------ ##
9462 ## Report this to wine-devel@winehq.org ##
9463 ## ------------------------------------ ##
9464 _ASBOX
9466 sed "s/^/$as_me: WARNING: /" >&2
9468 esac
9469 echo "$as_me:$LINENO: checking for $ac_header" >&5
9470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9472 echo $ECHO_N "(cached) $ECHO_C" >&6
9473 else
9474 eval "$as_ac_Header=\$ac_header_preproc"
9476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9481 cat >>confdefs.h <<_ACEOF
9482 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9483 _ACEOF
9484 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
9485 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
9486 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
9487 echo $ECHO_N "(cached) $ECHO_C" >&6
9488 else
9489 ac_check_lib_save_LIBS=$LIBS
9490 LIBS="-lncurses $LIBS"
9491 cat >conftest.$ac_ext <<_ACEOF
9492 /* confdefs.h. */
9493 _ACEOF
9494 cat confdefs.h >>conftest.$ac_ext
9495 cat >>conftest.$ac_ext <<_ACEOF
9496 /* end confdefs.h. */
9498 /* Override any gcc2 internal prototype to avoid an error. */
9499 #ifdef __cplusplus
9500 extern "C"
9501 #endif
9502 /* We use char because int might match the return type of a gcc2
9503 builtin and then its argument prototype would still apply. */
9504 char waddch ();
9506 main ()
9508 waddch ();
9510 return 0;
9512 _ACEOF
9513 rm -f conftest.$ac_objext conftest$ac_exeext
9514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9515 (eval $ac_link) 2>conftest.er1
9516 ac_status=$?
9517 grep -v '^ *+' conftest.er1 >conftest.err
9518 rm -f conftest.er1
9519 cat conftest.err >&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); } &&
9522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9524 (eval $ac_try) 2>&5
9525 ac_status=$?
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); }; } &&
9528 { ac_try='test -s conftest$ac_exeext'
9529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9530 (eval $ac_try) 2>&5
9531 ac_status=$?
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); }; }; then
9534 ac_cv_lib_ncurses_waddch=yes
9535 else
9536 echo "$as_me: failed program was:" >&5
9537 sed 's/^/| /' conftest.$ac_ext >&5
9539 ac_cv_lib_ncurses_waddch=no
9541 rm -f conftest.err conftest.$ac_objext \
9542 conftest$ac_exeext conftest.$ac_ext
9543 LIBS=$ac_check_lib_save_LIBS
9545 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
9546 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
9547 if test $ac_cv_lib_ncurses_waddch = yes; then
9549 cat >>confdefs.h <<\_ACEOF
9550 #define HAVE_LIBNCURSES 1
9551 _ACEOF
9553 CURSESLIBS="-lncurses"
9554 else
9556 for ac_header in curses.h
9558 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9560 echo "$as_me:$LINENO: checking for $ac_header" >&5
9561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9563 echo $ECHO_N "(cached) $ECHO_C" >&6
9565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9566 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9567 else
9568 # Is the header compilable?
9569 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9570 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9571 cat >conftest.$ac_ext <<_ACEOF
9572 /* confdefs.h. */
9573 _ACEOF
9574 cat confdefs.h >>conftest.$ac_ext
9575 cat >>conftest.$ac_ext <<_ACEOF
9576 /* end confdefs.h. */
9577 $ac_includes_default
9578 #include <$ac_header>
9579 _ACEOF
9580 rm -f conftest.$ac_objext
9581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9582 (eval $ac_compile) 2>conftest.er1
9583 ac_status=$?
9584 grep -v '^ *+' conftest.er1 >conftest.err
9585 rm -f conftest.er1
9586 cat conftest.err >&5
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); } &&
9589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9591 (eval $ac_try) 2>&5
9592 ac_status=$?
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); }; } &&
9595 { ac_try='test -s conftest.$ac_objext'
9596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9597 (eval $ac_try) 2>&5
9598 ac_status=$?
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); }; }; then
9601 ac_header_compiler=yes
9602 else
9603 echo "$as_me: failed program was:" >&5
9604 sed 's/^/| /' conftest.$ac_ext >&5
9606 ac_header_compiler=no
9608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9609 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9610 echo "${ECHO_T}$ac_header_compiler" >&6
9612 # Is the header present?
9613 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9614 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9615 cat >conftest.$ac_ext <<_ACEOF
9616 /* confdefs.h. */
9617 _ACEOF
9618 cat confdefs.h >>conftest.$ac_ext
9619 cat >>conftest.$ac_ext <<_ACEOF
9620 /* end confdefs.h. */
9621 #include <$ac_header>
9622 _ACEOF
9623 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9624 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9625 ac_status=$?
9626 grep -v '^ *+' conftest.er1 >conftest.err
9627 rm -f conftest.er1
9628 cat conftest.err >&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); } >/dev/null; then
9631 if test -s conftest.err; then
9632 ac_cpp_err=$ac_c_preproc_warn_flag
9633 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9634 else
9635 ac_cpp_err=
9637 else
9638 ac_cpp_err=yes
9640 if test -z "$ac_cpp_err"; then
9641 ac_header_preproc=yes
9642 else
9643 echo "$as_me: failed program was:" >&5
9644 sed 's/^/| /' conftest.$ac_ext >&5
9646 ac_header_preproc=no
9648 rm -f conftest.err conftest.$ac_ext
9649 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9650 echo "${ECHO_T}$ac_header_preproc" >&6
9652 # So? What about this header?
9653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9654 yes:no: )
9655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9659 ac_header_preproc=yes
9661 no:yes:* )
9662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9665 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9669 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9675 cat <<\_ASBOX
9676 ## ------------------------------------ ##
9677 ## Report this to wine-devel@winehq.org ##
9678 ## ------------------------------------ ##
9679 _ASBOX
9681 sed "s/^/$as_me: WARNING: /" >&2
9683 esac
9684 echo "$as_me:$LINENO: checking for $ac_header" >&5
9685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9688 else
9689 eval "$as_ac_Header=\$ac_header_preproc"
9691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9696 cat >>confdefs.h <<_ACEOF
9697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9698 _ACEOF
9699 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
9700 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
9701 if test "${ac_cv_lib_curses_waddch+set}" = set; then
9702 echo $ECHO_N "(cached) $ECHO_C" >&6
9703 else
9704 ac_check_lib_save_LIBS=$LIBS
9705 LIBS="-lcurses $LIBS"
9706 cat >conftest.$ac_ext <<_ACEOF
9707 /* confdefs.h. */
9708 _ACEOF
9709 cat confdefs.h >>conftest.$ac_ext
9710 cat >>conftest.$ac_ext <<_ACEOF
9711 /* end confdefs.h. */
9713 /* Override any gcc2 internal prototype to avoid an error. */
9714 #ifdef __cplusplus
9715 extern "C"
9716 #endif
9717 /* We use char because int might match the return type of a gcc2
9718 builtin and then its argument prototype would still apply. */
9719 char waddch ();
9721 main ()
9723 waddch ();
9725 return 0;
9727 _ACEOF
9728 rm -f conftest.$ac_objext conftest$ac_exeext
9729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9730 (eval $ac_link) 2>conftest.er1
9731 ac_status=$?
9732 grep -v '^ *+' conftest.er1 >conftest.err
9733 rm -f conftest.er1
9734 cat conftest.err >&5
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); } &&
9737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9739 (eval $ac_try) 2>&5
9740 ac_status=$?
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); }; } &&
9743 { ac_try='test -s conftest$ac_exeext'
9744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745 (eval $ac_try) 2>&5
9746 ac_status=$?
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); }; }; then
9749 ac_cv_lib_curses_waddch=yes
9750 else
9751 echo "$as_me: failed program was:" >&5
9752 sed 's/^/| /' conftest.$ac_ext >&5
9754 ac_cv_lib_curses_waddch=no
9756 rm -f conftest.err conftest.$ac_objext \
9757 conftest$ac_exeext conftest.$ac_ext
9758 LIBS=$ac_check_lib_save_LIBS
9760 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
9761 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
9762 if test $ac_cv_lib_curses_waddch = yes; then
9764 cat >>confdefs.h <<\_ACEOF
9765 #define HAVE_LIBCURSES 1
9766 _ACEOF
9768 CURSESLIBS="-lcurses"
9773 done
9779 done
9781 saved_libs="$LIBS"
9782 LIBS="$CURSESLIBS $LIBS"
9785 for ac_func in getbkgd resizeterm
9787 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9788 echo "$as_me:$LINENO: checking for $ac_func" >&5
9789 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9790 if eval "test \"\${$as_ac_var+set}\" = set"; then
9791 echo $ECHO_N "(cached) $ECHO_C" >&6
9792 else
9793 cat >conftest.$ac_ext <<_ACEOF
9794 /* confdefs.h. */
9795 _ACEOF
9796 cat confdefs.h >>conftest.$ac_ext
9797 cat >>conftest.$ac_ext <<_ACEOF
9798 /* end confdefs.h. */
9799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9801 #define $ac_func innocuous_$ac_func
9803 /* System header to define __stub macros and hopefully few prototypes,
9804 which can conflict with char $ac_func (); below.
9805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9806 <limits.h> exists even on freestanding compilers. */
9808 #ifdef __STDC__
9809 # include <limits.h>
9810 #else
9811 # include <assert.h>
9812 #endif
9814 #undef $ac_func
9816 /* Override any gcc2 internal prototype to avoid an error. */
9817 #ifdef __cplusplus
9818 extern "C"
9820 #endif
9821 /* We use char because int might match the return type of a gcc2
9822 builtin and then its argument prototype would still apply. */
9823 char $ac_func ();
9824 /* The GNU C library defines this for functions which it implements
9825 to always fail with ENOSYS. Some functions are actually named
9826 something starting with __ and the normal name is an alias. */
9827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9828 choke me
9829 #else
9830 char (*f) () = $ac_func;
9831 #endif
9832 #ifdef __cplusplus
9834 #endif
9837 main ()
9839 return f != $ac_func;
9841 return 0;
9843 _ACEOF
9844 rm -f conftest.$ac_objext conftest$ac_exeext
9845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9846 (eval $ac_link) 2>conftest.er1
9847 ac_status=$?
9848 grep -v '^ *+' conftest.er1 >conftest.err
9849 rm -f conftest.er1
9850 cat conftest.err >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); } &&
9853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855 (eval $ac_try) 2>&5
9856 ac_status=$?
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }; } &&
9859 { ac_try='test -s conftest$ac_exeext'
9860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861 (eval $ac_try) 2>&5
9862 ac_status=$?
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); }; }; then
9865 eval "$as_ac_var=yes"
9866 else
9867 echo "$as_me: failed program was:" >&5
9868 sed 's/^/| /' conftest.$ac_ext >&5
9870 eval "$as_ac_var=no"
9872 rm -f conftest.err conftest.$ac_objext \
9873 conftest$ac_exeext conftest.$ac_ext
9875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9876 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9877 if test `eval echo '${'$as_ac_var'}'` = yes; then
9878 cat >>confdefs.h <<_ACEOF
9879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9880 _ACEOF
9883 done
9885 LIBS="$saved_libs"
9889 # Extract the first word of "sane-config", so it can be a program name with args.
9890 set dummy sane-config; ac_word=$2
9891 echo "$as_me:$LINENO: checking for $ac_word" >&5
9892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9893 if test "${ac_cv_prog_sane_devel+set}" = set; then
9894 echo $ECHO_N "(cached) $ECHO_C" >&6
9895 else
9896 if test -n "$sane_devel"; then
9897 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9898 else
9899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9900 for as_dir in $PATH
9902 IFS=$as_save_IFS
9903 test -z "$as_dir" && as_dir=.
9904 for ac_exec_ext in '' $ac_executable_extensions; do
9905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9906 ac_cv_prog_sane_devel="sane-config"
9907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9908 break 2
9910 done
9911 done
9913 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9916 sane_devel=$ac_cv_prog_sane_devel
9917 if test -n "$sane_devel"; then
9918 echo "$as_me:$LINENO: result: $sane_devel" >&5
9919 echo "${ECHO_T}$sane_devel" >&6
9920 else
9921 echo "$as_me:$LINENO: result: no" >&5
9922 echo "${ECHO_T}no" >&6
9925 if test "$sane_devel" = "no"
9926 then
9927 SANELIBS=""
9928 SANEINCL=""
9929 else
9930 SANELIBS="`$sane_devel --libs`"
9931 SANEINCL="`$sane_devel --cflags`"
9932 ac_save_CPPFLAGS="$CPPFLAGS"
9933 ac_save_LIBS="$LIBS"
9934 CPPFLAGS="$CPPFLAGS $SANEINCL"
9935 LIBS="$LIBS $SANELIBS"
9936 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9937 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9938 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9939 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9940 echo $ECHO_N "(cached) $ECHO_C" >&6
9942 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9943 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
9944 else
9945 # Is the header compilable?
9946 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
9947 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
9948 cat >conftest.$ac_ext <<_ACEOF
9949 /* confdefs.h. */
9950 _ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h. */
9954 $ac_includes_default
9955 #include <sane/sane.h>
9956 _ACEOF
9957 rm -f conftest.$ac_objext
9958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9959 (eval $ac_compile) 2>conftest.er1
9960 ac_status=$?
9961 grep -v '^ *+' conftest.er1 >conftest.err
9962 rm -f conftest.er1
9963 cat conftest.err >&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); } &&
9966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968 (eval $ac_try) 2>&5
9969 ac_status=$?
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; } &&
9972 { ac_try='test -s conftest.$ac_objext'
9973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974 (eval $ac_try) 2>&5
9975 ac_status=$?
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; }; then
9978 ac_header_compiler=yes
9979 else
9980 echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.$ac_ext >&5
9983 ac_header_compiler=no
9985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9986 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9987 echo "${ECHO_T}$ac_header_compiler" >&6
9989 # Is the header present?
9990 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
9991 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
9992 cat >conftest.$ac_ext <<_ACEOF
9993 /* confdefs.h. */
9994 _ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h. */
9998 #include <sane/sane.h>
9999 _ACEOF
10000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10002 ac_status=$?
10003 grep -v '^ *+' conftest.er1 >conftest.err
10004 rm -f conftest.er1
10005 cat conftest.err >&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); } >/dev/null; then
10008 if test -s conftest.err; then
10009 ac_cpp_err=$ac_c_preproc_warn_flag
10010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10011 else
10012 ac_cpp_err=
10014 else
10015 ac_cpp_err=yes
10017 if test -z "$ac_cpp_err"; then
10018 ac_header_preproc=yes
10019 else
10020 echo "$as_me: failed program was:" >&5
10021 sed 's/^/| /' conftest.$ac_ext >&5
10023 ac_header_preproc=no
10025 rm -f conftest.err conftest.$ac_ext
10026 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10027 echo "${ECHO_T}$ac_header_preproc" >&6
10029 # So? What about this header?
10030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10031 yes:no: )
10032 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
10033 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10034 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
10035 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
10036 ac_header_preproc=yes
10038 no:yes:* )
10039 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
10040 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
10041 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
10042 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
10043 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
10044 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
10045 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
10046 echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
10047 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
10048 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
10049 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
10050 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
10052 cat <<\_ASBOX
10053 ## ------------------------------------ ##
10054 ## Report this to wine-devel@winehq.org ##
10055 ## ------------------------------------ ##
10056 _ASBOX
10058 sed "s/^/$as_me: WARNING: /" >&2
10060 esac
10061 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
10062 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
10063 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10064 echo $ECHO_N "(cached) $ECHO_C" >&6
10065 else
10066 ac_cv_header_sane_sane_h=$ac_header_preproc
10068 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
10069 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
10072 if test $ac_cv_header_sane_sane_h = yes; then
10073 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
10074 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
10075 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
10076 echo $ECHO_N "(cached) $ECHO_C" >&6
10077 else
10078 ac_check_lib_save_LIBS=$LIBS
10079 LIBS="-lsane $LIBS"
10080 cat >conftest.$ac_ext <<_ACEOF
10081 /* confdefs.h. */
10082 _ACEOF
10083 cat confdefs.h >>conftest.$ac_ext
10084 cat >>conftest.$ac_ext <<_ACEOF
10085 /* end confdefs.h. */
10087 /* Override any gcc2 internal prototype to avoid an error. */
10088 #ifdef __cplusplus
10089 extern "C"
10090 #endif
10091 /* We use char because int might match the return type of a gcc2
10092 builtin and then its argument prototype would still apply. */
10093 char sane_open ();
10095 main ()
10097 sane_open ();
10099 return 0;
10101 _ACEOF
10102 rm -f conftest.$ac_objext conftest$ac_exeext
10103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10104 (eval $ac_link) 2>conftest.er1
10105 ac_status=$?
10106 grep -v '^ *+' conftest.er1 >conftest.err
10107 rm -f conftest.er1
10108 cat conftest.err >&5
10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); } &&
10111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10113 (eval $ac_try) 2>&5
10114 ac_status=$?
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); }; } &&
10117 { ac_try='test -s conftest$ac_exeext'
10118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119 (eval $ac_try) 2>&5
10120 ac_status=$?
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); }; }; then
10123 ac_cv_lib_sane_sane_open=yes
10124 else
10125 echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.$ac_ext >&5
10128 ac_cv_lib_sane_sane_open=no
10130 rm -f conftest.err conftest.$ac_objext \
10131 conftest$ac_exeext conftest.$ac_ext
10132 LIBS=$ac_check_lib_save_LIBS
10134 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
10135 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
10136 if test $ac_cv_lib_sane_sane_open = yes; then
10138 cat >>confdefs.h <<\_ACEOF
10139 #define HAVE_SANE 1
10140 _ACEOF
10142 else
10143 SANELIBS=""
10144 SANEINCL=""
10147 else
10148 SANELIBS=""
10149 SANEINCL=""
10153 LIBS="$ac_save_LIBS"
10154 CPPFLAGS="$ac_save_CPPFLAGS"
10160 for ac_header in unicode/ubidi.h
10162 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10164 echo "$as_me:$LINENO: checking for $ac_header" >&5
10165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10167 echo $ECHO_N "(cached) $ECHO_C" >&6
10169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10170 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10171 else
10172 # Is the header compilable?
10173 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10174 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10175 cat >conftest.$ac_ext <<_ACEOF
10176 /* confdefs.h. */
10177 _ACEOF
10178 cat confdefs.h >>conftest.$ac_ext
10179 cat >>conftest.$ac_ext <<_ACEOF
10180 /* end confdefs.h. */
10181 $ac_includes_default
10182 #include <$ac_header>
10183 _ACEOF
10184 rm -f conftest.$ac_objext
10185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10186 (eval $ac_compile) 2>conftest.er1
10187 ac_status=$?
10188 grep -v '^ *+' conftest.er1 >conftest.err
10189 rm -f conftest.er1
10190 cat conftest.err >&5
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); } &&
10193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10195 (eval $ac_try) 2>&5
10196 ac_status=$?
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); }; } &&
10199 { ac_try='test -s conftest.$ac_objext'
10200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10201 (eval $ac_try) 2>&5
10202 ac_status=$?
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); }; }; then
10205 ac_header_compiler=yes
10206 else
10207 echo "$as_me: failed program was:" >&5
10208 sed 's/^/| /' conftest.$ac_ext >&5
10210 ac_header_compiler=no
10212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10213 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10214 echo "${ECHO_T}$ac_header_compiler" >&6
10216 # Is the header present?
10217 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10218 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10219 cat >conftest.$ac_ext <<_ACEOF
10220 /* confdefs.h. */
10221 _ACEOF
10222 cat confdefs.h >>conftest.$ac_ext
10223 cat >>conftest.$ac_ext <<_ACEOF
10224 /* end confdefs.h. */
10225 #include <$ac_header>
10226 _ACEOF
10227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10228 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10229 ac_status=$?
10230 grep -v '^ *+' conftest.er1 >conftest.err
10231 rm -f conftest.er1
10232 cat conftest.err >&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } >/dev/null; then
10235 if test -s conftest.err; then
10236 ac_cpp_err=$ac_c_preproc_warn_flag
10237 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10238 else
10239 ac_cpp_err=
10241 else
10242 ac_cpp_err=yes
10244 if test -z "$ac_cpp_err"; then
10245 ac_header_preproc=yes
10246 else
10247 echo "$as_me: failed program was:" >&5
10248 sed 's/^/| /' conftest.$ac_ext >&5
10250 ac_header_preproc=no
10252 rm -f conftest.err conftest.$ac_ext
10253 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10254 echo "${ECHO_T}$ac_header_preproc" >&6
10256 # So? What about this header?
10257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10258 yes:no: )
10259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10262 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10263 ac_header_preproc=yes
10265 no:yes:* )
10266 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10268 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10269 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10270 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10271 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10272 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10273 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10276 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10277 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10279 cat <<\_ASBOX
10280 ## ------------------------------------ ##
10281 ## Report this to wine-devel@winehq.org ##
10282 ## ------------------------------------ ##
10283 _ASBOX
10285 sed "s/^/$as_me: WARNING: /" >&2
10287 esac
10288 echo "$as_me:$LINENO: checking for $ac_header" >&5
10289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10291 echo $ECHO_N "(cached) $ECHO_C" >&6
10292 else
10293 eval "$as_ac_Header=\$ac_header_preproc"
10295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10300 cat >>confdefs.h <<_ACEOF
10301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10302 _ACEOF
10306 done
10308 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
10309 then
10310 saved_libs="$LIBS"
10311 ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
10312 ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libsicuuc.a}"
10313 ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libsicudata.a}"
10314 echo "$as_me:$LINENO: checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB" >&5
10315 echo $ECHO_N "checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB... $ECHO_C" >&6
10316 LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
10317 cat >conftest.$ac_ext <<_ACEOF
10318 /* confdefs.h. */
10319 _ACEOF
10320 cat confdefs.h >>conftest.$ac_ext
10321 cat >>conftest.$ac_ext <<_ACEOF
10322 /* end confdefs.h. */
10323 #include <unicode/ubidi.h>
10325 main ()
10327 ubidi_open()
10329 return 0;
10331 _ACEOF
10332 rm -f conftest.$ac_objext conftest$ac_exeext
10333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10334 (eval $ac_link) 2>conftest.er1
10335 ac_status=$?
10336 grep -v '^ *+' conftest.er1 >conftest.err
10337 rm -f conftest.er1
10338 cat conftest.err >&5
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); } &&
10341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343 (eval $ac_try) 2>&5
10344 ac_status=$?
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); }; } &&
10347 { ac_try='test -s conftest$ac_exeext'
10348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10349 (eval $ac_try) 2>&5
10350 ac_status=$?
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); }; }; then
10354 cat >>confdefs.h <<\_ACEOF
10355 #define HAVE_ICU 1
10356 _ACEOF
10358 ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
10360 echo "$as_me:$LINENO: result: yes" >&5
10361 echo "${ECHO_T}yes" >&6
10362 else
10363 echo "$as_me: failed program was:" >&5
10364 sed 's/^/| /' conftest.$ac_ext >&5
10366 echo "$as_me:$LINENO: result: no" >&5
10367 echo "${ECHO_T}no" >&6
10369 rm -f conftest.err conftest.$ac_objext \
10370 conftest$ac_exeext conftest.$ac_ext
10371 LIBS="$saved_libs"
10374 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
10375 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
10376 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10377 echo $ECHO_N "(cached) $ECHO_C" >&6
10378 else
10379 ac_check_lib_save_LIBS=$LIBS
10380 LIBS="-lfreetype $X_LIBS $LIBS"
10381 cat >conftest.$ac_ext <<_ACEOF
10382 /* confdefs.h. */
10383 _ACEOF
10384 cat confdefs.h >>conftest.$ac_ext
10385 cat >>conftest.$ac_ext <<_ACEOF
10386 /* end confdefs.h. */
10388 /* Override any gcc2 internal prototype to avoid an error. */
10389 #ifdef __cplusplus
10390 extern "C"
10391 #endif
10392 /* We use char because int might match the return type of a gcc2
10393 builtin and then its argument prototype would still apply. */
10394 char FT_Init_FreeType ();
10396 main ()
10398 FT_Init_FreeType ();
10400 return 0;
10402 _ACEOF
10403 rm -f conftest.$ac_objext conftest$ac_exeext
10404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10405 (eval $ac_link) 2>conftest.er1
10406 ac_status=$?
10407 grep -v '^ *+' conftest.er1 >conftest.err
10408 rm -f conftest.er1
10409 cat conftest.err >&5
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); } &&
10412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10414 (eval $ac_try) 2>&5
10415 ac_status=$?
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); }; } &&
10418 { ac_try='test -s conftest$ac_exeext'
10419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10420 (eval $ac_try) 2>&5
10421 ac_status=$?
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); }; }; then
10424 ac_cv_lib_freetype_FT_Init_FreeType=yes
10425 else
10426 echo "$as_me: failed program was:" >&5
10427 sed 's/^/| /' conftest.$ac_ext >&5
10429 ac_cv_lib_freetype_FT_Init_FreeType=no
10431 rm -f conftest.err conftest.$ac_objext \
10432 conftest$ac_exeext conftest.$ac_ext
10433 LIBS=$ac_check_lib_save_LIBS
10435 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10436 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10437 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10438 ft_lib=yes
10439 else
10440 ft_lib=no
10443 if test "$ft_lib" = "no"
10444 then
10445 FREETYPEINCL=""
10446 wine_cv_msg_freetype=no
10447 else
10448 # Extract the first word of "freetype-config", so it can be a program name with args.
10449 set dummy freetype-config; ac_word=$2
10450 echo "$as_me:$LINENO: checking for $ac_word" >&5
10451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10452 if test "${ac_cv_prog_ft_devel+set}" = set; then
10453 echo $ECHO_N "(cached) $ECHO_C" >&6
10454 else
10455 if test -n "$ft_devel"; then
10456 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10457 else
10458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10459 for as_dir in $PATH
10461 IFS=$as_save_IFS
10462 test -z "$as_dir" && as_dir=.
10463 for ac_exec_ext in '' $ac_executable_extensions; do
10464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10465 ac_cv_prog_ft_devel="freetype-config"
10466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10467 break 2
10469 done
10470 done
10472 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
10475 ft_devel=$ac_cv_prog_ft_devel
10476 if test -n "$ft_devel"; then
10477 echo "$as_me:$LINENO: result: $ft_devel" >&5
10478 echo "${ECHO_T}$ft_devel" >&6
10479 else
10480 echo "$as_me:$LINENO: result: no" >&5
10481 echo "${ECHO_T}no" >&6
10484 if test "$ft_devel" = "no"
10485 then
10486 # Extract the first word of "freetype2-config", so it can be a program name with args.
10487 set dummy freetype2-config; ac_word=$2
10488 echo "$as_me:$LINENO: checking for $ac_word" >&5
10489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10490 if test "${ac_cv_prog_ft_devel2+set}" = set; then
10491 echo $ECHO_N "(cached) $ECHO_C" >&6
10492 else
10493 if test -n "$ft_devel2"; then
10494 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
10495 else
10496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10497 for as_dir in $PATH
10499 IFS=$as_save_IFS
10500 test -z "$as_dir" && as_dir=.
10501 for ac_exec_ext in '' $ac_executable_extensions; do
10502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10503 ac_cv_prog_ft_devel2="freetype2-config"
10504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10505 break 2
10507 done
10508 done
10510 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
10513 ft_devel2=$ac_cv_prog_ft_devel2
10514 if test -n "$ft_devel2"; then
10515 echo "$as_me:$LINENO: result: $ft_devel2" >&5
10516 echo "${ECHO_T}$ft_devel2" >&6
10517 else
10518 echo "$as_me:$LINENO: result: no" >&5
10519 echo "${ECHO_T}no" >&6
10522 if test "$ft_devel2" = "freetype2-config"
10523 then
10524 ft_devel=$ft_devel2
10527 if test "$ft_devel" = "no"
10528 then
10529 FREETYPEINCL=""
10530 wine_cv_msg_freetype=yes
10531 else
10532 FREETYPEINCL=`$ft_devel --cflags`
10533 ac_save_CPPFLAGS="$CPPFLAGS"
10534 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
10545 for ac_header in ft2build.h \
10546 freetype/freetype.h \
10547 freetype/ftglyph.h \
10548 freetype/tttables.h \
10549 freetype/ftnames.h \
10550 freetype/ftsnames.h \
10551 freetype/ttnameid.h \
10552 freetype/ftoutln.h \
10553 freetype/ftwinfnt.h \
10554 freetype/internal/sfnt.h
10556 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10557 echo "$as_me:$LINENO: checking for $ac_header" >&5
10558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10560 echo $ECHO_N "(cached) $ECHO_C" >&6
10561 else
10562 cat >conftest.$ac_ext <<_ACEOF
10563 /* confdefs.h. */
10564 _ACEOF
10565 cat confdefs.h >>conftest.$ac_ext
10566 cat >>conftest.$ac_ext <<_ACEOF
10567 /* end confdefs.h. */
10568 #if HAVE_FT2BUILD_H
10569 #include <ft2build.h>
10570 #endif
10572 #include <$ac_header>
10573 _ACEOF
10574 rm -f conftest.$ac_objext
10575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10576 (eval $ac_compile) 2>conftest.er1
10577 ac_status=$?
10578 grep -v '^ *+' conftest.er1 >conftest.err
10579 rm -f conftest.er1
10580 cat conftest.err >&5
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); } &&
10583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10585 (eval $ac_try) 2>&5
10586 ac_status=$?
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); }; } &&
10589 { ac_try='test -s conftest.$ac_objext'
10590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10591 (eval $ac_try) 2>&5
10592 ac_status=$?
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); }; }; then
10595 eval "$as_ac_Header=yes"
10596 else
10597 echo "$as_me: failed program was:" >&5
10598 sed 's/^/| /' conftest.$ac_ext >&5
10600 eval "$as_ac_Header=no"
10602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10607 cat >>confdefs.h <<_ACEOF
10608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10609 _ACEOF
10613 done
10615 cat >conftest.$ac_ext <<_ACEOF
10616 /* confdefs.h. */
10617 _ACEOF
10618 cat confdefs.h >>conftest.$ac_ext
10619 cat >>conftest.$ac_ext <<_ACEOF
10620 /* end confdefs.h. */
10621 #include <ft2build.h>
10622 #include <freetype/fttrigon.h>
10623 _ACEOF
10624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10626 ac_status=$?
10627 grep -v '^ *+' conftest.er1 >conftest.err
10628 rm -f conftest.er1
10629 cat conftest.err >&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); } >/dev/null; then
10632 if test -s conftest.err; then
10633 ac_cpp_err=$ac_c_preproc_warn_flag
10634 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10635 else
10636 ac_cpp_err=
10638 else
10639 ac_cpp_err=yes
10641 if test -z "$ac_cpp_err"; then
10643 cat >>confdefs.h <<\_ACEOF
10644 #define HAVE_FREETYPE_FTTRIGON_H 1
10645 _ACEOF
10647 wine_cv_fttrigon=yes
10648 else
10649 echo "$as_me: failed program was:" >&5
10650 sed 's/^/| /' conftest.$ac_ext >&5
10652 wine_cv_fttrigon=no
10654 rm -f conftest.err conftest.$ac_ext
10655 CPPFLAGS="$ac_save_CPPFLAGS"
10656 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10657 then
10659 cat >>confdefs.h <<\_ACEOF
10660 #define HAVE_FREETYPE 1
10661 _ACEOF
10663 wine_cv_msg_freetype=no
10664 else
10665 FREETYPEINCL=""
10666 wine_cv_msg_freetype=yes
10672 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
10673 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
10674 if test "${ac_cv_c_ppdev+set}" = set; then
10675 echo $ECHO_N "(cached) $ECHO_C" >&6
10676 else
10677 cat >conftest.$ac_ext <<_ACEOF
10678 /* confdefs.h. */
10679 _ACEOF
10680 cat confdefs.h >>conftest.$ac_ext
10681 cat >>conftest.$ac_ext <<_ACEOF
10682 /* end confdefs.h. */
10683 #include <linux/ppdev.h>
10685 main ()
10687 ioctl (1,PPCLAIM,0)
10689 return 0;
10691 _ACEOF
10692 rm -f conftest.$ac_objext
10693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10694 (eval $ac_compile) 2>conftest.er1
10695 ac_status=$?
10696 grep -v '^ *+' conftest.er1 >conftest.err
10697 rm -f conftest.er1
10698 cat conftest.err >&5
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); } &&
10701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10703 (eval $ac_try) 2>&5
10704 ac_status=$?
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); }; } &&
10707 { ac_try='test -s conftest.$ac_objext'
10708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10709 (eval $ac_try) 2>&5
10710 ac_status=$?
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); }; }; then
10713 ac_cv_c_ppdev="yes"
10714 else
10715 echo "$as_me: failed program was:" >&5
10716 sed 's/^/| /' conftest.$ac_ext >&5
10718 ac_cv_c_ppdev="no"
10720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10723 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
10724 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
10725 if test "$ac_cv_c_ppdev" = "yes"
10726 then
10728 cat >>confdefs.h <<\_ACEOF
10729 #define HAVE_PPDEV 1
10730 _ACEOF
10734 echo "$as_me:$LINENO: checking for va_copy" >&5
10735 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10736 if test "${ac_cv_c_va_copy+set}" = set; then
10737 echo $ECHO_N "(cached) $ECHO_C" >&6
10738 else
10739 cat >conftest.$ac_ext <<_ACEOF
10740 /* confdefs.h. */
10741 _ACEOF
10742 cat confdefs.h >>conftest.$ac_ext
10743 cat >>conftest.$ac_ext <<_ACEOF
10744 /* end confdefs.h. */
10745 #include <stdarg.h>
10747 main ()
10749 va_list ap1, ap2;
10750 va_copy(ap1,ap2);
10753 return 0;
10755 _ACEOF
10756 rm -f conftest.$ac_objext conftest$ac_exeext
10757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10758 (eval $ac_link) 2>conftest.er1
10759 ac_status=$?
10760 grep -v '^ *+' conftest.er1 >conftest.err
10761 rm -f conftest.er1
10762 cat conftest.err >&5
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); } &&
10765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10767 (eval $ac_try) 2>&5
10768 ac_status=$?
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); }; } &&
10771 { ac_try='test -s conftest$ac_exeext'
10772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10773 (eval $ac_try) 2>&5
10774 ac_status=$?
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); }; }; then
10777 ac_cv_c_va_copy="yes"
10778 else
10779 echo "$as_me: failed program was:" >&5
10780 sed 's/^/| /' conftest.$ac_ext >&5
10782 ac_cv_c_va_copy="no"
10784 rm -f conftest.err conftest.$ac_objext \
10785 conftest$ac_exeext conftest.$ac_ext
10788 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
10789 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
10790 if test "$ac_cv_c_va_copy" = "yes"
10791 then
10793 cat >>confdefs.h <<\_ACEOF
10794 #define HAVE_VA_COPY 1
10795 _ACEOF
10798 echo "$as_me:$LINENO: checking for __va_copy" >&5
10799 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10800 if test "${ac_cv_c___va_copy+set}" = set; then
10801 echo $ECHO_N "(cached) $ECHO_C" >&6
10802 else
10803 cat >conftest.$ac_ext <<_ACEOF
10804 /* confdefs.h. */
10805 _ACEOF
10806 cat confdefs.h >>conftest.$ac_ext
10807 cat >>conftest.$ac_ext <<_ACEOF
10808 /* end confdefs.h. */
10809 #include <stdarg.h>
10811 main ()
10813 va_list ap1, ap2;
10814 __va_copy(ap1,ap2);
10817 return 0;
10819 _ACEOF
10820 rm -f conftest.$ac_objext conftest$ac_exeext
10821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10822 (eval $ac_link) 2>conftest.er1
10823 ac_status=$?
10824 grep -v '^ *+' conftest.er1 >conftest.err
10825 rm -f conftest.er1
10826 cat conftest.err >&5
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); } &&
10829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10831 (eval $ac_try) 2>&5
10832 ac_status=$?
10833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834 (exit $ac_status); }; } &&
10835 { ac_try='test -s conftest$ac_exeext'
10836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10837 (eval $ac_try) 2>&5
10838 ac_status=$?
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); }; }; then
10841 ac_cv_c___va_copy="yes"
10842 else
10843 echo "$as_me: failed program was:" >&5
10844 sed 's/^/| /' conftest.$ac_ext >&5
10846 ac_cv_c___va_copy="no"
10848 rm -f conftest.err conftest.$ac_objext \
10849 conftest$ac_exeext conftest.$ac_ext
10852 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
10853 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
10854 if test "$ac_cv_c___va_copy" = "yes"
10855 then
10857 cat >>confdefs.h <<\_ACEOF
10858 #define HAVE___VA_COPY 1
10859 _ACEOF
10863 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10864 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
10865 if test "${ac_cv_c_sigsetjmp+set}" = set; then
10866 echo $ECHO_N "(cached) $ECHO_C" >&6
10867 else
10868 cat >conftest.$ac_ext <<_ACEOF
10869 /* confdefs.h. */
10870 _ACEOF
10871 cat confdefs.h >>conftest.$ac_ext
10872 cat >>conftest.$ac_ext <<_ACEOF
10873 /* end confdefs.h. */
10874 #include <setjmp.h>
10876 main ()
10878 sigjmp_buf buf;
10879 sigsetjmp( buf, 1 );
10880 siglongjmp( buf, 1 );
10882 return 0;
10884 _ACEOF
10885 rm -f conftest.$ac_objext conftest$ac_exeext
10886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10887 (eval $ac_link) 2>conftest.er1
10888 ac_status=$?
10889 grep -v '^ *+' conftest.er1 >conftest.err
10890 rm -f conftest.er1
10891 cat conftest.err >&5
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); } &&
10894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10896 (eval $ac_try) 2>&5
10897 ac_status=$?
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); }; } &&
10900 { ac_try='test -s conftest$ac_exeext'
10901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10902 (eval $ac_try) 2>&5
10903 ac_status=$?
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); }; }; then
10906 ac_cv_c_sigsetjmp="yes"
10907 else
10908 echo "$as_me: failed program was:" >&5
10909 sed 's/^/| /' conftest.$ac_ext >&5
10911 ac_cv_c_sigsetjmp="no"
10913 rm -f conftest.err conftest.$ac_objext \
10914 conftest$ac_exeext conftest.$ac_ext
10917 echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
10918 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6
10919 if test "$ac_cv_c_sigsetjmp" = "yes"
10920 then
10922 cat >>confdefs.h <<\_ACEOF
10923 #define HAVE_SIGSETJMP 1
10924 _ACEOF
10928 echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
10929 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
10930 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
10931 echo $ECHO_N "(cached) $ECHO_C" >&6
10932 else
10933 cat >conftest.$ac_ext <<_ACEOF
10934 /* confdefs.h. */
10935 _ACEOF
10936 cat confdefs.h >>conftest.$ac_ext
10937 cat >>conftest.$ac_ext <<_ACEOF
10938 /* end confdefs.h. */
10939 #define _GNU_SOURCE
10940 #include <pthread.h>
10943 main ()
10945 if ((pthread_rwlock_t *) 0)
10946 return 0;
10947 if (sizeof (pthread_rwlock_t))
10948 return 0;
10950 return 0;
10952 _ACEOF
10953 rm -f conftest.$ac_objext
10954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10955 (eval $ac_compile) 2>conftest.er1
10956 ac_status=$?
10957 grep -v '^ *+' conftest.er1 >conftest.err
10958 rm -f conftest.er1
10959 cat conftest.err >&5
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); } &&
10962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10964 (eval $ac_try) 2>&5
10965 ac_status=$?
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); }; } &&
10968 { ac_try='test -s conftest.$ac_objext'
10969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10970 (eval $ac_try) 2>&5
10971 ac_status=$?
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); }; }; then
10974 ac_cv_type_pthread_rwlock_t=yes
10975 else
10976 echo "$as_me: failed program was:" >&5
10977 sed 's/^/| /' conftest.$ac_ext >&5
10979 ac_cv_type_pthread_rwlock_t=no
10981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10983 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
10984 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
10985 if test $ac_cv_type_pthread_rwlock_t = yes; then
10987 cat >>confdefs.h <<_ACEOF
10988 #define HAVE_PTHREAD_RWLOCK_T 1
10989 _ACEOF
10993 echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
10994 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
10995 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
10996 echo $ECHO_N "(cached) $ECHO_C" >&6
10997 else
10998 cat >conftest.$ac_ext <<_ACEOF
10999 /* confdefs.h. */
11000 _ACEOF
11001 cat confdefs.h >>conftest.$ac_ext
11002 cat >>conftest.$ac_ext <<_ACEOF
11003 /* end confdefs.h. */
11004 #define _GNU_SOURCE
11005 #include <pthread.h>
11008 main ()
11010 if ((pthread_rwlockattr_t *) 0)
11011 return 0;
11012 if (sizeof (pthread_rwlockattr_t))
11013 return 0;
11015 return 0;
11017 _ACEOF
11018 rm -f conftest.$ac_objext
11019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11020 (eval $ac_compile) 2>conftest.er1
11021 ac_status=$?
11022 grep -v '^ *+' conftest.er1 >conftest.err
11023 rm -f conftest.er1
11024 cat conftest.err >&5
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); } &&
11027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11029 (eval $ac_try) 2>&5
11030 ac_status=$?
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; } &&
11033 { ac_try='test -s conftest.$ac_objext'
11034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11035 (eval $ac_try) 2>&5
11036 ac_status=$?
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); }; }; then
11039 ac_cv_type_pthread_rwlockattr_t=yes
11040 else
11041 echo "$as_me: failed program was:" >&5
11042 sed 's/^/| /' conftest.$ac_ext >&5
11044 ac_cv_type_pthread_rwlockattr_t=no
11046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11048 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
11049 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
11050 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
11052 cat >>confdefs.h <<_ACEOF
11053 #define HAVE_PTHREAD_RWLOCKATTR_T 1
11054 _ACEOF
11060 ac_save_LIBS="$LIBS"
11061 LIBS="$LIBS $LIBPTHREAD"
11063 for ac_func in pthread_getattr_np
11065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11066 echo "$as_me:$LINENO: checking for $ac_func" >&5
11067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11068 if eval "test \"\${$as_ac_var+set}\" = set"; then
11069 echo $ECHO_N "(cached) $ECHO_C" >&6
11070 else
11071 cat >conftest.$ac_ext <<_ACEOF
11072 /* confdefs.h. */
11073 _ACEOF
11074 cat confdefs.h >>conftest.$ac_ext
11075 cat >>conftest.$ac_ext <<_ACEOF
11076 /* end confdefs.h. */
11077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11079 #define $ac_func innocuous_$ac_func
11081 /* System header to define __stub macros and hopefully few prototypes,
11082 which can conflict with char $ac_func (); below.
11083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11084 <limits.h> exists even on freestanding compilers. */
11086 #ifdef __STDC__
11087 # include <limits.h>
11088 #else
11089 # include <assert.h>
11090 #endif
11092 #undef $ac_func
11094 /* Override any gcc2 internal prototype to avoid an error. */
11095 #ifdef __cplusplus
11096 extern "C"
11098 #endif
11099 /* We use char because int might match the return type of a gcc2
11100 builtin and then its argument prototype would still apply. */
11101 char $ac_func ();
11102 /* The GNU C library defines this for functions which it implements
11103 to always fail with ENOSYS. Some functions are actually named
11104 something starting with __ and the normal name is an alias. */
11105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11106 choke me
11107 #else
11108 char (*f) () = $ac_func;
11109 #endif
11110 #ifdef __cplusplus
11112 #endif
11115 main ()
11117 return f != $ac_func;
11119 return 0;
11121 _ACEOF
11122 rm -f conftest.$ac_objext conftest$ac_exeext
11123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11124 (eval $ac_link) 2>conftest.er1
11125 ac_status=$?
11126 grep -v '^ *+' conftest.er1 >conftest.err
11127 rm -f conftest.er1
11128 cat conftest.err >&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); } &&
11131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11133 (eval $ac_try) 2>&5
11134 ac_status=$?
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); }; } &&
11137 { ac_try='test -s conftest$ac_exeext'
11138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11139 (eval $ac_try) 2>&5
11140 ac_status=$?
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); }; }; then
11143 eval "$as_ac_var=yes"
11144 else
11145 echo "$as_me: failed program was:" >&5
11146 sed 's/^/| /' conftest.$ac_ext >&5
11148 eval "$as_ac_var=no"
11150 rm -f conftest.err conftest.$ac_objext \
11151 conftest$ac_exeext conftest.$ac_ext
11153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11154 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11155 if test `eval echo '${'$as_ac_var'}'` = yes; then
11156 cat >>confdefs.h <<_ACEOF
11157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11158 _ACEOF
11161 done
11163 LIBS="$ac_save_LIBS"
11168 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
11170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11172 echo "$as_me:$LINENO: checking for $ac_header" >&5
11173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11175 echo $ECHO_N "(cached) $ECHO_C" >&6
11177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11179 else
11180 # Is the header compilable?
11181 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11183 cat >conftest.$ac_ext <<_ACEOF
11184 /* confdefs.h. */
11185 _ACEOF
11186 cat confdefs.h >>conftest.$ac_ext
11187 cat >>conftest.$ac_ext <<_ACEOF
11188 /* end confdefs.h. */
11189 $ac_includes_default
11190 #include <$ac_header>
11191 _ACEOF
11192 rm -f conftest.$ac_objext
11193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11194 (eval $ac_compile) 2>conftest.er1
11195 ac_status=$?
11196 grep -v '^ *+' conftest.er1 >conftest.err
11197 rm -f conftest.er1
11198 cat conftest.err >&5
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); } &&
11201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203 (eval $ac_try) 2>&5
11204 ac_status=$?
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); }; } &&
11207 { ac_try='test -s conftest.$ac_objext'
11208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11209 (eval $ac_try) 2>&5
11210 ac_status=$?
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); }; }; then
11213 ac_header_compiler=yes
11214 else
11215 echo "$as_me: failed program was:" >&5
11216 sed 's/^/| /' conftest.$ac_ext >&5
11218 ac_header_compiler=no
11220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11221 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11222 echo "${ECHO_T}$ac_header_compiler" >&6
11224 # Is the header present?
11225 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11226 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11227 cat >conftest.$ac_ext <<_ACEOF
11228 /* confdefs.h. */
11229 _ACEOF
11230 cat confdefs.h >>conftest.$ac_ext
11231 cat >>conftest.$ac_ext <<_ACEOF
11232 /* end confdefs.h. */
11233 #include <$ac_header>
11234 _ACEOF
11235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11237 ac_status=$?
11238 grep -v '^ *+' conftest.er1 >conftest.err
11239 rm -f conftest.er1
11240 cat conftest.err >&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); } >/dev/null; then
11243 if test -s conftest.err; then
11244 ac_cpp_err=$ac_c_preproc_warn_flag
11245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11246 else
11247 ac_cpp_err=
11249 else
11250 ac_cpp_err=yes
11252 if test -z "$ac_cpp_err"; then
11253 ac_header_preproc=yes
11254 else
11255 echo "$as_me: failed program was:" >&5
11256 sed 's/^/| /' conftest.$ac_ext >&5
11258 ac_header_preproc=no
11260 rm -f conftest.err conftest.$ac_ext
11261 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11262 echo "${ECHO_T}$ac_header_preproc" >&6
11264 # So? What about this header?
11265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11266 yes:no: )
11267 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11268 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11270 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11271 ac_header_preproc=yes
11273 no:yes:* )
11274 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11275 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11276 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11277 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11278 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11279 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11280 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11281 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11284 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11285 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11287 cat <<\_ASBOX
11288 ## ------------------------------------ ##
11289 ## Report this to wine-devel@winehq.org ##
11290 ## ------------------------------------ ##
11291 _ASBOX
11293 sed "s/^/$as_me: WARNING: /" >&2
11295 esac
11296 echo "$as_me:$LINENO: checking for $ac_header" >&5
11297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11299 echo $ECHO_N "(cached) $ECHO_C" >&6
11300 else
11301 eval "$as_ac_Header=\$ac_header_preproc"
11303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11308 cat >>confdefs.h <<_ACEOF
11309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11310 _ACEOF
11311 break
11314 done
11317 echo "$as_me:$LINENO: checking for Open Sound System" >&5
11318 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
11319 if test "${ac_cv_c_opensoundsystem+set}" = set; then
11320 echo $ECHO_N "(cached) $ECHO_C" >&6
11321 else
11322 cat >conftest.$ac_ext <<_ACEOF
11323 /* confdefs.h. */
11324 _ACEOF
11325 cat confdefs.h >>conftest.$ac_ext
11326 cat >>conftest.$ac_ext <<_ACEOF
11327 /* end confdefs.h. */
11329 #if defined(HAVE_SYS_SOUNDCARD_H)
11330 #include <sys/soundcard.h>
11331 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11332 #include <machine/soundcard.h>
11333 #elif defined(HAVE_SOUNDCARD_H)
11334 #include <soundcard.h>
11335 #endif
11338 main ()
11342 /* check for one of the Open Sound System specific SNDCTL_ defines */
11343 #if !defined(SNDCTL_DSP_STEREO)
11344 #error No open sound system
11345 #endif
11348 return 0;
11350 _ACEOF
11351 rm -f conftest.$ac_objext
11352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11353 (eval $ac_compile) 2>conftest.er1
11354 ac_status=$?
11355 grep -v '^ *+' conftest.er1 >conftest.err
11356 rm -f conftest.er1
11357 cat conftest.err >&5
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); } &&
11360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11362 (eval $ac_try) 2>&5
11363 ac_status=$?
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); }; } &&
11366 { ac_try='test -s conftest.$ac_objext'
11367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11368 (eval $ac_try) 2>&5
11369 ac_status=$?
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); }; }; then
11372 ac_cv_c_opensoundsystem="yes"
11373 else
11374 echo "$as_me: failed program was:" >&5
11375 sed 's/^/| /' conftest.$ac_ext >&5
11377 ac_cv_c_opensoundsystem="no"
11379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11381 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
11382 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
11384 if test "$ac_cv_c_opensoundsystem" = "yes"
11385 then
11387 cat >>confdefs.h <<\_ACEOF
11388 #define HAVE_OSS 1
11389 _ACEOF
11393 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
11394 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
11395 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
11396 echo $ECHO_N "(cached) $ECHO_C" >&6
11397 else
11398 cat >conftest.$ac_ext <<_ACEOF
11399 /* confdefs.h. */
11400 _ACEOF
11401 cat confdefs.h >>conftest.$ac_ext
11402 cat >>conftest.$ac_ext <<_ACEOF
11403 /* end confdefs.h. */
11405 #if defined(HAVE_SYS_SOUNDCARD_H)
11406 #include <sys/soundcard.h>
11407 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11408 #include <machine/soundcard.h>
11409 #elif defined(HAVE_SOUNDCARD_H)
11410 #include <soundcard.h>
11411 #endif
11414 main ()
11418 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
11419 #if !defined(SNDCTL_SEQ_SYNC)
11420 #error No open sound system MIDI interface
11421 #endif
11424 return 0;
11426 _ACEOF
11427 rm -f conftest.$ac_objext
11428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11429 (eval $ac_compile) 2>conftest.er1
11430 ac_status=$?
11431 grep -v '^ *+' conftest.er1 >conftest.err
11432 rm -f conftest.er1
11433 cat conftest.err >&5
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); } &&
11436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11438 (eval $ac_try) 2>&5
11439 ac_status=$?
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); }; } &&
11442 { ac_try='test -s conftest.$ac_objext'
11443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11444 (eval $ac_try) 2>&5
11445 ac_status=$?
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); }; }; then
11448 ac_cv_c_opensoundsystem_midi="yes"
11449 else
11450 echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.$ac_ext >&5
11453 ac_cv_c_opensoundsystem_midi="no"
11455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11457 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
11458 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
11460 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
11461 then
11463 cat >>confdefs.h <<\_ACEOF
11464 #define HAVE_OSS_MIDI 1
11465 _ACEOF
11469 # Extract the first word of "artsc-config", so it can be a program name with args.
11470 set dummy artsc-config; ac_word=$2
11471 echo "$as_me:$LINENO: checking for $ac_word" >&5
11472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11473 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
11474 echo $ECHO_N "(cached) $ECHO_C" >&6
11475 else
11476 case $ARTSCCONFIG in
11477 [\\/]* | ?:[\\/]*)
11478 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
11481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11482 for as_dir in $PATH
11484 IFS=$as_save_IFS
11485 test -z "$as_dir" && as_dir=.
11486 for ac_exec_ext in '' $ac_executable_extensions; do
11487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11488 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
11489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11490 break 2
11492 done
11493 done
11496 esac
11498 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
11500 if test -n "$ARTSCCONFIG"; then
11501 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
11502 echo "${ECHO_T}$ARTSCCONFIG" >&6
11503 else
11504 echo "$as_me:$LINENO: result: no" >&5
11505 echo "${ECHO_T}no" >&6
11508 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
11509 then
11510 ARTSC_CFLAGS=""
11511 for i in `$ARTSCCONFIG --cflags`
11513 case "$i" in
11514 -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
11515 esac
11516 done
11517 ARTSC_LIBS=`$ARTSCCONFIG --libs`
11518 save_CFLAGS="$CFLAGS"
11519 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
11520 cat >conftest.$ac_ext <<_ACEOF
11521 /* confdefs.h. */
11522 _ACEOF
11523 cat confdefs.h >>conftest.$ac_ext
11524 cat >>conftest.$ac_ext <<_ACEOF
11525 /* end confdefs.h. */
11526 #include <artsc.h>
11528 main ()
11530 arts_stream_t stream;
11532 return 0;
11534 _ACEOF
11535 rm -f conftest.$ac_objext
11536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11537 (eval $ac_compile) 2>conftest.er1
11538 ac_status=$?
11539 grep -v '^ *+' conftest.er1 >conftest.err
11540 rm -f conftest.er1
11541 cat conftest.err >&5
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); } &&
11544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11546 (eval $ac_try) 2>&5
11547 ac_status=$?
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); }; } &&
11550 { ac_try='test -s conftest.$ac_objext'
11551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11552 (eval $ac_try) 2>&5
11553 ac_status=$?
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); }; }; then
11556 ARTSLIBS=$ARTSC_LIBS
11558 ARTSINCL=$ARTSC_CFLAGS
11561 cat >>confdefs.h <<\_ACEOF
11562 #define HAVE_ARTS 1
11563 _ACEOF
11565 else
11566 echo "$as_me: failed program was:" >&5
11567 sed 's/^/| /' conftest.$ac_ext >&5
11570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11571 CFLAGS="$save_CFLAGS"
11574 ALSALIBS=""
11578 for ac_header in alsa/asoundlib.h sys/asoundlib.h
11580 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11582 echo "$as_me:$LINENO: checking for $ac_header" >&5
11583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11585 echo $ECHO_N "(cached) $ECHO_C" >&6
11587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11589 else
11590 # Is the header compilable?
11591 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11592 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11593 cat >conftest.$ac_ext <<_ACEOF
11594 /* confdefs.h. */
11595 _ACEOF
11596 cat confdefs.h >>conftest.$ac_ext
11597 cat >>conftest.$ac_ext <<_ACEOF
11598 /* end confdefs.h. */
11599 $ac_includes_default
11600 #include <$ac_header>
11601 _ACEOF
11602 rm -f conftest.$ac_objext
11603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11604 (eval $ac_compile) 2>conftest.er1
11605 ac_status=$?
11606 grep -v '^ *+' conftest.er1 >conftest.err
11607 rm -f conftest.er1
11608 cat conftest.err >&5
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); } &&
11611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11613 (eval $ac_try) 2>&5
11614 ac_status=$?
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); }; } &&
11617 { ac_try='test -s conftest.$ac_objext'
11618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11619 (eval $ac_try) 2>&5
11620 ac_status=$?
11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); }; }; then
11623 ac_header_compiler=yes
11624 else
11625 echo "$as_me: failed program was:" >&5
11626 sed 's/^/| /' conftest.$ac_ext >&5
11628 ac_header_compiler=no
11630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11631 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11632 echo "${ECHO_T}$ac_header_compiler" >&6
11634 # Is the header present?
11635 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11636 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11637 cat >conftest.$ac_ext <<_ACEOF
11638 /* confdefs.h. */
11639 _ACEOF
11640 cat confdefs.h >>conftest.$ac_ext
11641 cat >>conftest.$ac_ext <<_ACEOF
11642 /* end confdefs.h. */
11643 #include <$ac_header>
11644 _ACEOF
11645 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11646 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11647 ac_status=$?
11648 grep -v '^ *+' conftest.er1 >conftest.err
11649 rm -f conftest.er1
11650 cat conftest.err >&5
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); } >/dev/null; then
11653 if test -s conftest.err; then
11654 ac_cpp_err=$ac_c_preproc_warn_flag
11655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11656 else
11657 ac_cpp_err=
11659 else
11660 ac_cpp_err=yes
11662 if test -z "$ac_cpp_err"; then
11663 ac_header_preproc=yes
11664 else
11665 echo "$as_me: failed program was:" >&5
11666 sed 's/^/| /' conftest.$ac_ext >&5
11668 ac_header_preproc=no
11670 rm -f conftest.err conftest.$ac_ext
11671 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11672 echo "${ECHO_T}$ac_header_preproc" >&6
11674 # So? What about this header?
11675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11676 yes:no: )
11677 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11678 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11680 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11681 ac_header_preproc=yes
11683 no:yes:* )
11684 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11685 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11686 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11687 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11688 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11689 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11690 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11691 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11693 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11694 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11695 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11697 cat <<\_ASBOX
11698 ## ------------------------------------ ##
11699 ## Report this to wine-devel@winehq.org ##
11700 ## ------------------------------------ ##
11701 _ASBOX
11703 sed "s/^/$as_me: WARNING: /" >&2
11705 esac
11706 echo "$as_me:$LINENO: checking for $ac_header" >&5
11707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11709 echo $ECHO_N "(cached) $ECHO_C" >&6
11710 else
11711 eval "$as_ac_Header=\$ac_header_preproc"
11713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11714 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11718 cat >>confdefs.h <<_ACEOF
11719 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11720 _ACEOF
11721 break
11724 done
11726 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11727 then
11728 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
11729 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
11730 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
11731 echo $ECHO_N "(cached) $ECHO_C" >&6
11732 else
11733 ac_check_lib_save_LIBS=$LIBS
11734 LIBS="-lasound $LIBS"
11735 cat >conftest.$ac_ext <<_ACEOF
11736 /* confdefs.h. */
11737 _ACEOF
11738 cat confdefs.h >>conftest.$ac_ext
11739 cat >>conftest.$ac_ext <<_ACEOF
11740 /* end confdefs.h. */
11742 /* Override any gcc2 internal prototype to avoid an error. */
11743 #ifdef __cplusplus
11744 extern "C"
11745 #endif
11746 /* We use char because int might match the return type of a gcc2
11747 builtin and then its argument prototype would still apply. */
11748 char snd_pcm_open ();
11750 main ()
11752 snd_pcm_open ();
11754 return 0;
11756 _ACEOF
11757 rm -f conftest.$ac_objext conftest$ac_exeext
11758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11759 (eval $ac_link) 2>conftest.er1
11760 ac_status=$?
11761 grep -v '^ *+' conftest.er1 >conftest.err
11762 rm -f conftest.er1
11763 cat conftest.err >&5
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); } &&
11766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11768 (eval $ac_try) 2>&5
11769 ac_status=$?
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); }; } &&
11772 { ac_try='test -s conftest$ac_exeext'
11773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774 (eval $ac_try) 2>&5
11775 ac_status=$?
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; }; then
11778 ac_cv_lib_asound_snd_pcm_open=yes
11779 else
11780 echo "$as_me: failed program was:" >&5
11781 sed 's/^/| /' conftest.$ac_ext >&5
11783 ac_cv_lib_asound_snd_pcm_open=no
11785 rm -f conftest.err conftest.$ac_objext \
11786 conftest$ac_exeext conftest.$ac_ext
11787 LIBS=$ac_check_lib_save_LIBS
11789 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
11790 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
11791 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
11793 cat >>confdefs.h <<\_ACEOF
11794 #define HAVE_ALSA 1
11795 _ACEOF
11797 ALSALIBS="-lasound"
11803 AUDIOIOLIBS=""
11806 for ac_header in libaudioio.h
11808 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11810 echo "$as_me:$LINENO: checking for $ac_header" >&5
11811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11813 echo $ECHO_N "(cached) $ECHO_C" >&6
11815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11817 else
11818 # Is the header compilable?
11819 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11821 cat >conftest.$ac_ext <<_ACEOF
11822 /* confdefs.h. */
11823 _ACEOF
11824 cat confdefs.h >>conftest.$ac_ext
11825 cat >>conftest.$ac_ext <<_ACEOF
11826 /* end confdefs.h. */
11827 $ac_includes_default
11828 #include <$ac_header>
11829 _ACEOF
11830 rm -f conftest.$ac_objext
11831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11832 (eval $ac_compile) 2>conftest.er1
11833 ac_status=$?
11834 grep -v '^ *+' conftest.er1 >conftest.err
11835 rm -f conftest.er1
11836 cat conftest.err >&5
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); } &&
11839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11841 (eval $ac_try) 2>&5
11842 ac_status=$?
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); }; } &&
11845 { ac_try='test -s conftest.$ac_objext'
11846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11847 (eval $ac_try) 2>&5
11848 ac_status=$?
11849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850 (exit $ac_status); }; }; then
11851 ac_header_compiler=yes
11852 else
11853 echo "$as_me: failed program was:" >&5
11854 sed 's/^/| /' conftest.$ac_ext >&5
11856 ac_header_compiler=no
11858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11859 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11860 echo "${ECHO_T}$ac_header_compiler" >&6
11862 # Is the header present?
11863 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11864 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11865 cat >conftest.$ac_ext <<_ACEOF
11866 /* confdefs.h. */
11867 _ACEOF
11868 cat confdefs.h >>conftest.$ac_ext
11869 cat >>conftest.$ac_ext <<_ACEOF
11870 /* end confdefs.h. */
11871 #include <$ac_header>
11872 _ACEOF
11873 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11874 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11875 ac_status=$?
11876 grep -v '^ *+' conftest.er1 >conftest.err
11877 rm -f conftest.er1
11878 cat conftest.err >&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); } >/dev/null; then
11881 if test -s conftest.err; then
11882 ac_cpp_err=$ac_c_preproc_warn_flag
11883 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11884 else
11885 ac_cpp_err=
11887 else
11888 ac_cpp_err=yes
11890 if test -z "$ac_cpp_err"; then
11891 ac_header_preproc=yes
11892 else
11893 echo "$as_me: failed program was:" >&5
11894 sed 's/^/| /' conftest.$ac_ext >&5
11896 ac_header_preproc=no
11898 rm -f conftest.err conftest.$ac_ext
11899 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11900 echo "${ECHO_T}$ac_header_preproc" >&6
11902 # So? What about this header?
11903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11904 yes:no: )
11905 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11906 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11908 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11909 ac_header_preproc=yes
11911 no:yes:* )
11912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11915 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11916 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11917 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11918 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11919 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11922 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11923 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11925 cat <<\_ASBOX
11926 ## ------------------------------------ ##
11927 ## Report this to wine-devel@winehq.org ##
11928 ## ------------------------------------ ##
11929 _ASBOX
11931 sed "s/^/$as_me: WARNING: /" >&2
11933 esac
11934 echo "$as_me:$LINENO: checking for $ac_header" >&5
11935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11937 echo $ECHO_N "(cached) $ECHO_C" >&6
11938 else
11939 eval "$as_ac_Header=\$ac_header_preproc"
11941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11946 cat >>confdefs.h <<_ACEOF
11947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11948 _ACEOF
11949 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
11950 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
11951 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
11952 echo $ECHO_N "(cached) $ECHO_C" >&6
11953 else
11954 ac_check_lib_save_LIBS=$LIBS
11955 LIBS="-laudioio $LIBS"
11956 cat >conftest.$ac_ext <<_ACEOF
11957 /* confdefs.h. */
11958 _ACEOF
11959 cat confdefs.h >>conftest.$ac_ext
11960 cat >>conftest.$ac_ext <<_ACEOF
11961 /* end confdefs.h. */
11963 /* Override any gcc2 internal prototype to avoid an error. */
11964 #ifdef __cplusplus
11965 extern "C"
11966 #endif
11967 /* We use char because int might match the return type of a gcc2
11968 builtin and then its argument prototype would still apply. */
11969 char AudioIOGetVersion ();
11971 main ()
11973 AudioIOGetVersion ();
11975 return 0;
11977 _ACEOF
11978 rm -f conftest.$ac_objext conftest$ac_exeext
11979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11980 (eval $ac_link) 2>conftest.er1
11981 ac_status=$?
11982 grep -v '^ *+' conftest.er1 >conftest.err
11983 rm -f conftest.er1
11984 cat conftest.err >&5
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); } &&
11987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11989 (eval $ac_try) 2>&5
11990 ac_status=$?
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); }; } &&
11993 { ac_try='test -s conftest$ac_exeext'
11994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11995 (eval $ac_try) 2>&5
11996 ac_status=$?
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); }; }; then
11999 ac_cv_lib_audioio_AudioIOGetVersion=yes
12000 else
12001 echo "$as_me: failed program was:" >&5
12002 sed 's/^/| /' conftest.$ac_ext >&5
12004 ac_cv_lib_audioio_AudioIOGetVersion=no
12006 rm -f conftest.err conftest.$ac_objext \
12007 conftest$ac_exeext conftest.$ac_ext
12008 LIBS=$ac_check_lib_save_LIBS
12010 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
12011 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
12012 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
12013 AUDIOIOLIBS="-laudioio"
12015 cat >>confdefs.h <<\_ACEOF
12016 #define HAVE_LIBAUDIOIO 1
12017 _ACEOF
12023 done
12028 for ac_header in capi20.h
12030 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12032 echo "$as_me:$LINENO: checking for $ac_header" >&5
12033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12035 echo $ECHO_N "(cached) $ECHO_C" >&6
12037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12039 else
12040 # Is the header compilable?
12041 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12043 cat >conftest.$ac_ext <<_ACEOF
12044 /* confdefs.h. */
12045 _ACEOF
12046 cat confdefs.h >>conftest.$ac_ext
12047 cat >>conftest.$ac_ext <<_ACEOF
12048 /* end confdefs.h. */
12049 $ac_includes_default
12050 #include <$ac_header>
12051 _ACEOF
12052 rm -f conftest.$ac_objext
12053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12054 (eval $ac_compile) 2>conftest.er1
12055 ac_status=$?
12056 grep -v '^ *+' conftest.er1 >conftest.err
12057 rm -f conftest.er1
12058 cat conftest.err >&5
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); } &&
12061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063 (eval $ac_try) 2>&5
12064 ac_status=$?
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); }; } &&
12067 { ac_try='test -s conftest.$ac_objext'
12068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12069 (eval $ac_try) 2>&5
12070 ac_status=$?
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); }; }; then
12073 ac_header_compiler=yes
12074 else
12075 echo "$as_me: failed program was:" >&5
12076 sed 's/^/| /' conftest.$ac_ext >&5
12078 ac_header_compiler=no
12080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12081 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12082 echo "${ECHO_T}$ac_header_compiler" >&6
12084 # Is the header present?
12085 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12086 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12087 cat >conftest.$ac_ext <<_ACEOF
12088 /* confdefs.h. */
12089 _ACEOF
12090 cat confdefs.h >>conftest.$ac_ext
12091 cat >>conftest.$ac_ext <<_ACEOF
12092 /* end confdefs.h. */
12093 #include <$ac_header>
12094 _ACEOF
12095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12097 ac_status=$?
12098 grep -v '^ *+' conftest.er1 >conftest.err
12099 rm -f conftest.er1
12100 cat conftest.err >&5
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); } >/dev/null; then
12103 if test -s conftest.err; then
12104 ac_cpp_err=$ac_c_preproc_warn_flag
12105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12106 else
12107 ac_cpp_err=
12109 else
12110 ac_cpp_err=yes
12112 if test -z "$ac_cpp_err"; then
12113 ac_header_preproc=yes
12114 else
12115 echo "$as_me: failed program was:" >&5
12116 sed 's/^/| /' conftest.$ac_ext >&5
12118 ac_header_preproc=no
12120 rm -f conftest.err conftest.$ac_ext
12121 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12122 echo "${ECHO_T}$ac_header_preproc" >&6
12124 # So? What about this header?
12125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12126 yes:no: )
12127 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12131 ac_header_preproc=yes
12133 no:yes:* )
12134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12137 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12138 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12139 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12140 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12141 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12144 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12145 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12147 cat <<\_ASBOX
12148 ## ------------------------------------ ##
12149 ## Report this to wine-devel@winehq.org ##
12150 ## ------------------------------------ ##
12151 _ASBOX
12153 sed "s/^/$as_me: WARNING: /" >&2
12155 esac
12156 echo "$as_me:$LINENO: checking for $ac_header" >&5
12157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12159 echo $ECHO_N "(cached) $ECHO_C" >&6
12160 else
12161 eval "$as_ac_Header=\$ac_header_preproc"
12163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12164 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12168 cat >>confdefs.h <<_ACEOF
12169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12170 _ACEOF
12173 for ac_header in linux/capi.h
12175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12177 echo "$as_me:$LINENO: checking for $ac_header" >&5
12178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12180 echo $ECHO_N "(cached) $ECHO_C" >&6
12182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12184 else
12185 # Is the header compilable?
12186 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12188 cat >conftest.$ac_ext <<_ACEOF
12189 /* confdefs.h. */
12190 _ACEOF
12191 cat confdefs.h >>conftest.$ac_ext
12192 cat >>conftest.$ac_ext <<_ACEOF
12193 /* end confdefs.h. */
12194 $ac_includes_default
12195 #include <$ac_header>
12196 _ACEOF
12197 rm -f conftest.$ac_objext
12198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12199 (eval $ac_compile) 2>conftest.er1
12200 ac_status=$?
12201 grep -v '^ *+' conftest.er1 >conftest.err
12202 rm -f conftest.er1
12203 cat conftest.err >&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); } &&
12206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208 (eval $ac_try) 2>&5
12209 ac_status=$?
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); }; } &&
12212 { ac_try='test -s conftest.$ac_objext'
12213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12214 (eval $ac_try) 2>&5
12215 ac_status=$?
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); }; }; then
12218 ac_header_compiler=yes
12219 else
12220 echo "$as_me: failed program was:" >&5
12221 sed 's/^/| /' conftest.$ac_ext >&5
12223 ac_header_compiler=no
12225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12226 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12227 echo "${ECHO_T}$ac_header_compiler" >&6
12229 # Is the header present?
12230 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12231 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12232 cat >conftest.$ac_ext <<_ACEOF
12233 /* confdefs.h. */
12234 _ACEOF
12235 cat confdefs.h >>conftest.$ac_ext
12236 cat >>conftest.$ac_ext <<_ACEOF
12237 /* end confdefs.h. */
12238 #include <$ac_header>
12239 _ACEOF
12240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12242 ac_status=$?
12243 grep -v '^ *+' conftest.er1 >conftest.err
12244 rm -f conftest.er1
12245 cat conftest.err >&5
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); } >/dev/null; then
12248 if test -s conftest.err; then
12249 ac_cpp_err=$ac_c_preproc_warn_flag
12250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12251 else
12252 ac_cpp_err=
12254 else
12255 ac_cpp_err=yes
12257 if test -z "$ac_cpp_err"; then
12258 ac_header_preproc=yes
12259 else
12260 echo "$as_me: failed program was:" >&5
12261 sed 's/^/| /' conftest.$ac_ext >&5
12263 ac_header_preproc=no
12265 rm -f conftest.err conftest.$ac_ext
12266 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12267 echo "${ECHO_T}$ac_header_preproc" >&6
12269 # So? What about this header?
12270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12271 yes:no: )
12272 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12273 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12275 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12276 ac_header_preproc=yes
12278 no:yes:* )
12279 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12280 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12281 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12282 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12283 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12284 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12285 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12286 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12288 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12289 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12290 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12292 cat <<\_ASBOX
12293 ## ------------------------------------ ##
12294 ## Report this to wine-devel@winehq.org ##
12295 ## ------------------------------------ ##
12296 _ASBOX
12298 sed "s/^/$as_me: WARNING: /" >&2
12300 esac
12301 echo "$as_me:$LINENO: checking for $ac_header" >&5
12302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12304 echo $ECHO_N "(cached) $ECHO_C" >&6
12305 else
12306 eval "$as_ac_Header=\$ac_header_preproc"
12308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12313 cat >>confdefs.h <<_ACEOF
12314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12315 _ACEOF
12317 echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
12318 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6
12319 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
12320 echo $ECHO_N "(cached) $ECHO_C" >&6
12321 else
12322 ac_check_lib_save_LIBS=$LIBS
12323 LIBS="-lcapi20 $LIBS"
12324 cat >conftest.$ac_ext <<_ACEOF
12325 /* confdefs.h. */
12326 _ACEOF
12327 cat confdefs.h >>conftest.$ac_ext
12328 cat >>conftest.$ac_ext <<_ACEOF
12329 /* end confdefs.h. */
12331 /* Override any gcc2 internal prototype to avoid an error. */
12332 #ifdef __cplusplus
12333 extern "C"
12334 #endif
12335 /* We use char because int might match the return type of a gcc2
12336 builtin and then its argument prototype would still apply. */
12337 char capi20_register ();
12339 main ()
12341 capi20_register ();
12343 return 0;
12345 _ACEOF
12346 rm -f conftest.$ac_objext conftest$ac_exeext
12347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12348 (eval $ac_link) 2>conftest.er1
12349 ac_status=$?
12350 grep -v '^ *+' conftest.er1 >conftest.err
12351 rm -f conftest.er1
12352 cat conftest.err >&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); } &&
12355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12357 (eval $ac_try) 2>&5
12358 ac_status=$?
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); }; } &&
12361 { ac_try='test -s conftest$ac_exeext'
12362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12363 (eval $ac_try) 2>&5
12364 ac_status=$?
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); }; }; then
12367 ac_cv_lib_capi20_capi20_register=yes
12368 else
12369 echo "$as_me: failed program was:" >&5
12370 sed 's/^/| /' conftest.$ac_ext >&5
12372 ac_cv_lib_capi20_capi20_register=no
12374 rm -f conftest.err conftest.$ac_objext \
12375 conftest$ac_exeext conftest.$ac_ext
12376 LIBS=$ac_check_lib_save_LIBS
12378 echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
12379 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6
12380 if test $ac_cv_lib_capi20_capi20_register = yes; then
12383 cat >>confdefs.h <<\_ACEOF
12384 #define HAVE_CAPI4LINUX 1
12385 _ACEOF
12387 CAPI4LINUXLIBS="-lcapi20"
12395 done
12400 done
12404 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
12405 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
12406 if test "${ac_cv_mmap64_works+set}" = set; then
12407 echo $ECHO_N "(cached) $ECHO_C" >&6
12408 else
12409 if test "$cross_compiling" = yes; then
12410 ac_cv_mmap64_works="no"
12411 else
12412 cat >conftest.$ac_ext <<_ACEOF
12413 /* confdefs.h. */
12414 _ACEOF
12415 cat confdefs.h >>conftest.$ac_ext
12416 cat >>conftest.$ac_ext <<_ACEOF
12417 /* end confdefs.h. */
12419 #define _FILE_OFFSET_BITS 64
12420 #include <stdio.h>
12421 #include <unistd.h>
12422 #include <fcntl.h>
12423 #include <sys/mman.h>
12424 #include <errno.h>
12426 int main(int argc,char **argv) {
12427 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
12428 if (fd == -1) exit(1);
12430 unlink("conftest.map");
12432 write(fd,"test",4);
12434 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
12435 (errno == EINVAL)
12437 exit(1);
12439 close(fd);
12440 fprintf(stderr,"success!\n");
12441 exit(0);
12445 _ACEOF
12446 rm -f conftest$ac_exeext
12447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12448 (eval $ac_link) 2>&5
12449 ac_status=$?
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12453 (eval $ac_try) 2>&5
12454 ac_status=$?
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); }; }; then
12457 ac_cv_mmap64_works="yes"
12458 else
12459 echo "$as_me: program exited with status $ac_status" >&5
12460 echo "$as_me: failed program was:" >&5
12461 sed 's/^/| /' conftest.$ac_ext >&5
12463 ( exit $ac_status )
12464 ac_cv_mmap64_works="no"
12466 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12469 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
12470 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
12472 if test "$ac_cv_mmap64_works" = "yes"
12473 then
12475 cat >>confdefs.h <<\_ACEOF
12476 #define _FILE_OFFSET_BITS 64
12477 _ACEOF
12482 EXTRACFLAGS=""
12484 if test "x${GCC}" = "xyes"
12485 then
12486 EXTRACFLAGS="-Wall -pipe"
12488 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
12489 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
12490 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
12491 echo $ECHO_N "(cached) $ECHO_C" >&6
12492 else
12493 if test "$cross_compiling" = yes; then
12494 ac_cv_c_gcc_strength_bug="yes"
12495 else
12496 cat >conftest.$ac_ext <<_ACEOF
12497 /* confdefs.h. */
12498 _ACEOF
12499 cat confdefs.h >>conftest.$ac_ext
12500 cat >>conftest.$ac_ext <<_ACEOF
12501 /* end confdefs.h. */
12503 int L[4] = {0,1,2,3};
12504 int main(void) {
12505 static int Array[3];
12506 unsigned int B = 3;
12507 int i;
12508 for(i=0; i<B; i++) Array[i] = i - 3;
12509 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12510 L[i] = 4;
12512 exit( Array[1] != -2 || L[2] != 3);
12514 _ACEOF
12515 rm -f conftest$ac_exeext
12516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12517 (eval $ac_link) 2>&5
12518 ac_status=$?
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12522 (eval $ac_try) 2>&5
12523 ac_status=$?
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); }; }; then
12526 ac_cv_c_gcc_strength_bug="no"
12527 else
12528 echo "$as_me: program exited with status $ac_status" >&5
12529 echo "$as_me: failed program was:" >&5
12530 sed 's/^/| /' conftest.$ac_ext >&5
12532 ( exit $ac_status )
12533 ac_cv_c_gcc_strength_bug="yes"
12535 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12538 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
12539 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
12540 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12541 then
12542 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12545 echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
12546 echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6
12547 if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
12548 echo $ECHO_N "(cached) $ECHO_C" >&6
12549 else
12550 ac_wine_try_cflags_saved=$CFLAGS
12551 CFLAGS="$CFLAGS -fshort-wchar"
12552 cat >conftest.$ac_ext <<_ACEOF
12553 /* confdefs.h. */
12554 _ACEOF
12555 cat confdefs.h >>conftest.$ac_ext
12556 cat >>conftest.$ac_ext <<_ACEOF
12557 /* end confdefs.h. */
12560 main ()
12564 return 0;
12566 _ACEOF
12567 rm -f conftest.$ac_objext conftest$ac_exeext
12568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12569 (eval $ac_link) 2>conftest.er1
12570 ac_status=$?
12571 grep -v '^ *+' conftest.er1 >conftest.err
12572 rm -f conftest.er1
12573 cat conftest.err >&5
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); } &&
12576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12578 (eval $ac_try) 2>&5
12579 ac_status=$?
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); }; } &&
12582 { ac_try='test -s conftest$ac_exeext'
12583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12584 (eval $ac_try) 2>&5
12585 ac_status=$?
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); }; }; then
12588 ac_cv_c_gcc_fshort_wchar="yes"
12589 else
12590 echo "$as_me: failed program was:" >&5
12591 sed 's/^/| /' conftest.$ac_ext >&5
12593 ac_cv_c_gcc_fshort_wchar="no"
12595 rm -f conftest.err conftest.$ac_objext \
12596 conftest$ac_exeext conftest.$ac_ext
12597 CFLAGS=$ac_wine_try_cflags_saved
12599 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
12600 echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6
12601 if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
12602 then
12604 cat >>confdefs.h <<\_ACEOF
12605 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
12606 _ACEOF
12610 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
12611 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
12612 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
12613 echo $ECHO_N "(cached) $ECHO_C" >&6
12614 else
12615 ac_wine_try_cflags_saved=$CFLAGS
12616 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
12617 cat >conftest.$ac_ext <<_ACEOF
12618 /* confdefs.h. */
12619 _ACEOF
12620 cat confdefs.h >>conftest.$ac_ext
12621 cat >>conftest.$ac_ext <<_ACEOF
12622 /* end confdefs.h. */
12625 main ()
12629 return 0;
12631 _ACEOF
12632 rm -f conftest.$ac_objext conftest$ac_exeext
12633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12634 (eval $ac_link) 2>conftest.er1
12635 ac_status=$?
12636 grep -v '^ *+' conftest.er1 >conftest.err
12637 rm -f conftest.er1
12638 cat conftest.err >&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); } &&
12641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12643 (eval $ac_try) 2>&5
12644 ac_status=$?
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); }; } &&
12647 { ac_try='test -s conftest$ac_exeext'
12648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12649 (eval $ac_try) 2>&5
12650 ac_status=$?
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); }; }; then
12653 ac_cv_c_gcc_stack_boundary="yes"
12654 else
12655 echo "$as_me: failed program was:" >&5
12656 sed 's/^/| /' conftest.$ac_ext >&5
12658 ac_cv_c_gcc_stack_boundary="no"
12660 rm -f conftest.err conftest.$ac_objext \
12661 conftest$ac_exeext conftest.$ac_ext
12662 CFLAGS=$ac_wine_try_cflags_saved
12664 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
12665 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
12666 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
12667 then
12668 EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
12671 echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
12672 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
12673 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
12674 echo $ECHO_N "(cached) $ECHO_C" >&6
12675 else
12676 ac_wine_try_cflags_saved=$CFLAGS
12677 CFLAGS="$CFLAGS -fno-strict-aliasing"
12678 cat >conftest.$ac_ext <<_ACEOF
12679 /* confdefs.h. */
12680 _ACEOF
12681 cat confdefs.h >>conftest.$ac_ext
12682 cat >>conftest.$ac_ext <<_ACEOF
12683 /* end confdefs.h. */
12686 main ()
12690 return 0;
12692 _ACEOF
12693 rm -f conftest.$ac_objext conftest$ac_exeext
12694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12695 (eval $ac_link) 2>conftest.er1
12696 ac_status=$?
12697 grep -v '^ *+' conftest.er1 >conftest.err
12698 rm -f conftest.er1
12699 cat conftest.err >&5
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); } &&
12702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12704 (eval $ac_try) 2>&5
12705 ac_status=$?
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); }; } &&
12708 { ac_try='test -s conftest$ac_exeext'
12709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12710 (eval $ac_try) 2>&5
12711 ac_status=$?
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; }; then
12714 ac_cv_c_gcc_no_strict_aliasing="yes"
12715 else
12716 echo "$as_me: failed program was:" >&5
12717 sed 's/^/| /' conftest.$ac_ext >&5
12719 ac_cv_c_gcc_no_strict_aliasing="no"
12721 rm -f conftest.err conftest.$ac_objext \
12722 conftest$ac_exeext conftest.$ac_ext
12723 CFLAGS=$ac_wine_try_cflags_saved
12725 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
12726 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
12727 if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
12728 then
12729 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12732 echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
12733 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
12734 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
12735 echo $ECHO_N "(cached) $ECHO_C" >&6
12736 else
12737 ac_wine_try_cflags_saved=$CFLAGS
12738 CFLAGS="$CFLAGS -gstabs+"
12739 cat >conftest.$ac_ext <<_ACEOF
12740 /* confdefs.h. */
12741 _ACEOF
12742 cat confdefs.h >>conftest.$ac_ext
12743 cat >>conftest.$ac_ext <<_ACEOF
12744 /* end confdefs.h. */
12747 main ()
12751 return 0;
12753 _ACEOF
12754 rm -f conftest.$ac_objext conftest$ac_exeext
12755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12756 (eval $ac_link) 2>conftest.er1
12757 ac_status=$?
12758 grep -v '^ *+' conftest.er1 >conftest.err
12759 rm -f conftest.er1
12760 cat conftest.err >&5
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); } &&
12763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765 (eval $ac_try) 2>&5
12766 ac_status=$?
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); }; } &&
12769 { ac_try='test -s conftest$ac_exeext'
12770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771 (eval $ac_try) 2>&5
12772 ac_status=$?
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; }; then
12775 ac_cv_c_gcc_gstabs="yes"
12776 else
12777 echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.$ac_ext >&5
12780 ac_cv_c_gcc_gstabs="no"
12782 rm -f conftest.err conftest.$ac_objext \
12783 conftest$ac_exeext conftest.$ac_ext
12784 CFLAGS=$ac_wine_try_cflags_saved
12786 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
12787 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
12788 if test "$ac_cv_c_gcc_gstabs" = "yes"
12789 then
12790 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12793 saved_CFLAGS="$CFLAGS"
12794 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12795 echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
12796 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
12797 if test "${ac_cv_c_string_h_warnings+set}" = set; then
12798 echo $ECHO_N "(cached) $ECHO_C" >&6
12799 else
12800 cat >conftest.$ac_ext <<_ACEOF
12801 /* confdefs.h. */
12802 _ACEOF
12803 cat confdefs.h >>conftest.$ac_ext
12804 cat >>conftest.$ac_ext <<_ACEOF
12805 /* end confdefs.h. */
12806 #include <string.h>
12808 main ()
12812 return 0;
12814 _ACEOF
12815 rm -f conftest.$ac_objext
12816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12817 (eval $ac_compile) 2>conftest.er1
12818 ac_status=$?
12819 grep -v '^ *+' conftest.er1 >conftest.err
12820 rm -f conftest.er1
12821 cat conftest.err >&5
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); } &&
12824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12826 (eval $ac_try) 2>&5
12827 ac_status=$?
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); }; } &&
12830 { ac_try='test -s conftest.$ac_objext'
12831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12832 (eval $ac_try) 2>&5
12833 ac_status=$?
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); }; }; then
12836 ac_cv_c_string_h_warnings=no
12837 else
12838 echo "$as_me: failed program was:" >&5
12839 sed 's/^/| /' conftest.$ac_ext >&5
12841 ac_cv_c_string_h_warnings=yes
12843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12845 echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
12846 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
12847 CFLAGS="$saved_CFLAGS"
12848 if test "$ac_cv_c_string_h_warnings" = "no"
12849 then
12850 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12855 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
12856 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
12857 if test "${ac_cv_asm_func_def+set}" = set; then
12858 echo $ECHO_N "(cached) $ECHO_C" >&6
12859 else
12860 cat >conftest.$ac_ext <<_ACEOF
12861 /* confdefs.h. */
12862 _ACEOF
12863 cat confdefs.h >>conftest.$ac_ext
12864 cat >>conftest.$ac_ext <<_ACEOF
12865 /* end confdefs.h. */
12866 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"); }
12869 main ()
12873 return 0;
12875 _ACEOF
12876 rm -f conftest.$ac_objext conftest$ac_exeext
12877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12878 (eval $ac_link) 2>conftest.er1
12879 ac_status=$?
12880 grep -v '^ *+' conftest.er1 >conftest.err
12881 rm -f conftest.er1
12882 cat conftest.err >&5
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); } &&
12885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12887 (eval $ac_try) 2>&5
12888 ac_status=$?
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }; } &&
12891 { ac_try='test -s conftest$ac_exeext'
12892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12893 (eval $ac_try) 2>&5
12894 ac_status=$?
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); }; }; then
12897 ac_cv_asm_func_def=".def"
12898 else
12899 echo "$as_me: failed program was:" >&5
12900 sed 's/^/| /' conftest.$ac_ext >&5
12902 cat >conftest.$ac_ext <<_ACEOF
12903 /* confdefs.h. */
12904 _ACEOF
12905 cat confdefs.h >>conftest.$ac_ext
12906 cat >>conftest.$ac_ext <<_ACEOF
12907 /* end confdefs.h. */
12908 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
12911 main ()
12915 return 0;
12917 _ACEOF
12918 rm -f conftest.$ac_objext conftest$ac_exeext
12919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12920 (eval $ac_link) 2>conftest.er1
12921 ac_status=$?
12922 grep -v '^ *+' conftest.er1 >conftest.err
12923 rm -f conftest.er1
12924 cat conftest.err >&5
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); } &&
12927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12929 (eval $ac_try) 2>&5
12930 ac_status=$?
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); }; } &&
12933 { ac_try='test -s conftest$ac_exeext'
12934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12935 (eval $ac_try) 2>&5
12936 ac_status=$?
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }; }; then
12939 ac_cv_asm_func_def=".type @function"
12940 else
12941 echo "$as_me: failed program was:" >&5
12942 sed 's/^/| /' conftest.$ac_ext >&5
12944 cat >conftest.$ac_ext <<_ACEOF
12945 /* confdefs.h. */
12946 _ACEOF
12947 cat confdefs.h >>conftest.$ac_ext
12948 cat >>conftest.$ac_ext <<_ACEOF
12949 /* end confdefs.h. */
12950 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
12953 main ()
12957 return 0;
12959 _ACEOF
12960 rm -f conftest.$ac_objext conftest$ac_exeext
12961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12962 (eval $ac_link) 2>conftest.er1
12963 ac_status=$?
12964 grep -v '^ *+' conftest.er1 >conftest.err
12965 rm -f conftest.er1
12966 cat conftest.err >&5
12967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 (exit $ac_status); } &&
12969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12971 (eval $ac_try) 2>&5
12972 ac_status=$?
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); }; } &&
12975 { ac_try='test -s conftest$ac_exeext'
12976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12977 (eval $ac_try) 2>&5
12978 ac_status=$?
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); }; }; then
12981 ac_cv_asm_func_def=".type 2"
12982 else
12983 echo "$as_me: failed program was:" >&5
12984 sed 's/^/| /' conftest.$ac_ext >&5
12986 ac_cv_asm_func_def="unknown"
12988 rm -f conftest.err conftest.$ac_objext \
12989 conftest$ac_exeext conftest.$ac_ext
12991 rm -f conftest.err conftest.$ac_objext \
12992 conftest$ac_exeext conftest.$ac_ext
12994 rm -f conftest.err conftest.$ac_objext \
12995 conftest$ac_exeext conftest.$ac_ext
12997 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
12998 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
13002 case "$ac_cv_asm_func_def" in
13003 ".def")
13004 cat >>confdefs.h <<\_ACEOF
13005 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
13006 _ACEOF
13008 ".type @function")
13009 cat >>confdefs.h <<\_ACEOF
13010 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
13011 _ACEOF
13013 ".type 2")
13014 cat >>confdefs.h <<\_ACEOF
13015 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
13016 _ACEOF
13019 cat >>confdefs.h <<\_ACEOF
13020 #define __ASM_FUNC(name) ""
13021 _ACEOF
13023 esac
13026 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
13027 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
13028 if test "${ac_cv_c_extern_prefix+set}" = set; then
13029 echo $ECHO_N "(cached) $ECHO_C" >&6
13030 else
13031 cat >conftest.$ac_ext <<_ACEOF
13032 /* confdefs.h. */
13033 _ACEOF
13034 cat confdefs.h >>conftest.$ac_ext
13035 cat >>conftest.$ac_ext <<_ACEOF
13036 /* end confdefs.h. */
13037 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
13038 extern int ac_test;
13040 main ()
13042 if (ac_test) return 1
13044 return 0;
13046 _ACEOF
13047 rm -f conftest.$ac_objext conftest$ac_exeext
13048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13049 (eval $ac_link) 2>conftest.er1
13050 ac_status=$?
13051 grep -v '^ *+' conftest.er1 >conftest.err
13052 rm -f conftest.er1
13053 cat conftest.err >&5
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); } &&
13056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13058 (eval $ac_try) 2>&5
13059 ac_status=$?
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); }; } &&
13062 { ac_try='test -s conftest$ac_exeext'
13063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13064 (eval $ac_try) 2>&5
13065 ac_status=$?
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); }; }; then
13068 ac_cv_c_extern_prefix="yes"
13069 else
13070 echo "$as_me: failed program was:" >&5
13071 sed 's/^/| /' conftest.$ac_ext >&5
13073 ac_cv_c_extern_prefix="no"
13075 rm -f conftest.err conftest.$ac_objext \
13076 conftest$ac_exeext conftest.$ac_ext
13078 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
13079 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
13083 if test "$ac_cv_c_extern_prefix" = "yes"
13084 then
13085 cat >>confdefs.h <<\_ACEOF
13086 #define __ASM_NAME(name) "_" name
13087 _ACEOF
13089 else
13090 cat >>confdefs.h <<\_ACEOF
13091 #define __ASM_NAME(name) name
13092 _ACEOF
13097 echo "$as_me:$LINENO: checking for assembler keyword for ASCII strings" >&5
13098 echo $ECHO_N "checking for assembler keyword for ASCII strings... $ECHO_C" >&6
13099 if test "${ac_cv_c_asm_string+set}" = set; then
13100 echo $ECHO_N "(cached) $ECHO_C" >&6
13101 else
13102 cat >conftest.$ac_ext <<_ACEOF
13103 /* confdefs.h. */
13104 _ACEOF
13105 cat confdefs.h >>conftest.$ac_ext
13106 cat >>conftest.$ac_ext <<_ACEOF
13107 /* end confdefs.h. */
13108 void ac_asm(void) { asm(".data\\n\\t.string \\"test\\"\\n\\t.text"); }
13111 main ()
13115 return 0;
13117 _ACEOF
13118 rm -f conftest.$ac_objext conftest$ac_exeext
13119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13120 (eval $ac_link) 2>conftest.er1
13121 ac_status=$?
13122 grep -v '^ *+' conftest.er1 >conftest.err
13123 rm -f conftest.er1
13124 cat conftest.err >&5
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); } &&
13127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13129 (eval $ac_try) 2>&5
13130 ac_status=$?
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); }; } &&
13133 { ac_try='test -s conftest$ac_exeext'
13134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13135 (eval $ac_try) 2>&5
13136 ac_status=$?
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); }; }; then
13139 ac_cv_c_asm_string=".string"
13140 else
13141 echo "$as_me: failed program was:" >&5
13142 sed 's/^/| /' conftest.$ac_ext >&5
13144 cat >conftest.$ac_ext <<_ACEOF
13145 /* confdefs.h. */
13146 _ACEOF
13147 cat confdefs.h >>conftest.$ac_ext
13148 cat >>conftest.$ac_ext <<_ACEOF
13149 /* end confdefs.h. */
13150 void ac_asm(void) { asm(".data\\n\\t.asciz \\"test\\"\\n\\t.text"); }
13153 main ()
13157 return 0;
13159 _ACEOF
13160 rm -f conftest.$ac_objext conftest$ac_exeext
13161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13162 (eval $ac_link) 2>conftest.er1
13163 ac_status=$?
13164 grep -v '^ *+' conftest.er1 >conftest.err
13165 rm -f conftest.er1
13166 cat conftest.err >&5
13167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 (exit $ac_status); } &&
13169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13171 (eval $ac_try) 2>&5
13172 ac_status=$?
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); }; } &&
13175 { ac_try='test -s conftest$ac_exeext'
13176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13177 (eval $ac_try) 2>&5
13178 ac_status=$?
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); }; }; then
13181 ac_cv_c_asm_string=".asciz"
13182 else
13183 echo "$as_me: failed program was:" >&5
13184 sed 's/^/| /' conftest.$ac_ext >&5
13186 cat >conftest.$ac_ext <<_ACEOF
13187 /* confdefs.h. */
13188 _ACEOF
13189 cat confdefs.h >>conftest.$ac_ext
13190 cat >>conftest.$ac_ext <<_ACEOF
13191 /* end confdefs.h. */
13192 void ac_asm(void) { asm(".data\\n\\t.ascii \\"test\\"\\n\\t.text"); }
13195 main ()
13199 return 0;
13201 _ACEOF
13202 rm -f conftest.$ac_objext conftest$ac_exeext
13203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13204 (eval $ac_link) 2>conftest.er1
13205 ac_status=$?
13206 grep -v '^ *+' conftest.er1 >conftest.err
13207 rm -f conftest.er1
13208 cat conftest.err >&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); } &&
13211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13213 (eval $ac_try) 2>&5
13214 ac_status=$?
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; } &&
13217 { ac_try='test -s conftest$ac_exeext'
13218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13219 (eval $ac_try) 2>&5
13220 ac_status=$?
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); }; }; then
13223 ac_cv_c_asm_string=".ascii"
13224 else
13225 echo "$as_me: failed program was:" >&5
13226 sed 's/^/| /' conftest.$ac_ext >&5
13228 { { echo "$as_me:$LINENO: error: could not discover how to produce C strings with assembler." >&5
13229 echo "$as_me: error: could not discover how to produce C strings with assembler." >&2;}
13230 { (exit 1); exit 1; }; }
13232 rm -f conftest.err conftest.$ac_objext \
13233 conftest$ac_exeext conftest.$ac_ext
13235 rm -f conftest.err conftest.$ac_objext \
13236 conftest$ac_exeext conftest.$ac_ext
13238 rm -f conftest.err conftest.$ac_objext \
13239 conftest$ac_exeext conftest.$ac_ext
13241 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
13242 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
13245 cat >>confdefs.h <<_ACEOF
13246 #define __ASM_STRING "$ac_cv_c_asm_string"
13247 _ACEOF
13251 echo "$as_me:$LINENO: checking for assembler keyword for word values" >&5
13252 echo $ECHO_N "checking for assembler keyword for word values... $ECHO_C" >&6
13253 if test "${ac_cv_c_asm_short+set}" = set; then
13254 echo $ECHO_N "(cached) $ECHO_C" >&6
13255 else
13256 cat >conftest.$ac_ext <<_ACEOF
13257 /* confdefs.h. */
13258 _ACEOF
13259 cat confdefs.h >>conftest.$ac_ext
13260 cat >>conftest.$ac_ext <<_ACEOF
13261 /* end confdefs.h. */
13262 void ac_asm(void) { asm(".data\\n\\t.short 1\\n\\t.text"); }
13265 main ()
13269 return 0;
13271 _ACEOF
13272 rm -f conftest.$ac_objext conftest$ac_exeext
13273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13274 (eval $ac_link) 2>conftest.er1
13275 ac_status=$?
13276 grep -v '^ *+' conftest.er1 >conftest.err
13277 rm -f conftest.er1
13278 cat conftest.err >&5
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); } &&
13281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13283 (eval $ac_try) 2>&5
13284 ac_status=$?
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); }; } &&
13287 { ac_try='test -s conftest$ac_exeext'
13288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13289 (eval $ac_try) 2>&5
13290 ac_status=$?
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); }; }; then
13293 ac_cv_c_asm_short=".short"
13294 else
13295 echo "$as_me: failed program was:" >&5
13296 sed 's/^/| /' conftest.$ac_ext >&5
13298 cat >conftest.$ac_ext <<_ACEOF
13299 /* confdefs.h. */
13300 _ACEOF
13301 cat confdefs.h >>conftest.$ac_ext
13302 cat >>conftest.$ac_ext <<_ACEOF
13303 /* end confdefs.h. */
13304 void ac_asm(void) { asm(".data\\n\\t.half 1\\n\\t.text"); }
13307 main ()
13311 return 0;
13313 _ACEOF
13314 rm -f conftest.$ac_objext conftest$ac_exeext
13315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13316 (eval $ac_link) 2>conftest.er1
13317 ac_status=$?
13318 grep -v '^ *+' conftest.er1 >conftest.err
13319 rm -f conftest.er1
13320 cat conftest.err >&5
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); } &&
13323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13325 (eval $ac_try) 2>&5
13326 ac_status=$?
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); }; } &&
13329 { ac_try='test -s conftest$ac_exeext'
13330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13331 (eval $ac_try) 2>&5
13332 ac_status=$?
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); }; }; then
13335 ac_cv_c_asm_short=".half"
13336 else
13337 echo "$as_me: failed program was:" >&5
13338 sed 's/^/| /' conftest.$ac_ext >&5
13340 { { echo "$as_me:$LINENO: error: could not discover how to specify word values with assembler." >&5
13341 echo "$as_me: error: could not discover how to specify word values with assembler." >&2;}
13342 { (exit 1); exit 1; }; }
13344 rm -f conftest.err conftest.$ac_objext \
13345 conftest$ac_exeext conftest.$ac_ext
13347 rm -f conftest.err conftest.$ac_objext \
13348 conftest$ac_exeext conftest.$ac_ext
13350 echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
13351 echo "${ECHO_T}$ac_cv_c_asm_short" >&6
13354 cat >>confdefs.h <<_ACEOF
13355 #define __ASM_SHORT "$ac_cv_c_asm_short"
13356 _ACEOF
13360 echo "$as_me:$LINENO: checking for .size in assembler" >&5
13361 echo $ECHO_N "checking for .size in assembler... $ECHO_C" >&6
13362 if test "${ac_cv_c_asm_size+set}" = set; then
13363 echo $ECHO_N "(cached) $ECHO_C" >&6
13364 else
13365 cat >conftest.$ac_ext <<_ACEOF
13366 /* confdefs.h. */
13367 _ACEOF
13368 cat confdefs.h >>conftest.$ac_ext
13369 cat >>conftest.$ac_ext <<_ACEOF
13370 /* end confdefs.h. */
13371 void ac_asm(void) { asm(".globl _ac_test\n.size _ac_test, . - _ac_test"); }
13374 main ()
13378 return 0;
13380 _ACEOF
13381 rm -f conftest.$ac_objext conftest$ac_exeext
13382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13383 (eval $ac_link) 2>conftest.er1
13384 ac_status=$?
13385 grep -v '^ *+' conftest.er1 >conftest.err
13386 rm -f conftest.er1
13387 cat conftest.err >&5
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); } &&
13390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13392 (eval $ac_try) 2>&5
13393 ac_status=$?
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); }; } &&
13396 { ac_try='test -s conftest$ac_exeext'
13397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13398 (eval $ac_try) 2>&5
13399 ac_status=$?
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); }; }; then
13402 ac_cv_c_asm_size="yes"
13403 else
13404 echo "$as_me: failed program was:" >&5
13405 sed 's/^/| /' conftest.$ac_ext >&5
13407 ac_cv_c_asm_size="no"
13409 rm -f conftest.err conftest.$ac_objext \
13410 conftest$ac_exeext conftest.$ac_ext
13412 echo "$as_me:$LINENO: result: $ac_cv_c_asm_size" >&5
13413 echo "${ECHO_T}$ac_cv_c_asm_size" >&6
13415 if test "$ac_cv_c_asm_size" = "yes"
13416 then
13418 cat >>confdefs.h <<\_ACEOF
13419 #define HAVE_ASM_DOT_SIZE 1
13420 _ACEOF
13425 DLLEXT=""
13427 DLLFLAGS="-D_REENTRANT"
13429 DLLIBS=""
13431 LDSHARED=""
13433 LDDLLFLAGS=""
13435 LIBEXT="so"
13437 IMPLIBEXT="def"
13440 case $host_os in
13441 cygwin*|mingw32*)
13442 if test -n "$ac_tool_prefix"; then
13443 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13444 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13445 echo "$as_me:$LINENO: checking for $ac_word" >&5
13446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13447 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13448 echo $ECHO_N "(cached) $ECHO_C" >&6
13449 else
13450 if test -n "$DLLTOOL"; then
13451 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13452 else
13453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13454 for as_dir in $PATH
13456 IFS=$as_save_IFS
13457 test -z "$as_dir" && as_dir=.
13458 for ac_exec_ext in '' $ac_executable_extensions; do
13459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13460 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13462 break 2
13464 done
13465 done
13469 DLLTOOL=$ac_cv_prog_DLLTOOL
13470 if test -n "$DLLTOOL"; then
13471 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13472 echo "${ECHO_T}$DLLTOOL" >&6
13473 else
13474 echo "$as_me:$LINENO: result: no" >&5
13475 echo "${ECHO_T}no" >&6
13479 if test -z "$ac_cv_prog_DLLTOOL"; then
13480 ac_ct_DLLTOOL=$DLLTOOL
13481 # Extract the first word of "dlltool", so it can be a program name with args.
13482 set dummy dlltool; 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_ac_ct_DLLTOOL+set}" = set; then
13486 echo $ECHO_N "(cached) $ECHO_C" >&6
13487 else
13488 if test -n "$ac_ct_DLLTOOL"; then
13489 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # 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_ac_ct_DLLTOOL="dlltool"
13499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13500 break 2
13502 done
13503 done
13505 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
13508 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13509 if test -n "$ac_ct_DLLTOOL"; then
13510 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13511 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
13512 else
13513 echo "$as_me:$LINENO: result: no" >&5
13514 echo "${ECHO_T}no" >&6
13517 DLLTOOL=$ac_ct_DLLTOOL
13518 else
13519 DLLTOOL="$ac_cv_prog_DLLTOOL"
13522 if test -n "$ac_tool_prefix"; then
13523 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
13524 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
13525 echo "$as_me:$LINENO: checking for $ac_word" >&5
13526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13527 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
13528 echo $ECHO_N "(cached) $ECHO_C" >&6
13529 else
13530 if test -n "$DLLWRAP"; then
13531 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
13532 else
13533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13534 for as_dir in $PATH
13536 IFS=$as_save_IFS
13537 test -z "$as_dir" && as_dir=.
13538 for ac_exec_ext in '' $ac_executable_extensions; do
13539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13540 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
13541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13542 break 2
13544 done
13545 done
13549 DLLWRAP=$ac_cv_prog_DLLWRAP
13550 if test -n "$DLLWRAP"; then
13551 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
13552 echo "${ECHO_T}$DLLWRAP" >&6
13553 else
13554 echo "$as_me:$LINENO: result: no" >&5
13555 echo "${ECHO_T}no" >&6
13559 if test -z "$ac_cv_prog_DLLWRAP"; then
13560 ac_ct_DLLWRAP=$DLLWRAP
13561 # Extract the first word of "dllwrap", so it can be a program name with args.
13562 set dummy dllwrap; ac_word=$2
13563 echo "$as_me:$LINENO: checking for $ac_word" >&5
13564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13565 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
13566 echo $ECHO_N "(cached) $ECHO_C" >&6
13567 else
13568 if test -n "$ac_ct_DLLWRAP"; then
13569 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
13570 else
13571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13572 for as_dir in $PATH
13574 IFS=$as_save_IFS
13575 test -z "$as_dir" && as_dir=.
13576 for ac_exec_ext in '' $ac_executable_extensions; do
13577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13578 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
13579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13580 break 2
13582 done
13583 done
13585 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
13588 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
13589 if test -n "$ac_ct_DLLWRAP"; then
13590 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
13591 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
13592 else
13593 echo "$as_me:$LINENO: result: no" >&5
13594 echo "${ECHO_T}no" >&6
13597 DLLWRAP=$ac_ct_DLLWRAP
13598 else
13599 DLLWRAP="$ac_cv_prog_DLLWRAP"
13602 if test "$DLLWRAP" = "false"; then
13603 LIBEXT="a"
13604 else
13605 LIBEXT="dll"
13607 IMPLIBEXT="a"
13611 for ac_header in dlfcn.h
13613 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13615 echo "$as_me:$LINENO: checking for $ac_header" >&5
13616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13618 echo $ECHO_N "(cached) $ECHO_C" >&6
13620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13622 else
13623 # Is the header compilable?
13624 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13625 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13626 cat >conftest.$ac_ext <<_ACEOF
13627 /* confdefs.h. */
13628 _ACEOF
13629 cat confdefs.h >>conftest.$ac_ext
13630 cat >>conftest.$ac_ext <<_ACEOF
13631 /* end confdefs.h. */
13632 $ac_includes_default
13633 #include <$ac_header>
13634 _ACEOF
13635 rm -f conftest.$ac_objext
13636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13637 (eval $ac_compile) 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); } &&
13644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13646 (eval $ac_try) 2>&5
13647 ac_status=$?
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); }; } &&
13650 { ac_try='test -s conftest.$ac_objext'
13651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13652 (eval $ac_try) 2>&5
13653 ac_status=$?
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); }; }; then
13656 ac_header_compiler=yes
13657 else
13658 echo "$as_me: failed program was:" >&5
13659 sed 's/^/| /' conftest.$ac_ext >&5
13661 ac_header_compiler=no
13663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13664 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13665 echo "${ECHO_T}$ac_header_compiler" >&6
13667 # Is the header present?
13668 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13669 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13670 cat >conftest.$ac_ext <<_ACEOF
13671 /* confdefs.h. */
13672 _ACEOF
13673 cat confdefs.h >>conftest.$ac_ext
13674 cat >>conftest.$ac_ext <<_ACEOF
13675 /* end confdefs.h. */
13676 #include <$ac_header>
13677 _ACEOF
13678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13680 ac_status=$?
13681 grep -v '^ *+' conftest.er1 >conftest.err
13682 rm -f conftest.er1
13683 cat conftest.err >&5
13684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); } >/dev/null; then
13686 if test -s conftest.err; then
13687 ac_cpp_err=$ac_c_preproc_warn_flag
13688 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13689 else
13690 ac_cpp_err=
13692 else
13693 ac_cpp_err=yes
13695 if test -z "$ac_cpp_err"; then
13696 ac_header_preproc=yes
13697 else
13698 echo "$as_me: failed program was:" >&5
13699 sed 's/^/| /' conftest.$ac_ext >&5
13701 ac_header_preproc=no
13703 rm -f conftest.err conftest.$ac_ext
13704 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13705 echo "${ECHO_T}$ac_header_preproc" >&6
13707 # So? What about this header?
13708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13709 yes:no: )
13710 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13711 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13713 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13714 ac_header_preproc=yes
13716 no:yes:* )
13717 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13719 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13720 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13721 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13722 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13723 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13724 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13727 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13728 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13730 cat <<\_ASBOX
13731 ## ------------------------------------ ##
13732 ## Report this to wine-devel@winehq.org ##
13733 ## ------------------------------------ ##
13734 _ASBOX
13736 sed "s/^/$as_me: WARNING: /" >&2
13738 esac
13739 echo "$as_me:$LINENO: checking for $ac_header" >&5
13740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13742 echo $ECHO_N "(cached) $ECHO_C" >&6
13743 else
13744 eval "$as_ac_Header=\$ac_header_preproc"
13746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13751 cat >>confdefs.h <<_ACEOF
13752 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13753 _ACEOF
13755 for ac_func in dlopen
13757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13758 echo "$as_me:$LINENO: checking for $ac_func" >&5
13759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13760 if eval "test \"\${$as_ac_var+set}\" = set"; then
13761 echo $ECHO_N "(cached) $ECHO_C" >&6
13762 else
13763 cat >conftest.$ac_ext <<_ACEOF
13764 /* confdefs.h. */
13765 _ACEOF
13766 cat confdefs.h >>conftest.$ac_ext
13767 cat >>conftest.$ac_ext <<_ACEOF
13768 /* end confdefs.h. */
13769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13771 #define $ac_func innocuous_$ac_func
13773 /* System header to define __stub macros and hopefully few prototypes,
13774 which can conflict with char $ac_func (); below.
13775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13776 <limits.h> exists even on freestanding compilers. */
13778 #ifdef __STDC__
13779 # include <limits.h>
13780 #else
13781 # include <assert.h>
13782 #endif
13784 #undef $ac_func
13786 /* Override any gcc2 internal prototype to avoid an error. */
13787 #ifdef __cplusplus
13788 extern "C"
13790 #endif
13791 /* We use char because int might match the return type of a gcc2
13792 builtin and then its argument prototype would still apply. */
13793 char $ac_func ();
13794 /* The GNU C library defines this for functions which it implements
13795 to always fail with ENOSYS. Some functions are actually named
13796 something starting with __ and the normal name is an alias. */
13797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13798 choke me
13799 #else
13800 char (*f) () = $ac_func;
13801 #endif
13802 #ifdef __cplusplus
13804 #endif
13807 main ()
13809 return f != $ac_func;
13811 return 0;
13813 _ACEOF
13814 rm -f conftest.$ac_objext conftest$ac_exeext
13815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13816 (eval $ac_link) 2>conftest.er1
13817 ac_status=$?
13818 grep -v '^ *+' conftest.er1 >conftest.err
13819 rm -f conftest.er1
13820 cat conftest.err >&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } &&
13823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13825 (eval $ac_try) 2>&5
13826 ac_status=$?
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); }; } &&
13829 { ac_try='test -s conftest$ac_exeext'
13830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13831 (eval $ac_try) 2>&5
13832 ac_status=$?
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); }; }; then
13835 eval "$as_ac_var=yes"
13836 else
13837 echo "$as_me: failed program was:" >&5
13838 sed 's/^/| /' conftest.$ac_ext >&5
13840 eval "$as_ac_var=no"
13842 rm -f conftest.err conftest.$ac_objext \
13843 conftest$ac_exeext conftest.$ac_ext
13845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13846 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13847 if test `eval echo '${'$as_ac_var'}'` = yes; then
13848 cat >>confdefs.h <<_ACEOF
13849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13850 _ACEOF
13852 else
13853 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13854 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13855 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13856 echo $ECHO_N "(cached) $ECHO_C" >&6
13857 else
13858 ac_check_lib_save_LIBS=$LIBS
13859 LIBS="-ldl $LIBS"
13860 cat >conftest.$ac_ext <<_ACEOF
13861 /* confdefs.h. */
13862 _ACEOF
13863 cat confdefs.h >>conftest.$ac_ext
13864 cat >>conftest.$ac_ext <<_ACEOF
13865 /* end confdefs.h. */
13867 /* Override any gcc2 internal prototype to avoid an error. */
13868 #ifdef __cplusplus
13869 extern "C"
13870 #endif
13871 /* We use char because int might match the return type of a gcc2
13872 builtin and then its argument prototype would still apply. */
13873 char dlopen ();
13875 main ()
13877 dlopen ();
13879 return 0;
13881 _ACEOF
13882 rm -f conftest.$ac_objext conftest$ac_exeext
13883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13884 (eval $ac_link) 2>conftest.er1
13885 ac_status=$?
13886 grep -v '^ *+' conftest.er1 >conftest.err
13887 rm -f conftest.er1
13888 cat conftest.err >&5
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); } &&
13891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13893 (eval $ac_try) 2>&5
13894 ac_status=$?
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); }; } &&
13897 { ac_try='test -s conftest$ac_exeext'
13898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13899 (eval $ac_try) 2>&5
13900 ac_status=$?
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); }; }; then
13903 ac_cv_lib_dl_dlopen=yes
13904 else
13905 echo "$as_me: failed program was:" >&5
13906 sed 's/^/| /' conftest.$ac_ext >&5
13908 ac_cv_lib_dl_dlopen=no
13910 rm -f conftest.err conftest.$ac_objext \
13911 conftest$ac_exeext conftest.$ac_ext
13912 LIBS=$ac_check_lib_save_LIBS
13914 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13915 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13916 if test $ac_cv_lib_dl_dlopen = yes; then
13918 cat >>confdefs.h <<\_ACEOF
13919 #define HAVE_DLOPEN 1
13920 _ACEOF
13922 DLLIBS="-ldl"
13923 else
13924 LIBEXT="a"
13928 done
13930 else
13931 LIBEXT="a"
13934 done
13937 if test "$LIBEXT" = "so"
13938 then
13939 DLLFLAGS="$DLLFLAGS -fPIC"
13940 DLLEXT=".so"
13941 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
13942 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
13943 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
13944 echo $ECHO_N "(cached) $ECHO_C" >&6
13945 else
13946 ac_wine_try_cflags_saved=$CFLAGS
13947 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
13948 cat >conftest.$ac_ext <<_ACEOF
13949 /* confdefs.h. */
13950 _ACEOF
13951 cat confdefs.h >>conftest.$ac_ext
13952 cat >>conftest.$ac_ext <<_ACEOF
13953 /* end confdefs.h. */
13956 main ()
13960 return 0;
13962 _ACEOF
13963 rm -f conftest.$ac_objext conftest$ac_exeext
13964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13965 (eval $ac_link) 2>conftest.er1
13966 ac_status=$?
13967 grep -v '^ *+' conftest.er1 >conftest.err
13968 rm -f conftest.er1
13969 cat conftest.err >&5
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); } &&
13972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974 (eval $ac_try) 2>&5
13975 ac_status=$?
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); }; } &&
13978 { ac_try='test -s conftest$ac_exeext'
13979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980 (eval $ac_try) 2>&5
13981 ac_status=$?
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); }; }; then
13984 ac_cv_c_dll_gnuelf="yes"
13985 else
13986 echo "$as_me: failed program was:" >&5
13987 sed 's/^/| /' conftest.$ac_ext >&5
13989 ac_cv_c_dll_gnuelf="no"
13991 rm -f conftest.err conftest.$ac_objext \
13992 conftest$ac_exeext conftest.$ac_ext
13993 CFLAGS=$ac_wine_try_cflags_saved
13995 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
13996 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
13997 if test "$ac_cv_c_dll_gnuelf" = "yes"
13998 then
13999 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
14000 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
14001 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
14002 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
14003 if test "${ac_cv_c_dll_zdefs+set}" = set; then
14004 echo $ECHO_N "(cached) $ECHO_C" >&6
14005 else
14006 ac_wine_try_cflags_saved=$CFLAGS
14007 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
14008 cat >conftest.$ac_ext <<_ACEOF
14009 /* confdefs.h. */
14010 _ACEOF
14011 cat confdefs.h >>conftest.$ac_ext
14012 cat >>conftest.$ac_ext <<_ACEOF
14013 /* end confdefs.h. */
14016 main ()
14020 return 0;
14022 _ACEOF
14023 rm -f conftest.$ac_objext conftest$ac_exeext
14024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14025 (eval $ac_link) 2>conftest.er1
14026 ac_status=$?
14027 grep -v '^ *+' conftest.er1 >conftest.err
14028 rm -f conftest.er1
14029 cat conftest.err >&5
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); } &&
14032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14034 (eval $ac_try) 2>&5
14035 ac_status=$?
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); }; } &&
14038 { ac_try='test -s conftest$ac_exeext'
14039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14040 (eval $ac_try) 2>&5
14041 ac_status=$?
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); }; }; then
14044 ac_cv_c_dll_zdefs="yes"
14045 else
14046 echo "$as_me: failed program was:" >&5
14047 sed 's/^/| /' conftest.$ac_ext >&5
14049 ac_cv_c_dll_zdefs="no"
14051 rm -f conftest.err conftest.$ac_objext \
14052 conftest$ac_exeext conftest.$ac_ext
14053 CFLAGS=$ac_wine_try_cflags_saved
14055 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
14056 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
14057 if test "$ac_cv_c_dll_zdefs" = "yes"
14058 then
14059 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
14062 echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
14063 echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6
14064 if test "${ac_cv_c_dll_init_fini+set}" = set; then
14065 echo $ECHO_N "(cached) $ECHO_C" >&6
14066 else
14067 ac_wine_try_cflags_saved=$CFLAGS
14068 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
14069 cat >conftest.$ac_ext <<_ACEOF
14070 /* confdefs.h. */
14071 _ACEOF
14072 cat confdefs.h >>conftest.$ac_ext
14073 cat >>conftest.$ac_ext <<_ACEOF
14074 /* end confdefs.h. */
14077 main ()
14081 return 0;
14083 _ACEOF
14084 rm -f conftest.$ac_objext conftest$ac_exeext
14085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14086 (eval $ac_link) 2>conftest.er1
14087 ac_status=$?
14088 grep -v '^ *+' conftest.er1 >conftest.err
14089 rm -f conftest.er1
14090 cat conftest.err >&5
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); } &&
14093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14095 (eval $ac_try) 2>&5
14096 ac_status=$?
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); }; } &&
14099 { ac_try='test -s conftest$ac_exeext'
14100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101 (eval $ac_try) 2>&5
14102 ac_status=$?
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; }; then
14105 ac_cv_c_dll_init_fini="yes"
14106 else
14107 echo "$as_me: failed program was:" >&5
14108 sed 's/^/| /' conftest.$ac_ext >&5
14110 ac_cv_c_dll_init_fini="no"
14112 rm -f conftest.err conftest.$ac_objext \
14113 conftest$ac_exeext conftest.$ac_ext
14114 CFLAGS=$ac_wine_try_cflags_saved
14116 echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
14117 echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6
14118 if test "$ac_cv_c_dll_init_fini" = "yes"
14119 then
14120 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
14123 echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
14124 echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6
14125 if test "${ac_cv_c_ld_version_scripts+set}" = set; then
14126 echo $ECHO_N "(cached) $ECHO_C" >&6
14127 else
14128 echo '{ global: *; };' >conftest.map
14129 ac_wine_try_cflags_saved=$CFLAGS
14130 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
14131 cat >conftest.$ac_ext <<_ACEOF
14132 /* confdefs.h. */
14133 _ACEOF
14134 cat confdefs.h >>conftest.$ac_ext
14135 cat >>conftest.$ac_ext <<_ACEOF
14136 /* end confdefs.h. */
14139 main ()
14143 return 0;
14145 _ACEOF
14146 rm -f conftest.$ac_objext conftest$ac_exeext
14147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14148 (eval $ac_link) 2>conftest.er1
14149 ac_status=$?
14150 grep -v '^ *+' conftest.er1 >conftest.err
14151 rm -f conftest.er1
14152 cat conftest.err >&5
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); } &&
14155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14157 (eval $ac_try) 2>&5
14158 ac_status=$?
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); }; } &&
14161 { ac_try='test -s conftest$ac_exeext'
14162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14163 (eval $ac_try) 2>&5
14164 ac_status=$?
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); }; }; then
14167 ac_cv_c_ld_version_scripts="yes"
14168 else
14169 echo "$as_me: failed program was:" >&5
14170 sed 's/^/| /' conftest.$ac_ext >&5
14172 ac_cv_c_ld_version_scripts="no"
14174 rm -f conftest.err conftest.$ac_objext \
14175 conftest$ac_exeext conftest.$ac_ext
14176 CFLAGS=$ac_wine_try_cflags_saved
14177 rm -f conftest.map
14179 echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
14180 echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6
14181 if test "$ac_cv_c_ld_version_scripts" = "yes"
14182 then
14183 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
14186 echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
14187 echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6
14188 if test "${ac_cv_c_export_dynamic+set}" = set; then
14189 echo $ECHO_N "(cached) $ECHO_C" >&6
14190 else
14191 ac_wine_try_cflags_saved=$CFLAGS
14192 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
14193 cat >conftest.$ac_ext <<_ACEOF
14194 /* confdefs.h. */
14195 _ACEOF
14196 cat confdefs.h >>conftest.$ac_ext
14197 cat >>conftest.$ac_ext <<_ACEOF
14198 /* end confdefs.h. */
14201 main ()
14205 return 0;
14207 _ACEOF
14208 rm -f conftest.$ac_objext conftest$ac_exeext
14209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14210 (eval $ac_link) 2>conftest.er1
14211 ac_status=$?
14212 grep -v '^ *+' conftest.er1 >conftest.err
14213 rm -f conftest.er1
14214 cat conftest.err >&5
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); } &&
14217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14219 (eval $ac_try) 2>&5
14220 ac_status=$?
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); }; } &&
14223 { ac_try='test -s conftest$ac_exeext'
14224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14225 (eval $ac_try) 2>&5
14226 ac_status=$?
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); }; }; then
14229 ac_cv_c_export_dynamic="yes"
14230 else
14231 echo "$as_me: failed program was:" >&5
14232 sed 's/^/| /' conftest.$ac_ext >&5
14234 ac_cv_c_export_dynamic="no"
14236 rm -f conftest.err conftest.$ac_objext \
14237 conftest$ac_exeext conftest.$ac_ext
14238 CFLAGS=$ac_wine_try_cflags_saved
14240 echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
14241 echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6
14242 if test "$ac_cv_c_export_dynamic" = "yes"
14243 then
14244 LDEXECFLAGS="-Wl,--export-dynamic"
14248 case $host_cpu in
14249 *i[3456789]86*)
14250 echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x77f00000" >&5
14251 echo $ECHO_N "checking whether we can relocate the executable to 0x77f00000... $ECHO_C" >&6
14252 if test "${ac_cv_ld_reloc_exec+set}" = set; then
14253 echo $ECHO_N "(cached) $ECHO_C" >&6
14254 else
14255 ac_wine_try_cflags_saved=$CFLAGS
14256 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x77f00400"
14257 cat >conftest.$ac_ext <<_ACEOF
14258 /* confdefs.h. */
14259 _ACEOF
14260 cat confdefs.h >>conftest.$ac_ext
14261 cat >>conftest.$ac_ext <<_ACEOF
14262 /* end confdefs.h. */
14265 main ()
14269 return 0;
14271 _ACEOF
14272 rm -f conftest.$ac_objext conftest$ac_exeext
14273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14274 (eval $ac_link) 2>conftest.er1
14275 ac_status=$?
14276 grep -v '^ *+' conftest.er1 >conftest.err
14277 rm -f conftest.er1
14278 cat conftest.err >&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); } &&
14281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14283 (eval $ac_try) 2>&5
14284 ac_status=$?
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); }; } &&
14287 { ac_try='test -s conftest$ac_exeext'
14288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14289 (eval $ac_try) 2>&5
14290 ac_status=$?
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); }; }; then
14293 ac_cv_ld_reloc_exec="yes"
14294 else
14295 echo "$as_me: failed program was:" >&5
14296 sed 's/^/| /' conftest.$ac_ext >&5
14298 ac_cv_ld_reloc_exec="no"
14300 rm -f conftest.err conftest.$ac_objext \
14301 conftest$ac_exeext conftest.$ac_ext
14302 CFLAGS=$ac_wine_try_cflags_saved
14304 echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
14305 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
14306 if test "$ac_cv_ld_reloc_exec" = "yes"
14307 then
14308 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x77f00400"
14311 esac
14313 else
14314 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
14315 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
14316 if test "${ac_cv_c_dll_unixware+set}" = set; then
14317 echo $ECHO_N "(cached) $ECHO_C" >&6
14318 else
14319 ac_wine_try_cflags_saved=$CFLAGS
14320 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
14321 cat >conftest.$ac_ext <<_ACEOF
14322 /* confdefs.h. */
14323 _ACEOF
14324 cat confdefs.h >>conftest.$ac_ext
14325 cat >>conftest.$ac_ext <<_ACEOF
14326 /* end confdefs.h. */
14329 main ()
14333 return 0;
14335 _ACEOF
14336 rm -f conftest.$ac_objext conftest$ac_exeext
14337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14338 (eval $ac_link) 2>conftest.er1
14339 ac_status=$?
14340 grep -v '^ *+' conftest.er1 >conftest.err
14341 rm -f conftest.er1
14342 cat conftest.err >&5
14343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344 (exit $ac_status); } &&
14345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14347 (eval $ac_try) 2>&5
14348 ac_status=$?
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); }; } &&
14351 { ac_try='test -s conftest$ac_exeext'
14352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14353 (eval $ac_try) 2>&5
14354 ac_status=$?
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); }; }; then
14357 ac_cv_c_dll_unixware="yes"
14358 else
14359 echo "$as_me: failed program was:" >&5
14360 sed 's/^/| /' conftest.$ac_ext >&5
14362 ac_cv_c_dll_unixware="no"
14364 rm -f conftest.err conftest.$ac_objext \
14365 conftest$ac_exeext conftest.$ac_ext
14366 CFLAGS=$ac_wine_try_cflags_saved
14368 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
14369 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
14370 if test "$ac_cv_c_dll_unixware" = "yes"
14371 then
14372 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
14373 LDDLLFLAGS="-Wl,-G,-B,symbolic"
14375 else
14376 echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
14377 echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6
14378 if test "${ac_cv_c_dll_macho+set}" = set; then
14379 echo $ECHO_N "(cached) $ECHO_C" >&6
14380 else
14381 ac_wine_try_cflags_saved=$CFLAGS
14382 CFLAGS="$CFLAGS -bundle"
14383 cat >conftest.$ac_ext <<_ACEOF
14384 /* confdefs.h. */
14385 _ACEOF
14386 cat confdefs.h >>conftest.$ac_ext
14387 cat >>conftest.$ac_ext <<_ACEOF
14388 /* end confdefs.h. */
14391 main ()
14395 return 0;
14397 _ACEOF
14398 rm -f conftest.$ac_objext conftest$ac_exeext
14399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14400 (eval $ac_link) 2>conftest.er1
14401 ac_status=$?
14402 grep -v '^ *+' conftest.er1 >conftest.err
14403 rm -f conftest.er1
14404 cat conftest.err >&5
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); } &&
14407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14409 (eval $ac_try) 2>&5
14410 ac_status=$?
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); }; } &&
14413 { ac_try='test -s conftest$ac_exeext'
14414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14415 (eval $ac_try) 2>&5
14416 ac_status=$?
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); }; }; then
14419 ac_cv_c_dll_macho="yes"
14420 else
14421 echo "$as_me: failed program was:" >&5
14422 sed 's/^/| /' conftest.$ac_ext >&5
14424 ac_cv_c_dll_macho="no"
14426 rm -f conftest.err conftest.$ac_objext \
14427 conftest$ac_exeext conftest.$ac_ext
14428 CFLAGS=$ac_wine_try_cflags_saved
14430 echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
14431 echo "${ECHO_T}$ac_cv_c_dll_macho" >&6
14432 if test "$ac_cv_c_dll_macho" = "yes"
14433 then
14434 LIBEXT="dylib"
14435 LDDLLFLAGS="-bundle -flat_namespace -undefined suppress"
14436 LDSHARED="\$(CC) -dynamiclib"
14437 CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp"
14438 STRIP="$STRIP -u -r"
14444 CROSSTEST=""
14446 if test "$cross_compiling" = "no"
14447 then
14448 for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
14450 # Extract the first word of "$ac_prog", so it can be a program name with args.
14451 set dummy $ac_prog; ac_word=$2
14452 echo "$as_me:$LINENO: checking for $ac_word" >&5
14453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14454 if test "${ac_cv_prog_CROSSCC+set}" = set; then
14455 echo $ECHO_N "(cached) $ECHO_C" >&6
14456 else
14457 if test -n "$CROSSCC"; then
14458 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
14459 else
14460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14461 for as_dir in $PATH
14463 IFS=$as_save_IFS
14464 test -z "$as_dir" && as_dir=.
14465 for ac_exec_ext in '' $ac_executable_extensions; do
14466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14467 ac_cv_prog_CROSSCC="$ac_prog"
14468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14469 break 2
14471 done
14472 done
14476 CROSSCC=$ac_cv_prog_CROSSCC
14477 if test -n "$CROSSCC"; then
14478 echo "$as_me:$LINENO: result: $CROSSCC" >&5
14479 echo "${ECHO_T}$CROSSCC" >&6
14480 else
14481 echo "$as_me:$LINENO: result: no" >&5
14482 echo "${ECHO_T}no" >&6
14485 test -n "$CROSSCC" && break
14486 done
14487 test -n "$CROSSCC" || CROSSCC="false"
14489 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
14491 # Extract the first word of "$ac_prog", so it can be a program name with args.
14492 set dummy $ac_prog; ac_word=$2
14493 echo "$as_me:$LINENO: checking for $ac_word" >&5
14494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14495 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14496 echo $ECHO_N "(cached) $ECHO_C" >&6
14497 else
14498 if test -n "$DLLTOOL"; then
14499 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14500 else
14501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14502 for as_dir in $PATH
14504 IFS=$as_save_IFS
14505 test -z "$as_dir" && as_dir=.
14506 for ac_exec_ext in '' $ac_executable_extensions; do
14507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14508 ac_cv_prog_DLLTOOL="$ac_prog"
14509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14510 break 2
14512 done
14513 done
14517 DLLTOOL=$ac_cv_prog_DLLTOOL
14518 if test -n "$DLLTOOL"; then
14519 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14520 echo "${ECHO_T}$DLLTOOL" >&6
14521 else
14522 echo "$as_me:$LINENO: result: no" >&5
14523 echo "${ECHO_T}no" >&6
14526 test -n "$DLLTOOL" && break
14527 done
14528 test -n "$DLLTOOL" || DLLTOOL="false"
14530 for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres
14532 # Extract the first word of "$ac_prog", so it can be a program name with args.
14533 set dummy $ac_prog; ac_word=$2
14534 echo "$as_me:$LINENO: checking for $ac_word" >&5
14535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14536 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
14537 echo $ECHO_N "(cached) $ECHO_C" >&6
14538 else
14539 if test -n "$CROSSWINDRES"; then
14540 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
14541 else
14542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14543 for as_dir in $PATH
14545 IFS=$as_save_IFS
14546 test -z "$as_dir" && as_dir=.
14547 for ac_exec_ext in '' $ac_executable_extensions; do
14548 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14549 ac_cv_prog_CROSSWINDRES="$ac_prog"
14550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14551 break 2
14553 done
14554 done
14558 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
14559 if test -n "$CROSSWINDRES"; then
14560 echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
14561 echo "${ECHO_T}$CROSSWINDRES" >&6
14562 else
14563 echo "$as_me:$LINENO: result: no" >&5
14564 echo "${ECHO_T}no" >&6
14567 test -n "$CROSSWINDRES" && break
14568 done
14569 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
14571 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
14574 esac
14576 if test "$LIBEXT" = "a"; then
14577 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
14578 It is currently not possible to build Wine without shared library
14579 (.so) support to allow transparent switch between .so and .dll files.
14580 If you are using Linux, you will need a newer binutils.
14581 " >&5
14582 echo "$as_me: error: could not find a way to build shared libraries.
14583 It is currently not possible to build Wine without shared library
14584 (.so) support to allow transparent switch between .so and .dll files.
14585 If you are using Linux, you will need a newer binutils.
14586 " >&2;}
14587 { (exit 1); exit 1; }; }
14590 case $build_os in
14591 cygwin*|mingw32*)
14592 LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
14594 darwin*|macosx*)
14595 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\""
14598 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
14600 esac
14602 case $host_os in
14603 mingw32*)
14604 CRTLIBS="-lmsvcrt"
14606 esac
14608 case $host_os in
14609 linux*)
14610 WINE_BINARIES="wine-glibc wine-kthread wine-pthread wine-preloader"
14612 MAIN_BINARY="wine-glibc"
14616 WINE_BINARIES="wine-kthread"
14618 MAIN_BINARY="wine-kthread"
14621 esac
14624 if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
14625 then
14626 # Extract the first word of "ldd", so it can be a program name with args.
14627 set dummy ldd; ac_word=$2
14628 echo "$as_me:$LINENO: checking for $ac_word" >&5
14629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14630 if test "${ac_cv_path_LDD+set}" = set; then
14631 echo $ECHO_N "(cached) $ECHO_C" >&6
14632 else
14633 case $LDD in
14634 [\\/]* | ?:[\\/]*)
14635 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
14638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14639 as_dummy="/sbin:/usr/sbin:$PATH"
14640 for as_dir in $as_dummy
14642 IFS=$as_save_IFS
14643 test -z "$as_dir" && as_dir=.
14644 for ac_exec_ext in '' $ac_executable_extensions; do
14645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14646 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
14647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14648 break 2
14650 done
14651 done
14653 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
14655 esac
14657 LDD=$ac_cv_path_LDD
14659 if test -n "$LDD"; then
14660 echo "$as_me:$LINENO: result: $LDD" >&5
14661 echo "${ECHO_T}$LDD" >&6
14662 else
14663 echo "$as_me:$LINENO: result: no" >&5
14664 echo "${ECHO_T}no" >&6
14668 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
14669 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
14670 if test "${ac_cv_lib_soname_X11+set}" = set; then
14671 echo $ECHO_N "(cached) $ECHO_C" >&6
14672 else
14673 ac_get_soname_save_LIBS=$LIBS
14674 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
14675 cat >conftest.$ac_ext <<_ACEOF
14676 /* confdefs.h. */
14677 _ACEOF
14678 cat confdefs.h >>conftest.$ac_ext
14679 cat >>conftest.$ac_ext <<_ACEOF
14680 /* end confdefs.h. */
14682 /* Override any gcc2 internal prototype to avoid an error. */
14683 #ifdef __cplusplus
14684 extern "C"
14685 #endif
14686 /* We use char because int might match the return type of a gcc2
14687 builtin and then its argument prototype would still apply. */
14688 char XCreateWindow ();
14690 main ()
14692 XCreateWindow ();
14694 return 0;
14696 _ACEOF
14697 rm -f conftest.$ac_objext conftest$ac_exeext
14698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14699 (eval $ac_link) 2>conftest.er1
14700 ac_status=$?
14701 grep -v '^ *+' conftest.er1 >conftest.err
14702 rm -f conftest.er1
14703 cat conftest.err >&5
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); } &&
14706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708 (eval $ac_try) 2>&5
14709 ac_status=$?
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; } &&
14712 { ac_try='test -s conftest$ac_exeext'
14713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14714 (eval $ac_try) 2>&5
14715 ac_status=$?
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); }; }; then
14718 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.$LIBEXT | sed "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"`
14719 if test "x$ac_cv_lib_soname_X11" = "x"
14720 then
14721 ac_cv_lib_soname_X11="libX11.$LIBEXT"
14723 else
14724 echo "$as_me: failed program was:" >&5
14725 sed 's/^/| /' conftest.$ac_ext >&5
14727 ac_cv_lib_soname_X11="libX11.$LIBEXT"
14729 rm -f conftest.err conftest.$ac_objext \
14730 conftest$ac_exeext conftest.$ac_ext
14731 LIBS=$ac_get_soname_save_LIBS
14733 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
14734 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
14735 if test "x$ac_cv_lib_soname_X11" != xNONE
14736 then
14737 cat >>confdefs.h <<_ACEOF
14738 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
14739 _ACEOF
14742 echo "$as_me:$LINENO: checking for -lXext soname" >&5
14743 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
14744 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14745 echo $ECHO_N "(cached) $ECHO_C" >&6
14746 else
14747 ac_get_soname_save_LIBS=$LIBS
14748 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14749 cat >conftest.$ac_ext <<_ACEOF
14750 /* confdefs.h. */
14751 _ACEOF
14752 cat confdefs.h >>conftest.$ac_ext
14753 cat >>conftest.$ac_ext <<_ACEOF
14754 /* end confdefs.h. */
14756 /* Override any gcc2 internal prototype to avoid an error. */
14757 #ifdef __cplusplus
14758 extern "C"
14759 #endif
14760 /* We use char because int might match the return type of a gcc2
14761 builtin and then its argument prototype would still apply. */
14762 char XextCreateExtension ();
14764 main ()
14766 XextCreateExtension ();
14768 return 0;
14770 _ACEOF
14771 rm -f conftest.$ac_objext conftest$ac_exeext
14772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14773 (eval $ac_link) 2>conftest.er1
14774 ac_status=$?
14775 grep -v '^ *+' conftest.er1 >conftest.err
14776 rm -f conftest.er1
14777 cat conftest.err >&5
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); } &&
14780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14782 (eval $ac_try) 2>&5
14783 ac_status=$?
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); }; } &&
14786 { ac_try='test -s conftest$ac_exeext'
14787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14788 (eval $ac_try) 2>&5
14789 ac_status=$?
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); }; }; then
14792 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.$LIBEXT | sed "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"`
14793 if test "x$ac_cv_lib_soname_Xext" = "x"
14794 then
14795 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14797 else
14798 echo "$as_me: failed program was:" >&5
14799 sed 's/^/| /' conftest.$ac_ext >&5
14801 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14803 rm -f conftest.err conftest.$ac_objext \
14804 conftest$ac_exeext conftest.$ac_ext
14805 LIBS=$ac_get_soname_save_LIBS
14807 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14808 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
14809 if test "x$ac_cv_lib_soname_Xext" != xNONE
14810 then
14811 cat >>confdefs.h <<_ACEOF
14812 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14813 _ACEOF
14816 echo "$as_me:$LINENO: checking for -lXi soname" >&5
14817 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6
14818 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14819 echo $ECHO_N "(cached) $ECHO_C" >&6
14820 else
14821 ac_get_soname_save_LIBS=$LIBS
14822 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14823 cat >conftest.$ac_ext <<_ACEOF
14824 /* confdefs.h. */
14825 _ACEOF
14826 cat confdefs.h >>conftest.$ac_ext
14827 cat >>conftest.$ac_ext <<_ACEOF
14828 /* end confdefs.h. */
14830 /* Override any gcc2 internal prototype to avoid an error. */
14831 #ifdef __cplusplus
14832 extern "C"
14833 #endif
14834 /* We use char because int might match the return type of a gcc2
14835 builtin and then its argument prototype would still apply. */
14836 char XOpenDevice ();
14838 main ()
14840 XOpenDevice ();
14842 return 0;
14844 _ACEOF
14845 rm -f conftest.$ac_objext conftest$ac_exeext
14846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14847 (eval $ac_link) 2>conftest.er1
14848 ac_status=$?
14849 grep -v '^ *+' conftest.er1 >conftest.err
14850 rm -f conftest.er1
14851 cat conftest.err >&5
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); } &&
14854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14856 (eval $ac_try) 2>&5
14857 ac_status=$?
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); }; } &&
14860 { ac_try='test -s conftest$ac_exeext'
14861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14862 (eval $ac_try) 2>&5
14863 ac_status=$?
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); }; }; then
14866 ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.$LIBEXT | sed "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"`
14867 if test "x$ac_cv_lib_soname_Xi" = "x"
14868 then
14869 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14871 else
14872 echo "$as_me: failed program was:" >&5
14873 sed 's/^/| /' conftest.$ac_ext >&5
14875 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14877 rm -f conftest.err conftest.$ac_objext \
14878 conftest$ac_exeext conftest.$ac_ext
14879 LIBS=$ac_get_soname_save_LIBS
14881 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
14882 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6
14883 if test "x$ac_cv_lib_soname_Xi" != xNONE
14884 then
14885 cat >>confdefs.h <<_ACEOF
14886 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
14887 _ACEOF
14890 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
14891 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
14892 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14893 echo $ECHO_N "(cached) $ECHO_C" >&6
14894 else
14895 ac_get_soname_save_LIBS=$LIBS
14896 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14897 cat >conftest.$ac_ext <<_ACEOF
14898 /* confdefs.h. */
14899 _ACEOF
14900 cat confdefs.h >>conftest.$ac_ext
14901 cat >>conftest.$ac_ext <<_ACEOF
14902 /* end confdefs.h. */
14904 /* Override any gcc2 internal prototype to avoid an error. */
14905 #ifdef __cplusplus
14906 extern "C"
14907 #endif
14908 /* We use char because int might match the return type of a gcc2
14909 builtin and then its argument prototype would still apply. */
14910 char XRenderQueryExtension ();
14912 main ()
14914 XRenderQueryExtension ();
14916 return 0;
14918 _ACEOF
14919 rm -f conftest.$ac_objext conftest$ac_exeext
14920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14921 (eval $ac_link) 2>conftest.er1
14922 ac_status=$?
14923 grep -v '^ *+' conftest.er1 >conftest.err
14924 rm -f conftest.er1
14925 cat conftest.err >&5
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); } &&
14928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14930 (eval $ac_try) 2>&5
14931 ac_status=$?
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); }; } &&
14934 { ac_try='test -s conftest$ac_exeext'
14935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14936 (eval $ac_try) 2>&5
14937 ac_status=$?
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); }; }; then
14940 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.$LIBEXT | sed "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"`
14941 if test "x$ac_cv_lib_soname_Xrender" = "x"
14942 then
14943 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
14945 else
14946 echo "$as_me: failed program was:" >&5
14947 sed 's/^/| /' conftest.$ac_ext >&5
14949 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
14951 rm -f conftest.err conftest.$ac_objext \
14952 conftest$ac_exeext conftest.$ac_ext
14953 LIBS=$ac_get_soname_save_LIBS
14955 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
14956 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
14957 if test "x$ac_cv_lib_soname_Xrender" != xNONE
14958 then
14959 cat >>confdefs.h <<_ACEOF
14960 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
14961 _ACEOF
14964 echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
14965 echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6
14966 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
14967 echo $ECHO_N "(cached) $ECHO_C" >&6
14968 else
14969 ac_get_soname_save_LIBS=$LIBS
14970 LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14971 cat >conftest.$ac_ext <<_ACEOF
14972 /* confdefs.h. */
14973 _ACEOF
14974 cat confdefs.h >>conftest.$ac_ext
14975 cat >>conftest.$ac_ext <<_ACEOF
14976 /* end confdefs.h. */
14978 /* Override any gcc2 internal prototype to avoid an error. */
14979 #ifdef __cplusplus
14980 extern "C"
14981 #endif
14982 /* We use char because int might match the return type of a gcc2
14983 builtin and then its argument prototype would still apply. */
14984 char XRRQueryExtension ();
14986 main ()
14988 XRRQueryExtension ();
14990 return 0;
14992 _ACEOF
14993 rm -f conftest.$ac_objext conftest$ac_exeext
14994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14995 (eval $ac_link) 2>conftest.er1
14996 ac_status=$?
14997 grep -v '^ *+' conftest.er1 >conftest.err
14998 rm -f conftest.er1
14999 cat conftest.err >&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); } &&
15002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15004 (eval $ac_try) 2>&5
15005 ac_status=$?
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); }; } &&
15008 { ac_try='test -s conftest$ac_exeext'
15009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15010 (eval $ac_try) 2>&5
15011 ac_status=$?
15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); }; }; then
15014 ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.$LIBEXT | sed "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"`
15015 if test "x$ac_cv_lib_soname_Xrandr" = "x"
15016 then
15017 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
15019 else
15020 echo "$as_me: failed program was:" >&5
15021 sed 's/^/| /' conftest.$ac_ext >&5
15023 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
15025 rm -f conftest.err conftest.$ac_objext \
15026 conftest$ac_exeext conftest.$ac_ext
15027 LIBS=$ac_get_soname_save_LIBS
15029 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
15030 echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6
15031 if test "x$ac_cv_lib_soname_Xrandr" != xNONE
15032 then
15033 cat >>confdefs.h <<_ACEOF
15034 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
15035 _ACEOF
15038 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
15039 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
15040 if test "${ac_cv_lib_soname_freetype+set}" = set; then
15041 echo $ECHO_N "(cached) $ECHO_C" >&6
15042 else
15043 ac_get_soname_save_LIBS=$LIBS
15044 LIBS="-lfreetype $X_LIBS $LIBS"
15045 cat >conftest.$ac_ext <<_ACEOF
15046 /* confdefs.h. */
15047 _ACEOF
15048 cat confdefs.h >>conftest.$ac_ext
15049 cat >>conftest.$ac_ext <<_ACEOF
15050 /* end confdefs.h. */
15052 /* Override any gcc2 internal prototype to avoid an error. */
15053 #ifdef __cplusplus
15054 extern "C"
15055 #endif
15056 /* We use char because int might match the return type of a gcc2
15057 builtin and then its argument prototype would still apply. */
15058 char FT_Init_FreeType ();
15060 main ()
15062 FT_Init_FreeType ();
15064 return 0;
15066 _ACEOF
15067 rm -f conftest.$ac_objext conftest$ac_exeext
15068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15069 (eval $ac_link) 2>conftest.er1
15070 ac_status=$?
15071 grep -v '^ *+' conftest.er1 >conftest.err
15072 rm -f conftest.er1
15073 cat conftest.err >&5
15074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075 (exit $ac_status); } &&
15076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15078 (eval $ac_try) 2>&5
15079 ac_status=$?
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); }; } &&
15082 { ac_try='test -s conftest$ac_exeext'
15083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15084 (eval $ac_try) 2>&5
15085 ac_status=$?
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); }; }; then
15088 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.$LIBEXT | sed "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"`
15089 if test "x$ac_cv_lib_soname_freetype" = "x"
15090 then
15091 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
15093 else
15094 echo "$as_me: failed program was:" >&5
15095 sed 's/^/| /' conftest.$ac_ext >&5
15097 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
15099 rm -f conftest.err conftest.$ac_objext \
15100 conftest$ac_exeext conftest.$ac_ext
15101 LIBS=$ac_get_soname_save_LIBS
15103 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
15104 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
15105 if test "x$ac_cv_lib_soname_freetype" != xNONE
15106 then
15107 cat >>confdefs.h <<_ACEOF
15108 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
15109 _ACEOF
15112 echo "$as_me:$LINENO: checking for -lGL soname" >&5
15113 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
15114 if test "${ac_cv_lib_soname_GL+set}" = set; then
15115 echo $ECHO_N "(cached) $ECHO_C" >&6
15116 else
15117 ac_get_soname_save_LIBS=$LIBS
15118 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
15119 cat >conftest.$ac_ext <<_ACEOF
15120 /* confdefs.h. */
15121 _ACEOF
15122 cat confdefs.h >>conftest.$ac_ext
15123 cat >>conftest.$ac_ext <<_ACEOF
15124 /* end confdefs.h. */
15126 /* Override any gcc2 internal prototype to avoid an error. */
15127 #ifdef __cplusplus
15128 extern "C"
15129 #endif
15130 /* We use char because int might match the return type of a gcc2
15131 builtin and then its argument prototype would still apply. */
15132 char glXQueryExtension ();
15134 main ()
15136 glXQueryExtension ();
15138 return 0;
15140 _ACEOF
15141 rm -f conftest.$ac_objext conftest$ac_exeext
15142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15143 (eval $ac_link) 2>conftest.er1
15144 ac_status=$?
15145 grep -v '^ *+' conftest.er1 >conftest.err
15146 rm -f conftest.er1
15147 cat conftest.err >&5
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); } &&
15150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15152 (eval $ac_try) 2>&5
15153 ac_status=$?
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); }; } &&
15156 { ac_try='test -s conftest$ac_exeext'
15157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15158 (eval $ac_try) 2>&5
15159 ac_status=$?
15160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161 (exit $ac_status); }; }; then
15162 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.$LIBEXT | sed "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"`
15163 if test "x$ac_cv_lib_soname_GL" = "x"
15164 then
15165 ac_cv_lib_soname_GL="libGL.$LIBEXT"
15167 else
15168 echo "$as_me: failed program was:" >&5
15169 sed 's/^/| /' conftest.$ac_ext >&5
15171 ac_cv_lib_soname_GL="libGL.$LIBEXT"
15173 rm -f conftest.err conftest.$ac_objext \
15174 conftest$ac_exeext conftest.$ac_ext
15175 LIBS=$ac_get_soname_save_LIBS
15177 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
15178 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
15179 if test "x$ac_cv_lib_soname_GL" != xNONE
15180 then
15181 cat >>confdefs.h <<_ACEOF
15182 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
15183 _ACEOF
15186 echo "$as_me:$LINENO: checking for -lcups soname" >&5
15187 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
15188 if test "${ac_cv_lib_soname_cups+set}" = set; then
15189 echo $ECHO_N "(cached) $ECHO_C" >&6
15190 else
15191 ac_get_soname_save_LIBS=$LIBS
15192 LIBS="-lcups $LIBS"
15193 cat >conftest.$ac_ext <<_ACEOF
15194 /* confdefs.h. */
15195 _ACEOF
15196 cat confdefs.h >>conftest.$ac_ext
15197 cat >>conftest.$ac_ext <<_ACEOF
15198 /* end confdefs.h. */
15200 /* Override any gcc2 internal prototype to avoid an error. */
15201 #ifdef __cplusplus
15202 extern "C"
15203 #endif
15204 /* We use char because int might match the return type of a gcc2
15205 builtin and then its argument prototype would still apply. */
15206 char cupsGetDefault ();
15208 main ()
15210 cupsGetDefault ();
15212 return 0;
15214 _ACEOF
15215 rm -f conftest.$ac_objext conftest$ac_exeext
15216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15217 (eval $ac_link) 2>conftest.er1
15218 ac_status=$?
15219 grep -v '^ *+' conftest.er1 >conftest.err
15220 rm -f conftest.er1
15221 cat conftest.err >&5
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); } &&
15224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15226 (eval $ac_try) 2>&5
15227 ac_status=$?
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); }; } &&
15230 { ac_try='test -s conftest$ac_exeext'
15231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15232 (eval $ac_try) 2>&5
15233 ac_status=$?
15234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235 (exit $ac_status); }; }; then
15236 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.$LIBEXT | sed "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"`
15237 if test "x$ac_cv_lib_soname_cups" = "x"
15238 then
15239 ac_cv_lib_soname_cups="libcups.$LIBEXT"
15241 else
15242 echo "$as_me: failed program was:" >&5
15243 sed 's/^/| /' conftest.$ac_ext >&5
15245 ac_cv_lib_soname_cups="libcups.$LIBEXT"
15247 rm -f conftest.err conftest.$ac_objext \
15248 conftest$ac_exeext conftest.$ac_ext
15249 LIBS=$ac_get_soname_save_LIBS
15251 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
15252 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
15253 if test "x$ac_cv_lib_soname_cups" != xNONE
15254 then
15255 cat >>confdefs.h <<_ACEOF
15256 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
15257 _ACEOF
15260 echo "$as_me:$LINENO: checking for -ljack soname" >&5
15261 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
15262 if test "${ac_cv_lib_soname_jack+set}" = set; then
15263 echo $ECHO_N "(cached) $ECHO_C" >&6
15264 else
15265 ac_get_soname_save_LIBS=$LIBS
15266 LIBS="-ljack $LIBS"
15267 cat >conftest.$ac_ext <<_ACEOF
15268 /* confdefs.h. */
15269 _ACEOF
15270 cat confdefs.h >>conftest.$ac_ext
15271 cat >>conftest.$ac_ext <<_ACEOF
15272 /* end confdefs.h. */
15274 /* Override any gcc2 internal prototype to avoid an error. */
15275 #ifdef __cplusplus
15276 extern "C"
15277 #endif
15278 /* We use char because int might match the return type of a gcc2
15279 builtin and then its argument prototype would still apply. */
15280 char jack_client_new ();
15282 main ()
15284 jack_client_new ();
15286 return 0;
15288 _ACEOF
15289 rm -f conftest.$ac_objext conftest$ac_exeext
15290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15291 (eval $ac_link) 2>conftest.er1
15292 ac_status=$?
15293 grep -v '^ *+' conftest.er1 >conftest.err
15294 rm -f conftest.er1
15295 cat conftest.err >&5
15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); } &&
15298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15300 (eval $ac_try) 2>&5
15301 ac_status=$?
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); }; } &&
15304 { ac_try='test -s conftest$ac_exeext'
15305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15306 (eval $ac_try) 2>&5
15307 ac_status=$?
15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); }; }; then
15310 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.$LIBEXT | sed "s/^.*\(libjack\.$LIBEXT[^ ]*\).*$/\1/"`
15311 if test "x$ac_cv_lib_soname_jack" = "x"
15312 then
15313 ac_cv_lib_soname_jack="libjack.$LIBEXT"
15315 else
15316 echo "$as_me: failed program was:" >&5
15317 sed 's/^/| /' conftest.$ac_ext >&5
15319 ac_cv_lib_soname_jack="libjack.$LIBEXT"
15321 rm -f conftest.err conftest.$ac_objext \
15322 conftest$ac_exeext conftest.$ac_ext
15323 LIBS=$ac_get_soname_save_LIBS
15325 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
15326 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
15327 if test "x$ac_cv_lib_soname_jack" != xNONE
15328 then
15329 cat >>confdefs.h <<_ACEOF
15330 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
15331 _ACEOF
15334 echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
15335 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6
15336 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15337 echo $ECHO_N "(cached) $ECHO_C" >&6
15338 else
15339 ac_get_soname_save_LIBS=$LIBS
15340 LIBS="-lfontconfig $LIBS"
15341 cat >conftest.$ac_ext <<_ACEOF
15342 /* confdefs.h. */
15343 _ACEOF
15344 cat confdefs.h >>conftest.$ac_ext
15345 cat >>conftest.$ac_ext <<_ACEOF
15346 /* end confdefs.h. */
15348 /* Override any gcc2 internal prototype to avoid an error. */
15349 #ifdef __cplusplus
15350 extern "C"
15351 #endif
15352 /* We use char because int might match the return type of a gcc2
15353 builtin and then its argument prototype would still apply. */
15354 char FcInit ();
15356 main ()
15358 FcInit ();
15360 return 0;
15362 _ACEOF
15363 rm -f conftest.$ac_objext conftest$ac_exeext
15364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15365 (eval $ac_link) 2>conftest.er1
15366 ac_status=$?
15367 grep -v '^ *+' conftest.er1 >conftest.err
15368 rm -f conftest.er1
15369 cat conftest.err >&5
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); } &&
15372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15374 (eval $ac_try) 2>&5
15375 ac_status=$?
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); }; } &&
15378 { ac_try='test -s conftest$ac_exeext'
15379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15380 (eval $ac_try) 2>&5
15381 ac_status=$?
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); }; }; then
15384 ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.$LIBEXT | sed "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"`
15385 if test "x$ac_cv_lib_soname_fontconfig" = "x"
15386 then
15387 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15389 else
15390 echo "$as_me: failed program was:" >&5
15391 sed 's/^/| /' conftest.$ac_ext >&5
15393 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15395 rm -f conftest.err conftest.$ac_objext \
15396 conftest$ac_exeext conftest.$ac_ext
15397 LIBS=$ac_get_soname_save_LIBS
15399 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
15400 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6
15401 if test "x$ac_cv_lib_soname_fontconfig" != xNONE
15402 then
15403 cat >>confdefs.h <<_ACEOF
15404 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
15405 _ACEOF
15408 echo "$as_me:$LINENO: checking for -lssl soname" >&5
15409 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
15410 if test "${ac_cv_lib_soname_ssl+set}" = set; then
15411 echo $ECHO_N "(cached) $ECHO_C" >&6
15412 else
15413 ac_get_soname_save_LIBS=$LIBS
15414 LIBS="-lssl $LIBS"
15415 cat >conftest.$ac_ext <<_ACEOF
15416 /* confdefs.h. */
15417 _ACEOF
15418 cat confdefs.h >>conftest.$ac_ext
15419 cat >>conftest.$ac_ext <<_ACEOF
15420 /* end confdefs.h. */
15422 /* Override any gcc2 internal prototype to avoid an error. */
15423 #ifdef __cplusplus
15424 extern "C"
15425 #endif
15426 /* We use char because int might match the return type of a gcc2
15427 builtin and then its argument prototype would still apply. */
15428 char SSL_library_init ();
15430 main ()
15432 SSL_library_init ();
15434 return 0;
15436 _ACEOF
15437 rm -f conftest.$ac_objext conftest$ac_exeext
15438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15439 (eval $ac_link) 2>conftest.er1
15440 ac_status=$?
15441 grep -v '^ *+' conftest.er1 >conftest.err
15442 rm -f conftest.er1
15443 cat conftest.err >&5
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); } &&
15446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15448 (eval $ac_try) 2>&5
15449 ac_status=$?
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); }; } &&
15452 { ac_try='test -s conftest$ac_exeext'
15453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15454 (eval $ac_try) 2>&5
15455 ac_status=$?
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); }; }; then
15458 ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.$LIBEXT | sed "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"`
15459 if test "x$ac_cv_lib_soname_ssl" = "x"
15460 then
15461 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15463 else
15464 echo "$as_me: failed program was:" >&5
15465 sed 's/^/| /' conftest.$ac_ext >&5
15467 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15469 rm -f conftest.err conftest.$ac_objext \
15470 conftest$ac_exeext conftest.$ac_ext
15471 LIBS=$ac_get_soname_save_LIBS
15473 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
15474 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
15475 if test "x$ac_cv_lib_soname_ssl" != xNONE
15476 then
15477 cat >>confdefs.h <<_ACEOF
15478 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
15479 _ACEOF
15482 echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
15483 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
15484 if test "${ac_cv_lib_soname_crypto+set}" = set; then
15485 echo $ECHO_N "(cached) $ECHO_C" >&6
15486 else
15487 ac_get_soname_save_LIBS=$LIBS
15488 LIBS="-lcrypto $LIBS"
15489 cat >conftest.$ac_ext <<_ACEOF
15490 /* confdefs.h. */
15491 _ACEOF
15492 cat confdefs.h >>conftest.$ac_ext
15493 cat >>conftest.$ac_ext <<_ACEOF
15494 /* end confdefs.h. */
15496 /* Override any gcc2 internal prototype to avoid an error. */
15497 #ifdef __cplusplus
15498 extern "C"
15499 #endif
15500 /* We use char because int might match the return type of a gcc2
15501 builtin and then its argument prototype would still apply. */
15502 char BIO_new_socket ();
15504 main ()
15506 BIO_new_socket ();
15508 return 0;
15510 _ACEOF
15511 rm -f conftest.$ac_objext conftest$ac_exeext
15512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15513 (eval $ac_link) 2>conftest.er1
15514 ac_status=$?
15515 grep -v '^ *+' conftest.er1 >conftest.err
15516 rm -f conftest.er1
15517 cat conftest.err >&5
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); } &&
15520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15522 (eval $ac_try) 2>&5
15523 ac_status=$?
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); }; } &&
15526 { ac_try='test -s conftest$ac_exeext'
15527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528 (eval $ac_try) 2>&5
15529 ac_status=$?
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); }; }; then
15532 ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.$LIBEXT | sed "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"`
15533 if test "x$ac_cv_lib_soname_crypto" = "x"
15534 then
15535 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15537 else
15538 echo "$as_me: failed program was:" >&5
15539 sed 's/^/| /' conftest.$ac_ext >&5
15541 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15543 rm -f conftest.err conftest.$ac_objext \
15544 conftest$ac_exeext conftest.$ac_ext
15545 LIBS=$ac_get_soname_save_LIBS
15547 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
15548 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
15549 if test "x$ac_cv_lib_soname_crypto" != xNONE
15550 then
15551 cat >>confdefs.h <<_ACEOF
15552 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
15553 _ACEOF
15556 echo "$as_me:$LINENO: checking for -lncurses soname" >&5
15557 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
15558 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15559 echo $ECHO_N "(cached) $ECHO_C" >&6
15560 else
15561 ac_get_soname_save_LIBS=$LIBS
15562 LIBS="-lncurses $LIBS"
15563 cat >conftest.$ac_ext <<_ACEOF
15564 /* confdefs.h. */
15565 _ACEOF
15566 cat confdefs.h >>conftest.$ac_ext
15567 cat >>conftest.$ac_ext <<_ACEOF
15568 /* end confdefs.h. */
15570 /* Override any gcc2 internal prototype to avoid an error. */
15571 #ifdef __cplusplus
15572 extern "C"
15573 #endif
15574 /* We use char because int might match the return type of a gcc2
15575 builtin and then its argument prototype would still apply. */
15576 char waddch ();
15578 main ()
15580 waddch ();
15582 return 0;
15584 _ACEOF
15585 rm -f conftest.$ac_objext conftest$ac_exeext
15586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15587 (eval $ac_link) 2>conftest.er1
15588 ac_status=$?
15589 grep -v '^ *+' conftest.er1 >conftest.err
15590 rm -f conftest.er1
15591 cat conftest.err >&5
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); } &&
15594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15596 (eval $ac_try) 2>&5
15597 ac_status=$?
15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); }; } &&
15600 { ac_try='test -s conftest$ac_exeext'
15601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15602 (eval $ac_try) 2>&5
15603 ac_status=$?
15604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605 (exit $ac_status); }; }; then
15606 ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.$LIBEXT | sed "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"`
15607 if test "x$ac_cv_lib_soname_ncurses" = "x"
15608 then
15609 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15611 else
15612 echo "$as_me: failed program was:" >&5
15613 sed 's/^/| /' conftest.$ac_ext >&5
15615 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15617 rm -f conftest.err conftest.$ac_objext \
15618 conftest$ac_exeext conftest.$ac_ext
15619 LIBS=$ac_get_soname_save_LIBS
15621 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
15622 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
15623 if test "x$ac_cv_lib_soname_ncurses" != xNONE
15624 then
15625 cat >>confdefs.h <<_ACEOF
15626 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
15627 _ACEOF
15630 echo "$as_me:$LINENO: checking for -lcurses soname" >&5
15631 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
15632 if test "${ac_cv_lib_soname_curses+set}" = set; then
15633 echo $ECHO_N "(cached) $ECHO_C" >&6
15634 else
15635 ac_get_soname_save_LIBS=$LIBS
15636 LIBS="-lcurses $LIBS"
15637 cat >conftest.$ac_ext <<_ACEOF
15638 /* confdefs.h. */
15639 _ACEOF
15640 cat confdefs.h >>conftest.$ac_ext
15641 cat >>conftest.$ac_ext <<_ACEOF
15642 /* end confdefs.h. */
15644 /* Override any gcc2 internal prototype to avoid an error. */
15645 #ifdef __cplusplus
15646 extern "C"
15647 #endif
15648 /* We use char because int might match the return type of a gcc2
15649 builtin and then its argument prototype would still apply. */
15650 char waddch ();
15652 main ()
15654 waddch ();
15656 return 0;
15658 _ACEOF
15659 rm -f conftest.$ac_objext conftest$ac_exeext
15660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15661 (eval $ac_link) 2>conftest.er1
15662 ac_status=$?
15663 grep -v '^ *+' conftest.er1 >conftest.err
15664 rm -f conftest.er1
15665 cat conftest.err >&5
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); } &&
15668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15670 (eval $ac_try) 2>&5
15671 ac_status=$?
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); }; } &&
15674 { ac_try='test -s conftest$ac_exeext'
15675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15676 (eval $ac_try) 2>&5
15677 ac_status=$?
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); }; }; then
15680 ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.$LIBEXT | sed "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"`
15681 if test "x$ac_cv_lib_soname_curses" = "x"
15682 then
15683 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15685 else
15686 echo "$as_me: failed program was:" >&5
15687 sed 's/^/| /' conftest.$ac_ext >&5
15689 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15691 rm -f conftest.err conftest.$ac_objext \
15692 conftest$ac_exeext conftest.$ac_ext
15693 LIBS=$ac_get_soname_save_LIBS
15695 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
15696 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
15697 if test "x$ac_cv_lib_soname_curses" != xNONE
15698 then
15699 cat >>confdefs.h <<_ACEOF
15700 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
15701 _ACEOF
15707 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15708 # for constant arguments. Useless!
15709 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15710 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15711 if test "${ac_cv_working_alloca_h+set}" = set; then
15712 echo $ECHO_N "(cached) $ECHO_C" >&6
15713 else
15714 cat >conftest.$ac_ext <<_ACEOF
15715 /* confdefs.h. */
15716 _ACEOF
15717 cat confdefs.h >>conftest.$ac_ext
15718 cat >>conftest.$ac_ext <<_ACEOF
15719 /* end confdefs.h. */
15720 #include <alloca.h>
15722 main ()
15724 char *p = (char *) alloca (2 * sizeof (int));
15726 return 0;
15728 _ACEOF
15729 rm -f conftest.$ac_objext conftest$ac_exeext
15730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15731 (eval $ac_link) 2>conftest.er1
15732 ac_status=$?
15733 grep -v '^ *+' conftest.er1 >conftest.err
15734 rm -f conftest.er1
15735 cat conftest.err >&5
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); } &&
15738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15740 (eval $ac_try) 2>&5
15741 ac_status=$?
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); }; } &&
15744 { ac_try='test -s conftest$ac_exeext'
15745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15746 (eval $ac_try) 2>&5
15747 ac_status=$?
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); }; }; then
15750 ac_cv_working_alloca_h=yes
15751 else
15752 echo "$as_me: failed program was:" >&5
15753 sed 's/^/| /' conftest.$ac_ext >&5
15755 ac_cv_working_alloca_h=no
15757 rm -f conftest.err conftest.$ac_objext \
15758 conftest$ac_exeext conftest.$ac_ext
15760 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15761 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15762 if test $ac_cv_working_alloca_h = yes; then
15764 cat >>confdefs.h <<\_ACEOF
15765 #define HAVE_ALLOCA_H 1
15766 _ACEOF
15770 echo "$as_me:$LINENO: checking for alloca" >&5
15771 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15772 if test "${ac_cv_func_alloca_works+set}" = set; then
15773 echo $ECHO_N "(cached) $ECHO_C" >&6
15774 else
15775 cat >conftest.$ac_ext <<_ACEOF
15776 /* confdefs.h. */
15777 _ACEOF
15778 cat confdefs.h >>conftest.$ac_ext
15779 cat >>conftest.$ac_ext <<_ACEOF
15780 /* end confdefs.h. */
15781 #ifdef __GNUC__
15782 # define alloca __builtin_alloca
15783 #else
15784 # ifdef _MSC_VER
15785 # include <malloc.h>
15786 # define alloca _alloca
15787 # else
15788 # if HAVE_ALLOCA_H
15789 # include <alloca.h>
15790 # else
15791 # ifdef _AIX
15792 #pragma alloca
15793 # else
15794 # ifndef alloca /* predefined by HP cc +Olibcalls */
15795 char *alloca ();
15796 # endif
15797 # endif
15798 # endif
15799 # endif
15800 #endif
15803 main ()
15805 char *p = (char *) alloca (1);
15807 return 0;
15809 _ACEOF
15810 rm -f conftest.$ac_objext conftest$ac_exeext
15811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15812 (eval $ac_link) 2>conftest.er1
15813 ac_status=$?
15814 grep -v '^ *+' conftest.er1 >conftest.err
15815 rm -f conftest.er1
15816 cat conftest.err >&5
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); } &&
15819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15821 (eval $ac_try) 2>&5
15822 ac_status=$?
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); }; } &&
15825 { ac_try='test -s conftest$ac_exeext'
15826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15827 (eval $ac_try) 2>&5
15828 ac_status=$?
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); }; }; then
15831 ac_cv_func_alloca_works=yes
15832 else
15833 echo "$as_me: failed program was:" >&5
15834 sed 's/^/| /' conftest.$ac_ext >&5
15836 ac_cv_func_alloca_works=no
15838 rm -f conftest.err conftest.$ac_objext \
15839 conftest$ac_exeext conftest.$ac_ext
15841 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15842 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15844 if test $ac_cv_func_alloca_works = yes; then
15846 cat >>confdefs.h <<\_ACEOF
15847 #define HAVE_ALLOCA 1
15848 _ACEOF
15850 else
15851 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15852 # that cause trouble. Some versions do not even contain alloca or
15853 # contain a buggy version. If you still want to use their alloca,
15854 # use ar to extract alloca.o from them instead of compiling alloca.c.
15856 ALLOCA=alloca.$ac_objext
15858 cat >>confdefs.h <<\_ACEOF
15859 #define C_ALLOCA 1
15860 _ACEOF
15863 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15864 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15865 if test "${ac_cv_os_cray+set}" = set; then
15866 echo $ECHO_N "(cached) $ECHO_C" >&6
15867 else
15868 cat >conftest.$ac_ext <<_ACEOF
15869 /* confdefs.h. */
15870 _ACEOF
15871 cat confdefs.h >>conftest.$ac_ext
15872 cat >>conftest.$ac_ext <<_ACEOF
15873 /* end confdefs.h. */
15874 #if defined(CRAY) && ! defined(CRAY2)
15875 webecray
15876 #else
15877 wenotbecray
15878 #endif
15880 _ACEOF
15881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15882 $EGREP "webecray" >/dev/null 2>&1; then
15883 ac_cv_os_cray=yes
15884 else
15885 ac_cv_os_cray=no
15887 rm -f conftest*
15890 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15891 echo "${ECHO_T}$ac_cv_os_cray" >&6
15892 if test $ac_cv_os_cray = yes; then
15893 for ac_func in _getb67 GETB67 getb67; do
15894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15895 echo "$as_me:$LINENO: checking for $ac_func" >&5
15896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15897 if eval "test \"\${$as_ac_var+set}\" = set"; then
15898 echo $ECHO_N "(cached) $ECHO_C" >&6
15899 else
15900 cat >conftest.$ac_ext <<_ACEOF
15901 /* confdefs.h. */
15902 _ACEOF
15903 cat confdefs.h >>conftest.$ac_ext
15904 cat >>conftest.$ac_ext <<_ACEOF
15905 /* end confdefs.h. */
15906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15908 #define $ac_func innocuous_$ac_func
15910 /* System header to define __stub macros and hopefully few prototypes,
15911 which can conflict with char $ac_func (); below.
15912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15913 <limits.h> exists even on freestanding compilers. */
15915 #ifdef __STDC__
15916 # include <limits.h>
15917 #else
15918 # include <assert.h>
15919 #endif
15921 #undef $ac_func
15923 /* Override any gcc2 internal prototype to avoid an error. */
15924 #ifdef __cplusplus
15925 extern "C"
15927 #endif
15928 /* We use char because int might match the return type of a gcc2
15929 builtin and then its argument prototype would still apply. */
15930 char $ac_func ();
15931 /* The GNU C library defines this for functions which it implements
15932 to always fail with ENOSYS. Some functions are actually named
15933 something starting with __ and the normal name is an alias. */
15934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15935 choke me
15936 #else
15937 char (*f) () = $ac_func;
15938 #endif
15939 #ifdef __cplusplus
15941 #endif
15944 main ()
15946 return f != $ac_func;
15948 return 0;
15950 _ACEOF
15951 rm -f conftest.$ac_objext conftest$ac_exeext
15952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15953 (eval $ac_link) 2>conftest.er1
15954 ac_status=$?
15955 grep -v '^ *+' conftest.er1 >conftest.err
15956 rm -f conftest.er1
15957 cat conftest.err >&5
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); } &&
15960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15962 (eval $ac_try) 2>&5
15963 ac_status=$?
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); }; } &&
15966 { ac_try='test -s conftest$ac_exeext'
15967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15968 (eval $ac_try) 2>&5
15969 ac_status=$?
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); }; }; then
15972 eval "$as_ac_var=yes"
15973 else
15974 echo "$as_me: failed program was:" >&5
15975 sed 's/^/| /' conftest.$ac_ext >&5
15977 eval "$as_ac_var=no"
15979 rm -f conftest.err conftest.$ac_objext \
15980 conftest$ac_exeext conftest.$ac_ext
15982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15983 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15984 if test `eval echo '${'$as_ac_var'}'` = yes; then
15986 cat >>confdefs.h <<_ACEOF
15987 #define CRAY_STACKSEG_END $ac_func
15988 _ACEOF
15990 break
15993 done
15996 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15997 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15998 if test "${ac_cv_c_stack_direction+set}" = set; then
15999 echo $ECHO_N "(cached) $ECHO_C" >&6
16000 else
16001 if test "$cross_compiling" = yes; then
16002 ac_cv_c_stack_direction=0
16003 else
16004 cat >conftest.$ac_ext <<_ACEOF
16005 /* confdefs.h. */
16006 _ACEOF
16007 cat confdefs.h >>conftest.$ac_ext
16008 cat >>conftest.$ac_ext <<_ACEOF
16009 /* end confdefs.h. */
16011 find_stack_direction ()
16013 static char *addr = 0;
16014 auto char dummy;
16015 if (addr == 0)
16017 addr = &dummy;
16018 return find_stack_direction ();
16020 else
16021 return (&dummy > addr) ? 1 : -1;
16025 main ()
16027 exit (find_stack_direction () < 0);
16029 _ACEOF
16030 rm -f conftest$ac_exeext
16031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16032 (eval $ac_link) 2>&5
16033 ac_status=$?
16034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16037 (eval $ac_try) 2>&5
16038 ac_status=$?
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); }; }; then
16041 ac_cv_c_stack_direction=1
16042 else
16043 echo "$as_me: program exited with status $ac_status" >&5
16044 echo "$as_me: failed program was:" >&5
16045 sed 's/^/| /' conftest.$ac_ext >&5
16047 ( exit $ac_status )
16048 ac_cv_c_stack_direction=-1
16050 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16053 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16054 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16056 cat >>confdefs.h <<_ACEOF
16057 #define STACK_DIRECTION $ac_cv_c_stack_direction
16058 _ACEOF
16120 for ac_func in \
16121 _lwp_create \
16122 _lwp_self \
16123 _pclose \
16124 _popen \
16125 _snprintf \
16126 _spawnvp \
16127 _stricmp \
16128 _strnicmp \
16129 _vsnprintf \
16130 chsize \
16131 clone \
16132 finite \
16133 fpclass \
16134 fstatfs \
16135 fstatvfs \
16136 ftruncate \
16137 ftruncate64 \
16138 futimes \
16139 getnetbyaddr \
16140 getnetbyname \
16141 getopt_long \
16142 getpagesize \
16143 getprotobyname \
16144 getprotobynumber \
16145 getpwuid \
16146 getservbyport \
16147 gettid \
16148 gettimeofday \
16149 inet_network \
16150 lseek64 \
16151 lstat \
16152 memmove \
16153 mmap \
16154 pclose \
16155 popen \
16156 pread \
16157 pwrite \
16158 readlink \
16159 rfork \
16160 select \
16161 sendmsg \
16162 settimeofday \
16163 sigaltstack \
16164 snprintf \
16165 spawnvp \
16166 statfs \
16167 statvfs \
16168 strcasecmp \
16169 strerror \
16170 strncasecmp \
16171 tcgetattr \
16172 timegm \
16173 usleep \
16174 vfscanf \
16175 vsnprintf \
16176 wait4 \
16177 waitpid \
16180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16181 echo "$as_me:$LINENO: checking for $ac_func" >&5
16182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16183 if eval "test \"\${$as_ac_var+set}\" = set"; then
16184 echo $ECHO_N "(cached) $ECHO_C" >&6
16185 else
16186 cat >conftest.$ac_ext <<_ACEOF
16187 /* confdefs.h. */
16188 _ACEOF
16189 cat confdefs.h >>conftest.$ac_ext
16190 cat >>conftest.$ac_ext <<_ACEOF
16191 /* end confdefs.h. */
16192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16194 #define $ac_func innocuous_$ac_func
16196 /* System header to define __stub macros and hopefully few prototypes,
16197 which can conflict with char $ac_func (); below.
16198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16199 <limits.h> exists even on freestanding compilers. */
16201 #ifdef __STDC__
16202 # include <limits.h>
16203 #else
16204 # include <assert.h>
16205 #endif
16207 #undef $ac_func
16209 /* Override any gcc2 internal prototype to avoid an error. */
16210 #ifdef __cplusplus
16211 extern "C"
16213 #endif
16214 /* We use char because int might match the return type of a gcc2
16215 builtin and then its argument prototype would still apply. */
16216 char $ac_func ();
16217 /* The GNU C library defines this for functions which it implements
16218 to always fail with ENOSYS. Some functions are actually named
16219 something starting with __ and the normal name is an alias. */
16220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16221 choke me
16222 #else
16223 char (*f) () = $ac_func;
16224 #endif
16225 #ifdef __cplusplus
16227 #endif
16230 main ()
16232 return f != $ac_func;
16234 return 0;
16236 _ACEOF
16237 rm -f conftest.$ac_objext conftest$ac_exeext
16238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16239 (eval $ac_link) 2>conftest.er1
16240 ac_status=$?
16241 grep -v '^ *+' conftest.er1 >conftest.err
16242 rm -f conftest.er1
16243 cat conftest.err >&5
16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); } &&
16246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16248 (eval $ac_try) 2>&5
16249 ac_status=$?
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); }; } &&
16252 { ac_try='test -s conftest$ac_exeext'
16253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16254 (eval $ac_try) 2>&5
16255 ac_status=$?
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); }; }; then
16258 eval "$as_ac_var=yes"
16259 else
16260 echo "$as_me: failed program was:" >&5
16261 sed 's/^/| /' conftest.$ac_ext >&5
16263 eval "$as_ac_var=no"
16265 rm -f conftest.err conftest.$ac_objext \
16266 conftest$ac_exeext conftest.$ac_ext
16268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16270 if test `eval echo '${'$as_ac_var'}'` = yes; then
16271 cat >>confdefs.h <<_ACEOF
16272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16273 _ACEOF
16276 done
16365 for ac_header in \
16366 arpa/inet.h \
16367 arpa/nameser.h \
16368 cups/cups.h \
16369 direct.h \
16370 elf.h \
16371 float.h \
16372 fontconfig/fontconfig.h \
16373 getopt.h \
16374 ieeefp.h \
16375 io.h \
16376 jack/jack.h \
16377 libio.h \
16378 libutil.h \
16379 link.h \
16380 linux/cdrom.h \
16381 linux/hdreg.h \
16382 linux/input.h \
16383 linux/ioctl.h \
16384 linux/joystick.h \
16385 linux/major.h \
16386 linux/param.h \
16387 linux/serial.h \
16388 linux/ucdrom.h \
16389 machine/cpu.h \
16390 mntent.h \
16391 netdb.h \
16392 netinet/in.h \
16393 netinet/in_systm.h \
16394 netinet/tcp.h \
16395 netinet/tcp_fsm.h \
16396 openssl/ssl.h \
16397 process.h \
16398 pthread.h \
16399 pty.h \
16400 pwd.h \
16401 regex.h \
16402 sched.h \
16403 scsi/sg.h \
16404 scsi/scsi.h \
16405 scsi/scsi_ioctl.h \
16406 socket.h \
16407 stdint.h \
16408 strings.h \
16409 sys/cdio.h \
16410 sys/elf32.h \
16411 sys/errno.h \
16412 sys/exec_elf.h \
16413 sys/file.h \
16414 sys/filio.h \
16415 sys/inttypes.h \
16416 sys/ioctl.h \
16417 sys/ipc.h \
16418 sys/link.h \
16419 sys/lwp.h \
16420 sys/mman.h \
16421 sys/modem.h \
16422 sys/msg.h \
16423 sys/param.h \
16424 sys/poll.h \
16425 sys/ptrace.h \
16426 sys/reg.h \
16427 sys/scsiio.h \
16428 sys/shm.h \
16429 sys/signal.h \
16430 sys/socket.h \
16431 sys/sockio.h \
16432 sys/statfs.h \
16433 sys/statvfs.h \
16434 sys/strtio.h \
16435 sys/syscall.h \
16436 sys/sysctl.h \
16437 sys/time.h \
16438 sys/times.h \
16439 sys/uio.h \
16440 sys/un.h \
16441 sys/v86.h \
16442 sys/v86intr.h \
16443 sys/vfs.h \
16444 sys/vm86.h \
16445 sys/wait.h \
16446 syscall.h \
16447 termios.h \
16448 unistd.h \
16449 utime.h \
16450 valgrind/memcheck.h
16453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16455 echo "$as_me:$LINENO: checking for $ac_header" >&5
16456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16458 echo $ECHO_N "(cached) $ECHO_C" >&6
16460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16462 else
16463 # Is the header compilable?
16464 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16465 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16466 cat >conftest.$ac_ext <<_ACEOF
16467 /* confdefs.h. */
16468 _ACEOF
16469 cat confdefs.h >>conftest.$ac_ext
16470 cat >>conftest.$ac_ext <<_ACEOF
16471 /* end confdefs.h. */
16472 $ac_includes_default
16473 #include <$ac_header>
16474 _ACEOF
16475 rm -f conftest.$ac_objext
16476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16477 (eval $ac_compile) 2>conftest.er1
16478 ac_status=$?
16479 grep -v '^ *+' conftest.er1 >conftest.err
16480 rm -f conftest.er1
16481 cat conftest.err >&5
16482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); } &&
16484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16486 (eval $ac_try) 2>&5
16487 ac_status=$?
16488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489 (exit $ac_status); }; } &&
16490 { ac_try='test -s conftest.$ac_objext'
16491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16492 (eval $ac_try) 2>&5
16493 ac_status=$?
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); }; }; then
16496 ac_header_compiler=yes
16497 else
16498 echo "$as_me: failed program was:" >&5
16499 sed 's/^/| /' conftest.$ac_ext >&5
16501 ac_header_compiler=no
16503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16504 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16505 echo "${ECHO_T}$ac_header_compiler" >&6
16507 # Is the header present?
16508 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16510 cat >conftest.$ac_ext <<_ACEOF
16511 /* confdefs.h. */
16512 _ACEOF
16513 cat confdefs.h >>conftest.$ac_ext
16514 cat >>conftest.$ac_ext <<_ACEOF
16515 /* end confdefs.h. */
16516 #include <$ac_header>
16517 _ACEOF
16518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16520 ac_status=$?
16521 grep -v '^ *+' conftest.er1 >conftest.err
16522 rm -f conftest.er1
16523 cat conftest.err >&5
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); } >/dev/null; then
16526 if test -s conftest.err; then
16527 ac_cpp_err=$ac_c_preproc_warn_flag
16528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16529 else
16530 ac_cpp_err=
16532 else
16533 ac_cpp_err=yes
16535 if test -z "$ac_cpp_err"; then
16536 ac_header_preproc=yes
16537 else
16538 echo "$as_me: failed program was:" >&5
16539 sed 's/^/| /' conftest.$ac_ext >&5
16541 ac_header_preproc=no
16543 rm -f conftest.err conftest.$ac_ext
16544 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16545 echo "${ECHO_T}$ac_header_preproc" >&6
16547 # So? What about this header?
16548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16549 yes:no: )
16550 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16551 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16553 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16554 ac_header_preproc=yes
16556 no:yes:* )
16557 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16558 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16559 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16560 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16561 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16562 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16563 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16564 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16567 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16568 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16570 cat <<\_ASBOX
16571 ## ------------------------------------ ##
16572 ## Report this to wine-devel@winehq.org ##
16573 ## ------------------------------------ ##
16574 _ASBOX
16576 sed "s/^/$as_me: WARNING: /" >&2
16578 esac
16579 echo "$as_me:$LINENO: checking for $ac_header" >&5
16580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16582 echo $ECHO_N "(cached) $ECHO_C" >&6
16583 else
16584 eval "$as_ac_Header=\$ac_header_preproc"
16586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16591 cat >>confdefs.h <<_ACEOF
16592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16593 _ACEOF
16597 done
16599 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
16600 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
16601 if test "${ac_cv_header_stat_broken+set}" = set; then
16602 echo $ECHO_N "(cached) $ECHO_C" >&6
16603 else
16604 cat >conftest.$ac_ext <<_ACEOF
16605 /* confdefs.h. */
16606 _ACEOF
16607 cat confdefs.h >>conftest.$ac_ext
16608 cat >>conftest.$ac_ext <<_ACEOF
16609 /* end confdefs.h. */
16610 #include <sys/types.h>
16611 #include <sys/stat.h>
16613 #if defined(S_ISBLK) && defined(S_IFDIR)
16614 # if S_ISBLK (S_IFDIR)
16615 You lose.
16616 # endif
16617 #endif
16619 #if defined(S_ISBLK) && defined(S_IFCHR)
16620 # if S_ISBLK (S_IFCHR)
16621 You lose.
16622 # endif
16623 #endif
16625 #if defined(S_ISLNK) && defined(S_IFREG)
16626 # if S_ISLNK (S_IFREG)
16627 You lose.
16628 # endif
16629 #endif
16631 #if defined(S_ISSOCK) && defined(S_IFREG)
16632 # if S_ISSOCK (S_IFREG)
16633 You lose.
16634 # endif
16635 #endif
16637 _ACEOF
16638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16639 $EGREP "You lose" >/dev/null 2>&1; then
16640 ac_cv_header_stat_broken=yes
16641 else
16642 ac_cv_header_stat_broken=no
16644 rm -f conftest*
16647 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
16648 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
16649 if test $ac_cv_header_stat_broken = yes; then
16651 cat >>confdefs.h <<\_ACEOF
16652 #define STAT_MACROS_BROKEN 1
16653 _ACEOF
16661 for ac_header in sys/mount.h sys/user.h
16663 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16664 echo "$as_me:$LINENO: checking for $ac_header" >&5
16665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16666 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16667 echo $ECHO_N "(cached) $ECHO_C" >&6
16668 else
16669 cat >conftest.$ac_ext <<_ACEOF
16670 /* confdefs.h. */
16671 _ACEOF
16672 cat confdefs.h >>conftest.$ac_ext
16673 cat >>conftest.$ac_ext <<_ACEOF
16674 /* end confdefs.h. */
16675 #include <sys/types.h>
16676 #if HAVE_SYS_PARAM_H
16677 # include <sys/param.h>
16678 #endif
16680 #include <$ac_header>
16681 _ACEOF
16682 rm -f conftest.$ac_objext
16683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16684 (eval $ac_compile) 2>conftest.er1
16685 ac_status=$?
16686 grep -v '^ *+' conftest.er1 >conftest.err
16687 rm -f conftest.er1
16688 cat conftest.err >&5
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); } &&
16691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16693 (eval $ac_try) 2>&5
16694 ac_status=$?
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); }; } &&
16697 { ac_try='test -s conftest.$ac_objext'
16698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16699 (eval $ac_try) 2>&5
16700 ac_status=$?
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); }; }; then
16703 eval "$as_ac_Header=yes"
16704 else
16705 echo "$as_me: failed program was:" >&5
16706 sed 's/^/| /' conftest.$ac_ext >&5
16708 eval "$as_ac_Header=no"
16710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16714 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16715 cat >>confdefs.h <<_ACEOF
16716 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16717 _ACEOF
16721 done
16729 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h
16731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16732 echo "$as_me:$LINENO: checking for $ac_header" >&5
16733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16735 echo $ECHO_N "(cached) $ECHO_C" >&6
16736 else
16737 cat >conftest.$ac_ext <<_ACEOF
16738 /* confdefs.h. */
16739 _ACEOF
16740 cat confdefs.h >>conftest.$ac_ext
16741 cat >>conftest.$ac_ext <<_ACEOF
16742 /* end confdefs.h. */
16743 #include <sys/types.h>
16744 #if HAVE_SYS_SOCKET_H
16745 # include <sys/socket.h>
16746 #endif
16748 #include <$ac_header>
16749 _ACEOF
16750 rm -f conftest.$ac_objext
16751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16752 (eval $ac_compile) 2>conftest.er1
16753 ac_status=$?
16754 grep -v '^ *+' conftest.er1 >conftest.err
16755 rm -f conftest.er1
16756 cat conftest.err >&5
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); } &&
16759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16761 (eval $ac_try) 2>&5
16762 ac_status=$?
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); }; } &&
16765 { ac_try='test -s conftest.$ac_objext'
16766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16767 (eval $ac_try) 2>&5
16768 ac_status=$?
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); }; }; then
16771 eval "$as_ac_Header=yes"
16772 else
16773 echo "$as_me: failed program was:" >&5
16774 sed 's/^/| /' conftest.$ac_ext >&5
16776 eval "$as_ac_Header=no"
16778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16783 cat >>confdefs.h <<_ACEOF
16784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16785 _ACEOF
16789 done
16793 for ac_header in resolv.h
16795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16796 echo "$as_me:$LINENO: checking for $ac_header" >&5
16797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16799 echo $ECHO_N "(cached) $ECHO_C" >&6
16800 else
16801 cat >conftest.$ac_ext <<_ACEOF
16802 /* confdefs.h. */
16803 _ACEOF
16804 cat confdefs.h >>conftest.$ac_ext
16805 cat >>conftest.$ac_ext <<_ACEOF
16806 /* end confdefs.h. */
16807 #include <sys/types.h>
16808 #if HAVE_SYS_SOCKET_H
16809 # include <sys/socket.h>
16810 #endif
16811 #if HAVE_NETINET_IN_H
16812 # include <netinet/in.h>
16813 #endif
16814 #if HAVE_ARPA_NAMESER_H
16815 # include <arpa/nameser.h>
16816 #endif
16818 #include <$ac_header>
16819 _ACEOF
16820 rm -f conftest.$ac_objext
16821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16822 (eval $ac_compile) 2>conftest.er1
16823 ac_status=$?
16824 grep -v '^ *+' conftest.er1 >conftest.err
16825 rm -f conftest.er1
16826 cat conftest.err >&5
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); } &&
16829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16831 (eval $ac_try) 2>&5
16832 ac_status=$?
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); }; } &&
16835 { ac_try='test -s conftest.$ac_objext'
16836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16837 (eval $ac_try) 2>&5
16838 ac_status=$?
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); }; }; then
16841 eval "$as_ac_Header=yes"
16842 else
16843 echo "$as_me: failed program was:" >&5
16844 sed 's/^/| /' conftest.$ac_ext >&5
16846 eval "$as_ac_Header=no"
16848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16853 cat >>confdefs.h <<_ACEOF
16854 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16855 _ACEOF
16859 done
16863 for ac_header in netinet/ip.h
16865 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16866 echo "$as_me:$LINENO: checking for $ac_header" >&5
16867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16869 echo $ECHO_N "(cached) $ECHO_C" >&6
16870 else
16871 cat >conftest.$ac_ext <<_ACEOF
16872 /* confdefs.h. */
16873 _ACEOF
16874 cat confdefs.h >>conftest.$ac_ext
16875 cat >>conftest.$ac_ext <<_ACEOF
16876 /* end confdefs.h. */
16877 #include <sys/types.h>
16878 #if HAVE_SYS_SOCKET_H
16879 # include <sys/socket.h>
16880 #endif
16881 #if HAVE_NETINET_IN_SYSTM_H
16882 # include <netinet/in_systm.h>
16883 #endif
16885 #include <$ac_header>
16886 _ACEOF
16887 rm -f conftest.$ac_objext
16888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16889 (eval $ac_compile) 2>conftest.er1
16890 ac_status=$?
16891 grep -v '^ *+' conftest.er1 >conftest.err
16892 rm -f conftest.er1
16893 cat conftest.err >&5
16894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); } &&
16896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16898 (eval $ac_try) 2>&5
16899 ac_status=$?
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); }; } &&
16902 { ac_try='test -s conftest.$ac_objext'
16903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16904 (eval $ac_try) 2>&5
16905 ac_status=$?
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); }; }; then
16908 eval "$as_ac_Header=yes"
16909 else
16910 echo "$as_me: failed program was:" >&5
16911 sed 's/^/| /' conftest.$ac_ext >&5
16913 eval "$as_ac_Header=no"
16915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16920 cat >>confdefs.h <<_ACEOF
16921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16922 _ACEOF
16926 done
16930 for ac_header in ucontext.h
16932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16933 echo "$as_me:$LINENO: checking for $ac_header" >&5
16934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16936 echo $ECHO_N "(cached) $ECHO_C" >&6
16937 else
16938 cat >conftest.$ac_ext <<_ACEOF
16939 /* confdefs.h. */
16940 _ACEOF
16941 cat confdefs.h >>conftest.$ac_ext
16942 cat >>conftest.$ac_ext <<_ACEOF
16943 /* end confdefs.h. */
16944 #include <signal.h>
16946 #include <$ac_header>
16947 _ACEOF
16948 rm -f conftest.$ac_objext
16949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16950 (eval $ac_compile) 2>conftest.er1
16951 ac_status=$?
16952 grep -v '^ *+' conftest.er1 >conftest.err
16953 rm -f conftest.er1
16954 cat conftest.err >&5
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); } &&
16957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16959 (eval $ac_try) 2>&5
16960 ac_status=$?
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); }; } &&
16963 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16969 eval "$as_ac_Header=yes"
16970 else
16971 echo "$as_me: failed program was:" >&5
16972 sed 's/^/| /' conftest.$ac_ext >&5
16974 eval "$as_ac_Header=no"
16976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16979 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16980 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16981 cat >>confdefs.h <<_ACEOF
16982 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16983 _ACEOF
16987 done
16991 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
16992 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
16993 if test "${ac_cv_c_ipx_gnu+set}" = set; then
16994 echo $ECHO_N "(cached) $ECHO_C" >&6
16995 else
16996 cat >conftest.$ac_ext <<_ACEOF
16997 /* confdefs.h. */
16998 _ACEOF
16999 cat confdefs.h >>conftest.$ac_ext
17000 cat >>conftest.$ac_ext <<_ACEOF
17001 /* end confdefs.h. */
17002 #include <sys/types.h>
17003 #ifdef HAVE_SYS_SOCKET_H
17004 # include <sys/socket.h>
17005 #endif
17006 #include <netipx/ipx.h>
17008 main ()
17010 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
17012 return 0;
17014 _ACEOF
17015 rm -f conftest.$ac_objext
17016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17017 (eval $ac_compile) 2>conftest.er1
17018 ac_status=$?
17019 grep -v '^ *+' conftest.er1 >conftest.err
17020 rm -f conftest.er1
17021 cat conftest.err >&5
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); } &&
17024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17026 (eval $ac_try) 2>&5
17027 ac_status=$?
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); }; } &&
17030 { ac_try='test -s conftest.$ac_objext'
17031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17032 (eval $ac_try) 2>&5
17033 ac_status=$?
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); }; }; then
17036 ac_cv_c_ipx_gnu="yes"
17037 else
17038 echo "$as_me: failed program was:" >&5
17039 sed 's/^/| /' conftest.$ac_ext >&5
17041 ac_cv_c_ipx_gnu="no"
17043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17046 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
17047 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
17048 if test "$ac_cv_c_ipx_gnu" = "yes"
17049 then
17051 cat >>confdefs.h <<\_ACEOF
17052 #define HAVE_IPX_GNU 1
17053 _ACEOF
17057 if test "$ac_cv_c_ipx_gnu" = "no"
17058 then
17059 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
17060 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
17061 if test "${ac_cv_c_ipx_linux+set}" = set; then
17062 echo $ECHO_N "(cached) $ECHO_C" >&6
17063 else
17064 cat >conftest.$ac_ext <<_ACEOF
17065 /* confdefs.h. */
17066 _ACEOF
17067 cat confdefs.h >>conftest.$ac_ext
17068 cat >>conftest.$ac_ext <<_ACEOF
17069 /* end confdefs.h. */
17070 #include <sys/types.h>
17071 #ifdef HAVE_SYS_SOCKET_H
17072 # include <sys/socket.h>
17073 #endif
17074 #include <asm/types.h>
17075 #include <linux/ipx.h>
17077 main ()
17079 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
17081 return 0;
17083 _ACEOF
17084 rm -f conftest.$ac_objext
17085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17086 (eval $ac_compile) 2>conftest.er1
17087 ac_status=$?
17088 grep -v '^ *+' conftest.er1 >conftest.err
17089 rm -f conftest.er1
17090 cat conftest.err >&5
17091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); } &&
17093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17095 (eval $ac_try) 2>&5
17096 ac_status=$?
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); }; } &&
17099 { ac_try='test -s conftest.$ac_objext'
17100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17101 (eval $ac_try) 2>&5
17102 ac_status=$?
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; }; then
17105 ac_cv_c_ipx_linux="yes"
17106 else
17107 echo "$as_me: failed program was:" >&5
17108 sed 's/^/| /' conftest.$ac_ext >&5
17110 ac_cv_c_ipx_linux="no"
17112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17115 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
17116 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
17117 if test "$ac_cv_c_ipx_linux" = "yes"
17118 then
17120 cat >>confdefs.h <<\_ACEOF
17121 #define HAVE_IPX_LINUX 1
17122 _ACEOF
17128 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17129 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17130 if test "${ac_cv_c_const+set}" = set; then
17131 echo $ECHO_N "(cached) $ECHO_C" >&6
17132 else
17133 cat >conftest.$ac_ext <<_ACEOF
17134 /* confdefs.h. */
17135 _ACEOF
17136 cat confdefs.h >>conftest.$ac_ext
17137 cat >>conftest.$ac_ext <<_ACEOF
17138 /* end confdefs.h. */
17141 main ()
17143 /* FIXME: Include the comments suggested by Paul. */
17144 #ifndef __cplusplus
17145 /* Ultrix mips cc rejects this. */
17146 typedef int charset[2];
17147 const charset x;
17148 /* SunOS 4.1.1 cc rejects this. */
17149 char const *const *ccp;
17150 char **p;
17151 /* NEC SVR4.0.2 mips cc rejects this. */
17152 struct point {int x, y;};
17153 static struct point const zero = {0,0};
17154 /* AIX XL C 1.02.0.0 rejects this.
17155 It does not let you subtract one const X* pointer from another in
17156 an arm of an if-expression whose if-part is not a constant
17157 expression */
17158 const char *g = "string";
17159 ccp = &g + (g ? g-g : 0);
17160 /* HPUX 7.0 cc rejects these. */
17161 ++ccp;
17162 p = (char**) ccp;
17163 ccp = (char const *const *) p;
17164 { /* SCO 3.2v4 cc rejects this. */
17165 char *t;
17166 char const *s = 0 ? (char *) 0 : (char const *) 0;
17168 *t++ = 0;
17170 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17171 int x[] = {25, 17};
17172 const int *foo = &x[0];
17173 ++foo;
17175 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17176 typedef const int *iptr;
17177 iptr p = 0;
17178 ++p;
17180 { /* AIX XL C 1.02.0.0 rejects this saying
17181 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17182 struct s { int j; const int *ap[3]; };
17183 struct s *b; b->j = 5;
17185 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17186 const int foo = 10;
17188 #endif
17191 return 0;
17193 _ACEOF
17194 rm -f conftest.$ac_objext
17195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17196 (eval $ac_compile) 2>conftest.er1
17197 ac_status=$?
17198 grep -v '^ *+' conftest.er1 >conftest.err
17199 rm -f conftest.er1
17200 cat conftest.err >&5
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); } &&
17203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17205 (eval $ac_try) 2>&5
17206 ac_status=$?
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); }; } &&
17209 { ac_try='test -s conftest.$ac_objext'
17210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17211 (eval $ac_try) 2>&5
17212 ac_status=$?
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); }; }; then
17215 ac_cv_c_const=yes
17216 else
17217 echo "$as_me: failed program was:" >&5
17218 sed 's/^/| /' conftest.$ac_ext >&5
17220 ac_cv_c_const=no
17222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17224 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17225 echo "${ECHO_T}$ac_cv_c_const" >&6
17226 if test $ac_cv_c_const = no; then
17228 cat >>confdefs.h <<\_ACEOF
17229 #define const
17230 _ACEOF
17234 echo "$as_me:$LINENO: checking for inline" >&5
17235 echo $ECHO_N "checking for inline... $ECHO_C" >&6
17236 if test "${ac_cv_c_inline+set}" = set; then
17237 echo $ECHO_N "(cached) $ECHO_C" >&6
17238 else
17239 ac_cv_c_inline=no
17240 for ac_kw in inline __inline__ __inline; do
17241 cat >conftest.$ac_ext <<_ACEOF
17242 /* confdefs.h. */
17243 _ACEOF
17244 cat confdefs.h >>conftest.$ac_ext
17245 cat >>conftest.$ac_ext <<_ACEOF
17246 /* end confdefs.h. */
17247 #ifndef __cplusplus
17248 typedef int foo_t;
17249 static $ac_kw foo_t static_foo () {return 0; }
17250 $ac_kw foo_t foo () {return 0; }
17251 #endif
17253 _ACEOF
17254 rm -f conftest.$ac_objext
17255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17256 (eval $ac_compile) 2>conftest.er1
17257 ac_status=$?
17258 grep -v '^ *+' conftest.er1 >conftest.err
17259 rm -f conftest.er1
17260 cat conftest.err >&5
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); } &&
17263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17265 (eval $ac_try) 2>&5
17266 ac_status=$?
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); }; } &&
17269 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17275 ac_cv_c_inline=$ac_kw; break
17276 else
17277 echo "$as_me: failed program was:" >&5
17278 sed 's/^/| /' conftest.$ac_ext >&5
17281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17282 done
17285 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17286 echo "${ECHO_T}$ac_cv_c_inline" >&6
17289 case $ac_cv_c_inline in
17290 inline | yes) ;;
17292 case $ac_cv_c_inline in
17293 no) ac_val=;;
17294 *) ac_val=$ac_cv_c_inline;;
17295 esac
17296 cat >>confdefs.h <<_ACEOF
17297 #ifndef __cplusplus
17298 #define inline $ac_val
17299 #endif
17300 _ACEOF
17302 esac
17304 echo "$as_me:$LINENO: checking for mode_t" >&5
17305 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
17306 if test "${ac_cv_type_mode_t+set}" = set; then
17307 echo $ECHO_N "(cached) $ECHO_C" >&6
17308 else
17309 cat >conftest.$ac_ext <<_ACEOF
17310 /* confdefs.h. */
17311 _ACEOF
17312 cat confdefs.h >>conftest.$ac_ext
17313 cat >>conftest.$ac_ext <<_ACEOF
17314 /* end confdefs.h. */
17315 $ac_includes_default
17317 main ()
17319 if ((mode_t *) 0)
17320 return 0;
17321 if (sizeof (mode_t))
17322 return 0;
17324 return 0;
17326 _ACEOF
17327 rm -f conftest.$ac_objext
17328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17329 (eval $ac_compile) 2>conftest.er1
17330 ac_status=$?
17331 grep -v '^ *+' conftest.er1 >conftest.err
17332 rm -f conftest.er1
17333 cat conftest.err >&5
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); } &&
17336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17338 (eval $ac_try) 2>&5
17339 ac_status=$?
17340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341 (exit $ac_status); }; } &&
17342 { ac_try='test -s conftest.$ac_objext'
17343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17344 (eval $ac_try) 2>&5
17345 ac_status=$?
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); }; }; then
17348 ac_cv_type_mode_t=yes
17349 else
17350 echo "$as_me: failed program was:" >&5
17351 sed 's/^/| /' conftest.$ac_ext >&5
17353 ac_cv_type_mode_t=no
17355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17357 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
17358 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
17359 if test $ac_cv_type_mode_t = yes; then
17361 cat >>confdefs.h <<_ACEOF
17362 #define HAVE_MODE_T 1
17363 _ACEOF
17367 echo "$as_me:$LINENO: checking for off_t" >&5
17368 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
17369 if test "${ac_cv_type_off_t+set}" = set; then
17370 echo $ECHO_N "(cached) $ECHO_C" >&6
17371 else
17372 cat >conftest.$ac_ext <<_ACEOF
17373 /* confdefs.h. */
17374 _ACEOF
17375 cat confdefs.h >>conftest.$ac_ext
17376 cat >>conftest.$ac_ext <<_ACEOF
17377 /* end confdefs.h. */
17378 $ac_includes_default
17380 main ()
17382 if ((off_t *) 0)
17383 return 0;
17384 if (sizeof (off_t))
17385 return 0;
17387 return 0;
17389 _ACEOF
17390 rm -f conftest.$ac_objext
17391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17392 (eval $ac_compile) 2>conftest.er1
17393 ac_status=$?
17394 grep -v '^ *+' conftest.er1 >conftest.err
17395 rm -f conftest.er1
17396 cat conftest.err >&5
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); } &&
17399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17401 (eval $ac_try) 2>&5
17402 ac_status=$?
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); }; } &&
17405 { ac_try='test -s conftest.$ac_objext'
17406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17407 (eval $ac_try) 2>&5
17408 ac_status=$?
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); }; }; then
17411 ac_cv_type_off_t=yes
17412 else
17413 echo "$as_me: failed program was:" >&5
17414 sed 's/^/| /' conftest.$ac_ext >&5
17416 ac_cv_type_off_t=no
17418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17420 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
17421 echo "${ECHO_T}$ac_cv_type_off_t" >&6
17422 if test $ac_cv_type_off_t = yes; then
17424 cat >>confdefs.h <<_ACEOF
17425 #define HAVE_OFF_T 1
17426 _ACEOF
17430 echo "$as_me:$LINENO: checking for pid_t" >&5
17431 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17432 if test "${ac_cv_type_pid_t+set}" = set; then
17433 echo $ECHO_N "(cached) $ECHO_C" >&6
17434 else
17435 cat >conftest.$ac_ext <<_ACEOF
17436 /* confdefs.h. */
17437 _ACEOF
17438 cat confdefs.h >>conftest.$ac_ext
17439 cat >>conftest.$ac_ext <<_ACEOF
17440 /* end confdefs.h. */
17441 $ac_includes_default
17443 main ()
17445 if ((pid_t *) 0)
17446 return 0;
17447 if (sizeof (pid_t))
17448 return 0;
17450 return 0;
17452 _ACEOF
17453 rm -f conftest.$ac_objext
17454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17455 (eval $ac_compile) 2>conftest.er1
17456 ac_status=$?
17457 grep -v '^ *+' conftest.er1 >conftest.err
17458 rm -f conftest.er1
17459 cat conftest.err >&5
17460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461 (exit $ac_status); } &&
17462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17464 (eval $ac_try) 2>&5
17465 ac_status=$?
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); }; } &&
17468 { ac_try='test -s conftest.$ac_objext'
17469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17470 (eval $ac_try) 2>&5
17471 ac_status=$?
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); }; }; then
17474 ac_cv_type_pid_t=yes
17475 else
17476 echo "$as_me: failed program was:" >&5
17477 sed 's/^/| /' conftest.$ac_ext >&5
17479 ac_cv_type_pid_t=no
17481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17483 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17484 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17485 if test $ac_cv_type_pid_t = yes; then
17487 cat >>confdefs.h <<_ACEOF
17488 #define HAVE_PID_T 1
17489 _ACEOF
17493 echo "$as_me:$LINENO: checking for size_t" >&5
17494 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17495 if test "${ac_cv_type_size_t+set}" = set; then
17496 echo $ECHO_N "(cached) $ECHO_C" >&6
17497 else
17498 cat >conftest.$ac_ext <<_ACEOF
17499 /* confdefs.h. */
17500 _ACEOF
17501 cat confdefs.h >>conftest.$ac_ext
17502 cat >>conftest.$ac_ext <<_ACEOF
17503 /* end confdefs.h. */
17504 $ac_includes_default
17506 main ()
17508 if ((size_t *) 0)
17509 return 0;
17510 if (sizeof (size_t))
17511 return 0;
17513 return 0;
17515 _ACEOF
17516 rm -f conftest.$ac_objext
17517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17518 (eval $ac_compile) 2>conftest.er1
17519 ac_status=$?
17520 grep -v '^ *+' conftest.er1 >conftest.err
17521 rm -f conftest.er1
17522 cat conftest.err >&5
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); } &&
17525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17527 (eval $ac_try) 2>&5
17528 ac_status=$?
17529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530 (exit $ac_status); }; } &&
17531 { ac_try='test -s conftest.$ac_objext'
17532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17533 (eval $ac_try) 2>&5
17534 ac_status=$?
17535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536 (exit $ac_status); }; }; then
17537 ac_cv_type_size_t=yes
17538 else
17539 echo "$as_me: failed program was:" >&5
17540 sed 's/^/| /' conftest.$ac_ext >&5
17542 ac_cv_type_size_t=no
17544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17546 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17547 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17548 if test $ac_cv_type_size_t = yes; then
17550 cat >>confdefs.h <<_ACEOF
17551 #define HAVE_SIZE_T 1
17552 _ACEOF
17556 echo "$as_me:$LINENO: checking for ssize_t" >&5
17557 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17558 if test "${ac_cv_type_ssize_t+set}" = set; then
17559 echo $ECHO_N "(cached) $ECHO_C" >&6
17560 else
17561 cat >conftest.$ac_ext <<_ACEOF
17562 /* confdefs.h. */
17563 _ACEOF
17564 cat confdefs.h >>conftest.$ac_ext
17565 cat >>conftest.$ac_ext <<_ACEOF
17566 /* end confdefs.h. */
17567 $ac_includes_default
17569 main ()
17571 if ((ssize_t *) 0)
17572 return 0;
17573 if (sizeof (ssize_t))
17574 return 0;
17576 return 0;
17578 _ACEOF
17579 rm -f conftest.$ac_objext
17580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17581 (eval $ac_compile) 2>conftest.er1
17582 ac_status=$?
17583 grep -v '^ *+' conftest.er1 >conftest.err
17584 rm -f conftest.er1
17585 cat conftest.err >&5
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); } &&
17588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17590 (eval $ac_try) 2>&5
17591 ac_status=$?
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); }; } &&
17594 { ac_try='test -s conftest.$ac_objext'
17595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17596 (eval $ac_try) 2>&5
17597 ac_status=$?
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); }; }; then
17600 ac_cv_type_ssize_t=yes
17601 else
17602 echo "$as_me: failed program was:" >&5
17603 sed 's/^/| /' conftest.$ac_ext >&5
17605 ac_cv_type_ssize_t=no
17607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17609 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
17610 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17611 if test $ac_cv_type_ssize_t = yes; then
17613 cat >>confdefs.h <<_ACEOF
17614 #define HAVE_SSIZE_T 1
17615 _ACEOF
17619 echo "$as_me:$LINENO: checking for long long" >&5
17620 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17621 if test "${ac_cv_type_long_long+set}" = set; then
17622 echo $ECHO_N "(cached) $ECHO_C" >&6
17623 else
17624 cat >conftest.$ac_ext <<_ACEOF
17625 /* confdefs.h. */
17626 _ACEOF
17627 cat confdefs.h >>conftest.$ac_ext
17628 cat >>conftest.$ac_ext <<_ACEOF
17629 /* end confdefs.h. */
17630 $ac_includes_default
17632 main ()
17634 if ((long long *) 0)
17635 return 0;
17636 if (sizeof (long long))
17637 return 0;
17639 return 0;
17641 _ACEOF
17642 rm -f conftest.$ac_objext
17643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17644 (eval $ac_compile) 2>conftest.er1
17645 ac_status=$?
17646 grep -v '^ *+' conftest.er1 >conftest.err
17647 rm -f conftest.er1
17648 cat conftest.err >&5
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); } &&
17651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17653 (eval $ac_try) 2>&5
17654 ac_status=$?
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); }; } &&
17657 { ac_try='test -s conftest.$ac_objext'
17658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17659 (eval $ac_try) 2>&5
17660 ac_status=$?
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); }; }; then
17663 ac_cv_type_long_long=yes
17664 else
17665 echo "$as_me: failed program was:" >&5
17666 sed 's/^/| /' conftest.$ac_ext >&5
17668 ac_cv_type_long_long=no
17670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17672 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17673 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17674 if test $ac_cv_type_long_long = yes; then
17676 cat >>confdefs.h <<_ACEOF
17677 #define HAVE_LONG_LONG 1
17678 _ACEOF
17682 echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
17683 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6
17684 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
17685 echo $ECHO_N "(cached) $ECHO_C" >&6
17686 else
17687 cat >conftest.$ac_ext <<_ACEOF
17688 /* confdefs.h. */
17689 _ACEOF
17690 cat confdefs.h >>conftest.$ac_ext
17691 cat >>conftest.$ac_ext <<_ACEOF
17692 /* end confdefs.h. */
17693 $ac_includes_default
17695 main ()
17697 if ((fsblkcnt_t *) 0)
17698 return 0;
17699 if (sizeof (fsblkcnt_t))
17700 return 0;
17702 return 0;
17704 _ACEOF
17705 rm -f conftest.$ac_objext
17706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17707 (eval $ac_compile) 2>conftest.er1
17708 ac_status=$?
17709 grep -v '^ *+' conftest.er1 >conftest.err
17710 rm -f conftest.er1
17711 cat conftest.err >&5
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); } &&
17714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716 (eval $ac_try) 2>&5
17717 ac_status=$?
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); }; } &&
17720 { ac_try='test -s conftest.$ac_objext'
17721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17722 (eval $ac_try) 2>&5
17723 ac_status=$?
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); }; }; then
17726 ac_cv_type_fsblkcnt_t=yes
17727 else
17728 echo "$as_me: failed program was:" >&5
17729 sed 's/^/| /' conftest.$ac_ext >&5
17731 ac_cv_type_fsblkcnt_t=no
17733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17735 echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
17736 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6
17737 if test $ac_cv_type_fsblkcnt_t = yes; then
17739 cat >>confdefs.h <<_ACEOF
17740 #define HAVE_FSBLKCNT_T 1
17741 _ACEOF
17745 echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
17746 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6
17747 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
17748 echo $ECHO_N "(cached) $ECHO_C" >&6
17749 else
17750 cat >conftest.$ac_ext <<_ACEOF
17751 /* confdefs.h. */
17752 _ACEOF
17753 cat confdefs.h >>conftest.$ac_ext
17754 cat >>conftest.$ac_ext <<_ACEOF
17755 /* end confdefs.h. */
17756 $ac_includes_default
17758 main ()
17760 if ((fsfilcnt_t *) 0)
17761 return 0;
17762 if (sizeof (fsfilcnt_t))
17763 return 0;
17765 return 0;
17767 _ACEOF
17768 rm -f conftest.$ac_objext
17769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17770 (eval $ac_compile) 2>conftest.er1
17771 ac_status=$?
17772 grep -v '^ *+' conftest.er1 >conftest.err
17773 rm -f conftest.er1
17774 cat conftest.err >&5
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); } &&
17777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779 (eval $ac_try) 2>&5
17780 ac_status=$?
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); }; } &&
17783 { ac_try='test -s conftest.$ac_objext'
17784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785 (eval $ac_try) 2>&5
17786 ac_status=$?
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; }; then
17789 ac_cv_type_fsfilcnt_t=yes
17790 else
17791 echo "$as_me: failed program was:" >&5
17792 sed 's/^/| /' conftest.$ac_ext >&5
17794 ac_cv_type_fsfilcnt_t=no
17796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17798 echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
17799 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6
17800 if test $ac_cv_type_fsfilcnt_t = yes; then
17802 cat >>confdefs.h <<_ACEOF
17803 #define HAVE_FSFILCNT_T 1
17804 _ACEOF
17810 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
17811 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
17812 if test "${wine_cv_linux_input_h+set}" = set; then
17813 echo $ECHO_N "(cached) $ECHO_C" >&6
17814 else
17815 cat >conftest.$ac_ext <<_ACEOF
17816 /* confdefs.h. */
17817 _ACEOF
17818 cat confdefs.h >>conftest.$ac_ext
17819 cat >>conftest.$ac_ext <<_ACEOF
17820 /* end confdefs.h. */
17822 #include <linux/input.h>
17825 main ()
17828 int foo = EVIOCGBIT(EV_ABS,42);
17829 int bar = BTN_PINKIE;
17830 int fortytwo = 42;
17833 return 0;
17835 _ACEOF
17836 rm -f conftest.$ac_objext
17837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17838 (eval $ac_compile) 2>conftest.er1
17839 ac_status=$?
17840 grep -v '^ *+' conftest.er1 >conftest.err
17841 rm -f conftest.er1
17842 cat conftest.err >&5
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); } &&
17845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17847 (eval $ac_try) 2>&5
17848 ac_status=$?
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); }; } &&
17851 { ac_try='test -s conftest.$ac_objext'
17852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17853 (eval $ac_try) 2>&5
17854 ac_status=$?
17855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); }; }; then
17857 wine_cv_linux_input_h=yes
17858 else
17859 echo "$as_me: failed program was:" >&5
17860 sed 's/^/| /' conftest.$ac_ext >&5
17862 wine_cv_linux_input_h=no
17864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17867 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
17868 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
17869 if test "$wine_cv_linux_input_h" = "yes"
17870 then
17872 cat >>confdefs.h <<\_ACEOF
17873 #define HAVE_CORRECT_LINUXINPUT_H 1
17874 _ACEOF
17879 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
17880 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
17881 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
17882 echo $ECHO_N "(cached) $ECHO_C" >&6
17883 else
17884 cat >conftest.$ac_ext <<_ACEOF
17885 /* confdefs.h. */
17886 _ACEOF
17887 cat confdefs.h >>conftest.$ac_ext
17888 cat >>conftest.$ac_ext <<_ACEOF
17889 /* end confdefs.h. */
17891 #include <netdb.h>
17894 main ()
17897 char *name=NULL;
17898 struct hostent he;
17899 struct hostent *result;
17900 char *buf=NULL;
17901 int bufsize=0;
17902 int res,errnr;
17903 char *addr=NULL;
17904 int addrlen=0;
17905 int addrtype=0;
17906 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
17907 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
17910 return 0;
17912 _ACEOF
17913 rm -f conftest.$ac_objext conftest$ac_exeext
17914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17915 (eval $ac_link) 2>conftest.er1
17916 ac_status=$?
17917 grep -v '^ *+' conftest.er1 >conftest.err
17918 rm -f conftest.er1
17919 cat conftest.err >&5
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); } &&
17922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17924 (eval $ac_try) 2>&5
17925 ac_status=$?
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); }; } &&
17928 { ac_try='test -s conftest$ac_exeext'
17929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17930 (eval $ac_try) 2>&5
17931 ac_status=$?
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); }; }; then
17934 wine_cv_linux_gethostbyname_r_6=yes
17935 else
17936 echo "$as_me: failed program was:" >&5
17937 sed 's/^/| /' conftest.$ac_ext >&5
17939 wine_cv_linux_gethostbyname_r_6=no
17942 rm -f conftest.err conftest.$ac_objext \
17943 conftest$ac_exeext conftest.$ac_ext
17946 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
17947 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
17948 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
17949 then
17951 cat >>confdefs.h <<\_ACEOF
17952 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
17953 _ACEOF
17957 if test "$ac_cv_header_linux_joystick_h" = "yes"
17958 then
17959 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
17960 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
17961 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
17962 echo $ECHO_N "(cached) $ECHO_C" >&6
17963 else
17964 cat >conftest.$ac_ext <<_ACEOF
17965 /* confdefs.h. */
17966 _ACEOF
17967 cat confdefs.h >>conftest.$ac_ext
17968 cat >>conftest.$ac_ext <<_ACEOF
17969 /* end confdefs.h. */
17971 #include <sys/ioctl.h>
17972 #include <linux/joystick.h>
17974 struct js_event blub;
17975 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
17976 #error "no 2.2 header"
17977 #endif
17980 main ()
17982 /*empty*/
17984 return 0;
17986 _ACEOF
17987 rm -f conftest.$ac_objext
17988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17989 (eval $ac_compile) 2>conftest.er1
17990 ac_status=$?
17991 grep -v '^ *+' conftest.er1 >conftest.err
17992 rm -f conftest.er1
17993 cat conftest.err >&5
17994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995 (exit $ac_status); } &&
17996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17998 (eval $ac_try) 2>&5
17999 ac_status=$?
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); }; } &&
18002 { ac_try='test -s conftest.$ac_objext'
18003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18004 (eval $ac_try) 2>&5
18005 ac_status=$?
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); }; }; then
18008 wine_cv_linux_joystick_22_api=yes
18009 else
18010 echo "$as_me: failed program was:" >&5
18011 sed 's/^/| /' conftest.$ac_ext >&5
18013 wine_cv_linux_joystick_22_api=no
18015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18018 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
18019 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
18020 if test "$wine_cv_linux_joystick_22_api" = "yes"
18021 then
18023 cat >>confdefs.h <<\_ACEOF
18024 #define HAVE_LINUX_22_JOYSTICK_API 1
18025 _ACEOF
18031 if test "$ac_cv_header_sys_vfs_h" = "yes"
18032 then
18033 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
18034 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
18035 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
18036 echo $ECHO_N "(cached) $ECHO_C" >&6
18037 else
18038 cat >conftest.$ac_ext <<_ACEOF
18039 /* confdefs.h. */
18040 _ACEOF
18041 cat confdefs.h >>conftest.$ac_ext
18042 cat >>conftest.$ac_ext <<_ACEOF
18043 /* end confdefs.h. */
18045 #include <sys/types.h>
18046 #ifdef HAVE_SYS_PARAM_H
18047 # include <sys/param.h>
18048 #endif
18049 #include <sys/vfs.h>
18052 main ()
18055 struct statfs stfs;
18057 memset(&stfs,0,sizeof(stfs));
18060 return 0;
18062 _ACEOF
18063 rm -f conftest.$ac_objext
18064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18065 (eval $ac_compile) 2>conftest.er1
18066 ac_status=$?
18067 grep -v '^ *+' conftest.er1 >conftest.err
18068 rm -f conftest.er1
18069 cat conftest.err >&5
18070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071 (exit $ac_status); } &&
18072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18074 (eval $ac_try) 2>&5
18075 ac_status=$?
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); }; } &&
18078 { ac_try='test -s conftest.$ac_objext'
18079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18080 (eval $ac_try) 2>&5
18081 ac_status=$?
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); }; }; then
18084 wine_cv_sys_vfs_has_statfs=yes
18085 else
18086 echo "$as_me: failed program was:" >&5
18087 sed 's/^/| /' conftest.$ac_ext >&5
18089 wine_cv_sys_vfs_has_statfs=no
18092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18095 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
18096 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
18097 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
18098 then
18100 cat >>confdefs.h <<\_ACEOF
18101 #define STATFS_DEFINED_BY_SYS_VFS 1
18102 _ACEOF
18107 if test "$ac_cv_header_sys_statfs_h" = "yes"
18108 then
18109 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
18110 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
18111 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
18112 echo $ECHO_N "(cached) $ECHO_C" >&6
18113 else
18114 cat >conftest.$ac_ext <<_ACEOF
18115 /* confdefs.h. */
18116 _ACEOF
18117 cat confdefs.h >>conftest.$ac_ext
18118 cat >>conftest.$ac_ext <<_ACEOF
18119 /* end confdefs.h. */
18121 #include <sys/types.h>
18122 #ifdef HAVE_SYS_PARAM_H
18123 # include <sys/param.h>
18124 #endif
18125 #include <sys/statfs.h>
18128 main ()
18131 struct statfs stfs;
18134 return 0;
18136 _ACEOF
18137 rm -f conftest.$ac_objext
18138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18139 (eval $ac_compile) 2>conftest.er1
18140 ac_status=$?
18141 grep -v '^ *+' conftest.er1 >conftest.err
18142 rm -f conftest.er1
18143 cat conftest.err >&5
18144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145 (exit $ac_status); } &&
18146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18148 (eval $ac_try) 2>&5
18149 ac_status=$?
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); }; } &&
18152 { ac_try='test -s conftest.$ac_objext'
18153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18154 (eval $ac_try) 2>&5
18155 ac_status=$?
18156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157 (exit $ac_status); }; }; then
18158 wine_cv_sys_statfs_has_statfs=yes
18159 else
18160 echo "$as_me: failed program was:" >&5
18161 sed 's/^/| /' conftest.$ac_ext >&5
18163 wine_cv_sys_statfs_has_statfs=no
18166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18169 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
18170 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
18171 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
18172 then
18174 cat >>confdefs.h <<\_ACEOF
18175 #define STATFS_DEFINED_BY_SYS_STATFS 1
18176 _ACEOF
18181 if test "$ac_cv_header_sys_mount_h" = "yes"
18182 then
18183 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
18184 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
18185 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
18186 echo $ECHO_N "(cached) $ECHO_C" >&6
18187 else
18188 cat >conftest.$ac_ext <<_ACEOF
18189 /* confdefs.h. */
18190 _ACEOF
18191 cat confdefs.h >>conftest.$ac_ext
18192 cat >>conftest.$ac_ext <<_ACEOF
18193 /* end confdefs.h. */
18195 #include <sys/types.h>
18196 #ifdef HAVE_SYS_PARAM_H
18197 # include <sys/param.h>
18198 #endif
18199 #include <sys/mount.h>
18202 main ()
18205 struct statfs stfs;
18208 return 0;
18210 _ACEOF
18211 rm -f conftest.$ac_objext
18212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18213 (eval $ac_compile) 2>conftest.er1
18214 ac_status=$?
18215 grep -v '^ *+' conftest.er1 >conftest.err
18216 rm -f conftest.er1
18217 cat conftest.err >&5
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); } &&
18220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18222 (eval $ac_try) 2>&5
18223 ac_status=$?
18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 (exit $ac_status); }; } &&
18226 { ac_try='test -s conftest.$ac_objext'
18227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18228 (eval $ac_try) 2>&5
18229 ac_status=$?
18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231 (exit $ac_status); }; }; then
18232 wine_cv_sys_mount_has_statfs=yes
18233 else
18234 echo "$as_me: failed program was:" >&5
18235 sed 's/^/| /' conftest.$ac_ext >&5
18237 wine_cv_sys_mount_has_statfs=no
18240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18243 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
18244 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
18245 if test "$wine_cv_sys_mount_has_statfs" = "yes"
18246 then
18248 cat >>confdefs.h <<\_ACEOF
18249 #define STATFS_DEFINED_BY_SYS_MOUNT 1
18250 _ACEOF
18256 echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
18257 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
18258 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
18259 echo $ECHO_N "(cached) $ECHO_C" >&6
18260 else
18261 cat >conftest.$ac_ext <<_ACEOF
18262 /* confdefs.h. */
18263 _ACEOF
18264 cat confdefs.h >>conftest.$ac_ext
18265 cat >>conftest.$ac_ext <<_ACEOF
18266 /* end confdefs.h. */
18267 #include <sys/types.h>
18268 #ifdef HAVE_SYS_PARAM_H
18269 # include <sys/param.h>
18270 #endif
18271 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18272 # include <sys/mount.h>
18273 #else
18274 # ifdef STATFS_DEFINED_BY_SYS_VFS
18275 # include <sys/vfs.h>
18276 # else
18277 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18278 # include <sys/statfs.h>
18279 # endif
18280 # endif
18281 #endif
18284 main ()
18286 static struct statfs ac_aggr;
18287 if (ac_aggr.f_bfree)
18288 return 0;
18290 return 0;
18292 _ACEOF
18293 rm -f conftest.$ac_objext
18294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18295 (eval $ac_compile) 2>conftest.er1
18296 ac_status=$?
18297 grep -v '^ *+' conftest.er1 >conftest.err
18298 rm -f conftest.er1
18299 cat conftest.err >&5
18300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301 (exit $ac_status); } &&
18302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18304 (eval $ac_try) 2>&5
18305 ac_status=$?
18306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307 (exit $ac_status); }; } &&
18308 { ac_try='test -s conftest.$ac_objext'
18309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18310 (eval $ac_try) 2>&5
18311 ac_status=$?
18312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313 (exit $ac_status); }; }; then
18314 ac_cv_member_struct_statfs_f_bfree=yes
18315 else
18316 echo "$as_me: failed program was:" >&5
18317 sed 's/^/| /' conftest.$ac_ext >&5
18319 cat >conftest.$ac_ext <<_ACEOF
18320 /* confdefs.h. */
18321 _ACEOF
18322 cat confdefs.h >>conftest.$ac_ext
18323 cat >>conftest.$ac_ext <<_ACEOF
18324 /* end confdefs.h. */
18325 #include <sys/types.h>
18326 #ifdef HAVE_SYS_PARAM_H
18327 # include <sys/param.h>
18328 #endif
18329 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18330 # include <sys/mount.h>
18331 #else
18332 # ifdef STATFS_DEFINED_BY_SYS_VFS
18333 # include <sys/vfs.h>
18334 # else
18335 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18336 # include <sys/statfs.h>
18337 # endif
18338 # endif
18339 #endif
18342 main ()
18344 static struct statfs ac_aggr;
18345 if (sizeof ac_aggr.f_bfree)
18346 return 0;
18348 return 0;
18350 _ACEOF
18351 rm -f conftest.$ac_objext
18352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18353 (eval $ac_compile) 2>conftest.er1
18354 ac_status=$?
18355 grep -v '^ *+' conftest.er1 >conftest.err
18356 rm -f conftest.er1
18357 cat conftest.err >&5
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); } &&
18360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18362 (eval $ac_try) 2>&5
18363 ac_status=$?
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); }; } &&
18366 { ac_try='test -s conftest.$ac_objext'
18367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18368 (eval $ac_try) 2>&5
18369 ac_status=$?
18370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371 (exit $ac_status); }; }; then
18372 ac_cv_member_struct_statfs_f_bfree=yes
18373 else
18374 echo "$as_me: failed program was:" >&5
18375 sed 's/^/| /' conftest.$ac_ext >&5
18377 ac_cv_member_struct_statfs_f_bfree=no
18379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18383 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
18384 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
18385 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
18387 cat >>confdefs.h <<_ACEOF
18388 #define HAVE_STRUCT_STATFS_F_BFREE 1
18389 _ACEOF
18393 echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
18394 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
18395 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
18396 echo $ECHO_N "(cached) $ECHO_C" >&6
18397 else
18398 cat >conftest.$ac_ext <<_ACEOF
18399 /* confdefs.h. */
18400 _ACEOF
18401 cat confdefs.h >>conftest.$ac_ext
18402 cat >>conftest.$ac_ext <<_ACEOF
18403 /* end confdefs.h. */
18404 #include <sys/types.h>
18405 #ifdef HAVE_SYS_PARAM_H
18406 # include <sys/param.h>
18407 #endif
18408 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18409 # include <sys/mount.h>
18410 #else
18411 # ifdef STATFS_DEFINED_BY_SYS_VFS
18412 # include <sys/vfs.h>
18413 # else
18414 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18415 # include <sys/statfs.h>
18416 # endif
18417 # endif
18418 #endif
18421 main ()
18423 static struct statfs ac_aggr;
18424 if (ac_aggr.f_bavail)
18425 return 0;
18427 return 0;
18429 _ACEOF
18430 rm -f conftest.$ac_objext
18431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18432 (eval $ac_compile) 2>conftest.er1
18433 ac_status=$?
18434 grep -v '^ *+' conftest.er1 >conftest.err
18435 rm -f conftest.er1
18436 cat conftest.err >&5
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); } &&
18439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18441 (eval $ac_try) 2>&5
18442 ac_status=$?
18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444 (exit $ac_status); }; } &&
18445 { ac_try='test -s conftest.$ac_objext'
18446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18447 (eval $ac_try) 2>&5
18448 ac_status=$?
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); }; }; then
18451 ac_cv_member_struct_statfs_f_bavail=yes
18452 else
18453 echo "$as_me: failed program was:" >&5
18454 sed 's/^/| /' conftest.$ac_ext >&5
18456 cat >conftest.$ac_ext <<_ACEOF
18457 /* confdefs.h. */
18458 _ACEOF
18459 cat confdefs.h >>conftest.$ac_ext
18460 cat >>conftest.$ac_ext <<_ACEOF
18461 /* end confdefs.h. */
18462 #include <sys/types.h>
18463 #ifdef HAVE_SYS_PARAM_H
18464 # include <sys/param.h>
18465 #endif
18466 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18467 # include <sys/mount.h>
18468 #else
18469 # ifdef STATFS_DEFINED_BY_SYS_VFS
18470 # include <sys/vfs.h>
18471 # else
18472 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18473 # include <sys/statfs.h>
18474 # endif
18475 # endif
18476 #endif
18479 main ()
18481 static struct statfs ac_aggr;
18482 if (sizeof ac_aggr.f_bavail)
18483 return 0;
18485 return 0;
18487 _ACEOF
18488 rm -f conftest.$ac_objext
18489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18490 (eval $ac_compile) 2>conftest.er1
18491 ac_status=$?
18492 grep -v '^ *+' conftest.er1 >conftest.err
18493 rm -f conftest.er1
18494 cat conftest.err >&5
18495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496 (exit $ac_status); } &&
18497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18499 (eval $ac_try) 2>&5
18500 ac_status=$?
18501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502 (exit $ac_status); }; } &&
18503 { ac_try='test -s conftest.$ac_objext'
18504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18505 (eval $ac_try) 2>&5
18506 ac_status=$?
18507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508 (exit $ac_status); }; }; then
18509 ac_cv_member_struct_statfs_f_bavail=yes
18510 else
18511 echo "$as_me: failed program was:" >&5
18512 sed 's/^/| /' conftest.$ac_ext >&5
18514 ac_cv_member_struct_statfs_f_bavail=no
18516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18520 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
18521 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
18522 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
18524 cat >>confdefs.h <<_ACEOF
18525 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
18526 _ACEOF
18530 echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
18531 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6
18532 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
18533 echo $ECHO_N "(cached) $ECHO_C" >&6
18534 else
18535 cat >conftest.$ac_ext <<_ACEOF
18536 /* confdefs.h. */
18537 _ACEOF
18538 cat confdefs.h >>conftest.$ac_ext
18539 cat >>conftest.$ac_ext <<_ACEOF
18540 /* end confdefs.h. */
18541 #include <sys/types.h>
18542 #ifdef HAVE_SYS_PARAM_H
18543 # include <sys/param.h>
18544 #endif
18545 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18546 # include <sys/mount.h>
18547 #else
18548 # ifdef STATFS_DEFINED_BY_SYS_VFS
18549 # include <sys/vfs.h>
18550 # else
18551 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18552 # include <sys/statfs.h>
18553 # endif
18554 # endif
18555 #endif
18558 main ()
18560 static struct statfs ac_aggr;
18561 if (ac_aggr.f_frsize)
18562 return 0;
18564 return 0;
18566 _ACEOF
18567 rm -f conftest.$ac_objext
18568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18569 (eval $ac_compile) 2>conftest.er1
18570 ac_status=$?
18571 grep -v '^ *+' conftest.er1 >conftest.err
18572 rm -f conftest.er1
18573 cat conftest.err >&5
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); } &&
18576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18578 (eval $ac_try) 2>&5
18579 ac_status=$?
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); }; } &&
18582 { ac_try='test -s conftest.$ac_objext'
18583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18584 (eval $ac_try) 2>&5
18585 ac_status=$?
18586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587 (exit $ac_status); }; }; then
18588 ac_cv_member_struct_statfs_f_frsize=yes
18589 else
18590 echo "$as_me: failed program was:" >&5
18591 sed 's/^/| /' conftest.$ac_ext >&5
18593 cat >conftest.$ac_ext <<_ACEOF
18594 /* confdefs.h. */
18595 _ACEOF
18596 cat confdefs.h >>conftest.$ac_ext
18597 cat >>conftest.$ac_ext <<_ACEOF
18598 /* end confdefs.h. */
18599 #include <sys/types.h>
18600 #ifdef HAVE_SYS_PARAM_H
18601 # include <sys/param.h>
18602 #endif
18603 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18604 # include <sys/mount.h>
18605 #else
18606 # ifdef STATFS_DEFINED_BY_SYS_VFS
18607 # include <sys/vfs.h>
18608 # else
18609 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18610 # include <sys/statfs.h>
18611 # endif
18612 # endif
18613 #endif
18616 main ()
18618 static struct statfs ac_aggr;
18619 if (sizeof ac_aggr.f_frsize)
18620 return 0;
18622 return 0;
18624 _ACEOF
18625 rm -f conftest.$ac_objext
18626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18627 (eval $ac_compile) 2>conftest.er1
18628 ac_status=$?
18629 grep -v '^ *+' conftest.er1 >conftest.err
18630 rm -f conftest.er1
18631 cat conftest.err >&5
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); } &&
18634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18636 (eval $ac_try) 2>&5
18637 ac_status=$?
18638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639 (exit $ac_status); }; } &&
18640 { ac_try='test -s conftest.$ac_objext'
18641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18642 (eval $ac_try) 2>&5
18643 ac_status=$?
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); }; }; then
18646 ac_cv_member_struct_statfs_f_frsize=yes
18647 else
18648 echo "$as_me: failed program was:" >&5
18649 sed 's/^/| /' conftest.$ac_ext >&5
18651 ac_cv_member_struct_statfs_f_frsize=no
18653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18657 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
18658 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6
18659 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
18661 cat >>confdefs.h <<_ACEOF
18662 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
18663 _ACEOF
18667 echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
18668 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6
18669 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
18670 echo $ECHO_N "(cached) $ECHO_C" >&6
18671 else
18672 cat >conftest.$ac_ext <<_ACEOF
18673 /* confdefs.h. */
18674 _ACEOF
18675 cat confdefs.h >>conftest.$ac_ext
18676 cat >>conftest.$ac_ext <<_ACEOF
18677 /* end confdefs.h. */
18678 #include <sys/types.h>
18679 #ifdef HAVE_SYS_PARAM_H
18680 # include <sys/param.h>
18681 #endif
18682 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18683 # include <sys/mount.h>
18684 #else
18685 # ifdef STATFS_DEFINED_BY_SYS_VFS
18686 # include <sys/vfs.h>
18687 # else
18688 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18689 # include <sys/statfs.h>
18690 # endif
18691 # endif
18692 #endif
18695 main ()
18697 static struct statfs ac_aggr;
18698 if (ac_aggr.f_ffree)
18699 return 0;
18701 return 0;
18703 _ACEOF
18704 rm -f conftest.$ac_objext
18705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18706 (eval $ac_compile) 2>conftest.er1
18707 ac_status=$?
18708 grep -v '^ *+' conftest.er1 >conftest.err
18709 rm -f conftest.er1
18710 cat conftest.err >&5
18711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712 (exit $ac_status); } &&
18713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18715 (eval $ac_try) 2>&5
18716 ac_status=$?
18717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); }; } &&
18719 { ac_try='test -s conftest.$ac_objext'
18720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18721 (eval $ac_try) 2>&5
18722 ac_status=$?
18723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724 (exit $ac_status); }; }; then
18725 ac_cv_member_struct_statfs_f_ffree=yes
18726 else
18727 echo "$as_me: failed program was:" >&5
18728 sed 's/^/| /' conftest.$ac_ext >&5
18730 cat >conftest.$ac_ext <<_ACEOF
18731 /* confdefs.h. */
18732 _ACEOF
18733 cat confdefs.h >>conftest.$ac_ext
18734 cat >>conftest.$ac_ext <<_ACEOF
18735 /* end confdefs.h. */
18736 #include <sys/types.h>
18737 #ifdef HAVE_SYS_PARAM_H
18738 # include <sys/param.h>
18739 #endif
18740 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18741 # include <sys/mount.h>
18742 #else
18743 # ifdef STATFS_DEFINED_BY_SYS_VFS
18744 # include <sys/vfs.h>
18745 # else
18746 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18747 # include <sys/statfs.h>
18748 # endif
18749 # endif
18750 #endif
18753 main ()
18755 static struct statfs ac_aggr;
18756 if (sizeof ac_aggr.f_ffree)
18757 return 0;
18759 return 0;
18761 _ACEOF
18762 rm -f conftest.$ac_objext
18763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18764 (eval $ac_compile) 2>conftest.er1
18765 ac_status=$?
18766 grep -v '^ *+' conftest.er1 >conftest.err
18767 rm -f conftest.er1
18768 cat conftest.err >&5
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); } &&
18771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18773 (eval $ac_try) 2>&5
18774 ac_status=$?
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); }; } &&
18777 { ac_try='test -s conftest.$ac_objext'
18778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18779 (eval $ac_try) 2>&5
18780 ac_status=$?
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); }; }; then
18783 ac_cv_member_struct_statfs_f_ffree=yes
18784 else
18785 echo "$as_me: failed program was:" >&5
18786 sed 's/^/| /' conftest.$ac_ext >&5
18788 ac_cv_member_struct_statfs_f_ffree=no
18790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18794 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
18795 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6
18796 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
18798 cat >>confdefs.h <<_ACEOF
18799 #define HAVE_STRUCT_STATFS_F_FFREE 1
18800 _ACEOF
18804 echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
18805 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6
18806 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
18807 echo $ECHO_N "(cached) $ECHO_C" >&6
18808 else
18809 cat >conftest.$ac_ext <<_ACEOF
18810 /* confdefs.h. */
18811 _ACEOF
18812 cat confdefs.h >>conftest.$ac_ext
18813 cat >>conftest.$ac_ext <<_ACEOF
18814 /* end confdefs.h. */
18815 #include <sys/types.h>
18816 #ifdef HAVE_SYS_PARAM_H
18817 # include <sys/param.h>
18818 #endif
18819 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18820 # include <sys/mount.h>
18821 #else
18822 # ifdef STATFS_DEFINED_BY_SYS_VFS
18823 # include <sys/vfs.h>
18824 # else
18825 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18826 # include <sys/statfs.h>
18827 # endif
18828 # endif
18829 #endif
18832 main ()
18834 static struct statfs ac_aggr;
18835 if (ac_aggr.f_favail)
18836 return 0;
18838 return 0;
18840 _ACEOF
18841 rm -f conftest.$ac_objext
18842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18843 (eval $ac_compile) 2>conftest.er1
18844 ac_status=$?
18845 grep -v '^ *+' conftest.er1 >conftest.err
18846 rm -f conftest.er1
18847 cat conftest.err >&5
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); } &&
18850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852 (eval $ac_try) 2>&5
18853 ac_status=$?
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; } &&
18856 { ac_try='test -s conftest.$ac_objext'
18857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18858 (eval $ac_try) 2>&5
18859 ac_status=$?
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); }; }; then
18862 ac_cv_member_struct_statfs_f_favail=yes
18863 else
18864 echo "$as_me: failed program was:" >&5
18865 sed 's/^/| /' conftest.$ac_ext >&5
18867 cat >conftest.$ac_ext <<_ACEOF
18868 /* confdefs.h. */
18869 _ACEOF
18870 cat confdefs.h >>conftest.$ac_ext
18871 cat >>conftest.$ac_ext <<_ACEOF
18872 /* end confdefs.h. */
18873 #include <sys/types.h>
18874 #ifdef HAVE_SYS_PARAM_H
18875 # include <sys/param.h>
18876 #endif
18877 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18878 # include <sys/mount.h>
18879 #else
18880 # ifdef STATFS_DEFINED_BY_SYS_VFS
18881 # include <sys/vfs.h>
18882 # else
18883 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18884 # include <sys/statfs.h>
18885 # endif
18886 # endif
18887 #endif
18890 main ()
18892 static struct statfs ac_aggr;
18893 if (sizeof ac_aggr.f_favail)
18894 return 0;
18896 return 0;
18898 _ACEOF
18899 rm -f conftest.$ac_objext
18900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18901 (eval $ac_compile) 2>conftest.er1
18902 ac_status=$?
18903 grep -v '^ *+' conftest.er1 >conftest.err
18904 rm -f conftest.er1
18905 cat conftest.err >&5
18906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907 (exit $ac_status); } &&
18908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18910 (eval $ac_try) 2>&5
18911 ac_status=$?
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); }; } &&
18914 { ac_try='test -s conftest.$ac_objext'
18915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18916 (eval $ac_try) 2>&5
18917 ac_status=$?
18918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919 (exit $ac_status); }; }; then
18920 ac_cv_member_struct_statfs_f_favail=yes
18921 else
18922 echo "$as_me: failed program was:" >&5
18923 sed 's/^/| /' conftest.$ac_ext >&5
18925 ac_cv_member_struct_statfs_f_favail=no
18927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18931 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
18932 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6
18933 if test $ac_cv_member_struct_statfs_f_favail = yes; then
18935 cat >>confdefs.h <<_ACEOF
18936 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
18937 _ACEOF
18941 echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
18942 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
18943 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
18944 echo $ECHO_N "(cached) $ECHO_C" >&6
18945 else
18946 cat >conftest.$ac_ext <<_ACEOF
18947 /* confdefs.h. */
18948 _ACEOF
18949 cat confdefs.h >>conftest.$ac_ext
18950 cat >>conftest.$ac_ext <<_ACEOF
18951 /* end confdefs.h. */
18952 #include <sys/types.h>
18953 #ifdef HAVE_SYS_PARAM_H
18954 # include <sys/param.h>
18955 #endif
18956 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18957 # include <sys/mount.h>
18958 #else
18959 # ifdef STATFS_DEFINED_BY_SYS_VFS
18960 # include <sys/vfs.h>
18961 # else
18962 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18963 # include <sys/statfs.h>
18964 # endif
18965 # endif
18966 #endif
18969 main ()
18971 static struct statfs ac_aggr;
18972 if (ac_aggr.f_namelen)
18973 return 0;
18975 return 0;
18977 _ACEOF
18978 rm -f conftest.$ac_objext
18979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18980 (eval $ac_compile) 2>conftest.er1
18981 ac_status=$?
18982 grep -v '^ *+' conftest.er1 >conftest.err
18983 rm -f conftest.er1
18984 cat conftest.err >&5
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); } &&
18987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18989 (eval $ac_try) 2>&5
18990 ac_status=$?
18991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992 (exit $ac_status); }; } &&
18993 { ac_try='test -s conftest.$ac_objext'
18994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18995 (eval $ac_try) 2>&5
18996 ac_status=$?
18997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998 (exit $ac_status); }; }; then
18999 ac_cv_member_struct_statfs_f_namelen=yes
19000 else
19001 echo "$as_me: failed program was:" >&5
19002 sed 's/^/| /' conftest.$ac_ext >&5
19004 cat >conftest.$ac_ext <<_ACEOF
19005 /* confdefs.h. */
19006 _ACEOF
19007 cat confdefs.h >>conftest.$ac_ext
19008 cat >>conftest.$ac_ext <<_ACEOF
19009 /* end confdefs.h. */
19010 #include <sys/types.h>
19011 #ifdef HAVE_SYS_PARAM_H
19012 # include <sys/param.h>
19013 #endif
19014 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
19015 # include <sys/mount.h>
19016 #else
19017 # ifdef STATFS_DEFINED_BY_SYS_VFS
19018 # include <sys/vfs.h>
19019 # else
19020 # ifdef STATFS_DEFINED_BY_SYS_STATFS
19021 # include <sys/statfs.h>
19022 # endif
19023 # endif
19024 #endif
19027 main ()
19029 static struct statfs ac_aggr;
19030 if (sizeof ac_aggr.f_namelen)
19031 return 0;
19033 return 0;
19035 _ACEOF
19036 rm -f conftest.$ac_objext
19037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19038 (eval $ac_compile) 2>conftest.er1
19039 ac_status=$?
19040 grep -v '^ *+' conftest.er1 >conftest.err
19041 rm -f conftest.er1
19042 cat conftest.err >&5
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); } &&
19045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19047 (eval $ac_try) 2>&5
19048 ac_status=$?
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); }; } &&
19051 { ac_try='test -s conftest.$ac_objext'
19052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19053 (eval $ac_try) 2>&5
19054 ac_status=$?
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); }; }; then
19057 ac_cv_member_struct_statfs_f_namelen=yes
19058 else
19059 echo "$as_me: failed program was:" >&5
19060 sed 's/^/| /' conftest.$ac_ext >&5
19062 ac_cv_member_struct_statfs_f_namelen=no
19064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19068 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
19069 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
19070 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
19072 cat >>confdefs.h <<_ACEOF
19073 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
19074 _ACEOF
19080 echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
19081 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6
19082 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
19083 echo $ECHO_N "(cached) $ECHO_C" >&6
19084 else
19085 cat >conftest.$ac_ext <<_ACEOF
19086 /* confdefs.h. */
19087 _ACEOF
19088 cat confdefs.h >>conftest.$ac_ext
19089 cat >>conftest.$ac_ext <<_ACEOF
19090 /* end confdefs.h. */
19091 #ifdef HAVE_SYS_STATVFS_H
19092 #include <sys/statvfs.h>
19093 #endif
19096 main ()
19098 static struct statvfs ac_aggr;
19099 if (ac_aggr.f_blocks)
19100 return 0;
19102 return 0;
19104 _ACEOF
19105 rm -f conftest.$ac_objext
19106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19107 (eval $ac_compile) 2>conftest.er1
19108 ac_status=$?
19109 grep -v '^ *+' conftest.er1 >conftest.err
19110 rm -f conftest.er1
19111 cat conftest.err >&5
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); } &&
19114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19116 (eval $ac_try) 2>&5
19117 ac_status=$?
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); }; } &&
19120 { ac_try='test -s conftest.$ac_objext'
19121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19122 (eval $ac_try) 2>&5
19123 ac_status=$?
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); }; }; then
19126 ac_cv_member_struct_statvfs_f_blocks=yes
19127 else
19128 echo "$as_me: failed program was:" >&5
19129 sed 's/^/| /' conftest.$ac_ext >&5
19131 cat >conftest.$ac_ext <<_ACEOF
19132 /* confdefs.h. */
19133 _ACEOF
19134 cat confdefs.h >>conftest.$ac_ext
19135 cat >>conftest.$ac_ext <<_ACEOF
19136 /* end confdefs.h. */
19137 #ifdef HAVE_SYS_STATVFS_H
19138 #include <sys/statvfs.h>
19139 #endif
19142 main ()
19144 static struct statvfs ac_aggr;
19145 if (sizeof ac_aggr.f_blocks)
19146 return 0;
19148 return 0;
19150 _ACEOF
19151 rm -f conftest.$ac_objext
19152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19153 (eval $ac_compile) 2>conftest.er1
19154 ac_status=$?
19155 grep -v '^ *+' conftest.er1 >conftest.err
19156 rm -f conftest.er1
19157 cat conftest.err >&5
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); } &&
19160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19162 (eval $ac_try) 2>&5
19163 ac_status=$?
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); }; } &&
19166 { ac_try='test -s conftest.$ac_objext'
19167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19168 (eval $ac_try) 2>&5
19169 ac_status=$?
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); }; }; then
19172 ac_cv_member_struct_statvfs_f_blocks=yes
19173 else
19174 echo "$as_me: failed program was:" >&5
19175 sed 's/^/| /' conftest.$ac_ext >&5
19177 ac_cv_member_struct_statvfs_f_blocks=no
19179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19183 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
19184 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6
19185 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
19187 cat >>confdefs.h <<_ACEOF
19188 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
19189 _ACEOF
19195 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
19196 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
19197 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
19198 echo $ECHO_N "(cached) $ECHO_C" >&6
19199 else
19200 cat >conftest.$ac_ext <<_ACEOF
19201 /* confdefs.h. */
19202 _ACEOF
19203 cat confdefs.h >>conftest.$ac_ext
19204 cat >>conftest.$ac_ext <<_ACEOF
19205 /* end confdefs.h. */
19206 #include <sys/types.h>
19207 #ifdef HAVE_SYS_SOCKET_H
19208 # include <sys/socket.h>
19209 #endif
19210 #ifdef HAVE_SYS_UN_H
19211 # include <sys/un.h>
19212 #endif
19215 main ()
19217 static struct msghdr ac_aggr;
19218 if (ac_aggr.msg_accrights)
19219 return 0;
19221 return 0;
19223 _ACEOF
19224 rm -f conftest.$ac_objext
19225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19226 (eval $ac_compile) 2>conftest.er1
19227 ac_status=$?
19228 grep -v '^ *+' conftest.er1 >conftest.err
19229 rm -f conftest.er1
19230 cat conftest.err >&5
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); } &&
19233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19235 (eval $ac_try) 2>&5
19236 ac_status=$?
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); }; } &&
19239 { ac_try='test -s conftest.$ac_objext'
19240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19241 (eval $ac_try) 2>&5
19242 ac_status=$?
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); }; }; then
19245 ac_cv_member_struct_msghdr_msg_accrights=yes
19246 else
19247 echo "$as_me: failed program was:" >&5
19248 sed 's/^/| /' conftest.$ac_ext >&5
19250 cat >conftest.$ac_ext <<_ACEOF
19251 /* confdefs.h. */
19252 _ACEOF
19253 cat confdefs.h >>conftest.$ac_ext
19254 cat >>conftest.$ac_ext <<_ACEOF
19255 /* end confdefs.h. */
19256 #include <sys/types.h>
19257 #ifdef HAVE_SYS_SOCKET_H
19258 # include <sys/socket.h>
19259 #endif
19260 #ifdef HAVE_SYS_UN_H
19261 # include <sys/un.h>
19262 #endif
19265 main ()
19267 static struct msghdr ac_aggr;
19268 if (sizeof ac_aggr.msg_accrights)
19269 return 0;
19271 return 0;
19273 _ACEOF
19274 rm -f conftest.$ac_objext
19275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19276 (eval $ac_compile) 2>conftest.er1
19277 ac_status=$?
19278 grep -v '^ *+' conftest.er1 >conftest.err
19279 rm -f conftest.er1
19280 cat conftest.err >&5
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); } &&
19283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19285 (eval $ac_try) 2>&5
19286 ac_status=$?
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); }; } &&
19289 { ac_try='test -s conftest.$ac_objext'
19290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19291 (eval $ac_try) 2>&5
19292 ac_status=$?
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); }; }; then
19295 ac_cv_member_struct_msghdr_msg_accrights=yes
19296 else
19297 echo "$as_me: failed program was:" >&5
19298 sed 's/^/| /' conftest.$ac_ext >&5
19300 ac_cv_member_struct_msghdr_msg_accrights=no
19302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19306 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
19307 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
19308 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
19310 cat >>confdefs.h <<_ACEOF
19311 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
19312 _ACEOF
19316 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
19317 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
19318 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
19319 echo $ECHO_N "(cached) $ECHO_C" >&6
19320 else
19321 cat >conftest.$ac_ext <<_ACEOF
19322 /* confdefs.h. */
19323 _ACEOF
19324 cat confdefs.h >>conftest.$ac_ext
19325 cat >>conftest.$ac_ext <<_ACEOF
19326 /* end confdefs.h. */
19327 #include <sys/types.h>
19328 #ifdef HAVE_SYS_SOCKET_H
19329 # include <sys/socket.h>
19330 #endif
19331 #ifdef HAVE_SYS_UN_H
19332 # include <sys/un.h>
19333 #endif
19336 main ()
19338 static struct sockaddr ac_aggr;
19339 if (ac_aggr.sa_len)
19340 return 0;
19342 return 0;
19344 _ACEOF
19345 rm -f conftest.$ac_objext
19346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19347 (eval $ac_compile) 2>conftest.er1
19348 ac_status=$?
19349 grep -v '^ *+' conftest.er1 >conftest.err
19350 rm -f conftest.er1
19351 cat conftest.err >&5
19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); } &&
19354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19356 (eval $ac_try) 2>&5
19357 ac_status=$?
19358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359 (exit $ac_status); }; } &&
19360 { ac_try='test -s conftest.$ac_objext'
19361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19362 (eval $ac_try) 2>&5
19363 ac_status=$?
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); }; }; then
19366 ac_cv_member_struct_sockaddr_sa_len=yes
19367 else
19368 echo "$as_me: failed program was:" >&5
19369 sed 's/^/| /' conftest.$ac_ext >&5
19371 cat >conftest.$ac_ext <<_ACEOF
19372 /* confdefs.h. */
19373 _ACEOF
19374 cat confdefs.h >>conftest.$ac_ext
19375 cat >>conftest.$ac_ext <<_ACEOF
19376 /* end confdefs.h. */
19377 #include <sys/types.h>
19378 #ifdef HAVE_SYS_SOCKET_H
19379 # include <sys/socket.h>
19380 #endif
19381 #ifdef HAVE_SYS_UN_H
19382 # include <sys/un.h>
19383 #endif
19386 main ()
19388 static struct sockaddr ac_aggr;
19389 if (sizeof ac_aggr.sa_len)
19390 return 0;
19392 return 0;
19394 _ACEOF
19395 rm -f conftest.$ac_objext
19396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19397 (eval $ac_compile) 2>conftest.er1
19398 ac_status=$?
19399 grep -v '^ *+' conftest.er1 >conftest.err
19400 rm -f conftest.er1
19401 cat conftest.err >&5
19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403 (exit $ac_status); } &&
19404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19406 (eval $ac_try) 2>&5
19407 ac_status=$?
19408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 (exit $ac_status); }; } &&
19410 { ac_try='test -s conftest.$ac_objext'
19411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19412 (eval $ac_try) 2>&5
19413 ac_status=$?
19414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415 (exit $ac_status); }; }; then
19416 ac_cv_member_struct_sockaddr_sa_len=yes
19417 else
19418 echo "$as_me: failed program was:" >&5
19419 sed 's/^/| /' conftest.$ac_ext >&5
19421 ac_cv_member_struct_sockaddr_sa_len=no
19423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19427 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
19428 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
19429 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
19431 cat >>confdefs.h <<_ACEOF
19432 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
19433 _ACEOF
19437 echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
19438 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
19439 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
19440 echo $ECHO_N "(cached) $ECHO_C" >&6
19441 else
19442 cat >conftest.$ac_ext <<_ACEOF
19443 /* confdefs.h. */
19444 _ACEOF
19445 cat confdefs.h >>conftest.$ac_ext
19446 cat >>conftest.$ac_ext <<_ACEOF
19447 /* end confdefs.h. */
19448 #include <sys/types.h>
19449 #ifdef HAVE_SYS_SOCKET_H
19450 # include <sys/socket.h>
19451 #endif
19452 #ifdef HAVE_SYS_UN_H
19453 # include <sys/un.h>
19454 #endif
19457 main ()
19459 static struct sockaddr_un ac_aggr;
19460 if (ac_aggr.sun_len)
19461 return 0;
19463 return 0;
19465 _ACEOF
19466 rm -f conftest.$ac_objext
19467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19468 (eval $ac_compile) 2>conftest.er1
19469 ac_status=$?
19470 grep -v '^ *+' conftest.er1 >conftest.err
19471 rm -f conftest.er1
19472 cat conftest.err >&5
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); } &&
19475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477 (eval $ac_try) 2>&5
19478 ac_status=$?
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); }; } &&
19481 { ac_try='test -s conftest.$ac_objext'
19482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19483 (eval $ac_try) 2>&5
19484 ac_status=$?
19485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486 (exit $ac_status); }; }; then
19487 ac_cv_member_struct_sockaddr_un_sun_len=yes
19488 else
19489 echo "$as_me: failed program was:" >&5
19490 sed 's/^/| /' conftest.$ac_ext >&5
19492 cat >conftest.$ac_ext <<_ACEOF
19493 /* confdefs.h. */
19494 _ACEOF
19495 cat confdefs.h >>conftest.$ac_ext
19496 cat >>conftest.$ac_ext <<_ACEOF
19497 /* end confdefs.h. */
19498 #include <sys/types.h>
19499 #ifdef HAVE_SYS_SOCKET_H
19500 # include <sys/socket.h>
19501 #endif
19502 #ifdef HAVE_SYS_UN_H
19503 # include <sys/un.h>
19504 #endif
19507 main ()
19509 static struct sockaddr_un ac_aggr;
19510 if (sizeof ac_aggr.sun_len)
19511 return 0;
19513 return 0;
19515 _ACEOF
19516 rm -f conftest.$ac_objext
19517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19518 (eval $ac_compile) 2>conftest.er1
19519 ac_status=$?
19520 grep -v '^ *+' conftest.er1 >conftest.err
19521 rm -f conftest.er1
19522 cat conftest.err >&5
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); } &&
19525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19527 (eval $ac_try) 2>&5
19528 ac_status=$?
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); }; } &&
19531 { ac_try='test -s conftest.$ac_objext'
19532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19533 (eval $ac_try) 2>&5
19534 ac_status=$?
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); }; }; then
19537 ac_cv_member_struct_sockaddr_un_sun_len=yes
19538 else
19539 echo "$as_me: failed program was:" >&5
19540 sed 's/^/| /' conftest.$ac_ext >&5
19542 ac_cv_member_struct_sockaddr_un_sun_len=no
19544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19548 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
19549 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
19550 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
19552 cat >>confdefs.h <<_ACEOF
19553 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
19554 _ACEOF
19560 echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
19561 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
19562 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
19563 echo $ECHO_N "(cached) $ECHO_C" >&6
19564 else
19565 cat >conftest.$ac_ext <<_ACEOF
19566 /* confdefs.h. */
19567 _ACEOF
19568 cat confdefs.h >>conftest.$ac_ext
19569 cat >>conftest.$ac_ext <<_ACEOF
19570 /* end confdefs.h. */
19571 #include <signal.h>
19574 main ()
19576 static siginfo_t ac_aggr;
19577 if (ac_aggr.si_fd)
19578 return 0;
19580 return 0;
19582 _ACEOF
19583 rm -f conftest.$ac_objext
19584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19585 (eval $ac_compile) 2>conftest.er1
19586 ac_status=$?
19587 grep -v '^ *+' conftest.er1 >conftest.err
19588 rm -f conftest.er1
19589 cat conftest.err >&5
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); } &&
19592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19594 (eval $ac_try) 2>&5
19595 ac_status=$?
19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597 (exit $ac_status); }; } &&
19598 { ac_try='test -s conftest.$ac_objext'
19599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19600 (eval $ac_try) 2>&5
19601 ac_status=$?
19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603 (exit $ac_status); }; }; then
19604 ac_cv_member_siginfo_t_si_fd=yes
19605 else
19606 echo "$as_me: failed program was:" >&5
19607 sed 's/^/| /' conftest.$ac_ext >&5
19609 cat >conftest.$ac_ext <<_ACEOF
19610 /* confdefs.h. */
19611 _ACEOF
19612 cat confdefs.h >>conftest.$ac_ext
19613 cat >>conftest.$ac_ext <<_ACEOF
19614 /* end confdefs.h. */
19615 #include <signal.h>
19618 main ()
19620 static siginfo_t ac_aggr;
19621 if (sizeof ac_aggr.si_fd)
19622 return 0;
19624 return 0;
19626 _ACEOF
19627 rm -f conftest.$ac_objext
19628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19629 (eval $ac_compile) 2>conftest.er1
19630 ac_status=$?
19631 grep -v '^ *+' conftest.er1 >conftest.err
19632 rm -f conftest.er1
19633 cat conftest.err >&5
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); } &&
19636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19638 (eval $ac_try) 2>&5
19639 ac_status=$?
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); }; } &&
19642 { ac_try='test -s conftest.$ac_objext'
19643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19644 (eval $ac_try) 2>&5
19645 ac_status=$?
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); }; }; then
19648 ac_cv_member_siginfo_t_si_fd=yes
19649 else
19650 echo "$as_me: failed program was:" >&5
19651 sed 's/^/| /' conftest.$ac_ext >&5
19653 ac_cv_member_siginfo_t_si_fd=no
19655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19659 echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
19660 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
19661 if test $ac_cv_member_siginfo_t_si_fd = yes; then
19663 cat >>confdefs.h <<_ACEOF
19664 #define HAVE_SIGINFO_T_SI_FD 1
19665 _ACEOF
19671 echo "$as_me:$LINENO: checking for struct option.name" >&5
19672 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
19673 if test "${ac_cv_member_struct_option_name+set}" = set; then
19674 echo $ECHO_N "(cached) $ECHO_C" >&6
19675 else
19676 cat >conftest.$ac_ext <<_ACEOF
19677 /* confdefs.h. */
19678 _ACEOF
19679 cat confdefs.h >>conftest.$ac_ext
19680 cat >>conftest.$ac_ext <<_ACEOF
19681 /* end confdefs.h. */
19682 #ifdef HAVE_GETOPT_H
19683 #include <getopt.h>
19684 #endif
19687 main ()
19689 static struct option ac_aggr;
19690 if (ac_aggr.name)
19691 return 0;
19693 return 0;
19695 _ACEOF
19696 rm -f conftest.$ac_objext
19697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19698 (eval $ac_compile) 2>conftest.er1
19699 ac_status=$?
19700 grep -v '^ *+' conftest.er1 >conftest.err
19701 rm -f conftest.er1
19702 cat conftest.err >&5
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); } &&
19705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19707 (eval $ac_try) 2>&5
19708 ac_status=$?
19709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710 (exit $ac_status); }; } &&
19711 { ac_try='test -s conftest.$ac_objext'
19712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19713 (eval $ac_try) 2>&5
19714 ac_status=$?
19715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716 (exit $ac_status); }; }; then
19717 ac_cv_member_struct_option_name=yes
19718 else
19719 echo "$as_me: failed program was:" >&5
19720 sed 's/^/| /' conftest.$ac_ext >&5
19722 cat >conftest.$ac_ext <<_ACEOF
19723 /* confdefs.h. */
19724 _ACEOF
19725 cat confdefs.h >>conftest.$ac_ext
19726 cat >>conftest.$ac_ext <<_ACEOF
19727 /* end confdefs.h. */
19728 #ifdef HAVE_GETOPT_H
19729 #include <getopt.h>
19730 #endif
19733 main ()
19735 static struct option ac_aggr;
19736 if (sizeof ac_aggr.name)
19737 return 0;
19739 return 0;
19741 _ACEOF
19742 rm -f conftest.$ac_objext
19743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19744 (eval $ac_compile) 2>conftest.er1
19745 ac_status=$?
19746 grep -v '^ *+' conftest.er1 >conftest.err
19747 rm -f conftest.er1
19748 cat conftest.err >&5
19749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750 (exit $ac_status); } &&
19751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19753 (eval $ac_try) 2>&5
19754 ac_status=$?
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); }; } &&
19757 { ac_try='test -s conftest.$ac_objext'
19758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19759 (eval $ac_try) 2>&5
19760 ac_status=$?
19761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762 (exit $ac_status); }; }; then
19763 ac_cv_member_struct_option_name=yes
19764 else
19765 echo "$as_me: failed program was:" >&5
19766 sed 's/^/| /' conftest.$ac_ext >&5
19768 ac_cv_member_struct_option_name=no
19770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19774 echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
19775 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
19776 if test $ac_cv_member_struct_option_name = yes; then
19778 cat >>confdefs.h <<_ACEOF
19779 #define HAVE_STRUCT_OPTION_NAME 1
19780 _ACEOF
19786 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19787 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
19788 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19789 echo $ECHO_N "(cached) $ECHO_C" >&6
19790 else
19791 cat >conftest.$ac_ext <<_ACEOF
19792 /* confdefs.h. */
19793 _ACEOF
19794 cat confdefs.h >>conftest.$ac_ext
19795 cat >>conftest.$ac_ext <<_ACEOF
19796 /* end confdefs.h. */
19797 $ac_includes_default
19799 main ()
19801 static struct stat ac_aggr;
19802 if (ac_aggr.st_blocks)
19803 return 0;
19805 return 0;
19807 _ACEOF
19808 rm -f conftest.$ac_objext
19809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19810 (eval $ac_compile) 2>conftest.er1
19811 ac_status=$?
19812 grep -v '^ *+' conftest.er1 >conftest.err
19813 rm -f conftest.er1
19814 cat conftest.err >&5
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); } &&
19817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19819 (eval $ac_try) 2>&5
19820 ac_status=$?
19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); }; } &&
19823 { ac_try='test -s conftest.$ac_objext'
19824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19825 (eval $ac_try) 2>&5
19826 ac_status=$?
19827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828 (exit $ac_status); }; }; then
19829 ac_cv_member_struct_stat_st_blocks=yes
19830 else
19831 echo "$as_me: failed program was:" >&5
19832 sed 's/^/| /' conftest.$ac_ext >&5
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 $ac_includes_default
19842 main ()
19844 static struct stat ac_aggr;
19845 if (sizeof ac_aggr.st_blocks)
19846 return 0;
19848 return 0;
19850 _ACEOF
19851 rm -f conftest.$ac_objext
19852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19853 (eval $ac_compile) 2>conftest.er1
19854 ac_status=$?
19855 grep -v '^ *+' conftest.er1 >conftest.err
19856 rm -f conftest.er1
19857 cat conftest.err >&5
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); } &&
19860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19862 (eval $ac_try) 2>&5
19863 ac_status=$?
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); }; } &&
19866 { ac_try='test -s conftest.$ac_objext'
19867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19868 (eval $ac_try) 2>&5
19869 ac_status=$?
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); }; }; then
19872 ac_cv_member_struct_stat_st_blocks=yes
19873 else
19874 echo "$as_me: failed program was:" >&5
19875 sed 's/^/| /' conftest.$ac_ext >&5
19877 ac_cv_member_struct_stat_st_blocks=no
19879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19883 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19884 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
19885 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19887 cat >>confdefs.h <<_ACEOF
19888 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19889 _ACEOF
19896 case $host_cpu in
19897 *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
19898 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
19899 if test "${ac_cv_cpp_def___i386__+set}" = set; then
19900 echo $ECHO_N "(cached) $ECHO_C" >&6
19901 else
19902 cat >conftest.$ac_ext <<_ACEOF
19903 /* confdefs.h. */
19904 _ACEOF
19905 cat confdefs.h >>conftest.$ac_ext
19906 cat >>conftest.$ac_ext <<_ACEOF
19907 /* end confdefs.h. */
19908 #ifndef __i386__
19910 #endif
19911 _ACEOF
19912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19913 $EGREP "yes" >/dev/null 2>&1; then
19914 ac_cv_cpp_def___i386__=yes
19915 else
19916 ac_cv_cpp_def___i386__=no
19918 rm -f conftest*
19921 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
19922 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
19923 if test $ac_cv_cpp_def___i386__ = yes; then
19924 CFLAGS="$CFLAGS -D__i386__"
19925 LINTFLAGS="$LINTFLAGS -D__i386__"
19928 *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
19929 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
19930 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
19931 echo $ECHO_N "(cached) $ECHO_C" >&6
19932 else
19933 cat >conftest.$ac_ext <<_ACEOF
19934 /* confdefs.h. */
19935 _ACEOF
19936 cat confdefs.h >>conftest.$ac_ext
19937 cat >>conftest.$ac_ext <<_ACEOF
19938 /* end confdefs.h. */
19939 #ifndef __ALPHA__
19941 #endif
19942 _ACEOF
19943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19944 $EGREP "yes" >/dev/null 2>&1; then
19945 ac_cv_cpp_def___ALPHA__=yes
19946 else
19947 ac_cv_cpp_def___ALPHA__=no
19949 rm -f conftest*
19952 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
19953 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
19954 if test $ac_cv_cpp_def___ALPHA__ = yes; then
19955 CFLAGS="$CFLAGS -D__ALPHA__"
19956 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
19959 *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
19960 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
19961 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
19962 echo $ECHO_N "(cached) $ECHO_C" >&6
19963 else
19964 cat >conftest.$ac_ext <<_ACEOF
19965 /* confdefs.h. */
19966 _ACEOF
19967 cat confdefs.h >>conftest.$ac_ext
19968 cat >>conftest.$ac_ext <<_ACEOF
19969 /* end confdefs.h. */
19970 #ifndef __sparc__
19972 #endif
19973 _ACEOF
19974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19975 $EGREP "yes" >/dev/null 2>&1; then
19976 ac_cv_cpp_def___sparc__=yes
19977 else
19978 ac_cv_cpp_def___sparc__=no
19980 rm -f conftest*
19983 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
19984 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
19985 if test $ac_cv_cpp_def___sparc__ = yes; then
19986 CFLAGS="$CFLAGS -D__sparc__"
19987 LINTFLAGS="$LINTFLAGS -D__sparc__"
19990 *powerpc*) echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
19991 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
19992 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
19993 echo $ECHO_N "(cached) $ECHO_C" >&6
19994 else
19995 cat >conftest.$ac_ext <<_ACEOF
19996 /* confdefs.h. */
19997 _ACEOF
19998 cat confdefs.h >>conftest.$ac_ext
19999 cat >>conftest.$ac_ext <<_ACEOF
20000 /* end confdefs.h. */
20001 #ifndef __powerpc__
20003 #endif
20004 _ACEOF
20005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20006 $EGREP "yes" >/dev/null 2>&1; then
20007 ac_cv_cpp_def___powerpc__=yes
20008 else
20009 ac_cv_cpp_def___powerpc__=no
20011 rm -f conftest*
20014 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
20015 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
20016 if test $ac_cv_cpp_def___powerpc__ = yes; then
20017 CFLAGS="$CFLAGS -D__powerpc__"
20018 LINTFLAGS="$LINTFLAGS -D__powerpc__"
20021 esac
20023 case $host_vendor in
20024 *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
20025 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
20026 if test "${ac_cv_cpp_def___sun__+set}" = set; then
20027 echo $ECHO_N "(cached) $ECHO_C" >&6
20028 else
20029 cat >conftest.$ac_ext <<_ACEOF
20030 /* confdefs.h. */
20031 _ACEOF
20032 cat confdefs.h >>conftest.$ac_ext
20033 cat >>conftest.$ac_ext <<_ACEOF
20034 /* end confdefs.h. */
20035 #ifndef __sun__
20037 #endif
20038 _ACEOF
20039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20040 $EGREP "yes" >/dev/null 2>&1; then
20041 ac_cv_cpp_def___sun__=yes
20042 else
20043 ac_cv_cpp_def___sun__=no
20045 rm -f conftest*
20048 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
20049 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
20050 if test $ac_cv_cpp_def___sun__ = yes; then
20051 CFLAGS="$CFLAGS -D__sun__"
20052 LINTFLAGS="$LINTFLAGS -D__sun__"
20055 esac
20061 ac_config_commands="$ac_config_commands controls"
20063 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
20065 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
20067 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
20069 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
20071 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
20073 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
20075 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
20077 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
20079 ac_config_commands="$ac_config_commands dlls/kernel/messages"
20081 ac_config_commands="$ac_config_commands dlls/user/dde"
20083 ac_config_commands="$ac_config_commands dlls/user/resources"
20085 ac_config_commands="$ac_config_commands dlls/wineps/data"
20087 ac_config_commands="$ac_config_commands include/wine"
20089 ac_config_commands="$ac_config_commands misc"
20091 ac_config_commands="$ac_config_commands objects"
20093 ac_config_commands="$ac_config_commands programs/regedit/tests"
20095 ac_config_commands="$ac_config_commands windows"
20098 MAKE_RULES=Make.rules
20101 MAKE_DLL_RULES=dlls/Makedll.rules
20104 MAKE_TEST_RULES=dlls/Maketest.rules
20107 MAKE_LIB_RULES=libs/Makelib.rules
20110 MAKE_PROG_RULES=programs/Makeprog.rules
20113 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/d3drm/Makefile dlls/d3dx8/Makefile dlls/d3dxof/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/dpnet/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/dswave/Makefile dlls/dxdiagn/Makefile dlls/dxerr8/Makefile dlls/dxerr9/Makefile dlls/dxguid/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/hhctrl.ocx/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/mapi32/tests/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/msacm/tests/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/msvcrtd/tests/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/psapi/tests/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/vdmdbg/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"
20116 cat >confcache <<\_ACEOF
20117 # This file is a shell script that caches the results of configure
20118 # tests run on this system so they can be shared between configure
20119 # scripts and configure runs, see configure's option --config-cache.
20120 # It is not useful on other systems. If it contains results you don't
20121 # want to keep, you may remove or edit it.
20123 # config.status only pays attention to the cache file if you give it
20124 # the --recheck option to rerun configure.
20126 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20127 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20128 # following values.
20130 _ACEOF
20132 # The following way of writing the cache mishandles newlines in values,
20133 # but we know of no workaround that is simple, portable, and efficient.
20134 # So, don't put newlines in cache variables' values.
20135 # Ultrix sh set writes to stderr and can't be redirected directly,
20136 # and sets the high bit in the cache file unless we assign to the vars.
20138 (set) 2>&1 |
20139 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20140 *ac_space=\ *)
20141 # `set' does not quote correctly, so add quotes (double-quote
20142 # substitution turns \\\\ into \\, and sed turns \\ into \).
20143 sed -n \
20144 "s/'/'\\\\''/g;
20145 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20148 # `set' quotes correctly as required by POSIX, so do not add quotes.
20149 sed -n \
20150 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20152 esac;
20154 sed '
20155 t clear
20156 : clear
20157 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20158 t end
20159 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20160 : end' >>confcache
20161 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20162 if test -w $cache_file; then
20163 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20164 cat confcache >$cache_file
20165 else
20166 echo "not updating unwritable cache $cache_file"
20169 rm -f confcache
20171 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20172 # Let make expand exec_prefix.
20173 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20175 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20176 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20177 # trailing colons and then remove the whole line if VPATH becomes empty
20178 # (actually we leave an empty line to preserve line numbers).
20179 if test "x$srcdir" = x.; then
20180 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20181 s/:*\$(srcdir):*/:/;
20182 s/:*\${srcdir}:*/:/;
20183 s/:*@srcdir@:*/:/;
20184 s/^\([^=]*=[ ]*\):*/\1/;
20185 s/:*$//;
20186 s/^[^=]*=[ ]*$//;
20190 DEFS=-DHAVE_CONFIG_H
20192 ac_libobjs=
20193 ac_ltlibobjs=
20194 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20195 # 1. Remove the extension, and $U if already installed.
20196 ac_i=`echo "$ac_i" |
20197 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20198 # 2. Add them.
20199 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20200 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20201 done
20202 LIBOBJS=$ac_libobjs
20204 LTLIBOBJS=$ac_ltlibobjs
20208 : ${CONFIG_STATUS=./config.status}
20209 ac_clean_files_save=$ac_clean_files
20210 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20211 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20212 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20213 cat >$CONFIG_STATUS <<_ACEOF
20214 #! $SHELL
20215 # Generated by $as_me.
20216 # Run this file to recreate the current configuration.
20217 # Compiler output produced by configure, useful for debugging
20218 # configure, is in config.log if it exists.
20220 debug=false
20221 ac_cs_recheck=false
20222 ac_cs_silent=false
20223 SHELL=\${CONFIG_SHELL-$SHELL}
20224 _ACEOF
20226 cat >>$CONFIG_STATUS <<\_ACEOF
20227 ## --------------------- ##
20228 ## M4sh Initialization. ##
20229 ## --------------------- ##
20231 # Be Bourne compatible
20232 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20233 emulate sh
20234 NULLCMD=:
20235 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20236 # is contrary to our usage. Disable this feature.
20237 alias -g '${1+"$@"}'='"$@"'
20238 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20239 set -o posix
20241 DUALCASE=1; export DUALCASE # for MKS sh
20243 # Support unset when possible.
20244 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20245 as_unset=unset
20246 else
20247 as_unset=false
20251 # Work around bugs in pre-3.0 UWIN ksh.
20252 $as_unset ENV MAIL MAILPATH
20253 PS1='$ '
20254 PS2='> '
20255 PS4='+ '
20257 # NLS nuisances.
20258 for as_var in \
20259 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20260 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20261 LC_TELEPHONE LC_TIME
20263 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20264 eval $as_var=C; export $as_var
20265 else
20266 $as_unset $as_var
20268 done
20270 # Required to use basename.
20271 if expr a : '\(a\)' >/dev/null 2>&1; then
20272 as_expr=expr
20273 else
20274 as_expr=false
20277 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20278 as_basename=basename
20279 else
20280 as_basename=false
20284 # Name of the executable.
20285 as_me=`$as_basename "$0" ||
20286 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20287 X"$0" : 'X\(//\)$' \| \
20288 X"$0" : 'X\(/\)$' \| \
20289 . : '\(.\)' 2>/dev/null ||
20290 echo X/"$0" |
20291 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20292 /^X\/\(\/\/\)$/{ s//\1/; q; }
20293 /^X\/\(\/\).*/{ s//\1/; q; }
20294 s/.*/./; q'`
20297 # PATH needs CR, and LINENO needs CR and PATH.
20298 # Avoid depending upon Character Ranges.
20299 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20300 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20301 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20302 as_cr_digits='0123456789'
20303 as_cr_alnum=$as_cr_Letters$as_cr_digits
20305 # The user is always right.
20306 if test "${PATH_SEPARATOR+set}" != set; then
20307 echo "#! /bin/sh" >conf$$.sh
20308 echo "exit 0" >>conf$$.sh
20309 chmod +x conf$$.sh
20310 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20311 PATH_SEPARATOR=';'
20312 else
20313 PATH_SEPARATOR=:
20315 rm -f conf$$.sh
20319 as_lineno_1=$LINENO
20320 as_lineno_2=$LINENO
20321 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20322 test "x$as_lineno_1" != "x$as_lineno_2" &&
20323 test "x$as_lineno_3" = "x$as_lineno_2" || {
20324 # Find who we are. Look in the path if we contain no path at all
20325 # relative or not.
20326 case $0 in
20327 *[\\/]* ) as_myself=$0 ;;
20328 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20329 for as_dir in $PATH
20331 IFS=$as_save_IFS
20332 test -z "$as_dir" && as_dir=.
20333 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20334 done
20337 esac
20338 # We did not find ourselves, most probably we were run as `sh COMMAND'
20339 # in which case we are not to be found in the path.
20340 if test "x$as_myself" = x; then
20341 as_myself=$0
20343 if test ! -f "$as_myself"; then
20344 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20345 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20346 { (exit 1); exit 1; }; }
20348 case $CONFIG_SHELL in
20350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20351 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20353 IFS=$as_save_IFS
20354 test -z "$as_dir" && as_dir=.
20355 for as_base in sh bash ksh sh5; do
20356 case $as_dir in
20358 if ("$as_dir/$as_base" -c '
20359 as_lineno_1=$LINENO
20360 as_lineno_2=$LINENO
20361 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20362 test "x$as_lineno_1" != "x$as_lineno_2" &&
20363 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20364 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20365 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20366 CONFIG_SHELL=$as_dir/$as_base
20367 export CONFIG_SHELL
20368 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20369 fi;;
20370 esac
20371 done
20372 done
20374 esac
20376 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20377 # uniformly replaced by the line number. The first 'sed' inserts a
20378 # line-number line before each line; the second 'sed' does the real
20379 # work. The second script uses 'N' to pair each line-number line
20380 # with the numbered line, and appends trailing '-' during
20381 # substitution so that $LINENO is not a special case at line end.
20382 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20383 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20384 sed '=' <$as_myself |
20385 sed '
20387 s,$,-,
20388 : loop
20389 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20390 t loop
20391 s,-$,,
20392 s,^['$as_cr_digits']*\n,,
20393 ' >$as_me.lineno &&
20394 chmod +x $as_me.lineno ||
20395 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20396 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20397 { (exit 1); exit 1; }; }
20399 # Don't try to exec as it changes $[0], causing all sort of problems
20400 # (the dirname of $[0] is not the place where we might find the
20401 # original and so on. Autoconf is especially sensible to this).
20402 . ./$as_me.lineno
20403 # Exit status is that of the last command.
20404 exit
20408 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20409 *c*,-n*) ECHO_N= ECHO_C='
20410 ' ECHO_T=' ' ;;
20411 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20412 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20413 esac
20415 if expr a : '\(a\)' >/dev/null 2>&1; then
20416 as_expr=expr
20417 else
20418 as_expr=false
20421 rm -f conf$$ conf$$.exe conf$$.file
20422 echo >conf$$.file
20423 if ln -s conf$$.file conf$$ 2>/dev/null; then
20424 # We could just check for DJGPP; but this test a) works b) is more generic
20425 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20426 if test -f conf$$.exe; then
20427 # Don't use ln at all; we don't have any links
20428 as_ln_s='cp -p'
20429 else
20430 as_ln_s='ln -s'
20432 elif ln conf$$.file conf$$ 2>/dev/null; then
20433 as_ln_s=ln
20434 else
20435 as_ln_s='cp -p'
20437 rm -f conf$$ conf$$.exe conf$$.file
20439 if mkdir -p . 2>/dev/null; then
20440 as_mkdir_p=:
20441 else
20442 test -d ./-p && rmdir ./-p
20443 as_mkdir_p=false
20446 as_executable_p="test -f"
20448 # Sed expression to map a string onto a valid CPP name.
20449 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20451 # Sed expression to map a string onto a valid variable name.
20452 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20455 # IFS
20456 # We need space, tab and new line, in precisely that order.
20457 as_nl='
20459 IFS=" $as_nl"
20461 # CDPATH.
20462 $as_unset CDPATH
20464 exec 6>&1
20466 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20467 # report actual input values of CONFIG_FILES etc. instead of their
20468 # values after options handling. Logging --version etc. is OK.
20469 exec 5>>config.log
20471 echo
20472 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20473 ## Running $as_me. ##
20474 _ASBOX
20475 } >&5
20476 cat >&5 <<_CSEOF
20478 This file was extended by Wine $as_me 20040615, which was
20479 generated by GNU Autoconf 2.59. Invocation command line was
20481 CONFIG_FILES = $CONFIG_FILES
20482 CONFIG_HEADERS = $CONFIG_HEADERS
20483 CONFIG_LINKS = $CONFIG_LINKS
20484 CONFIG_COMMANDS = $CONFIG_COMMANDS
20485 $ $0 $@
20487 _CSEOF
20488 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20489 echo >&5
20490 _ACEOF
20492 # Files that config.status was made for.
20493 if test -n "$ac_config_files"; then
20494 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20497 if test -n "$ac_config_headers"; then
20498 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20501 if test -n "$ac_config_links"; then
20502 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20505 if test -n "$ac_config_commands"; then
20506 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20509 cat >>$CONFIG_STATUS <<\_ACEOF
20511 ac_cs_usage="\
20512 \`$as_me' instantiates files from templates according to the
20513 current configuration.
20515 Usage: $0 [OPTIONS] [FILE]...
20517 -h, --help print this help, then exit
20518 -V, --version print version number, then exit
20519 -q, --quiet do not print progress messages
20520 -d, --debug don't remove temporary files
20521 --recheck update $as_me by reconfiguring in the same conditions
20522 --file=FILE[:TEMPLATE]
20523 instantiate the configuration file FILE
20524 --header=FILE[:TEMPLATE]
20525 instantiate the configuration header FILE
20527 Configuration files:
20528 $config_files
20530 Configuration headers:
20531 $config_headers
20533 Configuration commands:
20534 $config_commands
20536 Report bugs to <bug-autoconf@gnu.org>."
20537 _ACEOF
20539 cat >>$CONFIG_STATUS <<_ACEOF
20540 ac_cs_version="\\
20541 Wine config.status 20040615
20542 configured by $0, generated by GNU Autoconf 2.59,
20543 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20545 Copyright (C) 2003 Free Software Foundation, Inc.
20546 This config.status script is free software; the Free Software Foundation
20547 gives unlimited permission to copy, distribute and modify it."
20548 srcdir=$srcdir
20549 INSTALL="$INSTALL"
20550 _ACEOF
20552 cat >>$CONFIG_STATUS <<\_ACEOF
20553 # If no file are specified by the user, then we need to provide default
20554 # value. By we need to know if files were specified by the user.
20555 ac_need_defaults=:
20556 while test $# != 0
20558 case $1 in
20559 --*=*)
20560 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20561 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20562 ac_shift=:
20565 ac_option=$1
20566 ac_optarg=$2
20567 ac_shift=shift
20569 *) # This is not an option, so the user has probably given explicit
20570 # arguments.
20571 ac_option=$1
20572 ac_need_defaults=false;;
20573 esac
20575 case $ac_option in
20576 # Handling of the options.
20577 _ACEOF
20578 cat >>$CONFIG_STATUS <<\_ACEOF
20579 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20580 ac_cs_recheck=: ;;
20581 --version | --vers* | -V )
20582 echo "$ac_cs_version"; exit 0 ;;
20583 --he | --h)
20584 # Conflict between --help and --header
20585 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20586 Try \`$0 --help' for more information." >&5
20587 echo "$as_me: error: ambiguous option: $1
20588 Try \`$0 --help' for more information." >&2;}
20589 { (exit 1); exit 1; }; };;
20590 --help | --hel | -h )
20591 echo "$ac_cs_usage"; exit 0 ;;
20592 --debug | --d* | -d )
20593 debug=: ;;
20594 --file | --fil | --fi | --f )
20595 $ac_shift
20596 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20597 ac_need_defaults=false;;
20598 --header | --heade | --head | --hea )
20599 $ac_shift
20600 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20601 ac_need_defaults=false;;
20602 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20603 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20604 ac_cs_silent=: ;;
20606 # This is an error.
20607 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20608 Try \`$0 --help' for more information." >&5
20609 echo "$as_me: error: unrecognized option: $1
20610 Try \`$0 --help' for more information." >&2;}
20611 { (exit 1); exit 1; }; } ;;
20613 *) ac_config_targets="$ac_config_targets $1" ;;
20615 esac
20616 shift
20617 done
20619 ac_configure_extra_args=
20621 if $ac_cs_silent; then
20622 exec 6>/dev/null
20623 ac_configure_extra_args="$ac_configure_extra_args --silent"
20626 _ACEOF
20627 cat >>$CONFIG_STATUS <<_ACEOF
20628 if \$ac_cs_recheck; then
20629 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20630 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20633 _ACEOF
20639 cat >>$CONFIG_STATUS <<\_ACEOF
20640 for ac_config_target in $ac_config_targets
20642 case "$ac_config_target" in
20643 # Handling of arguments.
20644 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
20645 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
20646 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
20647 "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
20648 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
20649 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20650 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
20651 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
20652 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
20653 "dlls/amstream/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
20654 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
20655 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
20656 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
20657 "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
20658 "dlls/cards/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
20659 "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
20660 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
20661 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
20662 "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
20663 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
20664 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
20665 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
20666 "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
20667 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
20668 "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
20669 "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
20670 "dlls/d3drm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
20671 "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
20672 "dlls/d3dxof/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
20673 "dlls/dbghelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
20674 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
20675 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
20676 "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
20677 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
20678 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
20679 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
20680 "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
20681 "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
20682 "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
20683 "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
20684 "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
20685 "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
20686 "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
20687 "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
20688 "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
20689 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
20690 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
20691 "dlls/dpnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
20692 "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
20693 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
20694 "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
20695 "dlls/dswave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
20696 "dlls/dxdiagn/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
20697 "dlls/dxerr8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
20698 "dlls/dxerr9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
20699 "dlls/dxguid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
20700 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
20701 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
20702 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
20703 "dlls/glut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
20704 "dlls/hhctrl.ocx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
20705 "dlls/iccvid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
20706 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
20707 "dlls/ifsmgr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
20708 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
20709 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
20710 "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
20711 "dlls/iphlpapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
20712 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
20713 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
20714 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
20715 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
20716 "dlls/mapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
20717 "dlls/mmdevldr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
20718 "dlls/monodebg.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
20719 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
20720 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
20721 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
20722 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
20723 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
20724 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
20725 "dlls/msacm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/tests/Makefile" ;;
20726 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
20727 "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
20728 "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
20729 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
20730 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
20731 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
20732 "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
20733 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
20734 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
20735 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
20736 "dlls/msvcrt40/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
20737 "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
20738 "dlls/msvcrtd/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
20739 "dlls/msvidc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
20740 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
20741 "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
20742 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
20743 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
20744 "dlls/newdev/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
20745 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
20746 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
20747 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
20748 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
20749 "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
20750 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
20751 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
20752 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
20753 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
20754 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
20755 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
20756 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
20757 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
20758 "dlls/psapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
20759 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
20760 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
20761 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
20762 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
20763 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
20764 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
20765 "dlls/rsabase/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
20766 "dlls/secur32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
20767 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
20768 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
20769 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
20770 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
20771 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
20772 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
20773 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
20774 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
20775 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
20776 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
20777 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
20778 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
20779 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
20780 "dlls/unicows/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
20781 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
20782 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
20783 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
20784 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
20785 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
20786 "dlls/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
20787 "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
20788 "dlls/vdhcp.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
20789 "dlls/vdmdbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
20790 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
20791 "dlls/version/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
20792 "dlls/vmm.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
20793 "dlls/vnbt.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
20794 "dlls/vnetbios.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
20795 "dlls/vtdapi.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
20796 "dlls/vwin32.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
20797 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
20798 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
20799 "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
20800 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
20801 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
20802 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
20803 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
20804 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
20805 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
20806 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
20807 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
20808 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
20809 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
20810 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
20811 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
20812 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
20813 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
20814 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
20815 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
20816 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
20817 "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
20818 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
20819 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
20820 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
20821 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
20822 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
20823 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
20824 "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
20825 "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
20826 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
20827 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
20828 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
20829 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
20830 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
20831 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20832 "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
20833 "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
20834 "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
20835 "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
20836 "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
20837 "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
20838 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
20839 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
20840 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
20841 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
20842 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
20843 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
20844 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
20845 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
20846 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
20847 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
20848 "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
20849 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
20850 "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
20851 "programs/taskmgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
20852 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
20853 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
20854 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
20855 "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
20856 "programs/winebrowser/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
20857 "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
20858 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
20859 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
20860 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
20861 "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
20862 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
20863 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
20864 "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
20865 "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
20866 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
20867 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
20868 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
20869 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
20870 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
20871 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
20872 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
20873 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
20874 "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
20875 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
20876 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
20877 "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
20878 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
20879 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
20880 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
20881 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
20882 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
20883 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
20884 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
20885 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
20886 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
20887 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
20888 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
20889 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
20890 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
20891 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
20892 "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
20893 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
20894 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
20895 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
20896 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20897 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20898 { (exit 1); exit 1; }; };;
20899 esac
20900 done
20902 # If the user did not use the arguments to specify the items to instantiate,
20903 # then the envvar interface is used. Set only those that are not.
20904 # We use the long form for the default assignment because of an extremely
20905 # bizarre bug on SunOS 4.1.3.
20906 if $ac_need_defaults; then
20907 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20908 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20909 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20912 # Have a temporary directory for convenience. Make it in the build tree
20913 # simply because there is no reason to put it here, and in addition,
20914 # creating and moving files from /tmp can sometimes cause problems.
20915 # Create a temporary directory, and hook for its removal unless debugging.
20916 $debug ||
20918 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20919 trap '{ (exit 1); exit 1; }' 1 2 13 15
20922 # Create a (secure) tmp directory for tmp files.
20925 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20926 test -n "$tmp" && test -d "$tmp"
20927 } ||
20929 tmp=./confstat$$-$RANDOM
20930 (umask 077 && mkdir $tmp)
20931 } ||
20933 echo "$me: cannot create a temporary directory in ." >&2
20934 { (exit 1); exit 1; }
20937 _ACEOF
20939 cat >>$CONFIG_STATUS <<_ACEOF
20942 # CONFIG_FILES section.
20945 # No need to generate the scripts if there are no CONFIG_FILES.
20946 # This happens for instance when ./config.status config.h
20947 if test -n "\$CONFIG_FILES"; then
20948 # Protect against being on the right side of a sed subst in config.status.
20949 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20950 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20951 s,@SHELL@,$SHELL,;t t
20952 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20953 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20954 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20955 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20956 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20957 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20958 s,@exec_prefix@,$exec_prefix,;t t
20959 s,@prefix@,$prefix,;t t
20960 s,@program_transform_name@,$program_transform_name,;t t
20961 s,@bindir@,$bindir,;t t
20962 s,@sbindir@,$sbindir,;t t
20963 s,@libexecdir@,$libexecdir,;t t
20964 s,@datadir@,$datadir,;t t
20965 s,@sysconfdir@,$sysconfdir,;t t
20966 s,@sharedstatedir@,$sharedstatedir,;t t
20967 s,@localstatedir@,$localstatedir,;t t
20968 s,@libdir@,$libdir,;t t
20969 s,@includedir@,$includedir,;t t
20970 s,@oldincludedir@,$oldincludedir,;t t
20971 s,@infodir@,$infodir,;t t
20972 s,@mandir@,$mandir,;t t
20973 s,@build_alias@,$build_alias,;t t
20974 s,@host_alias@,$host_alias,;t t
20975 s,@target_alias@,$target_alias,;t t
20976 s,@DEFS@,$DEFS,;t t
20977 s,@ECHO_C@,$ECHO_C,;t t
20978 s,@ECHO_N@,$ECHO_N,;t t
20979 s,@ECHO_T@,$ECHO_T,;t t
20980 s,@LIBS@,$LIBS,;t t
20981 s,@WIN16_FILES@,$WIN16_FILES,;t t
20982 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
20983 s,@build@,$build,;t t
20984 s,@build_cpu@,$build_cpu,;t t
20985 s,@build_vendor@,$build_vendor,;t t
20986 s,@build_os@,$build_os,;t t
20987 s,@host@,$host,;t t
20988 s,@host_cpu@,$host_cpu,;t t
20989 s,@host_vendor@,$host_vendor,;t t
20990 s,@host_os@,$host_os,;t t
20991 s,@SET_MAKE@,$SET_MAKE,;t t
20992 s,@CC@,$CC,;t t
20993 s,@CFLAGS@,$CFLAGS,;t t
20994 s,@LDFLAGS@,$LDFLAGS,;t t
20995 s,@CPPFLAGS@,$CPPFLAGS,;t t
20996 s,@ac_ct_CC@,$ac_ct_CC,;t t
20997 s,@EXEEXT@,$EXEEXT,;t t
20998 s,@OBJEXT@,$OBJEXT,;t t
20999 s,@CXX@,$CXX,;t t
21000 s,@CXXFLAGS@,$CXXFLAGS,;t t
21001 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21002 s,@CPPBIN@,$CPPBIN,;t t
21003 s,@ac_ct_CPPBIN@,$ac_ct_CPPBIN,;t t
21004 s,@TOOLSDIR@,$TOOLSDIR,;t t
21005 s,@CPP@,$CPP,;t t
21006 s,@X_CFLAGS@,$X_CFLAGS,;t t
21007 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
21008 s,@X_LIBS@,$X_LIBS,;t t
21009 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
21010 s,@LEX@,$LEX,;t t
21011 s,@LEXLIB@,$LEXLIB,;t t
21012 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
21013 s,@XLEX@,$XLEX,;t t
21014 s,@BISON@,$BISON,;t t
21015 s,@AS@,$AS,;t t
21016 s,@ac_ct_AS@,$ac_ct_AS,;t t
21017 s,@LD@,$LD,;t t
21018 s,@ac_ct_LD@,$ac_ct_LD,;t t
21019 s,@AR@,$AR,;t t
21020 s,@ac_ct_AR@,$ac_ct_AR,;t t
21021 s,@RANLIB@,$RANLIB,;t t
21022 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21023 s,@STRIP@,$STRIP,;t t
21024 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21025 s,@WINDRES@,$WINDRES,;t t
21026 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
21027 s,@LN_S@,$LN_S,;t t
21028 s,@LN@,$LN,;t t
21029 s,@LDCONFIG@,$LDCONFIG,;t t
21030 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21031 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21032 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21033 s,@LINT@,$LINT,;t t
21034 s,@LINTFLAGS@,$LINTFLAGS,;t t
21035 s,@DB2HTML@,$DB2HTML,;t t
21036 s,@DB2PDF@,$DB2PDF,;t t
21037 s,@DB2PS@,$DB2PS,;t t
21038 s,@DB2TXT@,$DB2TXT,;t t
21039 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
21040 s,@JPEGLIB@,$JPEGLIB,;t t
21041 s,@EGREP@,$EGREP,;t t
21042 s,@GIFLIB@,$GIFLIB,;t t
21043 s,@XLIB@,$XLIB,;t t
21044 s,@XFILES@,$XFILES,;t t
21045 s,@OPENGLFILES@,$OPENGLFILES,;t t
21046 s,@GLU32FILES@,$GLU32FILES,;t t
21047 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
21048 s,@GLUT_LIBS@,$GLUT_LIBS,;t t
21049 s,@GLUT32FILES@,$GLUT32FILES,;t t
21050 s,@NASLIBS@,$NASLIBS,;t t
21051 s,@CURSESLIBS@,$CURSESLIBS,;t t
21052 s,@sane_devel@,$sane_devel,;t t
21053 s,@SANELIBS@,$SANELIBS,;t t
21054 s,@SANEINCL@,$SANEINCL,;t t
21055 s,@ICULIBS@,$ICULIBS,;t t
21056 s,@ft_devel@,$ft_devel,;t t
21057 s,@ft_devel2@,$ft_devel2,;t t
21058 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
21059 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
21060 s,@ARTSLIBS@,$ARTSLIBS,;t t
21061 s,@ARTSINCL@,$ARTSINCL,;t t
21062 s,@ALSALIBS@,$ALSALIBS,;t t
21063 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
21064 s,@CAPI4LINUXLIBS@,$CAPI4LINUXLIBS,;t t
21065 s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
21066 s,@DLLEXT@,$DLLEXT,;t t
21067 s,@DLLFLAGS@,$DLLFLAGS,;t t
21068 s,@DLLIBS@,$DLLIBS,;t t
21069 s,@LDSHARED@,$LDSHARED,;t t
21070 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
21071 s,@LIBEXT@,$LIBEXT,;t t
21072 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
21073 s,@DLLTOOL@,$DLLTOOL,;t t
21074 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
21075 s,@DLLWRAP@,$DLLWRAP,;t t
21076 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
21077 s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
21078 s,@CROSSTEST@,$CROSSTEST,;t t
21079 s,@CROSSCC@,$CROSSCC,;t t
21080 s,@CROSSWINDRES@,$CROSSWINDRES,;t t
21081 s,@LDPATH@,$LDPATH,;t t
21082 s,@CRTLIBS@,$CRTLIBS,;t t
21083 s,@WINE_BINARIES@,$WINE_BINARIES,;t t
21084 s,@MAIN_BINARY@,$MAIN_BINARY,;t t
21085 s,@LDD@,$LDD,;t t
21086 s,@ALLOCA@,$ALLOCA,;t t
21087 s,@LIBOBJS@,$LIBOBJS,;t t
21088 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21089 /@MAKE_RULES@/r $MAKE_RULES
21090 s,@MAKE_RULES@,,;t t
21091 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
21092 s,@MAKE_DLL_RULES@,,;t t
21093 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
21094 s,@MAKE_TEST_RULES@,,;t t
21095 /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
21096 s,@MAKE_LIB_RULES@,,;t t
21097 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
21098 s,@MAKE_PROG_RULES@,,;t t
21099 CEOF
21101 _ACEOF
21103 cat >>$CONFIG_STATUS <<\_ACEOF
21104 # Split the substitutions into bite-sized pieces for seds with
21105 # small command number limits, like on Digital OSF/1 and HP-UX.
21106 ac_max_sed_lines=48
21107 ac_sed_frag=1 # Number of current file.
21108 ac_beg=1 # First line for current file.
21109 ac_end=$ac_max_sed_lines # Line after last line for current file.
21110 ac_more_lines=:
21111 ac_sed_cmds=
21112 while $ac_more_lines; do
21113 if test $ac_beg -gt 1; then
21114 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21115 else
21116 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21118 if test ! -s $tmp/subs.frag; then
21119 ac_more_lines=false
21120 else
21121 # The purpose of the label and of the branching condition is to
21122 # speed up the sed processing (if there are no `@' at all, there
21123 # is no need to browse any of the substitutions).
21124 # These are the two extra sed commands mentioned above.
21125 (echo ':t
21126 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21127 if test -z "$ac_sed_cmds"; then
21128 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21129 else
21130 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21132 ac_sed_frag=`expr $ac_sed_frag + 1`
21133 ac_beg=$ac_end
21134 ac_end=`expr $ac_end + $ac_max_sed_lines`
21136 done
21137 if test -z "$ac_sed_cmds"; then
21138 ac_sed_cmds=cat
21140 fi # test -n "$CONFIG_FILES"
21142 _ACEOF
21143 cat >>$CONFIG_STATUS <<\_ACEOF
21144 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21145 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21146 case $ac_file in
21147 - | *:- | *:-:* ) # input from stdin
21148 cat >$tmp/stdin
21149 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21150 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21151 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21152 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21153 * ) ac_file_in=$ac_file.in ;;
21154 esac
21156 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21157 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21158 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21159 X"$ac_file" : 'X\(//\)[^/]' \| \
21160 X"$ac_file" : 'X\(//\)$' \| \
21161 X"$ac_file" : 'X\(/\)' \| \
21162 . : '\(.\)' 2>/dev/null ||
21163 echo X"$ac_file" |
21164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21165 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21166 /^X\(\/\/\)$/{ s//\1/; q; }
21167 /^X\(\/\).*/{ s//\1/; q; }
21168 s/.*/./; q'`
21169 { if $as_mkdir_p; then
21170 mkdir -p "$ac_dir"
21171 else
21172 as_dir="$ac_dir"
21173 as_dirs=
21174 while test ! -d "$as_dir"; do
21175 as_dirs="$as_dir $as_dirs"
21176 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21177 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21178 X"$as_dir" : 'X\(//\)[^/]' \| \
21179 X"$as_dir" : 'X\(//\)$' \| \
21180 X"$as_dir" : 'X\(/\)' \| \
21181 . : '\(.\)' 2>/dev/null ||
21182 echo X"$as_dir" |
21183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21184 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21185 /^X\(\/\/\)$/{ s//\1/; q; }
21186 /^X\(\/\).*/{ s//\1/; q; }
21187 s/.*/./; q'`
21188 done
21189 test ! -n "$as_dirs" || mkdir $as_dirs
21190 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21191 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21192 { (exit 1); exit 1; }; }; }
21194 ac_builddir=.
21196 if test "$ac_dir" != .; then
21197 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21198 # A "../" for each directory in $ac_dir_suffix.
21199 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21200 else
21201 ac_dir_suffix= ac_top_builddir=
21204 case $srcdir in
21205 .) # No --srcdir option. We are building in place.
21206 ac_srcdir=.
21207 if test -z "$ac_top_builddir"; then
21208 ac_top_srcdir=.
21209 else
21210 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21211 fi ;;
21212 [\\/]* | ?:[\\/]* ) # Absolute path.
21213 ac_srcdir=$srcdir$ac_dir_suffix;
21214 ac_top_srcdir=$srcdir ;;
21215 *) # Relative path.
21216 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21217 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21218 esac
21220 # Do not use `cd foo && pwd` to compute absolute paths, because
21221 # the directories may not exist.
21222 case `pwd` in
21223 .) ac_abs_builddir="$ac_dir";;
21225 case "$ac_dir" in
21226 .) ac_abs_builddir=`pwd`;;
21227 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21228 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21229 esac;;
21230 esac
21231 case $ac_abs_builddir in
21232 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21234 case ${ac_top_builddir}. in
21235 .) ac_abs_top_builddir=$ac_abs_builddir;;
21236 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21237 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21238 esac;;
21239 esac
21240 case $ac_abs_builddir in
21241 .) ac_abs_srcdir=$ac_srcdir;;
21243 case $ac_srcdir in
21244 .) ac_abs_srcdir=$ac_abs_builddir;;
21245 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21246 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21247 esac;;
21248 esac
21249 case $ac_abs_builddir in
21250 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21252 case $ac_top_srcdir in
21253 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21254 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21255 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21256 esac;;
21257 esac
21260 case $INSTALL in
21261 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21262 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21263 esac
21265 # Let's still pretend it is `configure' which instantiates (i.e., don't
21266 # use $as_me), people would be surprised to read:
21267 # /* config.h. Generated by config.status. */
21268 if test x"$ac_file" = x-; then
21269 configure_input=
21270 else
21271 configure_input="$ac_file. "
21273 configure_input=$configure_input"Generated from `echo $ac_file_in |
21274 sed 's,.*/,,'` by configure."
21276 # First look for the input files in the build tree, otherwise in the
21277 # src tree.
21278 ac_file_inputs=`IFS=:
21279 for f in $ac_file_in; do
21280 case $f in
21281 -) echo $tmp/stdin ;;
21282 [\\/$]*)
21283 # Absolute (can't be DOS-style, as IFS=:)
21284 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21285 echo "$as_me: error: cannot find input file: $f" >&2;}
21286 { (exit 1); exit 1; }; }
21287 echo "$f";;
21288 *) # Relative
21289 if test -f "$f"; then
21290 # Build tree
21291 echo "$f"
21292 elif test -f "$srcdir/$f"; then
21293 # Source tree
21294 echo "$srcdir/$f"
21295 else
21296 # /dev/null tree
21297 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21298 echo "$as_me: error: cannot find input file: $f" >&2;}
21299 { (exit 1); exit 1; }; }
21300 fi;;
21301 esac
21302 done` || { (exit 1); exit 1; }
21304 if test x"$ac_file" != x-; then
21305 { echo "$as_me:$LINENO: creating $ac_file" >&5
21306 echo "$as_me: creating $ac_file" >&6;}
21307 rm -f "$ac_file"
21309 _ACEOF
21310 cat >>$CONFIG_STATUS <<_ACEOF
21311 sed "$ac_vpsub
21312 $extrasub
21313 _ACEOF
21314 cat >>$CONFIG_STATUS <<\_ACEOF
21316 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21317 s,@configure_input@,$configure_input,;t t
21318 s,@srcdir@,$ac_srcdir,;t t
21319 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21320 s,@top_srcdir@,$ac_top_srcdir,;t t
21321 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21322 s,@builddir@,$ac_builddir,;t t
21323 s,@abs_builddir@,$ac_abs_builddir,;t t
21324 s,@top_builddir@,$ac_top_builddir,;t t
21325 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21326 s,@INSTALL@,$ac_INSTALL,;t t
21327 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21328 rm -f $tmp/stdin
21329 if test x"$ac_file" != x-; then
21330 mv $tmp/out $ac_file
21331 else
21332 cat $tmp/out
21333 rm -f $tmp/out
21336 done
21337 _ACEOF
21338 cat >>$CONFIG_STATUS <<\_ACEOF
21341 # CONFIG_HEADER section.
21344 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21345 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21347 # ac_d sets the value in "#define NAME VALUE" lines.
21348 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21349 ac_dB='[ ].*$,\1#\2'
21350 ac_dC=' '
21351 ac_dD=',;t'
21352 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21353 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21354 ac_uB='$,\1#\2define\3'
21355 ac_uC=' '
21356 ac_uD=',;t'
21358 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21359 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21360 case $ac_file in
21361 - | *:- | *:-:* ) # input from stdin
21362 cat >$tmp/stdin
21363 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21364 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21365 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21366 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21367 * ) ac_file_in=$ac_file.in ;;
21368 esac
21370 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21371 echo "$as_me: creating $ac_file" >&6;}
21373 # First look for the input files in the build tree, otherwise in the
21374 # src tree.
21375 ac_file_inputs=`IFS=:
21376 for f in $ac_file_in; do
21377 case $f in
21378 -) echo $tmp/stdin ;;
21379 [\\/$]*)
21380 # Absolute (can't be DOS-style, as IFS=:)
21381 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21382 echo "$as_me: error: cannot find input file: $f" >&2;}
21383 { (exit 1); exit 1; }; }
21384 # Do quote $f, to prevent DOS paths from being IFS'd.
21385 echo "$f";;
21386 *) # Relative
21387 if test -f "$f"; then
21388 # Build tree
21389 echo "$f"
21390 elif test -f "$srcdir/$f"; then
21391 # Source tree
21392 echo "$srcdir/$f"
21393 else
21394 # /dev/null tree
21395 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21396 echo "$as_me: error: cannot find input file: $f" >&2;}
21397 { (exit 1); exit 1; }; }
21398 fi;;
21399 esac
21400 done` || { (exit 1); exit 1; }
21401 # Remove the trailing spaces.
21402 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21404 _ACEOF
21406 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21407 # `conftest.undefs', that substitutes the proper values into
21408 # config.h.in to produce config.h. The first handles `#define'
21409 # templates, and the second `#undef' templates.
21410 # And first: Protect against being on the right side of a sed subst in
21411 # config.status. Protect against being in an unquoted here document
21412 # in config.status.
21413 rm -f conftest.defines conftest.undefs
21414 # Using a here document instead of a string reduces the quoting nightmare.
21415 # Putting comments in sed scripts is not portable.
21417 # `end' is used to avoid that the second main sed command (meant for
21418 # 0-ary CPP macros) applies to n-ary macro definitions.
21419 # See the Autoconf documentation for `clear'.
21420 cat >confdef2sed.sed <<\_ACEOF
21421 s/[\\&,]/\\&/g
21422 s,[\\$`],\\&,g
21423 t clear
21424 : clear
21425 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21426 t end
21427 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21428 : end
21429 _ACEOF
21430 # If some macros were called several times there might be several times
21431 # the same #defines, which is useless. Nevertheless, we may not want to
21432 # sort them, since we want the *last* AC-DEFINE to be honored.
21433 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21434 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21435 rm -f confdef2sed.sed
21437 # This sed command replaces #undef with comments. This is necessary, for
21438 # example, in the case of _POSIX_SOURCE, which is predefined and required
21439 # on some systems where configure will not decide to define it.
21440 cat >>conftest.undefs <<\_ACEOF
21441 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21442 _ACEOF
21444 # Break up conftest.defines because some shells have a limit on the size
21445 # of here documents, and old seds have small limits too (100 cmds).
21446 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21447 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21448 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21449 echo ' :' >>$CONFIG_STATUS
21450 rm -f conftest.tail
21451 while grep . conftest.defines >/dev/null
21453 # Write a limited-size here document to $tmp/defines.sed.
21454 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21455 # Speed up: don't consider the non `#define' lines.
21456 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21457 # Work around the forget-to-reset-the-flag bug.
21458 echo 't clr' >>$CONFIG_STATUS
21459 echo ': clr' >>$CONFIG_STATUS
21460 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21461 echo 'CEOF
21462 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21463 rm -f $tmp/in
21464 mv $tmp/out $tmp/in
21465 ' >>$CONFIG_STATUS
21466 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21467 rm -f conftest.defines
21468 mv conftest.tail conftest.defines
21469 done
21470 rm -f conftest.defines
21471 echo ' fi # grep' >>$CONFIG_STATUS
21472 echo >>$CONFIG_STATUS
21474 # Break up conftest.undefs because some shells have a limit on the size
21475 # of here documents, and old seds have small limits too (100 cmds).
21476 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21477 rm -f conftest.tail
21478 while grep . conftest.undefs >/dev/null
21480 # Write a limited-size here document to $tmp/undefs.sed.
21481 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21482 # Speed up: don't consider the non `#undef'
21483 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21484 # Work around the forget-to-reset-the-flag bug.
21485 echo 't clr' >>$CONFIG_STATUS
21486 echo ': clr' >>$CONFIG_STATUS
21487 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21488 echo 'CEOF
21489 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21490 rm -f $tmp/in
21491 mv $tmp/out $tmp/in
21492 ' >>$CONFIG_STATUS
21493 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21494 rm -f conftest.undefs
21495 mv conftest.tail conftest.undefs
21496 done
21497 rm -f conftest.undefs
21499 cat >>$CONFIG_STATUS <<\_ACEOF
21500 # Let's still pretend it is `configure' which instantiates (i.e., don't
21501 # use $as_me), people would be surprised to read:
21502 # /* config.h. Generated by config.status. */
21503 if test x"$ac_file" = x-; then
21504 echo "/* Generated by configure. */" >$tmp/config.h
21505 else
21506 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21508 cat $tmp/in >>$tmp/config.h
21509 rm -f $tmp/in
21510 if test x"$ac_file" != x-; then
21511 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21512 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21513 echo "$as_me: $ac_file is unchanged" >&6;}
21514 else
21515 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21516 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21517 X"$ac_file" : 'X\(//\)[^/]' \| \
21518 X"$ac_file" : 'X\(//\)$' \| \
21519 X"$ac_file" : 'X\(/\)' \| \
21520 . : '\(.\)' 2>/dev/null ||
21521 echo X"$ac_file" |
21522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21523 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21524 /^X\(\/\/\)$/{ s//\1/; q; }
21525 /^X\(\/\).*/{ s//\1/; q; }
21526 s/.*/./; q'`
21527 { if $as_mkdir_p; then
21528 mkdir -p "$ac_dir"
21529 else
21530 as_dir="$ac_dir"
21531 as_dirs=
21532 while test ! -d "$as_dir"; do
21533 as_dirs="$as_dir $as_dirs"
21534 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21535 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21536 X"$as_dir" : 'X\(//\)[^/]' \| \
21537 X"$as_dir" : 'X\(//\)$' \| \
21538 X"$as_dir" : 'X\(/\)' \| \
21539 . : '\(.\)' 2>/dev/null ||
21540 echo X"$as_dir" |
21541 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21542 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21543 /^X\(\/\/\)$/{ s//\1/; q; }
21544 /^X\(\/\).*/{ s//\1/; q; }
21545 s/.*/./; q'`
21546 done
21547 test ! -n "$as_dirs" || mkdir $as_dirs
21548 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21549 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21550 { (exit 1); exit 1; }; }; }
21552 rm -f $ac_file
21553 mv $tmp/config.h $ac_file
21555 else
21556 cat $tmp/config.h
21557 rm -f $tmp/config.h
21559 done
21560 _ACEOF
21561 cat >>$CONFIG_STATUS <<\_ACEOF
21564 # CONFIG_COMMANDS section.
21566 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21567 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21568 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21569 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21570 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21571 X"$ac_dest" : 'X\(//\)[^/]' \| \
21572 X"$ac_dest" : 'X\(//\)$' \| \
21573 X"$ac_dest" : 'X\(/\)' \| \
21574 . : '\(.\)' 2>/dev/null ||
21575 echo X"$ac_dest" |
21576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21577 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21578 /^X\(\/\/\)$/{ s//\1/; q; }
21579 /^X\(\/\).*/{ s//\1/; q; }
21580 s/.*/./; q'`
21581 { if $as_mkdir_p; then
21582 mkdir -p "$ac_dir"
21583 else
21584 as_dir="$ac_dir"
21585 as_dirs=
21586 while test ! -d "$as_dir"; do
21587 as_dirs="$as_dir $as_dirs"
21588 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21589 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21590 X"$as_dir" : 'X\(//\)[^/]' \| \
21591 X"$as_dir" : 'X\(//\)$' \| \
21592 X"$as_dir" : 'X\(/\)' \| \
21593 . : '\(.\)' 2>/dev/null ||
21594 echo X"$as_dir" |
21595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21596 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21597 /^X\(\/\/\)$/{ s//\1/; q; }
21598 /^X\(\/\).*/{ s//\1/; q; }
21599 s/.*/./; q'`
21600 done
21601 test ! -n "$as_dirs" || mkdir $as_dirs
21602 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21603 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21604 { (exit 1); exit 1; }; }; }
21606 ac_builddir=.
21608 if test "$ac_dir" != .; then
21609 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21610 # A "../" for each directory in $ac_dir_suffix.
21611 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21612 else
21613 ac_dir_suffix= ac_top_builddir=
21616 case $srcdir in
21617 .) # No --srcdir option. We are building in place.
21618 ac_srcdir=.
21619 if test -z "$ac_top_builddir"; then
21620 ac_top_srcdir=.
21621 else
21622 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21623 fi ;;
21624 [\\/]* | ?:[\\/]* ) # Absolute path.
21625 ac_srcdir=$srcdir$ac_dir_suffix;
21626 ac_top_srcdir=$srcdir ;;
21627 *) # Relative path.
21628 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21629 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21630 esac
21632 # Do not use `cd foo && pwd` to compute absolute paths, because
21633 # the directories may not exist.
21634 case `pwd` in
21635 .) ac_abs_builddir="$ac_dir";;
21637 case "$ac_dir" in
21638 .) ac_abs_builddir=`pwd`;;
21639 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21640 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21641 esac;;
21642 esac
21643 case $ac_abs_builddir in
21644 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21646 case ${ac_top_builddir}. in
21647 .) ac_abs_top_builddir=$ac_abs_builddir;;
21648 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21649 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21650 esac;;
21651 esac
21652 case $ac_abs_builddir in
21653 .) ac_abs_srcdir=$ac_srcdir;;
21655 case $ac_srcdir in
21656 .) ac_abs_srcdir=$ac_abs_builddir;;
21657 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21658 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21659 esac;;
21660 esac
21661 case $ac_abs_builddir in
21662 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21664 case $ac_top_srcdir in
21665 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21666 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21667 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21668 esac;;
21669 esac
21672 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21673 echo "$as_me: executing $ac_dest commands" >&6;}
21674 case $ac_dest in
21675 controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
21676 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
21677 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
21678 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
21679 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
21680 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
21681 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
21682 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
21683 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
21684 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
21685 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
21686 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
21687 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
21688 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
21689 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
21690 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
21691 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
21692 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
21693 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
21694 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
21695 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
21696 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
21697 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
21698 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
21699 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
21700 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
21701 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
21702 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
21703 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
21704 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
21705 objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
21706 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
21707 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
21708 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
21709 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
21710 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
21711 esac
21712 done
21713 _ACEOF
21715 cat >>$CONFIG_STATUS <<\_ACEOF
21717 { (exit 0); exit 0; }
21718 _ACEOF
21719 chmod +x $CONFIG_STATUS
21720 ac_clean_files=$ac_clean_files_save
21723 # configure is writing to config.log, and then calls config.status.
21724 # config.status does its own redirection, appending to config.log.
21725 # Unfortunately, on DOS this fails, as config.log is still kept open
21726 # by configure, so config.status won't be able to write to it; its
21727 # output is simply discarded. So we exec the FD to /dev/null,
21728 # effectively closing config.log, so it can be properly (re)opened and
21729 # appended to by config.status. When coming back to configure, we
21730 # need to make the FD available again.
21731 if test "$no_create" != yes; then
21732 ac_cs_success=:
21733 ac_config_status_args=
21734 test "$silent" = yes &&
21735 ac_config_status_args="$ac_config_status_args --quiet"
21736 exec 5>/dev/null
21737 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21738 exec 5>>config.log
21739 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21740 # would make configure fail if this is the last instruction.
21741 $ac_cs_success || { (exit 1); exit 1; }
21745 if test "$have_x" = "no"
21746 then
21747 echo
21748 echo "*** Warning: X development files not found. Wine will be built without"
21749 echo "*** X support, which currently does not work, and would probably not be"
21750 echo "*** what you want anyway. You will need to install devel packages of"
21751 echo "*** Xlib/Xfree86 at the very least."
21754 if test "$wine_cv_opengl_version_OK" = "no"
21755 then
21756 echo
21757 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
21758 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
21761 if test "$wine_cv_msg_freetype" = "yes"
21762 then
21763 echo
21764 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
21765 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
21766 echo "*** freetype-devel package (or its equivalent on your distribution) to"
21767 echo "*** enable Wine to use TrueType fonts."
21770 echo
21771 echo "Configure finished. Do 'make depend && make' to compile Wine."
21772 echo