Replaced the --mode winebuild option by a --subsystem option for
[wine/gsoc_dplay.git] / configure
blob1c383e785da0d13ef810e2617c4981584b87bcf3
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Wine 20040309.
5 # Report bugs to <wine-devel@winehq.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251 exec 6>&1
254 # Initializations.
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='Wine'
271 PACKAGE_TARNAME='wine'
272 PACKAGE_VERSION='20040309'
273 PACKAGE_STRING='Wine 20040309'
274 PACKAGE_BUGREPORT='wine-devel@winehq.org'
276 ac_unique_file="server/atom.c"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 # include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 # include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 # include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS WIN16_FILES WIN16_INSTALL build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPPBIN ac_ct_CPPBIN TOOLSDIR CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LEX LEXLIB LEX_OUTPUT_ROOT XLEX BISON AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES LN_S LN LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS DB2HTML DB2PDF DB2PS DB2TXT LIBPTHREAD JPEGLIB EGREP GIFLIB XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS GLUT_LIBS GLUT32FILES NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS ft_devel ft_devel2 FREETYPEINCL ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS CAPI4LINUXLIBS EXTRACFLAGS DLLEXT DLLFLAGS DLLIBS LDSHARED LDDLLFLAGS LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS WINE_BINARIES MAIN_BINARY LDD ALLOCA LIBOBJS LTLIBOBJS'
315 ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_LIB_RULES MAKE_PROG_RULES'
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
355 ac_prev=
356 for ac_option
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
369 case $ac_option in
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
388 --config-cache | -C)
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
588 -with-* | --with-*)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 esac
652 done
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669 done
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
680 esac
681 done
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
727 else
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CXX_set=${CXX+set}
772 ac_env_CXX_value=$CXX
773 ac_cv_env_CXX_set=${CXX+set}
774 ac_cv_env_CXX_value=$CXX
775 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_env_CXXFLAGS_value=$CXXFLAGS
777 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
778 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
779 ac_env_CPP_set=${CPP+set}
780 ac_env_CPP_value=$CPP
781 ac_cv_env_CPP_set=${CPP+set}
782 ac_cv_env_CPP_value=$CPP
785 # Report the --help message.
787 if test "$ac_init_help" = "long"; then
788 # Omit some internal or obsolete options to make the list less imposing.
789 # This message is too long to be a string in the A/UX 3.1 sh.
790 cat <<_ACEOF
791 \`configure' configures Wine 20040309 to adapt to many kinds of systems.
793 Usage: $0 [OPTION]... [VAR=VALUE]...
795 To assign environment variables (e.g., CC, CFLAGS...), specify them as
796 VAR=VALUE. See below for descriptions of some of the useful variables.
798 Defaults for the options are specified in brackets.
800 Configuration:
801 -h, --help display this help and exit
802 --help=short display options specific to this package
803 --help=recursive display the short help of all the included packages
804 -V, --version display version information and exit
805 -q, --quiet, --silent do not print \`checking...' messages
806 --cache-file=FILE cache test results in FILE [disabled]
807 -C, --config-cache alias for \`--cache-file=config.cache'
808 -n, --no-create do not create output files
809 --srcdir=DIR find the sources in DIR [configure dir or \`..']
811 _ACEOF
813 cat <<_ACEOF
814 Installation directories:
815 --prefix=PREFIX install architecture-independent files in PREFIX
816 [$ac_default_prefix]
817 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 [PREFIX]
820 By default, \`make install' will install all the files in
821 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
822 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
823 for instance \`--prefix=\$HOME'.
825 For better control, use the options below.
827 Fine tuning of the installation directories:
828 --bindir=DIR user executables [EPREFIX/bin]
829 --sbindir=DIR system admin executables [EPREFIX/sbin]
830 --libexecdir=DIR program executables [EPREFIX/libexec]
831 --datadir=DIR read-only architecture-independent data [PREFIX/share]
832 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
833 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
834 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
835 --libdir=DIR object code libraries [EPREFIX/lib]
836 --includedir=DIR C header files [PREFIX/include]
837 --oldincludedir=DIR C header files for non-gcc [/usr/include]
838 --infodir=DIR info documentation [PREFIX/info]
839 --mandir=DIR man documentation [PREFIX/man]
840 _ACEOF
842 cat <<\_ACEOF
844 X features:
845 --x-includes=DIR X include files are in DIR
846 --x-libraries=DIR X library files are in DIR
848 System types:
849 --build=BUILD configure for building on BUILD [guessed]
850 --host=HOST cross-compile to build programs to run on HOST [BUILD]
851 _ACEOF
854 if test -n "$ac_init_help"; then
855 case $ac_init_help in
856 short | recursive ) echo "Configuration of Wine 20040309:";;
857 esac
858 cat <<\_ACEOF
860 Optional Features:
861 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
862 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
863 --disable-win16 do not include Win16 support
864 --disable-debug compile out all debugging messages
865 --disable-trace compile out TRACE messages
867 Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --without-opengl do not use OpenGL
871 --without-curses do not use curses
872 --with-wine-tools=<dir> use Wine tools from directory <dir>
873 --with-x use the X Window System
875 Some influential environment variables:
876 CC C compiler command
877 CFLAGS C compiler flags
878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
879 nonstandard directory <lib dir>
880 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
881 headers in a nonstandard directory <include dir>
882 CXX C++ compiler command
883 CXXFLAGS C++ compiler flags
884 CPP C preprocessor
886 Use these variables to override the choices made by `configure' or to help
887 it to find libraries and programs with nonstandard names/locations.
889 Report bugs to <wine-devel@winehq.org>.
890 _ACEOF
893 if test "$ac_init_help" = "recursive"; then
894 # If there are subdirs, report their specific --help.
895 ac_popdir=`pwd`
896 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
897 test -d $ac_dir || continue
898 ac_builddir=.
900 if test "$ac_dir" != .; then
901 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
902 # A "../" for each directory in $ac_dir_suffix.
903 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
904 else
905 ac_dir_suffix= ac_top_builddir=
908 case $srcdir in
909 .) # No --srcdir option. We are building in place.
910 ac_srcdir=.
911 if test -z "$ac_top_builddir"; then
912 ac_top_srcdir=.
913 else
914 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
915 fi ;;
916 [\\/]* | ?:[\\/]* ) # Absolute path.
917 ac_srcdir=$srcdir$ac_dir_suffix;
918 ac_top_srcdir=$srcdir ;;
919 *) # Relative path.
920 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
921 ac_top_srcdir=$ac_top_builddir$srcdir ;;
922 esac
924 # Do not use `cd foo && pwd` to compute absolute paths, because
925 # the directories may not exist.
926 case `pwd` in
927 .) ac_abs_builddir="$ac_dir";;
929 case "$ac_dir" in
930 .) ac_abs_builddir=`pwd`;;
931 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
932 *) ac_abs_builddir=`pwd`/"$ac_dir";;
933 esac;;
934 esac
935 case $ac_abs_builddir in
936 .) ac_abs_top_builddir=${ac_top_builddir}.;;
938 case ${ac_top_builddir}. in
939 .) ac_abs_top_builddir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
941 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
942 esac;;
943 esac
944 case $ac_abs_builddir in
945 .) ac_abs_srcdir=$ac_srcdir;;
947 case $ac_srcdir in
948 .) ac_abs_srcdir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
950 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
951 esac;;
952 esac
953 case $ac_abs_builddir in
954 .) ac_abs_top_srcdir=$ac_top_srcdir;;
956 case $ac_top_srcdir in
957 .) ac_abs_top_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
959 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
960 esac;;
961 esac
963 cd $ac_dir
964 # Check for guested configure; otherwise get Cygnus style configure.
965 if test -f $ac_srcdir/configure.gnu; then
966 echo
967 $SHELL $ac_srcdir/configure.gnu --help=recursive
968 elif test -f $ac_srcdir/configure; then
969 echo
970 $SHELL $ac_srcdir/configure --help=recursive
971 elif test -f $ac_srcdir/configure.ac ||
972 test -f $ac_srcdir/configure.in; then
973 echo
974 $ac_configure --help
975 else
976 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
978 cd "$ac_popdir"
979 done
982 test -n "$ac_init_help" && exit 0
983 if $ac_init_version; then
984 cat <<\_ACEOF
985 Wine configure 20040309
986 generated by GNU Autoconf 2.59
988 Copyright (C) 2003 Free Software Foundation, Inc.
989 This configure script is free software; the Free Software Foundation
990 gives unlimited permission to copy, distribute and modify it.
991 _ACEOF
992 exit 0
994 exec 5>config.log
995 cat >&5 <<_ACEOF
996 This file contains any messages produced by compilers while
997 running configure, to aid debugging if configure makes a mistake.
999 It was created by Wine $as_me 20040309, which was
1000 generated by GNU Autoconf 2.59. Invocation command line was
1002 $ $0 $@
1004 _ACEOF
1006 cat <<_ASUNAME
1007 ## --------- ##
1008 ## Platform. ##
1009 ## --------- ##
1011 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1012 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1013 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1014 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1015 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1017 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1018 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1020 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1021 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1022 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1023 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1024 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1025 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1026 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1028 _ASUNAME
1030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1031 for as_dir in $PATH
1033 IFS=$as_save_IFS
1034 test -z "$as_dir" && as_dir=.
1035 echo "PATH: $as_dir"
1036 done
1038 } >&5
1040 cat >&5 <<_ACEOF
1043 ## ----------- ##
1044 ## Core tests. ##
1045 ## ----------- ##
1047 _ACEOF
1050 # Keep a trace of the command line.
1051 # Strip out --no-create and --no-recursion so they do not pile up.
1052 # Strip out --silent because we don't want to record it for future runs.
1053 # Also quote any args containing shell meta-characters.
1054 # Make two passes to allow for proper duplicate-argument suppression.
1055 ac_configure_args=
1056 ac_configure_args0=
1057 ac_configure_args1=
1058 ac_sep=
1059 ac_must_keep_next=false
1060 for ac_pass in 1 2
1062 for ac_arg
1064 case $ac_arg in
1065 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067 | -silent | --silent | --silen | --sile | --sil)
1068 continue ;;
1069 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1070 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1071 esac
1072 case $ac_pass in
1073 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1075 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1076 if test $ac_must_keep_next = true; then
1077 ac_must_keep_next=false # Got value, back to normal.
1078 else
1079 case $ac_arg in
1080 *=* | --config-cache | -C | -disable-* | --disable-* \
1081 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1082 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1083 | -with-* | --with-* | -without-* | --without-* | --x)
1084 case "$ac_configure_args0 " in
1085 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1086 esac
1088 -* ) ac_must_keep_next=true ;;
1089 esac
1091 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1092 # Get rid of the leading space.
1093 ac_sep=" "
1095 esac
1096 done
1097 done
1098 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1099 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1101 # When interrupted or exit'd, cleanup temporary files, and complete
1102 # config.log. We remove comments because anyway the quotes in there
1103 # would cause problems or look ugly.
1104 # WARNING: Be sure not to use single quotes in there, as some shells,
1105 # such as our DU 5.0 friend, will then `close' the trap.
1106 trap 'exit_status=$?
1107 # Save into config.log some information that might help in debugging.
1109 echo
1111 cat <<\_ASBOX
1112 ## ---------------- ##
1113 ## Cache variables. ##
1114 ## ---------------- ##
1115 _ASBOX
1116 echo
1117 # The following way of writing the cache mishandles newlines in values,
1119 (set) 2>&1 |
1120 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1121 *ac_space=\ *)
1122 sed -n \
1123 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1124 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1127 sed -n \
1128 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1130 esac;
1132 echo
1134 cat <<\_ASBOX
1135 ## ----------------- ##
1136 ## Output variables. ##
1137 ## ----------------- ##
1138 _ASBOX
1139 echo
1140 for ac_var in $ac_subst_vars
1142 eval ac_val=$`echo $ac_var`
1143 echo "$ac_var='"'"'$ac_val'"'"'"
1144 done | sort
1145 echo
1147 if test -n "$ac_subst_files"; then
1148 cat <<\_ASBOX
1149 ## ------------- ##
1150 ## Output files. ##
1151 ## ------------- ##
1152 _ASBOX
1153 echo
1154 for ac_var in $ac_subst_files
1156 eval ac_val=$`echo $ac_var`
1157 echo "$ac_var='"'"'$ac_val'"'"'"
1158 done | sort
1159 echo
1162 if test -s confdefs.h; then
1163 cat <<\_ASBOX
1164 ## ----------- ##
1165 ## confdefs.h. ##
1166 ## ----------- ##
1167 _ASBOX
1168 echo
1169 sed "/^$/d" confdefs.h | sort
1170 echo
1172 test "$ac_signal" != 0 &&
1173 echo "$as_me: caught signal $ac_signal"
1174 echo "$as_me: exit $exit_status"
1175 } >&5
1176 rm -f core *.core &&
1177 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1178 exit $exit_status
1180 for ac_signal in 1 2 13 15; do
1181 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1182 done
1183 ac_signal=0
1185 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1186 rm -rf conftest* confdefs.h
1187 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1188 echo >confdefs.h
1190 # Predefined preprocessor variables.
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_NAME "$PACKAGE_NAME"
1194 _ACEOF
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1199 _ACEOF
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1204 _ACEOF
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_STRING "$PACKAGE_STRING"
1209 _ACEOF
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1214 _ACEOF
1217 # Let the site file select an alternate cache file if it wants to.
1218 # Prefer explicitly selected file to automatically selected ones.
1219 if test -z "$CONFIG_SITE"; then
1220 if test "x$prefix" != xNONE; then
1221 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1222 else
1223 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1226 for ac_site_file in $CONFIG_SITE; do
1227 if test -r "$ac_site_file"; then
1228 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1229 echo "$as_me: loading site script $ac_site_file" >&6;}
1230 sed 's/^/| /' "$ac_site_file" >&5
1231 . "$ac_site_file"
1233 done
1235 if test -r "$cache_file"; then
1236 # Some versions of bash will fail to source /dev/null (special
1237 # files actually), so we avoid doing that.
1238 if test -f "$cache_file"; then
1239 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1240 echo "$as_me: loading cache $cache_file" >&6;}
1241 case $cache_file in
1242 [\\/]* | ?:[\\/]* ) . $cache_file;;
1243 *) . ./$cache_file;;
1244 esac
1246 else
1247 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1248 echo "$as_me: creating cache $cache_file" >&6;}
1249 >$cache_file
1252 # Check that the precious variables saved in the cache have kept the same
1253 # value.
1254 ac_cache_corrupted=false
1255 for ac_var in `(set) 2>&1 |
1256 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1257 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1258 eval ac_new_set=\$ac_env_${ac_var}_set
1259 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1260 eval ac_new_val="\$ac_env_${ac_var}_value"
1261 case $ac_old_set,$ac_new_set in
1262 set,)
1263 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1264 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1266 ,set)
1267 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1269 ac_cache_corrupted=: ;;
1270 ,);;
1272 if test "x$ac_old_val" != "x$ac_new_val"; then
1273 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1274 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1275 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1276 echo "$as_me: former value: $ac_old_val" >&2;}
1277 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1278 echo "$as_me: current value: $ac_new_val" >&2;}
1279 ac_cache_corrupted=:
1280 fi;;
1281 esac
1282 # Pass precious variables to config.status.
1283 if test "$ac_new_set" = set; then
1284 case $ac_new_val in
1285 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1286 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1287 *) ac_arg=$ac_var=$ac_new_val ;;
1288 esac
1289 case " $ac_configure_args " in
1290 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1291 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1292 esac
1294 done
1295 if $ac_cache_corrupted; then
1296 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1297 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1298 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1299 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1300 { (exit 1); exit 1; }; }
1303 ac_ext=c
1304 ac_cpp='$CPP $CPPFLAGS'
1305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1336 ac_config_headers="$ac_config_headers include/config.h"
1338 ac_aux_dir=
1339 for ac_dir in tools $srcdir/tools; do
1340 if test -f $ac_dir/install-sh; then
1341 ac_aux_dir=$ac_dir
1342 ac_install_sh="$ac_aux_dir/install-sh -c"
1343 break
1344 elif test -f $ac_dir/install.sh; then
1345 ac_aux_dir=$ac_dir
1346 ac_install_sh="$ac_aux_dir/install.sh -c"
1347 break
1348 elif test -f $ac_dir/shtool; then
1349 ac_aux_dir=$ac_dir
1350 ac_install_sh="$ac_aux_dir/shtool install -c"
1351 break
1353 done
1354 if test -z "$ac_aux_dir"; then
1355 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1356 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1357 { (exit 1); exit 1; }; }
1359 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1360 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1361 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1365 # Check whether --enable-win16 or --disable-win16 was given.
1366 if test "${enable_win16+set}" = set; then
1367 enableval="$enable_win16"
1370 # Check whether --enable-debug or --disable-debug was given.
1371 if test "${enable_debug+set}" = set; then
1372 enableval="$enable_debug"
1375 # Check whether --enable-trace or --disable-trace was given.
1376 if test "${enable_trace+set}" = set; then
1377 enableval="$enable_trace"
1382 # Check whether --with-opengl or --without-opengl was given.
1383 if test "${with_opengl+set}" = set; then
1384 withval="$with_opengl"
1388 # Check whether --with-curses or --without-curses was given.
1389 if test "${with_curses+set}" = set; then
1390 withval="$with_curses"
1394 # Check whether --with-wine-tools or --without-wine-tools was given.
1395 if test "${with_wine_tools+set}" = set; then
1396 withval="$with_wine_tools"
1400 WIN16_FILES="\$(WIN16_FILES)"
1402 WIN16_INSTALL="\$(WIN16_INSTALL)"
1404 if test "x$enable_win16" = "xno"
1405 then
1406 WIN16_FILES=""
1407 WIN16_INSTALL=""
1409 if test "x$enable_debug" = "xno"
1410 then
1412 cat >>confdefs.h <<\_ACEOF
1413 #define NO_DEBUG_MSGS 1
1414 _ACEOF
1417 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1418 then
1420 cat >>confdefs.h <<\_ACEOF
1421 #define NO_TRACE_MSGS 1
1422 _ACEOF
1427 # Make sure we can run config.sub.
1428 $ac_config_sub sun4 >/dev/null 2>&1 ||
1429 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1430 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1431 { (exit 1); exit 1; }; }
1433 echo "$as_me:$LINENO: checking build system type" >&5
1434 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1435 if test "${ac_cv_build+set}" = set; then
1436 echo $ECHO_N "(cached) $ECHO_C" >&6
1437 else
1438 ac_cv_build_alias=$build_alias
1439 test -z "$ac_cv_build_alias" &&
1440 ac_cv_build_alias=`$ac_config_guess`
1441 test -z "$ac_cv_build_alias" &&
1442 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1443 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1444 { (exit 1); exit 1; }; }
1445 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1446 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1447 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1448 { (exit 1); exit 1; }; }
1451 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1452 echo "${ECHO_T}$ac_cv_build" >&6
1453 build=$ac_cv_build
1454 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1455 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1456 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1459 echo "$as_me:$LINENO: checking host system type" >&5
1460 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1461 if test "${ac_cv_host+set}" = set; then
1462 echo $ECHO_N "(cached) $ECHO_C" >&6
1463 else
1464 ac_cv_host_alias=$host_alias
1465 test -z "$ac_cv_host_alias" &&
1466 ac_cv_host_alias=$ac_cv_build_alias
1467 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1468 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1469 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1470 { (exit 1); exit 1; }; }
1473 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1474 echo "${ECHO_T}$ac_cv_host" >&6
1475 host=$ac_cv_host
1476 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1477 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1478 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1481 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1482 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1483 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1484 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 else
1487 cat >conftest.make <<\_ACEOF
1488 all:
1489 @echo 'ac_maketemp="$(MAKE)"'
1490 _ACEOF
1491 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1492 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1493 if test -n "$ac_maketemp"; then
1494 eval ac_cv_prog_make_${ac_make}_set=yes
1495 else
1496 eval ac_cv_prog_make_${ac_make}_set=no
1498 rm -f conftest.make
1500 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1501 echo "$as_me:$LINENO: result: yes" >&5
1502 echo "${ECHO_T}yes" >&6
1503 SET_MAKE=
1504 else
1505 echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1507 SET_MAKE="MAKE=${MAKE-make}"
1510 ac_ext=c
1511 ac_cpp='$CPP $CPPFLAGS'
1512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1515 if test -n "$ac_tool_prefix"; then
1516 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1517 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1518 echo "$as_me:$LINENO: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_CC+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1522 else
1523 if test -n "$CC"; then
1524 ac_cv_prog_CC="$CC" # Let the user override the test.
1525 else
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527 for as_dir in $PATH
1529 IFS=$as_save_IFS
1530 test -z "$as_dir" && as_dir=.
1531 for ac_exec_ext in '' $ac_executable_extensions; do
1532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535 break 2
1537 done
1538 done
1542 CC=$ac_cv_prog_CC
1543 if test -n "$CC"; then
1544 echo "$as_me:$LINENO: result: $CC" >&5
1545 echo "${ECHO_T}$CC" >&6
1546 else
1547 echo "$as_me:$LINENO: result: no" >&5
1548 echo "${ECHO_T}no" >&6
1552 if test -z "$ac_cv_prog_CC"; then
1553 ac_ct_CC=$CC
1554 # Extract the first word of "gcc", so it can be a program name with args.
1555 set dummy gcc; ac_word=$2
1556 echo "$as_me:$LINENO: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1560 else
1561 if test -n "$ac_ct_CC"; then
1562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1563 else
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 for as_dir in $PATH
1567 IFS=$as_save_IFS
1568 test -z "$as_dir" && as_dir=.
1569 for ac_exec_ext in '' $ac_executable_extensions; do
1570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571 ac_cv_prog_ac_ct_CC="gcc"
1572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573 break 2
1575 done
1576 done
1580 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1581 if test -n "$ac_ct_CC"; then
1582 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1583 echo "${ECHO_T}$ac_ct_CC" >&6
1584 else
1585 echo "$as_me:$LINENO: result: no" >&5
1586 echo "${ECHO_T}no" >&6
1589 CC=$ac_ct_CC
1590 else
1591 CC="$ac_cv_prog_CC"
1594 if test -z "$CC"; then
1595 if test -n "$ac_tool_prefix"; then
1596 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1597 set dummy ${ac_tool_prefix}cc; ac_word=$2
1598 echo "$as_me:$LINENO: checking for $ac_word" >&5
1599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600 if test "${ac_cv_prog_CC+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1602 else
1603 if test -n "$CC"; then
1604 ac_cv_prog_CC="$CC" # Let the user override the test.
1605 else
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 for as_dir in $PATH
1609 IFS=$as_save_IFS
1610 test -z "$as_dir" && as_dir=.
1611 for ac_exec_ext in '' $ac_executable_extensions; do
1612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613 ac_cv_prog_CC="${ac_tool_prefix}cc"
1614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615 break 2
1617 done
1618 done
1622 CC=$ac_cv_prog_CC
1623 if test -n "$CC"; then
1624 echo "$as_me:$LINENO: result: $CC" >&5
1625 echo "${ECHO_T}$CC" >&6
1626 else
1627 echo "$as_me:$LINENO: result: no" >&5
1628 echo "${ECHO_T}no" >&6
1632 if test -z "$ac_cv_prog_CC"; then
1633 ac_ct_CC=$CC
1634 # Extract the first word of "cc", so it can be a program name with args.
1635 set dummy cc; ac_word=$2
1636 echo "$as_me:$LINENO: checking for $ac_word" >&5
1637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641 if test -n "$ac_ct_CC"; then
1642 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1643 else
1644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645 for as_dir in $PATH
1647 IFS=$as_save_IFS
1648 test -z "$as_dir" && as_dir=.
1649 for ac_exec_ext in '' $ac_executable_extensions; do
1650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1651 ac_cv_prog_ac_ct_CC="cc"
1652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1653 break 2
1655 done
1656 done
1660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1661 if test -n "$ac_ct_CC"; then
1662 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1663 echo "${ECHO_T}$ac_ct_CC" >&6
1664 else
1665 echo "$as_me:$LINENO: result: no" >&5
1666 echo "${ECHO_T}no" >&6
1669 CC=$ac_ct_CC
1670 else
1671 CC="$ac_cv_prog_CC"
1675 if test -z "$CC"; then
1676 # Extract the first word of "cc", so it can be a program name with args.
1677 set dummy cc; ac_word=$2
1678 echo "$as_me:$LINENO: checking for $ac_word" >&5
1679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1680 if test "${ac_cv_prog_CC+set}" = set; then
1681 echo $ECHO_N "(cached) $ECHO_C" >&6
1682 else
1683 if test -n "$CC"; then
1684 ac_cv_prog_CC="$CC" # Let the user override the test.
1685 else
1686 ac_prog_rejected=no
1687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 for as_dir in $PATH
1690 IFS=$as_save_IFS
1691 test -z "$as_dir" && as_dir=.
1692 for ac_exec_ext in '' $ac_executable_extensions; do
1693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1694 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1695 ac_prog_rejected=yes
1696 continue
1698 ac_cv_prog_CC="cc"
1699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1700 break 2
1702 done
1703 done
1705 if test $ac_prog_rejected = yes; then
1706 # We found a bogon in the path, so make sure we never use it.
1707 set dummy $ac_cv_prog_CC
1708 shift
1709 if test $# != 0; then
1710 # We chose a different compiler from the bogus one.
1711 # However, it has the same basename, so the bogon will be chosen
1712 # first if we set CC to just the basename; use the full file name.
1713 shift
1714 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1719 CC=$ac_cv_prog_CC
1720 if test -n "$CC"; then
1721 echo "$as_me:$LINENO: result: $CC" >&5
1722 echo "${ECHO_T}$CC" >&6
1723 else
1724 echo "$as_me:$LINENO: result: no" >&5
1725 echo "${ECHO_T}no" >&6
1729 if test -z "$CC"; then
1730 if test -n "$ac_tool_prefix"; then
1731 for ac_prog in cl
1733 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1734 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_CC+set}" = set; then
1738 echo $ECHO_N "(cached) $ECHO_C" >&6
1739 else
1740 if test -n "$CC"; then
1741 ac_cv_prog_CC="$CC" # Let the user override the test.
1742 else
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 for as_dir in $PATH
1746 IFS=$as_save_IFS
1747 test -z "$as_dir" && as_dir=.
1748 for ac_exec_ext in '' $ac_executable_extensions; do
1749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1752 break 2
1754 done
1755 done
1759 CC=$ac_cv_prog_CC
1760 if test -n "$CC"; then
1761 echo "$as_me:$LINENO: result: $CC" >&5
1762 echo "${ECHO_T}$CC" >&6
1763 else
1764 echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1768 test -n "$CC" && break
1769 done
1771 if test -z "$CC"; then
1772 ac_ct_CC=$CC
1773 for ac_prog in cl
1775 # Extract the first word of "$ac_prog", so it can be a program name with args.
1776 set dummy $ac_prog; ac_word=$2
1777 echo "$as_me:$LINENO: checking for $ac_word" >&5
1778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1781 else
1782 if test -n "$ac_ct_CC"; then
1783 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1784 else
1785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1786 for as_dir in $PATH
1788 IFS=$as_save_IFS
1789 test -z "$as_dir" && as_dir=.
1790 for ac_exec_ext in '' $ac_executable_extensions; do
1791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792 ac_cv_prog_ac_ct_CC="$ac_prog"
1793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1794 break 2
1796 done
1797 done
1801 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1802 if test -n "$ac_ct_CC"; then
1803 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1804 echo "${ECHO_T}$ac_ct_CC" >&6
1805 else
1806 echo "$as_me:$LINENO: result: no" >&5
1807 echo "${ECHO_T}no" >&6
1810 test -n "$ac_ct_CC" && break
1811 done
1813 CC=$ac_ct_CC
1819 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1820 See \`config.log' for more details." >&5
1821 echo "$as_me: error: no acceptable C compiler found in \$PATH
1822 See \`config.log' for more details." >&2;}
1823 { (exit 1); exit 1; }; }
1825 # Provide some information about the compiler.
1826 echo "$as_me:$LINENO:" \
1827 "checking for C compiler version" >&5
1828 ac_compiler=`set X $ac_compile; echo $2`
1829 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1830 (eval $ac_compiler --version </dev/null >&5) 2>&5
1831 ac_status=$?
1832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1833 (exit $ac_status); }
1834 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1835 (eval $ac_compiler -v </dev/null >&5) 2>&5
1836 ac_status=$?
1837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1838 (exit $ac_status); }
1839 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1840 (eval $ac_compiler -V </dev/null >&5) 2>&5
1841 ac_status=$?
1842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843 (exit $ac_status); }
1845 cat >conftest.$ac_ext <<_ACEOF
1846 /* confdefs.h. */
1847 _ACEOF
1848 cat confdefs.h >>conftest.$ac_ext
1849 cat >>conftest.$ac_ext <<_ACEOF
1850 /* end confdefs.h. */
1853 main ()
1857 return 0;
1859 _ACEOF
1860 ac_clean_files_save=$ac_clean_files
1861 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1862 # Try to create an executable without -o first, disregard a.out.
1863 # It will help us diagnose broken compilers, and finding out an intuition
1864 # of exeext.
1865 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1866 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1867 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1868 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1869 (eval $ac_link_default) 2>&5
1870 ac_status=$?
1871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1872 (exit $ac_status); }; then
1873 # Find the output, starting from the most likely. This scheme is
1874 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1875 # resort.
1877 # Be careful to initialize this variable, since it used to be cached.
1878 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1879 ac_cv_exeext=
1880 # b.out is created by i960 compilers.
1881 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1883 test -f "$ac_file" || continue
1884 case $ac_file in
1885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1887 conftest.$ac_ext )
1888 # This is the source file.
1890 [ab].out )
1891 # We found the default executable, but exeext='' is most
1892 # certainly right.
1893 break;;
1894 *.* )
1895 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1896 # FIXME: I believe we export ac_cv_exeext for Libtool,
1897 # but it would be cool to find out if it's true. Does anybody
1898 # maintain Libtool? --akim.
1899 export ac_cv_exeext
1900 break;;
1902 break;;
1903 esac
1904 done
1905 else
1906 echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1909 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1910 See \`config.log' for more details." >&5
1911 echo "$as_me: error: C compiler cannot create executables
1912 See \`config.log' for more details." >&2;}
1913 { (exit 77); exit 77; }; }
1916 ac_exeext=$ac_cv_exeext
1917 echo "$as_me:$LINENO: result: $ac_file" >&5
1918 echo "${ECHO_T}$ac_file" >&6
1920 # Check the compiler produces executables we can run. If not, either
1921 # the compiler is broken, or we cross compile.
1922 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1923 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1924 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1925 # If not cross compiling, check that we can run a simple program.
1926 if test "$cross_compiling" != yes; then
1927 if { ac_try='./$ac_file'
1928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1929 (eval $ac_try) 2>&5
1930 ac_status=$?
1931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932 (exit $ac_status); }; }; then
1933 cross_compiling=no
1934 else
1935 if test "$cross_compiling" = maybe; then
1936 cross_compiling=yes
1937 else
1938 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1939 If you meant to cross compile, use \`--host'.
1940 See \`config.log' for more details." >&5
1941 echo "$as_me: error: cannot run C compiled programs.
1942 If you meant to cross compile, use \`--host'.
1943 See \`config.log' for more details." >&2;}
1944 { (exit 1); exit 1; }; }
1948 echo "$as_me:$LINENO: result: yes" >&5
1949 echo "${ECHO_T}yes" >&6
1951 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1952 ac_clean_files=$ac_clean_files_save
1953 # Check the compiler produces executables we can run. If not, either
1954 # the compiler is broken, or we cross compile.
1955 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1956 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1957 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1958 echo "${ECHO_T}$cross_compiling" >&6
1960 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1961 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1963 (eval $ac_link) 2>&5
1964 ac_status=$?
1965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1966 (exit $ac_status); }; then
1967 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1968 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1969 # work properly (i.e., refer to `conftest.exe'), while it won't with
1970 # `rm'.
1971 for ac_file in conftest.exe conftest conftest.*; do
1972 test -f "$ac_file" || continue
1973 case $ac_file in
1974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1975 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1976 export ac_cv_exeext
1977 break;;
1978 * ) break;;
1979 esac
1980 done
1981 else
1982 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1983 See \`config.log' for more details." >&5
1984 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1985 See \`config.log' for more details." >&2;}
1986 { (exit 1); exit 1; }; }
1989 rm -f conftest$ac_cv_exeext
1990 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1991 echo "${ECHO_T}$ac_cv_exeext" >&6
1993 rm -f conftest.$ac_ext
1994 EXEEXT=$ac_cv_exeext
1995 ac_exeext=$EXEEXT
1996 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1997 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1998 if test "${ac_cv_objext+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001 cat >conftest.$ac_ext <<_ACEOF
2002 /* confdefs.h. */
2003 _ACEOF
2004 cat confdefs.h >>conftest.$ac_ext
2005 cat >>conftest.$ac_ext <<_ACEOF
2006 /* end confdefs.h. */
2009 main ()
2013 return 0;
2015 _ACEOF
2016 rm -f conftest.o conftest.obj
2017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2018 (eval $ac_compile) 2>&5
2019 ac_status=$?
2020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021 (exit $ac_status); }; then
2022 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2023 case $ac_file in
2024 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2025 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2026 break;;
2027 esac
2028 done
2029 else
2030 echo "$as_me: failed program was:" >&5
2031 sed 's/^/| /' conftest.$ac_ext >&5
2033 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2034 See \`config.log' for more details." >&5
2035 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2036 See \`config.log' for more details." >&2;}
2037 { (exit 1); exit 1; }; }
2040 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2042 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2043 echo "${ECHO_T}$ac_cv_objext" >&6
2044 OBJEXT=$ac_cv_objext
2045 ac_objext=$OBJEXT
2046 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2047 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2048 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051 cat >conftest.$ac_ext <<_ACEOF
2052 /* confdefs.h. */
2053 _ACEOF
2054 cat confdefs.h >>conftest.$ac_ext
2055 cat >>conftest.$ac_ext <<_ACEOF
2056 /* end confdefs.h. */
2059 main ()
2061 #ifndef __GNUC__
2062 choke me
2063 #endif
2066 return 0;
2068 _ACEOF
2069 rm -f conftest.$ac_objext
2070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2071 (eval $ac_compile) 2>conftest.er1
2072 ac_status=$?
2073 grep -v '^ *+' conftest.er1 >conftest.err
2074 rm -f conftest.er1
2075 cat conftest.err >&5
2076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2077 (exit $ac_status); } &&
2078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2080 (eval $ac_try) 2>&5
2081 ac_status=$?
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); }; } &&
2084 { ac_try='test -s conftest.$ac_objext'
2085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2086 (eval $ac_try) 2>&5
2087 ac_status=$?
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }; }; then
2090 ac_compiler_gnu=yes
2091 else
2092 echo "$as_me: failed program was:" >&5
2093 sed 's/^/| /' conftest.$ac_ext >&5
2095 ac_compiler_gnu=no
2097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2098 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2101 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2102 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2103 GCC=`test $ac_compiler_gnu = yes && echo yes`
2104 ac_test_CFLAGS=${CFLAGS+set}
2105 ac_save_CFLAGS=$CFLAGS
2106 CFLAGS="-g"
2107 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2108 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2109 if test "${ac_cv_prog_cc_g+set}" = set; then
2110 echo $ECHO_N "(cached) $ECHO_C" >&6
2111 else
2112 cat >conftest.$ac_ext <<_ACEOF
2113 /* confdefs.h. */
2114 _ACEOF
2115 cat confdefs.h >>conftest.$ac_ext
2116 cat >>conftest.$ac_ext <<_ACEOF
2117 /* end confdefs.h. */
2120 main ()
2124 return 0;
2126 _ACEOF
2127 rm -f conftest.$ac_objext
2128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2129 (eval $ac_compile) 2>conftest.er1
2130 ac_status=$?
2131 grep -v '^ *+' conftest.er1 >conftest.err
2132 rm -f conftest.er1
2133 cat conftest.err >&5
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); } &&
2136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2138 (eval $ac_try) 2>&5
2139 ac_status=$?
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }; } &&
2142 { ac_try='test -s conftest.$ac_objext'
2143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2144 (eval $ac_try) 2>&5
2145 ac_status=$?
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }; }; then
2148 ac_cv_prog_cc_g=yes
2149 else
2150 echo "$as_me: failed program was:" >&5
2151 sed 's/^/| /' conftest.$ac_ext >&5
2153 ac_cv_prog_cc_g=no
2155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2157 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2158 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2159 if test "$ac_test_CFLAGS" = set; then
2160 CFLAGS=$ac_save_CFLAGS
2161 elif test $ac_cv_prog_cc_g = yes; then
2162 if test "$GCC" = yes; then
2163 CFLAGS="-g -O2"
2164 else
2165 CFLAGS="-g"
2167 else
2168 if test "$GCC" = yes; then
2169 CFLAGS="-O2"
2170 else
2171 CFLAGS=
2174 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2175 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2176 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2178 else
2179 ac_cv_prog_cc_stdc=no
2180 ac_save_CC=$CC
2181 cat >conftest.$ac_ext <<_ACEOF
2182 /* confdefs.h. */
2183 _ACEOF
2184 cat confdefs.h >>conftest.$ac_ext
2185 cat >>conftest.$ac_ext <<_ACEOF
2186 /* end confdefs.h. */
2187 #include <stdarg.h>
2188 #include <stdio.h>
2189 #include <sys/types.h>
2190 #include <sys/stat.h>
2191 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2192 struct buf { int x; };
2193 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2194 static char *e (p, i)
2195 char **p;
2196 int i;
2198 return p[i];
2200 static char *f (char * (*g) (char **, int), char **p, ...)
2202 char *s;
2203 va_list v;
2204 va_start (v,p);
2205 s = g (p, va_arg (v,int));
2206 va_end (v);
2207 return s;
2210 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2211 function prototypes and stuff, but not '\xHH' hex character constants.
2212 These don't provoke an error unfortunately, instead are silently treated
2213 as 'x'. The following induces an error, until -std1 is added to get
2214 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2215 array size at least. It's necessary to write '\x00'==0 to get something
2216 that's true only with -std1. */
2217 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2219 int test (int i, double x);
2220 struct s1 {int (*f) (int a);};
2221 struct s2 {int (*f) (double a);};
2222 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2223 int argc;
2224 char **argv;
2226 main ()
2228 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2230 return 0;
2232 _ACEOF
2233 # Don't try gcc -ansi; that turns off useful extensions and
2234 # breaks some systems' header files.
2235 # AIX -qlanglvl=ansi
2236 # Ultrix and OSF/1 -std1
2237 # HP-UX 10.20 and later -Ae
2238 # HP-UX older versions -Aa -D_HPUX_SOURCE
2239 # SVR4 -Xc -D__EXTENSIONS__
2240 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2242 CC="$ac_save_CC $ac_arg"
2243 rm -f conftest.$ac_objext
2244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2245 (eval $ac_compile) 2>conftest.er1
2246 ac_status=$?
2247 grep -v '^ *+' conftest.er1 >conftest.err
2248 rm -f conftest.er1
2249 cat conftest.err >&5
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); } &&
2252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254 (eval $ac_try) 2>&5
2255 ac_status=$?
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); }; } &&
2258 { ac_try='test -s conftest.$ac_objext'
2259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260 (eval $ac_try) 2>&5
2261 ac_status=$?
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; }; then
2264 ac_cv_prog_cc_stdc=$ac_arg
2265 break
2266 else
2267 echo "$as_me: failed program was:" >&5
2268 sed 's/^/| /' conftest.$ac_ext >&5
2271 rm -f conftest.err conftest.$ac_objext
2272 done
2273 rm -f conftest.$ac_ext conftest.$ac_objext
2274 CC=$ac_save_CC
2278 case "x$ac_cv_prog_cc_stdc" in
2279 x|xno)
2280 echo "$as_me:$LINENO: result: none needed" >&5
2281 echo "${ECHO_T}none needed" >&6 ;;
2283 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2284 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2285 CC="$CC $ac_cv_prog_cc_stdc" ;;
2286 esac
2288 # Some people use a C++ compiler to compile C. Since we use `exit',
2289 # in C++ we need to declare it. In case someone uses the same compiler
2290 # for both compiling C and C++ we need to have the C++ compiler decide
2291 # the declaration of exit, since it's the most demanding environment.
2292 cat >conftest.$ac_ext <<_ACEOF
2293 #ifndef __cplusplus
2294 choke me
2295 #endif
2296 _ACEOF
2297 rm -f conftest.$ac_objext
2298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299 (eval $ac_compile) 2>conftest.er1
2300 ac_status=$?
2301 grep -v '^ *+' conftest.er1 >conftest.err
2302 rm -f conftest.er1
2303 cat conftest.err >&5
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); } &&
2306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308 (eval $ac_try) 2>&5
2309 ac_status=$?
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }; } &&
2312 { ac_try='test -s conftest.$ac_objext'
2313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2314 (eval $ac_try) 2>&5
2315 ac_status=$?
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; }; then
2318 for ac_declaration in \
2319 '' \
2320 'extern "C" void std::exit (int) throw (); using std::exit;' \
2321 'extern "C" void std::exit (int); using std::exit;' \
2322 'extern "C" void exit (int) throw ();' \
2323 'extern "C" void exit (int);' \
2324 'void exit (int);'
2326 cat >conftest.$ac_ext <<_ACEOF
2327 /* confdefs.h. */
2328 _ACEOF
2329 cat confdefs.h >>conftest.$ac_ext
2330 cat >>conftest.$ac_ext <<_ACEOF
2331 /* end confdefs.h. */
2332 $ac_declaration
2333 #include <stdlib.h>
2335 main ()
2337 exit (42);
2339 return 0;
2341 _ACEOF
2342 rm -f conftest.$ac_objext
2343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344 (eval $ac_compile) 2>conftest.er1
2345 ac_status=$?
2346 grep -v '^ *+' conftest.er1 >conftest.err
2347 rm -f conftest.er1
2348 cat conftest.err >&5
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); } &&
2351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353 (eval $ac_try) 2>&5
2354 ac_status=$?
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; } &&
2357 { ac_try='test -s conftest.$ac_objext'
2358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359 (eval $ac_try) 2>&5
2360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; }; then
2364 else
2365 echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.$ac_ext >&5
2368 continue
2370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2371 cat >conftest.$ac_ext <<_ACEOF
2372 /* confdefs.h. */
2373 _ACEOF
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h. */
2377 $ac_declaration
2379 main ()
2381 exit (42);
2383 return 0;
2385 _ACEOF
2386 rm -f conftest.$ac_objext
2387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2388 (eval $ac_compile) 2>conftest.er1
2389 ac_status=$?
2390 grep -v '^ *+' conftest.er1 >conftest.err
2391 rm -f conftest.er1
2392 cat conftest.err >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); } &&
2395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 (eval $ac_try) 2>&5
2398 ac_status=$?
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; } &&
2401 { ac_try='test -s conftest.$ac_objext'
2402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 (eval $ac_try) 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; }; then
2407 break
2408 else
2409 echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2414 done
2415 rm -f conftest*
2416 if test -n "$ac_declaration"; then
2417 echo '#ifdef __cplusplus' >>confdefs.h
2418 echo $ac_declaration >>confdefs.h
2419 echo '#endif' >>confdefs.h
2422 else
2423 echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2428 ac_ext=c
2429 ac_cpp='$CPP $CPPFLAGS'
2430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2434 ac_ext=cc
2435 ac_cpp='$CXXCPP $CPPFLAGS'
2436 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2437 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2438 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2439 if test -n "$ac_tool_prefix"; then
2440 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2442 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2443 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2444 echo "$as_me:$LINENO: checking for $ac_word" >&5
2445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2446 if test "${ac_cv_prog_CXX+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2448 else
2449 if test -n "$CXX"; then
2450 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2451 else
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 for as_dir in $PATH
2455 IFS=$as_save_IFS
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2459 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2461 break 2
2463 done
2464 done
2468 CXX=$ac_cv_prog_CXX
2469 if test -n "$CXX"; then
2470 echo "$as_me:$LINENO: result: $CXX" >&5
2471 echo "${ECHO_T}$CXX" >&6
2472 else
2473 echo "$as_me:$LINENO: result: no" >&5
2474 echo "${ECHO_T}no" >&6
2477 test -n "$CXX" && break
2478 done
2480 if test -z "$CXX"; then
2481 ac_ct_CXX=$CXX
2482 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2484 # Extract the first word of "$ac_prog", so it can be a program name with args.
2485 set dummy $ac_prog; ac_word=$2
2486 echo "$as_me:$LINENO: checking for $ac_word" >&5
2487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2488 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
2490 else
2491 if test -n "$ac_ct_CXX"; then
2492 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2493 else
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495 for as_dir in $PATH
2497 IFS=$as_save_IFS
2498 test -z "$as_dir" && as_dir=.
2499 for ac_exec_ext in '' $ac_executable_extensions; do
2500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2501 ac_cv_prog_ac_ct_CXX="$ac_prog"
2502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 break 2
2505 done
2506 done
2510 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2511 if test -n "$ac_ct_CXX"; then
2512 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2513 echo "${ECHO_T}$ac_ct_CXX" >&6
2514 else
2515 echo "$as_me:$LINENO: result: no" >&5
2516 echo "${ECHO_T}no" >&6
2519 test -n "$ac_ct_CXX" && break
2520 done
2521 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2523 CXX=$ac_ct_CXX
2527 # Provide some information about the compiler.
2528 echo "$as_me:$LINENO:" \
2529 "checking for C++ compiler version" >&5
2530 ac_compiler=`set X $ac_compile; echo $2`
2531 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2532 (eval $ac_compiler --version </dev/null >&5) 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }
2536 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2537 (eval $ac_compiler -v </dev/null >&5) 2>&5
2538 ac_status=$?
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }
2541 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2542 (eval $ac_compiler -V </dev/null >&5) 2>&5
2543 ac_status=$?
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }
2547 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2548 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2549 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2550 echo $ECHO_N "(cached) $ECHO_C" >&6
2551 else
2552 cat >conftest.$ac_ext <<_ACEOF
2553 /* confdefs.h. */
2554 _ACEOF
2555 cat confdefs.h >>conftest.$ac_ext
2556 cat >>conftest.$ac_ext <<_ACEOF
2557 /* end confdefs.h. */
2560 main ()
2562 #ifndef __GNUC__
2563 choke me
2564 #endif
2567 return 0;
2569 _ACEOF
2570 rm -f conftest.$ac_objext
2571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2572 (eval $ac_compile) 2>conftest.er1
2573 ac_status=$?
2574 grep -v '^ *+' conftest.er1 >conftest.err
2575 rm -f conftest.er1
2576 cat conftest.err >&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); } &&
2579 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581 (eval $ac_try) 2>&5
2582 ac_status=$?
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; } &&
2585 { ac_try='test -s conftest.$ac_objext'
2586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587 (eval $ac_try) 2>&5
2588 ac_status=$?
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; }; then
2591 ac_compiler_gnu=yes
2592 else
2593 echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2596 ac_compiler_gnu=no
2598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2599 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2602 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2603 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2604 GXX=`test $ac_compiler_gnu = yes && echo yes`
2605 ac_test_CXXFLAGS=${CXXFLAGS+set}
2606 ac_save_CXXFLAGS=$CXXFLAGS
2607 CXXFLAGS="-g"
2608 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2609 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2610 if test "${ac_cv_prog_cxx_g+set}" = set; then
2611 echo $ECHO_N "(cached) $ECHO_C" >&6
2612 else
2613 cat >conftest.$ac_ext <<_ACEOF
2614 /* confdefs.h. */
2615 _ACEOF
2616 cat confdefs.h >>conftest.$ac_ext
2617 cat >>conftest.$ac_ext <<_ACEOF
2618 /* end confdefs.h. */
2621 main ()
2625 return 0;
2627 _ACEOF
2628 rm -f conftest.$ac_objext
2629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2630 (eval $ac_compile) 2>conftest.er1
2631 ac_status=$?
2632 grep -v '^ *+' conftest.er1 >conftest.err
2633 rm -f conftest.er1
2634 cat conftest.err >&5
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); } &&
2637 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 (eval $ac_try) 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; } &&
2643 { ac_try='test -s conftest.$ac_objext'
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645 (eval $ac_try) 2>&5
2646 ac_status=$?
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; }; then
2649 ac_cv_prog_cxx_g=yes
2650 else
2651 echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2654 ac_cv_prog_cxx_g=no
2656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2658 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2659 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2660 if test "$ac_test_CXXFLAGS" = set; then
2661 CXXFLAGS=$ac_save_CXXFLAGS
2662 elif test $ac_cv_prog_cxx_g = yes; then
2663 if test "$GXX" = yes; then
2664 CXXFLAGS="-g -O2"
2665 else
2666 CXXFLAGS="-g"
2668 else
2669 if test "$GXX" = yes; then
2670 CXXFLAGS="-O2"
2671 else
2672 CXXFLAGS=
2675 for ac_declaration in \
2676 '' \
2677 'extern "C" void std::exit (int) throw (); using std::exit;' \
2678 'extern "C" void std::exit (int); using std::exit;' \
2679 'extern "C" void exit (int) throw ();' \
2680 'extern "C" void exit (int);' \
2681 'void exit (int);'
2683 cat >conftest.$ac_ext <<_ACEOF
2684 /* confdefs.h. */
2685 _ACEOF
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h. */
2689 $ac_declaration
2690 #include <stdlib.h>
2692 main ()
2694 exit (42);
2696 return 0;
2698 _ACEOF
2699 rm -f conftest.$ac_objext
2700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2701 (eval $ac_compile) 2>conftest.er1
2702 ac_status=$?
2703 grep -v '^ *+' conftest.er1 >conftest.err
2704 rm -f conftest.er1
2705 cat conftest.err >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); } &&
2708 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 (eval $ac_try) 2>&5
2711 ac_status=$?
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; } &&
2714 { ac_try='test -s conftest.$ac_objext'
2715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716 (eval $ac_try) 2>&5
2717 ac_status=$?
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; }; then
2721 else
2722 echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.$ac_ext >&5
2725 continue
2727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2728 cat >conftest.$ac_ext <<_ACEOF
2729 /* confdefs.h. */
2730 _ACEOF
2731 cat confdefs.h >>conftest.$ac_ext
2732 cat >>conftest.$ac_ext <<_ACEOF
2733 /* end confdefs.h. */
2734 $ac_declaration
2736 main ()
2738 exit (42);
2740 return 0;
2742 _ACEOF
2743 rm -f conftest.$ac_objext
2744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2745 (eval $ac_compile) 2>conftest.er1
2746 ac_status=$?
2747 grep -v '^ *+' conftest.er1 >conftest.err
2748 rm -f conftest.er1
2749 cat conftest.err >&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); } &&
2752 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754 (eval $ac_try) 2>&5
2755 ac_status=$?
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }; } &&
2758 { ac_try='test -s conftest.$ac_objext'
2759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760 (eval $ac_try) 2>&5
2761 ac_status=$?
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); }; }; then
2764 break
2765 else
2766 echo "$as_me: failed program was:" >&5
2767 sed 's/^/| /' conftest.$ac_ext >&5
2770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2771 done
2772 rm -f conftest*
2773 if test -n "$ac_declaration"; then
2774 echo '#ifdef __cplusplus' >>confdefs.h
2775 echo $ac_declaration >>confdefs.h
2776 echo '#endif' >>confdefs.h
2779 ac_ext=c
2780 ac_cpp='$CPP $CPPFLAGS'
2781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2785 if test -n "$ac_tool_prefix"; then
2786 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
2787 set dummy ${ac_tool_prefix}cpp; ac_word=$2
2788 echo "$as_me:$LINENO: checking for $ac_word" >&5
2789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2790 if test "${ac_cv_prog_CPPBIN+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 else
2793 if test -n "$CPPBIN"; then
2794 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
2795 else
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2799 IFS=$as_save_IFS
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2803 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
2804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 break 2
2807 done
2808 done
2812 CPPBIN=$ac_cv_prog_CPPBIN
2813 if test -n "$CPPBIN"; then
2814 echo "$as_me:$LINENO: result: $CPPBIN" >&5
2815 echo "${ECHO_T}$CPPBIN" >&6
2816 else
2817 echo "$as_me:$LINENO: result: no" >&5
2818 echo "${ECHO_T}no" >&6
2822 if test -z "$ac_cv_prog_CPPBIN"; then
2823 ac_ct_CPPBIN=$CPPBIN
2824 # Extract the first word of "cpp", so it can be a program name with args.
2825 set dummy cpp; ac_word=$2
2826 echo "$as_me:$LINENO: checking for $ac_word" >&5
2827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2828 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2830 else
2831 if test -n "$ac_ct_CPPBIN"; then
2832 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2841 ac_cv_prog_ac_ct_CPPBIN="cpp"
2842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 break 2
2845 done
2846 done
2848 test -z "$ac_cv_prog_ac_ct_CPPBIN" && ac_cv_prog_ac_ct_CPPBIN="cpp"
2851 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
2852 if test -n "$ac_ct_CPPBIN"; then
2853 echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
2854 echo "${ECHO_T}$ac_ct_CPPBIN" >&6
2855 else
2856 echo "$as_me:$LINENO: result: no" >&5
2857 echo "${ECHO_T}no" >&6
2860 CPPBIN=$ac_ct_CPPBIN
2861 else
2862 CPPBIN="$ac_cv_prog_CPPBIN"
2866 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2867 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2868 if test "${wine_cv_toolsdir+set}" = set; then
2869 echo $ECHO_N "(cached) $ECHO_C" >&6
2870 else
2871 if test -z "$with_wine_tools"; then
2872 if test "$cross_compiling" = "yes"; then
2873 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2874 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2875 { (exit 1); exit 1; }; }
2876 else
2877 wine_cv_toolsdir="\$(TOPOBJDIR)"
2879 elif test -d "$with_wine_tools/tools/winebuild"; then
2880 case $with_wine_tools in
2881 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2882 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2883 esac
2884 else
2885 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2886 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2887 { (exit 1); exit 1; }; }
2890 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2891 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2892 TOOLSDIR=$wine_cv_toolsdir
2896 ac_ext=c
2897 ac_cpp='$CPP $CPPFLAGS'
2898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2901 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2902 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2903 # On Suns, sometimes $CPP names a directory.
2904 if test -n "$CPP" && test -d "$CPP"; then
2905 CPP=
2907 if test -z "$CPP"; then
2908 if test "${ac_cv_prog_CPP+set}" = set; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2910 else
2911 # Double quotes because CPP needs to be expanded
2912 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2914 ac_preproc_ok=false
2915 for ac_c_preproc_warn_flag in '' yes
2917 # Use a header file that comes with gcc, so configuring glibc
2918 # with a fresh cross-compiler works.
2919 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2920 # <limits.h> exists even on freestanding compilers.
2921 # On the NeXT, cc -E runs the code through the compiler's parser,
2922 # not just through cpp. "Syntax error" is here to catch this case.
2923 cat >conftest.$ac_ext <<_ACEOF
2924 /* confdefs.h. */
2925 _ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h. */
2929 #ifdef __STDC__
2930 # include <limits.h>
2931 #else
2932 # include <assert.h>
2933 #endif
2934 Syntax error
2935 _ACEOF
2936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2937 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2938 ac_status=$?
2939 grep -v '^ *+' conftest.er1 >conftest.err
2940 rm -f conftest.er1
2941 cat conftest.err >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } >/dev/null; then
2944 if test -s conftest.err; then
2945 ac_cpp_err=$ac_c_preproc_warn_flag
2946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2947 else
2948 ac_cpp_err=
2950 else
2951 ac_cpp_err=yes
2953 if test -z "$ac_cpp_err"; then
2955 else
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2959 # Broken: fails on valid input.
2960 continue
2962 rm -f conftest.err conftest.$ac_ext
2964 # OK, works on sane cases. Now check whether non-existent headers
2965 # can be detected and how.
2966 cat >conftest.$ac_ext <<_ACEOF
2967 /* confdefs.h. */
2968 _ACEOF
2969 cat confdefs.h >>conftest.$ac_ext
2970 cat >>conftest.$ac_ext <<_ACEOF
2971 /* end confdefs.h. */
2972 #include <ac_nonexistent.h>
2973 _ACEOF
2974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2976 ac_status=$?
2977 grep -v '^ *+' conftest.er1 >conftest.err
2978 rm -f conftest.er1
2979 cat conftest.err >&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } >/dev/null; then
2982 if test -s conftest.err; then
2983 ac_cpp_err=$ac_c_preproc_warn_flag
2984 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2985 else
2986 ac_cpp_err=
2988 else
2989 ac_cpp_err=yes
2991 if test -z "$ac_cpp_err"; then
2992 # Broken: success on invalid input.
2993 continue
2994 else
2995 echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2998 # Passes both tests.
2999 ac_preproc_ok=:
3000 break
3002 rm -f conftest.err conftest.$ac_ext
3004 done
3005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3006 rm -f conftest.err conftest.$ac_ext
3007 if $ac_preproc_ok; then
3008 break
3011 done
3012 ac_cv_prog_CPP=$CPP
3015 CPP=$ac_cv_prog_CPP
3016 else
3017 ac_cv_prog_CPP=$CPP
3019 echo "$as_me:$LINENO: result: $CPP" >&5
3020 echo "${ECHO_T}$CPP" >&6
3021 ac_preproc_ok=false
3022 for ac_c_preproc_warn_flag in '' yes
3024 # Use a header file that comes with gcc, so configuring glibc
3025 # with a fresh cross-compiler works.
3026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3027 # <limits.h> exists even on freestanding compilers.
3028 # On the NeXT, cc -E runs the code through the compiler's parser,
3029 # not just through cpp. "Syntax error" is here to catch this case.
3030 cat >conftest.$ac_ext <<_ACEOF
3031 /* confdefs.h. */
3032 _ACEOF
3033 cat confdefs.h >>conftest.$ac_ext
3034 cat >>conftest.$ac_ext <<_ACEOF
3035 /* end confdefs.h. */
3036 #ifdef __STDC__
3037 # include <limits.h>
3038 #else
3039 # include <assert.h>
3040 #endif
3041 Syntax error
3042 _ACEOF
3043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3045 ac_status=$?
3046 grep -v '^ *+' conftest.er1 >conftest.err
3047 rm -f conftest.er1
3048 cat conftest.err >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } >/dev/null; then
3051 if test -s conftest.err; then
3052 ac_cpp_err=$ac_c_preproc_warn_flag
3053 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3054 else
3055 ac_cpp_err=
3057 else
3058 ac_cpp_err=yes
3060 if test -z "$ac_cpp_err"; then
3062 else
3063 echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3066 # Broken: fails on valid input.
3067 continue
3069 rm -f conftest.err conftest.$ac_ext
3071 # OK, works on sane cases. Now check whether non-existent headers
3072 # can be detected and how.
3073 cat >conftest.$ac_ext <<_ACEOF
3074 /* confdefs.h. */
3075 _ACEOF
3076 cat confdefs.h >>conftest.$ac_ext
3077 cat >>conftest.$ac_ext <<_ACEOF
3078 /* end confdefs.h. */
3079 #include <ac_nonexistent.h>
3080 _ACEOF
3081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3083 ac_status=$?
3084 grep -v '^ *+' conftest.er1 >conftest.err
3085 rm -f conftest.er1
3086 cat conftest.err >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); } >/dev/null; then
3089 if test -s conftest.err; then
3090 ac_cpp_err=$ac_c_preproc_warn_flag
3091 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3092 else
3093 ac_cpp_err=
3095 else
3096 ac_cpp_err=yes
3098 if test -z "$ac_cpp_err"; then
3099 # Broken: success on invalid input.
3100 continue
3101 else
3102 echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3105 # Passes both tests.
3106 ac_preproc_ok=:
3107 break
3109 rm -f conftest.err conftest.$ac_ext
3111 done
3112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3113 rm -f conftest.err conftest.$ac_ext
3114 if $ac_preproc_ok; then
3116 else
3117 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3118 See \`config.log' for more details." >&5
3119 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3120 See \`config.log' for more details." >&2;}
3121 { (exit 1); exit 1; }; }
3124 ac_ext=c
3125 ac_cpp='$CPP $CPPFLAGS'
3126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3131 echo "$as_me:$LINENO: checking for X" >&5
3132 echo $ECHO_N "checking for X... $ECHO_C" >&6
3135 # Check whether --with-x or --without-x was given.
3136 if test "${with_x+set}" = set; then
3137 withval="$with_x"
3140 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3141 if test "x$with_x" = xno; then
3142 # The user explicitly disabled X.
3143 have_x=disabled
3144 else
3145 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3146 # Both variables are already set.
3147 have_x=yes
3148 else
3149 if test "${ac_cv_have_x+set}" = set; then
3150 echo $ECHO_N "(cached) $ECHO_C" >&6
3151 else
3152 # One or both of the vars are not set, and there is no cached value.
3153 ac_x_includes=no ac_x_libraries=no
3154 rm -fr conftest.dir
3155 if mkdir conftest.dir; then
3156 cd conftest.dir
3157 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3158 cat >Imakefile <<'_ACEOF'
3159 acfindx:
3160 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3161 _ACEOF
3162 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3163 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3164 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3165 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3166 for ac_extension in a so sl; do
3167 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3168 test -f $ac_im_libdir/libX11.$ac_extension; then
3169 ac_im_usrlibdir=$ac_im_libdir; break
3171 done
3172 # Screen out bogus values from the imake configuration. They are
3173 # bogus both because they are the default anyway, and because
3174 # using them would break gcc on systems where it needs fixed includes.
3175 case $ac_im_incroot in
3176 /usr/include) ;;
3177 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3178 esac
3179 case $ac_im_usrlibdir in
3180 /usr/lib | /lib) ;;
3181 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3182 esac
3184 cd ..
3185 rm -fr conftest.dir
3188 # Standard set of common directories for X headers.
3189 # Check X11 before X11Rn because it is often a symlink to the current release.
3190 ac_x_header_dirs='
3191 /usr/X11/include
3192 /usr/X11R6/include
3193 /usr/X11R5/include
3194 /usr/X11R4/include
3196 /usr/include/X11
3197 /usr/include/X11R6
3198 /usr/include/X11R5
3199 /usr/include/X11R4
3201 /usr/local/X11/include
3202 /usr/local/X11R6/include
3203 /usr/local/X11R5/include
3204 /usr/local/X11R4/include
3206 /usr/local/include/X11
3207 /usr/local/include/X11R6
3208 /usr/local/include/X11R5
3209 /usr/local/include/X11R4
3211 /usr/X386/include
3212 /usr/x386/include
3213 /usr/XFree86/include/X11
3215 /usr/include
3216 /usr/local/include
3217 /usr/unsupported/include
3218 /usr/athena/include
3219 /usr/local/x11r5/include
3220 /usr/lpp/Xamples/include
3222 /usr/openwin/include
3223 /usr/openwin/share/include'
3225 if test "$ac_x_includes" = no; then
3226 # Guess where to find include files, by looking for Intrinsic.h.
3227 # First, try using that file with no special directory specified.
3228 cat >conftest.$ac_ext <<_ACEOF
3229 /* confdefs.h. */
3230 _ACEOF
3231 cat confdefs.h >>conftest.$ac_ext
3232 cat >>conftest.$ac_ext <<_ACEOF
3233 /* end confdefs.h. */
3234 #include <X11/Intrinsic.h>
3235 _ACEOF
3236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3238 ac_status=$?
3239 grep -v '^ *+' conftest.er1 >conftest.err
3240 rm -f conftest.er1
3241 cat conftest.err >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } >/dev/null; then
3244 if test -s conftest.err; then
3245 ac_cpp_err=$ac_c_preproc_warn_flag
3246 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3247 else
3248 ac_cpp_err=
3250 else
3251 ac_cpp_err=yes
3253 if test -z "$ac_cpp_err"; then
3254 # We can compile using X headers with no special include directory.
3255 ac_x_includes=
3256 else
3257 echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3260 for ac_dir in $ac_x_header_dirs; do
3261 if test -r "$ac_dir/X11/Intrinsic.h"; then
3262 ac_x_includes=$ac_dir
3263 break
3265 done
3267 rm -f conftest.err conftest.$ac_ext
3268 fi # $ac_x_includes = no
3270 if test "$ac_x_libraries" = no; then
3271 # Check for the libraries.
3272 # See if we find them without any special options.
3273 # Don't add to $LIBS permanently.
3274 ac_save_LIBS=$LIBS
3275 LIBS="-lXt $LIBS"
3276 cat >conftest.$ac_ext <<_ACEOF
3277 /* confdefs.h. */
3278 _ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3282 #include <X11/Intrinsic.h>
3284 main ()
3286 XtMalloc (0)
3288 return 0;
3290 _ACEOF
3291 rm -f conftest.$ac_objext conftest$ac_exeext
3292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3293 (eval $ac_link) 2>conftest.er1
3294 ac_status=$?
3295 grep -v '^ *+' conftest.er1 >conftest.err
3296 rm -f conftest.er1
3297 cat conftest.err >&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); } &&
3300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302 (eval $ac_try) 2>&5
3303 ac_status=$?
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); }; } &&
3306 { ac_try='test -s conftest$ac_exeext'
3307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3308 (eval $ac_try) 2>&5
3309 ac_status=$?
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); }; }; then
3312 LIBS=$ac_save_LIBS
3313 # We can link X programs with no special library path.
3314 ac_x_libraries=
3315 else
3316 echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3319 LIBS=$ac_save_LIBS
3320 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3322 # Don't even attempt the hair of trying to link an X program!
3323 for ac_extension in a so sl; do
3324 if test -r $ac_dir/libXt.$ac_extension; then
3325 ac_x_libraries=$ac_dir
3326 break 2
3328 done
3329 done
3331 rm -f conftest.err conftest.$ac_objext \
3332 conftest$ac_exeext conftest.$ac_ext
3333 fi # $ac_x_libraries = no
3335 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3336 # Didn't find X anywhere. Cache the known absence of X.
3337 ac_cv_have_x="have_x=no"
3338 else
3339 # Record where we found X for the cache.
3340 ac_cv_have_x="have_x=yes \
3341 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3346 eval "$ac_cv_have_x"
3347 fi # $with_x != no
3349 if test "$have_x" != yes; then
3350 echo "$as_me:$LINENO: result: $have_x" >&5
3351 echo "${ECHO_T}$have_x" >&6
3352 no_x=yes
3353 else
3354 # If each of the values was on the command line, it overrides each guess.
3355 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3356 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3357 # Update the cache value to reflect the command line values.
3358 ac_cv_have_x="have_x=yes \
3359 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3360 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3361 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3364 if test "$no_x" = yes; then
3365 # Not all programs may use this symbol, but it does not hurt to define it.
3367 cat >>confdefs.h <<\_ACEOF
3368 #define X_DISPLAY_MISSING 1
3369 _ACEOF
3371 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3372 else
3373 if test -n "$x_includes"; then
3374 X_CFLAGS="$X_CFLAGS -I$x_includes"
3377 # It would also be nice to do this for all -L options, not just this one.
3378 if test -n "$x_libraries"; then
3379 X_LIBS="$X_LIBS -L$x_libraries"
3380 # For Solaris; some versions of Sun CC require a space after -R and
3381 # others require no space. Words are not sufficient . . . .
3382 case `(uname -sr) 2>/dev/null` in
3383 "SunOS 5"*)
3384 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3385 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3386 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3387 cat >conftest.$ac_ext <<_ACEOF
3388 /* confdefs.h. */
3389 _ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h. */
3395 main ()
3399 return 0;
3401 _ACEOF
3402 rm -f conftest.$ac_objext conftest$ac_exeext
3403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3404 (eval $ac_link) 2>conftest.er1
3405 ac_status=$?
3406 grep -v '^ *+' conftest.er1 >conftest.err
3407 rm -f conftest.er1
3408 cat conftest.err >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); } &&
3411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413 (eval $ac_try) 2>&5
3414 ac_status=$?
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; } &&
3417 { ac_try='test -s conftest$ac_exeext'
3418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3419 (eval $ac_try) 2>&5
3420 ac_status=$?
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); }; }; then
3423 ac_R_nospace=yes
3424 else
3425 echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3428 ac_R_nospace=no
3430 rm -f conftest.err conftest.$ac_objext \
3431 conftest$ac_exeext conftest.$ac_ext
3432 if test $ac_R_nospace = yes; then
3433 echo "$as_me:$LINENO: result: no" >&5
3434 echo "${ECHO_T}no" >&6
3435 X_LIBS="$X_LIBS -R$x_libraries"
3436 else
3437 LIBS="$ac_xsave_LIBS -R $x_libraries"
3438 cat >conftest.$ac_ext <<_ACEOF
3439 /* confdefs.h. */
3440 _ACEOF
3441 cat confdefs.h >>conftest.$ac_ext
3442 cat >>conftest.$ac_ext <<_ACEOF
3443 /* end confdefs.h. */
3446 main ()
3450 return 0;
3452 _ACEOF
3453 rm -f conftest.$ac_objext conftest$ac_exeext
3454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3455 (eval $ac_link) 2>conftest.er1
3456 ac_status=$?
3457 grep -v '^ *+' conftest.er1 >conftest.err
3458 rm -f conftest.er1
3459 cat conftest.err >&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } &&
3462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3464 (eval $ac_try) 2>&5
3465 ac_status=$?
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); }; } &&
3468 { ac_try='test -s conftest$ac_exeext'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470 (eval $ac_try) 2>&5
3471 ac_status=$?
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; }; then
3474 ac_R_space=yes
3475 else
3476 echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3479 ac_R_space=no
3481 rm -f conftest.err conftest.$ac_objext \
3482 conftest$ac_exeext conftest.$ac_ext
3483 if test $ac_R_space = yes; then
3484 echo "$as_me:$LINENO: result: yes" >&5
3485 echo "${ECHO_T}yes" >&6
3486 X_LIBS="$X_LIBS -R $x_libraries"
3487 else
3488 echo "$as_me:$LINENO: result: neither works" >&5
3489 echo "${ECHO_T}neither works" >&6
3492 LIBS=$ac_xsave_LIBS
3493 esac
3496 # Check for system-dependent libraries X programs must link with.
3497 # Do this before checking for the system-independent R6 libraries
3498 # (-lICE), since we may need -lsocket or whatever for X linking.
3500 if test "$ISC" = yes; then
3501 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3502 else
3503 # Martyn Johnson says this is needed for Ultrix, if the X
3504 # libraries were built with DECnet support. And Karl Berry says
3505 # the Alpha needs dnet_stub (dnet does not exist).
3506 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3507 cat >conftest.$ac_ext <<_ACEOF
3508 /* confdefs.h. */
3509 _ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3514 /* Override any gcc2 internal prototype to avoid an error. */
3515 #ifdef __cplusplus
3516 extern "C"
3517 #endif
3518 /* We use char because int might match the return type of a gcc2
3519 builtin and then its argument prototype would still apply. */
3520 char XOpenDisplay ();
3522 main ()
3524 XOpenDisplay ();
3526 return 0;
3528 _ACEOF
3529 rm -f conftest.$ac_objext conftest$ac_exeext
3530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3531 (eval $ac_link) 2>conftest.er1
3532 ac_status=$?
3533 grep -v '^ *+' conftest.er1 >conftest.err
3534 rm -f conftest.er1
3535 cat conftest.err >&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); } &&
3538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3540 (eval $ac_try) 2>&5
3541 ac_status=$?
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); }; } &&
3544 { ac_try='test -s conftest$ac_exeext'
3545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3546 (eval $ac_try) 2>&5
3547 ac_status=$?
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); }; }; then
3551 else
3552 echo "$as_me: failed program was:" >&5
3553 sed 's/^/| /' conftest.$ac_ext >&5
3555 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3556 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3557 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 else
3560 ac_check_lib_save_LIBS=$LIBS
3561 LIBS="-ldnet $LIBS"
3562 cat >conftest.$ac_ext <<_ACEOF
3563 /* confdefs.h. */
3564 _ACEOF
3565 cat confdefs.h >>conftest.$ac_ext
3566 cat >>conftest.$ac_ext <<_ACEOF
3567 /* end confdefs.h. */
3569 /* Override any gcc2 internal prototype to avoid an error. */
3570 #ifdef __cplusplus
3571 extern "C"
3572 #endif
3573 /* We use char because int might match the return type of a gcc2
3574 builtin and then its argument prototype would still apply. */
3575 char dnet_ntoa ();
3577 main ()
3579 dnet_ntoa ();
3581 return 0;
3583 _ACEOF
3584 rm -f conftest.$ac_objext conftest$ac_exeext
3585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3586 (eval $ac_link) 2>conftest.er1
3587 ac_status=$?
3588 grep -v '^ *+' conftest.er1 >conftest.err
3589 rm -f conftest.er1
3590 cat conftest.err >&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); } &&
3593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595 (eval $ac_try) 2>&5
3596 ac_status=$?
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }; } &&
3599 { ac_try='test -s conftest$ac_exeext'
3600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3601 (eval $ac_try) 2>&5
3602 ac_status=$?
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); }; }; then
3605 ac_cv_lib_dnet_dnet_ntoa=yes
3606 else
3607 echo "$as_me: failed program was:" >&5
3608 sed 's/^/| /' conftest.$ac_ext >&5
3610 ac_cv_lib_dnet_dnet_ntoa=no
3612 rm -f conftest.err conftest.$ac_objext \
3613 conftest$ac_exeext conftest.$ac_ext
3614 LIBS=$ac_check_lib_save_LIBS
3616 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3617 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3618 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3619 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3622 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3623 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3624 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3625 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3626 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 else
3628 ac_check_lib_save_LIBS=$LIBS
3629 LIBS="-ldnet_stub $LIBS"
3630 cat >conftest.$ac_ext <<_ACEOF
3631 /* confdefs.h. */
3632 _ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h. */
3637 /* Override any gcc2 internal prototype to avoid an error. */
3638 #ifdef __cplusplus
3639 extern "C"
3640 #endif
3641 /* We use char because int might match the return type of a gcc2
3642 builtin and then its argument prototype would still apply. */
3643 char dnet_ntoa ();
3645 main ()
3647 dnet_ntoa ();
3649 return 0;
3651 _ACEOF
3652 rm -f conftest.$ac_objext conftest$ac_exeext
3653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3654 (eval $ac_link) 2>conftest.er1
3655 ac_status=$?
3656 grep -v '^ *+' conftest.er1 >conftest.err
3657 rm -f conftest.er1
3658 cat conftest.err >&5
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); } &&
3661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663 (eval $ac_try) 2>&5
3664 ac_status=$?
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); }; } &&
3667 { ac_try='test -s conftest$ac_exeext'
3668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669 (eval $ac_try) 2>&5
3670 ac_status=$?
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; }; then
3673 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3674 else
3675 echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3678 ac_cv_lib_dnet_stub_dnet_ntoa=no
3680 rm -f conftest.err conftest.$ac_objext \
3681 conftest$ac_exeext conftest.$ac_ext
3682 LIBS=$ac_check_lib_save_LIBS
3684 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3685 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3686 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3687 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3692 rm -f conftest.err conftest.$ac_objext \
3693 conftest$ac_exeext conftest.$ac_ext
3694 LIBS="$ac_xsave_LIBS"
3696 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3697 # to get the SysV transport functions.
3698 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3699 # needs -lnsl.
3700 # The nsl library prevents programs from opening the X display
3701 # on Irix 5.2, according to T.E. Dickey.
3702 # The functions gethostbyname, getservbyname, and inet_addr are
3703 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3704 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3705 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3706 if test "${ac_cv_func_gethostbyname+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3709 cat >conftest.$ac_ext <<_ACEOF
3710 /* confdefs.h. */
3711 _ACEOF
3712 cat confdefs.h >>conftest.$ac_ext
3713 cat >>conftest.$ac_ext <<_ACEOF
3714 /* end confdefs.h. */
3715 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3717 #define gethostbyname innocuous_gethostbyname
3719 /* System header to define __stub macros and hopefully few prototypes,
3720 which can conflict with char gethostbyname (); below.
3721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3722 <limits.h> exists even on freestanding compilers. */
3724 #ifdef __STDC__
3725 # include <limits.h>
3726 #else
3727 # include <assert.h>
3728 #endif
3730 #undef gethostbyname
3732 /* Override any gcc2 internal prototype to avoid an error. */
3733 #ifdef __cplusplus
3734 extern "C"
3736 #endif
3737 /* We use char because int might match the return type of a gcc2
3738 builtin and then its argument prototype would still apply. */
3739 char gethostbyname ();
3740 /* The GNU C library defines this for functions which it implements
3741 to always fail with ENOSYS. Some functions are actually named
3742 something starting with __ and the normal name is an alias. */
3743 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3744 choke me
3745 #else
3746 char (*f) () = gethostbyname;
3747 #endif
3748 #ifdef __cplusplus
3750 #endif
3753 main ()
3755 return f != gethostbyname;
3757 return 0;
3759 _ACEOF
3760 rm -f conftest.$ac_objext conftest$ac_exeext
3761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3762 (eval $ac_link) 2>conftest.er1
3763 ac_status=$?
3764 grep -v '^ *+' conftest.er1 >conftest.err
3765 rm -f conftest.er1
3766 cat conftest.err >&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); } &&
3769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771 (eval $ac_try) 2>&5
3772 ac_status=$?
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); }; } &&
3775 { ac_try='test -s conftest$ac_exeext'
3776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3777 (eval $ac_try) 2>&5
3778 ac_status=$?
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); }; }; then
3781 ac_cv_func_gethostbyname=yes
3782 else
3783 echo "$as_me: failed program was:" >&5
3784 sed 's/^/| /' conftest.$ac_ext >&5
3786 ac_cv_func_gethostbyname=no
3788 rm -f conftest.err conftest.$ac_objext \
3789 conftest$ac_exeext conftest.$ac_ext
3791 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3792 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3794 if test $ac_cv_func_gethostbyname = no; then
3795 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3796 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3797 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3799 else
3800 ac_check_lib_save_LIBS=$LIBS
3801 LIBS="-lnsl $LIBS"
3802 cat >conftest.$ac_ext <<_ACEOF
3803 /* confdefs.h. */
3804 _ACEOF
3805 cat confdefs.h >>conftest.$ac_ext
3806 cat >>conftest.$ac_ext <<_ACEOF
3807 /* end confdefs.h. */
3809 /* Override any gcc2 internal prototype to avoid an error. */
3810 #ifdef __cplusplus
3811 extern "C"
3812 #endif
3813 /* We use char because int might match the return type of a gcc2
3814 builtin and then its argument prototype would still apply. */
3815 char gethostbyname ();
3817 main ()
3819 gethostbyname ();
3821 return 0;
3823 _ACEOF
3824 rm -f conftest.$ac_objext conftest$ac_exeext
3825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3826 (eval $ac_link) 2>conftest.er1
3827 ac_status=$?
3828 grep -v '^ *+' conftest.er1 >conftest.err
3829 rm -f conftest.er1
3830 cat conftest.err >&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } &&
3833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3835 (eval $ac_try) 2>&5
3836 ac_status=$?
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); }; } &&
3839 { ac_try='test -s conftest$ac_exeext'
3840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841 (eval $ac_try) 2>&5
3842 ac_status=$?
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); }; }; then
3845 ac_cv_lib_nsl_gethostbyname=yes
3846 else
3847 echo "$as_me: failed program was:" >&5
3848 sed 's/^/| /' conftest.$ac_ext >&5
3850 ac_cv_lib_nsl_gethostbyname=no
3852 rm -f conftest.err conftest.$ac_objext \
3853 conftest$ac_exeext conftest.$ac_ext
3854 LIBS=$ac_check_lib_save_LIBS
3856 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3857 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3858 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3859 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3862 if test $ac_cv_lib_nsl_gethostbyname = no; then
3863 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3864 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3865 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 else
3868 ac_check_lib_save_LIBS=$LIBS
3869 LIBS="-lbsd $LIBS"
3870 cat >conftest.$ac_ext <<_ACEOF
3871 /* confdefs.h. */
3872 _ACEOF
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h. */
3877 /* Override any gcc2 internal prototype to avoid an error. */
3878 #ifdef __cplusplus
3879 extern "C"
3880 #endif
3881 /* We use char because int might match the return type of a gcc2
3882 builtin and then its argument prototype would still apply. */
3883 char gethostbyname ();
3885 main ()
3887 gethostbyname ();
3889 return 0;
3891 _ACEOF
3892 rm -f conftest.$ac_objext conftest$ac_exeext
3893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3894 (eval $ac_link) 2>conftest.er1
3895 ac_status=$?
3896 grep -v '^ *+' conftest.er1 >conftest.err
3897 rm -f conftest.er1
3898 cat conftest.err >&5
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); } &&
3901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3903 (eval $ac_try) 2>&5
3904 ac_status=$?
3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); }; } &&
3907 { ac_try='test -s conftest$ac_exeext'
3908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3909 (eval $ac_try) 2>&5
3910 ac_status=$?
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); }; }; then
3913 ac_cv_lib_bsd_gethostbyname=yes
3914 else
3915 echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3918 ac_cv_lib_bsd_gethostbyname=no
3920 rm -f conftest.err conftest.$ac_objext \
3921 conftest$ac_exeext conftest.$ac_ext
3922 LIBS=$ac_check_lib_save_LIBS
3924 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3925 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3926 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3927 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3933 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3934 # socket/setsockopt and other routines are undefined under SCO ODT
3935 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3936 # on later versions), says Simon Leinen: it contains gethostby*
3937 # variants that don't use the name server (or something). -lsocket
3938 # must be given before -lnsl if both are needed. We assume that
3939 # if connect needs -lnsl, so does gethostbyname.
3940 echo "$as_me:$LINENO: checking for connect" >&5
3941 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3942 if test "${ac_cv_func_connect+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945 cat >conftest.$ac_ext <<_ACEOF
3946 /* confdefs.h. */
3947 _ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h. */
3951 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
3952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3953 #define connect innocuous_connect
3955 /* System header to define __stub macros and hopefully few prototypes,
3956 which can conflict with char connect (); below.
3957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3958 <limits.h> exists even on freestanding compilers. */
3960 #ifdef __STDC__
3961 # include <limits.h>
3962 #else
3963 # include <assert.h>
3964 #endif
3966 #undef connect
3968 /* Override any gcc2 internal prototype to avoid an error. */
3969 #ifdef __cplusplus
3970 extern "C"
3972 #endif
3973 /* We use char because int might match the return type of a gcc2
3974 builtin and then its argument prototype would still apply. */
3975 char connect ();
3976 /* The GNU C library defines this for functions which it implements
3977 to always fail with ENOSYS. Some functions are actually named
3978 something starting with __ and the normal name is an alias. */
3979 #if defined (__stub_connect) || defined (__stub___connect)
3980 choke me
3981 #else
3982 char (*f) () = connect;
3983 #endif
3984 #ifdef __cplusplus
3986 #endif
3989 main ()
3991 return f != connect;
3993 return 0;
3995 _ACEOF
3996 rm -f conftest.$ac_objext conftest$ac_exeext
3997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3998 (eval $ac_link) 2>conftest.er1
3999 ac_status=$?
4000 grep -v '^ *+' conftest.er1 >conftest.err
4001 rm -f conftest.er1
4002 cat conftest.err >&5
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } &&
4005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007 (eval $ac_try) 2>&5
4008 ac_status=$?
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; } &&
4011 { ac_try='test -s conftest$ac_exeext'
4012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013 (eval $ac_try) 2>&5
4014 ac_status=$?
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; }; then
4017 ac_cv_func_connect=yes
4018 else
4019 echo "$as_me: failed program was:" >&5
4020 sed 's/^/| /' conftest.$ac_ext >&5
4022 ac_cv_func_connect=no
4024 rm -f conftest.err conftest.$ac_objext \
4025 conftest$ac_exeext conftest.$ac_ext
4027 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4028 echo "${ECHO_T}$ac_cv_func_connect" >&6
4030 if test $ac_cv_func_connect = no; then
4031 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4032 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4033 if test "${ac_cv_lib_socket_connect+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4035 else
4036 ac_check_lib_save_LIBS=$LIBS
4037 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4038 cat >conftest.$ac_ext <<_ACEOF
4039 /* confdefs.h. */
4040 _ACEOF
4041 cat confdefs.h >>conftest.$ac_ext
4042 cat >>conftest.$ac_ext <<_ACEOF
4043 /* end confdefs.h. */
4045 /* Override any gcc2 internal prototype to avoid an error. */
4046 #ifdef __cplusplus
4047 extern "C"
4048 #endif
4049 /* We use char because int might match the return type of a gcc2
4050 builtin and then its argument prototype would still apply. */
4051 char connect ();
4053 main ()
4055 connect ();
4057 return 0;
4059 _ACEOF
4060 rm -f conftest.$ac_objext conftest$ac_exeext
4061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4062 (eval $ac_link) 2>conftest.er1
4063 ac_status=$?
4064 grep -v '^ *+' conftest.er1 >conftest.err
4065 rm -f conftest.er1
4066 cat conftest.err >&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } &&
4069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071 (eval $ac_try) 2>&5
4072 ac_status=$?
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); }; } &&
4075 { ac_try='test -s conftest$ac_exeext'
4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077 (eval $ac_try) 2>&5
4078 ac_status=$?
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; }; then
4081 ac_cv_lib_socket_connect=yes
4082 else
4083 echo "$as_me: failed program was:" >&5
4084 sed 's/^/| /' conftest.$ac_ext >&5
4086 ac_cv_lib_socket_connect=no
4088 rm -f conftest.err conftest.$ac_objext \
4089 conftest$ac_exeext conftest.$ac_ext
4090 LIBS=$ac_check_lib_save_LIBS
4092 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4093 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4094 if test $ac_cv_lib_socket_connect = yes; then
4095 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4100 # Guillermo Gomez says -lposix is necessary on A/UX.
4101 echo "$as_me:$LINENO: checking for remove" >&5
4102 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4103 if test "${ac_cv_func_remove+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4105 else
4106 cat >conftest.$ac_ext <<_ACEOF
4107 /* confdefs.h. */
4108 _ACEOF
4109 cat confdefs.h >>conftest.$ac_ext
4110 cat >>conftest.$ac_ext <<_ACEOF
4111 /* end confdefs.h. */
4112 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4114 #define remove innocuous_remove
4116 /* System header to define __stub macros and hopefully few prototypes,
4117 which can conflict with char remove (); below.
4118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4119 <limits.h> exists even on freestanding compilers. */
4121 #ifdef __STDC__
4122 # include <limits.h>
4123 #else
4124 # include <assert.h>
4125 #endif
4127 #undef remove
4129 /* Override any gcc2 internal prototype to avoid an error. */
4130 #ifdef __cplusplus
4131 extern "C"
4133 #endif
4134 /* We use char because int might match the return type of a gcc2
4135 builtin and then its argument prototype would still apply. */
4136 char remove ();
4137 /* The GNU C library defines this for functions which it implements
4138 to always fail with ENOSYS. Some functions are actually named
4139 something starting with __ and the normal name is an alias. */
4140 #if defined (__stub_remove) || defined (__stub___remove)
4141 choke me
4142 #else
4143 char (*f) () = remove;
4144 #endif
4145 #ifdef __cplusplus
4147 #endif
4150 main ()
4152 return f != remove;
4154 return 0;
4156 _ACEOF
4157 rm -f conftest.$ac_objext conftest$ac_exeext
4158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4159 (eval $ac_link) 2>conftest.er1
4160 ac_status=$?
4161 grep -v '^ *+' conftest.er1 >conftest.err
4162 rm -f conftest.er1
4163 cat conftest.err >&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); } &&
4166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168 (eval $ac_try) 2>&5
4169 ac_status=$?
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; } &&
4172 { ac_try='test -s conftest$ac_exeext'
4173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174 (eval $ac_try) 2>&5
4175 ac_status=$?
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; }; then
4178 ac_cv_func_remove=yes
4179 else
4180 echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4183 ac_cv_func_remove=no
4185 rm -f conftest.err conftest.$ac_objext \
4186 conftest$ac_exeext conftest.$ac_ext
4188 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4189 echo "${ECHO_T}$ac_cv_func_remove" >&6
4191 if test $ac_cv_func_remove = no; then
4192 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4193 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4194 if test "${ac_cv_lib_posix_remove+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197 ac_check_lib_save_LIBS=$LIBS
4198 LIBS="-lposix $LIBS"
4199 cat >conftest.$ac_ext <<_ACEOF
4200 /* confdefs.h. */
4201 _ACEOF
4202 cat confdefs.h >>conftest.$ac_ext
4203 cat >>conftest.$ac_ext <<_ACEOF
4204 /* end confdefs.h. */
4206 /* Override any gcc2 internal prototype to avoid an error. */
4207 #ifdef __cplusplus
4208 extern "C"
4209 #endif
4210 /* We use char because int might match the return type of a gcc2
4211 builtin and then its argument prototype would still apply. */
4212 char remove ();
4214 main ()
4216 remove ();
4218 return 0;
4220 _ACEOF
4221 rm -f conftest.$ac_objext conftest$ac_exeext
4222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4223 (eval $ac_link) 2>conftest.er1
4224 ac_status=$?
4225 grep -v '^ *+' conftest.er1 >conftest.err
4226 rm -f conftest.er1
4227 cat conftest.err >&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } &&
4230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4232 (eval $ac_try) 2>&5
4233 ac_status=$?
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; } &&
4236 { ac_try='test -s conftest$ac_exeext'
4237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4238 (eval $ac_try) 2>&5
4239 ac_status=$?
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); }; }; then
4242 ac_cv_lib_posix_remove=yes
4243 else
4244 echo "$as_me: failed program was:" >&5
4245 sed 's/^/| /' conftest.$ac_ext >&5
4247 ac_cv_lib_posix_remove=no
4249 rm -f conftest.err conftest.$ac_objext \
4250 conftest$ac_exeext conftest.$ac_ext
4251 LIBS=$ac_check_lib_save_LIBS
4253 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4254 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4255 if test $ac_cv_lib_posix_remove = yes; then
4256 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4261 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4262 echo "$as_me:$LINENO: checking for shmat" >&5
4263 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4264 if test "${ac_cv_func_shmat+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 else
4267 cat >conftest.$ac_ext <<_ACEOF
4268 /* confdefs.h. */
4269 _ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h. */
4273 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4275 #define shmat innocuous_shmat
4277 /* System header to define __stub macros and hopefully few prototypes,
4278 which can conflict with char shmat (); below.
4279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4280 <limits.h> exists even on freestanding compilers. */
4282 #ifdef __STDC__
4283 # include <limits.h>
4284 #else
4285 # include <assert.h>
4286 #endif
4288 #undef shmat
4290 /* Override any gcc2 internal prototype to avoid an error. */
4291 #ifdef __cplusplus
4292 extern "C"
4294 #endif
4295 /* We use char because int might match the return type of a gcc2
4296 builtin and then its argument prototype would still apply. */
4297 char shmat ();
4298 /* The GNU C library defines this for functions which it implements
4299 to always fail with ENOSYS. Some functions are actually named
4300 something starting with __ and the normal name is an alias. */
4301 #if defined (__stub_shmat) || defined (__stub___shmat)
4302 choke me
4303 #else
4304 char (*f) () = shmat;
4305 #endif
4306 #ifdef __cplusplus
4308 #endif
4311 main ()
4313 return f != shmat;
4315 return 0;
4317 _ACEOF
4318 rm -f conftest.$ac_objext conftest$ac_exeext
4319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4320 (eval $ac_link) 2>conftest.er1
4321 ac_status=$?
4322 grep -v '^ *+' conftest.er1 >conftest.err
4323 rm -f conftest.er1
4324 cat conftest.err >&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); } &&
4327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329 (eval $ac_try) 2>&5
4330 ac_status=$?
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; } &&
4333 { ac_try='test -s conftest$ac_exeext'
4334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335 (eval $ac_try) 2>&5
4336 ac_status=$?
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); }; }; then
4339 ac_cv_func_shmat=yes
4340 else
4341 echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4344 ac_cv_func_shmat=no
4346 rm -f conftest.err conftest.$ac_objext \
4347 conftest$ac_exeext conftest.$ac_ext
4349 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4350 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4352 if test $ac_cv_func_shmat = no; then
4353 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4354 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4355 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 else
4358 ac_check_lib_save_LIBS=$LIBS
4359 LIBS="-lipc $LIBS"
4360 cat >conftest.$ac_ext <<_ACEOF
4361 /* confdefs.h. */
4362 _ACEOF
4363 cat confdefs.h >>conftest.$ac_ext
4364 cat >>conftest.$ac_ext <<_ACEOF
4365 /* end confdefs.h. */
4367 /* Override any gcc2 internal prototype to avoid an error. */
4368 #ifdef __cplusplus
4369 extern "C"
4370 #endif
4371 /* We use char because int might match the return type of a gcc2
4372 builtin and then its argument prototype would still apply. */
4373 char shmat ();
4375 main ()
4377 shmat ();
4379 return 0;
4381 _ACEOF
4382 rm -f conftest.$ac_objext conftest$ac_exeext
4383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4384 (eval $ac_link) 2>conftest.er1
4385 ac_status=$?
4386 grep -v '^ *+' conftest.er1 >conftest.err
4387 rm -f conftest.er1
4388 cat conftest.err >&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } &&
4391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393 (eval $ac_try) 2>&5
4394 ac_status=$?
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; } &&
4397 { ac_try='test -s conftest$ac_exeext'
4398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4399 (eval $ac_try) 2>&5
4400 ac_status=$?
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); }; }; then
4403 ac_cv_lib_ipc_shmat=yes
4404 else
4405 echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.$ac_ext >&5
4408 ac_cv_lib_ipc_shmat=no
4410 rm -f conftest.err conftest.$ac_objext \
4411 conftest$ac_exeext conftest.$ac_ext
4412 LIBS=$ac_check_lib_save_LIBS
4414 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4415 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4416 if test $ac_cv_lib_ipc_shmat = yes; then
4417 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4423 # Check for libraries that X11R6 Xt/Xaw programs need.
4424 ac_save_LDFLAGS=$LDFLAGS
4425 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4426 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4427 # check for ICE first), but we must link in the order -lSM -lICE or
4428 # we get undefined symbols. So assume we have SM if we have ICE.
4429 # These have to be linked with before -lX11, unlike the other
4430 # libraries we check for below, so use a different variable.
4431 # John Interrante, Karl Berry
4432 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4433 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4434 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4436 else
4437 ac_check_lib_save_LIBS=$LIBS
4438 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4439 cat >conftest.$ac_ext <<_ACEOF
4440 /* confdefs.h. */
4441 _ACEOF
4442 cat confdefs.h >>conftest.$ac_ext
4443 cat >>conftest.$ac_ext <<_ACEOF
4444 /* end confdefs.h. */
4446 /* Override any gcc2 internal prototype to avoid an error. */
4447 #ifdef __cplusplus
4448 extern "C"
4449 #endif
4450 /* We use char because int might match the return type of a gcc2
4451 builtin and then its argument prototype would still apply. */
4452 char IceConnectionNumber ();
4454 main ()
4456 IceConnectionNumber ();
4458 return 0;
4460 _ACEOF
4461 rm -f conftest.$ac_objext conftest$ac_exeext
4462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4463 (eval $ac_link) 2>conftest.er1
4464 ac_status=$?
4465 grep -v '^ *+' conftest.er1 >conftest.err
4466 rm -f conftest.er1
4467 cat conftest.err >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } &&
4470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4472 (eval $ac_try) 2>&5
4473 ac_status=$?
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); }; } &&
4476 { ac_try='test -s conftest$ac_exeext'
4477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4478 (eval $ac_try) 2>&5
4479 ac_status=$?
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); }; }; then
4482 ac_cv_lib_ICE_IceConnectionNumber=yes
4483 else
4484 echo "$as_me: failed program was:" >&5
4485 sed 's/^/| /' conftest.$ac_ext >&5
4487 ac_cv_lib_ICE_IceConnectionNumber=no
4489 rm -f conftest.err conftest.$ac_objext \
4490 conftest$ac_exeext conftest.$ac_ext
4491 LIBS=$ac_check_lib_save_LIBS
4493 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4494 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4495 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4496 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4499 LDFLAGS=$ac_save_LDFLAGS
4503 for ac_prog in flex lex
4505 # Extract the first word of "$ac_prog", so it can be a program name with args.
4506 set dummy $ac_prog; ac_word=$2
4507 echo "$as_me:$LINENO: checking for $ac_word" >&5
4508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4509 if test "${ac_cv_prog_LEX+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4511 else
4512 if test -n "$LEX"; then
4513 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4514 else
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 for as_dir in $PATH
4518 IFS=$as_save_IFS
4519 test -z "$as_dir" && as_dir=.
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4522 ac_cv_prog_LEX="$ac_prog"
4523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4524 break 2
4526 done
4527 done
4531 LEX=$ac_cv_prog_LEX
4532 if test -n "$LEX"; then
4533 echo "$as_me:$LINENO: result: $LEX" >&5
4534 echo "${ECHO_T}$LEX" >&6
4535 else
4536 echo "$as_me:$LINENO: result: no" >&5
4537 echo "${ECHO_T}no" >&6
4540 test -n "$LEX" && break
4541 done
4542 test -n "$LEX" || LEX=":"
4544 if test -z "$LEXLIB"
4545 then
4546 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4547 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4548 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 else
4551 ac_check_lib_save_LIBS=$LIBS
4552 LIBS="-lfl $LIBS"
4553 cat >conftest.$ac_ext <<_ACEOF
4554 /* confdefs.h. */
4555 _ACEOF
4556 cat confdefs.h >>conftest.$ac_ext
4557 cat >>conftest.$ac_ext <<_ACEOF
4558 /* end confdefs.h. */
4560 /* Override any gcc2 internal prototype to avoid an error. */
4561 #ifdef __cplusplus
4562 extern "C"
4563 #endif
4564 /* We use char because int might match the return type of a gcc2
4565 builtin and then its argument prototype would still apply. */
4566 char yywrap ();
4568 main ()
4570 yywrap ();
4572 return 0;
4574 _ACEOF
4575 rm -f conftest.$ac_objext conftest$ac_exeext
4576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4577 (eval $ac_link) 2>conftest.er1
4578 ac_status=$?
4579 grep -v '^ *+' conftest.er1 >conftest.err
4580 rm -f conftest.er1
4581 cat conftest.err >&5
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); } &&
4584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4586 (eval $ac_try) 2>&5
4587 ac_status=$?
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); }; } &&
4590 { ac_try='test -s conftest$ac_exeext'
4591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592 (eval $ac_try) 2>&5
4593 ac_status=$?
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }; }; then
4596 ac_cv_lib_fl_yywrap=yes
4597 else
4598 echo "$as_me: failed program was:" >&5
4599 sed 's/^/| /' conftest.$ac_ext >&5
4601 ac_cv_lib_fl_yywrap=no
4603 rm -f conftest.err conftest.$ac_objext \
4604 conftest$ac_exeext conftest.$ac_ext
4605 LIBS=$ac_check_lib_save_LIBS
4607 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4608 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4609 if test $ac_cv_lib_fl_yywrap = yes; then
4610 LEXLIB="-lfl"
4611 else
4612 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4613 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4614 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4616 else
4617 ac_check_lib_save_LIBS=$LIBS
4618 LIBS="-ll $LIBS"
4619 cat >conftest.$ac_ext <<_ACEOF
4620 /* confdefs.h. */
4621 _ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h. */
4626 /* Override any gcc2 internal prototype to avoid an error. */
4627 #ifdef __cplusplus
4628 extern "C"
4629 #endif
4630 /* We use char because int might match the return type of a gcc2
4631 builtin and then its argument prototype would still apply. */
4632 char yywrap ();
4634 main ()
4636 yywrap ();
4638 return 0;
4640 _ACEOF
4641 rm -f conftest.$ac_objext conftest$ac_exeext
4642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4643 (eval $ac_link) 2>conftest.er1
4644 ac_status=$?
4645 grep -v '^ *+' conftest.er1 >conftest.err
4646 rm -f conftest.er1
4647 cat conftest.err >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } &&
4650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4652 (eval $ac_try) 2>&5
4653 ac_status=$?
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); }; } &&
4656 { ac_try='test -s conftest$ac_exeext'
4657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4658 (eval $ac_try) 2>&5
4659 ac_status=$?
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; }; then
4662 ac_cv_lib_l_yywrap=yes
4663 else
4664 echo "$as_me: failed program was:" >&5
4665 sed 's/^/| /' conftest.$ac_ext >&5
4667 ac_cv_lib_l_yywrap=no
4669 rm -f conftest.err conftest.$ac_objext \
4670 conftest$ac_exeext conftest.$ac_ext
4671 LIBS=$ac_check_lib_save_LIBS
4673 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4674 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4675 if test $ac_cv_lib_l_yywrap = yes; then
4676 LEXLIB="-ll"
4683 if test "x$LEX" != "x:"; then
4684 echo "$as_me:$LINENO: checking lex output file root" >&5
4685 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4686 if test "${ac_cv_prog_lex_root+set}" = set; then
4687 echo $ECHO_N "(cached) $ECHO_C" >&6
4688 else
4689 # The minimal lex program is just a single line: %%. But some broken lexes
4690 # (Solaris, I think it was) want two %% lines, so accommodate them.
4691 cat >conftest.l <<_ACEOF
4694 _ACEOF
4695 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4696 (eval $LEX conftest.l) 2>&5
4697 ac_status=$?
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); }
4700 if test -f lex.yy.c; then
4701 ac_cv_prog_lex_root=lex.yy
4702 elif test -f lexyy.c; then
4703 ac_cv_prog_lex_root=lexyy
4704 else
4705 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4706 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4707 { (exit 1); exit 1; }; }
4710 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4711 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4712 rm -f conftest.l
4713 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4715 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4716 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4717 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4719 else
4720 # POSIX says lex can declare yytext either as a pointer or an array; the
4721 # default is implementation-dependent. Figure out which it is, since
4722 # not all implementations provide the %pointer and %array declarations.
4723 ac_cv_prog_lex_yytext_pointer=no
4724 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4725 ac_save_LIBS=$LIBS
4726 LIBS="$LIBS $LEXLIB"
4727 cat >conftest.$ac_ext <<_ACEOF
4728 `cat $LEX_OUTPUT_ROOT.c`
4729 _ACEOF
4730 rm -f conftest.$ac_objext conftest$ac_exeext
4731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4732 (eval $ac_link) 2>conftest.er1
4733 ac_status=$?
4734 grep -v '^ *+' conftest.er1 >conftest.err
4735 rm -f conftest.er1
4736 cat conftest.err >&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } &&
4739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741 (eval $ac_try) 2>&5
4742 ac_status=$?
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; } &&
4745 { ac_try='test -s conftest$ac_exeext'
4746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4747 (eval $ac_try) 2>&5
4748 ac_status=$?
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); }; }; then
4751 ac_cv_prog_lex_yytext_pointer=yes
4752 else
4753 echo "$as_me: failed program was:" >&5
4754 sed 's/^/| /' conftest.$ac_ext >&5
4757 rm -f conftest.err conftest.$ac_objext \
4758 conftest$ac_exeext conftest.$ac_ext
4759 LIBS=$ac_save_LIBS
4760 rm -f "${LEX_OUTPUT_ROOT}.c"
4763 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4764 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4765 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4767 cat >>confdefs.h <<\_ACEOF
4768 #define YYTEXT_POINTER 1
4769 _ACEOF
4775 for ac_prog in $LEX flex lex
4777 # Extract the first word of "$ac_prog", so it can be a program name with args.
4778 set dummy $ac_prog; ac_word=$2
4779 echo "$as_me:$LINENO: checking for $ac_word" >&5
4780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4781 if test "${ac_cv_prog_XLEX+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4783 else
4784 if test -n "$XLEX"; then
4785 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4786 else
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH
4790 IFS=$as_save_IFS
4791 test -z "$as_dir" && as_dir=.
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4794 ac_cv_prog_XLEX="$ac_prog"
4795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4796 break 2
4798 done
4799 done
4803 XLEX=$ac_cv_prog_XLEX
4804 if test -n "$XLEX"; then
4805 echo "$as_me:$LINENO: result: $XLEX" >&5
4806 echo "${ECHO_T}$XLEX" >&6
4807 else
4808 echo "$as_me:$LINENO: result: no" >&5
4809 echo "${ECHO_T}no" >&6
4812 test -n "$XLEX" && break
4813 done
4814 test -n "$XLEX" || XLEX="none"
4816 if test "$XLEX" = "none"
4817 then
4818 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
4819 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4820 { (exit 1); exit 1; }; }
4823 for ac_prog in bison
4825 # Extract the first word of "$ac_prog", so it can be a program name with args.
4826 set dummy $ac_prog; ac_word=$2
4827 echo "$as_me:$LINENO: checking for $ac_word" >&5
4828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4829 if test "${ac_cv_prog_BISON+set}" = set; then
4830 echo $ECHO_N "(cached) $ECHO_C" >&6
4831 else
4832 if test -n "$BISON"; then
4833 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4834 else
4835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 for as_dir in $PATH
4838 IFS=$as_save_IFS
4839 test -z "$as_dir" && as_dir=.
4840 for ac_exec_ext in '' $ac_executable_extensions; do
4841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4842 ac_cv_prog_BISON="$ac_prog"
4843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4844 break 2
4846 done
4847 done
4851 BISON=$ac_cv_prog_BISON
4852 if test -n "$BISON"; then
4853 echo "$as_me:$LINENO: result: $BISON" >&5
4854 echo "${ECHO_T}$BISON" >&6
4855 else
4856 echo "$as_me:$LINENO: result: no" >&5
4857 echo "${ECHO_T}no" >&6
4860 test -n "$BISON" && break
4861 done
4862 test -n "$BISON" || BISON="none"
4864 if test "$BISON" = "none"
4865 then
4866 { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
4867 echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
4868 { (exit 1); exit 1; }; }
4871 if test -n "$ac_tool_prefix"; then
4872 for ac_prog in gas as
4874 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4875 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4876 echo "$as_me:$LINENO: checking for $ac_word" >&5
4877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4878 if test "${ac_cv_prog_AS+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4880 else
4881 if test -n "$AS"; then
4882 ac_cv_prog_AS="$AS" # Let the user override the test.
4883 else
4884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885 for as_dir in $PATH
4887 IFS=$as_save_IFS
4888 test -z "$as_dir" && as_dir=.
4889 for ac_exec_ext in '' $ac_executable_extensions; do
4890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4891 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
4892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4893 break 2
4895 done
4896 done
4900 AS=$ac_cv_prog_AS
4901 if test -n "$AS"; then
4902 echo "$as_me:$LINENO: result: $AS" >&5
4903 echo "${ECHO_T}$AS" >&6
4904 else
4905 echo "$as_me:$LINENO: result: no" >&5
4906 echo "${ECHO_T}no" >&6
4909 test -n "$AS" && break
4910 done
4912 if test -z "$AS"; then
4913 ac_ct_AS=$AS
4914 for ac_prog in gas as
4916 # Extract the first word of "$ac_prog", so it can be a program name with args.
4917 set dummy $ac_prog; ac_word=$2
4918 echo "$as_me:$LINENO: checking for $ac_word" >&5
4919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4920 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4922 else
4923 if test -n "$ac_ct_AS"; then
4924 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4925 else
4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927 for as_dir in $PATH
4929 IFS=$as_save_IFS
4930 test -z "$as_dir" && as_dir=.
4931 for ac_exec_ext in '' $ac_executable_extensions; do
4932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4933 ac_cv_prog_ac_ct_AS="$ac_prog"
4934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4935 break 2
4937 done
4938 done
4942 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4943 if test -n "$ac_ct_AS"; then
4944 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4945 echo "${ECHO_T}$ac_ct_AS" >&6
4946 else
4947 echo "$as_me:$LINENO: result: no" >&5
4948 echo "${ECHO_T}no" >&6
4951 test -n "$ac_ct_AS" && break
4952 done
4953 test -n "$ac_ct_AS" || ac_ct_AS="as"
4955 AS=$ac_ct_AS
4958 if test -n "$ac_tool_prefix"; then
4959 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4960 set dummy ${ac_tool_prefix}ld; ac_word=$2
4961 echo "$as_me:$LINENO: checking for $ac_word" >&5
4962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4963 if test "${ac_cv_prog_LD+set}" = set; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
4965 else
4966 if test -n "$LD"; then
4967 ac_cv_prog_LD="$LD" # Let the user override the test.
4968 else
4969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 for as_dir in $PATH
4972 IFS=$as_save_IFS
4973 test -z "$as_dir" && as_dir=.
4974 for ac_exec_ext in '' $ac_executable_extensions; do
4975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4976 ac_cv_prog_LD="${ac_tool_prefix}ld"
4977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4978 break 2
4980 done
4981 done
4985 LD=$ac_cv_prog_LD
4986 if test -n "$LD"; then
4987 echo "$as_me:$LINENO: result: $LD" >&5
4988 echo "${ECHO_T}$LD" >&6
4989 else
4990 echo "$as_me:$LINENO: result: no" >&5
4991 echo "${ECHO_T}no" >&6
4995 if test -z "$ac_cv_prog_LD"; then
4996 ac_ct_LD=$LD
4997 # Extract the first word of "ld", so it can be a program name with args.
4998 set dummy ld; ac_word=$2
4999 echo "$as_me:$LINENO: checking for $ac_word" >&5
5000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5001 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 else
5004 if test -n "$ac_ct_LD"; then
5005 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5006 else
5007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008 for as_dir in $PATH
5010 IFS=$as_save_IFS
5011 test -z "$as_dir" && as_dir=.
5012 for ac_exec_ext in '' $ac_executable_extensions; do
5013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5014 ac_cv_prog_ac_ct_LD="ld"
5015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5016 break 2
5018 done
5019 done
5021 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
5024 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5025 if test -n "$ac_ct_LD"; then
5026 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5027 echo "${ECHO_T}$ac_ct_LD" >&6
5028 else
5029 echo "$as_me:$LINENO: result: no" >&5
5030 echo "${ECHO_T}no" >&6
5033 LD=$ac_ct_LD
5034 else
5035 LD="$ac_cv_prog_LD"
5038 if test -n "$ac_tool_prefix"; then
5039 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5040 set dummy ${ac_tool_prefix}ar; ac_word=$2
5041 echo "$as_me:$LINENO: checking for $ac_word" >&5
5042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5043 if test "${ac_cv_prog_AR+set}" = set; then
5044 echo $ECHO_N "(cached) $ECHO_C" >&6
5045 else
5046 if test -n "$AR"; then
5047 ac_cv_prog_AR="$AR" # Let the user override the test.
5048 else
5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 for as_dir in $PATH
5052 IFS=$as_save_IFS
5053 test -z "$as_dir" && as_dir=.
5054 for ac_exec_ext in '' $ac_executable_extensions; do
5055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5056 ac_cv_prog_AR="${ac_tool_prefix}ar"
5057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5058 break 2
5060 done
5061 done
5065 AR=$ac_cv_prog_AR
5066 if test -n "$AR"; then
5067 echo "$as_me:$LINENO: result: $AR" >&5
5068 echo "${ECHO_T}$AR" >&6
5069 else
5070 echo "$as_me:$LINENO: result: no" >&5
5071 echo "${ECHO_T}no" >&6
5075 if test -z "$ac_cv_prog_AR"; then
5076 ac_ct_AR=$AR
5077 # Extract the first word of "ar", so it can be a program name with args.
5078 set dummy ar; ac_word=$2
5079 echo "$as_me:$LINENO: checking for $ac_word" >&5
5080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5081 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5082 echo $ECHO_N "(cached) $ECHO_C" >&6
5083 else
5084 if test -n "$ac_ct_AR"; then
5085 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5086 else
5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088 for as_dir in $PATH
5090 IFS=$as_save_IFS
5091 test -z "$as_dir" && as_dir=.
5092 for ac_exec_ext in '' $ac_executable_extensions; do
5093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5094 ac_cv_prog_ac_ct_AR="ar"
5095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5096 break 2
5098 done
5099 done
5101 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
5104 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5105 if test -n "$ac_ct_AR"; then
5106 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5107 echo "${ECHO_T}$ac_ct_AR" >&6
5108 else
5109 echo "$as_me:$LINENO: result: no" >&5
5110 echo "${ECHO_T}no" >&6
5113 AR=$ac_ct_AR
5114 else
5115 AR="$ac_cv_prog_AR"
5118 if test -n "$ac_tool_prefix"; then
5119 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5120 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5121 echo "$as_me:$LINENO: checking for $ac_word" >&5
5122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5123 if test "${ac_cv_prog_RANLIB+set}" = set; then
5124 echo $ECHO_N "(cached) $ECHO_C" >&6
5125 else
5126 if test -n "$RANLIB"; then
5127 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5128 else
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130 for as_dir in $PATH
5132 IFS=$as_save_IFS
5133 test -z "$as_dir" && as_dir=.
5134 for ac_exec_ext in '' $ac_executable_extensions; do
5135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5136 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5138 break 2
5140 done
5141 done
5145 RANLIB=$ac_cv_prog_RANLIB
5146 if test -n "$RANLIB"; then
5147 echo "$as_me:$LINENO: result: $RANLIB" >&5
5148 echo "${ECHO_T}$RANLIB" >&6
5149 else
5150 echo "$as_me:$LINENO: result: no" >&5
5151 echo "${ECHO_T}no" >&6
5155 if test -z "$ac_cv_prog_RANLIB"; then
5156 ac_ct_RANLIB=$RANLIB
5157 # Extract the first word of "ranlib", so it can be a program name with args.
5158 set dummy ranlib; ac_word=$2
5159 echo "$as_me:$LINENO: checking for $ac_word" >&5
5160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5161 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5163 else
5164 if test -n "$ac_ct_RANLIB"; then
5165 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5166 else
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 for as_dir in $PATH
5170 IFS=$as_save_IFS
5171 test -z "$as_dir" && as_dir=.
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5174 ac_cv_prog_ac_ct_RANLIB="ranlib"
5175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5176 break 2
5178 done
5179 done
5181 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5184 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5185 if test -n "$ac_ct_RANLIB"; then
5186 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5187 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5188 else
5189 echo "$as_me:$LINENO: result: no" >&5
5190 echo "${ECHO_T}no" >&6
5193 RANLIB=$ac_ct_RANLIB
5194 else
5195 RANLIB="$ac_cv_prog_RANLIB"
5198 if test -n "$ac_tool_prefix"; then
5199 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5200 set dummy ${ac_tool_prefix}strip; ac_word=$2
5201 echo "$as_me:$LINENO: checking for $ac_word" >&5
5202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5203 if test "${ac_cv_prog_STRIP+set}" = set; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5205 else
5206 if test -n "$STRIP"; then
5207 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5208 else
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 for as_dir in $PATH
5212 IFS=$as_save_IFS
5213 test -z "$as_dir" && as_dir=.
5214 for ac_exec_ext in '' $ac_executable_extensions; do
5215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5216 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5218 break 2
5220 done
5221 done
5225 STRIP=$ac_cv_prog_STRIP
5226 if test -n "$STRIP"; then
5227 echo "$as_me:$LINENO: result: $STRIP" >&5
5228 echo "${ECHO_T}$STRIP" >&6
5229 else
5230 echo "$as_me:$LINENO: result: no" >&5
5231 echo "${ECHO_T}no" >&6
5235 if test -z "$ac_cv_prog_STRIP"; then
5236 ac_ct_STRIP=$STRIP
5237 # Extract the first word of "strip", so it can be a program name with args.
5238 set dummy strip; ac_word=$2
5239 echo "$as_me:$LINENO: checking for $ac_word" >&5
5240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5241 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 else
5244 if test -n "$ac_ct_STRIP"; then
5245 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5246 else
5247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248 for as_dir in $PATH
5250 IFS=$as_save_IFS
5251 test -z "$as_dir" && as_dir=.
5252 for ac_exec_ext in '' $ac_executable_extensions; do
5253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5254 ac_cv_prog_ac_ct_STRIP="strip"
5255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5256 break 2
5258 done
5259 done
5261 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
5264 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5265 if test -n "$ac_ct_STRIP"; then
5266 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5267 echo "${ECHO_T}$ac_ct_STRIP" >&6
5268 else
5269 echo "$as_me:$LINENO: result: no" >&5
5270 echo "${ECHO_T}no" >&6
5273 STRIP=$ac_ct_STRIP
5274 else
5275 STRIP="$ac_cv_prog_STRIP"
5278 if test -n "$ac_tool_prefix"; then
5279 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5280 set dummy ${ac_tool_prefix}windres; ac_word=$2
5281 echo "$as_me:$LINENO: checking for $ac_word" >&5
5282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5283 if test "${ac_cv_prog_WINDRES+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
5285 else
5286 if test -n "$WINDRES"; then
5287 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5288 else
5289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5290 for as_dir in $PATH
5292 IFS=$as_save_IFS
5293 test -z "$as_dir" && as_dir=.
5294 for ac_exec_ext in '' $ac_executable_extensions; do
5295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5296 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5298 break 2
5300 done
5301 done
5305 WINDRES=$ac_cv_prog_WINDRES
5306 if test -n "$WINDRES"; then
5307 echo "$as_me:$LINENO: result: $WINDRES" >&5
5308 echo "${ECHO_T}$WINDRES" >&6
5309 else
5310 echo "$as_me:$LINENO: result: no" >&5
5311 echo "${ECHO_T}no" >&6
5315 if test -z "$ac_cv_prog_WINDRES"; then
5316 ac_ct_WINDRES=$WINDRES
5317 # Extract the first word of "windres", so it can be a program name with args.
5318 set dummy windres; ac_word=$2
5319 echo "$as_me:$LINENO: checking for $ac_word" >&5
5320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5321 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5322 echo $ECHO_N "(cached) $ECHO_C" >&6
5323 else
5324 if test -n "$ac_ct_WINDRES"; then
5325 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5326 else
5327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328 for as_dir in $PATH
5330 IFS=$as_save_IFS
5331 test -z "$as_dir" && as_dir=.
5332 for ac_exec_ext in '' $ac_executable_extensions; do
5333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5334 ac_cv_prog_ac_ct_WINDRES="windres"
5335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5336 break 2
5338 done
5339 done
5341 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
5344 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5345 if test -n "$ac_ct_WINDRES"; then
5346 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5347 echo "${ECHO_T}$ac_ct_WINDRES" >&6
5348 else
5349 echo "$as_me:$LINENO: result: no" >&5
5350 echo "${ECHO_T}no" >&6
5353 WINDRES=$ac_ct_WINDRES
5354 else
5355 WINDRES="$ac_cv_prog_WINDRES"
5358 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5359 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5360 LN_S=$as_ln_s
5361 if test "$LN_S" = "ln -s"; then
5362 echo "$as_me:$LINENO: result: yes" >&5
5363 echo "${ECHO_T}yes" >&6
5364 else
5365 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5366 echo "${ECHO_T}no, using $LN_S" >&6
5369 echo "$as_me:$LINENO: checking whether ln works" >&5
5370 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
5371 rm -f conf$$ conf$$.file
5372 echo >conf$$.file
5373 if ln conf$$.file conf$$ 2>/dev/null; then
5374 LN=ln
5376 echo "$as_me:$LINENO: result: yes" >&5
5377 echo "${ECHO_T}yes" >&6
5378 else
5379 LN="cp -p"
5381 echo "$as_me:$LINENO: result: no, using $LN" >&5
5382 echo "${ECHO_T}no, using $LN" >&6
5384 rm -f conf$$ conf$$.file
5385 # Extract the first word of "ldconfig", so it can be a program name with args.
5386 set dummy ldconfig; ac_word=$2
5387 echo "$as_me:$LINENO: checking for $ac_word" >&5
5388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5389 if test "${ac_cv_path_LDCONFIG+set}" = set; then
5390 echo $ECHO_N "(cached) $ECHO_C" >&6
5391 else
5392 case $LDCONFIG in
5393 [\\/]* | ?:[\\/]*)
5394 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398 for as_dir in /sbin /usr/sbin $PATH
5400 IFS=$as_save_IFS
5401 test -z "$as_dir" && as_dir=.
5402 for ac_exec_ext in '' $ac_executable_extensions; do
5403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5404 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5406 break 2
5408 done
5409 done
5411 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5413 esac
5415 LDCONFIG=$ac_cv_path_LDCONFIG
5417 if test -n "$LDCONFIG"; then
5418 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
5419 echo "${ECHO_T}$LDCONFIG" >&6
5420 else
5421 echo "$as_me:$LINENO: result: no" >&5
5422 echo "${ECHO_T}no" >&6
5425 # Find a good install program. We prefer a C program (faster),
5426 # so one script is as good as another. But avoid the broken or
5427 # incompatible versions:
5428 # SysV /etc/install, /usr/sbin/install
5429 # SunOS /usr/etc/install
5430 # IRIX /sbin/install
5431 # AIX /bin/install
5432 # AmigaOS /C/install, which installs bootblocks on floppy discs
5433 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5434 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5435 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5436 # OS/2's system install, which has a completely different semantic
5437 # ./install, which can be erroneously created by make from ./install.sh.
5438 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5439 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5440 if test -z "$INSTALL"; then
5441 if test "${ac_cv_path_install+set}" = set; then
5442 echo $ECHO_N "(cached) $ECHO_C" >&6
5443 else
5444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445 for as_dir in $PATH
5447 IFS=$as_save_IFS
5448 test -z "$as_dir" && as_dir=.
5449 # Account for people who put trailing slashes in PATH elements.
5450 case $as_dir/ in
5451 ./ | .// | /cC/* | \
5452 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5453 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5454 /usr/ucb/* ) ;;
5456 # OSF1 and SCO ODT 3.0 have their own names for install.
5457 # Don't use installbsd from OSF since it installs stuff as root
5458 # by default.
5459 for ac_prog in ginstall scoinst install; do
5460 for ac_exec_ext in '' $ac_executable_extensions; do
5461 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5462 if test $ac_prog = install &&
5463 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5464 # AIX install. It has an incompatible calling convention.
5466 elif test $ac_prog = install &&
5467 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5468 # program-specific install script used by HP pwplus--don't use.
5470 else
5471 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5472 break 3
5475 done
5476 done
5478 esac
5479 done
5483 if test "${ac_cv_path_install+set}" = set; then
5484 INSTALL=$ac_cv_path_install
5485 else
5486 # As a last resort, use the slow shell script. We don't cache a
5487 # path for INSTALL within a source directory, because that will
5488 # break other packages using the cache if that directory is
5489 # removed, or if the path is relative.
5490 INSTALL=$ac_install_sh
5493 echo "$as_me:$LINENO: result: $INSTALL" >&5
5494 echo "${ECHO_T}$INSTALL" >&6
5496 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5497 # It thinks the first close brace ends the variable substitution.
5498 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5500 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5502 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5504 case "$INSTALL" in
5505 [\\/$]* | ?:[\\/]* ) ;;
5506 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
5507 esac
5509 for ac_prog in lclint lint
5511 # Extract the first word of "$ac_prog", so it can be a program name with args.
5512 set dummy $ac_prog; ac_word=$2
5513 echo "$as_me:$LINENO: checking for $ac_word" >&5
5514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5515 if test "${ac_cv_prog_LINT+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5517 else
5518 if test -n "$LINT"; then
5519 ac_cv_prog_LINT="$LINT" # Let the user override the test.
5520 else
5521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522 for as_dir in $PATH
5524 IFS=$as_save_IFS
5525 test -z "$as_dir" && as_dir=.
5526 for ac_exec_ext in '' $ac_executable_extensions; do
5527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5528 ac_cv_prog_LINT="$ac_prog"
5529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5530 break 2
5532 done
5533 done
5537 LINT=$ac_cv_prog_LINT
5538 if test -n "$LINT"; then
5539 echo "$as_me:$LINENO: result: $LINT" >&5
5540 echo "${ECHO_T}$LINT" >&6
5541 else
5542 echo "$as_me:$LINENO: result: no" >&5
5543 echo "${ECHO_T}no" >&6
5546 test -n "$LINT" && break
5547 done
5549 if test "$LINT" = "lint"
5550 then
5551 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
5556 for ac_prog in docbook2html db2html
5558 # Extract the first word of "$ac_prog", so it can be a program name with args.
5559 set dummy $ac_prog; ac_word=$2
5560 echo "$as_me:$LINENO: checking for $ac_word" >&5
5561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5562 if test "${ac_cv_prog_DB2HTML+set}" = set; then
5563 echo $ECHO_N "(cached) $ECHO_C" >&6
5564 else
5565 if test -n "$DB2HTML"; then
5566 ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
5567 else
5568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569 for as_dir in $PATH
5571 IFS=$as_save_IFS
5572 test -z "$as_dir" && as_dir=.
5573 for ac_exec_ext in '' $ac_executable_extensions; do
5574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5575 ac_cv_prog_DB2HTML="$ac_prog"
5576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5577 break 2
5579 done
5580 done
5584 DB2HTML=$ac_cv_prog_DB2HTML
5585 if test -n "$DB2HTML"; then
5586 echo "$as_me:$LINENO: result: $DB2HTML" >&5
5587 echo "${ECHO_T}$DB2HTML" >&6
5588 else
5589 echo "$as_me:$LINENO: result: no" >&5
5590 echo "${ECHO_T}no" >&6
5593 test -n "$DB2HTML" && break
5594 done
5595 test -n "$DB2HTML" || DB2HTML="false"
5599 for ac_prog in docbook2pdf db2pdf
5601 # Extract the first word of "$ac_prog", so it can be a program name with args.
5602 set dummy $ac_prog; ac_word=$2
5603 echo "$as_me:$LINENO: checking for $ac_word" >&5
5604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5605 if test "${ac_cv_prog_DB2PDF+set}" = set; then
5606 echo $ECHO_N "(cached) $ECHO_C" >&6
5607 else
5608 if test -n "$DB2PDF"; then
5609 ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
5610 else
5611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612 for as_dir in $PATH
5614 IFS=$as_save_IFS
5615 test -z "$as_dir" && as_dir=.
5616 for ac_exec_ext in '' $ac_executable_extensions; do
5617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5618 ac_cv_prog_DB2PDF="$ac_prog"
5619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5620 break 2
5622 done
5623 done
5627 DB2PDF=$ac_cv_prog_DB2PDF
5628 if test -n "$DB2PDF"; then
5629 echo "$as_me:$LINENO: result: $DB2PDF" >&5
5630 echo "${ECHO_T}$DB2PDF" >&6
5631 else
5632 echo "$as_me:$LINENO: result: no" >&5
5633 echo "${ECHO_T}no" >&6
5636 test -n "$DB2PDF" && break
5637 done
5638 test -n "$DB2PDF" || DB2PDF="false"
5642 for ac_prog in docbook2ps db2ps
5644 # Extract the first word of "$ac_prog", so it can be a program name with args.
5645 set dummy $ac_prog; ac_word=$2
5646 echo "$as_me:$LINENO: checking for $ac_word" >&5
5647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5648 if test "${ac_cv_prog_DB2PS+set}" = set; then
5649 echo $ECHO_N "(cached) $ECHO_C" >&6
5650 else
5651 if test -n "$DB2PS"; then
5652 ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
5653 else
5654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655 for as_dir in $PATH
5657 IFS=$as_save_IFS
5658 test -z "$as_dir" && as_dir=.
5659 for ac_exec_ext in '' $ac_executable_extensions; do
5660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5661 ac_cv_prog_DB2PS="$ac_prog"
5662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5663 break 2
5665 done
5666 done
5670 DB2PS=$ac_cv_prog_DB2PS
5671 if test -n "$DB2PS"; then
5672 echo "$as_me:$LINENO: result: $DB2PS" >&5
5673 echo "${ECHO_T}$DB2PS" >&6
5674 else
5675 echo "$as_me:$LINENO: result: no" >&5
5676 echo "${ECHO_T}no" >&6
5679 test -n "$DB2PS" && break
5680 done
5681 test -n "$DB2PS" || DB2PS="false"
5685 for ac_prog in docbook2txt db2txt
5687 # Extract the first word of "$ac_prog", so it can be a program name with args.
5688 set dummy $ac_prog; ac_word=$2
5689 echo "$as_me:$LINENO: checking for $ac_word" >&5
5690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5691 if test "${ac_cv_prog_DB2TXT+set}" = set; then
5692 echo $ECHO_N "(cached) $ECHO_C" >&6
5693 else
5694 if test -n "$DB2TXT"; then
5695 ac_cv_prog_DB2TXT="$DB2TXT" # Let the user override the test.
5696 else
5697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698 for as_dir in $PATH
5700 IFS=$as_save_IFS
5701 test -z "$as_dir" && as_dir=.
5702 for ac_exec_ext in '' $ac_executable_extensions; do
5703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5704 ac_cv_prog_DB2TXT="$ac_prog"
5705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5706 break 2
5708 done
5709 done
5713 DB2TXT=$ac_cv_prog_DB2TXT
5714 if test -n "$DB2TXT"; then
5715 echo "$as_me:$LINENO: result: $DB2TXT" >&5
5716 echo "${ECHO_T}$DB2TXT" >&6
5717 else
5718 echo "$as_me:$LINENO: result: no" >&5
5719 echo "${ECHO_T}no" >&6
5722 test -n "$DB2TXT" && break
5723 done
5724 test -n "$DB2TXT" || DB2TXT="false"
5730 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
5731 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
5732 if test "${ac_cv_lib_m_sqrt+set}" = set; then
5733 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 else
5735 ac_check_lib_save_LIBS=$LIBS
5736 LIBS="-lm $LIBS"
5737 cat >conftest.$ac_ext <<_ACEOF
5738 /* confdefs.h. */
5739 _ACEOF
5740 cat confdefs.h >>conftest.$ac_ext
5741 cat >>conftest.$ac_ext <<_ACEOF
5742 /* end confdefs.h. */
5744 /* Override any gcc2 internal prototype to avoid an error. */
5745 #ifdef __cplusplus
5746 extern "C"
5747 #endif
5748 /* We use char because int might match the return type of a gcc2
5749 builtin and then its argument prototype would still apply. */
5750 char sqrt ();
5752 main ()
5754 sqrt ();
5756 return 0;
5758 _ACEOF
5759 rm -f conftest.$ac_objext conftest$ac_exeext
5760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5761 (eval $ac_link) 2>conftest.er1
5762 ac_status=$?
5763 grep -v '^ *+' conftest.er1 >conftest.err
5764 rm -f conftest.er1
5765 cat conftest.err >&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); } &&
5768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5770 (eval $ac_try) 2>&5
5771 ac_status=$?
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }; } &&
5774 { ac_try='test -s conftest$ac_exeext'
5775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5776 (eval $ac_try) 2>&5
5777 ac_status=$?
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }; }; then
5780 ac_cv_lib_m_sqrt=yes
5781 else
5782 echo "$as_me: failed program was:" >&5
5783 sed 's/^/| /' conftest.$ac_ext >&5
5785 ac_cv_lib_m_sqrt=no
5787 rm -f conftest.err conftest.$ac_objext \
5788 conftest$ac_exeext conftest.$ac_ext
5789 LIBS=$ac_check_lib_save_LIBS
5791 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
5792 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
5793 if test $ac_cv_lib_m_sqrt = yes; then
5794 cat >>confdefs.h <<_ACEOF
5795 #define HAVE_LIBM 1
5796 _ACEOF
5798 LIBS="-lm $LIBS"
5803 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
5804 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5805 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5807 else
5808 ac_check_lib_save_LIBS=$LIBS
5809 LIBS="-li386 $LIBS"
5810 cat >conftest.$ac_ext <<_ACEOF
5811 /* confdefs.h. */
5812 _ACEOF
5813 cat confdefs.h >>conftest.$ac_ext
5814 cat >>conftest.$ac_ext <<_ACEOF
5815 /* end confdefs.h. */
5817 /* Override any gcc2 internal prototype to avoid an error. */
5818 #ifdef __cplusplus
5819 extern "C"
5820 #endif
5821 /* We use char because int might match the return type of a gcc2
5822 builtin and then its argument prototype would still apply. */
5823 char i386_set_ldt ();
5825 main ()
5827 i386_set_ldt ();
5829 return 0;
5831 _ACEOF
5832 rm -f conftest.$ac_objext conftest$ac_exeext
5833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5834 (eval $ac_link) 2>conftest.er1
5835 ac_status=$?
5836 grep -v '^ *+' conftest.er1 >conftest.err
5837 rm -f conftest.er1
5838 cat conftest.err >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } &&
5841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843 (eval $ac_try) 2>&5
5844 ac_status=$?
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; } &&
5847 { ac_try='test -s conftest$ac_exeext'
5848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5849 (eval $ac_try) 2>&5
5850 ac_status=$?
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); }; }; then
5853 ac_cv_lib_i386_i386_set_ldt=yes
5854 else
5855 echo "$as_me: failed program was:" >&5
5856 sed 's/^/| /' conftest.$ac_ext >&5
5858 ac_cv_lib_i386_i386_set_ldt=no
5860 rm -f conftest.err conftest.$ac_objext \
5861 conftest$ac_exeext conftest.$ac_ext
5862 LIBS=$ac_check_lib_save_LIBS
5864 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5865 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5866 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
5867 cat >>confdefs.h <<_ACEOF
5868 #define HAVE_LIBI386 1
5869 _ACEOF
5871 LIBS="-li386 $LIBS"
5876 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5877 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5878 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5879 echo $ECHO_N "(cached) $ECHO_C" >&6
5880 else
5881 ac_check_lib_save_LIBS=$LIBS
5882 LIBS="-lossaudio $LIBS"
5883 cat >conftest.$ac_ext <<_ACEOF
5884 /* confdefs.h. */
5885 _ACEOF
5886 cat confdefs.h >>conftest.$ac_ext
5887 cat >>conftest.$ac_ext <<_ACEOF
5888 /* end confdefs.h. */
5890 /* Override any gcc2 internal prototype to avoid an error. */
5891 #ifdef __cplusplus
5892 extern "C"
5893 #endif
5894 /* We use char because int might match the return type of a gcc2
5895 builtin and then its argument prototype would still apply. */
5896 char _oss_ioctl ();
5898 main ()
5900 _oss_ioctl ();
5902 return 0;
5904 _ACEOF
5905 rm -f conftest.$ac_objext conftest$ac_exeext
5906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5907 (eval $ac_link) 2>conftest.er1
5908 ac_status=$?
5909 grep -v '^ *+' conftest.er1 >conftest.err
5910 rm -f conftest.er1
5911 cat conftest.err >&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); } &&
5914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5916 (eval $ac_try) 2>&5
5917 ac_status=$?
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); }; } &&
5920 { ac_try='test -s conftest$ac_exeext'
5921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5922 (eval $ac_try) 2>&5
5923 ac_status=$?
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); }; }; then
5926 ac_cv_lib_ossaudio__oss_ioctl=yes
5927 else
5928 echo "$as_me: failed program was:" >&5
5929 sed 's/^/| /' conftest.$ac_ext >&5
5931 ac_cv_lib_ossaudio__oss_ioctl=no
5933 rm -f conftest.err conftest.$ac_objext \
5934 conftest$ac_exeext conftest.$ac_ext
5935 LIBS=$ac_check_lib_save_LIBS
5937 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5938 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5939 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5940 cat >>confdefs.h <<_ACEOF
5941 #define HAVE_LIBOSSAUDIO 1
5942 _ACEOF
5944 LIBS="-lossaudio $LIBS"
5949 for ac_func in iswalnum
5951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5952 echo "$as_me:$LINENO: checking for $ac_func" >&5
5953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5954 if eval "test \"\${$as_ac_var+set}\" = set"; then
5955 echo $ECHO_N "(cached) $ECHO_C" >&6
5956 else
5957 cat >conftest.$ac_ext <<_ACEOF
5958 /* confdefs.h. */
5959 _ACEOF
5960 cat confdefs.h >>conftest.$ac_ext
5961 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h. */
5963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5965 #define $ac_func innocuous_$ac_func
5967 /* System header to define __stub macros and hopefully few prototypes,
5968 which can conflict with char $ac_func (); below.
5969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5970 <limits.h> exists even on freestanding compilers. */
5972 #ifdef __STDC__
5973 # include <limits.h>
5974 #else
5975 # include <assert.h>
5976 #endif
5978 #undef $ac_func
5980 /* Override any gcc2 internal prototype to avoid an error. */
5981 #ifdef __cplusplus
5982 extern "C"
5984 #endif
5985 /* We use char because int might match the return type of a gcc2
5986 builtin and then its argument prototype would still apply. */
5987 char $ac_func ();
5988 /* The GNU C library defines this for functions which it implements
5989 to always fail with ENOSYS. Some functions are actually named
5990 something starting with __ and the normal name is an alias. */
5991 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5992 choke me
5993 #else
5994 char (*f) () = $ac_func;
5995 #endif
5996 #ifdef __cplusplus
5998 #endif
6001 main ()
6003 return f != $ac_func;
6005 return 0;
6007 _ACEOF
6008 rm -f conftest.$ac_objext conftest$ac_exeext
6009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6010 (eval $ac_link) 2>conftest.er1
6011 ac_status=$?
6012 grep -v '^ *+' conftest.er1 >conftest.err
6013 rm -f conftest.er1
6014 cat conftest.err >&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); } &&
6017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6019 (eval $ac_try) 2>&5
6020 ac_status=$?
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); }; } &&
6023 { ac_try='test -s conftest$ac_exeext'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025 (eval $ac_try) 2>&5
6026 ac_status=$?
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; }; then
6029 eval "$as_ac_var=yes"
6030 else
6031 echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6034 eval "$as_ac_var=no"
6036 rm -f conftest.err conftest.$ac_objext \
6037 conftest$ac_exeext conftest.$ac_ext
6039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6040 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6041 if test `eval echo '${'$as_ac_var'}'` = yes; then
6042 cat >>confdefs.h <<_ACEOF
6043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6044 _ACEOF
6046 else
6048 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
6049 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
6050 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 else
6053 ac_check_lib_save_LIBS=$LIBS
6054 LIBS="-lw $LIBS"
6055 cat >conftest.$ac_ext <<_ACEOF
6056 /* confdefs.h. */
6057 _ACEOF
6058 cat confdefs.h >>conftest.$ac_ext
6059 cat >>conftest.$ac_ext <<_ACEOF
6060 /* end confdefs.h. */
6062 /* Override any gcc2 internal prototype to avoid an error. */
6063 #ifdef __cplusplus
6064 extern "C"
6065 #endif
6066 /* We use char because int might match the return type of a gcc2
6067 builtin and then its argument prototype would still apply. */
6068 char iswalnum ();
6070 main ()
6072 iswalnum ();
6074 return 0;
6076 _ACEOF
6077 rm -f conftest.$ac_objext conftest$ac_exeext
6078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6079 (eval $ac_link) 2>conftest.er1
6080 ac_status=$?
6081 grep -v '^ *+' conftest.er1 >conftest.err
6082 rm -f conftest.er1
6083 cat conftest.err >&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); } &&
6086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088 (eval $ac_try) 2>&5
6089 ac_status=$?
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }; } &&
6092 { ac_try='test -s conftest$ac_exeext'
6093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 (eval $ac_try) 2>&5
6095 ac_status=$?
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; }; then
6098 ac_cv_lib_w_iswalnum=yes
6099 else
6100 echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6103 ac_cv_lib_w_iswalnum=no
6105 rm -f conftest.err conftest.$ac_objext \
6106 conftest$ac_exeext conftest.$ac_ext
6107 LIBS=$ac_check_lib_save_LIBS
6109 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
6110 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
6111 if test $ac_cv_lib_w_iswalnum = yes; then
6112 cat >>confdefs.h <<_ACEOF
6113 #define HAVE_LIBW 1
6114 _ACEOF
6116 LIBS="-lw $LIBS"
6121 done
6124 for ac_func in gethostbyname
6126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6127 echo "$as_me:$LINENO: checking for $ac_func" >&5
6128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6129 if eval "test \"\${$as_ac_var+set}\" = set"; then
6130 echo $ECHO_N "(cached) $ECHO_C" >&6
6131 else
6132 cat >conftest.$ac_ext <<_ACEOF
6133 /* confdefs.h. */
6134 _ACEOF
6135 cat confdefs.h >>conftest.$ac_ext
6136 cat >>conftest.$ac_ext <<_ACEOF
6137 /* end confdefs.h. */
6138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6140 #define $ac_func innocuous_$ac_func
6142 /* System header to define __stub macros and hopefully few prototypes,
6143 which can conflict with char $ac_func (); below.
6144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6145 <limits.h> exists even on freestanding compilers. */
6147 #ifdef __STDC__
6148 # include <limits.h>
6149 #else
6150 # include <assert.h>
6151 #endif
6153 #undef $ac_func
6155 /* Override any gcc2 internal prototype to avoid an error. */
6156 #ifdef __cplusplus
6157 extern "C"
6159 #endif
6160 /* We use char because int might match the return type of a gcc2
6161 builtin and then its argument prototype would still apply. */
6162 char $ac_func ();
6163 /* The GNU C library defines this for functions which it implements
6164 to always fail with ENOSYS. Some functions are actually named
6165 something starting with __ and the normal name is an alias. */
6166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6167 choke me
6168 #else
6169 char (*f) () = $ac_func;
6170 #endif
6171 #ifdef __cplusplus
6173 #endif
6176 main ()
6178 return f != $ac_func;
6180 return 0;
6182 _ACEOF
6183 rm -f conftest.$ac_objext conftest$ac_exeext
6184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6185 (eval $ac_link) 2>conftest.er1
6186 ac_status=$?
6187 grep -v '^ *+' conftest.er1 >conftest.err
6188 rm -f conftest.er1
6189 cat conftest.err >&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); } &&
6192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194 (eval $ac_try) 2>&5
6195 ac_status=$?
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); }; } &&
6198 { ac_try='test -s conftest$ac_exeext'
6199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200 (eval $ac_try) 2>&5
6201 ac_status=$?
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); }; }; then
6204 eval "$as_ac_var=yes"
6205 else
6206 echo "$as_me: failed program was:" >&5
6207 sed 's/^/| /' conftest.$ac_ext >&5
6209 eval "$as_ac_var=no"
6211 rm -f conftest.err conftest.$ac_objext \
6212 conftest$ac_exeext conftest.$ac_ext
6214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6215 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6216 if test `eval echo '${'$as_ac_var'}'` = yes; then
6217 cat >>confdefs.h <<_ACEOF
6218 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6219 _ACEOF
6221 else
6223 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6224 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6225 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6227 else
6228 ac_check_lib_save_LIBS=$LIBS
6229 LIBS="-lnsl $LIBS"
6230 cat >conftest.$ac_ext <<_ACEOF
6231 /* confdefs.h. */
6232 _ACEOF
6233 cat confdefs.h >>conftest.$ac_ext
6234 cat >>conftest.$ac_ext <<_ACEOF
6235 /* end confdefs.h. */
6237 /* Override any gcc2 internal prototype to avoid an error. */
6238 #ifdef __cplusplus
6239 extern "C"
6240 #endif
6241 /* We use char because int might match the return type of a gcc2
6242 builtin and then its argument prototype would still apply. */
6243 char gethostbyname ();
6245 main ()
6247 gethostbyname ();
6249 return 0;
6251 _ACEOF
6252 rm -f conftest.$ac_objext conftest$ac_exeext
6253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6254 (eval $ac_link) 2>conftest.er1
6255 ac_status=$?
6256 grep -v '^ *+' conftest.er1 >conftest.err
6257 rm -f conftest.er1
6258 cat conftest.err >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); } &&
6261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263 (eval $ac_try) 2>&5
6264 ac_status=$?
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); }; } &&
6267 { ac_try='test -s conftest$ac_exeext'
6268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6269 (eval $ac_try) 2>&5
6270 ac_status=$?
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); }; }; then
6273 ac_cv_lib_nsl_gethostbyname=yes
6274 else
6275 echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6278 ac_cv_lib_nsl_gethostbyname=no
6280 rm -f conftest.err conftest.$ac_objext \
6281 conftest$ac_exeext conftest.$ac_ext
6282 LIBS=$ac_check_lib_save_LIBS
6284 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6285 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6286 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6287 cat >>confdefs.h <<_ACEOF
6288 #define HAVE_LIBNSL 1
6289 _ACEOF
6291 LIBS="-lnsl $LIBS"
6296 done
6299 for ac_func in connect
6301 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6302 echo "$as_me:$LINENO: checking for $ac_func" >&5
6303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6304 if eval "test \"\${$as_ac_var+set}\" = set"; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
6306 else
6307 cat >conftest.$ac_ext <<_ACEOF
6308 /* confdefs.h. */
6309 _ACEOF
6310 cat confdefs.h >>conftest.$ac_ext
6311 cat >>conftest.$ac_ext <<_ACEOF
6312 /* end confdefs.h. */
6313 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6315 #define $ac_func innocuous_$ac_func
6317 /* System header to define __stub macros and hopefully few prototypes,
6318 which can conflict with char $ac_func (); below.
6319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6320 <limits.h> exists even on freestanding compilers. */
6322 #ifdef __STDC__
6323 # include <limits.h>
6324 #else
6325 # include <assert.h>
6326 #endif
6328 #undef $ac_func
6330 /* Override any gcc2 internal prototype to avoid an error. */
6331 #ifdef __cplusplus
6332 extern "C"
6334 #endif
6335 /* We use char because int might match the return type of a gcc2
6336 builtin and then its argument prototype would still apply. */
6337 char $ac_func ();
6338 /* The GNU C library defines this for functions which it implements
6339 to always fail with ENOSYS. Some functions are actually named
6340 something starting with __ and the normal name is an alias. */
6341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6342 choke me
6343 #else
6344 char (*f) () = $ac_func;
6345 #endif
6346 #ifdef __cplusplus
6348 #endif
6351 main ()
6353 return f != $ac_func;
6355 return 0;
6357 _ACEOF
6358 rm -f conftest.$ac_objext conftest$ac_exeext
6359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6360 (eval $ac_link) 2>conftest.er1
6361 ac_status=$?
6362 grep -v '^ *+' conftest.er1 >conftest.err
6363 rm -f conftest.er1
6364 cat conftest.err >&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); } &&
6367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369 (eval $ac_try) 2>&5
6370 ac_status=$?
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); }; } &&
6373 { ac_try='test -s conftest$ac_exeext'
6374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6375 (eval $ac_try) 2>&5
6376 ac_status=$?
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); }; }; then
6379 eval "$as_ac_var=yes"
6380 else
6381 echo "$as_me: failed program was:" >&5
6382 sed 's/^/| /' conftest.$ac_ext >&5
6384 eval "$as_ac_var=no"
6386 rm -f conftest.err conftest.$ac_objext \
6387 conftest$ac_exeext conftest.$ac_ext
6389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6391 if test `eval echo '${'$as_ac_var'}'` = yes; then
6392 cat >>confdefs.h <<_ACEOF
6393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6394 _ACEOF
6396 else
6398 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6399 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6400 if test "${ac_cv_lib_socket_connect+set}" = set; then
6401 echo $ECHO_N "(cached) $ECHO_C" >&6
6402 else
6403 ac_check_lib_save_LIBS=$LIBS
6404 LIBS="-lsocket $LIBS"
6405 cat >conftest.$ac_ext <<_ACEOF
6406 /* confdefs.h. */
6407 _ACEOF
6408 cat confdefs.h >>conftest.$ac_ext
6409 cat >>conftest.$ac_ext <<_ACEOF
6410 /* end confdefs.h. */
6412 /* Override any gcc2 internal prototype to avoid an error. */
6413 #ifdef __cplusplus
6414 extern "C"
6415 #endif
6416 /* We use char because int might match the return type of a gcc2
6417 builtin and then its argument prototype would still apply. */
6418 char connect ();
6420 main ()
6422 connect ();
6424 return 0;
6426 _ACEOF
6427 rm -f conftest.$ac_objext conftest$ac_exeext
6428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6429 (eval $ac_link) 2>conftest.er1
6430 ac_status=$?
6431 grep -v '^ *+' conftest.er1 >conftest.err
6432 rm -f conftest.er1
6433 cat conftest.err >&5
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); } &&
6436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6438 (eval $ac_try) 2>&5
6439 ac_status=$?
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); }; } &&
6442 { ac_try='test -s conftest$ac_exeext'
6443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444 (eval $ac_try) 2>&5
6445 ac_status=$?
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); }; }; then
6448 ac_cv_lib_socket_connect=yes
6449 else
6450 echo "$as_me: failed program was:" >&5
6451 sed 's/^/| /' conftest.$ac_ext >&5
6453 ac_cv_lib_socket_connect=no
6455 rm -f conftest.err conftest.$ac_objext \
6456 conftest$ac_exeext conftest.$ac_ext
6457 LIBS=$ac_check_lib_save_LIBS
6459 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6460 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6461 if test $ac_cv_lib_socket_connect = yes; then
6462 cat >>confdefs.h <<_ACEOF
6463 #define HAVE_LIBSOCKET 1
6464 _ACEOF
6466 LIBS="-lsocket $LIBS"
6471 done
6474 for ac_func in inet_aton
6476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6477 echo "$as_me:$LINENO: checking for $ac_func" >&5
6478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6479 if eval "test \"\${$as_ac_var+set}\" = set"; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
6481 else
6482 cat >conftest.$ac_ext <<_ACEOF
6483 /* confdefs.h. */
6484 _ACEOF
6485 cat confdefs.h >>conftest.$ac_ext
6486 cat >>conftest.$ac_ext <<_ACEOF
6487 /* end confdefs.h. */
6488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6490 #define $ac_func innocuous_$ac_func
6492 /* System header to define __stub macros and hopefully few prototypes,
6493 which can conflict with char $ac_func (); below.
6494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6495 <limits.h> exists even on freestanding compilers. */
6497 #ifdef __STDC__
6498 # include <limits.h>
6499 #else
6500 # include <assert.h>
6501 #endif
6503 #undef $ac_func
6505 /* Override any gcc2 internal prototype to avoid an error. */
6506 #ifdef __cplusplus
6507 extern "C"
6509 #endif
6510 /* We use char because int might match the return type of a gcc2
6511 builtin and then its argument prototype would still apply. */
6512 char $ac_func ();
6513 /* The GNU C library defines this for functions which it implements
6514 to always fail with ENOSYS. Some functions are actually named
6515 something starting with __ and the normal name is an alias. */
6516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6517 choke me
6518 #else
6519 char (*f) () = $ac_func;
6520 #endif
6521 #ifdef __cplusplus
6523 #endif
6526 main ()
6528 return f != $ac_func;
6530 return 0;
6532 _ACEOF
6533 rm -f conftest.$ac_objext conftest$ac_exeext
6534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6535 (eval $ac_link) 2>conftest.er1
6536 ac_status=$?
6537 grep -v '^ *+' conftest.er1 >conftest.err
6538 rm -f conftest.er1
6539 cat conftest.err >&5
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); } &&
6542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6544 (eval $ac_try) 2>&5
6545 ac_status=$?
6546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547 (exit $ac_status); }; } &&
6548 { ac_try='test -s conftest$ac_exeext'
6549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6550 (eval $ac_try) 2>&5
6551 ac_status=$?
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); }; }; then
6554 eval "$as_ac_var=yes"
6555 else
6556 echo "$as_me: failed program was:" >&5
6557 sed 's/^/| /' conftest.$ac_ext >&5
6559 eval "$as_ac_var=no"
6561 rm -f conftest.err conftest.$ac_objext \
6562 conftest$ac_exeext conftest.$ac_ext
6564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6565 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6566 if test `eval echo '${'$as_ac_var'}'` = yes; then
6567 cat >>confdefs.h <<_ACEOF
6568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6569 _ACEOF
6571 else
6573 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
6574 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
6575 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6577 else
6578 ac_check_lib_save_LIBS=$LIBS
6579 LIBS="-lresolv $LIBS"
6580 cat >conftest.$ac_ext <<_ACEOF
6581 /* confdefs.h. */
6582 _ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6587 /* Override any gcc2 internal prototype to avoid an error. */
6588 #ifdef __cplusplus
6589 extern "C"
6590 #endif
6591 /* We use char because int might match the return type of a gcc2
6592 builtin and then its argument prototype would still apply. */
6593 char inet_aton ();
6595 main ()
6597 inet_aton ();
6599 return 0;
6601 _ACEOF
6602 rm -f conftest.$ac_objext conftest$ac_exeext
6603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6604 (eval $ac_link) 2>conftest.er1
6605 ac_status=$?
6606 grep -v '^ *+' conftest.er1 >conftest.err
6607 rm -f conftest.er1
6608 cat conftest.err >&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); } &&
6611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613 (eval $ac_try) 2>&5
6614 ac_status=$?
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); }; } &&
6617 { ac_try='test -s conftest$ac_exeext'
6618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6619 (eval $ac_try) 2>&5
6620 ac_status=$?
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); }; }; then
6623 ac_cv_lib_resolv_inet_aton=yes
6624 else
6625 echo "$as_me: failed program was:" >&5
6626 sed 's/^/| /' conftest.$ac_ext >&5
6628 ac_cv_lib_resolv_inet_aton=no
6630 rm -f conftest.err conftest.$ac_objext \
6631 conftest$ac_exeext conftest.$ac_ext
6632 LIBS=$ac_check_lib_save_LIBS
6634 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
6635 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
6636 if test $ac_cv_lib_resolv_inet_aton = yes; then
6637 cat >>confdefs.h <<_ACEOF
6638 #define HAVE_LIBRESOLV 1
6639 _ACEOF
6641 LIBS="-lresolv $LIBS"
6646 done
6649 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
6650 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
6651 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
6652 echo $ECHO_N "(cached) $ECHO_C" >&6
6653 else
6654 ac_check_lib_save_LIBS=$LIBS
6655 LIBS="-lxpg4 $LIBS"
6656 cat >conftest.$ac_ext <<_ACEOF
6657 /* confdefs.h. */
6658 _ACEOF
6659 cat confdefs.h >>conftest.$ac_ext
6660 cat >>conftest.$ac_ext <<_ACEOF
6661 /* end confdefs.h. */
6663 /* Override any gcc2 internal prototype to avoid an error. */
6664 #ifdef __cplusplus
6665 extern "C"
6666 #endif
6667 /* We use char because int might match the return type of a gcc2
6668 builtin and then its argument prototype would still apply. */
6669 char _xpg4_setrunelocale ();
6671 main ()
6673 _xpg4_setrunelocale ();
6675 return 0;
6677 _ACEOF
6678 rm -f conftest.$ac_objext conftest$ac_exeext
6679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6680 (eval $ac_link) 2>conftest.er1
6681 ac_status=$?
6682 grep -v '^ *+' conftest.er1 >conftest.err
6683 rm -f conftest.er1
6684 cat conftest.err >&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); } &&
6687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6689 (eval $ac_try) 2>&5
6690 ac_status=$?
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); }; } &&
6693 { ac_try='test -s conftest$ac_exeext'
6694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6695 (eval $ac_try) 2>&5
6696 ac_status=$?
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); }; }; then
6699 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
6700 else
6701 echo "$as_me: failed program was:" >&5
6702 sed 's/^/| /' conftest.$ac_ext >&5
6704 ac_cv_lib_xpg4__xpg4_setrunelocale=no
6706 rm -f conftest.err conftest.$ac_objext \
6707 conftest$ac_exeext conftest.$ac_ext
6708 LIBS=$ac_check_lib_save_LIBS
6710 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
6711 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
6712 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
6713 cat >>confdefs.h <<_ACEOF
6714 #define HAVE_LIBXPG4 1
6715 _ACEOF
6717 LIBS="-lxpg4 $LIBS"
6722 echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
6723 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6
6724 if test "${ac_cv_lib_poll_poll+set}" = set; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6726 else
6727 ac_check_lib_save_LIBS=$LIBS
6728 LIBS="-lpoll $LIBS"
6729 cat >conftest.$ac_ext <<_ACEOF
6730 /* confdefs.h. */
6731 _ACEOF
6732 cat confdefs.h >>conftest.$ac_ext
6733 cat >>conftest.$ac_ext <<_ACEOF
6734 /* end confdefs.h. */
6736 /* Override any gcc2 internal prototype to avoid an error. */
6737 #ifdef __cplusplus
6738 extern "C"
6739 #endif
6740 /* We use char because int might match the return type of a gcc2
6741 builtin and then its argument prototype would still apply. */
6742 char poll ();
6744 main ()
6746 poll ();
6748 return 0;
6750 _ACEOF
6751 rm -f conftest.$ac_objext conftest$ac_exeext
6752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6753 (eval $ac_link) 2>conftest.er1
6754 ac_status=$?
6755 grep -v '^ *+' conftest.er1 >conftest.err
6756 rm -f conftest.er1
6757 cat conftest.err >&5
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); } &&
6760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6762 (eval $ac_try) 2>&5
6763 ac_status=$?
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); }; } &&
6766 { ac_try='test -s conftest$ac_exeext'
6767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768 (eval $ac_try) 2>&5
6769 ac_status=$?
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); }; }; then
6772 ac_cv_lib_poll_poll=yes
6773 else
6774 echo "$as_me: failed program was:" >&5
6775 sed 's/^/| /' conftest.$ac_ext >&5
6777 ac_cv_lib_poll_poll=no
6779 rm -f conftest.err conftest.$ac_objext \
6780 conftest$ac_exeext conftest.$ac_ext
6781 LIBS=$ac_check_lib_save_LIBS
6783 echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
6784 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6
6785 if test $ac_cv_lib_poll_poll = yes; then
6786 cat >>confdefs.h <<_ACEOF
6787 #define HAVE_LIBPOLL 1
6788 _ACEOF
6790 LIBS="-lpoll $LIBS"
6794 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
6795 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
6796 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6798 else
6799 ac_check_lib_save_LIBS=$LIBS
6800 LIBS="-lpthread $LIBS"
6801 cat >conftest.$ac_ext <<_ACEOF
6802 /* confdefs.h. */
6803 _ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6808 /* Override any gcc2 internal prototype to avoid an error. */
6809 #ifdef __cplusplus
6810 extern "C"
6811 #endif
6812 /* We use char because int might match the return type of a gcc2
6813 builtin and then its argument prototype would still apply. */
6814 char pthread_create ();
6816 main ()
6818 pthread_create ();
6820 return 0;
6822 _ACEOF
6823 rm -f conftest.$ac_objext conftest$ac_exeext
6824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6825 (eval $ac_link) 2>conftest.er1
6826 ac_status=$?
6827 grep -v '^ *+' conftest.er1 >conftest.err
6828 rm -f conftest.er1
6829 cat conftest.err >&5
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); } &&
6832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6834 (eval $ac_try) 2>&5
6835 ac_status=$?
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); }; } &&
6838 { ac_try='test -s conftest$ac_exeext'
6839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6840 (eval $ac_try) 2>&5
6841 ac_status=$?
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); }; }; then
6844 ac_cv_lib_pthread_pthread_create=yes
6845 else
6846 echo "$as_me: failed program was:" >&5
6847 sed 's/^/| /' conftest.$ac_ext >&5
6849 ac_cv_lib_pthread_pthread_create=no
6851 rm -f conftest.err conftest.$ac_objext \
6852 conftest$ac_exeext conftest.$ac_ext
6853 LIBS=$ac_check_lib_save_LIBS
6855 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
6856 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
6857 if test $ac_cv_lib_pthread_pthread_create = yes; then
6858 LIBPTHREAD="-lpthread"
6863 JPEGLIB=""
6865 echo "$as_me:$LINENO: checking for egrep" >&5
6866 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6867 if test "${ac_cv_prog_egrep+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
6869 else
6870 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6871 then ac_cv_prog_egrep='grep -E'
6872 else ac_cv_prog_egrep='egrep'
6875 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6876 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6877 EGREP=$ac_cv_prog_egrep
6880 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6881 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6882 if test "${ac_cv_header_stdc+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6884 else
6885 cat >conftest.$ac_ext <<_ACEOF
6886 /* confdefs.h. */
6887 _ACEOF
6888 cat confdefs.h >>conftest.$ac_ext
6889 cat >>conftest.$ac_ext <<_ACEOF
6890 /* end confdefs.h. */
6891 #include <stdlib.h>
6892 #include <stdarg.h>
6893 #include <string.h>
6894 #include <float.h>
6897 main ()
6901 return 0;
6903 _ACEOF
6904 rm -f conftest.$ac_objext
6905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6906 (eval $ac_compile) 2>conftest.er1
6907 ac_status=$?
6908 grep -v '^ *+' conftest.er1 >conftest.err
6909 rm -f conftest.er1
6910 cat conftest.err >&5
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); } &&
6913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915 (eval $ac_try) 2>&5
6916 ac_status=$?
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); }; } &&
6919 { ac_try='test -s conftest.$ac_objext'
6920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6921 (eval $ac_try) 2>&5
6922 ac_status=$?
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); }; }; then
6925 ac_cv_header_stdc=yes
6926 else
6927 echo "$as_me: failed program was:" >&5
6928 sed 's/^/| /' conftest.$ac_ext >&5
6930 ac_cv_header_stdc=no
6932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6934 if test $ac_cv_header_stdc = yes; then
6935 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6936 cat >conftest.$ac_ext <<_ACEOF
6937 /* confdefs.h. */
6938 _ACEOF
6939 cat confdefs.h >>conftest.$ac_ext
6940 cat >>conftest.$ac_ext <<_ACEOF
6941 /* end confdefs.h. */
6942 #include <string.h>
6944 _ACEOF
6945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6946 $EGREP "memchr" >/dev/null 2>&1; then
6948 else
6949 ac_cv_header_stdc=no
6951 rm -f conftest*
6955 if test $ac_cv_header_stdc = yes; then
6956 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6957 cat >conftest.$ac_ext <<_ACEOF
6958 /* confdefs.h. */
6959 _ACEOF
6960 cat confdefs.h >>conftest.$ac_ext
6961 cat >>conftest.$ac_ext <<_ACEOF
6962 /* end confdefs.h. */
6963 #include <stdlib.h>
6965 _ACEOF
6966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6967 $EGREP "free" >/dev/null 2>&1; then
6969 else
6970 ac_cv_header_stdc=no
6972 rm -f conftest*
6976 if test $ac_cv_header_stdc = yes; then
6977 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6978 if test "$cross_compiling" = yes; then
6980 else
6981 cat >conftest.$ac_ext <<_ACEOF
6982 /* confdefs.h. */
6983 _ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h. */
6987 #include <ctype.h>
6988 #if ((' ' & 0x0FF) == 0x020)
6989 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6990 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6991 #else
6992 # define ISLOWER(c) \
6993 (('a' <= (c) && (c) <= 'i') \
6994 || ('j' <= (c) && (c) <= 'r') \
6995 || ('s' <= (c) && (c) <= 'z'))
6996 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6997 #endif
6999 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7001 main ()
7003 int i;
7004 for (i = 0; i < 256; i++)
7005 if (XOR (islower (i), ISLOWER (i))
7006 || toupper (i) != TOUPPER (i))
7007 exit(2);
7008 exit (0);
7010 _ACEOF
7011 rm -f conftest$ac_exeext
7012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7013 (eval $ac_link) 2>&5
7014 ac_status=$?
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018 (eval $ac_try) 2>&5
7019 ac_status=$?
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }; }; then
7023 else
7024 echo "$as_me: program exited with status $ac_status" >&5
7025 echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.$ac_ext >&5
7028 ( exit $ac_status )
7029 ac_cv_header_stdc=no
7031 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7035 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7036 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7037 if test $ac_cv_header_stdc = yes; then
7039 cat >>confdefs.h <<\_ACEOF
7040 #define STDC_HEADERS 1
7041 _ACEOF
7045 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7055 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7056 inttypes.h stdint.h unistd.h
7058 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7059 echo "$as_me:$LINENO: checking for $ac_header" >&5
7060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7062 echo $ECHO_N "(cached) $ECHO_C" >&6
7063 else
7064 cat >conftest.$ac_ext <<_ACEOF
7065 /* confdefs.h. */
7066 _ACEOF
7067 cat confdefs.h >>conftest.$ac_ext
7068 cat >>conftest.$ac_ext <<_ACEOF
7069 /* end confdefs.h. */
7070 $ac_includes_default
7072 #include <$ac_header>
7073 _ACEOF
7074 rm -f conftest.$ac_objext
7075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7076 (eval $ac_compile) 2>conftest.er1
7077 ac_status=$?
7078 grep -v '^ *+' conftest.er1 >conftest.err
7079 rm -f conftest.er1
7080 cat conftest.err >&5
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); } &&
7083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7085 (eval $ac_try) 2>&5
7086 ac_status=$?
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); }; } &&
7089 { ac_try='test -s conftest.$ac_objext'
7090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7091 (eval $ac_try) 2>&5
7092 ac_status=$?
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); }; }; then
7095 eval "$as_ac_Header=yes"
7096 else
7097 echo "$as_me: failed program was:" >&5
7098 sed 's/^/| /' conftest.$ac_ext >&5
7100 eval "$as_ac_Header=no"
7102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7107 cat >>confdefs.h <<_ACEOF
7108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7109 _ACEOF
7113 done
7117 for ac_header in jpeglib.h
7119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7121 echo "$as_me:$LINENO: checking for $ac_header" >&5
7122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7127 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7128 else
7129 # Is the header compilable?
7130 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7131 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7132 cat >conftest.$ac_ext <<_ACEOF
7133 /* confdefs.h. */
7134 _ACEOF
7135 cat confdefs.h >>conftest.$ac_ext
7136 cat >>conftest.$ac_ext <<_ACEOF
7137 /* end confdefs.h. */
7138 $ac_includes_default
7139 #include <$ac_header>
7140 _ACEOF
7141 rm -f conftest.$ac_objext
7142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7143 (eval $ac_compile) 2>conftest.er1
7144 ac_status=$?
7145 grep -v '^ *+' conftest.er1 >conftest.err
7146 rm -f conftest.er1
7147 cat conftest.err >&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); } &&
7150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152 (eval $ac_try) 2>&5
7153 ac_status=$?
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); }; } &&
7156 { ac_try='test -s conftest.$ac_objext'
7157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7158 (eval $ac_try) 2>&5
7159 ac_status=$?
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); }; }; then
7162 ac_header_compiler=yes
7163 else
7164 echo "$as_me: failed program was:" >&5
7165 sed 's/^/| /' conftest.$ac_ext >&5
7167 ac_header_compiler=no
7169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7170 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7171 echo "${ECHO_T}$ac_header_compiler" >&6
7173 # Is the header present?
7174 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7175 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7176 cat >conftest.$ac_ext <<_ACEOF
7177 /* confdefs.h. */
7178 _ACEOF
7179 cat confdefs.h >>conftest.$ac_ext
7180 cat >>conftest.$ac_ext <<_ACEOF
7181 /* end confdefs.h. */
7182 #include <$ac_header>
7183 _ACEOF
7184 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7186 ac_status=$?
7187 grep -v '^ *+' conftest.er1 >conftest.err
7188 rm -f conftest.er1
7189 cat conftest.err >&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); } >/dev/null; then
7192 if test -s conftest.err; then
7193 ac_cpp_err=$ac_c_preproc_warn_flag
7194 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7195 else
7196 ac_cpp_err=
7198 else
7199 ac_cpp_err=yes
7201 if test -z "$ac_cpp_err"; then
7202 ac_header_preproc=yes
7203 else
7204 echo "$as_me: failed program was:" >&5
7205 sed 's/^/| /' conftest.$ac_ext >&5
7207 ac_header_preproc=no
7209 rm -f conftest.err conftest.$ac_ext
7210 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7211 echo "${ECHO_T}$ac_header_preproc" >&6
7213 # So? What about this header?
7214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7215 yes:no: )
7216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7220 ac_header_preproc=yes
7222 no:yes:* )
7223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7226 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7230 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7236 cat <<\_ASBOX
7237 ## ------------------------------------ ##
7238 ## Report this to wine-devel@winehq.org ##
7239 ## ------------------------------------ ##
7240 _ASBOX
7242 sed "s/^/$as_me: WARNING: /" >&2
7244 esac
7245 echo "$as_me:$LINENO: checking for $ac_header" >&5
7246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7249 else
7250 eval "$as_ac_Header=\$ac_header_preproc"
7252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7257 cat >>confdefs.h <<_ACEOF
7258 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7259 _ACEOF
7260 echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
7261 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
7262 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
7263 echo $ECHO_N "(cached) $ECHO_C" >&6
7264 else
7265 ac_check_lib_save_LIBS=$LIBS
7266 LIBS="-ljpeg $LIBS"
7267 cat >conftest.$ac_ext <<_ACEOF
7268 /* confdefs.h. */
7269 _ACEOF
7270 cat confdefs.h >>conftest.$ac_ext
7271 cat >>conftest.$ac_ext <<_ACEOF
7272 /* end confdefs.h. */
7274 /* Override any gcc2 internal prototype to avoid an error. */
7275 #ifdef __cplusplus
7276 extern "C"
7277 #endif
7278 /* We use char because int might match the return type of a gcc2
7279 builtin and then its argument prototype would still apply. */
7280 char jpeg_start_decompress ();
7282 main ()
7284 jpeg_start_decompress ();
7286 return 0;
7288 _ACEOF
7289 rm -f conftest.$ac_objext conftest$ac_exeext
7290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7291 (eval $ac_link) 2>conftest.er1
7292 ac_status=$?
7293 grep -v '^ *+' conftest.er1 >conftest.err
7294 rm -f conftest.er1
7295 cat conftest.err >&5
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); } &&
7298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300 (eval $ac_try) 2>&5
7301 ac_status=$?
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); }; } &&
7304 { ac_try='test -s conftest$ac_exeext'
7305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7306 (eval $ac_try) 2>&5
7307 ac_status=$?
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); }; }; then
7310 ac_cv_lib_jpeg_jpeg_start_decompress=yes
7311 else
7312 echo "$as_me: failed program was:" >&5
7313 sed 's/^/| /' conftest.$ac_ext >&5
7315 ac_cv_lib_jpeg_jpeg_start_decompress=no
7317 rm -f conftest.err conftest.$ac_objext \
7318 conftest$ac_exeext conftest.$ac_ext
7319 LIBS=$ac_check_lib_save_LIBS
7321 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
7322 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
7323 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
7325 cat >>confdefs.h <<\_ACEOF
7326 #define HAVE_LIBJPEG 1
7327 _ACEOF
7329 JPEGLIB="-ljpeg"
7336 done
7339 GIFLIB=""
7342 for ac_header in gif_lib.h
7344 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7346 echo "$as_me:$LINENO: checking for $ac_header" >&5
7347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7353 else
7354 # Is the header compilable?
7355 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7357 cat >conftest.$ac_ext <<_ACEOF
7358 /* confdefs.h. */
7359 _ACEOF
7360 cat confdefs.h >>conftest.$ac_ext
7361 cat >>conftest.$ac_ext <<_ACEOF
7362 /* end confdefs.h. */
7363 $ac_includes_default
7364 #include <$ac_header>
7365 _ACEOF
7366 rm -f conftest.$ac_objext
7367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7368 (eval $ac_compile) 2>conftest.er1
7369 ac_status=$?
7370 grep -v '^ *+' conftest.er1 >conftest.err
7371 rm -f conftest.er1
7372 cat conftest.err >&5
7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); } &&
7375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7377 (eval $ac_try) 2>&5
7378 ac_status=$?
7379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380 (exit $ac_status); }; } &&
7381 { ac_try='test -s conftest.$ac_objext'
7382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7383 (eval $ac_try) 2>&5
7384 ac_status=$?
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); }; }; then
7387 ac_header_compiler=yes
7388 else
7389 echo "$as_me: failed program was:" >&5
7390 sed 's/^/| /' conftest.$ac_ext >&5
7392 ac_header_compiler=no
7394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7395 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7396 echo "${ECHO_T}$ac_header_compiler" >&6
7398 # Is the header present?
7399 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7401 cat >conftest.$ac_ext <<_ACEOF
7402 /* confdefs.h. */
7403 _ACEOF
7404 cat confdefs.h >>conftest.$ac_ext
7405 cat >>conftest.$ac_ext <<_ACEOF
7406 /* end confdefs.h. */
7407 #include <$ac_header>
7408 _ACEOF
7409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7411 ac_status=$?
7412 grep -v '^ *+' conftest.er1 >conftest.err
7413 rm -f conftest.er1
7414 cat conftest.err >&5
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); } >/dev/null; then
7417 if test -s conftest.err; then
7418 ac_cpp_err=$ac_c_preproc_warn_flag
7419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7420 else
7421 ac_cpp_err=
7423 else
7424 ac_cpp_err=yes
7426 if test -z "$ac_cpp_err"; then
7427 ac_header_preproc=yes
7428 else
7429 echo "$as_me: failed program was:" >&5
7430 sed 's/^/| /' conftest.$ac_ext >&5
7432 ac_header_preproc=no
7434 rm -f conftest.err conftest.$ac_ext
7435 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7436 echo "${ECHO_T}$ac_header_preproc" >&6
7438 # So? What about this header?
7439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7440 yes:no: )
7441 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7442 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7444 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7445 ac_header_preproc=yes
7447 no:yes:* )
7448 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7449 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7450 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7451 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7452 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7453 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7454 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7455 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7458 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7459 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7461 cat <<\_ASBOX
7462 ## ------------------------------------ ##
7463 ## Report this to wine-devel@winehq.org ##
7464 ## ------------------------------------ ##
7465 _ASBOX
7467 sed "s/^/$as_me: WARNING: /" >&2
7469 esac
7470 echo "$as_me:$LINENO: checking for $ac_header" >&5
7471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7474 else
7475 eval "$as_ac_Header=\$ac_header_preproc"
7477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7478 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7482 cat >>confdefs.h <<_ACEOF
7483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7484 _ACEOF
7485 echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
7486 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
7487 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
7488 echo $ECHO_N "(cached) $ECHO_C" >&6
7489 else
7490 ac_check_lib_save_LIBS=$LIBS
7491 LIBS="-lungif $LIBS"
7492 cat >conftest.$ac_ext <<_ACEOF
7493 /* confdefs.h. */
7494 _ACEOF
7495 cat confdefs.h >>conftest.$ac_ext
7496 cat >>conftest.$ac_ext <<_ACEOF
7497 /* end confdefs.h. */
7499 /* Override any gcc2 internal prototype to avoid an error. */
7500 #ifdef __cplusplus
7501 extern "C"
7502 #endif
7503 /* We use char because int might match the return type of a gcc2
7504 builtin and then its argument prototype would still apply. */
7505 char DGifOpen ();
7507 main ()
7509 DGifOpen ();
7511 return 0;
7513 _ACEOF
7514 rm -f conftest.$ac_objext conftest$ac_exeext
7515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7516 (eval $ac_link) 2>conftest.er1
7517 ac_status=$?
7518 grep -v '^ *+' conftest.er1 >conftest.err
7519 rm -f conftest.er1
7520 cat conftest.err >&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); } &&
7523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7525 (eval $ac_try) 2>&5
7526 ac_status=$?
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; } &&
7529 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
7535 ac_cv_lib_ungif_DGifOpen=yes
7536 else
7537 echo "$as_me: failed program was:" >&5
7538 sed 's/^/| /' conftest.$ac_ext >&5
7540 ac_cv_lib_ungif_DGifOpen=no
7542 rm -f conftest.err conftest.$ac_objext \
7543 conftest$ac_exeext conftest.$ac_ext
7544 LIBS=$ac_check_lib_save_LIBS
7546 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
7547 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
7548 if test $ac_cv_lib_ungif_DGifOpen = yes; then
7550 cat >>confdefs.h <<\_ACEOF
7551 #define HAVE_LIBGIF 1
7552 _ACEOF
7554 GIFLIB="-lungif"
7555 else
7556 echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
7557 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6
7558 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
7559 echo $ECHO_N "(cached) $ECHO_C" >&6
7560 else
7561 ac_check_lib_save_LIBS=$LIBS
7562 LIBS="-lgif $LIBS"
7563 cat >conftest.$ac_ext <<_ACEOF
7564 /* confdefs.h. */
7565 _ACEOF
7566 cat confdefs.h >>conftest.$ac_ext
7567 cat >>conftest.$ac_ext <<_ACEOF
7568 /* end confdefs.h. */
7570 /* Override any gcc2 internal prototype to avoid an error. */
7571 #ifdef __cplusplus
7572 extern "C"
7573 #endif
7574 /* We use char because int might match the return type of a gcc2
7575 builtin and then its argument prototype would still apply. */
7576 char DGifOpen ();
7578 main ()
7580 DGifOpen ();
7582 return 0;
7584 _ACEOF
7585 rm -f conftest.$ac_objext conftest$ac_exeext
7586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7587 (eval $ac_link) 2>conftest.er1
7588 ac_status=$?
7589 grep -v '^ *+' conftest.er1 >conftest.err
7590 rm -f conftest.er1
7591 cat conftest.err >&5
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); } &&
7594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596 (eval $ac_try) 2>&5
7597 ac_status=$?
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); }; } &&
7600 { ac_try='test -s conftest$ac_exeext'
7601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7602 (eval $ac_try) 2>&5
7603 ac_status=$?
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); }; }; then
7606 ac_cv_lib_gif_DGifOpen=yes
7607 else
7608 echo "$as_me: failed program was:" >&5
7609 sed 's/^/| /' conftest.$ac_ext >&5
7611 ac_cv_lib_gif_DGifOpen=no
7613 rm -f conftest.err conftest.$ac_objext \
7614 conftest$ac_exeext conftest.$ac_ext
7615 LIBS=$ac_check_lib_save_LIBS
7617 echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
7618 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6
7619 if test $ac_cv_lib_gif_DGifOpen = yes; then
7620 cat >>confdefs.h <<\_ACEOF
7621 #define HAVE_LIBGIF 1
7622 _ACEOF
7624 GIFLIB="-lgif"
7631 done
7636 XFILES=""
7638 OPENGLFILES=""
7640 GLU32FILES=""
7642 OPENGL_LIBS=""
7643 if test "$have_x" = "yes"
7644 then
7645 XLIB="-lXext -lX11"
7646 ac_save_CPPFLAGS="$CPPFLAGS"
7647 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7650 for ac_header in X11/Xlib.h
7652 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7654 echo "$as_me:$LINENO: checking for $ac_header" >&5
7655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7657 echo $ECHO_N "(cached) $ECHO_C" >&6
7659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7661 else
7662 # Is the header compilable?
7663 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7664 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7665 cat >conftest.$ac_ext <<_ACEOF
7666 /* confdefs.h. */
7667 _ACEOF
7668 cat confdefs.h >>conftest.$ac_ext
7669 cat >>conftest.$ac_ext <<_ACEOF
7670 /* end confdefs.h. */
7671 $ac_includes_default
7672 #include <$ac_header>
7673 _ACEOF
7674 rm -f conftest.$ac_objext
7675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7676 (eval $ac_compile) 2>conftest.er1
7677 ac_status=$?
7678 grep -v '^ *+' conftest.er1 >conftest.err
7679 rm -f conftest.er1
7680 cat conftest.err >&5
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); } &&
7683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7685 (eval $ac_try) 2>&5
7686 ac_status=$?
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); }; } &&
7689 { ac_try='test -s conftest.$ac_objext'
7690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7691 (eval $ac_try) 2>&5
7692 ac_status=$?
7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); }; }; then
7695 ac_header_compiler=yes
7696 else
7697 echo "$as_me: failed program was:" >&5
7698 sed 's/^/| /' conftest.$ac_ext >&5
7700 ac_header_compiler=no
7702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7703 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7704 echo "${ECHO_T}$ac_header_compiler" >&6
7706 # Is the header present?
7707 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7708 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7709 cat >conftest.$ac_ext <<_ACEOF
7710 /* confdefs.h. */
7711 _ACEOF
7712 cat confdefs.h >>conftest.$ac_ext
7713 cat >>conftest.$ac_ext <<_ACEOF
7714 /* end confdefs.h. */
7715 #include <$ac_header>
7716 _ACEOF
7717 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7718 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7719 ac_status=$?
7720 grep -v '^ *+' conftest.er1 >conftest.err
7721 rm -f conftest.er1
7722 cat conftest.err >&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); } >/dev/null; then
7725 if test -s conftest.err; then
7726 ac_cpp_err=$ac_c_preproc_warn_flag
7727 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7728 else
7729 ac_cpp_err=
7731 else
7732 ac_cpp_err=yes
7734 if test -z "$ac_cpp_err"; then
7735 ac_header_preproc=yes
7736 else
7737 echo "$as_me: failed program was:" >&5
7738 sed 's/^/| /' conftest.$ac_ext >&5
7740 ac_header_preproc=no
7742 rm -f conftest.err conftest.$ac_ext
7743 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7744 echo "${ECHO_T}$ac_header_preproc" >&6
7746 # So? What about this header?
7747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7748 yes:no: )
7749 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7750 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7752 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7753 ac_header_preproc=yes
7755 no:yes:* )
7756 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7757 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7758 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7759 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7760 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7761 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7762 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7763 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7765 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7766 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7767 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7769 cat <<\_ASBOX
7770 ## ------------------------------------ ##
7771 ## Report this to wine-devel@winehq.org ##
7772 ## ------------------------------------ ##
7773 _ASBOX
7775 sed "s/^/$as_me: WARNING: /" >&2
7777 esac
7778 echo "$as_me:$LINENO: checking for $ac_header" >&5
7779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6
7782 else
7783 eval "$as_ac_Header=\$ac_header_preproc"
7785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7790 cat >>confdefs.h <<_ACEOF
7791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7792 _ACEOF
7804 for ac_header in X11/XKBlib.h \
7805 X11/Xutil.h \
7806 X11/extensions/shape.h \
7807 X11/extensions/XInput.h \
7808 X11/extensions/XShm.h \
7809 X11/extensions/Xrandr.h \
7810 X11/extensions/Xrender.h \
7811 X11/extensions/Xvlib.h \
7812 X11/extensions/xf86dga.h \
7813 X11/extensions/xf86vmode.h
7815 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7816 echo "$as_me:$LINENO: checking for $ac_header" >&5
7817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7819 echo $ECHO_N "(cached) $ECHO_C" >&6
7820 else
7821 cat >conftest.$ac_ext <<_ACEOF
7822 /* confdefs.h. */
7823 _ACEOF
7824 cat confdefs.h >>conftest.$ac_ext
7825 cat >>conftest.$ac_ext <<_ACEOF
7826 /* end confdefs.h. */
7827 #include <X11/Xlib.h>
7828 #ifdef HAVE_X11_XUTIL_H
7829 # include <X11/Xutil.h>
7830 #endif
7832 #include <$ac_header>
7833 _ACEOF
7834 rm -f conftest.$ac_objext
7835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7836 (eval $ac_compile) 2>conftest.er1
7837 ac_status=$?
7838 grep -v '^ *+' conftest.er1 >conftest.err
7839 rm -f conftest.er1
7840 cat conftest.err >&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); } &&
7843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845 (eval $ac_try) 2>&5
7846 ac_status=$?
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }; } &&
7849 { ac_try='test -s conftest.$ac_objext'
7850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7851 (eval $ac_try) 2>&5
7852 ac_status=$?
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); }; }; then
7855 eval "$as_ac_Header=yes"
7856 else
7857 echo "$as_me: failed program was:" >&5
7858 sed 's/^/| /' conftest.$ac_ext >&5
7860 eval "$as_ac_Header=no"
7862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7866 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7867 cat >>confdefs.h <<_ACEOF
7868 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7869 _ACEOF
7873 done
7876 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7877 then
7878 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
7879 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
7880 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
7881 echo $ECHO_N "(cached) $ECHO_C" >&6
7882 else
7883 ac_check_lib_save_LIBS=$LIBS
7884 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7885 cat >conftest.$ac_ext <<_ACEOF
7886 /* confdefs.h. */
7887 _ACEOF
7888 cat confdefs.h >>conftest.$ac_ext
7889 cat >>conftest.$ac_ext <<_ACEOF
7890 /* end confdefs.h. */
7892 /* Override any gcc2 internal prototype to avoid an error. */
7893 #ifdef __cplusplus
7894 extern "C"
7895 #endif
7896 /* We use char because int might match the return type of a gcc2
7897 builtin and then its argument prototype would still apply. */
7898 char XkbQueryExtension ();
7900 main ()
7902 XkbQueryExtension ();
7904 return 0;
7906 _ACEOF
7907 rm -f conftest.$ac_objext conftest$ac_exeext
7908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7909 (eval $ac_link) 2>conftest.er1
7910 ac_status=$?
7911 grep -v '^ *+' conftest.er1 >conftest.err
7912 rm -f conftest.er1
7913 cat conftest.err >&5
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); } &&
7916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7918 (eval $ac_try) 2>&5
7919 ac_status=$?
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); }; } &&
7922 { ac_try='test -s conftest$ac_exeext'
7923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7924 (eval $ac_try) 2>&5
7925 ac_status=$?
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); }; }; then
7928 ac_cv_lib_X11_XkbQueryExtension=yes
7929 else
7930 echo "$as_me: failed program was:" >&5
7931 sed 's/^/| /' conftest.$ac_ext >&5
7933 ac_cv_lib_X11_XkbQueryExtension=no
7935 rm -f conftest.err conftest.$ac_objext \
7936 conftest$ac_exeext conftest.$ac_ext
7937 LIBS=$ac_check_lib_save_LIBS
7939 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
7940 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
7941 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
7943 cat >>confdefs.h <<\_ACEOF
7944 #define HAVE_XKB 1
7945 _ACEOF
7951 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
7952 then
7953 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
7954 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
7955 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
7956 echo $ECHO_N "(cached) $ECHO_C" >&6
7957 else
7958 ac_check_lib_save_LIBS=$LIBS
7959 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7960 cat >conftest.$ac_ext <<_ACEOF
7961 /* confdefs.h. */
7962 _ACEOF
7963 cat confdefs.h >>conftest.$ac_ext
7964 cat >>conftest.$ac_ext <<_ACEOF
7965 /* end confdefs.h. */
7967 /* Override any gcc2 internal prototype to avoid an error. */
7968 #ifdef __cplusplus
7969 extern "C"
7970 #endif
7971 /* We use char because int might match the return type of a gcc2
7972 builtin and then its argument prototype would still apply. */
7973 char XShmQueryExtension ();
7975 main ()
7977 XShmQueryExtension ();
7979 return 0;
7981 _ACEOF
7982 rm -f conftest.$ac_objext conftest$ac_exeext
7983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7984 (eval $ac_link) 2>conftest.er1
7985 ac_status=$?
7986 grep -v '^ *+' conftest.er1 >conftest.err
7987 rm -f conftest.er1
7988 cat conftest.err >&5
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); } &&
7991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7993 (eval $ac_try) 2>&5
7994 ac_status=$?
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); }; } &&
7997 { ac_try='test -s conftest$ac_exeext'
7998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7999 (eval $ac_try) 2>&5
8000 ac_status=$?
8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 (exit $ac_status); }; }; then
8003 ac_cv_lib_Xext_XShmQueryExtension=yes
8004 else
8005 echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.$ac_ext >&5
8008 ac_cv_lib_Xext_XShmQueryExtension=no
8010 rm -f conftest.err conftest.$ac_objext \
8011 conftest$ac_exeext conftest.$ac_ext
8012 LIBS=$ac_check_lib_save_LIBS
8014 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8015 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
8016 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
8018 cat >>confdefs.h <<\_ACEOF
8019 #define HAVE_LIBXXSHM 1
8020 _ACEOF
8026 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8027 then
8028 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8029 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8030 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8031 echo $ECHO_N "(cached) $ECHO_C" >&6
8032 else
8033 ac_check_lib_save_LIBS=$LIBS
8034 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8035 cat >conftest.$ac_ext <<_ACEOF
8036 /* confdefs.h. */
8037 _ACEOF
8038 cat confdefs.h >>conftest.$ac_ext
8039 cat >>conftest.$ac_ext <<_ACEOF
8040 /* end confdefs.h. */
8042 /* Override any gcc2 internal prototype to avoid an error. */
8043 #ifdef __cplusplus
8044 extern "C"
8045 #endif
8046 /* We use char because int might match the return type of a gcc2
8047 builtin and then its argument prototype would still apply. */
8048 char XShapeQueryExtension ();
8050 main ()
8052 XShapeQueryExtension ();
8054 return 0;
8056 _ACEOF
8057 rm -f conftest.$ac_objext conftest$ac_exeext
8058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8059 (eval $ac_link) 2>conftest.er1
8060 ac_status=$?
8061 grep -v '^ *+' conftest.er1 >conftest.err
8062 rm -f conftest.er1
8063 cat conftest.err >&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); } &&
8066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068 (eval $ac_try) 2>&5
8069 ac_status=$?
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; } &&
8072 { ac_try='test -s conftest$ac_exeext'
8073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8074 (eval $ac_try) 2>&5
8075 ac_status=$?
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); }; }; then
8078 ac_cv_lib_Xext_XShapeQueryExtension=yes
8079 else
8080 echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8083 ac_cv_lib_Xext_XShapeQueryExtension=no
8085 rm -f conftest.err conftest.$ac_objext \
8086 conftest$ac_exeext conftest.$ac_ext
8087 LIBS=$ac_check_lib_save_LIBS
8089 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8090 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8091 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8093 cat >>confdefs.h <<\_ACEOF
8094 #define HAVE_LIBXSHAPE 1
8095 _ACEOF
8101 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
8102 then
8103 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
8104 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
8105 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
8106 echo $ECHO_N "(cached) $ECHO_C" >&6
8107 else
8108 ac_check_lib_save_LIBS=$LIBS
8109 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8110 cat >conftest.$ac_ext <<_ACEOF
8111 /* confdefs.h. */
8112 _ACEOF
8113 cat confdefs.h >>conftest.$ac_ext
8114 cat >>conftest.$ac_ext <<_ACEOF
8115 /* end confdefs.h. */
8117 /* Override any gcc2 internal prototype to avoid an error. */
8118 #ifdef __cplusplus
8119 extern "C"
8120 #endif
8121 /* We use char because int might match the return type of a gcc2
8122 builtin and then its argument prototype would still apply. */
8123 char XDGAQueryExtension ();
8125 main ()
8127 XDGAQueryExtension ();
8129 return 0;
8131 _ACEOF
8132 rm -f conftest.$ac_objext conftest$ac_exeext
8133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8134 (eval $ac_link) 2>conftest.er1
8135 ac_status=$?
8136 grep -v '^ *+' conftest.er1 >conftest.err
8137 rm -f conftest.er1
8138 cat conftest.err >&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } &&
8141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143 (eval $ac_try) 2>&5
8144 ac_status=$?
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); }; } &&
8147 { ac_try='test -s conftest$ac_exeext'
8148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8149 (eval $ac_try) 2>&5
8150 ac_status=$?
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); }; }; then
8153 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
8154 else
8155 echo "$as_me: failed program was:" >&5
8156 sed 's/^/| /' conftest.$ac_ext >&5
8158 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
8160 rm -f conftest.err conftest.$ac_objext \
8161 conftest$ac_exeext conftest.$ac_ext
8162 LIBS=$ac_check_lib_save_LIBS
8164 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
8165 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
8166 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
8168 cat >>confdefs.h <<\_ACEOF
8169 #define HAVE_LIBXXF86DGA2 1
8170 _ACEOF
8172 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
8174 else
8175 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
8176 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
8177 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
8178 echo $ECHO_N "(cached) $ECHO_C" >&6
8179 else
8180 ac_check_lib_save_LIBS=$LIBS
8181 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
8182 $LIBS"
8183 cat >conftest.$ac_ext <<_ACEOF
8184 /* confdefs.h. */
8185 _ACEOF
8186 cat confdefs.h >>conftest.$ac_ext
8187 cat >>conftest.$ac_ext <<_ACEOF
8188 /* end confdefs.h. */
8190 /* Override any gcc2 internal prototype to avoid an error. */
8191 #ifdef __cplusplus
8192 extern "C"
8193 #endif
8194 /* We use char because int might match the return type of a gcc2
8195 builtin and then its argument prototype would still apply. */
8196 char XF86DGAQueryExtension ();
8198 main ()
8200 XF86DGAQueryExtension ();
8202 return 0;
8204 _ACEOF
8205 rm -f conftest.$ac_objext conftest$ac_exeext
8206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8207 (eval $ac_link) 2>conftest.er1
8208 ac_status=$?
8209 grep -v '^ *+' conftest.er1 >conftest.err
8210 rm -f conftest.er1
8211 cat conftest.err >&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); } &&
8214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8216 (eval $ac_try) 2>&5
8217 ac_status=$?
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); }; } &&
8220 { ac_try='test -s conftest$ac_exeext'
8221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8222 (eval $ac_try) 2>&5
8223 ac_status=$?
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); }; }; then
8226 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
8227 else
8228 echo "$as_me: failed program was:" >&5
8229 sed 's/^/| /' conftest.$ac_ext >&5
8231 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
8233 rm -f conftest.err conftest.$ac_objext \
8234 conftest$ac_exeext conftest.$ac_ext
8235 LIBS=$ac_check_lib_save_LIBS
8237 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
8238 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
8239 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
8241 cat >>confdefs.h <<\_ACEOF
8242 #define HAVE_LIBXXF86DGA 1
8243 _ACEOF
8245 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
8254 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
8255 then
8256 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
8257 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
8258 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
8259 echo $ECHO_N "(cached) $ECHO_C" >&6
8260 else
8261 ac_check_lib_save_LIBS=$LIBS
8262 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8263 cat >conftest.$ac_ext <<_ACEOF
8264 /* confdefs.h. */
8265 _ACEOF
8266 cat confdefs.h >>conftest.$ac_ext
8267 cat >>conftest.$ac_ext <<_ACEOF
8268 /* end confdefs.h. */
8270 /* Override any gcc2 internal prototype to avoid an error. */
8271 #ifdef __cplusplus
8272 extern "C"
8273 #endif
8274 /* We use char because int might match the return type of a gcc2
8275 builtin and then its argument prototype would still apply. */
8276 char XF86VidModeQueryExtension ();
8278 main ()
8280 XF86VidModeQueryExtension ();
8282 return 0;
8284 _ACEOF
8285 rm -f conftest.$ac_objext conftest$ac_exeext
8286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8287 (eval $ac_link) 2>conftest.er1
8288 ac_status=$?
8289 grep -v '^ *+' conftest.er1 >conftest.err
8290 rm -f conftest.er1
8291 cat conftest.err >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } &&
8294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8296 (eval $ac_try) 2>&5
8297 ac_status=$?
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); }; } &&
8300 { ac_try='test -s conftest$ac_exeext'
8301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8302 (eval $ac_try) 2>&5
8303 ac_status=$?
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); }; }; then
8306 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
8307 else
8308 echo "$as_me: failed program was:" >&5
8309 sed 's/^/| /' conftest.$ac_ext >&5
8311 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
8313 rm -f conftest.err conftest.$ac_objext \
8314 conftest$ac_exeext conftest.$ac_ext
8315 LIBS=$ac_check_lib_save_LIBS
8317 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
8318 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
8319 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
8321 cat >>confdefs.h <<\_ACEOF
8322 #define HAVE_LIBXXF86VM 1
8323 _ACEOF
8325 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
8331 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
8332 then
8333 echo "$as_me:$LINENO: checking for XRRSetScreenConfigAndRate in -lXrandr" >&5
8334 echo $ECHO_N "checking for XRRSetScreenConfigAndRate in -lXrandr... $ECHO_C" >&6
8335 if test "${ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate+set}" = set; then
8336 echo $ECHO_N "(cached) $ECHO_C" >&6
8337 else
8338 ac_check_lib_save_LIBS=$LIBS
8339 LIBS="-lXrandr $X_LIBS -lXrender -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8340 cat >conftest.$ac_ext <<_ACEOF
8341 /* confdefs.h. */
8342 _ACEOF
8343 cat confdefs.h >>conftest.$ac_ext
8344 cat >>conftest.$ac_ext <<_ACEOF
8345 /* end confdefs.h. */
8347 /* Override any gcc2 internal prototype to avoid an error. */
8348 #ifdef __cplusplus
8349 extern "C"
8350 #endif
8351 /* We use char because int might match the return type of a gcc2
8352 builtin and then its argument prototype would still apply. */
8353 char XRRSetScreenConfigAndRate ();
8355 main ()
8357 XRRSetScreenConfigAndRate ();
8359 return 0;
8361 _ACEOF
8362 rm -f conftest.$ac_objext conftest$ac_exeext
8363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8364 (eval $ac_link) 2>conftest.er1
8365 ac_status=$?
8366 grep -v '^ *+' conftest.er1 >conftest.err
8367 rm -f conftest.er1
8368 cat conftest.err >&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); } &&
8371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8373 (eval $ac_try) 2>&5
8374 ac_status=$?
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); }; } &&
8377 { ac_try='test -s conftest$ac_exeext'
8378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8379 (eval $ac_try) 2>&5
8380 ac_status=$?
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); }; }; then
8383 ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate=yes
8384 else
8385 echo "$as_me: failed program was:" >&5
8386 sed 's/^/| /' conftest.$ac_ext >&5
8388 ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate=no
8390 rm -f conftest.err conftest.$ac_objext \
8391 conftest$ac_exeext conftest.$ac_ext
8392 LIBS=$ac_check_lib_save_LIBS
8394 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate" >&5
8395 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate" >&6
8396 if test $ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate = yes; then
8398 cat >>confdefs.h <<\_ACEOF
8399 #define HAVE_LIBXRANDR 1
8400 _ACEOF
8402 X_PRE_LIBS="$X_PRE_LIBS -lXrandr -lXrender"
8408 if test "$ac_cv_header_X11_extensions_Xvlib_h" = "yes"
8409 then
8410 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
8411 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
8412 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
8414 else
8415 ac_check_lib_save_LIBS=$LIBS
8416 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8417 cat >conftest.$ac_ext <<_ACEOF
8418 /* confdefs.h. */
8419 _ACEOF
8420 cat confdefs.h >>conftest.$ac_ext
8421 cat >>conftest.$ac_ext <<_ACEOF
8422 /* end confdefs.h. */
8424 /* Override any gcc2 internal prototype to avoid an error. */
8425 #ifdef __cplusplus
8426 extern "C"
8427 #endif
8428 /* We use char because int might match the return type of a gcc2
8429 builtin and then its argument prototype would still apply. */
8430 char XvShmCreateImage ();
8432 main ()
8434 XvShmCreateImage ();
8436 return 0;
8438 _ACEOF
8439 rm -f conftest.$ac_objext conftest$ac_exeext
8440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8441 (eval $ac_link) 2>conftest.er1
8442 ac_status=$?
8443 grep -v '^ *+' conftest.er1 >conftest.err
8444 rm -f conftest.er1
8445 cat conftest.err >&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); } &&
8448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8450 (eval $ac_try) 2>&5
8451 ac_status=$?
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); }; } &&
8454 { ac_try='test -s conftest$ac_exeext'
8455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8456 (eval $ac_try) 2>&5
8457 ac_status=$?
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); }; }; then
8460 ac_cv_lib_Xv_XvShmCreateImage=yes
8461 else
8462 echo "$as_me: failed program was:" >&5
8463 sed 's/^/| /' conftest.$ac_ext >&5
8465 ac_cv_lib_Xv_XvShmCreateImage=no
8467 rm -f conftest.err conftest.$ac_objext \
8468 conftest$ac_exeext conftest.$ac_ext
8469 LIBS=$ac_check_lib_save_LIBS
8471 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
8472 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
8473 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
8475 cat >>confdefs.h <<\_ACEOF
8476 #define HAVE_XVIDEO 1
8477 _ACEOF
8479 X_PRE_LIBS="$X_PRE_LIBS -lXv"
8488 done
8490 if test "x$with_opengl" != "xno"
8491 then
8492 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
8493 then
8494 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
8495 This prevents linking to OpenGL. Delete the file and restart configure." >&5
8496 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
8497 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
8498 { (exit 1); exit 1; }; }
8503 for ac_header in GL/gl.h GL/glx.h
8505 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8507 echo "$as_me:$LINENO: checking for $ac_header" >&5
8508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8510 echo $ECHO_N "(cached) $ECHO_C" >&6
8512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8513 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8514 else
8515 # Is the header compilable?
8516 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8517 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8518 cat >conftest.$ac_ext <<_ACEOF
8519 /* confdefs.h. */
8520 _ACEOF
8521 cat confdefs.h >>conftest.$ac_ext
8522 cat >>conftest.$ac_ext <<_ACEOF
8523 /* end confdefs.h. */
8524 $ac_includes_default
8525 #include <$ac_header>
8526 _ACEOF
8527 rm -f conftest.$ac_objext
8528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8529 (eval $ac_compile) 2>conftest.er1
8530 ac_status=$?
8531 grep -v '^ *+' conftest.er1 >conftest.err
8532 rm -f conftest.er1
8533 cat conftest.err >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); } &&
8536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8538 (eval $ac_try) 2>&5
8539 ac_status=$?
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); }; } &&
8542 { ac_try='test -s conftest.$ac_objext'
8543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544 (eval $ac_try) 2>&5
8545 ac_status=$?
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; }; then
8548 ac_header_compiler=yes
8549 else
8550 echo "$as_me: failed program was:" >&5
8551 sed 's/^/| /' conftest.$ac_ext >&5
8553 ac_header_compiler=no
8555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8556 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8557 echo "${ECHO_T}$ac_header_compiler" >&6
8559 # Is the header present?
8560 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8561 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8562 cat >conftest.$ac_ext <<_ACEOF
8563 /* confdefs.h. */
8564 _ACEOF
8565 cat confdefs.h >>conftest.$ac_ext
8566 cat >>conftest.$ac_ext <<_ACEOF
8567 /* end confdefs.h. */
8568 #include <$ac_header>
8569 _ACEOF
8570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8572 ac_status=$?
8573 grep -v '^ *+' conftest.er1 >conftest.err
8574 rm -f conftest.er1
8575 cat conftest.err >&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); } >/dev/null; then
8578 if test -s conftest.err; then
8579 ac_cpp_err=$ac_c_preproc_warn_flag
8580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8581 else
8582 ac_cpp_err=
8584 else
8585 ac_cpp_err=yes
8587 if test -z "$ac_cpp_err"; then
8588 ac_header_preproc=yes
8589 else
8590 echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.$ac_ext >&5
8593 ac_header_preproc=no
8595 rm -f conftest.err conftest.$ac_ext
8596 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8597 echo "${ECHO_T}$ac_header_preproc" >&6
8599 # So? What about this header?
8600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8601 yes:no: )
8602 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8603 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8605 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8606 ac_header_preproc=yes
8608 no:yes:* )
8609 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8610 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8611 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8612 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8613 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8614 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8615 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8616 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8619 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8620 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8622 cat <<\_ASBOX
8623 ## ------------------------------------ ##
8624 ## Report this to wine-devel@winehq.org ##
8625 ## ------------------------------------ ##
8626 _ASBOX
8628 sed "s/^/$as_me: WARNING: /" >&2
8630 esac
8631 echo "$as_me:$LINENO: checking for $ac_header" >&5
8632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8634 echo $ECHO_N "(cached) $ECHO_C" >&6
8635 else
8636 eval "$as_ac_Header=\$ac_header_preproc"
8638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8643 cat >>confdefs.h <<_ACEOF
8644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8645 _ACEOF
8649 done
8651 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8652 then
8654 for ac_header in GL/glext.h
8656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8657 echo "$as_me:$LINENO: checking for $ac_header" >&5
8658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8660 echo $ECHO_N "(cached) $ECHO_C" >&6
8661 else
8662 cat >conftest.$ac_ext <<_ACEOF
8663 /* confdefs.h. */
8664 _ACEOF
8665 cat confdefs.h >>conftest.$ac_ext
8666 cat >>conftest.$ac_ext <<_ACEOF
8667 /* end confdefs.h. */
8668 #include <GL/glx.h>
8670 #include <$ac_header>
8671 _ACEOF
8672 rm -f conftest.$ac_objext
8673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8674 (eval $ac_compile) 2>conftest.er1
8675 ac_status=$?
8676 grep -v '^ *+' conftest.er1 >conftest.err
8677 rm -f conftest.er1
8678 cat conftest.err >&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); } &&
8681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8683 (eval $ac_try) 2>&5
8684 ac_status=$?
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); }; } &&
8687 { ac_try='test -s conftest.$ac_objext'
8688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8689 (eval $ac_try) 2>&5
8690 ac_status=$?
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); }; }; then
8693 eval "$as_ac_Header=yes"
8694 else
8695 echo "$as_me: failed program was:" >&5
8696 sed 's/^/| /' conftest.$ac_ext >&5
8698 eval "$as_ac_Header=no"
8700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8705 cat >>confdefs.h <<_ACEOF
8706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8707 _ACEOF
8711 done
8713 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
8714 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
8715 if test "${wine_cv_opengl_version_OK+set}" = set; then
8716 echo $ECHO_N "(cached) $ECHO_C" >&6
8717 else
8718 cat >conftest.$ac_ext <<_ACEOF
8719 /* confdefs.h. */
8720 _ACEOF
8721 cat confdefs.h >>conftest.$ac_ext
8722 cat >>conftest.$ac_ext <<_ACEOF
8723 /* end confdefs.h. */
8724 #include <GL/gl.h>
8726 main ()
8728 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8730 return 0;
8732 _ACEOF
8733 rm -f conftest.$ac_objext
8734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8735 (eval $ac_compile) 2>conftest.er1
8736 ac_status=$?
8737 grep -v '^ *+' conftest.er1 >conftest.err
8738 rm -f conftest.er1
8739 cat conftest.err >&5
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); } &&
8742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8744 (eval $ac_try) 2>&5
8745 ac_status=$?
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); }; } &&
8748 { ac_try='test -s conftest.$ac_objext'
8749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8750 (eval $ac_try) 2>&5
8751 ac_status=$?
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); }; }; then
8754 wine_cv_opengl_version_OK="yes"
8755 else
8756 echo "$as_me: failed program was:" >&5
8757 sed 's/^/| /' conftest.$ac_ext >&5
8759 wine_cv_opengl_version_OK="no"
8762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8765 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
8766 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
8768 if test "$wine_cv_opengl_version_OK" = "yes"
8769 then
8770 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
8771 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
8772 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8773 echo $ECHO_N "(cached) $ECHO_C" >&6
8774 else
8775 ac_check_lib_save_LIBS=$LIBS
8776 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8777 cat >conftest.$ac_ext <<_ACEOF
8778 /* confdefs.h. */
8779 _ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h. */
8784 /* Override any gcc2 internal prototype to avoid an error. */
8785 #ifdef __cplusplus
8786 extern "C"
8787 #endif
8788 /* We use char because int might match the return type of a gcc2
8789 builtin and then its argument prototype would still apply. */
8790 char glXCreateContext ();
8792 main ()
8794 glXCreateContext ();
8796 return 0;
8798 _ACEOF
8799 rm -f conftest.$ac_objext conftest$ac_exeext
8800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8801 (eval $ac_link) 2>conftest.er1
8802 ac_status=$?
8803 grep -v '^ *+' conftest.er1 >conftest.err
8804 rm -f conftest.er1
8805 cat conftest.err >&5
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); } &&
8808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8810 (eval $ac_try) 2>&5
8811 ac_status=$?
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); }; } &&
8814 { ac_try='test -s conftest$ac_exeext'
8815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8816 (eval $ac_try) 2>&5
8817 ac_status=$?
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); }; }; then
8820 ac_cv_lib_GL_glXCreateContext=yes
8821 else
8822 echo "$as_me: failed program was:" >&5
8823 sed 's/^/| /' conftest.$ac_ext >&5
8825 ac_cv_lib_GL_glXCreateContext=no
8827 rm -f conftest.err conftest.$ac_objext \
8828 conftest$ac_exeext conftest.$ac_ext
8829 LIBS=$ac_check_lib_save_LIBS
8831 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
8832 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8833 if test $ac_cv_lib_GL_glXCreateContext = yes; then
8834 OPENGL_LIBS="-lGL"
8839 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
8840 then
8841 OPENGLFILES='$(OPENGLFILES)'
8843 cat >>confdefs.h <<\_ACEOF
8844 #define HAVE_OPENGL 1
8845 _ACEOF
8848 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
8849 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
8850 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
8851 echo $ECHO_N "(cached) $ECHO_C" >&6
8852 else
8853 ac_check_lib_save_LIBS=$LIBS
8854 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8855 cat >conftest.$ac_ext <<_ACEOF
8856 /* confdefs.h. */
8857 _ACEOF
8858 cat confdefs.h >>conftest.$ac_ext
8859 cat >>conftest.$ac_ext <<_ACEOF
8860 /* end confdefs.h. */
8862 /* Override any gcc2 internal prototype to avoid an error. */
8863 #ifdef __cplusplus
8864 extern "C"
8865 #endif
8866 /* We use char because int might match the return type of a gcc2
8867 builtin and then its argument prototype would still apply. */
8868 char glXGetProcAddressARB ();
8870 main ()
8872 glXGetProcAddressARB ();
8874 return 0;
8876 _ACEOF
8877 rm -f conftest.$ac_objext conftest$ac_exeext
8878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8879 (eval $ac_link) 2>conftest.er1
8880 ac_status=$?
8881 grep -v '^ *+' conftest.er1 >conftest.err
8882 rm -f conftest.er1
8883 cat conftest.err >&5
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); } &&
8886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8888 (eval $ac_try) 2>&5
8889 ac_status=$?
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); }; } &&
8892 { ac_try='test -s conftest$ac_exeext'
8893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8894 (eval $ac_try) 2>&5
8895 ac_status=$?
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); }; }; then
8898 ac_cv_lib_GL_glXGetProcAddressARB=yes
8899 else
8900 echo "$as_me: failed program was:" >&5
8901 sed 's/^/| /' conftest.$ac_ext >&5
8903 ac_cv_lib_GL_glXGetProcAddressARB=no
8905 rm -f conftest.err conftest.$ac_objext \
8906 conftest$ac_exeext conftest.$ac_ext
8907 LIBS=$ac_check_lib_save_LIBS
8909 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
8910 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
8911 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
8913 cat >>confdefs.h <<\_ACEOF
8914 #define HAVE_GLX_GETPROCADDRESS 1
8915 _ACEOF
8920 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
8921 then
8922 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
8923 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
8924 if test "${wine_cv_extension_prototypes+set}" = set; then
8925 echo $ECHO_N "(cached) $ECHO_C" >&6
8926 else
8927 cat >conftest.$ac_ext <<_ACEOF
8928 /* confdefs.h. */
8929 _ACEOF
8930 cat confdefs.h >>conftest.$ac_ext
8931 cat >>conftest.$ac_ext <<_ACEOF
8932 /* end confdefs.h. */
8933 #include <GL/gl.h>
8934 #ifdef HAVE_GL_GLEXT_H
8935 # include <GL/glext.h>
8936 #endif
8939 main ()
8941 PFNGLCOLORTABLEEXTPROC test_proc;
8943 return 0;
8945 _ACEOF
8946 rm -f conftest.$ac_objext
8947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8948 (eval $ac_compile) 2>conftest.er1
8949 ac_status=$?
8950 grep -v '^ *+' conftest.er1 >conftest.err
8951 rm -f conftest.er1
8952 cat conftest.err >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); } &&
8955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8957 (eval $ac_try) 2>&5
8958 ac_status=$?
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); }; } &&
8961 { ac_try='test -s conftest.$ac_objext'
8962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8963 (eval $ac_try) 2>&5
8964 ac_status=$?
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); }; }; then
8967 wine_cv_extension_prototypes="yes"
8968 else
8969 echo "$as_me: failed program was:" >&5
8970 sed 's/^/| /' conftest.$ac_ext >&5
8972 wine_cv_extension_prototypes="no"
8975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8978 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
8979 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
8980 if test "$wine_cv_extension_prototypes" = "yes"
8981 then
8983 cat >>confdefs.h <<\_ACEOF
8984 #define HAVE_GLEXT_PROTOTYPES 1
8985 _ACEOF
8991 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
8992 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8993 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8994 echo $ECHO_N "(cached) $ECHO_C" >&6
8995 else
8996 ac_check_lib_save_LIBS=$LIBS
8997 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
8998 $LIBS"
8999 cat >conftest.$ac_ext <<_ACEOF
9000 /* confdefs.h. */
9001 _ACEOF
9002 cat confdefs.h >>conftest.$ac_ext
9003 cat >>conftest.$ac_ext <<_ACEOF
9004 /* end confdefs.h. */
9006 /* Override any gcc2 internal prototype to avoid an error. */
9007 #ifdef __cplusplus
9008 extern "C"
9009 #endif
9010 /* We use char because int might match the return type of a gcc2
9011 builtin and then its argument prototype would still apply. */
9012 char gluLookAt ();
9014 main ()
9016 gluLookAt ();
9018 return 0;
9020 _ACEOF
9021 rm -f conftest.$ac_objext conftest$ac_exeext
9022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9023 (eval $ac_link) 2>conftest.er1
9024 ac_status=$?
9025 grep -v '^ *+' conftest.er1 >conftest.err
9026 rm -f conftest.er1
9027 cat conftest.err >&5
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); } &&
9030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9032 (eval $ac_try) 2>&5
9033 ac_status=$?
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 (exit $ac_status); }; } &&
9036 { ac_try='test -s conftest$ac_exeext'
9037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9038 (eval $ac_try) 2>&5
9039 ac_status=$?
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); }; }; then
9042 ac_cv_lib_GLU_gluLookAt=yes
9043 else
9044 echo "$as_me: failed program was:" >&5
9045 sed 's/^/| /' conftest.$ac_ext >&5
9047 ac_cv_lib_GLU_gluLookAt=no
9049 rm -f conftest.err conftest.$ac_objext \
9050 conftest$ac_exeext conftest.$ac_ext
9051 LIBS=$ac_check_lib_save_LIBS
9053 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
9054 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
9055 if test $ac_cv_lib_GLU_gluLookAt = yes; then
9056 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
9057 GLU32FILES='$(GLU32FILES)'
9063 echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
9064 echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6
9065 if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
9066 echo $ECHO_N "(cached) $ECHO_C" >&6
9067 else
9068 ac_check_lib_save_LIBS=$LIBS
9069 LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
9070 cat >conftest.$ac_ext <<_ACEOF
9071 /* confdefs.h. */
9072 _ACEOF
9073 cat confdefs.h >>conftest.$ac_ext
9074 cat >>conftest.$ac_ext <<_ACEOF
9075 /* end confdefs.h. */
9077 /* Override any gcc2 internal prototype to avoid an error. */
9078 #ifdef __cplusplus
9079 extern "C"
9080 #endif
9081 /* We use char because int might match the return type of a gcc2
9082 builtin and then its argument prototype would still apply. */
9083 char glutMainLoop ();
9085 main ()
9087 glutMainLoop ();
9089 return 0;
9091 _ACEOF
9092 rm -f conftest.$ac_objext conftest$ac_exeext
9093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9094 (eval $ac_link) 2>conftest.er1
9095 ac_status=$?
9096 grep -v '^ *+' conftest.er1 >conftest.err
9097 rm -f conftest.er1
9098 cat conftest.err >&5
9099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100 (exit $ac_status); } &&
9101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9103 (eval $ac_try) 2>&5
9104 ac_status=$?
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); }; } &&
9107 { ac_try='test -s conftest$ac_exeext'
9108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109 (eval $ac_try) 2>&5
9110 ac_status=$?
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); }; }; then
9113 ac_cv_lib_glut_glutMainLoop=yes
9114 else
9115 echo "$as_me: failed program was:" >&5
9116 sed 's/^/| /' conftest.$ac_ext >&5
9118 ac_cv_lib_glut_glutMainLoop=no
9120 rm -f conftest.err conftest.$ac_objext \
9121 conftest$ac_exeext conftest.$ac_ext
9122 LIBS=$ac_check_lib_save_LIBS
9124 echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
9125 echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6
9126 if test $ac_cv_lib_glut_glutMainLoop = yes; then
9127 GLUT_LIBS="-lglut -lXmu -lXi"
9129 GLUT32FILES='$(GLUT32FILES)'
9136 NASLIBS=""
9139 for ac_header in audio/audiolib.h
9141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9143 echo "$as_me:$LINENO: checking for $ac_header" >&5
9144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9146 echo $ECHO_N "(cached) $ECHO_C" >&6
9148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9149 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9150 else
9151 # Is the header compilable?
9152 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9153 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9154 cat >conftest.$ac_ext <<_ACEOF
9155 /* confdefs.h. */
9156 _ACEOF
9157 cat confdefs.h >>conftest.$ac_ext
9158 cat >>conftest.$ac_ext <<_ACEOF
9159 /* end confdefs.h. */
9160 $ac_includes_default
9161 #include <$ac_header>
9162 _ACEOF
9163 rm -f conftest.$ac_objext
9164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9165 (eval $ac_compile) 2>conftest.er1
9166 ac_status=$?
9167 grep -v '^ *+' conftest.er1 >conftest.err
9168 rm -f conftest.er1
9169 cat conftest.err >&5
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); } &&
9172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9174 (eval $ac_try) 2>&5
9175 ac_status=$?
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); }; } &&
9178 { ac_try='test -s conftest.$ac_objext'
9179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9180 (eval $ac_try) 2>&5
9181 ac_status=$?
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); }; }; then
9184 ac_header_compiler=yes
9185 else
9186 echo "$as_me: failed program was:" >&5
9187 sed 's/^/| /' conftest.$ac_ext >&5
9189 ac_header_compiler=no
9191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9192 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9193 echo "${ECHO_T}$ac_header_compiler" >&6
9195 # Is the header present?
9196 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9198 cat >conftest.$ac_ext <<_ACEOF
9199 /* confdefs.h. */
9200 _ACEOF
9201 cat confdefs.h >>conftest.$ac_ext
9202 cat >>conftest.$ac_ext <<_ACEOF
9203 /* end confdefs.h. */
9204 #include <$ac_header>
9205 _ACEOF
9206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9208 ac_status=$?
9209 grep -v '^ *+' conftest.er1 >conftest.err
9210 rm -f conftest.er1
9211 cat conftest.err >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); } >/dev/null; then
9214 if test -s conftest.err; then
9215 ac_cpp_err=$ac_c_preproc_warn_flag
9216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9217 else
9218 ac_cpp_err=
9220 else
9221 ac_cpp_err=yes
9223 if test -z "$ac_cpp_err"; then
9224 ac_header_preproc=yes
9225 else
9226 echo "$as_me: failed program was:" >&5
9227 sed 's/^/| /' conftest.$ac_ext >&5
9229 ac_header_preproc=no
9231 rm -f conftest.err conftest.$ac_ext
9232 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9233 echo "${ECHO_T}$ac_header_preproc" >&6
9235 # So? What about this header?
9236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9237 yes:no: )
9238 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9239 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9241 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9242 ac_header_preproc=yes
9244 no:yes:* )
9245 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9246 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9247 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9248 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9249 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9250 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9251 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9252 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9255 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9256 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9258 cat <<\_ASBOX
9259 ## ------------------------------------ ##
9260 ## Report this to wine-devel@winehq.org ##
9261 ## ------------------------------------ ##
9262 _ASBOX
9264 sed "s/^/$as_me: WARNING: /" >&2
9266 esac
9267 echo "$as_me:$LINENO: checking for $ac_header" >&5
9268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9270 echo $ECHO_N "(cached) $ECHO_C" >&6
9271 else
9272 eval "$as_ac_Header=\$ac_header_preproc"
9274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9279 cat >>confdefs.h <<_ACEOF
9280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9281 _ACEOF
9283 for ac_header in audio/soundlib.h
9285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9286 echo "$as_me:$LINENO: checking for $ac_header" >&5
9287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9289 echo $ECHO_N "(cached) $ECHO_C" >&6
9290 else
9291 cat >conftest.$ac_ext <<_ACEOF
9292 /* confdefs.h. */
9293 _ACEOF
9294 cat confdefs.h >>conftest.$ac_ext
9295 cat >>conftest.$ac_ext <<_ACEOF
9296 /* end confdefs.h. */
9297 #include <audio/audiolib.h>
9299 #include <$ac_header>
9300 _ACEOF
9301 rm -f conftest.$ac_objext
9302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9303 (eval $ac_compile) 2>conftest.er1
9304 ac_status=$?
9305 grep -v '^ *+' conftest.er1 >conftest.err
9306 rm -f conftest.er1
9307 cat conftest.err >&5
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); } &&
9310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9312 (eval $ac_try) 2>&5
9313 ac_status=$?
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); }; } &&
9316 { ac_try='test -s conftest.$ac_objext'
9317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9318 (eval $ac_try) 2>&5
9319 ac_status=$?
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); }; }; then
9322 eval "$as_ac_Header=yes"
9323 else
9324 echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.$ac_ext >&5
9327 eval "$as_ac_Header=no"
9329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9334 cat >>confdefs.h <<_ACEOF
9335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9336 _ACEOF
9340 done
9342 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
9343 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
9344 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
9345 echo $ECHO_N "(cached) $ECHO_C" >&6
9346 else
9347 ac_check_lib_save_LIBS=$LIBS
9348 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9349 cat >conftest.$ac_ext <<_ACEOF
9350 /* confdefs.h. */
9351 _ACEOF
9352 cat confdefs.h >>conftest.$ac_ext
9353 cat >>conftest.$ac_ext <<_ACEOF
9354 /* end confdefs.h. */
9356 /* Override any gcc2 internal prototype to avoid an error. */
9357 #ifdef __cplusplus
9358 extern "C"
9359 #endif
9360 /* We use char because int might match the return type of a gcc2
9361 builtin and then its argument prototype would still apply. */
9362 char AuCreateFlow ();
9364 main ()
9366 AuCreateFlow ();
9368 return 0;
9370 _ACEOF
9371 rm -f conftest.$ac_objext conftest$ac_exeext
9372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9373 (eval $ac_link) 2>conftest.er1
9374 ac_status=$?
9375 grep -v '^ *+' conftest.er1 >conftest.err
9376 rm -f conftest.er1
9377 cat conftest.err >&5
9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379 (exit $ac_status); } &&
9380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9386 { ac_try='test -s conftest$ac_exeext'
9387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9388 (eval $ac_try) 2>&5
9389 ac_status=$?
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); }; }; then
9392 ac_cv_lib_audio_AuCreateFlow=yes
9393 else
9394 echo "$as_me: failed program was:" >&5
9395 sed 's/^/| /' conftest.$ac_ext >&5
9397 ac_cv_lib_audio_AuCreateFlow=no
9399 rm -f conftest.err conftest.$ac_objext \
9400 conftest$ac_exeext conftest.$ac_ext
9401 LIBS=$ac_check_lib_save_LIBS
9403 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
9404 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
9405 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
9407 cat >>confdefs.h <<\_ACEOF
9408 #define HAVE_NAS 1
9409 _ACEOF
9411 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
9416 done
9419 CPPFLAGS="$ac_save_CPPFLAGS"
9420 XFILES='$(XFILES)'
9421 else
9422 XLIB=""
9423 X_CFLAGS=""
9424 X_LIBS=""
9427 CURSESLIBS=""
9428 if test "x$with_curses" != "xno"
9429 then
9431 for ac_header in ncurses.h
9433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9435 echo "$as_me:$LINENO: checking for $ac_header" >&5
9436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9438 echo $ECHO_N "(cached) $ECHO_C" >&6
9440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9442 else
9443 # Is the header compilable?
9444 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9445 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9446 cat >conftest.$ac_ext <<_ACEOF
9447 /* confdefs.h. */
9448 _ACEOF
9449 cat confdefs.h >>conftest.$ac_ext
9450 cat >>conftest.$ac_ext <<_ACEOF
9451 /* end confdefs.h. */
9452 $ac_includes_default
9453 #include <$ac_header>
9454 _ACEOF
9455 rm -f conftest.$ac_objext
9456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9457 (eval $ac_compile) 2>conftest.er1
9458 ac_status=$?
9459 grep -v '^ *+' conftest.er1 >conftest.err
9460 rm -f conftest.er1
9461 cat conftest.err >&5
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); } &&
9464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9466 (eval $ac_try) 2>&5
9467 ac_status=$?
9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 (exit $ac_status); }; } &&
9470 { ac_try='test -s conftest.$ac_objext'
9471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9472 (eval $ac_try) 2>&5
9473 ac_status=$?
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); }; }; then
9476 ac_header_compiler=yes
9477 else
9478 echo "$as_me: failed program was:" >&5
9479 sed 's/^/| /' conftest.$ac_ext >&5
9481 ac_header_compiler=no
9483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9484 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9485 echo "${ECHO_T}$ac_header_compiler" >&6
9487 # Is the header present?
9488 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9489 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9490 cat >conftest.$ac_ext <<_ACEOF
9491 /* confdefs.h. */
9492 _ACEOF
9493 cat confdefs.h >>conftest.$ac_ext
9494 cat >>conftest.$ac_ext <<_ACEOF
9495 /* end confdefs.h. */
9496 #include <$ac_header>
9497 _ACEOF
9498 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9499 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9500 ac_status=$?
9501 grep -v '^ *+' conftest.er1 >conftest.err
9502 rm -f conftest.er1
9503 cat conftest.err >&5
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); } >/dev/null; then
9506 if test -s conftest.err; then
9507 ac_cpp_err=$ac_c_preproc_warn_flag
9508 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9509 else
9510 ac_cpp_err=
9512 else
9513 ac_cpp_err=yes
9515 if test -z "$ac_cpp_err"; then
9516 ac_header_preproc=yes
9517 else
9518 echo "$as_me: failed program was:" >&5
9519 sed 's/^/| /' conftest.$ac_ext >&5
9521 ac_header_preproc=no
9523 rm -f conftest.err conftest.$ac_ext
9524 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9525 echo "${ECHO_T}$ac_header_preproc" >&6
9527 # So? What about this header?
9528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9529 yes:no: )
9530 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9531 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9533 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9534 ac_header_preproc=yes
9536 no:yes:* )
9537 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9538 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9539 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9540 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9541 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9542 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9543 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9544 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9547 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9548 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9550 cat <<\_ASBOX
9551 ## ------------------------------------ ##
9552 ## Report this to wine-devel@winehq.org ##
9553 ## ------------------------------------ ##
9554 _ASBOX
9556 sed "s/^/$as_me: WARNING: /" >&2
9558 esac
9559 echo "$as_me:$LINENO: checking for $ac_header" >&5
9560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9562 echo $ECHO_N "(cached) $ECHO_C" >&6
9563 else
9564 eval "$as_ac_Header=\$ac_header_preproc"
9566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9567 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9571 cat >>confdefs.h <<_ACEOF
9572 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9573 _ACEOF
9574 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
9575 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
9576 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
9577 echo $ECHO_N "(cached) $ECHO_C" >&6
9578 else
9579 ac_check_lib_save_LIBS=$LIBS
9580 LIBS="-lncurses $LIBS"
9581 cat >conftest.$ac_ext <<_ACEOF
9582 /* confdefs.h. */
9583 _ACEOF
9584 cat confdefs.h >>conftest.$ac_ext
9585 cat >>conftest.$ac_ext <<_ACEOF
9586 /* end confdefs.h. */
9588 /* Override any gcc2 internal prototype to avoid an error. */
9589 #ifdef __cplusplus
9590 extern "C"
9591 #endif
9592 /* We use char because int might match the return type of a gcc2
9593 builtin and then its argument prototype would still apply. */
9594 char waddch ();
9596 main ()
9598 waddch ();
9600 return 0;
9602 _ACEOF
9603 rm -f conftest.$ac_objext conftest$ac_exeext
9604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9605 (eval $ac_link) 2>conftest.er1
9606 ac_status=$?
9607 grep -v '^ *+' conftest.er1 >conftest.err
9608 rm -f conftest.er1
9609 cat conftest.err >&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); } &&
9612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9614 (eval $ac_try) 2>&5
9615 ac_status=$?
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); }; } &&
9618 { ac_try='test -s conftest$ac_exeext'
9619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9620 (eval $ac_try) 2>&5
9621 ac_status=$?
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); }; }; then
9624 ac_cv_lib_ncurses_waddch=yes
9625 else
9626 echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9629 ac_cv_lib_ncurses_waddch=no
9631 rm -f conftest.err conftest.$ac_objext \
9632 conftest$ac_exeext conftest.$ac_ext
9633 LIBS=$ac_check_lib_save_LIBS
9635 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
9636 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
9637 if test $ac_cv_lib_ncurses_waddch = yes; then
9639 cat >>confdefs.h <<\_ACEOF
9640 #define HAVE_LIBNCURSES 1
9641 _ACEOF
9643 CURSESLIBS="-lncurses"
9644 else
9646 for ac_header in curses.h
9648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9650 echo "$as_me:$LINENO: checking for $ac_header" >&5
9651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9653 echo $ECHO_N "(cached) $ECHO_C" >&6
9655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9657 else
9658 # Is the header compilable?
9659 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9660 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9661 cat >conftest.$ac_ext <<_ACEOF
9662 /* confdefs.h. */
9663 _ACEOF
9664 cat confdefs.h >>conftest.$ac_ext
9665 cat >>conftest.$ac_ext <<_ACEOF
9666 /* end confdefs.h. */
9667 $ac_includes_default
9668 #include <$ac_header>
9669 _ACEOF
9670 rm -f conftest.$ac_objext
9671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9672 (eval $ac_compile) 2>conftest.er1
9673 ac_status=$?
9674 grep -v '^ *+' conftest.er1 >conftest.err
9675 rm -f conftest.er1
9676 cat conftest.err >&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); } &&
9679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9681 (eval $ac_try) 2>&5
9682 ac_status=$?
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); }; } &&
9685 { ac_try='test -s conftest.$ac_objext'
9686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9687 (eval $ac_try) 2>&5
9688 ac_status=$?
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); }; }; then
9691 ac_header_compiler=yes
9692 else
9693 echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9696 ac_header_compiler=no
9698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9700 echo "${ECHO_T}$ac_header_compiler" >&6
9702 # Is the header present?
9703 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9705 cat >conftest.$ac_ext <<_ACEOF
9706 /* confdefs.h. */
9707 _ACEOF
9708 cat confdefs.h >>conftest.$ac_ext
9709 cat >>conftest.$ac_ext <<_ACEOF
9710 /* end confdefs.h. */
9711 #include <$ac_header>
9712 _ACEOF
9713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9714 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9715 ac_status=$?
9716 grep -v '^ *+' conftest.er1 >conftest.err
9717 rm -f conftest.er1
9718 cat conftest.err >&5
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); } >/dev/null; then
9721 if test -s conftest.err; then
9722 ac_cpp_err=$ac_c_preproc_warn_flag
9723 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9724 else
9725 ac_cpp_err=
9727 else
9728 ac_cpp_err=yes
9730 if test -z "$ac_cpp_err"; then
9731 ac_header_preproc=yes
9732 else
9733 echo "$as_me: failed program was:" >&5
9734 sed 's/^/| /' conftest.$ac_ext >&5
9736 ac_header_preproc=no
9738 rm -f conftest.err conftest.$ac_ext
9739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9740 echo "${ECHO_T}$ac_header_preproc" >&6
9742 # So? What about this header?
9743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9744 yes:no: )
9745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9749 ac_header_preproc=yes
9751 no:yes:* )
9752 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9754 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9755 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9756 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9757 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9758 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9759 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9762 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9763 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9765 cat <<\_ASBOX
9766 ## ------------------------------------ ##
9767 ## Report this to wine-devel@winehq.org ##
9768 ## ------------------------------------ ##
9769 _ASBOX
9771 sed "s/^/$as_me: WARNING: /" >&2
9773 esac
9774 echo "$as_me:$LINENO: checking for $ac_header" >&5
9775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9777 echo $ECHO_N "(cached) $ECHO_C" >&6
9778 else
9779 eval "$as_ac_Header=\$ac_header_preproc"
9781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9786 cat >>confdefs.h <<_ACEOF
9787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9788 _ACEOF
9789 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
9790 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
9791 if test "${ac_cv_lib_curses_waddch+set}" = set; then
9792 echo $ECHO_N "(cached) $ECHO_C" >&6
9793 else
9794 ac_check_lib_save_LIBS=$LIBS
9795 LIBS="-lcurses $LIBS"
9796 cat >conftest.$ac_ext <<_ACEOF
9797 /* confdefs.h. */
9798 _ACEOF
9799 cat confdefs.h >>conftest.$ac_ext
9800 cat >>conftest.$ac_ext <<_ACEOF
9801 /* end confdefs.h. */
9803 /* Override any gcc2 internal prototype to avoid an error. */
9804 #ifdef __cplusplus
9805 extern "C"
9806 #endif
9807 /* We use char because int might match the return type of a gcc2
9808 builtin and then its argument prototype would still apply. */
9809 char waddch ();
9811 main ()
9813 waddch ();
9815 return 0;
9817 _ACEOF
9818 rm -f conftest.$ac_objext conftest$ac_exeext
9819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9820 (eval $ac_link) 2>conftest.er1
9821 ac_status=$?
9822 grep -v '^ *+' conftest.er1 >conftest.err
9823 rm -f conftest.er1
9824 cat conftest.err >&5
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); } &&
9827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9829 (eval $ac_try) 2>&5
9830 ac_status=$?
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); }; } &&
9833 { ac_try='test -s conftest$ac_exeext'
9834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9835 (eval $ac_try) 2>&5
9836 ac_status=$?
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); }; }; then
9839 ac_cv_lib_curses_waddch=yes
9840 else
9841 echo "$as_me: failed program was:" >&5
9842 sed 's/^/| /' conftest.$ac_ext >&5
9844 ac_cv_lib_curses_waddch=no
9846 rm -f conftest.err conftest.$ac_objext \
9847 conftest$ac_exeext conftest.$ac_ext
9848 LIBS=$ac_check_lib_save_LIBS
9850 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
9851 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
9852 if test $ac_cv_lib_curses_waddch = yes; then
9854 cat >>confdefs.h <<\_ACEOF
9855 #define HAVE_LIBCURSES 1
9856 _ACEOF
9858 CURSESLIBS="-lcurses"
9863 done
9869 done
9871 saved_libs="$LIBS"
9872 LIBS="$CURSESLIBS $LIBS"
9875 for ac_func in getbkgd resizeterm
9877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9878 echo "$as_me:$LINENO: checking for $ac_func" >&5
9879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9880 if eval "test \"\${$as_ac_var+set}\" = set"; then
9881 echo $ECHO_N "(cached) $ECHO_C" >&6
9882 else
9883 cat >conftest.$ac_ext <<_ACEOF
9884 /* confdefs.h. */
9885 _ACEOF
9886 cat confdefs.h >>conftest.$ac_ext
9887 cat >>conftest.$ac_ext <<_ACEOF
9888 /* end confdefs.h. */
9889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9891 #define $ac_func innocuous_$ac_func
9893 /* System header to define __stub macros and hopefully few prototypes,
9894 which can conflict with char $ac_func (); below.
9895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9896 <limits.h> exists even on freestanding compilers. */
9898 #ifdef __STDC__
9899 # include <limits.h>
9900 #else
9901 # include <assert.h>
9902 #endif
9904 #undef $ac_func
9906 /* Override any gcc2 internal prototype to avoid an error. */
9907 #ifdef __cplusplus
9908 extern "C"
9910 #endif
9911 /* We use char because int might match the return type of a gcc2
9912 builtin and then its argument prototype would still apply. */
9913 char $ac_func ();
9914 /* The GNU C library defines this for functions which it implements
9915 to always fail with ENOSYS. Some functions are actually named
9916 something starting with __ and the normal name is an alias. */
9917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9918 choke me
9919 #else
9920 char (*f) () = $ac_func;
9921 #endif
9922 #ifdef __cplusplus
9924 #endif
9927 main ()
9929 return f != $ac_func;
9931 return 0;
9933 _ACEOF
9934 rm -f conftest.$ac_objext conftest$ac_exeext
9935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9936 (eval $ac_link) 2>conftest.er1
9937 ac_status=$?
9938 grep -v '^ *+' conftest.er1 >conftest.err
9939 rm -f conftest.er1
9940 cat conftest.err >&5
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); } &&
9943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9945 (eval $ac_try) 2>&5
9946 ac_status=$?
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); }; } &&
9949 { ac_try='test -s conftest$ac_exeext'
9950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9951 (eval $ac_try) 2>&5
9952 ac_status=$?
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); }; }; then
9955 eval "$as_ac_var=yes"
9956 else
9957 echo "$as_me: failed program was:" >&5
9958 sed 's/^/| /' conftest.$ac_ext >&5
9960 eval "$as_ac_var=no"
9962 rm -f conftest.err conftest.$ac_objext \
9963 conftest$ac_exeext conftest.$ac_ext
9965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9966 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9967 if test `eval echo '${'$as_ac_var'}'` = yes; then
9968 cat >>confdefs.h <<_ACEOF
9969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9970 _ACEOF
9973 done
9975 LIBS="$saved_libs"
9979 # Extract the first word of "sane-config", so it can be a program name with args.
9980 set dummy sane-config; ac_word=$2
9981 echo "$as_me:$LINENO: checking for $ac_word" >&5
9982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9983 if test "${ac_cv_prog_sane_devel+set}" = set; then
9984 echo $ECHO_N "(cached) $ECHO_C" >&6
9985 else
9986 if test -n "$sane_devel"; then
9987 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9988 else
9989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9990 for as_dir in $PATH
9992 IFS=$as_save_IFS
9993 test -z "$as_dir" && as_dir=.
9994 for ac_exec_ext in '' $ac_executable_extensions; do
9995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9996 ac_cv_prog_sane_devel="sane-config"
9997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9998 break 2
10000 done
10001 done
10003 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
10006 sane_devel=$ac_cv_prog_sane_devel
10007 if test -n "$sane_devel"; then
10008 echo "$as_me:$LINENO: result: $sane_devel" >&5
10009 echo "${ECHO_T}$sane_devel" >&6
10010 else
10011 echo "$as_me:$LINENO: result: no" >&5
10012 echo "${ECHO_T}no" >&6
10015 if test "$sane_devel" = "no"
10016 then
10017 SANELIBS=""
10018 SANEINCL=""
10019 else
10020 SANELIBS="`$sane_devel --libs`"
10021 SANEINCL="`$sane_devel --cflags`"
10022 ac_save_CPPFLAGS="$CPPFLAGS"
10023 ac_save_LIBS="$LIBS"
10024 CPPFLAGS="$CPPFLAGS $SANEINCL"
10025 LIBS="$LIBS $SANELIBS"
10026 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10027 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
10028 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
10029 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10030 echo $ECHO_N "(cached) $ECHO_C" >&6
10032 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
10033 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
10034 else
10035 # Is the header compilable?
10036 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
10037 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
10038 cat >conftest.$ac_ext <<_ACEOF
10039 /* confdefs.h. */
10040 _ACEOF
10041 cat confdefs.h >>conftest.$ac_ext
10042 cat >>conftest.$ac_ext <<_ACEOF
10043 /* end confdefs.h. */
10044 $ac_includes_default
10045 #include <sane/sane.h>
10046 _ACEOF
10047 rm -f conftest.$ac_objext
10048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10049 (eval $ac_compile) 2>conftest.er1
10050 ac_status=$?
10051 grep -v '^ *+' conftest.er1 >conftest.err
10052 rm -f conftest.er1
10053 cat conftest.err >&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } &&
10056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058 (eval $ac_try) 2>&5
10059 ac_status=$?
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); }; } &&
10062 { ac_try='test -s conftest.$ac_objext'
10063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064 (eval $ac_try) 2>&5
10065 ac_status=$?
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; }; then
10068 ac_header_compiler=yes
10069 else
10070 echo "$as_me: failed program was:" >&5
10071 sed 's/^/| /' conftest.$ac_ext >&5
10073 ac_header_compiler=no
10075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10076 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10077 echo "${ECHO_T}$ac_header_compiler" >&6
10079 # Is the header present?
10080 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
10081 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
10082 cat >conftest.$ac_ext <<_ACEOF
10083 /* confdefs.h. */
10084 _ACEOF
10085 cat confdefs.h >>conftest.$ac_ext
10086 cat >>conftest.$ac_ext <<_ACEOF
10087 /* end confdefs.h. */
10088 #include <sane/sane.h>
10089 _ACEOF
10090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10092 ac_status=$?
10093 grep -v '^ *+' conftest.er1 >conftest.err
10094 rm -f conftest.er1
10095 cat conftest.err >&5
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); } >/dev/null; then
10098 if test -s conftest.err; then
10099 ac_cpp_err=$ac_c_preproc_warn_flag
10100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10101 else
10102 ac_cpp_err=
10104 else
10105 ac_cpp_err=yes
10107 if test -z "$ac_cpp_err"; then
10108 ac_header_preproc=yes
10109 else
10110 echo "$as_me: failed program was:" >&5
10111 sed 's/^/| /' conftest.$ac_ext >&5
10113 ac_header_preproc=no
10115 rm -f conftest.err conftest.$ac_ext
10116 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10117 echo "${ECHO_T}$ac_header_preproc" >&6
10119 # So? What about this header?
10120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10121 yes:no: )
10122 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
10123 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10124 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
10125 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
10126 ac_header_preproc=yes
10128 no:yes:* )
10129 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
10130 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
10131 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
10132 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
10133 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
10134 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
10135 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
10136 echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
10137 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
10138 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
10139 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
10140 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
10142 cat <<\_ASBOX
10143 ## ------------------------------------ ##
10144 ## Report this to wine-devel@winehq.org ##
10145 ## ------------------------------------ ##
10146 _ASBOX
10148 sed "s/^/$as_me: WARNING: /" >&2
10150 esac
10151 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
10152 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
10153 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10154 echo $ECHO_N "(cached) $ECHO_C" >&6
10155 else
10156 ac_cv_header_sane_sane_h=$ac_header_preproc
10158 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
10159 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
10162 if test $ac_cv_header_sane_sane_h = yes; then
10163 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
10164 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
10165 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
10166 echo $ECHO_N "(cached) $ECHO_C" >&6
10167 else
10168 ac_check_lib_save_LIBS=$LIBS
10169 LIBS="-lsane $LIBS"
10170 cat >conftest.$ac_ext <<_ACEOF
10171 /* confdefs.h. */
10172 _ACEOF
10173 cat confdefs.h >>conftest.$ac_ext
10174 cat >>conftest.$ac_ext <<_ACEOF
10175 /* end confdefs.h. */
10177 /* Override any gcc2 internal prototype to avoid an error. */
10178 #ifdef __cplusplus
10179 extern "C"
10180 #endif
10181 /* We use char because int might match the return type of a gcc2
10182 builtin and then its argument prototype would still apply. */
10183 char sane_open ();
10185 main ()
10187 sane_open ();
10189 return 0;
10191 _ACEOF
10192 rm -f conftest.$ac_objext conftest$ac_exeext
10193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10194 (eval $ac_link) 2>conftest.er1
10195 ac_status=$?
10196 grep -v '^ *+' conftest.er1 >conftest.err
10197 rm -f conftest.er1
10198 cat conftest.err >&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } &&
10201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203 (eval $ac_try) 2>&5
10204 ac_status=$?
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; } &&
10207 { ac_try='test -s conftest$ac_exeext'
10208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10209 (eval $ac_try) 2>&5
10210 ac_status=$?
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); }; }; then
10213 ac_cv_lib_sane_sane_open=yes
10214 else
10215 echo "$as_me: failed program was:" >&5
10216 sed 's/^/| /' conftest.$ac_ext >&5
10218 ac_cv_lib_sane_sane_open=no
10220 rm -f conftest.err conftest.$ac_objext \
10221 conftest$ac_exeext conftest.$ac_ext
10222 LIBS=$ac_check_lib_save_LIBS
10224 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
10225 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
10226 if test $ac_cv_lib_sane_sane_open = yes; then
10228 cat >>confdefs.h <<\_ACEOF
10229 #define HAVE_SANE 1
10230 _ACEOF
10232 else
10233 SANELIBS=""
10234 SANEINCL=""
10237 else
10238 SANELIBS=""
10239 SANEINCL=""
10243 LIBS="$ac_save_LIBS"
10244 CPPFLAGS="$ac_save_CPPFLAGS"
10250 for ac_header in unicode/ubidi.h
10252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10254 echo "$as_me:$LINENO: checking for $ac_header" >&5
10255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10257 echo $ECHO_N "(cached) $ECHO_C" >&6
10259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10261 else
10262 # Is the header compilable?
10263 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10265 cat >conftest.$ac_ext <<_ACEOF
10266 /* confdefs.h. */
10267 _ACEOF
10268 cat confdefs.h >>conftest.$ac_ext
10269 cat >>conftest.$ac_ext <<_ACEOF
10270 /* end confdefs.h. */
10271 $ac_includes_default
10272 #include <$ac_header>
10273 _ACEOF
10274 rm -f conftest.$ac_objext
10275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10276 (eval $ac_compile) 2>conftest.er1
10277 ac_status=$?
10278 grep -v '^ *+' conftest.er1 >conftest.err
10279 rm -f conftest.er1
10280 cat conftest.err >&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } &&
10283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10285 (eval $ac_try) 2>&5
10286 ac_status=$?
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); }; } &&
10289 { ac_try='test -s conftest.$ac_objext'
10290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10291 (eval $ac_try) 2>&5
10292 ac_status=$?
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); }; }; then
10295 ac_header_compiler=yes
10296 else
10297 echo "$as_me: failed program was:" >&5
10298 sed 's/^/| /' conftest.$ac_ext >&5
10300 ac_header_compiler=no
10302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10303 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10304 echo "${ECHO_T}$ac_header_compiler" >&6
10306 # Is the header present?
10307 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10309 cat >conftest.$ac_ext <<_ACEOF
10310 /* confdefs.h. */
10311 _ACEOF
10312 cat confdefs.h >>conftest.$ac_ext
10313 cat >>conftest.$ac_ext <<_ACEOF
10314 /* end confdefs.h. */
10315 #include <$ac_header>
10316 _ACEOF
10317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10318 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10319 ac_status=$?
10320 grep -v '^ *+' conftest.er1 >conftest.err
10321 rm -f conftest.er1
10322 cat conftest.err >&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); } >/dev/null; then
10325 if test -s conftest.err; then
10326 ac_cpp_err=$ac_c_preproc_warn_flag
10327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10328 else
10329 ac_cpp_err=
10331 else
10332 ac_cpp_err=yes
10334 if test -z "$ac_cpp_err"; then
10335 ac_header_preproc=yes
10336 else
10337 echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10340 ac_header_preproc=no
10342 rm -f conftest.err conftest.$ac_ext
10343 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10344 echo "${ECHO_T}$ac_header_preproc" >&6
10346 # So? What about this header?
10347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10348 yes:no: )
10349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10353 ac_header_preproc=yes
10355 no:yes:* )
10356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10359 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10363 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10369 cat <<\_ASBOX
10370 ## ------------------------------------ ##
10371 ## Report this to wine-devel@winehq.org ##
10372 ## ------------------------------------ ##
10373 _ASBOX
10375 sed "s/^/$as_me: WARNING: /" >&2
10377 esac
10378 echo "$as_me:$LINENO: checking for $ac_header" >&5
10379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10381 echo $ECHO_N "(cached) $ECHO_C" >&6
10382 else
10383 eval "$as_ac_Header=\$ac_header_preproc"
10385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10390 cat >>confdefs.h <<_ACEOF
10391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10392 _ACEOF
10396 done
10398 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
10399 then
10400 saved_libs="$LIBS"
10401 ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
10402 ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libicuuc.a}"
10403 ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libicudata.a}"
10404 LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
10405 cat >conftest.$ac_ext <<_ACEOF
10406 /* confdefs.h. */
10407 _ACEOF
10408 cat confdefs.h >>conftest.$ac_ext
10409 cat >>conftest.$ac_ext <<_ACEOF
10410 /* end confdefs.h. */
10411 #include <unicode/ubidi.h>
10413 main ()
10415 ubidi_open()
10417 return 0;
10419 _ACEOF
10420 rm -f conftest.$ac_objext conftest$ac_exeext
10421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10422 (eval $ac_link) 2>conftest.er1
10423 ac_status=$?
10424 grep -v '^ *+' conftest.er1 >conftest.err
10425 rm -f conftest.er1
10426 cat conftest.err >&5
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); } &&
10429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10431 (eval $ac_try) 2>&5
10432 ac_status=$?
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); }; } &&
10435 { ac_try='test -s conftest$ac_exeext'
10436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10437 (eval $ac_try) 2>&5
10438 ac_status=$?
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); }; }; then
10442 cat >>confdefs.h <<\_ACEOF
10443 #define HAVE_ICU 1
10444 _ACEOF
10446 ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
10448 else
10449 echo "$as_me: failed program was:" >&5
10450 sed 's/^/| /' conftest.$ac_ext >&5
10453 rm -f conftest.err conftest.$ac_objext \
10454 conftest$ac_exeext conftest.$ac_ext
10455 LIBS="$saved_libs"
10458 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
10459 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
10460 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10461 echo $ECHO_N "(cached) $ECHO_C" >&6
10462 else
10463 ac_check_lib_save_LIBS=$LIBS
10464 LIBS="-lfreetype $X_LIBS $LIBS"
10465 cat >conftest.$ac_ext <<_ACEOF
10466 /* confdefs.h. */
10467 _ACEOF
10468 cat confdefs.h >>conftest.$ac_ext
10469 cat >>conftest.$ac_ext <<_ACEOF
10470 /* end confdefs.h. */
10472 /* Override any gcc2 internal prototype to avoid an error. */
10473 #ifdef __cplusplus
10474 extern "C"
10475 #endif
10476 /* We use char because int might match the return type of a gcc2
10477 builtin and then its argument prototype would still apply. */
10478 char FT_Init_FreeType ();
10480 main ()
10482 FT_Init_FreeType ();
10484 return 0;
10486 _ACEOF
10487 rm -f conftest.$ac_objext conftest$ac_exeext
10488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10489 (eval $ac_link) 2>conftest.er1
10490 ac_status=$?
10491 grep -v '^ *+' conftest.er1 >conftest.err
10492 rm -f conftest.er1
10493 cat conftest.err >&5
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); } &&
10496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10498 (eval $ac_try) 2>&5
10499 ac_status=$?
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); }; } &&
10502 { ac_try='test -s conftest$ac_exeext'
10503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10504 (eval $ac_try) 2>&5
10505 ac_status=$?
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); }; }; then
10508 ac_cv_lib_freetype_FT_Init_FreeType=yes
10509 else
10510 echo "$as_me: failed program was:" >&5
10511 sed 's/^/| /' conftest.$ac_ext >&5
10513 ac_cv_lib_freetype_FT_Init_FreeType=no
10515 rm -f conftest.err conftest.$ac_objext \
10516 conftest$ac_exeext conftest.$ac_ext
10517 LIBS=$ac_check_lib_save_LIBS
10519 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10520 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10521 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10522 ft_lib=yes
10523 else
10524 ft_lib=no
10527 if test "$ft_lib" = "no"
10528 then
10529 FREETYPEINCL=""
10530 wine_cv_msg_freetype=no
10531 else
10532 # Extract the first word of "freetype-config", so it can be a program name with args.
10533 set dummy freetype-config; ac_word=$2
10534 echo "$as_me:$LINENO: checking for $ac_word" >&5
10535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10536 if test "${ac_cv_prog_ft_devel+set}" = set; then
10537 echo $ECHO_N "(cached) $ECHO_C" >&6
10538 else
10539 if test -n "$ft_devel"; then
10540 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10541 else
10542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10543 for as_dir in $PATH
10545 IFS=$as_save_IFS
10546 test -z "$as_dir" && as_dir=.
10547 for ac_exec_ext in '' $ac_executable_extensions; do
10548 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10549 ac_cv_prog_ft_devel="freetype-config"
10550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10551 break 2
10553 done
10554 done
10556 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
10559 ft_devel=$ac_cv_prog_ft_devel
10560 if test -n "$ft_devel"; then
10561 echo "$as_me:$LINENO: result: $ft_devel" >&5
10562 echo "${ECHO_T}$ft_devel" >&6
10563 else
10564 echo "$as_me:$LINENO: result: no" >&5
10565 echo "${ECHO_T}no" >&6
10568 if test "$ft_devel" = "no"
10569 then
10570 # Extract the first word of "freetype2-config", so it can be a program name with args.
10571 set dummy freetype2-config; ac_word=$2
10572 echo "$as_me:$LINENO: checking for $ac_word" >&5
10573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10574 if test "${ac_cv_prog_ft_devel2+set}" = set; then
10575 echo $ECHO_N "(cached) $ECHO_C" >&6
10576 else
10577 if test -n "$ft_devel2"; then
10578 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
10579 else
10580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10581 for as_dir in $PATH
10583 IFS=$as_save_IFS
10584 test -z "$as_dir" && as_dir=.
10585 for ac_exec_ext in '' $ac_executable_extensions; do
10586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10587 ac_cv_prog_ft_devel2="freetype2-config"
10588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10589 break 2
10591 done
10592 done
10594 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
10597 ft_devel2=$ac_cv_prog_ft_devel2
10598 if test -n "$ft_devel2"; then
10599 echo "$as_me:$LINENO: result: $ft_devel2" >&5
10600 echo "${ECHO_T}$ft_devel2" >&6
10601 else
10602 echo "$as_me:$LINENO: result: no" >&5
10603 echo "${ECHO_T}no" >&6
10606 if test "$ft_devel2" = "freetype2-config"
10607 then
10608 ft_devel=$ft_devel2
10611 if test "$ft_devel" = "no"
10612 then
10613 FREETYPEINCL=""
10614 wine_cv_msg_freetype=yes
10615 else
10616 FREETYPEINCL=`$ft_devel --cflags`
10617 ac_save_CPPFLAGS="$CPPFLAGS"
10618 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
10628 for ac_header in ft2build.h \
10629 freetype/freetype.h \
10630 freetype/ftglyph.h \
10631 freetype/tttables.h \
10632 freetype/ftnames.h \
10633 freetype/ftsnames.h \
10634 freetype/ttnameid.h \
10635 freetype/ftoutln.h \
10636 freetype/internal/sfnt.h
10638 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10639 echo "$as_me:$LINENO: checking for $ac_header" >&5
10640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10642 echo $ECHO_N "(cached) $ECHO_C" >&6
10643 else
10644 cat >conftest.$ac_ext <<_ACEOF
10645 /* confdefs.h. */
10646 _ACEOF
10647 cat confdefs.h >>conftest.$ac_ext
10648 cat >>conftest.$ac_ext <<_ACEOF
10649 /* end confdefs.h. */
10650 #if HAVE_FT2BUILD_H
10651 #include <ft2build.h>
10652 #endif
10654 #include <$ac_header>
10655 _ACEOF
10656 rm -f conftest.$ac_objext
10657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10658 (eval $ac_compile) 2>conftest.er1
10659 ac_status=$?
10660 grep -v '^ *+' conftest.er1 >conftest.err
10661 rm -f conftest.er1
10662 cat conftest.err >&5
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); } &&
10665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10667 (eval $ac_try) 2>&5
10668 ac_status=$?
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); }; } &&
10671 { ac_try='test -s conftest.$ac_objext'
10672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673 (eval $ac_try) 2>&5
10674 ac_status=$?
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); }; }; then
10677 eval "$as_ac_Header=yes"
10678 else
10679 echo "$as_me: failed program was:" >&5
10680 sed 's/^/| /' conftest.$ac_ext >&5
10682 eval "$as_ac_Header=no"
10684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10688 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10689 cat >>confdefs.h <<_ACEOF
10690 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10691 _ACEOF
10695 done
10697 cat >conftest.$ac_ext <<_ACEOF
10698 /* confdefs.h. */
10699 _ACEOF
10700 cat confdefs.h >>conftest.$ac_ext
10701 cat >>conftest.$ac_ext <<_ACEOF
10702 /* end confdefs.h. */
10703 #include <ft2build.h>
10704 #include <freetype/fttrigon.h>
10705 _ACEOF
10706 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10707 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10708 ac_status=$?
10709 grep -v '^ *+' conftest.er1 >conftest.err
10710 rm -f conftest.er1
10711 cat conftest.err >&5
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); } >/dev/null; then
10714 if test -s conftest.err; then
10715 ac_cpp_err=$ac_c_preproc_warn_flag
10716 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10717 else
10718 ac_cpp_err=
10720 else
10721 ac_cpp_err=yes
10723 if test -z "$ac_cpp_err"; then
10725 cat >>confdefs.h <<\_ACEOF
10726 #define HAVE_FREETYPE_FTTRIGON_H 1
10727 _ACEOF
10729 wine_cv_fttrigon=yes
10730 else
10731 echo "$as_me: failed program was:" >&5
10732 sed 's/^/| /' conftest.$ac_ext >&5
10734 wine_cv_fttrigon=no
10736 rm -f conftest.err conftest.$ac_ext
10737 CPPFLAGS="$ac_save_CPPFLAGS"
10738 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10739 then
10741 cat >>confdefs.h <<\_ACEOF
10742 #define HAVE_FREETYPE 1
10743 _ACEOF
10745 wine_cv_msg_freetype=no
10746 else
10747 FREETYPEINCL=""
10748 wine_cv_msg_freetype=yes
10754 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
10755 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
10756 if test "${ac_cv_c_ppdev+set}" = set; then
10757 echo $ECHO_N "(cached) $ECHO_C" >&6
10758 else
10759 cat >conftest.$ac_ext <<_ACEOF
10760 /* confdefs.h. */
10761 _ACEOF
10762 cat confdefs.h >>conftest.$ac_ext
10763 cat >>conftest.$ac_ext <<_ACEOF
10764 /* end confdefs.h. */
10765 #include <linux/ppdev.h>
10767 main ()
10769 ioctl (1,PPCLAIM,0)
10771 return 0;
10773 _ACEOF
10774 rm -f conftest.$ac_objext
10775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10776 (eval $ac_compile) 2>conftest.er1
10777 ac_status=$?
10778 grep -v '^ *+' conftest.er1 >conftest.err
10779 rm -f conftest.er1
10780 cat conftest.err >&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); } &&
10783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10785 (eval $ac_try) 2>&5
10786 ac_status=$?
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); }; } &&
10789 { ac_try='test -s conftest.$ac_objext'
10790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10791 (eval $ac_try) 2>&5
10792 ac_status=$?
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); }; }; then
10795 ac_cv_c_ppdev="yes"
10796 else
10797 echo "$as_me: failed program was:" >&5
10798 sed 's/^/| /' conftest.$ac_ext >&5
10800 ac_cv_c_ppdev="no"
10802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10805 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
10806 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
10807 if test "$ac_cv_c_ppdev" = "yes"
10808 then
10810 cat >>confdefs.h <<\_ACEOF
10811 #define HAVE_PPDEV 1
10812 _ACEOF
10816 echo "$as_me:$LINENO: checking for va_copy" >&5
10817 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10818 if test "${ac_cv_c_va_copy+set}" = set; then
10819 echo $ECHO_N "(cached) $ECHO_C" >&6
10820 else
10821 cat >conftest.$ac_ext <<_ACEOF
10822 /* confdefs.h. */
10823 _ACEOF
10824 cat confdefs.h >>conftest.$ac_ext
10825 cat >>conftest.$ac_ext <<_ACEOF
10826 /* end confdefs.h. */
10827 #include <stdarg.h>
10829 main ()
10831 va_list ap1, ap2;
10832 va_copy(ap1,ap2);
10835 return 0;
10837 _ACEOF
10838 rm -f conftest.$ac_objext conftest$ac_exeext
10839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10840 (eval $ac_link) 2>conftest.er1
10841 ac_status=$?
10842 grep -v '^ *+' conftest.er1 >conftest.err
10843 rm -f conftest.er1
10844 cat conftest.err >&5
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); } &&
10847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10849 (eval $ac_try) 2>&5
10850 ac_status=$?
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); }; } &&
10853 { ac_try='test -s conftest$ac_exeext'
10854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10855 (eval $ac_try) 2>&5
10856 ac_status=$?
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); }; }; then
10859 ac_cv_c_va_copy="yes"
10860 else
10861 echo "$as_me: failed program was:" >&5
10862 sed 's/^/| /' conftest.$ac_ext >&5
10864 ac_cv_c_va_copy="no"
10866 rm -f conftest.err conftest.$ac_objext \
10867 conftest$ac_exeext conftest.$ac_ext
10870 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
10871 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
10872 if test "$ac_cv_c_va_copy" = "yes"
10873 then
10875 cat >>confdefs.h <<\_ACEOF
10876 #define HAVE_VA_COPY 1
10877 _ACEOF
10880 echo "$as_me:$LINENO: checking for __va_copy" >&5
10881 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10882 if test "${ac_cv_c___va_copy+set}" = set; then
10883 echo $ECHO_N "(cached) $ECHO_C" >&6
10884 else
10885 cat >conftest.$ac_ext <<_ACEOF
10886 /* confdefs.h. */
10887 _ACEOF
10888 cat confdefs.h >>conftest.$ac_ext
10889 cat >>conftest.$ac_ext <<_ACEOF
10890 /* end confdefs.h. */
10891 #include <stdarg.h>
10893 main ()
10895 va_list ap1, ap2;
10896 __va_copy(ap1,ap2);
10899 return 0;
10901 _ACEOF
10902 rm -f conftest.$ac_objext conftest$ac_exeext
10903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10904 (eval $ac_link) 2>conftest.er1
10905 ac_status=$?
10906 grep -v '^ *+' conftest.er1 >conftest.err
10907 rm -f conftest.er1
10908 cat conftest.err >&5
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); } &&
10911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10913 (eval $ac_try) 2>&5
10914 ac_status=$?
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); }; } &&
10917 { ac_try='test -s conftest$ac_exeext'
10918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10919 (eval $ac_try) 2>&5
10920 ac_status=$?
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); }; }; then
10923 ac_cv_c___va_copy="yes"
10924 else
10925 echo "$as_me: failed program was:" >&5
10926 sed 's/^/| /' conftest.$ac_ext >&5
10928 ac_cv_c___va_copy="no"
10930 rm -f conftest.err conftest.$ac_objext \
10931 conftest$ac_exeext conftest.$ac_ext
10934 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
10935 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
10936 if test "$ac_cv_c___va_copy" = "yes"
10937 then
10939 cat >>confdefs.h <<\_ACEOF
10940 #define HAVE___VA_COPY 1
10941 _ACEOF
10945 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10946 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
10947 if test "${ac_cv_c_sigsetjmp+set}" = set; then
10948 echo $ECHO_N "(cached) $ECHO_C" >&6
10949 else
10950 cat >conftest.$ac_ext <<_ACEOF
10951 /* confdefs.h. */
10952 _ACEOF
10953 cat confdefs.h >>conftest.$ac_ext
10954 cat >>conftest.$ac_ext <<_ACEOF
10955 /* end confdefs.h. */
10956 #include <setjmp.h>
10958 main ()
10960 sigjmp_buf buf;
10961 sigsetjmp( buf, 1 );
10962 siglongjmp( buf, 1 );
10964 return 0;
10966 _ACEOF
10967 rm -f conftest.$ac_objext conftest$ac_exeext
10968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10969 (eval $ac_link) 2>conftest.er1
10970 ac_status=$?
10971 grep -v '^ *+' conftest.er1 >conftest.err
10972 rm -f conftest.er1
10973 cat conftest.err >&5
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); } &&
10976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10978 (eval $ac_try) 2>&5
10979 ac_status=$?
10980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981 (exit $ac_status); }; } &&
10982 { ac_try='test -s conftest$ac_exeext'
10983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10984 (eval $ac_try) 2>&5
10985 ac_status=$?
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); }; }; then
10988 ac_cv_c_sigsetjmp="yes"
10989 else
10990 echo "$as_me: failed program was:" >&5
10991 sed 's/^/| /' conftest.$ac_ext >&5
10993 ac_cv_c_sigsetjmp="no"
10995 rm -f conftest.err conftest.$ac_objext \
10996 conftest$ac_exeext conftest.$ac_ext
10999 echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
11000 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6
11001 if test "$ac_cv_c_sigsetjmp" = "yes"
11002 then
11004 cat >>confdefs.h <<\_ACEOF
11005 #define HAVE_SIGSETJMP 1
11006 _ACEOF
11010 echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
11011 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
11012 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
11013 echo $ECHO_N "(cached) $ECHO_C" >&6
11014 else
11015 cat >conftest.$ac_ext <<_ACEOF
11016 /* confdefs.h. */
11017 _ACEOF
11018 cat confdefs.h >>conftest.$ac_ext
11019 cat >>conftest.$ac_ext <<_ACEOF
11020 /* end confdefs.h. */
11021 #define _GNU_SOURCE
11022 #include <pthread.h>
11025 main ()
11027 if ((pthread_rwlock_t *) 0)
11028 return 0;
11029 if (sizeof (pthread_rwlock_t))
11030 return 0;
11032 return 0;
11034 _ACEOF
11035 rm -f conftest.$ac_objext
11036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11037 (eval $ac_compile) 2>conftest.er1
11038 ac_status=$?
11039 grep -v '^ *+' conftest.er1 >conftest.err
11040 rm -f conftest.er1
11041 cat conftest.err >&5
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); } &&
11044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11046 (eval $ac_try) 2>&5
11047 ac_status=$?
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); }; } &&
11050 { ac_try='test -s conftest.$ac_objext'
11051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11052 (eval $ac_try) 2>&5
11053 ac_status=$?
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); }; }; then
11056 ac_cv_type_pthread_rwlock_t=yes
11057 else
11058 echo "$as_me: failed program was:" >&5
11059 sed 's/^/| /' conftest.$ac_ext >&5
11061 ac_cv_type_pthread_rwlock_t=no
11063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11065 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
11066 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
11067 if test $ac_cv_type_pthread_rwlock_t = yes; then
11069 cat >>confdefs.h <<_ACEOF
11070 #define HAVE_PTHREAD_RWLOCK_T 1
11071 _ACEOF
11075 echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
11076 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
11077 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
11078 echo $ECHO_N "(cached) $ECHO_C" >&6
11079 else
11080 cat >conftest.$ac_ext <<_ACEOF
11081 /* confdefs.h. */
11082 _ACEOF
11083 cat confdefs.h >>conftest.$ac_ext
11084 cat >>conftest.$ac_ext <<_ACEOF
11085 /* end confdefs.h. */
11086 #define _GNU_SOURCE
11087 #include <pthread.h>
11090 main ()
11092 if ((pthread_rwlockattr_t *) 0)
11093 return 0;
11094 if (sizeof (pthread_rwlockattr_t))
11095 return 0;
11097 return 0;
11099 _ACEOF
11100 rm -f conftest.$ac_objext
11101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11102 (eval $ac_compile) 2>conftest.er1
11103 ac_status=$?
11104 grep -v '^ *+' conftest.er1 >conftest.err
11105 rm -f conftest.er1
11106 cat conftest.err >&5
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); } &&
11109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11111 (eval $ac_try) 2>&5
11112 ac_status=$?
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); }; } &&
11115 { ac_try='test -s conftest.$ac_objext'
11116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11117 (eval $ac_try) 2>&5
11118 ac_status=$?
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); }; }; then
11121 ac_cv_type_pthread_rwlockattr_t=yes
11122 else
11123 echo "$as_me: failed program was:" >&5
11124 sed 's/^/| /' conftest.$ac_ext >&5
11126 ac_cv_type_pthread_rwlockattr_t=no
11128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11130 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
11131 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
11132 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
11134 cat >>confdefs.h <<_ACEOF
11135 #define HAVE_PTHREAD_RWLOCKATTR_T 1
11136 _ACEOF
11142 ac_save_LIBS="$LIBS"
11143 LIBS="$LIBS $LIBPTHREAD"
11145 for ac_func in pthread_getattr_np
11147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11148 echo "$as_me:$LINENO: checking for $ac_func" >&5
11149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11150 if eval "test \"\${$as_ac_var+set}\" = set"; then
11151 echo $ECHO_N "(cached) $ECHO_C" >&6
11152 else
11153 cat >conftest.$ac_ext <<_ACEOF
11154 /* confdefs.h. */
11155 _ACEOF
11156 cat confdefs.h >>conftest.$ac_ext
11157 cat >>conftest.$ac_ext <<_ACEOF
11158 /* end confdefs.h. */
11159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11161 #define $ac_func innocuous_$ac_func
11163 /* System header to define __stub macros and hopefully few prototypes,
11164 which can conflict with char $ac_func (); below.
11165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11166 <limits.h> exists even on freestanding compilers. */
11168 #ifdef __STDC__
11169 # include <limits.h>
11170 #else
11171 # include <assert.h>
11172 #endif
11174 #undef $ac_func
11176 /* Override any gcc2 internal prototype to avoid an error. */
11177 #ifdef __cplusplus
11178 extern "C"
11180 #endif
11181 /* We use char because int might match the return type of a gcc2
11182 builtin and then its argument prototype would still apply. */
11183 char $ac_func ();
11184 /* The GNU C library defines this for functions which it implements
11185 to always fail with ENOSYS. Some functions are actually named
11186 something starting with __ and the normal name is an alias. */
11187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11188 choke me
11189 #else
11190 char (*f) () = $ac_func;
11191 #endif
11192 #ifdef __cplusplus
11194 #endif
11197 main ()
11199 return f != $ac_func;
11201 return 0;
11203 _ACEOF
11204 rm -f conftest.$ac_objext conftest$ac_exeext
11205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11206 (eval $ac_link) 2>conftest.er1
11207 ac_status=$?
11208 grep -v '^ *+' conftest.er1 >conftest.err
11209 rm -f conftest.er1
11210 cat conftest.err >&5
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); } &&
11213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11215 (eval $ac_try) 2>&5
11216 ac_status=$?
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); }; } &&
11219 { ac_try='test -s conftest$ac_exeext'
11220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11221 (eval $ac_try) 2>&5
11222 ac_status=$?
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); }; }; then
11225 eval "$as_ac_var=yes"
11226 else
11227 echo "$as_me: failed program was:" >&5
11228 sed 's/^/| /' conftest.$ac_ext >&5
11230 eval "$as_ac_var=no"
11232 rm -f conftest.err conftest.$ac_objext \
11233 conftest$ac_exeext conftest.$ac_ext
11235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11237 if test `eval echo '${'$as_ac_var'}'` = yes; then
11238 cat >>confdefs.h <<_ACEOF
11239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11240 _ACEOF
11243 done
11245 LIBS="$ac_save_LIBS"
11250 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
11252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11254 echo "$as_me:$LINENO: checking for $ac_header" >&5
11255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11257 echo $ECHO_N "(cached) $ECHO_C" >&6
11259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11261 else
11262 # Is the header compilable?
11263 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11265 cat >conftest.$ac_ext <<_ACEOF
11266 /* confdefs.h. */
11267 _ACEOF
11268 cat confdefs.h >>conftest.$ac_ext
11269 cat >>conftest.$ac_ext <<_ACEOF
11270 /* end confdefs.h. */
11271 $ac_includes_default
11272 #include <$ac_header>
11273 _ACEOF
11274 rm -f conftest.$ac_objext
11275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11276 (eval $ac_compile) 2>conftest.er1
11277 ac_status=$?
11278 grep -v '^ *+' conftest.er1 >conftest.err
11279 rm -f conftest.er1
11280 cat conftest.err >&5
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); } &&
11283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11285 (eval $ac_try) 2>&5
11286 ac_status=$?
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); }; } &&
11289 { ac_try='test -s conftest.$ac_objext'
11290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11291 (eval $ac_try) 2>&5
11292 ac_status=$?
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); }; }; then
11295 ac_header_compiler=yes
11296 else
11297 echo "$as_me: failed program was:" >&5
11298 sed 's/^/| /' conftest.$ac_ext >&5
11300 ac_header_compiler=no
11302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11303 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11304 echo "${ECHO_T}$ac_header_compiler" >&6
11306 # Is the header present?
11307 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11309 cat >conftest.$ac_ext <<_ACEOF
11310 /* confdefs.h. */
11311 _ACEOF
11312 cat confdefs.h >>conftest.$ac_ext
11313 cat >>conftest.$ac_ext <<_ACEOF
11314 /* end confdefs.h. */
11315 #include <$ac_header>
11316 _ACEOF
11317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11318 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11319 ac_status=$?
11320 grep -v '^ *+' conftest.er1 >conftest.err
11321 rm -f conftest.er1
11322 cat conftest.err >&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); } >/dev/null; then
11325 if test -s conftest.err; then
11326 ac_cpp_err=$ac_c_preproc_warn_flag
11327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11328 else
11329 ac_cpp_err=
11331 else
11332 ac_cpp_err=yes
11334 if test -z "$ac_cpp_err"; then
11335 ac_header_preproc=yes
11336 else
11337 echo "$as_me: failed program was:" >&5
11338 sed 's/^/| /' conftest.$ac_ext >&5
11340 ac_header_preproc=no
11342 rm -f conftest.err conftest.$ac_ext
11343 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11344 echo "${ECHO_T}$ac_header_preproc" >&6
11346 # So? What about this header?
11347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11348 yes:no: )
11349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11353 ac_header_preproc=yes
11355 no:yes:* )
11356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11359 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11363 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11369 cat <<\_ASBOX
11370 ## ------------------------------------ ##
11371 ## Report this to wine-devel@winehq.org ##
11372 ## ------------------------------------ ##
11373 _ASBOX
11375 sed "s/^/$as_me: WARNING: /" >&2
11377 esac
11378 echo "$as_me:$LINENO: checking for $ac_header" >&5
11379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11381 echo $ECHO_N "(cached) $ECHO_C" >&6
11382 else
11383 eval "$as_ac_Header=\$ac_header_preproc"
11385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11390 cat >>confdefs.h <<_ACEOF
11391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11392 _ACEOF
11393 break
11396 done
11399 echo "$as_me:$LINENO: checking for Open Sound System" >&5
11400 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
11401 if test "${ac_cv_c_opensoundsystem+set}" = set; then
11402 echo $ECHO_N "(cached) $ECHO_C" >&6
11403 else
11404 cat >conftest.$ac_ext <<_ACEOF
11405 /* confdefs.h. */
11406 _ACEOF
11407 cat confdefs.h >>conftest.$ac_ext
11408 cat >>conftest.$ac_ext <<_ACEOF
11409 /* end confdefs.h. */
11411 #if defined(HAVE_SYS_SOUNDCARD_H)
11412 #include <sys/soundcard.h>
11413 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11414 #include <machine/soundcard.h>
11415 #elif defined(HAVE_SOUNDCARD_H)
11416 #include <soundcard.h>
11417 #endif
11420 main ()
11424 /* check for one of the Open Sound System specific SNDCTL_ defines */
11425 #if !defined(SNDCTL_DSP_STEREO)
11426 #error No open sound system
11427 #endif
11430 return 0;
11432 _ACEOF
11433 rm -f conftest.$ac_objext
11434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11435 (eval $ac_compile) 2>conftest.er1
11436 ac_status=$?
11437 grep -v '^ *+' conftest.er1 >conftest.err
11438 rm -f conftest.er1
11439 cat conftest.err >&5
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); } &&
11442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11448 { ac_try='test -s conftest.$ac_objext'
11449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11450 (eval $ac_try) 2>&5
11451 ac_status=$?
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); }; }; then
11454 ac_cv_c_opensoundsystem="yes"
11455 else
11456 echo "$as_me: failed program was:" >&5
11457 sed 's/^/| /' conftest.$ac_ext >&5
11459 ac_cv_c_opensoundsystem="no"
11461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11463 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
11464 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
11466 if test "$ac_cv_c_opensoundsystem" = "yes"
11467 then
11469 cat >>confdefs.h <<\_ACEOF
11470 #define HAVE_OSS 1
11471 _ACEOF
11475 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
11476 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
11477 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
11478 echo $ECHO_N "(cached) $ECHO_C" >&6
11479 else
11480 cat >conftest.$ac_ext <<_ACEOF
11481 /* confdefs.h. */
11482 _ACEOF
11483 cat confdefs.h >>conftest.$ac_ext
11484 cat >>conftest.$ac_ext <<_ACEOF
11485 /* end confdefs.h. */
11487 #if defined(HAVE_SYS_SOUNDCARD_H)
11488 #include <sys/soundcard.h>
11489 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11490 #include <machine/soundcard.h>
11491 #elif defined(HAVE_SOUNDCARD_H)
11492 #include <soundcard.h>
11493 #endif
11496 main ()
11500 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
11501 #if !defined(SNDCTL_SEQ_SYNC)
11502 #error No open sound system MIDI interface
11503 #endif
11506 return 0;
11508 _ACEOF
11509 rm -f conftest.$ac_objext
11510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11511 (eval $ac_compile) 2>conftest.er1
11512 ac_status=$?
11513 grep -v '^ *+' conftest.er1 >conftest.err
11514 rm -f conftest.er1
11515 cat conftest.err >&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); } &&
11518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11520 (eval $ac_try) 2>&5
11521 ac_status=$?
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); }; } &&
11524 { ac_try='test -s conftest.$ac_objext'
11525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11526 (eval $ac_try) 2>&5
11527 ac_status=$?
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); }; }; then
11530 ac_cv_c_opensoundsystem_midi="yes"
11531 else
11532 echo "$as_me: failed program was:" >&5
11533 sed 's/^/| /' conftest.$ac_ext >&5
11535 ac_cv_c_opensoundsystem_midi="no"
11537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11539 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
11540 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
11542 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
11543 then
11545 cat >>confdefs.h <<\_ACEOF
11546 #define HAVE_OSS_MIDI 1
11547 _ACEOF
11551 # Extract the first word of "artsc-config", so it can be a program name with args.
11552 set dummy artsc-config; ac_word=$2
11553 echo "$as_me:$LINENO: checking for $ac_word" >&5
11554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11555 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
11556 echo $ECHO_N "(cached) $ECHO_C" >&6
11557 else
11558 case $ARTSCCONFIG in
11559 [\\/]* | ?:[\\/]*)
11560 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
11563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11564 for as_dir in $PATH
11566 IFS=$as_save_IFS
11567 test -z "$as_dir" && as_dir=.
11568 for ac_exec_ext in '' $ac_executable_extensions; do
11569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11570 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
11571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11572 break 2
11574 done
11575 done
11578 esac
11580 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
11582 if test -n "$ARTSCCONFIG"; then
11583 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
11584 echo "${ECHO_T}$ARTSCCONFIG" >&6
11585 else
11586 echo "$as_me:$LINENO: result: no" >&5
11587 echo "${ECHO_T}no" >&6
11590 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
11591 then
11592 ARTSC_CFLAGS=""
11593 for i in `$ARTSCCONFIG --cflags`
11595 case "$i" in
11596 -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
11597 esac
11598 done
11599 ARTSC_LIBS=`$ARTSCCONFIG --libs`
11600 save_CFLAGS="$CFLAGS"
11601 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
11602 cat >conftest.$ac_ext <<_ACEOF
11603 /* confdefs.h. */
11604 _ACEOF
11605 cat confdefs.h >>conftest.$ac_ext
11606 cat >>conftest.$ac_ext <<_ACEOF
11607 /* end confdefs.h. */
11608 #include <artsc.h>
11610 main ()
11612 arts_stream_t stream;
11614 return 0;
11616 _ACEOF
11617 rm -f conftest.$ac_objext
11618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11619 (eval $ac_compile) 2>conftest.er1
11620 ac_status=$?
11621 grep -v '^ *+' conftest.er1 >conftest.err
11622 rm -f conftest.er1
11623 cat conftest.err >&5
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); } &&
11626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11628 (eval $ac_try) 2>&5
11629 ac_status=$?
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); }; } &&
11632 { ac_try='test -s conftest.$ac_objext'
11633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11634 (eval $ac_try) 2>&5
11635 ac_status=$?
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); }; }; then
11638 ARTSLIBS=$ARTSC_LIBS
11640 ARTSINCL=$ARTSC_CFLAGS
11643 cat >>confdefs.h <<\_ACEOF
11644 #define HAVE_ARTS 1
11645 _ACEOF
11647 else
11648 echo "$as_me: failed program was:" >&5
11649 sed 's/^/| /' conftest.$ac_ext >&5
11652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11653 CFLAGS="$save_CFLAGS"
11656 ALSALIBS=""
11660 for ac_header in alsa/asoundlib.h sys/asoundlib.h
11662 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11664 echo "$as_me:$LINENO: checking for $ac_header" >&5
11665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11666 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11667 echo $ECHO_N "(cached) $ECHO_C" >&6
11669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11670 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11671 else
11672 # Is the header compilable?
11673 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11674 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11675 cat >conftest.$ac_ext <<_ACEOF
11676 /* confdefs.h. */
11677 _ACEOF
11678 cat confdefs.h >>conftest.$ac_ext
11679 cat >>conftest.$ac_ext <<_ACEOF
11680 /* end confdefs.h. */
11681 $ac_includes_default
11682 #include <$ac_header>
11683 _ACEOF
11684 rm -f conftest.$ac_objext
11685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11686 (eval $ac_compile) 2>conftest.er1
11687 ac_status=$?
11688 grep -v '^ *+' conftest.er1 >conftest.err
11689 rm -f conftest.er1
11690 cat conftest.err >&5
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); } &&
11693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11695 (eval $ac_try) 2>&5
11696 ac_status=$?
11697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698 (exit $ac_status); }; } &&
11699 { ac_try='test -s conftest.$ac_objext'
11700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11701 (eval $ac_try) 2>&5
11702 ac_status=$?
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); }; }; then
11705 ac_header_compiler=yes
11706 else
11707 echo "$as_me: failed program was:" >&5
11708 sed 's/^/| /' conftest.$ac_ext >&5
11710 ac_header_compiler=no
11712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11713 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11714 echo "${ECHO_T}$ac_header_compiler" >&6
11716 # Is the header present?
11717 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11719 cat >conftest.$ac_ext <<_ACEOF
11720 /* confdefs.h. */
11721 _ACEOF
11722 cat confdefs.h >>conftest.$ac_ext
11723 cat >>conftest.$ac_ext <<_ACEOF
11724 /* end confdefs.h. */
11725 #include <$ac_header>
11726 _ACEOF
11727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11728 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11729 ac_status=$?
11730 grep -v '^ *+' conftest.er1 >conftest.err
11731 rm -f conftest.er1
11732 cat conftest.err >&5
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); } >/dev/null; then
11735 if test -s conftest.err; then
11736 ac_cpp_err=$ac_c_preproc_warn_flag
11737 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11738 else
11739 ac_cpp_err=
11741 else
11742 ac_cpp_err=yes
11744 if test -z "$ac_cpp_err"; then
11745 ac_header_preproc=yes
11746 else
11747 echo "$as_me: failed program was:" >&5
11748 sed 's/^/| /' conftest.$ac_ext >&5
11750 ac_header_preproc=no
11752 rm -f conftest.err conftest.$ac_ext
11753 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11754 echo "${ECHO_T}$ac_header_preproc" >&6
11756 # So? What about this header?
11757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11758 yes:no: )
11759 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11760 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11762 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11763 ac_header_preproc=yes
11765 no:yes:* )
11766 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11767 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11768 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11769 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11770 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11771 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11772 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11773 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11776 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11777 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11779 cat <<\_ASBOX
11780 ## ------------------------------------ ##
11781 ## Report this to wine-devel@winehq.org ##
11782 ## ------------------------------------ ##
11783 _ASBOX
11785 sed "s/^/$as_me: WARNING: /" >&2
11787 esac
11788 echo "$as_me:$LINENO: checking for $ac_header" >&5
11789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11791 echo $ECHO_N "(cached) $ECHO_C" >&6
11792 else
11793 eval "$as_ac_Header=\$ac_header_preproc"
11795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11800 cat >>confdefs.h <<_ACEOF
11801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11802 _ACEOF
11803 break
11806 done
11808 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11809 then
11810 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
11811 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
11812 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
11813 echo $ECHO_N "(cached) $ECHO_C" >&6
11814 else
11815 ac_check_lib_save_LIBS=$LIBS
11816 LIBS="-lasound $LIBS"
11817 cat >conftest.$ac_ext <<_ACEOF
11818 /* confdefs.h. */
11819 _ACEOF
11820 cat confdefs.h >>conftest.$ac_ext
11821 cat >>conftest.$ac_ext <<_ACEOF
11822 /* end confdefs.h. */
11824 /* Override any gcc2 internal prototype to avoid an error. */
11825 #ifdef __cplusplus
11826 extern "C"
11827 #endif
11828 /* We use char because int might match the return type of a gcc2
11829 builtin and then its argument prototype would still apply. */
11830 char snd_pcm_open ();
11832 main ()
11834 snd_pcm_open ();
11836 return 0;
11838 _ACEOF
11839 rm -f conftest.$ac_objext conftest$ac_exeext
11840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11841 (eval $ac_link) 2>conftest.er1
11842 ac_status=$?
11843 grep -v '^ *+' conftest.er1 >conftest.err
11844 rm -f conftest.er1
11845 cat conftest.err >&5
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); } &&
11848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11850 (eval $ac_try) 2>&5
11851 ac_status=$?
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); }; } &&
11854 { ac_try='test -s conftest$ac_exeext'
11855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11856 (eval $ac_try) 2>&5
11857 ac_status=$?
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); }; }; then
11860 ac_cv_lib_asound_snd_pcm_open=yes
11861 else
11862 echo "$as_me: failed program was:" >&5
11863 sed 's/^/| /' conftest.$ac_ext >&5
11865 ac_cv_lib_asound_snd_pcm_open=no
11867 rm -f conftest.err conftest.$ac_objext \
11868 conftest$ac_exeext conftest.$ac_ext
11869 LIBS=$ac_check_lib_save_LIBS
11871 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
11872 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
11873 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
11875 cat >>confdefs.h <<\_ACEOF
11876 #define HAVE_ALSA 1
11877 _ACEOF
11879 ALSALIBS="-lasound"
11885 AUDIOIOLIBS=""
11888 for ac_header in libaudioio.h
11890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11892 echo "$as_me:$LINENO: checking for $ac_header" >&5
11893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11895 echo $ECHO_N "(cached) $ECHO_C" >&6
11897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11898 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11899 else
11900 # Is the header compilable?
11901 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11902 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11903 cat >conftest.$ac_ext <<_ACEOF
11904 /* confdefs.h. */
11905 _ACEOF
11906 cat confdefs.h >>conftest.$ac_ext
11907 cat >>conftest.$ac_ext <<_ACEOF
11908 /* end confdefs.h. */
11909 $ac_includes_default
11910 #include <$ac_header>
11911 _ACEOF
11912 rm -f conftest.$ac_objext
11913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11914 (eval $ac_compile) 2>conftest.er1
11915 ac_status=$?
11916 grep -v '^ *+' conftest.er1 >conftest.err
11917 rm -f conftest.er1
11918 cat conftest.err >&5
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); } &&
11921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11923 (eval $ac_try) 2>&5
11924 ac_status=$?
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); }; } &&
11927 { ac_try='test -s conftest.$ac_objext'
11928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11929 (eval $ac_try) 2>&5
11930 ac_status=$?
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); }; }; then
11933 ac_header_compiler=yes
11934 else
11935 echo "$as_me: failed program was:" >&5
11936 sed 's/^/| /' conftest.$ac_ext >&5
11938 ac_header_compiler=no
11940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11941 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11942 echo "${ECHO_T}$ac_header_compiler" >&6
11944 # Is the header present?
11945 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11947 cat >conftest.$ac_ext <<_ACEOF
11948 /* confdefs.h. */
11949 _ACEOF
11950 cat confdefs.h >>conftest.$ac_ext
11951 cat >>conftest.$ac_ext <<_ACEOF
11952 /* end confdefs.h. */
11953 #include <$ac_header>
11954 _ACEOF
11955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11957 ac_status=$?
11958 grep -v '^ *+' conftest.er1 >conftest.err
11959 rm -f conftest.er1
11960 cat conftest.err >&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); } >/dev/null; then
11963 if test -s conftest.err; then
11964 ac_cpp_err=$ac_c_preproc_warn_flag
11965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11966 else
11967 ac_cpp_err=
11969 else
11970 ac_cpp_err=yes
11972 if test -z "$ac_cpp_err"; then
11973 ac_header_preproc=yes
11974 else
11975 echo "$as_me: failed program was:" >&5
11976 sed 's/^/| /' conftest.$ac_ext >&5
11978 ac_header_preproc=no
11980 rm -f conftest.err conftest.$ac_ext
11981 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11982 echo "${ECHO_T}$ac_header_preproc" >&6
11984 # So? What about this header?
11985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11986 yes:no: )
11987 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11988 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11990 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11991 ac_header_preproc=yes
11993 no:yes:* )
11994 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11995 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11996 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11997 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11998 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11999 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12000 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12001 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12004 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12005 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12007 cat <<\_ASBOX
12008 ## ------------------------------------ ##
12009 ## Report this to wine-devel@winehq.org ##
12010 ## ------------------------------------ ##
12011 _ASBOX
12013 sed "s/^/$as_me: WARNING: /" >&2
12015 esac
12016 echo "$as_me:$LINENO: checking for $ac_header" >&5
12017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12019 echo $ECHO_N "(cached) $ECHO_C" >&6
12020 else
12021 eval "$as_ac_Header=\$ac_header_preproc"
12023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12028 cat >>confdefs.h <<_ACEOF
12029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12030 _ACEOF
12031 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
12032 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
12033 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
12034 echo $ECHO_N "(cached) $ECHO_C" >&6
12035 else
12036 ac_check_lib_save_LIBS=$LIBS
12037 LIBS="-laudioio $LIBS"
12038 cat >conftest.$ac_ext <<_ACEOF
12039 /* confdefs.h. */
12040 _ACEOF
12041 cat confdefs.h >>conftest.$ac_ext
12042 cat >>conftest.$ac_ext <<_ACEOF
12043 /* end confdefs.h. */
12045 /* Override any gcc2 internal prototype to avoid an error. */
12046 #ifdef __cplusplus
12047 extern "C"
12048 #endif
12049 /* We use char because int might match the return type of a gcc2
12050 builtin and then its argument prototype would still apply. */
12051 char AudioIOGetVersion ();
12053 main ()
12055 AudioIOGetVersion ();
12057 return 0;
12059 _ACEOF
12060 rm -f conftest.$ac_objext conftest$ac_exeext
12061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12062 (eval $ac_link) 2>conftest.er1
12063 ac_status=$?
12064 grep -v '^ *+' conftest.er1 >conftest.err
12065 rm -f conftest.er1
12066 cat conftest.err >&5
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); } &&
12069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12071 (eval $ac_try) 2>&5
12072 ac_status=$?
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); }; } &&
12075 { ac_try='test -s conftest$ac_exeext'
12076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12077 (eval $ac_try) 2>&5
12078 ac_status=$?
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); }; }; then
12081 ac_cv_lib_audioio_AudioIOGetVersion=yes
12082 else
12083 echo "$as_me: failed program was:" >&5
12084 sed 's/^/| /' conftest.$ac_ext >&5
12086 ac_cv_lib_audioio_AudioIOGetVersion=no
12088 rm -f conftest.err conftest.$ac_objext \
12089 conftest$ac_exeext conftest.$ac_ext
12090 LIBS=$ac_check_lib_save_LIBS
12092 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
12093 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
12094 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
12095 AUDIOIOLIBS="-laudioio"
12097 cat >>confdefs.h <<\_ACEOF
12098 #define HAVE_LIBAUDIOIO 1
12099 _ACEOF
12105 done
12110 for ac_header in capi20.h
12112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12114 echo "$as_me:$LINENO: checking for $ac_header" >&5
12115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12117 echo $ECHO_N "(cached) $ECHO_C" >&6
12119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12121 else
12122 # Is the header compilable?
12123 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12125 cat >conftest.$ac_ext <<_ACEOF
12126 /* confdefs.h. */
12127 _ACEOF
12128 cat confdefs.h >>conftest.$ac_ext
12129 cat >>conftest.$ac_ext <<_ACEOF
12130 /* end confdefs.h. */
12131 $ac_includes_default
12132 #include <$ac_header>
12133 _ACEOF
12134 rm -f conftest.$ac_objext
12135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12136 (eval $ac_compile) 2>conftest.er1
12137 ac_status=$?
12138 grep -v '^ *+' conftest.er1 >conftest.err
12139 rm -f conftest.er1
12140 cat conftest.err >&5
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); } &&
12143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12145 (eval $ac_try) 2>&5
12146 ac_status=$?
12147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); }; } &&
12149 { ac_try='test -s conftest.$ac_objext'
12150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12151 (eval $ac_try) 2>&5
12152 ac_status=$?
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); }; }; then
12155 ac_header_compiler=yes
12156 else
12157 echo "$as_me: failed program was:" >&5
12158 sed 's/^/| /' conftest.$ac_ext >&5
12160 ac_header_compiler=no
12162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12163 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12164 echo "${ECHO_T}$ac_header_compiler" >&6
12166 # Is the header present?
12167 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12168 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12169 cat >conftest.$ac_ext <<_ACEOF
12170 /* confdefs.h. */
12171 _ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h. */
12175 #include <$ac_header>
12176 _ACEOF
12177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12179 ac_status=$?
12180 grep -v '^ *+' conftest.er1 >conftest.err
12181 rm -f conftest.er1
12182 cat conftest.err >&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); } >/dev/null; then
12185 if test -s conftest.err; then
12186 ac_cpp_err=$ac_c_preproc_warn_flag
12187 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12188 else
12189 ac_cpp_err=
12191 else
12192 ac_cpp_err=yes
12194 if test -z "$ac_cpp_err"; then
12195 ac_header_preproc=yes
12196 else
12197 echo "$as_me: failed program was:" >&5
12198 sed 's/^/| /' conftest.$ac_ext >&5
12200 ac_header_preproc=no
12202 rm -f conftest.err conftest.$ac_ext
12203 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12204 echo "${ECHO_T}$ac_header_preproc" >&6
12206 # So? What about this header?
12207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12208 yes:no: )
12209 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12210 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12212 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12213 ac_header_preproc=yes
12215 no:yes:* )
12216 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12217 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12218 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12219 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12220 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12221 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12222 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12223 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12225 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12226 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12227 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12229 cat <<\_ASBOX
12230 ## ------------------------------------ ##
12231 ## Report this to wine-devel@winehq.org ##
12232 ## ------------------------------------ ##
12233 _ASBOX
12235 sed "s/^/$as_me: WARNING: /" >&2
12237 esac
12238 echo "$as_me:$LINENO: checking for $ac_header" >&5
12239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12241 echo $ECHO_N "(cached) $ECHO_C" >&6
12242 else
12243 eval "$as_ac_Header=\$ac_header_preproc"
12245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12250 cat >>confdefs.h <<_ACEOF
12251 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12252 _ACEOF
12255 for ac_header in linux/capi.h
12257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12259 echo "$as_me:$LINENO: checking for $ac_header" >&5
12260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12262 echo $ECHO_N "(cached) $ECHO_C" >&6
12264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12265 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12266 else
12267 # Is the header compilable?
12268 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12270 cat >conftest.$ac_ext <<_ACEOF
12271 /* confdefs.h. */
12272 _ACEOF
12273 cat confdefs.h >>conftest.$ac_ext
12274 cat >>conftest.$ac_ext <<_ACEOF
12275 /* end confdefs.h. */
12276 $ac_includes_default
12277 #include <$ac_header>
12278 _ACEOF
12279 rm -f conftest.$ac_objext
12280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12281 (eval $ac_compile) 2>conftest.er1
12282 ac_status=$?
12283 grep -v '^ *+' conftest.er1 >conftest.err
12284 rm -f conftest.er1
12285 cat conftest.err >&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); } &&
12288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290 (eval $ac_try) 2>&5
12291 ac_status=$?
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); }; } &&
12294 { ac_try='test -s conftest.$ac_objext'
12295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12296 (eval $ac_try) 2>&5
12297 ac_status=$?
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); }; }; then
12300 ac_header_compiler=yes
12301 else
12302 echo "$as_me: failed program was:" >&5
12303 sed 's/^/| /' conftest.$ac_ext >&5
12305 ac_header_compiler=no
12307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12308 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12309 echo "${ECHO_T}$ac_header_compiler" >&6
12311 # Is the header present?
12312 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12314 cat >conftest.$ac_ext <<_ACEOF
12315 /* confdefs.h. */
12316 _ACEOF
12317 cat confdefs.h >>conftest.$ac_ext
12318 cat >>conftest.$ac_ext <<_ACEOF
12319 /* end confdefs.h. */
12320 #include <$ac_header>
12321 _ACEOF
12322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12323 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12324 ac_status=$?
12325 grep -v '^ *+' conftest.er1 >conftest.err
12326 rm -f conftest.er1
12327 cat conftest.err >&5
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); } >/dev/null; then
12330 if test -s conftest.err; then
12331 ac_cpp_err=$ac_c_preproc_warn_flag
12332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12333 else
12334 ac_cpp_err=
12336 else
12337 ac_cpp_err=yes
12339 if test -z "$ac_cpp_err"; then
12340 ac_header_preproc=yes
12341 else
12342 echo "$as_me: failed program was:" >&5
12343 sed 's/^/| /' conftest.$ac_ext >&5
12345 ac_header_preproc=no
12347 rm -f conftest.err conftest.$ac_ext
12348 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12349 echo "${ECHO_T}$ac_header_preproc" >&6
12351 # So? What about this header?
12352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12353 yes:no: )
12354 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12355 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12357 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12358 ac_header_preproc=yes
12360 no:yes:* )
12361 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12362 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12363 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12364 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12365 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12366 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12367 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12368 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12371 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12372 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12374 cat <<\_ASBOX
12375 ## ------------------------------------ ##
12376 ## Report this to wine-devel@winehq.org ##
12377 ## ------------------------------------ ##
12378 _ASBOX
12380 sed "s/^/$as_me: WARNING: /" >&2
12382 esac
12383 echo "$as_me:$LINENO: checking for $ac_header" >&5
12384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12386 echo $ECHO_N "(cached) $ECHO_C" >&6
12387 else
12388 eval "$as_ac_Header=\$ac_header_preproc"
12390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12395 cat >>confdefs.h <<_ACEOF
12396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12397 _ACEOF
12399 echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
12400 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6
12401 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
12402 echo $ECHO_N "(cached) $ECHO_C" >&6
12403 else
12404 ac_check_lib_save_LIBS=$LIBS
12405 LIBS="-lcapi20 $LIBS"
12406 cat >conftest.$ac_ext <<_ACEOF
12407 /* confdefs.h. */
12408 _ACEOF
12409 cat confdefs.h >>conftest.$ac_ext
12410 cat >>conftest.$ac_ext <<_ACEOF
12411 /* end confdefs.h. */
12413 /* Override any gcc2 internal prototype to avoid an error. */
12414 #ifdef __cplusplus
12415 extern "C"
12416 #endif
12417 /* We use char because int might match the return type of a gcc2
12418 builtin and then its argument prototype would still apply. */
12419 char capi20_register ();
12421 main ()
12423 capi20_register ();
12425 return 0;
12427 _ACEOF
12428 rm -f conftest.$ac_objext conftest$ac_exeext
12429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12430 (eval $ac_link) 2>conftest.er1
12431 ac_status=$?
12432 grep -v '^ *+' conftest.er1 >conftest.err
12433 rm -f conftest.er1
12434 cat conftest.err >&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); } &&
12437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12439 (eval $ac_try) 2>&5
12440 ac_status=$?
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); }; } &&
12443 { ac_try='test -s conftest$ac_exeext'
12444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12445 (eval $ac_try) 2>&5
12446 ac_status=$?
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); }; }; then
12449 ac_cv_lib_capi20_capi20_register=yes
12450 else
12451 echo "$as_me: failed program was:" >&5
12452 sed 's/^/| /' conftest.$ac_ext >&5
12454 ac_cv_lib_capi20_capi20_register=no
12456 rm -f conftest.err conftest.$ac_objext \
12457 conftest$ac_exeext conftest.$ac_ext
12458 LIBS=$ac_check_lib_save_LIBS
12460 echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
12461 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6
12462 if test $ac_cv_lib_capi20_capi20_register = yes; then
12465 cat >>confdefs.h <<\_ACEOF
12466 #define HAVE_CAPI4LINUX 1
12467 _ACEOF
12469 CAPI4LINUXLIBS="-lcapi20"
12477 done
12482 done
12486 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
12487 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
12488 if test "${ac_cv_mmap64_works+set}" = set; then
12489 echo $ECHO_N "(cached) $ECHO_C" >&6
12490 else
12491 if test "$cross_compiling" = yes; then
12492 ac_cv_mmap64_works="no"
12493 else
12494 cat >conftest.$ac_ext <<_ACEOF
12495 /* confdefs.h. */
12496 _ACEOF
12497 cat confdefs.h >>conftest.$ac_ext
12498 cat >>conftest.$ac_ext <<_ACEOF
12499 /* end confdefs.h. */
12501 #define _FILE_OFFSET_BITS 64
12502 #include <stdio.h>
12503 #include <unistd.h>
12504 #include <fcntl.h>
12505 #include <sys/mman.h>
12506 #include <errno.h>
12508 int main(int argc,char **argv) {
12509 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
12510 if (fd == -1) exit(1);
12512 unlink("conftest.map");
12514 write(fd,"test",4);
12516 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
12517 (errno == EINVAL)
12519 exit(1);
12521 close(fd);
12522 fprintf(stderr,"success!\n");
12523 exit(0);
12527 _ACEOF
12528 rm -f conftest$ac_exeext
12529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12530 (eval $ac_link) 2>&5
12531 ac_status=$?
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535 (eval $ac_try) 2>&5
12536 ac_status=$?
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); }; }; then
12539 ac_cv_mmap64_works="yes"
12540 else
12541 echo "$as_me: program exited with status $ac_status" >&5
12542 echo "$as_me: failed program was:" >&5
12543 sed 's/^/| /' conftest.$ac_ext >&5
12545 ( exit $ac_status )
12546 ac_cv_mmap64_works="no"
12548 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12551 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
12552 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
12554 if test "$ac_cv_mmap64_works" = "yes"
12555 then
12557 cat >>confdefs.h <<\_ACEOF
12558 #define _FILE_OFFSET_BITS 64
12559 _ACEOF
12564 EXTRACFLAGS=""
12566 if test "x${GCC}" = "xyes"
12567 then
12568 EXTRACFLAGS="-Wall -pipe"
12570 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
12571 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
12572 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
12573 echo $ECHO_N "(cached) $ECHO_C" >&6
12574 else
12575 if test "$cross_compiling" = yes; then
12576 ac_cv_c_gcc_strength_bug="yes"
12577 else
12578 cat >conftest.$ac_ext <<_ACEOF
12579 /* confdefs.h. */
12580 _ACEOF
12581 cat confdefs.h >>conftest.$ac_ext
12582 cat >>conftest.$ac_ext <<_ACEOF
12583 /* end confdefs.h. */
12585 int L[4] = {0,1,2,3};
12586 int main(void) {
12587 static int Array[3];
12588 unsigned int B = 3;
12589 int i;
12590 for(i=0; i<B; i++) Array[i] = i - 3;
12591 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12592 L[i] = 4;
12594 exit( Array[1] != -2 || L[2] != 3);
12596 _ACEOF
12597 rm -f conftest$ac_exeext
12598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12599 (eval $ac_link) 2>&5
12600 ac_status=$?
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12604 (eval $ac_try) 2>&5
12605 ac_status=$?
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); }; }; then
12608 ac_cv_c_gcc_strength_bug="no"
12609 else
12610 echo "$as_me: program exited with status $ac_status" >&5
12611 echo "$as_me: failed program was:" >&5
12612 sed 's/^/| /' conftest.$ac_ext >&5
12614 ( exit $ac_status )
12615 ac_cv_c_gcc_strength_bug="yes"
12617 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12620 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
12621 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
12622 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12623 then
12624 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12627 echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
12628 echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6
12629 if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
12630 echo $ECHO_N "(cached) $ECHO_C" >&6
12631 else
12632 ac_wine_try_cflags_saved=$CFLAGS
12633 CFLAGS="$CFLAGS -fshort-wchar"
12634 cat >conftest.$ac_ext <<_ACEOF
12635 /* confdefs.h. */
12636 _ACEOF
12637 cat confdefs.h >>conftest.$ac_ext
12638 cat >>conftest.$ac_ext <<_ACEOF
12639 /* end confdefs.h. */
12642 main ()
12646 return 0;
12648 _ACEOF
12649 rm -f conftest.$ac_objext conftest$ac_exeext
12650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12651 (eval $ac_link) 2>conftest.er1
12652 ac_status=$?
12653 grep -v '^ *+' conftest.er1 >conftest.err
12654 rm -f conftest.er1
12655 cat conftest.err >&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); } &&
12658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12660 (eval $ac_try) 2>&5
12661 ac_status=$?
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); }; } &&
12664 { ac_try='test -s conftest$ac_exeext'
12665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12666 (eval $ac_try) 2>&5
12667 ac_status=$?
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); }; }; then
12670 ac_cv_c_gcc_fshort_wchar="yes"
12671 else
12672 echo "$as_me: failed program was:" >&5
12673 sed 's/^/| /' conftest.$ac_ext >&5
12675 ac_cv_c_gcc_fshort_wchar="no"
12677 rm -f conftest.err conftest.$ac_objext \
12678 conftest$ac_exeext conftest.$ac_ext
12679 CFLAGS=$ac_wine_try_cflags_saved
12681 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
12682 echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6
12683 if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
12684 then
12686 cat >>confdefs.h <<\_ACEOF
12687 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
12688 _ACEOF
12692 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
12693 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
12694 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
12695 echo $ECHO_N "(cached) $ECHO_C" >&6
12696 else
12697 ac_wine_try_cflags_saved=$CFLAGS
12698 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
12699 cat >conftest.$ac_ext <<_ACEOF
12700 /* confdefs.h. */
12701 _ACEOF
12702 cat confdefs.h >>conftest.$ac_ext
12703 cat >>conftest.$ac_ext <<_ACEOF
12704 /* end confdefs.h. */
12707 main ()
12711 return 0;
12713 _ACEOF
12714 rm -f conftest.$ac_objext conftest$ac_exeext
12715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12716 (eval $ac_link) 2>conftest.er1
12717 ac_status=$?
12718 grep -v '^ *+' conftest.er1 >conftest.err
12719 rm -f conftest.er1
12720 cat conftest.err >&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); } &&
12723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12725 (eval $ac_try) 2>&5
12726 ac_status=$?
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); }; } &&
12729 { ac_try='test -s conftest$ac_exeext'
12730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12731 (eval $ac_try) 2>&5
12732 ac_status=$?
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); }; }; then
12735 ac_cv_c_gcc_stack_boundary="yes"
12736 else
12737 echo "$as_me: failed program was:" >&5
12738 sed 's/^/| /' conftest.$ac_ext >&5
12740 ac_cv_c_gcc_stack_boundary="no"
12742 rm -f conftest.err conftest.$ac_objext \
12743 conftest$ac_exeext conftest.$ac_ext
12744 CFLAGS=$ac_wine_try_cflags_saved
12746 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
12747 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
12748 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
12749 then
12750 EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
12753 echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
12754 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
12755 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
12756 echo $ECHO_N "(cached) $ECHO_C" >&6
12757 else
12758 ac_wine_try_cflags_saved=$CFLAGS
12759 CFLAGS="$CFLAGS -fno-strict-aliasing"
12760 cat >conftest.$ac_ext <<_ACEOF
12761 /* confdefs.h. */
12762 _ACEOF
12763 cat confdefs.h >>conftest.$ac_ext
12764 cat >>conftest.$ac_ext <<_ACEOF
12765 /* end confdefs.h. */
12768 main ()
12772 return 0;
12774 _ACEOF
12775 rm -f conftest.$ac_objext conftest$ac_exeext
12776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12777 (eval $ac_link) 2>conftest.er1
12778 ac_status=$?
12779 grep -v '^ *+' conftest.er1 >conftest.err
12780 rm -f conftest.er1
12781 cat conftest.err >&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); } &&
12784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12786 (eval $ac_try) 2>&5
12787 ac_status=$?
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); }; } &&
12790 { ac_try='test -s conftest$ac_exeext'
12791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792 (eval $ac_try) 2>&5
12793 ac_status=$?
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; }; then
12796 ac_cv_c_gcc_no_strict_aliasing="yes"
12797 else
12798 echo "$as_me: failed program was:" >&5
12799 sed 's/^/| /' conftest.$ac_ext >&5
12801 ac_cv_c_gcc_no_strict_aliasing="no"
12803 rm -f conftest.err conftest.$ac_objext \
12804 conftest$ac_exeext conftest.$ac_ext
12805 CFLAGS=$ac_wine_try_cflags_saved
12807 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
12808 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
12809 if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
12810 then
12811 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12814 echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
12815 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
12816 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
12817 echo $ECHO_N "(cached) $ECHO_C" >&6
12818 else
12819 ac_wine_try_cflags_saved=$CFLAGS
12820 CFLAGS="$CFLAGS -gstabs+"
12821 cat >conftest.$ac_ext <<_ACEOF
12822 /* confdefs.h. */
12823 _ACEOF
12824 cat confdefs.h >>conftest.$ac_ext
12825 cat >>conftest.$ac_ext <<_ACEOF
12826 /* end confdefs.h. */
12829 main ()
12833 return 0;
12835 _ACEOF
12836 rm -f conftest.$ac_objext conftest$ac_exeext
12837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12838 (eval $ac_link) 2>conftest.er1
12839 ac_status=$?
12840 grep -v '^ *+' conftest.er1 >conftest.err
12841 rm -f conftest.er1
12842 cat conftest.err >&5
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); } &&
12845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12847 (eval $ac_try) 2>&5
12848 ac_status=$?
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); }; } &&
12851 { ac_try='test -s conftest$ac_exeext'
12852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12853 (eval $ac_try) 2>&5
12854 ac_status=$?
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; }; then
12857 ac_cv_c_gcc_gstabs="yes"
12858 else
12859 echo "$as_me: failed program was:" >&5
12860 sed 's/^/| /' conftest.$ac_ext >&5
12862 ac_cv_c_gcc_gstabs="no"
12864 rm -f conftest.err conftest.$ac_objext \
12865 conftest$ac_exeext conftest.$ac_ext
12866 CFLAGS=$ac_wine_try_cflags_saved
12868 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
12869 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
12870 if test "$ac_cv_c_gcc_gstabs" = "yes"
12871 then
12872 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12875 saved_CFLAGS="$CFLAGS"
12876 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12877 echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
12878 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
12879 if test "${ac_cv_c_string_h_warnings+set}" = set; then
12880 echo $ECHO_N "(cached) $ECHO_C" >&6
12881 else
12882 cat >conftest.$ac_ext <<_ACEOF
12883 /* confdefs.h. */
12884 _ACEOF
12885 cat confdefs.h >>conftest.$ac_ext
12886 cat >>conftest.$ac_ext <<_ACEOF
12887 /* end confdefs.h. */
12888 #include <string.h>
12890 main ()
12894 return 0;
12896 _ACEOF
12897 rm -f conftest.$ac_objext
12898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12899 (eval $ac_compile) 2>conftest.er1
12900 ac_status=$?
12901 grep -v '^ *+' conftest.er1 >conftest.err
12902 rm -f conftest.er1
12903 cat conftest.err >&5
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); } &&
12906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12908 (eval $ac_try) 2>&5
12909 ac_status=$?
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); }; } &&
12912 { ac_try='test -s conftest.$ac_objext'
12913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12914 (eval $ac_try) 2>&5
12915 ac_status=$?
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); }; }; then
12918 ac_cv_c_string_h_warnings=no
12919 else
12920 echo "$as_me: failed program was:" >&5
12921 sed 's/^/| /' conftest.$ac_ext >&5
12923 ac_cv_c_string_h_warnings=yes
12925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12927 echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
12928 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
12929 CFLAGS="$saved_CFLAGS"
12930 if test "$ac_cv_c_string_h_warnings" = "no"
12931 then
12932 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12937 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
12938 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
12939 if test "${ac_cv_asm_func_def+set}" = set; then
12940 echo $ECHO_N "(cached) $ECHO_C" >&6
12941 else
12942 cat >conftest.$ac_ext <<_ACEOF
12943 /* confdefs.h. */
12944 _ACEOF
12945 cat confdefs.h >>conftest.$ac_ext
12946 cat >>conftest.$ac_ext <<_ACEOF
12947 /* end confdefs.h. */
12948 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"); }
12951 main ()
12955 return 0;
12957 _ACEOF
12958 rm -f conftest.$ac_objext conftest$ac_exeext
12959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12960 (eval $ac_link) 2>conftest.er1
12961 ac_status=$?
12962 grep -v '^ *+' conftest.er1 >conftest.err
12963 rm -f conftest.er1
12964 cat conftest.err >&5
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); } &&
12967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12969 (eval $ac_try) 2>&5
12970 ac_status=$?
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); }; } &&
12973 { ac_try='test -s conftest$ac_exeext'
12974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12975 (eval $ac_try) 2>&5
12976 ac_status=$?
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); }; }; then
12979 ac_cv_asm_func_def=".def"
12980 else
12981 echo "$as_me: failed program was:" >&5
12982 sed 's/^/| /' conftest.$ac_ext >&5
12984 cat >conftest.$ac_ext <<_ACEOF
12985 /* confdefs.h. */
12986 _ACEOF
12987 cat confdefs.h >>conftest.$ac_ext
12988 cat >>conftest.$ac_ext <<_ACEOF
12989 /* end confdefs.h. */
12990 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
12993 main ()
12997 return 0;
12999 _ACEOF
13000 rm -f conftest.$ac_objext conftest$ac_exeext
13001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13002 (eval $ac_link) 2>conftest.er1
13003 ac_status=$?
13004 grep -v '^ *+' conftest.er1 >conftest.err
13005 rm -f conftest.er1
13006 cat conftest.err >&5
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); } &&
13009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13011 (eval $ac_try) 2>&5
13012 ac_status=$?
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); }; } &&
13015 { ac_try='test -s conftest$ac_exeext'
13016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13017 (eval $ac_try) 2>&5
13018 ac_status=$?
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); }; }; then
13021 ac_cv_asm_func_def=".type @function"
13022 else
13023 echo "$as_me: failed program was:" >&5
13024 sed 's/^/| /' conftest.$ac_ext >&5
13026 cat >conftest.$ac_ext <<_ACEOF
13027 /* confdefs.h. */
13028 _ACEOF
13029 cat confdefs.h >>conftest.$ac_ext
13030 cat >>conftest.$ac_ext <<_ACEOF
13031 /* end confdefs.h. */
13032 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
13035 main ()
13039 return 0;
13041 _ACEOF
13042 rm -f conftest.$ac_objext conftest$ac_exeext
13043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13044 (eval $ac_link) 2>conftest.er1
13045 ac_status=$?
13046 grep -v '^ *+' conftest.er1 >conftest.err
13047 rm -f conftest.er1
13048 cat conftest.err >&5
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); } &&
13051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13053 (eval $ac_try) 2>&5
13054 ac_status=$?
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); }; } &&
13057 { ac_try='test -s conftest$ac_exeext'
13058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13059 (eval $ac_try) 2>&5
13060 ac_status=$?
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }; }; then
13063 ac_cv_asm_func_def=".type 2"
13064 else
13065 echo "$as_me: failed program was:" >&5
13066 sed 's/^/| /' conftest.$ac_ext >&5
13068 ac_cv_asm_func_def="unknown"
13070 rm -f conftest.err conftest.$ac_objext \
13071 conftest$ac_exeext conftest.$ac_ext
13073 rm -f conftest.err conftest.$ac_objext \
13074 conftest$ac_exeext conftest.$ac_ext
13076 rm -f conftest.err conftest.$ac_objext \
13077 conftest$ac_exeext conftest.$ac_ext
13079 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
13080 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
13084 case "$ac_cv_asm_func_def" in
13085 ".def")
13086 cat >>confdefs.h <<\_ACEOF
13087 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
13088 _ACEOF
13090 ".type @function")
13091 cat >>confdefs.h <<\_ACEOF
13092 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
13093 _ACEOF
13095 ".type 2")
13096 cat >>confdefs.h <<\_ACEOF
13097 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
13098 _ACEOF
13101 cat >>confdefs.h <<\_ACEOF
13102 #define __ASM_FUNC(name) ""
13103 _ACEOF
13105 esac
13108 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
13109 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
13110 if test "${ac_cv_c_extern_prefix+set}" = set; then
13111 echo $ECHO_N "(cached) $ECHO_C" >&6
13112 else
13113 cat >conftest.$ac_ext <<_ACEOF
13114 /* confdefs.h. */
13115 _ACEOF
13116 cat confdefs.h >>conftest.$ac_ext
13117 cat >>conftest.$ac_ext <<_ACEOF
13118 /* end confdefs.h. */
13119 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
13120 extern int ac_test;
13122 main ()
13124 if (ac_test) return 1
13126 return 0;
13128 _ACEOF
13129 rm -f conftest.$ac_objext conftest$ac_exeext
13130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13131 (eval $ac_link) 2>conftest.er1
13132 ac_status=$?
13133 grep -v '^ *+' conftest.er1 >conftest.err
13134 rm -f conftest.er1
13135 cat conftest.err >&5
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); } &&
13138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13140 (eval $ac_try) 2>&5
13141 ac_status=$?
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); }; } &&
13144 { ac_try='test -s conftest$ac_exeext'
13145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13146 (eval $ac_try) 2>&5
13147 ac_status=$?
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); }; }; then
13150 ac_cv_c_extern_prefix="yes"
13151 else
13152 echo "$as_me: failed program was:" >&5
13153 sed 's/^/| /' conftest.$ac_ext >&5
13155 ac_cv_c_extern_prefix="no"
13157 rm -f conftest.err conftest.$ac_objext \
13158 conftest$ac_exeext conftest.$ac_ext
13160 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
13161 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
13165 if test "$ac_cv_c_extern_prefix" = "yes"
13166 then
13167 cat >>confdefs.h <<\_ACEOF
13168 #define __ASM_NAME(name) "_" name
13169 _ACEOF
13171 else
13172 cat >>confdefs.h <<\_ACEOF
13173 #define __ASM_NAME(name) name
13174 _ACEOF
13179 echo "$as_me:$LINENO: checking for assembler keyword for ASCII strings" >&5
13180 echo $ECHO_N "checking for assembler keyword for ASCII strings... $ECHO_C" >&6
13181 if test "${ac_cv_c_asm_string+set}" = set; then
13182 echo $ECHO_N "(cached) $ECHO_C" >&6
13183 else
13184 cat >conftest.$ac_ext <<_ACEOF
13185 /* confdefs.h. */
13186 _ACEOF
13187 cat confdefs.h >>conftest.$ac_ext
13188 cat >>conftest.$ac_ext <<_ACEOF
13189 /* end confdefs.h. */
13190 void ac_asm(void) { asm(".data\\n\\t.string \\"test\\"\\n\\t.text"); }
13193 main ()
13197 return 0;
13199 _ACEOF
13200 rm -f conftest.$ac_objext conftest$ac_exeext
13201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13202 (eval $ac_link) 2>conftest.er1
13203 ac_status=$?
13204 grep -v '^ *+' conftest.er1 >conftest.err
13205 rm -f conftest.er1
13206 cat conftest.err >&5
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); } &&
13209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13211 (eval $ac_try) 2>&5
13212 ac_status=$?
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); }; } &&
13215 { ac_try='test -s conftest$ac_exeext'
13216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13217 (eval $ac_try) 2>&5
13218 ac_status=$?
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); }; }; then
13221 ac_cv_c_asm_string=".string"
13222 else
13223 echo "$as_me: failed program was:" >&5
13224 sed 's/^/| /' conftest.$ac_ext >&5
13226 cat >conftest.$ac_ext <<_ACEOF
13227 /* confdefs.h. */
13228 _ACEOF
13229 cat confdefs.h >>conftest.$ac_ext
13230 cat >>conftest.$ac_ext <<_ACEOF
13231 /* end confdefs.h. */
13232 void ac_asm(void) { asm(".data\\n\\t.asciz \\"test\\"\\n\\t.text"); }
13235 main ()
13239 return 0;
13241 _ACEOF
13242 rm -f conftest.$ac_objext conftest$ac_exeext
13243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13244 (eval $ac_link) 2>conftest.er1
13245 ac_status=$?
13246 grep -v '^ *+' conftest.er1 >conftest.err
13247 rm -f conftest.er1
13248 cat conftest.err >&5
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); } &&
13251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13253 (eval $ac_try) 2>&5
13254 ac_status=$?
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); }; } &&
13257 { ac_try='test -s conftest$ac_exeext'
13258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13259 (eval $ac_try) 2>&5
13260 ac_status=$?
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); }; }; then
13263 ac_cv_c_asm_string=".asciz"
13264 else
13265 echo "$as_me: failed program was:" >&5
13266 sed 's/^/| /' conftest.$ac_ext >&5
13268 cat >conftest.$ac_ext <<_ACEOF
13269 /* confdefs.h. */
13270 _ACEOF
13271 cat confdefs.h >>conftest.$ac_ext
13272 cat >>conftest.$ac_ext <<_ACEOF
13273 /* end confdefs.h. */
13274 void ac_asm(void) { asm(".data\\n\\t.ascii \\"test\\"\\n\\t.text"); }
13277 main ()
13281 return 0;
13283 _ACEOF
13284 rm -f conftest.$ac_objext conftest$ac_exeext
13285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13286 (eval $ac_link) 2>conftest.er1
13287 ac_status=$?
13288 grep -v '^ *+' conftest.er1 >conftest.err
13289 rm -f conftest.er1
13290 cat conftest.err >&5
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); } &&
13293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13295 (eval $ac_try) 2>&5
13296 ac_status=$?
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); }; } &&
13299 { ac_try='test -s conftest$ac_exeext'
13300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13301 (eval $ac_try) 2>&5
13302 ac_status=$?
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); }; }; then
13305 ac_cv_c_asm_string=".ascii"
13306 else
13307 echo "$as_me: failed program was:" >&5
13308 sed 's/^/| /' conftest.$ac_ext >&5
13310 { { echo "$as_me:$LINENO: error: could not discover how to produce C strings with assembler." >&5
13311 echo "$as_me: error: could not discover how to produce C strings with assembler." >&2;}
13312 { (exit 1); exit 1; }; }
13314 rm -f conftest.err conftest.$ac_objext \
13315 conftest$ac_exeext conftest.$ac_ext
13317 rm -f conftest.err conftest.$ac_objext \
13318 conftest$ac_exeext conftest.$ac_ext
13320 rm -f conftest.err conftest.$ac_objext \
13321 conftest$ac_exeext conftest.$ac_ext
13323 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
13324 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
13327 cat >>confdefs.h <<_ACEOF
13328 #define __ASM_STRING "$ac_cv_c_asm_string"
13329 _ACEOF
13333 echo "$as_me:$LINENO: checking for assembler keyword for word values" >&5
13334 echo $ECHO_N "checking for assembler keyword for word values... $ECHO_C" >&6
13335 if test "${ac_cv_c_asm_short+set}" = set; then
13336 echo $ECHO_N "(cached) $ECHO_C" >&6
13337 else
13338 cat >conftest.$ac_ext <<_ACEOF
13339 /* confdefs.h. */
13340 _ACEOF
13341 cat confdefs.h >>conftest.$ac_ext
13342 cat >>conftest.$ac_ext <<_ACEOF
13343 /* end confdefs.h. */
13344 void ac_asm(void) { asm(".data\\n\\t.short 1\\n\\t.text"); }
13347 main ()
13351 return 0;
13353 _ACEOF
13354 rm -f conftest.$ac_objext conftest$ac_exeext
13355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13356 (eval $ac_link) 2>conftest.er1
13357 ac_status=$?
13358 grep -v '^ *+' conftest.er1 >conftest.err
13359 rm -f conftest.er1
13360 cat conftest.err >&5
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); } &&
13363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13365 (eval $ac_try) 2>&5
13366 ac_status=$?
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); }; } &&
13369 { ac_try='test -s conftest$ac_exeext'
13370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13371 (eval $ac_try) 2>&5
13372 ac_status=$?
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); }; }; then
13375 ac_cv_c_asm_short=".short"
13376 else
13377 echo "$as_me: failed program was:" >&5
13378 sed 's/^/| /' conftest.$ac_ext >&5
13380 cat >conftest.$ac_ext <<_ACEOF
13381 /* confdefs.h. */
13382 _ACEOF
13383 cat confdefs.h >>conftest.$ac_ext
13384 cat >>conftest.$ac_ext <<_ACEOF
13385 /* end confdefs.h. */
13386 void ac_asm(void) { asm(".data\\n\\t.half 1\\n\\t.text"); }
13389 main ()
13393 return 0;
13395 _ACEOF
13396 rm -f conftest.$ac_objext conftest$ac_exeext
13397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13398 (eval $ac_link) 2>conftest.er1
13399 ac_status=$?
13400 grep -v '^ *+' conftest.er1 >conftest.err
13401 rm -f conftest.er1
13402 cat conftest.err >&5
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); } &&
13405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13407 (eval $ac_try) 2>&5
13408 ac_status=$?
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); }; } &&
13411 { ac_try='test -s conftest$ac_exeext'
13412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13413 (eval $ac_try) 2>&5
13414 ac_status=$?
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); }; }; then
13417 ac_cv_c_asm_short=".half"
13418 else
13419 echo "$as_me: failed program was:" >&5
13420 sed 's/^/| /' conftest.$ac_ext >&5
13422 { { echo "$as_me:$LINENO: error: could not discover how to specify word values with assembler." >&5
13423 echo "$as_me: error: could not discover how to specify word values with assembler." >&2;}
13424 { (exit 1); exit 1; }; }
13426 rm -f conftest.err conftest.$ac_objext \
13427 conftest$ac_exeext conftest.$ac_ext
13429 rm -f conftest.err conftest.$ac_objext \
13430 conftest$ac_exeext conftest.$ac_ext
13432 echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
13433 echo "${ECHO_T}$ac_cv_c_asm_short" >&6
13436 cat >>confdefs.h <<_ACEOF
13437 #define __ASM_SHORT "$ac_cv_c_asm_short"
13438 _ACEOF
13442 DLLEXT=""
13444 DLLFLAGS="-D_REENTRANT"
13446 DLLIBS=""
13448 LDSHARED=""
13450 LDDLLFLAGS=""
13452 LIBEXT="so"
13454 IMPLIBEXT="def"
13457 case $host_os in
13458 cygwin*|mingw32*)
13459 if test -n "$ac_tool_prefix"; then
13460 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13461 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13462 echo "$as_me:$LINENO: checking for $ac_word" >&5
13463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13464 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13465 echo $ECHO_N "(cached) $ECHO_C" >&6
13466 else
13467 if test -n "$DLLTOOL"; then
13468 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13469 else
13470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13471 for as_dir in $PATH
13473 IFS=$as_save_IFS
13474 test -z "$as_dir" && as_dir=.
13475 for ac_exec_ext in '' $ac_executable_extensions; do
13476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13477 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13479 break 2
13481 done
13482 done
13486 DLLTOOL=$ac_cv_prog_DLLTOOL
13487 if test -n "$DLLTOOL"; then
13488 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13489 echo "${ECHO_T}$DLLTOOL" >&6
13490 else
13491 echo "$as_me:$LINENO: result: no" >&5
13492 echo "${ECHO_T}no" >&6
13496 if test -z "$ac_cv_prog_DLLTOOL"; then
13497 ac_ct_DLLTOOL=$DLLTOOL
13498 # Extract the first word of "dlltool", so it can be a program name with args.
13499 set dummy dlltool; ac_word=$2
13500 echo "$as_me:$LINENO: checking for $ac_word" >&5
13501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13502 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
13503 echo $ECHO_N "(cached) $ECHO_C" >&6
13504 else
13505 if test -n "$ac_ct_DLLTOOL"; then
13506 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13507 else
13508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13509 for as_dir in $PATH
13511 IFS=$as_save_IFS
13512 test -z "$as_dir" && as_dir=.
13513 for ac_exec_ext in '' $ac_executable_extensions; do
13514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13515 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13517 break 2
13519 done
13520 done
13522 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
13525 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13526 if test -n "$ac_ct_DLLTOOL"; then
13527 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13528 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
13529 else
13530 echo "$as_me:$LINENO: result: no" >&5
13531 echo "${ECHO_T}no" >&6
13534 DLLTOOL=$ac_ct_DLLTOOL
13535 else
13536 DLLTOOL="$ac_cv_prog_DLLTOOL"
13539 if test -n "$ac_tool_prefix"; then
13540 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
13541 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
13542 echo "$as_me:$LINENO: checking for $ac_word" >&5
13543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13544 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
13545 echo $ECHO_N "(cached) $ECHO_C" >&6
13546 else
13547 if test -n "$DLLWRAP"; then
13548 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
13549 else
13550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13551 for as_dir in $PATH
13553 IFS=$as_save_IFS
13554 test -z "$as_dir" && as_dir=.
13555 for ac_exec_ext in '' $ac_executable_extensions; do
13556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13557 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
13558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13559 break 2
13561 done
13562 done
13566 DLLWRAP=$ac_cv_prog_DLLWRAP
13567 if test -n "$DLLWRAP"; then
13568 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
13569 echo "${ECHO_T}$DLLWRAP" >&6
13570 else
13571 echo "$as_me:$LINENO: result: no" >&5
13572 echo "${ECHO_T}no" >&6
13576 if test -z "$ac_cv_prog_DLLWRAP"; then
13577 ac_ct_DLLWRAP=$DLLWRAP
13578 # Extract the first word of "dllwrap", so it can be a program name with args.
13579 set dummy dllwrap; ac_word=$2
13580 echo "$as_me:$LINENO: checking for $ac_word" >&5
13581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13582 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
13583 echo $ECHO_N "(cached) $ECHO_C" >&6
13584 else
13585 if test -n "$ac_ct_DLLWRAP"; then
13586 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
13587 else
13588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13589 for as_dir in $PATH
13591 IFS=$as_save_IFS
13592 test -z "$as_dir" && as_dir=.
13593 for ac_exec_ext in '' $ac_executable_extensions; do
13594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13595 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
13596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13597 break 2
13599 done
13600 done
13602 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
13605 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
13606 if test -n "$ac_ct_DLLWRAP"; then
13607 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
13608 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
13609 else
13610 echo "$as_me:$LINENO: result: no" >&5
13611 echo "${ECHO_T}no" >&6
13614 DLLWRAP=$ac_ct_DLLWRAP
13615 else
13616 DLLWRAP="$ac_cv_prog_DLLWRAP"
13619 if test "$DLLWRAP" = "false"; then
13620 LIBEXT="a"
13621 else
13622 LIBEXT="dll"
13624 IMPLIBEXT="a"
13628 for ac_header in dlfcn.h
13630 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13632 echo "$as_me:$LINENO: checking for $ac_header" >&5
13633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13635 echo $ECHO_N "(cached) $ECHO_C" >&6
13637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13639 else
13640 # Is the header compilable?
13641 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13642 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13643 cat >conftest.$ac_ext <<_ACEOF
13644 /* confdefs.h. */
13645 _ACEOF
13646 cat confdefs.h >>conftest.$ac_ext
13647 cat >>conftest.$ac_ext <<_ACEOF
13648 /* end confdefs.h. */
13649 $ac_includes_default
13650 #include <$ac_header>
13651 _ACEOF
13652 rm -f conftest.$ac_objext
13653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13654 (eval $ac_compile) 2>conftest.er1
13655 ac_status=$?
13656 grep -v '^ *+' conftest.er1 >conftest.err
13657 rm -f conftest.er1
13658 cat conftest.err >&5
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); } &&
13661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13663 (eval $ac_try) 2>&5
13664 ac_status=$?
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); }; } &&
13667 { ac_try='test -s conftest.$ac_objext'
13668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13669 (eval $ac_try) 2>&5
13670 ac_status=$?
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); }; }; then
13673 ac_header_compiler=yes
13674 else
13675 echo "$as_me: failed program was:" >&5
13676 sed 's/^/| /' conftest.$ac_ext >&5
13678 ac_header_compiler=no
13680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13681 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13682 echo "${ECHO_T}$ac_header_compiler" >&6
13684 # Is the header present?
13685 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13687 cat >conftest.$ac_ext <<_ACEOF
13688 /* confdefs.h. */
13689 _ACEOF
13690 cat confdefs.h >>conftest.$ac_ext
13691 cat >>conftest.$ac_ext <<_ACEOF
13692 /* end confdefs.h. */
13693 #include <$ac_header>
13694 _ACEOF
13695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13696 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13697 ac_status=$?
13698 grep -v '^ *+' conftest.er1 >conftest.err
13699 rm -f conftest.er1
13700 cat conftest.err >&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); } >/dev/null; then
13703 if test -s conftest.err; then
13704 ac_cpp_err=$ac_c_preproc_warn_flag
13705 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13706 else
13707 ac_cpp_err=
13709 else
13710 ac_cpp_err=yes
13712 if test -z "$ac_cpp_err"; then
13713 ac_header_preproc=yes
13714 else
13715 echo "$as_me: failed program was:" >&5
13716 sed 's/^/| /' conftest.$ac_ext >&5
13718 ac_header_preproc=no
13720 rm -f conftest.err conftest.$ac_ext
13721 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13722 echo "${ECHO_T}$ac_header_preproc" >&6
13724 # So? What about this header?
13725 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13726 yes:no: )
13727 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13728 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13730 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13731 ac_header_preproc=yes
13733 no:yes:* )
13734 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13735 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13736 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13737 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13738 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13739 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13740 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13741 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13743 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13744 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13745 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13747 cat <<\_ASBOX
13748 ## ------------------------------------ ##
13749 ## Report this to wine-devel@winehq.org ##
13750 ## ------------------------------------ ##
13751 _ASBOX
13753 sed "s/^/$as_me: WARNING: /" >&2
13755 esac
13756 echo "$as_me:$LINENO: checking for $ac_header" >&5
13757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13759 echo $ECHO_N "(cached) $ECHO_C" >&6
13760 else
13761 eval "$as_ac_Header=\$ac_header_preproc"
13763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13768 cat >>confdefs.h <<_ACEOF
13769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13770 _ACEOF
13772 for ac_func in dlopen
13774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13775 echo "$as_me:$LINENO: checking for $ac_func" >&5
13776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13777 if eval "test \"\${$as_ac_var+set}\" = set"; then
13778 echo $ECHO_N "(cached) $ECHO_C" >&6
13779 else
13780 cat >conftest.$ac_ext <<_ACEOF
13781 /* confdefs.h. */
13782 _ACEOF
13783 cat confdefs.h >>conftest.$ac_ext
13784 cat >>conftest.$ac_ext <<_ACEOF
13785 /* end confdefs.h. */
13786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13788 #define $ac_func innocuous_$ac_func
13790 /* System header to define __stub macros and hopefully few prototypes,
13791 which can conflict with char $ac_func (); below.
13792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13793 <limits.h> exists even on freestanding compilers. */
13795 #ifdef __STDC__
13796 # include <limits.h>
13797 #else
13798 # include <assert.h>
13799 #endif
13801 #undef $ac_func
13803 /* Override any gcc2 internal prototype to avoid an error. */
13804 #ifdef __cplusplus
13805 extern "C"
13807 #endif
13808 /* We use char because int might match the return type of a gcc2
13809 builtin and then its argument prototype would still apply. */
13810 char $ac_func ();
13811 /* The GNU C library defines this for functions which it implements
13812 to always fail with ENOSYS. Some functions are actually named
13813 something starting with __ and the normal name is an alias. */
13814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13815 choke me
13816 #else
13817 char (*f) () = $ac_func;
13818 #endif
13819 #ifdef __cplusplus
13821 #endif
13824 main ()
13826 return f != $ac_func;
13828 return 0;
13830 _ACEOF
13831 rm -f conftest.$ac_objext conftest$ac_exeext
13832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13833 (eval $ac_link) 2>conftest.er1
13834 ac_status=$?
13835 grep -v '^ *+' conftest.er1 >conftest.err
13836 rm -f conftest.er1
13837 cat conftest.err >&5
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); } &&
13840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13842 (eval $ac_try) 2>&5
13843 ac_status=$?
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); }; } &&
13846 { ac_try='test -s conftest$ac_exeext'
13847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13848 (eval $ac_try) 2>&5
13849 ac_status=$?
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); }; }; then
13852 eval "$as_ac_var=yes"
13853 else
13854 echo "$as_me: failed program was:" >&5
13855 sed 's/^/| /' conftest.$ac_ext >&5
13857 eval "$as_ac_var=no"
13859 rm -f conftest.err conftest.$ac_objext \
13860 conftest$ac_exeext conftest.$ac_ext
13862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13863 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13864 if test `eval echo '${'$as_ac_var'}'` = yes; then
13865 cat >>confdefs.h <<_ACEOF
13866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13867 _ACEOF
13869 else
13870 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13871 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13872 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13873 echo $ECHO_N "(cached) $ECHO_C" >&6
13874 else
13875 ac_check_lib_save_LIBS=$LIBS
13876 LIBS="-ldl $LIBS"
13877 cat >conftest.$ac_ext <<_ACEOF
13878 /* confdefs.h. */
13879 _ACEOF
13880 cat confdefs.h >>conftest.$ac_ext
13881 cat >>conftest.$ac_ext <<_ACEOF
13882 /* end confdefs.h. */
13884 /* Override any gcc2 internal prototype to avoid an error. */
13885 #ifdef __cplusplus
13886 extern "C"
13887 #endif
13888 /* We use char because int might match the return type of a gcc2
13889 builtin and then its argument prototype would still apply. */
13890 char dlopen ();
13892 main ()
13894 dlopen ();
13896 return 0;
13898 _ACEOF
13899 rm -f conftest.$ac_objext conftest$ac_exeext
13900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13901 (eval $ac_link) 2>conftest.er1
13902 ac_status=$?
13903 grep -v '^ *+' conftest.er1 >conftest.err
13904 rm -f conftest.er1
13905 cat conftest.err >&5
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); } &&
13908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13910 (eval $ac_try) 2>&5
13911 ac_status=$?
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); }; } &&
13914 { ac_try='test -s conftest$ac_exeext'
13915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13916 (eval $ac_try) 2>&5
13917 ac_status=$?
13918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); }; }; then
13920 ac_cv_lib_dl_dlopen=yes
13921 else
13922 echo "$as_me: failed program was:" >&5
13923 sed 's/^/| /' conftest.$ac_ext >&5
13925 ac_cv_lib_dl_dlopen=no
13927 rm -f conftest.err conftest.$ac_objext \
13928 conftest$ac_exeext conftest.$ac_ext
13929 LIBS=$ac_check_lib_save_LIBS
13931 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13932 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13933 if test $ac_cv_lib_dl_dlopen = yes; then
13935 cat >>confdefs.h <<\_ACEOF
13936 #define HAVE_DLOPEN 1
13937 _ACEOF
13939 DLLIBS="-ldl"
13940 else
13941 LIBEXT="a"
13945 done
13947 else
13948 LIBEXT="a"
13951 done
13954 if test "$LIBEXT" = "so"
13955 then
13956 DLLFLAGS="$DLLFLAGS -fPIC"
13957 DLLEXT=".so"
13958 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
13959 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
13960 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
13961 echo $ECHO_N "(cached) $ECHO_C" >&6
13962 else
13963 ac_wine_try_cflags_saved=$CFLAGS
13964 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
13965 cat >conftest.$ac_ext <<_ACEOF
13966 /* confdefs.h. */
13967 _ACEOF
13968 cat confdefs.h >>conftest.$ac_ext
13969 cat >>conftest.$ac_ext <<_ACEOF
13970 /* end confdefs.h. */
13973 main ()
13977 return 0;
13979 _ACEOF
13980 rm -f conftest.$ac_objext conftest$ac_exeext
13981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13982 (eval $ac_link) 2>conftest.er1
13983 ac_status=$?
13984 grep -v '^ *+' conftest.er1 >conftest.err
13985 rm -f conftest.er1
13986 cat conftest.err >&5
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); } &&
13989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13991 (eval $ac_try) 2>&5
13992 ac_status=$?
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; } &&
13995 { ac_try='test -s conftest$ac_exeext'
13996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13997 (eval $ac_try) 2>&5
13998 ac_status=$?
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); }; }; then
14001 ac_cv_c_dll_gnuelf="yes"
14002 else
14003 echo "$as_me: failed program was:" >&5
14004 sed 's/^/| /' conftest.$ac_ext >&5
14006 ac_cv_c_dll_gnuelf="no"
14008 rm -f conftest.err conftest.$ac_objext \
14009 conftest$ac_exeext conftest.$ac_ext
14010 CFLAGS=$ac_wine_try_cflags_saved
14012 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
14013 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
14014 if test "$ac_cv_c_dll_gnuelf" = "yes"
14015 then
14016 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
14017 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
14018 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
14019 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
14020 if test "${ac_cv_c_dll_zdefs+set}" = set; then
14021 echo $ECHO_N "(cached) $ECHO_C" >&6
14022 else
14023 ac_wine_try_cflags_saved=$CFLAGS
14024 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
14025 cat >conftest.$ac_ext <<_ACEOF
14026 /* confdefs.h. */
14027 _ACEOF
14028 cat confdefs.h >>conftest.$ac_ext
14029 cat >>conftest.$ac_ext <<_ACEOF
14030 /* end confdefs.h. */
14033 main ()
14037 return 0;
14039 _ACEOF
14040 rm -f conftest.$ac_objext conftest$ac_exeext
14041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14042 (eval $ac_link) 2>conftest.er1
14043 ac_status=$?
14044 grep -v '^ *+' conftest.er1 >conftest.err
14045 rm -f conftest.er1
14046 cat conftest.err >&5
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); } &&
14049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14051 (eval $ac_try) 2>&5
14052 ac_status=$?
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); }; } &&
14055 { ac_try='test -s conftest$ac_exeext'
14056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14057 (eval $ac_try) 2>&5
14058 ac_status=$?
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); }; }; then
14061 ac_cv_c_dll_zdefs="yes"
14062 else
14063 echo "$as_me: failed program was:" >&5
14064 sed 's/^/| /' conftest.$ac_ext >&5
14066 ac_cv_c_dll_zdefs="no"
14068 rm -f conftest.err conftest.$ac_objext \
14069 conftest$ac_exeext conftest.$ac_ext
14070 CFLAGS=$ac_wine_try_cflags_saved
14072 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
14073 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
14074 if test "$ac_cv_c_dll_zdefs" = "yes"
14075 then
14076 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
14079 echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
14080 echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6
14081 if test "${ac_cv_c_dll_init_fini+set}" = set; then
14082 echo $ECHO_N "(cached) $ECHO_C" >&6
14083 else
14084 ac_wine_try_cflags_saved=$CFLAGS
14085 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
14086 cat >conftest.$ac_ext <<_ACEOF
14087 /* confdefs.h. */
14088 _ACEOF
14089 cat confdefs.h >>conftest.$ac_ext
14090 cat >>conftest.$ac_ext <<_ACEOF
14091 /* end confdefs.h. */
14094 main ()
14098 return 0;
14100 _ACEOF
14101 rm -f conftest.$ac_objext conftest$ac_exeext
14102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14103 (eval $ac_link) 2>conftest.er1
14104 ac_status=$?
14105 grep -v '^ *+' conftest.er1 >conftest.err
14106 rm -f conftest.er1
14107 cat conftest.err >&5
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); } &&
14110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14112 (eval $ac_try) 2>&5
14113 ac_status=$?
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; } &&
14116 { ac_try='test -s conftest$ac_exeext'
14117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118 (eval $ac_try) 2>&5
14119 ac_status=$?
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); }; }; then
14122 ac_cv_c_dll_init_fini="yes"
14123 else
14124 echo "$as_me: failed program was:" >&5
14125 sed 's/^/| /' conftest.$ac_ext >&5
14127 ac_cv_c_dll_init_fini="no"
14129 rm -f conftest.err conftest.$ac_objext \
14130 conftest$ac_exeext conftest.$ac_ext
14131 CFLAGS=$ac_wine_try_cflags_saved
14133 echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
14134 echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6
14135 if test "$ac_cv_c_dll_init_fini" = "yes"
14136 then
14137 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
14140 echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
14141 echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6
14142 if test "${ac_cv_c_ld_version_scripts+set}" = set; then
14143 echo $ECHO_N "(cached) $ECHO_C" >&6
14144 else
14145 echo '{ global: *; };' >conftest.map
14146 ac_wine_try_cflags_saved=$CFLAGS
14147 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
14148 cat >conftest.$ac_ext <<_ACEOF
14149 /* confdefs.h. */
14150 _ACEOF
14151 cat confdefs.h >>conftest.$ac_ext
14152 cat >>conftest.$ac_ext <<_ACEOF
14153 /* end confdefs.h. */
14156 main ()
14160 return 0;
14162 _ACEOF
14163 rm -f conftest.$ac_objext conftest$ac_exeext
14164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14165 (eval $ac_link) 2>conftest.er1
14166 ac_status=$?
14167 grep -v '^ *+' conftest.er1 >conftest.err
14168 rm -f conftest.er1
14169 cat conftest.err >&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); } &&
14172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14174 (eval $ac_try) 2>&5
14175 ac_status=$?
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); }; } &&
14178 { ac_try='test -s conftest$ac_exeext'
14179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180 (eval $ac_try) 2>&5
14181 ac_status=$?
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); }; }; then
14184 ac_cv_c_ld_version_scripts="yes"
14185 else
14186 echo "$as_me: failed program was:" >&5
14187 sed 's/^/| /' conftest.$ac_ext >&5
14189 ac_cv_c_ld_version_scripts="no"
14191 rm -f conftest.err conftest.$ac_objext \
14192 conftest$ac_exeext conftest.$ac_ext
14193 CFLAGS=$ac_wine_try_cflags_saved
14194 rm -f conftest.map
14196 echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
14197 echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6
14198 if test "$ac_cv_c_ld_version_scripts" = "yes"
14199 then
14200 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
14203 echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
14204 echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6
14205 if test "${ac_cv_c_export_dynamic+set}" = set; then
14206 echo $ECHO_N "(cached) $ECHO_C" >&6
14207 else
14208 ac_wine_try_cflags_saved=$CFLAGS
14209 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
14210 cat >conftest.$ac_ext <<_ACEOF
14211 /* confdefs.h. */
14212 _ACEOF
14213 cat confdefs.h >>conftest.$ac_ext
14214 cat >>conftest.$ac_ext <<_ACEOF
14215 /* end confdefs.h. */
14218 main ()
14222 return 0;
14224 _ACEOF
14225 rm -f conftest.$ac_objext conftest$ac_exeext
14226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14227 (eval $ac_link) 2>conftest.er1
14228 ac_status=$?
14229 grep -v '^ *+' conftest.er1 >conftest.err
14230 rm -f conftest.er1
14231 cat conftest.err >&5
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); } &&
14234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236 (eval $ac_try) 2>&5
14237 ac_status=$?
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; } &&
14240 { ac_try='test -s conftest$ac_exeext'
14241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14242 (eval $ac_try) 2>&5
14243 ac_status=$?
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); }; }; then
14246 ac_cv_c_export_dynamic="yes"
14247 else
14248 echo "$as_me: failed program was:" >&5
14249 sed 's/^/| /' conftest.$ac_ext >&5
14251 ac_cv_c_export_dynamic="no"
14253 rm -f conftest.err conftest.$ac_objext \
14254 conftest$ac_exeext conftest.$ac_ext
14255 CFLAGS=$ac_wine_try_cflags_saved
14257 echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
14258 echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6
14259 if test "$ac_cv_c_export_dynamic" = "yes"
14260 then
14261 LDEXECFLAGS="-Wl,--export-dynamic"
14265 case $host_cpu in
14266 *i[3456789]86*)
14267 echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x00110000" >&5
14268 echo $ECHO_N "checking whether we can relocate the executable to 0x00110000... $ECHO_C" >&6
14269 if test "${ac_cv_ld_reloc_exec+set}" = set; then
14270 echo $ECHO_N "(cached) $ECHO_C" >&6
14271 else
14272 saved_CFLAGS="$CFLAGS"
14273 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x00110400"
14274 if test "$cross_compiling" = yes; then
14275 ac_cv_ld_reloc_exec="no"
14276 else
14277 cat >conftest.$ac_ext <<_ACEOF
14278 /* confdefs.h. */
14279 _ACEOF
14280 cat confdefs.h >>conftest.$ac_ext
14281 cat >>conftest.$ac_ext <<_ACEOF
14282 /* end confdefs.h. */
14283 #include <unistd.h>
14284 int main() { return (sbrk(32*1024*1024) == (void *)-1); }
14285 _ACEOF
14286 rm -f conftest$ac_exeext
14287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14288 (eval $ac_link) 2>&5
14289 ac_status=$?
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14293 (eval $ac_try) 2>&5
14294 ac_status=$?
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); }; }; then
14297 ac_cv_ld_reloc_exec="yes"
14298 else
14299 echo "$as_me: program exited with status $ac_status" >&5
14300 echo "$as_me: failed program was:" >&5
14301 sed 's/^/| /' conftest.$ac_ext >&5
14303 ( exit $ac_status )
14304 ac_cv_ld_reloc_exec="no"
14306 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14308 CFLAGS="$saved_CFLAGS"
14310 echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
14311 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
14312 if test "$ac_cv_ld_reloc_exec" = "yes"
14313 then
14314 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x00110400"
14317 esac
14319 else
14320 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
14321 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
14322 if test "${ac_cv_c_dll_unixware+set}" = set; then
14323 echo $ECHO_N "(cached) $ECHO_C" >&6
14324 else
14325 ac_wine_try_cflags_saved=$CFLAGS
14326 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
14327 cat >conftest.$ac_ext <<_ACEOF
14328 /* confdefs.h. */
14329 _ACEOF
14330 cat confdefs.h >>conftest.$ac_ext
14331 cat >>conftest.$ac_ext <<_ACEOF
14332 /* end confdefs.h. */
14335 main ()
14339 return 0;
14341 _ACEOF
14342 rm -f conftest.$ac_objext conftest$ac_exeext
14343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14344 (eval $ac_link) 2>conftest.er1
14345 ac_status=$?
14346 grep -v '^ *+' conftest.er1 >conftest.err
14347 rm -f conftest.er1
14348 cat conftest.err >&5
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); } &&
14351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14357 { ac_try='test -s conftest$ac_exeext'
14358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14359 (eval $ac_try) 2>&5
14360 ac_status=$?
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); }; }; then
14363 ac_cv_c_dll_unixware="yes"
14364 else
14365 echo "$as_me: failed program was:" >&5
14366 sed 's/^/| /' conftest.$ac_ext >&5
14368 ac_cv_c_dll_unixware="no"
14370 rm -f conftest.err conftest.$ac_objext \
14371 conftest$ac_exeext conftest.$ac_ext
14372 CFLAGS=$ac_wine_try_cflags_saved
14374 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
14375 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
14376 if test "$ac_cv_c_dll_unixware" = "yes"
14377 then
14378 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
14379 LDDLLFLAGS="-Wl,-G,-B,symbolic"
14381 else
14382 echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
14383 echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6
14384 if test "${ac_cv_c_dll_macho+set}" = set; then
14385 echo $ECHO_N "(cached) $ECHO_C" >&6
14386 else
14387 ac_wine_try_cflags_saved=$CFLAGS
14388 CFLAGS="$CFLAGS -bundle"
14389 cat >conftest.$ac_ext <<_ACEOF
14390 /* confdefs.h. */
14391 _ACEOF
14392 cat confdefs.h >>conftest.$ac_ext
14393 cat >>conftest.$ac_ext <<_ACEOF
14394 /* end confdefs.h. */
14397 main ()
14401 return 0;
14403 _ACEOF
14404 rm -f conftest.$ac_objext conftest$ac_exeext
14405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14406 (eval $ac_link) 2>conftest.er1
14407 ac_status=$?
14408 grep -v '^ *+' conftest.er1 >conftest.err
14409 rm -f conftest.er1
14410 cat conftest.err >&5
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); } &&
14413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14419 { ac_try='test -s conftest$ac_exeext'
14420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421 (eval $ac_try) 2>&5
14422 ac_status=$?
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); }; }; then
14425 ac_cv_c_dll_macho="yes"
14426 else
14427 echo "$as_me: failed program was:" >&5
14428 sed 's/^/| /' conftest.$ac_ext >&5
14430 ac_cv_c_dll_macho="no"
14432 rm -f conftest.err conftest.$ac_objext \
14433 conftest$ac_exeext conftest.$ac_ext
14434 CFLAGS=$ac_wine_try_cflags_saved
14436 echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
14437 echo "${ECHO_T}$ac_cv_c_dll_macho" >&6
14438 if test "$ac_cv_c_dll_macho" = "yes"
14439 then
14440 LIBEXT="dylib"
14441 LDDLLFLAGS="-bundle -flat_namespace -undefined suppress"
14442 LDSHARED="\$(CC) -dynamiclib"
14443 CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp"
14449 CROSSTEST=""
14451 if test "$cross_compiling" = "no"
14452 then
14453 for ac_prog in i586-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
14455 # Extract the first word of "$ac_prog", so it can be a program name with args.
14456 set dummy $ac_prog; ac_word=$2
14457 echo "$as_me:$LINENO: checking for $ac_word" >&5
14458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14459 if test "${ac_cv_prog_CROSSCC+set}" = set; then
14460 echo $ECHO_N "(cached) $ECHO_C" >&6
14461 else
14462 if test -n "$CROSSCC"; then
14463 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
14464 else
14465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14466 for as_dir in $PATH
14468 IFS=$as_save_IFS
14469 test -z "$as_dir" && as_dir=.
14470 for ac_exec_ext in '' $ac_executable_extensions; do
14471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14472 ac_cv_prog_CROSSCC="$ac_prog"
14473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14474 break 2
14476 done
14477 done
14481 CROSSCC=$ac_cv_prog_CROSSCC
14482 if test -n "$CROSSCC"; then
14483 echo "$as_me:$LINENO: result: $CROSSCC" >&5
14484 echo "${ECHO_T}$CROSSCC" >&6
14485 else
14486 echo "$as_me:$LINENO: result: no" >&5
14487 echo "${ECHO_T}no" >&6
14490 test -n "$CROSSCC" && break
14491 done
14492 test -n "$CROSSCC" || CROSSCC="false"
14494 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
14496 # Extract the first word of "$ac_prog", so it can be a program name with args.
14497 set dummy $ac_prog; ac_word=$2
14498 echo "$as_me:$LINENO: checking for $ac_word" >&5
14499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14500 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14501 echo $ECHO_N "(cached) $ECHO_C" >&6
14502 else
14503 if test -n "$DLLTOOL"; then
14504 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14505 else
14506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14507 for as_dir in $PATH
14509 IFS=$as_save_IFS
14510 test -z "$as_dir" && as_dir=.
14511 for ac_exec_ext in '' $ac_executable_extensions; do
14512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14513 ac_cv_prog_DLLTOOL="$ac_prog"
14514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14515 break 2
14517 done
14518 done
14522 DLLTOOL=$ac_cv_prog_DLLTOOL
14523 if test -n "$DLLTOOL"; then
14524 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14525 echo "${ECHO_T}$DLLTOOL" >&6
14526 else
14527 echo "$as_me:$LINENO: result: no" >&5
14528 echo "${ECHO_T}no" >&6
14531 test -n "$DLLTOOL" && break
14532 done
14533 test -n "$DLLTOOL" || DLLTOOL="false"
14535 for ac_prog in i586-mingw32msvc-windres i386-mingw32-windres mingw-windres
14537 # Extract the first word of "$ac_prog", so it can be a program name with args.
14538 set dummy $ac_prog; ac_word=$2
14539 echo "$as_me:$LINENO: checking for $ac_word" >&5
14540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14541 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
14542 echo $ECHO_N "(cached) $ECHO_C" >&6
14543 else
14544 if test -n "$CROSSWINDRES"; then
14545 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
14546 else
14547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14548 for as_dir in $PATH
14550 IFS=$as_save_IFS
14551 test -z "$as_dir" && as_dir=.
14552 for ac_exec_ext in '' $ac_executable_extensions; do
14553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14554 ac_cv_prog_CROSSWINDRES="$ac_prog"
14555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14556 break 2
14558 done
14559 done
14563 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
14564 if test -n "$CROSSWINDRES"; then
14565 echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
14566 echo "${ECHO_T}$CROSSWINDRES" >&6
14567 else
14568 echo "$as_me:$LINENO: result: no" >&5
14569 echo "${ECHO_T}no" >&6
14572 test -n "$CROSSWINDRES" && break
14573 done
14574 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
14576 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
14579 esac
14581 if test "$LIBEXT" = "a"; then
14582 { { echo "$as_me:$LINENO: 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 " >&5
14587 echo "$as_me: error: could not find a way to build shared libraries.
14588 It is currently not possible to build Wine without shared library
14589 (.so) support to allow transparent switch between .so and .dll files.
14590 If you are using Linux, you will need a newer binutils.
14591 " >&2;}
14592 { (exit 1); exit 1; }; }
14595 case $build_os in
14596 cygwin*|mingw32*)
14597 LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
14599 darwin*|macosx*)
14600 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\""
14603 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
14605 esac
14607 case $host_os in
14608 mingw32*)
14609 CRTLIBS="-lmsvcrt"
14611 esac
14613 case $host_os in
14614 linux*)
14615 WINE_BINARIES="wine-glibc wine-kthread wine-pthread"
14617 MAIN_BINARY="wine-glibc"
14621 WINE_BINARIES="wine-kthread"
14623 MAIN_BINARY="wine-kthread"
14626 esac
14629 if test "$LIBEXT" = "so"
14630 then
14631 # Extract the first word of "ldd", so it can be a program name with args.
14632 set dummy ldd; ac_word=$2
14633 echo "$as_me:$LINENO: checking for $ac_word" >&5
14634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14635 if test "${ac_cv_path_LDD+set}" = set; then
14636 echo $ECHO_N "(cached) $ECHO_C" >&6
14637 else
14638 case $LDD in
14639 [\\/]* | ?:[\\/]*)
14640 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
14643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14644 as_dummy="/sbin:/usr/sbin:$PATH"
14645 for as_dir in $as_dummy
14647 IFS=$as_save_IFS
14648 test -z "$as_dir" && as_dir=.
14649 for ac_exec_ext in '' $ac_executable_extensions; do
14650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14651 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
14652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14653 break 2
14655 done
14656 done
14658 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
14660 esac
14662 LDD=$ac_cv_path_LDD
14664 if test -n "$LDD"; then
14665 echo "$as_me:$LINENO: result: $LDD" >&5
14666 echo "${ECHO_T}$LDD" >&6
14667 else
14668 echo "$as_me:$LINENO: result: no" >&5
14669 echo "${ECHO_T}no" >&6
14673 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
14674 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
14675 if test "${ac_cv_lib_soname_X11+set}" = set; then
14676 echo $ECHO_N "(cached) $ECHO_C" >&6
14677 else
14678 ac_get_soname_save_LIBS=$LIBS
14679 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
14680 cat >conftest.$ac_ext <<_ACEOF
14681 /* confdefs.h. */
14682 _ACEOF
14683 cat confdefs.h >>conftest.$ac_ext
14684 cat >>conftest.$ac_ext <<_ACEOF
14685 /* end confdefs.h. */
14687 /* Override any gcc2 internal prototype to avoid an error. */
14688 #ifdef __cplusplus
14689 extern "C"
14690 #endif
14691 /* We use char because int might match the return type of a gcc2
14692 builtin and then its argument prototype would still apply. */
14693 char XCreateWindow ();
14695 main ()
14697 XCreateWindow ();
14699 return 0;
14701 _ACEOF
14702 rm -f conftest.$ac_objext conftest$ac_exeext
14703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14704 (eval $ac_link) 2>conftest.er1
14705 ac_status=$?
14706 grep -v '^ *+' conftest.er1 >conftest.err
14707 rm -f conftest.er1
14708 cat conftest.err >&5
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); } &&
14711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14713 (eval $ac_try) 2>&5
14714 ac_status=$?
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); }; } &&
14717 { ac_try='test -s conftest$ac_exeext'
14718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14719 (eval $ac_try) 2>&5
14720 ac_status=$?
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); }; }; then
14723 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^.*\(libX11\.so[^ ]*\).*$/\1/'`
14724 if test "x$ac_cv_lib_soname_X11" = "x"
14725 then
14726 ac_cv_lib_soname_X11="libX11.so"
14728 else
14729 echo "$as_me: failed program was:" >&5
14730 sed 's/^/| /' conftest.$ac_ext >&5
14732 ac_cv_lib_soname_X11="libX11.so"
14734 rm -f conftest.err conftest.$ac_objext \
14735 conftest$ac_exeext conftest.$ac_ext
14736 LIBS=$ac_get_soname_save_LIBS
14738 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
14739 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
14740 if test "x$ac_cv_lib_soname_X11" != xNONE
14741 then
14742 cat >>confdefs.h <<_ACEOF
14743 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
14744 _ACEOF
14747 echo "$as_me:$LINENO: checking for -lXext soname" >&5
14748 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
14749 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14750 echo $ECHO_N "(cached) $ECHO_C" >&6
14751 else
14752 ac_get_soname_save_LIBS=$LIBS
14753 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14754 cat >conftest.$ac_ext <<_ACEOF
14755 /* confdefs.h. */
14756 _ACEOF
14757 cat confdefs.h >>conftest.$ac_ext
14758 cat >>conftest.$ac_ext <<_ACEOF
14759 /* end confdefs.h. */
14761 /* Override any gcc2 internal prototype to avoid an error. */
14762 #ifdef __cplusplus
14763 extern "C"
14764 #endif
14765 /* We use char because int might match the return type of a gcc2
14766 builtin and then its argument prototype would still apply. */
14767 char XextCreateExtension ();
14769 main ()
14771 XextCreateExtension ();
14773 return 0;
14775 _ACEOF
14776 rm -f conftest.$ac_objext conftest$ac_exeext
14777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14778 (eval $ac_link) 2>conftest.er1
14779 ac_status=$?
14780 grep -v '^ *+' conftest.er1 >conftest.err
14781 rm -f conftest.er1
14782 cat conftest.err >&5
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); } &&
14785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787 (eval $ac_try) 2>&5
14788 ac_status=$?
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); }; } &&
14791 { ac_try='test -s conftest$ac_exeext'
14792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14793 (eval $ac_try) 2>&5
14794 ac_status=$?
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); }; }; then
14797 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^.*\(libXext\.so[^ ]*\).*$/\1/'`
14798 if test "x$ac_cv_lib_soname_Xext" = "x"
14799 then
14800 ac_cv_lib_soname_Xext="libXext.so"
14802 else
14803 echo "$as_me: failed program was:" >&5
14804 sed 's/^/| /' conftest.$ac_ext >&5
14806 ac_cv_lib_soname_Xext="libXext.so"
14808 rm -f conftest.err conftest.$ac_objext \
14809 conftest$ac_exeext conftest.$ac_ext
14810 LIBS=$ac_get_soname_save_LIBS
14812 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14813 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
14814 if test "x$ac_cv_lib_soname_Xext" != xNONE
14815 then
14816 cat >>confdefs.h <<_ACEOF
14817 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14818 _ACEOF
14821 echo "$as_me:$LINENO: checking for -lXi soname" >&5
14822 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6
14823 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14824 echo $ECHO_N "(cached) $ECHO_C" >&6
14825 else
14826 ac_get_soname_save_LIBS=$LIBS
14827 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14828 cat >conftest.$ac_ext <<_ACEOF
14829 /* confdefs.h. */
14830 _ACEOF
14831 cat confdefs.h >>conftest.$ac_ext
14832 cat >>conftest.$ac_ext <<_ACEOF
14833 /* end confdefs.h. */
14835 /* Override any gcc2 internal prototype to avoid an error. */
14836 #ifdef __cplusplus
14837 extern "C"
14838 #endif
14839 /* We use char because int might match the return type of a gcc2
14840 builtin and then its argument prototype would still apply. */
14841 char XOpenDevice ();
14843 main ()
14845 XOpenDevice ();
14847 return 0;
14849 _ACEOF
14850 rm -f conftest.$ac_objext conftest$ac_exeext
14851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14852 (eval $ac_link) 2>conftest.er1
14853 ac_status=$?
14854 grep -v '^ *+' conftest.er1 >conftest.err
14855 rm -f conftest.er1
14856 cat conftest.err >&5
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); } &&
14859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14861 (eval $ac_try) 2>&5
14862 ac_status=$?
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); }; } &&
14865 { ac_try='test -s conftest$ac_exeext'
14866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14867 (eval $ac_try) 2>&5
14868 ac_status=$?
14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870 (exit $ac_status); }; }; then
14871 ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.so | sed 's/^.*\(libXi\.so[^ ]*\).*$/\1/'`
14872 if test "x$ac_cv_lib_soname_Xi" = "x"
14873 then
14874 ac_cv_lib_soname_Xi="libXi.so"
14876 else
14877 echo "$as_me: failed program was:" >&5
14878 sed 's/^/| /' conftest.$ac_ext >&5
14880 ac_cv_lib_soname_Xi="libXi.so"
14882 rm -f conftest.err conftest.$ac_objext \
14883 conftest$ac_exeext conftest.$ac_ext
14884 LIBS=$ac_get_soname_save_LIBS
14886 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
14887 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6
14888 if test "x$ac_cv_lib_soname_Xi" != xNONE
14889 then
14890 cat >>confdefs.h <<_ACEOF
14891 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
14892 _ACEOF
14895 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
14896 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
14897 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14898 echo $ECHO_N "(cached) $ECHO_C" >&6
14899 else
14900 ac_get_soname_save_LIBS=$LIBS
14901 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14902 cat >conftest.$ac_ext <<_ACEOF
14903 /* confdefs.h. */
14904 _ACEOF
14905 cat confdefs.h >>conftest.$ac_ext
14906 cat >>conftest.$ac_ext <<_ACEOF
14907 /* end confdefs.h. */
14909 /* Override any gcc2 internal prototype to avoid an error. */
14910 #ifdef __cplusplus
14911 extern "C"
14912 #endif
14913 /* We use char because int might match the return type of a gcc2
14914 builtin and then its argument prototype would still apply. */
14915 char XRenderQueryExtension ();
14917 main ()
14919 XRenderQueryExtension ();
14921 return 0;
14923 _ACEOF
14924 rm -f conftest.$ac_objext conftest$ac_exeext
14925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14926 (eval $ac_link) 2>conftest.er1
14927 ac_status=$?
14928 grep -v '^ *+' conftest.er1 >conftest.err
14929 rm -f conftest.er1
14930 cat conftest.err >&5
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); } &&
14933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14935 (eval $ac_try) 2>&5
14936 ac_status=$?
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); }; } &&
14939 { ac_try='test -s conftest$ac_exeext'
14940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14941 (eval $ac_try) 2>&5
14942 ac_status=$?
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); }; }; then
14945 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^.*\(libXrender\.so[^ ]*\).*$/\1/'`
14946 if test "x$ac_cv_lib_soname_Xrender" = "x"
14947 then
14948 ac_cv_lib_soname_Xrender="libXrender.so"
14950 else
14951 echo "$as_me: failed program was:" >&5
14952 sed 's/^/| /' conftest.$ac_ext >&5
14954 ac_cv_lib_soname_Xrender="libXrender.so"
14956 rm -f conftest.err conftest.$ac_objext \
14957 conftest$ac_exeext conftest.$ac_ext
14958 LIBS=$ac_get_soname_save_LIBS
14960 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
14961 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
14962 if test "x$ac_cv_lib_soname_Xrender" != xNONE
14963 then
14964 cat >>confdefs.h <<_ACEOF
14965 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
14966 _ACEOF
14969 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
14970 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
14971 if test "${ac_cv_lib_soname_freetype+set}" = set; then
14972 echo $ECHO_N "(cached) $ECHO_C" >&6
14973 else
14974 ac_get_soname_save_LIBS=$LIBS
14975 LIBS="-lfreetype $X_LIBS $LIBS"
14976 cat >conftest.$ac_ext <<_ACEOF
14977 /* confdefs.h. */
14978 _ACEOF
14979 cat confdefs.h >>conftest.$ac_ext
14980 cat >>conftest.$ac_ext <<_ACEOF
14981 /* end confdefs.h. */
14983 /* Override any gcc2 internal prototype to avoid an error. */
14984 #ifdef __cplusplus
14985 extern "C"
14986 #endif
14987 /* We use char because int might match the return type of a gcc2
14988 builtin and then its argument prototype would still apply. */
14989 char FT_Init_FreeType ();
14991 main ()
14993 FT_Init_FreeType ();
14995 return 0;
14997 _ACEOF
14998 rm -f conftest.$ac_objext conftest$ac_exeext
14999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15000 (eval $ac_link) 2>conftest.er1
15001 ac_status=$?
15002 grep -v '^ *+' conftest.er1 >conftest.err
15003 rm -f conftest.er1
15004 cat conftest.err >&5
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); } &&
15007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15009 (eval $ac_try) 2>&5
15010 ac_status=$?
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); }; } &&
15013 { ac_try='test -s conftest$ac_exeext'
15014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15015 (eval $ac_try) 2>&5
15016 ac_status=$?
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); }; }; then
15019 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^.*\(libfreetype\.so[^ ]*\).*$/\1/'`
15020 if test "x$ac_cv_lib_soname_freetype" = "x"
15021 then
15022 ac_cv_lib_soname_freetype="libfreetype.so"
15024 else
15025 echo "$as_me: failed program was:" >&5
15026 sed 's/^/| /' conftest.$ac_ext >&5
15028 ac_cv_lib_soname_freetype="libfreetype.so"
15030 rm -f conftest.err conftest.$ac_objext \
15031 conftest$ac_exeext conftest.$ac_ext
15032 LIBS=$ac_get_soname_save_LIBS
15034 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
15035 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
15036 if test "x$ac_cv_lib_soname_freetype" != xNONE
15037 then
15038 cat >>confdefs.h <<_ACEOF
15039 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
15040 _ACEOF
15043 echo "$as_me:$LINENO: checking for -lGL soname" >&5
15044 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
15045 if test "${ac_cv_lib_soname_GL+set}" = set; then
15046 echo $ECHO_N "(cached) $ECHO_C" >&6
15047 else
15048 ac_get_soname_save_LIBS=$LIBS
15049 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
15050 cat >conftest.$ac_ext <<_ACEOF
15051 /* confdefs.h. */
15052 _ACEOF
15053 cat confdefs.h >>conftest.$ac_ext
15054 cat >>conftest.$ac_ext <<_ACEOF
15055 /* end confdefs.h. */
15057 /* Override any gcc2 internal prototype to avoid an error. */
15058 #ifdef __cplusplus
15059 extern "C"
15060 #endif
15061 /* We use char because int might match the return type of a gcc2
15062 builtin and then its argument prototype would still apply. */
15063 char glXQueryExtension ();
15065 main ()
15067 glXQueryExtension ();
15069 return 0;
15071 _ACEOF
15072 rm -f conftest.$ac_objext conftest$ac_exeext
15073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15074 (eval $ac_link) 2>conftest.er1
15075 ac_status=$?
15076 grep -v '^ *+' conftest.er1 >conftest.err
15077 rm -f conftest.er1
15078 cat conftest.err >&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); } &&
15081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15083 (eval $ac_try) 2>&5
15084 ac_status=$?
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); }; } &&
15087 { ac_try='test -s conftest$ac_exeext'
15088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15089 (eval $ac_try) 2>&5
15090 ac_status=$?
15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); }; }; then
15093 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^.*\(libGL\.so[^ ]*\).*$/\1/'`
15094 if test "x$ac_cv_lib_soname_GL" = "x"
15095 then
15096 ac_cv_lib_soname_GL="libGL.so"
15098 else
15099 echo "$as_me: failed program was:" >&5
15100 sed 's/^/| /' conftest.$ac_ext >&5
15102 ac_cv_lib_soname_GL="libGL.so"
15104 rm -f conftest.err conftest.$ac_objext \
15105 conftest$ac_exeext conftest.$ac_ext
15106 LIBS=$ac_get_soname_save_LIBS
15108 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
15109 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
15110 if test "x$ac_cv_lib_soname_GL" != xNONE
15111 then
15112 cat >>confdefs.h <<_ACEOF
15113 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
15114 _ACEOF
15117 echo "$as_me:$LINENO: checking for -lcups soname" >&5
15118 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
15119 if test "${ac_cv_lib_soname_cups+set}" = set; then
15120 echo $ECHO_N "(cached) $ECHO_C" >&6
15121 else
15122 ac_get_soname_save_LIBS=$LIBS
15123 LIBS="-lcups $LIBS"
15124 cat >conftest.$ac_ext <<_ACEOF
15125 /* confdefs.h. */
15126 _ACEOF
15127 cat confdefs.h >>conftest.$ac_ext
15128 cat >>conftest.$ac_ext <<_ACEOF
15129 /* end confdefs.h. */
15131 /* Override any gcc2 internal prototype to avoid an error. */
15132 #ifdef __cplusplus
15133 extern "C"
15134 #endif
15135 /* We use char because int might match the return type of a gcc2
15136 builtin and then its argument prototype would still apply. */
15137 char cupsGetDefault ();
15139 main ()
15141 cupsGetDefault ();
15143 return 0;
15145 _ACEOF
15146 rm -f conftest.$ac_objext conftest$ac_exeext
15147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15148 (eval $ac_link) 2>conftest.er1
15149 ac_status=$?
15150 grep -v '^ *+' conftest.er1 >conftest.err
15151 rm -f conftest.er1
15152 cat conftest.err >&5
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); } &&
15155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15157 (eval $ac_try) 2>&5
15158 ac_status=$?
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); }; } &&
15161 { ac_try='test -s conftest$ac_exeext'
15162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15163 (eval $ac_try) 2>&5
15164 ac_status=$?
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); }; }; then
15167 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^.*\(libcups\.so[^ ]*\).*$/\1/'`
15168 if test "x$ac_cv_lib_soname_cups" = "x"
15169 then
15170 ac_cv_lib_soname_cups="libcups.so"
15172 else
15173 echo "$as_me: failed program was:" >&5
15174 sed 's/^/| /' conftest.$ac_ext >&5
15176 ac_cv_lib_soname_cups="libcups.so"
15178 rm -f conftest.err conftest.$ac_objext \
15179 conftest$ac_exeext conftest.$ac_ext
15180 LIBS=$ac_get_soname_save_LIBS
15182 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
15183 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
15184 if test "x$ac_cv_lib_soname_cups" != xNONE
15185 then
15186 cat >>confdefs.h <<_ACEOF
15187 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
15188 _ACEOF
15191 echo "$as_me:$LINENO: checking for -ljack soname" >&5
15192 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
15193 if test "${ac_cv_lib_soname_jack+set}" = set; then
15194 echo $ECHO_N "(cached) $ECHO_C" >&6
15195 else
15196 ac_get_soname_save_LIBS=$LIBS
15197 LIBS="-ljack $LIBS"
15198 cat >conftest.$ac_ext <<_ACEOF
15199 /* confdefs.h. */
15200 _ACEOF
15201 cat confdefs.h >>conftest.$ac_ext
15202 cat >>conftest.$ac_ext <<_ACEOF
15203 /* end confdefs.h. */
15205 /* Override any gcc2 internal prototype to avoid an error. */
15206 #ifdef __cplusplus
15207 extern "C"
15208 #endif
15209 /* We use char because int might match the return type of a gcc2
15210 builtin and then its argument prototype would still apply. */
15211 char jack_client_new ();
15213 main ()
15215 jack_client_new ();
15217 return 0;
15219 _ACEOF
15220 rm -f conftest.$ac_objext conftest$ac_exeext
15221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15222 (eval $ac_link) 2>conftest.er1
15223 ac_status=$?
15224 grep -v '^ *+' conftest.er1 >conftest.err
15225 rm -f conftest.er1
15226 cat conftest.err >&5
15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); } &&
15229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15231 (eval $ac_try) 2>&5
15232 ac_status=$?
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); }; } &&
15235 { ac_try='test -s conftest$ac_exeext'
15236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15237 (eval $ac_try) 2>&5
15238 ac_status=$?
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); }; }; then
15241 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed 's/^.*\(libjack\.so[^ ]*\).*$/\1/'`
15242 if test "x$ac_cv_lib_soname_jack" = "x"
15243 then
15244 ac_cv_lib_soname_jack="libjack.so"
15246 else
15247 echo "$as_me: failed program was:" >&5
15248 sed 's/^/| /' conftest.$ac_ext >&5
15250 ac_cv_lib_soname_jack="libjack.so"
15252 rm -f conftest.err conftest.$ac_objext \
15253 conftest$ac_exeext conftest.$ac_ext
15254 LIBS=$ac_get_soname_save_LIBS
15256 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
15257 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
15258 if test "x$ac_cv_lib_soname_jack" != xNONE
15259 then
15260 cat >>confdefs.h <<_ACEOF
15261 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
15262 _ACEOF
15265 echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
15266 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6
15267 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15268 echo $ECHO_N "(cached) $ECHO_C" >&6
15269 else
15270 ac_get_soname_save_LIBS=$LIBS
15271 LIBS="-lfontconfig $LIBS"
15272 cat >conftest.$ac_ext <<_ACEOF
15273 /* confdefs.h. */
15274 _ACEOF
15275 cat confdefs.h >>conftest.$ac_ext
15276 cat >>conftest.$ac_ext <<_ACEOF
15277 /* end confdefs.h. */
15279 /* Override any gcc2 internal prototype to avoid an error. */
15280 #ifdef __cplusplus
15281 extern "C"
15282 #endif
15283 /* We use char because int might match the return type of a gcc2
15284 builtin and then its argument prototype would still apply. */
15285 char FcInit ();
15287 main ()
15289 FcInit ();
15291 return 0;
15293 _ACEOF
15294 rm -f conftest.$ac_objext conftest$ac_exeext
15295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15296 (eval $ac_link) 2>conftest.er1
15297 ac_status=$?
15298 grep -v '^ *+' conftest.er1 >conftest.err
15299 rm -f conftest.er1
15300 cat conftest.err >&5
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); } &&
15303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15305 (eval $ac_try) 2>&5
15306 ac_status=$?
15307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 (exit $ac_status); }; } &&
15309 { ac_try='test -s conftest$ac_exeext'
15310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15311 (eval $ac_try) 2>&5
15312 ac_status=$?
15313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 (exit $ac_status); }; }; then
15315 ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.so | sed 's/^.*\(libfontconfig\.so[^ ]*\).*$/\1/'`
15316 if test "x$ac_cv_lib_soname_fontconfig" = "x"
15317 then
15318 ac_cv_lib_soname_fontconfig="libfontconfig.so"
15320 else
15321 echo "$as_me: failed program was:" >&5
15322 sed 's/^/| /' conftest.$ac_ext >&5
15324 ac_cv_lib_soname_fontconfig="libfontconfig.so"
15326 rm -f conftest.err conftest.$ac_objext \
15327 conftest$ac_exeext conftest.$ac_ext
15328 LIBS=$ac_get_soname_save_LIBS
15330 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
15331 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6
15332 if test "x$ac_cv_lib_soname_fontconfig" != xNONE
15333 then
15334 cat >>confdefs.h <<_ACEOF
15335 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
15336 _ACEOF
15339 echo "$as_me:$LINENO: checking for -lssl soname" >&5
15340 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
15341 if test "${ac_cv_lib_soname_ssl+set}" = set; then
15342 echo $ECHO_N "(cached) $ECHO_C" >&6
15343 else
15344 ac_get_soname_save_LIBS=$LIBS
15345 LIBS="-lssl $LIBS"
15346 cat >conftest.$ac_ext <<_ACEOF
15347 /* confdefs.h. */
15348 _ACEOF
15349 cat confdefs.h >>conftest.$ac_ext
15350 cat >>conftest.$ac_ext <<_ACEOF
15351 /* end confdefs.h. */
15353 /* Override any gcc2 internal prototype to avoid an error. */
15354 #ifdef __cplusplus
15355 extern "C"
15356 #endif
15357 /* We use char because int might match the return type of a gcc2
15358 builtin and then its argument prototype would still apply. */
15359 char SSL_library_init ();
15361 main ()
15363 SSL_library_init ();
15365 return 0;
15367 _ACEOF
15368 rm -f conftest.$ac_objext conftest$ac_exeext
15369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15370 (eval $ac_link) 2>conftest.er1
15371 ac_status=$?
15372 grep -v '^ *+' conftest.er1 >conftest.err
15373 rm -f conftest.er1
15374 cat conftest.err >&5
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); } &&
15377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15379 (eval $ac_try) 2>&5
15380 ac_status=$?
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); }; } &&
15383 { ac_try='test -s conftest$ac_exeext'
15384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15385 (eval $ac_try) 2>&5
15386 ac_status=$?
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); }; }; then
15389 ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.so | sed 's/^.*\(libssl\.so[^ ]*\).*$/\1/'`
15390 if test "x$ac_cv_lib_soname_ssl" = "x"
15391 then
15392 ac_cv_lib_soname_ssl="libssl.so"
15394 else
15395 echo "$as_me: failed program was:" >&5
15396 sed 's/^/| /' conftest.$ac_ext >&5
15398 ac_cv_lib_soname_ssl="libssl.so"
15400 rm -f conftest.err conftest.$ac_objext \
15401 conftest$ac_exeext conftest.$ac_ext
15402 LIBS=$ac_get_soname_save_LIBS
15404 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
15405 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
15406 if test "x$ac_cv_lib_soname_ssl" != xNONE
15407 then
15408 cat >>confdefs.h <<_ACEOF
15409 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
15410 _ACEOF
15413 echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
15414 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
15415 if test "${ac_cv_lib_soname_crypto+set}" = set; then
15416 echo $ECHO_N "(cached) $ECHO_C" >&6
15417 else
15418 ac_get_soname_save_LIBS=$LIBS
15419 LIBS="-lcrypto $LIBS"
15420 cat >conftest.$ac_ext <<_ACEOF
15421 /* confdefs.h. */
15422 _ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h. */
15427 /* Override any gcc2 internal prototype to avoid an error. */
15428 #ifdef __cplusplus
15429 extern "C"
15430 #endif
15431 /* We use char because int might match the return type of a gcc2
15432 builtin and then its argument prototype would still apply. */
15433 char BIO_new_socket ();
15435 main ()
15437 BIO_new_socket ();
15439 return 0;
15441 _ACEOF
15442 rm -f conftest.$ac_objext conftest$ac_exeext
15443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15444 (eval $ac_link) 2>conftest.er1
15445 ac_status=$?
15446 grep -v '^ *+' conftest.er1 >conftest.err
15447 rm -f conftest.er1
15448 cat conftest.err >&5
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); } &&
15451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15453 (eval $ac_try) 2>&5
15454 ac_status=$?
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); }; } &&
15457 { ac_try='test -s conftest$ac_exeext'
15458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459 (eval $ac_try) 2>&5
15460 ac_status=$?
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); }; }; then
15463 ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.so | sed 's/^.*\(libcrypto\.so[^ ]*\).*$/\1/'`
15464 if test "x$ac_cv_lib_soname_crypto" = "x"
15465 then
15466 ac_cv_lib_soname_crypto="libcrypto.so"
15468 else
15469 echo "$as_me: failed program was:" >&5
15470 sed 's/^/| /' conftest.$ac_ext >&5
15472 ac_cv_lib_soname_crypto="libcrypto.so"
15474 rm -f conftest.err conftest.$ac_objext \
15475 conftest$ac_exeext conftest.$ac_ext
15476 LIBS=$ac_get_soname_save_LIBS
15478 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
15479 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
15480 if test "x$ac_cv_lib_soname_crypto" != xNONE
15481 then
15482 cat >>confdefs.h <<_ACEOF
15483 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
15484 _ACEOF
15487 echo "$as_me:$LINENO: checking for -lncurses soname" >&5
15488 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
15489 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15490 echo $ECHO_N "(cached) $ECHO_C" >&6
15491 else
15492 ac_get_soname_save_LIBS=$LIBS
15493 LIBS="-lncurses $LIBS"
15494 cat >conftest.$ac_ext <<_ACEOF
15495 /* confdefs.h. */
15496 _ACEOF
15497 cat confdefs.h >>conftest.$ac_ext
15498 cat >>conftest.$ac_ext <<_ACEOF
15499 /* end confdefs.h. */
15501 /* Override any gcc2 internal prototype to avoid an error. */
15502 #ifdef __cplusplus
15503 extern "C"
15504 #endif
15505 /* We use char because int might match the return type of a gcc2
15506 builtin and then its argument prototype would still apply. */
15507 char waddch ();
15509 main ()
15511 waddch ();
15513 return 0;
15515 _ACEOF
15516 rm -f conftest.$ac_objext conftest$ac_exeext
15517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15518 (eval $ac_link) 2>conftest.er1
15519 ac_status=$?
15520 grep -v '^ *+' conftest.er1 >conftest.err
15521 rm -f conftest.er1
15522 cat conftest.err >&5
15523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524 (exit $ac_status); } &&
15525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15527 (eval $ac_try) 2>&5
15528 ac_status=$?
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); }; } &&
15531 { ac_try='test -s conftest$ac_exeext'
15532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15533 (eval $ac_try) 2>&5
15534 ac_status=$?
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); }; }; then
15537 ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.so | sed 's/^.*\(libncurses\.so[^ ]*\).*$/\1/'`
15538 if test "x$ac_cv_lib_soname_ncurses" = "x"
15539 then
15540 ac_cv_lib_soname_ncurses="libncurses.so"
15542 else
15543 echo "$as_me: failed program was:" >&5
15544 sed 's/^/| /' conftest.$ac_ext >&5
15546 ac_cv_lib_soname_ncurses="libncurses.so"
15548 rm -f conftest.err conftest.$ac_objext \
15549 conftest$ac_exeext conftest.$ac_ext
15550 LIBS=$ac_get_soname_save_LIBS
15552 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
15553 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
15554 if test "x$ac_cv_lib_soname_ncurses" != xNONE
15555 then
15556 cat >>confdefs.h <<_ACEOF
15557 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
15558 _ACEOF
15561 echo "$as_me:$LINENO: checking for -lcurses soname" >&5
15562 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
15563 if test "${ac_cv_lib_soname_curses+set}" = set; then
15564 echo $ECHO_N "(cached) $ECHO_C" >&6
15565 else
15566 ac_get_soname_save_LIBS=$LIBS
15567 LIBS="-lcurses $LIBS"
15568 cat >conftest.$ac_ext <<_ACEOF
15569 /* confdefs.h. */
15570 _ACEOF
15571 cat confdefs.h >>conftest.$ac_ext
15572 cat >>conftest.$ac_ext <<_ACEOF
15573 /* end confdefs.h. */
15575 /* Override any gcc2 internal prototype to avoid an error. */
15576 #ifdef __cplusplus
15577 extern "C"
15578 #endif
15579 /* We use char because int might match the return type of a gcc2
15580 builtin and then its argument prototype would still apply. */
15581 char waddch ();
15583 main ()
15585 waddch ();
15587 return 0;
15589 _ACEOF
15590 rm -f conftest.$ac_objext conftest$ac_exeext
15591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15592 (eval $ac_link) 2>conftest.er1
15593 ac_status=$?
15594 grep -v '^ *+' conftest.er1 >conftest.err
15595 rm -f conftest.er1
15596 cat conftest.err >&5
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); } &&
15599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15601 (eval $ac_try) 2>&5
15602 ac_status=$?
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); }; } &&
15605 { ac_try='test -s conftest$ac_exeext'
15606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15607 (eval $ac_try) 2>&5
15608 ac_status=$?
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); }; }; then
15611 ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.so | sed 's/^.*\(libcurses\.so[^ ]*\).*$/\1/'`
15612 if test "x$ac_cv_lib_soname_curses" = "x"
15613 then
15614 ac_cv_lib_soname_curses="libcurses.so"
15616 else
15617 echo "$as_me: failed program was:" >&5
15618 sed 's/^/| /' conftest.$ac_ext >&5
15620 ac_cv_lib_soname_curses="libcurses.so"
15622 rm -f conftest.err conftest.$ac_objext \
15623 conftest$ac_exeext conftest.$ac_ext
15624 LIBS=$ac_get_soname_save_LIBS
15626 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
15627 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
15628 if test "x$ac_cv_lib_soname_curses" != xNONE
15629 then
15630 cat >>confdefs.h <<_ACEOF
15631 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
15632 _ACEOF
15638 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15639 # for constant arguments. Useless!
15640 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15641 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15642 if test "${ac_cv_working_alloca_h+set}" = set; then
15643 echo $ECHO_N "(cached) $ECHO_C" >&6
15644 else
15645 cat >conftest.$ac_ext <<_ACEOF
15646 /* confdefs.h. */
15647 _ACEOF
15648 cat confdefs.h >>conftest.$ac_ext
15649 cat >>conftest.$ac_ext <<_ACEOF
15650 /* end confdefs.h. */
15651 #include <alloca.h>
15653 main ()
15655 char *p = (char *) alloca (2 * sizeof (int));
15657 return 0;
15659 _ACEOF
15660 rm -f conftest.$ac_objext conftest$ac_exeext
15661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15662 (eval $ac_link) 2>conftest.er1
15663 ac_status=$?
15664 grep -v '^ *+' conftest.er1 >conftest.err
15665 rm -f conftest.er1
15666 cat conftest.err >&5
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); } &&
15669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15671 (eval $ac_try) 2>&5
15672 ac_status=$?
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); }; } &&
15675 { ac_try='test -s conftest$ac_exeext'
15676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15677 (eval $ac_try) 2>&5
15678 ac_status=$?
15679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); }; }; then
15681 ac_cv_working_alloca_h=yes
15682 else
15683 echo "$as_me: failed program was:" >&5
15684 sed 's/^/| /' conftest.$ac_ext >&5
15686 ac_cv_working_alloca_h=no
15688 rm -f conftest.err conftest.$ac_objext \
15689 conftest$ac_exeext conftest.$ac_ext
15691 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15692 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15693 if test $ac_cv_working_alloca_h = yes; then
15695 cat >>confdefs.h <<\_ACEOF
15696 #define HAVE_ALLOCA_H 1
15697 _ACEOF
15701 echo "$as_me:$LINENO: checking for alloca" >&5
15702 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15703 if test "${ac_cv_func_alloca_works+set}" = set; then
15704 echo $ECHO_N "(cached) $ECHO_C" >&6
15705 else
15706 cat >conftest.$ac_ext <<_ACEOF
15707 /* confdefs.h. */
15708 _ACEOF
15709 cat confdefs.h >>conftest.$ac_ext
15710 cat >>conftest.$ac_ext <<_ACEOF
15711 /* end confdefs.h. */
15712 #ifdef __GNUC__
15713 # define alloca __builtin_alloca
15714 #else
15715 # ifdef _MSC_VER
15716 # include <malloc.h>
15717 # define alloca _alloca
15718 # else
15719 # if HAVE_ALLOCA_H
15720 # include <alloca.h>
15721 # else
15722 # ifdef _AIX
15723 #pragma alloca
15724 # else
15725 # ifndef alloca /* predefined by HP cc +Olibcalls */
15726 char *alloca ();
15727 # endif
15728 # endif
15729 # endif
15730 # endif
15731 #endif
15734 main ()
15736 char *p = (char *) alloca (1);
15738 return 0;
15740 _ACEOF
15741 rm -f conftest.$ac_objext conftest$ac_exeext
15742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15743 (eval $ac_link) 2>conftest.er1
15744 ac_status=$?
15745 grep -v '^ *+' conftest.er1 >conftest.err
15746 rm -f conftest.er1
15747 cat conftest.err >&5
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); } &&
15750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15752 (eval $ac_try) 2>&5
15753 ac_status=$?
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); }; } &&
15756 { ac_try='test -s conftest$ac_exeext'
15757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15758 (eval $ac_try) 2>&5
15759 ac_status=$?
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); }; }; then
15762 ac_cv_func_alloca_works=yes
15763 else
15764 echo "$as_me: failed program was:" >&5
15765 sed 's/^/| /' conftest.$ac_ext >&5
15767 ac_cv_func_alloca_works=no
15769 rm -f conftest.err conftest.$ac_objext \
15770 conftest$ac_exeext conftest.$ac_ext
15772 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15773 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15775 if test $ac_cv_func_alloca_works = yes; then
15777 cat >>confdefs.h <<\_ACEOF
15778 #define HAVE_ALLOCA 1
15779 _ACEOF
15781 else
15782 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15783 # that cause trouble. Some versions do not even contain alloca or
15784 # contain a buggy version. If you still want to use their alloca,
15785 # use ar to extract alloca.o from them instead of compiling alloca.c.
15787 ALLOCA=alloca.$ac_objext
15789 cat >>confdefs.h <<\_ACEOF
15790 #define C_ALLOCA 1
15791 _ACEOF
15794 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15795 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15796 if test "${ac_cv_os_cray+set}" = set; then
15797 echo $ECHO_N "(cached) $ECHO_C" >&6
15798 else
15799 cat >conftest.$ac_ext <<_ACEOF
15800 /* confdefs.h. */
15801 _ACEOF
15802 cat confdefs.h >>conftest.$ac_ext
15803 cat >>conftest.$ac_ext <<_ACEOF
15804 /* end confdefs.h. */
15805 #if defined(CRAY) && ! defined(CRAY2)
15806 webecray
15807 #else
15808 wenotbecray
15809 #endif
15811 _ACEOF
15812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15813 $EGREP "webecray" >/dev/null 2>&1; then
15814 ac_cv_os_cray=yes
15815 else
15816 ac_cv_os_cray=no
15818 rm -f conftest*
15821 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15822 echo "${ECHO_T}$ac_cv_os_cray" >&6
15823 if test $ac_cv_os_cray = yes; then
15824 for ac_func in _getb67 GETB67 getb67; do
15825 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15826 echo "$as_me:$LINENO: checking for $ac_func" >&5
15827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15828 if eval "test \"\${$as_ac_var+set}\" = set"; then
15829 echo $ECHO_N "(cached) $ECHO_C" >&6
15830 else
15831 cat >conftest.$ac_ext <<_ACEOF
15832 /* confdefs.h. */
15833 _ACEOF
15834 cat confdefs.h >>conftest.$ac_ext
15835 cat >>conftest.$ac_ext <<_ACEOF
15836 /* end confdefs.h. */
15837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15839 #define $ac_func innocuous_$ac_func
15841 /* System header to define __stub macros and hopefully few prototypes,
15842 which can conflict with char $ac_func (); below.
15843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15844 <limits.h> exists even on freestanding compilers. */
15846 #ifdef __STDC__
15847 # include <limits.h>
15848 #else
15849 # include <assert.h>
15850 #endif
15852 #undef $ac_func
15854 /* Override any gcc2 internal prototype to avoid an error. */
15855 #ifdef __cplusplus
15856 extern "C"
15858 #endif
15859 /* We use char because int might match the return type of a gcc2
15860 builtin and then its argument prototype would still apply. */
15861 char $ac_func ();
15862 /* The GNU C library defines this for functions which it implements
15863 to always fail with ENOSYS. Some functions are actually named
15864 something starting with __ and the normal name is an alias. */
15865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15866 choke me
15867 #else
15868 char (*f) () = $ac_func;
15869 #endif
15870 #ifdef __cplusplus
15872 #endif
15875 main ()
15877 return f != $ac_func;
15879 return 0;
15881 _ACEOF
15882 rm -f conftest.$ac_objext conftest$ac_exeext
15883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15884 (eval $ac_link) 2>conftest.er1
15885 ac_status=$?
15886 grep -v '^ *+' conftest.er1 >conftest.err
15887 rm -f conftest.er1
15888 cat conftest.err >&5
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); } &&
15891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15893 (eval $ac_try) 2>&5
15894 ac_status=$?
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); }; } &&
15897 { ac_try='test -s conftest$ac_exeext'
15898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899 (eval $ac_try) 2>&5
15900 ac_status=$?
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); }; }; then
15903 eval "$as_ac_var=yes"
15904 else
15905 echo "$as_me: failed program was:" >&5
15906 sed 's/^/| /' conftest.$ac_ext >&5
15908 eval "$as_ac_var=no"
15910 rm -f conftest.err conftest.$ac_objext \
15911 conftest$ac_exeext conftest.$ac_ext
15913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15914 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15915 if test `eval echo '${'$as_ac_var'}'` = yes; then
15917 cat >>confdefs.h <<_ACEOF
15918 #define CRAY_STACKSEG_END $ac_func
15919 _ACEOF
15921 break
15924 done
15927 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15928 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15929 if test "${ac_cv_c_stack_direction+set}" = set; then
15930 echo $ECHO_N "(cached) $ECHO_C" >&6
15931 else
15932 if test "$cross_compiling" = yes; then
15933 ac_cv_c_stack_direction=0
15934 else
15935 cat >conftest.$ac_ext <<_ACEOF
15936 /* confdefs.h. */
15937 _ACEOF
15938 cat confdefs.h >>conftest.$ac_ext
15939 cat >>conftest.$ac_ext <<_ACEOF
15940 /* end confdefs.h. */
15942 find_stack_direction ()
15944 static char *addr = 0;
15945 auto char dummy;
15946 if (addr == 0)
15948 addr = &dummy;
15949 return find_stack_direction ();
15951 else
15952 return (&dummy > addr) ? 1 : -1;
15956 main ()
15958 exit (find_stack_direction () < 0);
15960 _ACEOF
15961 rm -f conftest$ac_exeext
15962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15963 (eval $ac_link) 2>&5
15964 ac_status=$?
15965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966 (exit $ac_status); } && { ac_try='./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 ac_cv_c_stack_direction=1
15973 else
15974 echo "$as_me: program exited with status $ac_status" >&5
15975 echo "$as_me: failed program was:" >&5
15976 sed 's/^/| /' conftest.$ac_ext >&5
15978 ( exit $ac_status )
15979 ac_cv_c_stack_direction=-1
15981 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15984 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15985 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15987 cat >>confdefs.h <<_ACEOF
15988 #define STACK_DIRECTION $ac_cv_c_stack_direction
15989 _ACEOF
16048 for ac_func in \
16049 _lwp_create \
16050 _lwp_self \
16051 _pclose \
16052 _popen \
16053 _snprintf \
16054 _spawnvp \
16055 _stricmp \
16056 _strnicmp \
16057 _vsnprintf \
16058 chsize \
16059 clone \
16060 finite \
16061 fpclass \
16062 ftruncate \
16063 ftruncate64 \
16064 getnetbyaddr \
16065 getnetbyname \
16066 getopt_long \
16067 getpagesize \
16068 getprotobyname \
16069 getprotobynumber \
16070 getpwuid \
16071 getservbyport \
16072 gettid \
16073 gettimeofday \
16074 inet_network \
16075 lseek64 \
16076 lstat \
16077 memmove \
16078 mmap \
16079 pclose \
16080 popen \
16081 pread \
16082 pwrite \
16083 readlink \
16084 rfork \
16085 select \
16086 sendmsg \
16087 settimeofday \
16088 sigaltstack \
16089 snprintf \
16090 spawnvp \
16091 statfs \
16092 statvfs \
16093 strcasecmp \
16094 strerror \
16095 strncasecmp \
16096 tcgetattr \
16097 timegm \
16098 usleep \
16099 vfscanf \
16100 vsnprintf \
16101 wait4 \
16102 waitpid \
16105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16106 echo "$as_me:$LINENO: checking for $ac_func" >&5
16107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16108 if eval "test \"\${$as_ac_var+set}\" = set"; then
16109 echo $ECHO_N "(cached) $ECHO_C" >&6
16110 else
16111 cat >conftest.$ac_ext <<_ACEOF
16112 /* confdefs.h. */
16113 _ACEOF
16114 cat confdefs.h >>conftest.$ac_ext
16115 cat >>conftest.$ac_ext <<_ACEOF
16116 /* end confdefs.h. */
16117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16119 #define $ac_func innocuous_$ac_func
16121 /* System header to define __stub macros and hopefully few prototypes,
16122 which can conflict with char $ac_func (); below.
16123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16124 <limits.h> exists even on freestanding compilers. */
16126 #ifdef __STDC__
16127 # include <limits.h>
16128 #else
16129 # include <assert.h>
16130 #endif
16132 #undef $ac_func
16134 /* Override any gcc2 internal prototype to avoid an error. */
16135 #ifdef __cplusplus
16136 extern "C"
16138 #endif
16139 /* We use char because int might match the return type of a gcc2
16140 builtin and then its argument prototype would still apply. */
16141 char $ac_func ();
16142 /* The GNU C library defines this for functions which it implements
16143 to always fail with ENOSYS. Some functions are actually named
16144 something starting with __ and the normal name is an alias. */
16145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16146 choke me
16147 #else
16148 char (*f) () = $ac_func;
16149 #endif
16150 #ifdef __cplusplus
16152 #endif
16155 main ()
16157 return f != $ac_func;
16159 return 0;
16161 _ACEOF
16162 rm -f conftest.$ac_objext conftest$ac_exeext
16163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16164 (eval $ac_link) 2>conftest.er1
16165 ac_status=$?
16166 grep -v '^ *+' conftest.er1 >conftest.err
16167 rm -f conftest.er1
16168 cat conftest.err >&5
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); } &&
16171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16173 (eval $ac_try) 2>&5
16174 ac_status=$?
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); }; } &&
16177 { ac_try='test -s conftest$ac_exeext'
16178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16179 (eval $ac_try) 2>&5
16180 ac_status=$?
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); }; }; then
16183 eval "$as_ac_var=yes"
16184 else
16185 echo "$as_me: failed program was:" >&5
16186 sed 's/^/| /' conftest.$ac_ext >&5
16188 eval "$as_ac_var=no"
16190 rm -f conftest.err conftest.$ac_objext \
16191 conftest$ac_exeext conftest.$ac_ext
16193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16194 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16195 if test `eval echo '${'$as_ac_var'}'` = yes; then
16196 cat >>confdefs.h <<_ACEOF
16197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16198 _ACEOF
16201 done
16289 for ac_header in \
16290 arpa/inet.h \
16291 arpa/nameser.h \
16292 cups/cups.h \
16293 direct.h \
16294 elf.h \
16295 float.h \
16296 fontconfig/fontconfig.h \
16297 getopt.h \
16298 ieeefp.h \
16299 io.h \
16300 jack/jack.h \
16301 libio.h \
16302 libutil.h \
16303 link.h \
16304 linux/cdrom.h \
16305 linux/hdreg.h \
16306 linux/input.h \
16307 linux/ioctl.h \
16308 linux/joystick.h \
16309 linux/major.h \
16310 linux/param.h \
16311 linux/serial.h \
16312 linux/ucdrom.h \
16313 machine/cpu.h \
16314 netdb.h \
16315 netinet/in.h \
16316 netinet/in_systm.h \
16317 netinet/tcp.h \
16318 netinet/tcp_fsm.h \
16319 openssl/ssl.h \
16320 process.h \
16321 pthread.h \
16322 pty.h \
16323 pwd.h \
16324 regex.h \
16325 sched.h \
16326 scsi/sg.h \
16327 scsi/scsi.h \
16328 scsi/scsi_ioctl.h \
16329 socket.h \
16330 stdint.h \
16331 strings.h \
16332 sys/cdio.h \
16333 sys/elf32.h \
16334 sys/errno.h \
16335 sys/exec_elf.h \
16336 sys/file.h \
16337 sys/filio.h \
16338 sys/inttypes.h \
16339 sys/ioctl.h \
16340 sys/ipc.h \
16341 sys/link.h \
16342 sys/lwp.h \
16343 sys/mman.h \
16344 sys/modem.h \
16345 sys/msg.h \
16346 sys/param.h \
16347 sys/poll.h \
16348 sys/ptrace.h \
16349 sys/reg.h \
16350 sys/scsiio.h \
16351 sys/shm.h \
16352 sys/signal.h \
16353 sys/socket.h \
16354 sys/sockio.h \
16355 sys/statfs.h \
16356 sys/statvfs.h \
16357 sys/strtio.h \
16358 sys/syscall.h \
16359 sys/sysctl.h \
16360 sys/time.h \
16361 sys/times.h \
16362 sys/uio.h \
16363 sys/un.h \
16364 sys/v86.h \
16365 sys/v86intr.h \
16366 sys/vfs.h \
16367 sys/vm86.h \
16368 sys/wait.h \
16369 syscall.h \
16370 termios.h \
16371 unistd.h \
16372 utime.h \
16373 valgrind/memcheck.h
16376 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16378 echo "$as_me:$LINENO: checking for $ac_header" >&5
16379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16381 echo $ECHO_N "(cached) $ECHO_C" >&6
16383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16384 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16385 else
16386 # Is the header compilable?
16387 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16388 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16389 cat >conftest.$ac_ext <<_ACEOF
16390 /* confdefs.h. */
16391 _ACEOF
16392 cat confdefs.h >>conftest.$ac_ext
16393 cat >>conftest.$ac_ext <<_ACEOF
16394 /* end confdefs.h. */
16395 $ac_includes_default
16396 #include <$ac_header>
16397 _ACEOF
16398 rm -f conftest.$ac_objext
16399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16400 (eval $ac_compile) 2>conftest.er1
16401 ac_status=$?
16402 grep -v '^ *+' conftest.er1 >conftest.err
16403 rm -f conftest.er1
16404 cat conftest.err >&5
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); } &&
16407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16409 (eval $ac_try) 2>&5
16410 ac_status=$?
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); }; } &&
16413 { ac_try='test -s conftest.$ac_objext'
16414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16415 (eval $ac_try) 2>&5
16416 ac_status=$?
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); }; }; then
16419 ac_header_compiler=yes
16420 else
16421 echo "$as_me: failed program was:" >&5
16422 sed 's/^/| /' conftest.$ac_ext >&5
16424 ac_header_compiler=no
16426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16427 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16428 echo "${ECHO_T}$ac_header_compiler" >&6
16430 # Is the header present?
16431 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16432 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16433 cat >conftest.$ac_ext <<_ACEOF
16434 /* confdefs.h. */
16435 _ACEOF
16436 cat confdefs.h >>conftest.$ac_ext
16437 cat >>conftest.$ac_ext <<_ACEOF
16438 /* end confdefs.h. */
16439 #include <$ac_header>
16440 _ACEOF
16441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16443 ac_status=$?
16444 grep -v '^ *+' conftest.er1 >conftest.err
16445 rm -f conftest.er1
16446 cat conftest.err >&5
16447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448 (exit $ac_status); } >/dev/null; then
16449 if test -s conftest.err; then
16450 ac_cpp_err=$ac_c_preproc_warn_flag
16451 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16452 else
16453 ac_cpp_err=
16455 else
16456 ac_cpp_err=yes
16458 if test -z "$ac_cpp_err"; then
16459 ac_header_preproc=yes
16460 else
16461 echo "$as_me: failed program was:" >&5
16462 sed 's/^/| /' conftest.$ac_ext >&5
16464 ac_header_preproc=no
16466 rm -f conftest.err conftest.$ac_ext
16467 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16468 echo "${ECHO_T}$ac_header_preproc" >&6
16470 # So? What about this header?
16471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16472 yes:no: )
16473 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16474 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16476 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16477 ac_header_preproc=yes
16479 no:yes:* )
16480 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16481 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16482 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16483 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16484 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16485 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16486 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16487 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16489 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16490 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16491 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16493 cat <<\_ASBOX
16494 ## ------------------------------------ ##
16495 ## Report this to wine-devel@winehq.org ##
16496 ## ------------------------------------ ##
16497 _ASBOX
16499 sed "s/^/$as_me: WARNING: /" >&2
16501 esac
16502 echo "$as_me:$LINENO: checking for $ac_header" >&5
16503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16505 echo $ECHO_N "(cached) $ECHO_C" >&6
16506 else
16507 eval "$as_ac_Header=\$ac_header_preproc"
16509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16510 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16514 cat >>confdefs.h <<_ACEOF
16515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16516 _ACEOF
16520 done
16522 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
16523 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
16524 if test "${ac_cv_header_stat_broken+set}" = set; then
16525 echo $ECHO_N "(cached) $ECHO_C" >&6
16526 else
16527 cat >conftest.$ac_ext <<_ACEOF
16528 /* confdefs.h. */
16529 _ACEOF
16530 cat confdefs.h >>conftest.$ac_ext
16531 cat >>conftest.$ac_ext <<_ACEOF
16532 /* end confdefs.h. */
16533 #include <sys/types.h>
16534 #include <sys/stat.h>
16536 #if defined(S_ISBLK) && defined(S_IFDIR)
16537 # if S_ISBLK (S_IFDIR)
16538 You lose.
16539 # endif
16540 #endif
16542 #if defined(S_ISBLK) && defined(S_IFCHR)
16543 # if S_ISBLK (S_IFCHR)
16544 You lose.
16545 # endif
16546 #endif
16548 #if defined(S_ISLNK) && defined(S_IFREG)
16549 # if S_ISLNK (S_IFREG)
16550 You lose.
16551 # endif
16552 #endif
16554 #if defined(S_ISSOCK) && defined(S_IFREG)
16555 # if S_ISSOCK (S_IFREG)
16556 You lose.
16557 # endif
16558 #endif
16560 _ACEOF
16561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16562 $EGREP "You lose" >/dev/null 2>&1; then
16563 ac_cv_header_stat_broken=yes
16564 else
16565 ac_cv_header_stat_broken=no
16567 rm -f conftest*
16570 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
16571 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
16572 if test $ac_cv_header_stat_broken = yes; then
16574 cat >>confdefs.h <<\_ACEOF
16575 #define STAT_MACROS_BROKEN 1
16576 _ACEOF
16584 for ac_header in sys/mount.h sys/user.h
16586 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16587 echo "$as_me:$LINENO: checking for $ac_header" >&5
16588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16590 echo $ECHO_N "(cached) $ECHO_C" >&6
16591 else
16592 cat >conftest.$ac_ext <<_ACEOF
16593 /* confdefs.h. */
16594 _ACEOF
16595 cat confdefs.h >>conftest.$ac_ext
16596 cat >>conftest.$ac_ext <<_ACEOF
16597 /* end confdefs.h. */
16598 #include <sys/types.h>
16599 #if HAVE_SYS_PARAM_H
16600 # include <sys/param.h>
16601 #endif
16603 #include <$ac_header>
16604 _ACEOF
16605 rm -f conftest.$ac_objext
16606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16607 (eval $ac_compile) 2>conftest.er1
16608 ac_status=$?
16609 grep -v '^ *+' conftest.er1 >conftest.err
16610 rm -f conftest.er1
16611 cat conftest.err >&5
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); } &&
16614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16616 (eval $ac_try) 2>&5
16617 ac_status=$?
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); }; } &&
16620 { ac_try='test -s conftest.$ac_objext'
16621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16622 (eval $ac_try) 2>&5
16623 ac_status=$?
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); }; }; then
16626 eval "$as_ac_Header=yes"
16627 else
16628 echo "$as_me: failed program was:" >&5
16629 sed 's/^/| /' conftest.$ac_ext >&5
16631 eval "$as_ac_Header=no"
16633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16636 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16638 cat >>confdefs.h <<_ACEOF
16639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16640 _ACEOF
16644 done
16652 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h
16654 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16655 echo "$as_me:$LINENO: checking for $ac_header" >&5
16656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16658 echo $ECHO_N "(cached) $ECHO_C" >&6
16659 else
16660 cat >conftest.$ac_ext <<_ACEOF
16661 /* confdefs.h. */
16662 _ACEOF
16663 cat confdefs.h >>conftest.$ac_ext
16664 cat >>conftest.$ac_ext <<_ACEOF
16665 /* end confdefs.h. */
16666 #include <sys/types.h>
16667 #if HAVE_SYS_SOCKET_H
16668 # include <sys/socket.h>
16669 #endif
16671 #include <$ac_header>
16672 _ACEOF
16673 rm -f conftest.$ac_objext
16674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16675 (eval $ac_compile) 2>conftest.er1
16676 ac_status=$?
16677 grep -v '^ *+' conftest.er1 >conftest.err
16678 rm -f conftest.er1
16679 cat conftest.err >&5
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); } &&
16682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16684 (eval $ac_try) 2>&5
16685 ac_status=$?
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); }; } &&
16688 { ac_try='test -s conftest.$ac_objext'
16689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16690 (eval $ac_try) 2>&5
16691 ac_status=$?
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); }; }; then
16694 eval "$as_ac_Header=yes"
16695 else
16696 echo "$as_me: failed program was:" >&5
16697 sed 's/^/| /' conftest.$ac_ext >&5
16699 eval "$as_ac_Header=no"
16701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16706 cat >>confdefs.h <<_ACEOF
16707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16708 _ACEOF
16712 done
16716 for ac_header in resolv.h
16718 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16719 echo "$as_me:$LINENO: checking for $ac_header" >&5
16720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16722 echo $ECHO_N "(cached) $ECHO_C" >&6
16723 else
16724 cat >conftest.$ac_ext <<_ACEOF
16725 /* confdefs.h. */
16726 _ACEOF
16727 cat confdefs.h >>conftest.$ac_ext
16728 cat >>conftest.$ac_ext <<_ACEOF
16729 /* end confdefs.h. */
16730 #include <sys/types.h>
16731 #if HAVE_SYS_SOCKET_H
16732 # include <sys/socket.h>
16733 #endif
16734 #if HAVE_NETINET_IN_H
16735 # include <netinet/in.h>
16736 #endif
16737 #if HAVE_ARPA_NAMESER_H
16738 # include <arpa/nameser.h>
16739 #endif
16741 #include <$ac_header>
16742 _ACEOF
16743 rm -f conftest.$ac_objext
16744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16745 (eval $ac_compile) 2>conftest.er1
16746 ac_status=$?
16747 grep -v '^ *+' conftest.er1 >conftest.err
16748 rm -f conftest.er1
16749 cat conftest.err >&5
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); } &&
16752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16754 (eval $ac_try) 2>&5
16755 ac_status=$?
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); }; } &&
16758 { ac_try='test -s conftest.$ac_objext'
16759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16760 (eval $ac_try) 2>&5
16761 ac_status=$?
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); }; }; then
16764 eval "$as_ac_Header=yes"
16765 else
16766 echo "$as_me: failed program was:" >&5
16767 sed 's/^/| /' conftest.$ac_ext >&5
16769 eval "$as_ac_Header=no"
16771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16776 cat >>confdefs.h <<_ACEOF
16777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16778 _ACEOF
16782 done
16786 for ac_header in netinet/ip.h
16788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16789 echo "$as_me:$LINENO: checking for $ac_header" >&5
16790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16792 echo $ECHO_N "(cached) $ECHO_C" >&6
16793 else
16794 cat >conftest.$ac_ext <<_ACEOF
16795 /* confdefs.h. */
16796 _ACEOF
16797 cat confdefs.h >>conftest.$ac_ext
16798 cat >>conftest.$ac_ext <<_ACEOF
16799 /* end confdefs.h. */
16800 #include <sys/types.h>
16801 #if HAVE_SYS_SOCKET_H
16802 # include <sys/socket.h>
16803 #endif
16804 #if HAVE_NETINET_IN_SYSTM_H
16805 # include <netinet/in_systm.h>
16806 #endif
16808 #include <$ac_header>
16809 _ACEOF
16810 rm -f conftest.$ac_objext
16811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16812 (eval $ac_compile) 2>conftest.er1
16813 ac_status=$?
16814 grep -v '^ *+' conftest.er1 >conftest.err
16815 rm -f conftest.er1
16816 cat conftest.err >&5
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); } &&
16819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16821 (eval $ac_try) 2>&5
16822 ac_status=$?
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); }; } &&
16825 { ac_try='test -s conftest.$ac_objext'
16826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16827 (eval $ac_try) 2>&5
16828 ac_status=$?
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); }; }; then
16831 eval "$as_ac_Header=yes"
16832 else
16833 echo "$as_me: failed program was:" >&5
16834 sed 's/^/| /' conftest.$ac_ext >&5
16836 eval "$as_ac_Header=no"
16838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16843 cat >>confdefs.h <<_ACEOF
16844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16845 _ACEOF
16849 done
16853 for ac_header in ucontext.h
16855 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16856 echo "$as_me:$LINENO: checking for $ac_header" >&5
16857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16859 echo $ECHO_N "(cached) $ECHO_C" >&6
16860 else
16861 cat >conftest.$ac_ext <<_ACEOF
16862 /* confdefs.h. */
16863 _ACEOF
16864 cat confdefs.h >>conftest.$ac_ext
16865 cat >>conftest.$ac_ext <<_ACEOF
16866 /* end confdefs.h. */
16867 #include <signal.h>
16869 #include <$ac_header>
16870 _ACEOF
16871 rm -f conftest.$ac_objext
16872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16873 (eval $ac_compile) 2>conftest.er1
16874 ac_status=$?
16875 grep -v '^ *+' conftest.er1 >conftest.err
16876 rm -f conftest.er1
16877 cat conftest.err >&5
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); } &&
16880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16882 (eval $ac_try) 2>&5
16883 ac_status=$?
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); }; } &&
16886 { ac_try='test -s conftest.$ac_objext'
16887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16888 (eval $ac_try) 2>&5
16889 ac_status=$?
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); }; }; then
16892 eval "$as_ac_Header=yes"
16893 else
16894 echo "$as_me: failed program was:" >&5
16895 sed 's/^/| /' conftest.$ac_ext >&5
16897 eval "$as_ac_Header=no"
16899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16904 cat >>confdefs.h <<_ACEOF
16905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16906 _ACEOF
16910 done
16914 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
16915 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
16916 if test "${ac_cv_c_ipx_gnu+set}" = set; then
16917 echo $ECHO_N "(cached) $ECHO_C" >&6
16918 else
16919 cat >conftest.$ac_ext <<_ACEOF
16920 /* confdefs.h. */
16921 _ACEOF
16922 cat confdefs.h >>conftest.$ac_ext
16923 cat >>conftest.$ac_ext <<_ACEOF
16924 /* end confdefs.h. */
16925 #include <sys/types.h>
16926 #ifdef HAVE_SYS_SOCKET_H
16927 # include <sys/socket.h>
16928 #endif
16929 #include <netipx/ipx.h>
16931 main ()
16933 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
16935 return 0;
16937 _ACEOF
16938 rm -f conftest.$ac_objext
16939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16940 (eval $ac_compile) 2>conftest.er1
16941 ac_status=$?
16942 grep -v '^ *+' conftest.er1 >conftest.err
16943 rm -f conftest.er1
16944 cat conftest.err >&5
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); } &&
16947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949 (eval $ac_try) 2>&5
16950 ac_status=$?
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; } &&
16953 { ac_try='test -s conftest.$ac_objext'
16954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955 (eval $ac_try) 2>&5
16956 ac_status=$?
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); }; }; then
16959 ac_cv_c_ipx_gnu="yes"
16960 else
16961 echo "$as_me: failed program was:" >&5
16962 sed 's/^/| /' conftest.$ac_ext >&5
16964 ac_cv_c_ipx_gnu="no"
16966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16969 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
16970 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
16971 if test "$ac_cv_c_ipx_gnu" = "yes"
16972 then
16974 cat >>confdefs.h <<\_ACEOF
16975 #define HAVE_IPX_GNU 1
16976 _ACEOF
16980 if test "$ac_cv_c_ipx_gnu" = "no"
16981 then
16982 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
16983 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
16984 if test "${ac_cv_c_ipx_linux+set}" = set; then
16985 echo $ECHO_N "(cached) $ECHO_C" >&6
16986 else
16987 cat >conftest.$ac_ext <<_ACEOF
16988 /* confdefs.h. */
16989 _ACEOF
16990 cat confdefs.h >>conftest.$ac_ext
16991 cat >>conftest.$ac_ext <<_ACEOF
16992 /* end confdefs.h. */
16993 #include <sys/types.h>
16994 #ifdef HAVE_SYS_SOCKET_H
16995 # include <sys/socket.h>
16996 #endif
16997 #include <asm/types.h>
16998 #include <linux/ipx.h>
17000 main ()
17002 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
17004 return 0;
17006 _ACEOF
17007 rm -f conftest.$ac_objext
17008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17009 (eval $ac_compile) 2>conftest.er1
17010 ac_status=$?
17011 grep -v '^ *+' conftest.er1 >conftest.err
17012 rm -f conftest.er1
17013 cat conftest.err >&5
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); } &&
17016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17018 (eval $ac_try) 2>&5
17019 ac_status=$?
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); }; } &&
17022 { ac_try='test -s conftest.$ac_objext'
17023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17024 (eval $ac_try) 2>&5
17025 ac_status=$?
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); }; }; then
17028 ac_cv_c_ipx_linux="yes"
17029 else
17030 echo "$as_me: failed program was:" >&5
17031 sed 's/^/| /' conftest.$ac_ext >&5
17033 ac_cv_c_ipx_linux="no"
17035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17038 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
17039 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
17040 if test "$ac_cv_c_ipx_linux" = "yes"
17041 then
17043 cat >>confdefs.h <<\_ACEOF
17044 #define HAVE_IPX_LINUX 1
17045 _ACEOF
17051 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17052 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17053 if test "${ac_cv_c_const+set}" = set; then
17054 echo $ECHO_N "(cached) $ECHO_C" >&6
17055 else
17056 cat >conftest.$ac_ext <<_ACEOF
17057 /* confdefs.h. */
17058 _ACEOF
17059 cat confdefs.h >>conftest.$ac_ext
17060 cat >>conftest.$ac_ext <<_ACEOF
17061 /* end confdefs.h. */
17064 main ()
17066 /* FIXME: Include the comments suggested by Paul. */
17067 #ifndef __cplusplus
17068 /* Ultrix mips cc rejects this. */
17069 typedef int charset[2];
17070 const charset x;
17071 /* SunOS 4.1.1 cc rejects this. */
17072 char const *const *ccp;
17073 char **p;
17074 /* NEC SVR4.0.2 mips cc rejects this. */
17075 struct point {int x, y;};
17076 static struct point const zero = {0,0};
17077 /* AIX XL C 1.02.0.0 rejects this.
17078 It does not let you subtract one const X* pointer from another in
17079 an arm of an if-expression whose if-part is not a constant
17080 expression */
17081 const char *g = "string";
17082 ccp = &g + (g ? g-g : 0);
17083 /* HPUX 7.0 cc rejects these. */
17084 ++ccp;
17085 p = (char**) ccp;
17086 ccp = (char const *const *) p;
17087 { /* SCO 3.2v4 cc rejects this. */
17088 char *t;
17089 char const *s = 0 ? (char *) 0 : (char const *) 0;
17091 *t++ = 0;
17093 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17094 int x[] = {25, 17};
17095 const int *foo = &x[0];
17096 ++foo;
17098 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17099 typedef const int *iptr;
17100 iptr p = 0;
17101 ++p;
17103 { /* AIX XL C 1.02.0.0 rejects this saying
17104 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17105 struct s { int j; const int *ap[3]; };
17106 struct s *b; b->j = 5;
17108 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17109 const int foo = 10;
17111 #endif
17114 return 0;
17116 _ACEOF
17117 rm -f conftest.$ac_objext
17118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17119 (eval $ac_compile) 2>conftest.er1
17120 ac_status=$?
17121 grep -v '^ *+' conftest.er1 >conftest.err
17122 rm -f conftest.er1
17123 cat conftest.err >&5
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); } &&
17126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17128 (eval $ac_try) 2>&5
17129 ac_status=$?
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); }; } &&
17132 { ac_try='test -s conftest.$ac_objext'
17133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17134 (eval $ac_try) 2>&5
17135 ac_status=$?
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); }; }; then
17138 ac_cv_c_const=yes
17139 else
17140 echo "$as_me: failed program was:" >&5
17141 sed 's/^/| /' conftest.$ac_ext >&5
17143 ac_cv_c_const=no
17145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17147 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17148 echo "${ECHO_T}$ac_cv_c_const" >&6
17149 if test $ac_cv_c_const = no; then
17151 cat >>confdefs.h <<\_ACEOF
17152 #define const
17153 _ACEOF
17157 echo "$as_me:$LINENO: checking for inline" >&5
17158 echo $ECHO_N "checking for inline... $ECHO_C" >&6
17159 if test "${ac_cv_c_inline+set}" = set; then
17160 echo $ECHO_N "(cached) $ECHO_C" >&6
17161 else
17162 ac_cv_c_inline=no
17163 for ac_kw in inline __inline__ __inline; do
17164 cat >conftest.$ac_ext <<_ACEOF
17165 /* confdefs.h. */
17166 _ACEOF
17167 cat confdefs.h >>conftest.$ac_ext
17168 cat >>conftest.$ac_ext <<_ACEOF
17169 /* end confdefs.h. */
17170 #ifndef __cplusplus
17171 typedef int foo_t;
17172 static $ac_kw foo_t static_foo () {return 0; }
17173 $ac_kw foo_t foo () {return 0; }
17174 #endif
17176 _ACEOF
17177 rm -f conftest.$ac_objext
17178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17179 (eval $ac_compile) 2>conftest.er1
17180 ac_status=$?
17181 grep -v '^ *+' conftest.er1 >conftest.err
17182 rm -f conftest.er1
17183 cat conftest.err >&5
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); } &&
17186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17188 (eval $ac_try) 2>&5
17189 ac_status=$?
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); }; } &&
17192 { ac_try='test -s conftest.$ac_objext'
17193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17194 (eval $ac_try) 2>&5
17195 ac_status=$?
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); }; }; then
17198 ac_cv_c_inline=$ac_kw; break
17199 else
17200 echo "$as_me: failed program was:" >&5
17201 sed 's/^/| /' conftest.$ac_ext >&5
17204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17205 done
17208 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17209 echo "${ECHO_T}$ac_cv_c_inline" >&6
17212 case $ac_cv_c_inline in
17213 inline | yes) ;;
17215 case $ac_cv_c_inline in
17216 no) ac_val=;;
17217 *) ac_val=$ac_cv_c_inline;;
17218 esac
17219 cat >>confdefs.h <<_ACEOF
17220 #ifndef __cplusplus
17221 #define inline $ac_val
17222 #endif
17223 _ACEOF
17225 esac
17227 echo "$as_me:$LINENO: checking for mode_t" >&5
17228 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
17229 if test "${ac_cv_type_mode_t+set}" = set; then
17230 echo $ECHO_N "(cached) $ECHO_C" >&6
17231 else
17232 cat >conftest.$ac_ext <<_ACEOF
17233 /* confdefs.h. */
17234 _ACEOF
17235 cat confdefs.h >>conftest.$ac_ext
17236 cat >>conftest.$ac_ext <<_ACEOF
17237 /* end confdefs.h. */
17238 $ac_includes_default
17240 main ()
17242 if ((mode_t *) 0)
17243 return 0;
17244 if (sizeof (mode_t))
17245 return 0;
17247 return 0;
17249 _ACEOF
17250 rm -f conftest.$ac_objext
17251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17252 (eval $ac_compile) 2>conftest.er1
17253 ac_status=$?
17254 grep -v '^ *+' conftest.er1 >conftest.err
17255 rm -f conftest.er1
17256 cat conftest.err >&5
17257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258 (exit $ac_status); } &&
17259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17261 (eval $ac_try) 2>&5
17262 ac_status=$?
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); }; } &&
17265 { ac_try='test -s conftest.$ac_objext'
17266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17267 (eval $ac_try) 2>&5
17268 ac_status=$?
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); }; }; then
17271 ac_cv_type_mode_t=yes
17272 else
17273 echo "$as_me: failed program was:" >&5
17274 sed 's/^/| /' conftest.$ac_ext >&5
17276 ac_cv_type_mode_t=no
17278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17280 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
17281 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
17282 if test $ac_cv_type_mode_t = yes; then
17284 cat >>confdefs.h <<_ACEOF
17285 #define HAVE_MODE_T 1
17286 _ACEOF
17290 echo "$as_me:$LINENO: checking for off_t" >&5
17291 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
17292 if test "${ac_cv_type_off_t+set}" = set; then
17293 echo $ECHO_N "(cached) $ECHO_C" >&6
17294 else
17295 cat >conftest.$ac_ext <<_ACEOF
17296 /* confdefs.h. */
17297 _ACEOF
17298 cat confdefs.h >>conftest.$ac_ext
17299 cat >>conftest.$ac_ext <<_ACEOF
17300 /* end confdefs.h. */
17301 $ac_includes_default
17303 main ()
17305 if ((off_t *) 0)
17306 return 0;
17307 if (sizeof (off_t))
17308 return 0;
17310 return 0;
17312 _ACEOF
17313 rm -f conftest.$ac_objext
17314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17315 (eval $ac_compile) 2>conftest.er1
17316 ac_status=$?
17317 grep -v '^ *+' conftest.er1 >conftest.err
17318 rm -f conftest.er1
17319 cat conftest.err >&5
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); } &&
17322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17324 (eval $ac_try) 2>&5
17325 ac_status=$?
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); }; } &&
17328 { ac_try='test -s conftest.$ac_objext'
17329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17330 (eval $ac_try) 2>&5
17331 ac_status=$?
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); }; }; then
17334 ac_cv_type_off_t=yes
17335 else
17336 echo "$as_me: failed program was:" >&5
17337 sed 's/^/| /' conftest.$ac_ext >&5
17339 ac_cv_type_off_t=no
17341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17343 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
17344 echo "${ECHO_T}$ac_cv_type_off_t" >&6
17345 if test $ac_cv_type_off_t = yes; then
17347 cat >>confdefs.h <<_ACEOF
17348 #define HAVE_OFF_T 1
17349 _ACEOF
17353 echo "$as_me:$LINENO: checking for pid_t" >&5
17354 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17355 if test "${ac_cv_type_pid_t+set}" = set; then
17356 echo $ECHO_N "(cached) $ECHO_C" >&6
17357 else
17358 cat >conftest.$ac_ext <<_ACEOF
17359 /* confdefs.h. */
17360 _ACEOF
17361 cat confdefs.h >>conftest.$ac_ext
17362 cat >>conftest.$ac_ext <<_ACEOF
17363 /* end confdefs.h. */
17364 $ac_includes_default
17366 main ()
17368 if ((pid_t *) 0)
17369 return 0;
17370 if (sizeof (pid_t))
17371 return 0;
17373 return 0;
17375 _ACEOF
17376 rm -f conftest.$ac_objext
17377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17378 (eval $ac_compile) 2>conftest.er1
17379 ac_status=$?
17380 grep -v '^ *+' conftest.er1 >conftest.err
17381 rm -f conftest.er1
17382 cat conftest.err >&5
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); } &&
17385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17387 (eval $ac_try) 2>&5
17388 ac_status=$?
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); }; } &&
17391 { ac_try='test -s conftest.$ac_objext'
17392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17393 (eval $ac_try) 2>&5
17394 ac_status=$?
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); }; }; then
17397 ac_cv_type_pid_t=yes
17398 else
17399 echo "$as_me: failed program was:" >&5
17400 sed 's/^/| /' conftest.$ac_ext >&5
17402 ac_cv_type_pid_t=no
17404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17406 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17407 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17408 if test $ac_cv_type_pid_t = yes; then
17410 cat >>confdefs.h <<_ACEOF
17411 #define HAVE_PID_T 1
17412 _ACEOF
17416 echo "$as_me:$LINENO: checking for size_t" >&5
17417 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17418 if test "${ac_cv_type_size_t+set}" = set; then
17419 echo $ECHO_N "(cached) $ECHO_C" >&6
17420 else
17421 cat >conftest.$ac_ext <<_ACEOF
17422 /* confdefs.h. */
17423 _ACEOF
17424 cat confdefs.h >>conftest.$ac_ext
17425 cat >>conftest.$ac_ext <<_ACEOF
17426 /* end confdefs.h. */
17427 $ac_includes_default
17429 main ()
17431 if ((size_t *) 0)
17432 return 0;
17433 if (sizeof (size_t))
17434 return 0;
17436 return 0;
17438 _ACEOF
17439 rm -f conftest.$ac_objext
17440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17441 (eval $ac_compile) 2>conftest.er1
17442 ac_status=$?
17443 grep -v '^ *+' conftest.er1 >conftest.err
17444 rm -f conftest.er1
17445 cat conftest.err >&5
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); } &&
17448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17450 (eval $ac_try) 2>&5
17451 ac_status=$?
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); }; } &&
17454 { ac_try='test -s conftest.$ac_objext'
17455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17456 (eval $ac_try) 2>&5
17457 ac_status=$?
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); }; }; then
17460 ac_cv_type_size_t=yes
17461 else
17462 echo "$as_me: failed program was:" >&5
17463 sed 's/^/| /' conftest.$ac_ext >&5
17465 ac_cv_type_size_t=no
17467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17469 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17470 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17471 if test $ac_cv_type_size_t = yes; then
17473 cat >>confdefs.h <<_ACEOF
17474 #define HAVE_SIZE_T 1
17475 _ACEOF
17479 echo "$as_me:$LINENO: checking for ssize_t" >&5
17480 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17481 if test "${ac_cv_type_ssize_t+set}" = set; then
17482 echo $ECHO_N "(cached) $ECHO_C" >&6
17483 else
17484 cat >conftest.$ac_ext <<_ACEOF
17485 /* confdefs.h. */
17486 _ACEOF
17487 cat confdefs.h >>conftest.$ac_ext
17488 cat >>conftest.$ac_ext <<_ACEOF
17489 /* end confdefs.h. */
17490 $ac_includes_default
17492 main ()
17494 if ((ssize_t *) 0)
17495 return 0;
17496 if (sizeof (ssize_t))
17497 return 0;
17499 return 0;
17501 _ACEOF
17502 rm -f conftest.$ac_objext
17503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17504 (eval $ac_compile) 2>conftest.er1
17505 ac_status=$?
17506 grep -v '^ *+' conftest.er1 >conftest.err
17507 rm -f conftest.er1
17508 cat conftest.err >&5
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); } &&
17511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17513 (eval $ac_try) 2>&5
17514 ac_status=$?
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); }; } &&
17517 { ac_try='test -s conftest.$ac_objext'
17518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17519 (eval $ac_try) 2>&5
17520 ac_status=$?
17521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522 (exit $ac_status); }; }; then
17523 ac_cv_type_ssize_t=yes
17524 else
17525 echo "$as_me: failed program was:" >&5
17526 sed 's/^/| /' conftest.$ac_ext >&5
17528 ac_cv_type_ssize_t=no
17530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17532 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
17533 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17534 if test $ac_cv_type_ssize_t = yes; then
17536 cat >>confdefs.h <<_ACEOF
17537 #define HAVE_SSIZE_T 1
17538 _ACEOF
17542 echo "$as_me:$LINENO: checking for long long" >&5
17543 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17544 if test "${ac_cv_type_long_long+set}" = set; then
17545 echo $ECHO_N "(cached) $ECHO_C" >&6
17546 else
17547 cat >conftest.$ac_ext <<_ACEOF
17548 /* confdefs.h. */
17549 _ACEOF
17550 cat confdefs.h >>conftest.$ac_ext
17551 cat >>conftest.$ac_ext <<_ACEOF
17552 /* end confdefs.h. */
17553 $ac_includes_default
17555 main ()
17557 if ((long long *) 0)
17558 return 0;
17559 if (sizeof (long long))
17560 return 0;
17562 return 0;
17564 _ACEOF
17565 rm -f conftest.$ac_objext
17566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17567 (eval $ac_compile) 2>conftest.er1
17568 ac_status=$?
17569 grep -v '^ *+' conftest.er1 >conftest.err
17570 rm -f conftest.er1
17571 cat conftest.err >&5
17572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 (exit $ac_status); } &&
17574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17576 (eval $ac_try) 2>&5
17577 ac_status=$?
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); }; } &&
17580 { ac_try='test -s conftest.$ac_objext'
17581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582 (eval $ac_try) 2>&5
17583 ac_status=$?
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); }; }; then
17586 ac_cv_type_long_long=yes
17587 else
17588 echo "$as_me: failed program was:" >&5
17589 sed 's/^/| /' conftest.$ac_ext >&5
17591 ac_cv_type_long_long=no
17593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17595 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17596 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17597 if test $ac_cv_type_long_long = yes; then
17599 cat >>confdefs.h <<_ACEOF
17600 #define HAVE_LONG_LONG 1
17601 _ACEOF
17605 echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
17606 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6
17607 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
17608 echo $ECHO_N "(cached) $ECHO_C" >&6
17609 else
17610 cat >conftest.$ac_ext <<_ACEOF
17611 /* confdefs.h. */
17612 _ACEOF
17613 cat confdefs.h >>conftest.$ac_ext
17614 cat >>conftest.$ac_ext <<_ACEOF
17615 /* end confdefs.h. */
17616 $ac_includes_default
17618 main ()
17620 if ((fsblkcnt_t *) 0)
17621 return 0;
17622 if (sizeof (fsblkcnt_t))
17623 return 0;
17625 return 0;
17627 _ACEOF
17628 rm -f conftest.$ac_objext
17629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17630 (eval $ac_compile) 2>conftest.er1
17631 ac_status=$?
17632 grep -v '^ *+' conftest.er1 >conftest.err
17633 rm -f conftest.er1
17634 cat conftest.err >&5
17635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); } &&
17637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17639 (eval $ac_try) 2>&5
17640 ac_status=$?
17641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); }; } &&
17643 { ac_try='test -s conftest.$ac_objext'
17644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17645 (eval $ac_try) 2>&5
17646 ac_status=$?
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); }; }; then
17649 ac_cv_type_fsblkcnt_t=yes
17650 else
17651 echo "$as_me: failed program was:" >&5
17652 sed 's/^/| /' conftest.$ac_ext >&5
17654 ac_cv_type_fsblkcnt_t=no
17656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17658 echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
17659 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6
17660 if test $ac_cv_type_fsblkcnt_t = yes; then
17662 cat >>confdefs.h <<_ACEOF
17663 #define HAVE_FSBLKCNT_T 1
17664 _ACEOF
17668 echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
17669 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6
17670 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
17671 echo $ECHO_N "(cached) $ECHO_C" >&6
17672 else
17673 cat >conftest.$ac_ext <<_ACEOF
17674 /* confdefs.h. */
17675 _ACEOF
17676 cat confdefs.h >>conftest.$ac_ext
17677 cat >>conftest.$ac_ext <<_ACEOF
17678 /* end confdefs.h. */
17679 $ac_includes_default
17681 main ()
17683 if ((fsfilcnt_t *) 0)
17684 return 0;
17685 if (sizeof (fsfilcnt_t))
17686 return 0;
17688 return 0;
17690 _ACEOF
17691 rm -f conftest.$ac_objext
17692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17693 (eval $ac_compile) 2>conftest.er1
17694 ac_status=$?
17695 grep -v '^ *+' conftest.er1 >conftest.err
17696 rm -f conftest.er1
17697 cat conftest.err >&5
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); } &&
17700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702 (eval $ac_try) 2>&5
17703 ac_status=$?
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); }; } &&
17706 { ac_try='test -s conftest.$ac_objext'
17707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17708 (eval $ac_try) 2>&5
17709 ac_status=$?
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); }; }; then
17712 ac_cv_type_fsfilcnt_t=yes
17713 else
17714 echo "$as_me: failed program was:" >&5
17715 sed 's/^/| /' conftest.$ac_ext >&5
17717 ac_cv_type_fsfilcnt_t=no
17719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17721 echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
17722 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6
17723 if test $ac_cv_type_fsfilcnt_t = yes; then
17725 cat >>confdefs.h <<_ACEOF
17726 #define HAVE_FSFILCNT_T 1
17727 _ACEOF
17733 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
17734 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
17735 if test "${wine_cv_linux_input_h+set}" = set; then
17736 echo $ECHO_N "(cached) $ECHO_C" >&6
17737 else
17738 cat >conftest.$ac_ext <<_ACEOF
17739 /* confdefs.h. */
17740 _ACEOF
17741 cat confdefs.h >>conftest.$ac_ext
17742 cat >>conftest.$ac_ext <<_ACEOF
17743 /* end confdefs.h. */
17745 #include <linux/input.h>
17748 main ()
17751 int foo = EVIOCGBIT(EV_ABS,42);
17752 int bar = BTN_PINKIE;
17753 int fortytwo = 42;
17756 return 0;
17758 _ACEOF
17759 rm -f conftest.$ac_objext
17760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17761 (eval $ac_compile) 2>conftest.er1
17762 ac_status=$?
17763 grep -v '^ *+' conftest.er1 >conftest.err
17764 rm -f conftest.er1
17765 cat conftest.err >&5
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); } &&
17768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17770 (eval $ac_try) 2>&5
17771 ac_status=$?
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); }; } &&
17774 { ac_try='test -s conftest.$ac_objext'
17775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776 (eval $ac_try) 2>&5
17777 ac_status=$?
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); }; }; then
17780 wine_cv_linux_input_h=yes
17781 else
17782 echo "$as_me: failed program was:" >&5
17783 sed 's/^/| /' conftest.$ac_ext >&5
17785 wine_cv_linux_input_h=no
17787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17790 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
17791 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
17792 if test "$wine_cv_linux_input_h" = "yes"
17793 then
17795 cat >>confdefs.h <<\_ACEOF
17796 #define HAVE_CORRECT_LINUXINPUT_H 1
17797 _ACEOF
17802 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
17803 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
17804 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
17805 echo $ECHO_N "(cached) $ECHO_C" >&6
17806 else
17807 cat >conftest.$ac_ext <<_ACEOF
17808 /* confdefs.h. */
17809 _ACEOF
17810 cat confdefs.h >>conftest.$ac_ext
17811 cat >>conftest.$ac_ext <<_ACEOF
17812 /* end confdefs.h. */
17814 #include <netdb.h>
17817 main ()
17820 char *name=NULL;
17821 struct hostent he;
17822 struct hostent *result;
17823 char *buf=NULL;
17824 int bufsize=0;
17825 int res,errnr;
17826 char *addr=NULL;
17827 int addrlen=0;
17828 int addrtype=0;
17829 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
17830 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
17833 return 0;
17835 _ACEOF
17836 rm -f conftest.$ac_objext conftest$ac_exeext
17837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17838 (eval $ac_link) 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_exeext'
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_gethostbyname_r_6=yes
17858 else
17859 echo "$as_me: failed program was:" >&5
17860 sed 's/^/| /' conftest.$ac_ext >&5
17862 wine_cv_linux_gethostbyname_r_6=no
17865 rm -f conftest.err conftest.$ac_objext \
17866 conftest$ac_exeext conftest.$ac_ext
17869 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
17870 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
17871 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
17872 then
17874 cat >>confdefs.h <<\_ACEOF
17875 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
17876 _ACEOF
17880 if test "$ac_cv_header_linux_joystick_h" = "yes"
17881 then
17882 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
17883 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
17884 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
17885 echo $ECHO_N "(cached) $ECHO_C" >&6
17886 else
17887 cat >conftest.$ac_ext <<_ACEOF
17888 /* confdefs.h. */
17889 _ACEOF
17890 cat confdefs.h >>conftest.$ac_ext
17891 cat >>conftest.$ac_ext <<_ACEOF
17892 /* end confdefs.h. */
17894 #include <sys/ioctl.h>
17895 #include <linux/joystick.h>
17897 struct js_event blub;
17898 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
17899 #error "no 2.2 header"
17900 #endif
17903 main ()
17905 /*empty*/
17907 return 0;
17909 _ACEOF
17910 rm -f conftest.$ac_objext
17911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17912 (eval $ac_compile) 2>conftest.er1
17913 ac_status=$?
17914 grep -v '^ *+' conftest.er1 >conftest.err
17915 rm -f conftest.er1
17916 cat conftest.err >&5
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); } &&
17919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17921 (eval $ac_try) 2>&5
17922 ac_status=$?
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); }; } &&
17925 { ac_try='test -s conftest.$ac_objext'
17926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17927 (eval $ac_try) 2>&5
17928 ac_status=$?
17929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 (exit $ac_status); }; }; then
17931 wine_cv_linux_joystick_22_api=yes
17932 else
17933 echo "$as_me: failed program was:" >&5
17934 sed 's/^/| /' conftest.$ac_ext >&5
17936 wine_cv_linux_joystick_22_api=no
17938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17941 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
17942 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
17943 if test "$wine_cv_linux_joystick_22_api" = "yes"
17944 then
17946 cat >>confdefs.h <<\_ACEOF
17947 #define HAVE_LINUX_22_JOYSTICK_API 1
17948 _ACEOF
17954 if test "$ac_cv_header_sys_vfs_h" = "yes"
17955 then
17956 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
17957 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
17958 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
17959 echo $ECHO_N "(cached) $ECHO_C" >&6
17960 else
17961 cat >conftest.$ac_ext <<_ACEOF
17962 /* confdefs.h. */
17963 _ACEOF
17964 cat confdefs.h >>conftest.$ac_ext
17965 cat >>conftest.$ac_ext <<_ACEOF
17966 /* end confdefs.h. */
17968 #include <sys/types.h>
17969 #ifdef HAVE_SYS_PARAM_H
17970 # include <sys/param.h>
17971 #endif
17972 #include <sys/vfs.h>
17975 main ()
17978 struct statfs stfs;
17980 memset(&stfs,0,sizeof(stfs));
17983 return 0;
17985 _ACEOF
17986 rm -f conftest.$ac_objext
17987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17988 (eval $ac_compile) 2>conftest.er1
17989 ac_status=$?
17990 grep -v '^ *+' conftest.er1 >conftest.err
17991 rm -f conftest.er1
17992 cat conftest.err >&5
17993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994 (exit $ac_status); } &&
17995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17997 (eval $ac_try) 2>&5
17998 ac_status=$?
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); }; } &&
18001 { ac_try='test -s conftest.$ac_objext'
18002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18003 (eval $ac_try) 2>&5
18004 ac_status=$?
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); }; }; then
18007 wine_cv_sys_vfs_has_statfs=yes
18008 else
18009 echo "$as_me: failed program was:" >&5
18010 sed 's/^/| /' conftest.$ac_ext >&5
18012 wine_cv_sys_vfs_has_statfs=no
18015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18018 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
18019 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
18020 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
18021 then
18023 cat >>confdefs.h <<\_ACEOF
18024 #define STATFS_DEFINED_BY_SYS_VFS 1
18025 _ACEOF
18030 if test "$ac_cv_header_sys_statfs_h" = "yes"
18031 then
18032 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
18033 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
18034 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
18035 echo $ECHO_N "(cached) $ECHO_C" >&6
18036 else
18037 cat >conftest.$ac_ext <<_ACEOF
18038 /* confdefs.h. */
18039 _ACEOF
18040 cat confdefs.h >>conftest.$ac_ext
18041 cat >>conftest.$ac_ext <<_ACEOF
18042 /* end confdefs.h. */
18044 #include <sys/types.h>
18045 #ifdef HAVE_SYS_PARAM_H
18046 # include <sys/param.h>
18047 #endif
18048 #include <sys/statfs.h>
18051 main ()
18054 struct statfs stfs;
18057 return 0;
18059 _ACEOF
18060 rm -f conftest.$ac_objext
18061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18062 (eval $ac_compile) 2>conftest.er1
18063 ac_status=$?
18064 grep -v '^ *+' conftest.er1 >conftest.err
18065 rm -f conftest.er1
18066 cat conftest.err >&5
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); } &&
18069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18071 (eval $ac_try) 2>&5
18072 ac_status=$?
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); }; } &&
18075 { ac_try='test -s conftest.$ac_objext'
18076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18077 (eval $ac_try) 2>&5
18078 ac_status=$?
18079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080 (exit $ac_status); }; }; then
18081 wine_cv_sys_statfs_has_statfs=yes
18082 else
18083 echo "$as_me: failed program was:" >&5
18084 sed 's/^/| /' conftest.$ac_ext >&5
18086 wine_cv_sys_statfs_has_statfs=no
18089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18092 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
18093 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
18094 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
18095 then
18097 cat >>confdefs.h <<\_ACEOF
18098 #define STATFS_DEFINED_BY_SYS_STATFS 1
18099 _ACEOF
18104 if test "$ac_cv_header_sys_mount_h" = "yes"
18105 then
18106 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
18107 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
18108 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
18109 echo $ECHO_N "(cached) $ECHO_C" >&6
18110 else
18111 cat >conftest.$ac_ext <<_ACEOF
18112 /* confdefs.h. */
18113 _ACEOF
18114 cat confdefs.h >>conftest.$ac_ext
18115 cat >>conftest.$ac_ext <<_ACEOF
18116 /* end confdefs.h. */
18118 #include <sys/types.h>
18119 #ifdef HAVE_SYS_PARAM_H
18120 # include <sys/param.h>
18121 #endif
18122 #include <sys/mount.h>
18125 main ()
18128 struct statfs stfs;
18131 return 0;
18133 _ACEOF
18134 rm -f conftest.$ac_objext
18135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18136 (eval $ac_compile) 2>conftest.er1
18137 ac_status=$?
18138 grep -v '^ *+' conftest.er1 >conftest.err
18139 rm -f conftest.er1
18140 cat conftest.err >&5
18141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); } &&
18143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18145 (eval $ac_try) 2>&5
18146 ac_status=$?
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); }; } &&
18149 { ac_try='test -s conftest.$ac_objext'
18150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18151 (eval $ac_try) 2>&5
18152 ac_status=$?
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); }; }; then
18155 wine_cv_sys_mount_has_statfs=yes
18156 else
18157 echo "$as_me: failed program was:" >&5
18158 sed 's/^/| /' conftest.$ac_ext >&5
18160 wine_cv_sys_mount_has_statfs=no
18163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18166 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
18167 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
18168 if test "$wine_cv_sys_mount_has_statfs" = "yes"
18169 then
18171 cat >>confdefs.h <<\_ACEOF
18172 #define STATFS_DEFINED_BY_SYS_MOUNT 1
18173 _ACEOF
18179 echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
18180 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
18181 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
18182 echo $ECHO_N "(cached) $ECHO_C" >&6
18183 else
18184 cat >conftest.$ac_ext <<_ACEOF
18185 /* confdefs.h. */
18186 _ACEOF
18187 cat confdefs.h >>conftest.$ac_ext
18188 cat >>conftest.$ac_ext <<_ACEOF
18189 /* end confdefs.h. */
18190 #include <sys/types.h>
18191 #ifdef HAVE_SYS_PARAM_H
18192 # include <sys/param.h>
18193 #endif
18194 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18195 # include <sys/mount.h>
18196 #else
18197 # ifdef STATFS_DEFINED_BY_SYS_VFS
18198 # include <sys/vfs.h>
18199 # else
18200 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18201 # include <sys/statfs.h>
18202 # endif
18203 # endif
18204 #endif
18207 main ()
18209 static struct statfs ac_aggr;
18210 if (ac_aggr.f_bfree)
18211 return 0;
18213 return 0;
18215 _ACEOF
18216 rm -f conftest.$ac_objext
18217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18218 (eval $ac_compile) 2>conftest.er1
18219 ac_status=$?
18220 grep -v '^ *+' conftest.er1 >conftest.err
18221 rm -f conftest.er1
18222 cat conftest.err >&5
18223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); } &&
18225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18227 (eval $ac_try) 2>&5
18228 ac_status=$?
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); }; } &&
18231 { ac_try='test -s conftest.$ac_objext'
18232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18233 (eval $ac_try) 2>&5
18234 ac_status=$?
18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); }; }; then
18237 ac_cv_member_struct_statfs_f_bfree=yes
18238 else
18239 echo "$as_me: failed program was:" >&5
18240 sed 's/^/| /' conftest.$ac_ext >&5
18242 cat >conftest.$ac_ext <<_ACEOF
18243 /* confdefs.h. */
18244 _ACEOF
18245 cat confdefs.h >>conftest.$ac_ext
18246 cat >>conftest.$ac_ext <<_ACEOF
18247 /* end confdefs.h. */
18248 #include <sys/types.h>
18249 #ifdef HAVE_SYS_PARAM_H
18250 # include <sys/param.h>
18251 #endif
18252 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18253 # include <sys/mount.h>
18254 #else
18255 # ifdef STATFS_DEFINED_BY_SYS_VFS
18256 # include <sys/vfs.h>
18257 # else
18258 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18259 # include <sys/statfs.h>
18260 # endif
18261 # endif
18262 #endif
18265 main ()
18267 static struct statfs ac_aggr;
18268 if (sizeof ac_aggr.f_bfree)
18269 return 0;
18271 return 0;
18273 _ACEOF
18274 rm -f conftest.$ac_objext
18275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18276 (eval $ac_compile) 2>conftest.er1
18277 ac_status=$?
18278 grep -v '^ *+' conftest.er1 >conftest.err
18279 rm -f conftest.er1
18280 cat conftest.err >&5
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); } &&
18283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18285 (eval $ac_try) 2>&5
18286 ac_status=$?
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); }; } &&
18289 { ac_try='test -s conftest.$ac_objext'
18290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18291 (eval $ac_try) 2>&5
18292 ac_status=$?
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); }; }; then
18295 ac_cv_member_struct_statfs_f_bfree=yes
18296 else
18297 echo "$as_me: failed program was:" >&5
18298 sed 's/^/| /' conftest.$ac_ext >&5
18300 ac_cv_member_struct_statfs_f_bfree=no
18302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18306 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
18307 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
18308 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
18310 cat >>confdefs.h <<_ACEOF
18311 #define HAVE_STRUCT_STATFS_F_BFREE 1
18312 _ACEOF
18316 echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
18317 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
18318 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
18319 echo $ECHO_N "(cached) $ECHO_C" >&6
18320 else
18321 cat >conftest.$ac_ext <<_ACEOF
18322 /* confdefs.h. */
18323 _ACEOF
18324 cat confdefs.h >>conftest.$ac_ext
18325 cat >>conftest.$ac_ext <<_ACEOF
18326 /* end confdefs.h. */
18327 #include <sys/types.h>
18328 #ifdef HAVE_SYS_PARAM_H
18329 # include <sys/param.h>
18330 #endif
18331 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18332 # include <sys/mount.h>
18333 #else
18334 # ifdef STATFS_DEFINED_BY_SYS_VFS
18335 # include <sys/vfs.h>
18336 # else
18337 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18338 # include <sys/statfs.h>
18339 # endif
18340 # endif
18341 #endif
18344 main ()
18346 static struct statfs ac_aggr;
18347 if (ac_aggr.f_bavail)
18348 return 0;
18350 return 0;
18352 _ACEOF
18353 rm -f conftest.$ac_objext
18354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18355 (eval $ac_compile) 2>conftest.er1
18356 ac_status=$?
18357 grep -v '^ *+' conftest.er1 >conftest.err
18358 rm -f conftest.er1
18359 cat conftest.err >&5
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); } &&
18362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18364 (eval $ac_try) 2>&5
18365 ac_status=$?
18366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367 (exit $ac_status); }; } &&
18368 { ac_try='test -s conftest.$ac_objext'
18369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18370 (eval $ac_try) 2>&5
18371 ac_status=$?
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); }; }; then
18374 ac_cv_member_struct_statfs_f_bavail=yes
18375 else
18376 echo "$as_me: failed program was:" >&5
18377 sed 's/^/| /' conftest.$ac_ext >&5
18379 cat >conftest.$ac_ext <<_ACEOF
18380 /* confdefs.h. */
18381 _ACEOF
18382 cat confdefs.h >>conftest.$ac_ext
18383 cat >>conftest.$ac_ext <<_ACEOF
18384 /* end confdefs.h. */
18385 #include <sys/types.h>
18386 #ifdef HAVE_SYS_PARAM_H
18387 # include <sys/param.h>
18388 #endif
18389 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18390 # include <sys/mount.h>
18391 #else
18392 # ifdef STATFS_DEFINED_BY_SYS_VFS
18393 # include <sys/vfs.h>
18394 # else
18395 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18396 # include <sys/statfs.h>
18397 # endif
18398 # endif
18399 #endif
18402 main ()
18404 static struct statfs ac_aggr;
18405 if (sizeof ac_aggr.f_bavail)
18406 return 0;
18408 return 0;
18410 _ACEOF
18411 rm -f conftest.$ac_objext
18412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18413 (eval $ac_compile) 2>conftest.er1
18414 ac_status=$?
18415 grep -v '^ *+' conftest.er1 >conftest.err
18416 rm -f conftest.er1
18417 cat conftest.err >&5
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); } &&
18420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18422 (eval $ac_try) 2>&5
18423 ac_status=$?
18424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425 (exit $ac_status); }; } &&
18426 { ac_try='test -s conftest.$ac_objext'
18427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18428 (eval $ac_try) 2>&5
18429 ac_status=$?
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); }; }; then
18432 ac_cv_member_struct_statfs_f_bavail=yes
18433 else
18434 echo "$as_me: failed program was:" >&5
18435 sed 's/^/| /' conftest.$ac_ext >&5
18437 ac_cv_member_struct_statfs_f_bavail=no
18439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18443 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
18444 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
18445 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
18447 cat >>confdefs.h <<_ACEOF
18448 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
18449 _ACEOF
18453 echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
18454 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6
18455 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
18456 echo $ECHO_N "(cached) $ECHO_C" >&6
18457 else
18458 cat >conftest.$ac_ext <<_ACEOF
18459 /* confdefs.h. */
18460 _ACEOF
18461 cat confdefs.h >>conftest.$ac_ext
18462 cat >>conftest.$ac_ext <<_ACEOF
18463 /* end confdefs.h. */
18464 #include <sys/types.h>
18465 #ifdef HAVE_SYS_PARAM_H
18466 # include <sys/param.h>
18467 #endif
18468 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18469 # include <sys/mount.h>
18470 #else
18471 # ifdef STATFS_DEFINED_BY_SYS_VFS
18472 # include <sys/vfs.h>
18473 # else
18474 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18475 # include <sys/statfs.h>
18476 # endif
18477 # endif
18478 #endif
18481 main ()
18483 static struct statfs ac_aggr;
18484 if (ac_aggr.f_frsize)
18485 return 0;
18487 return 0;
18489 _ACEOF
18490 rm -f conftest.$ac_objext
18491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18492 (eval $ac_compile) 2>conftest.er1
18493 ac_status=$?
18494 grep -v '^ *+' conftest.er1 >conftest.err
18495 rm -f conftest.er1
18496 cat conftest.err >&5
18497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498 (exit $ac_status); } &&
18499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18501 (eval $ac_try) 2>&5
18502 ac_status=$?
18503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504 (exit $ac_status); }; } &&
18505 { ac_try='test -s conftest.$ac_objext'
18506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18507 (eval $ac_try) 2>&5
18508 ac_status=$?
18509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510 (exit $ac_status); }; }; then
18511 ac_cv_member_struct_statfs_f_frsize=yes
18512 else
18513 echo "$as_me: failed program was:" >&5
18514 sed 's/^/| /' conftest.$ac_ext >&5
18516 cat >conftest.$ac_ext <<_ACEOF
18517 /* confdefs.h. */
18518 _ACEOF
18519 cat confdefs.h >>conftest.$ac_ext
18520 cat >>conftest.$ac_ext <<_ACEOF
18521 /* end confdefs.h. */
18522 #include <sys/types.h>
18523 #ifdef HAVE_SYS_PARAM_H
18524 # include <sys/param.h>
18525 #endif
18526 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18527 # include <sys/mount.h>
18528 #else
18529 # ifdef STATFS_DEFINED_BY_SYS_VFS
18530 # include <sys/vfs.h>
18531 # else
18532 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18533 # include <sys/statfs.h>
18534 # endif
18535 # endif
18536 #endif
18539 main ()
18541 static struct statfs ac_aggr;
18542 if (sizeof ac_aggr.f_frsize)
18543 return 0;
18545 return 0;
18547 _ACEOF
18548 rm -f conftest.$ac_objext
18549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18550 (eval $ac_compile) 2>conftest.er1
18551 ac_status=$?
18552 grep -v '^ *+' conftest.er1 >conftest.err
18553 rm -f conftest.er1
18554 cat conftest.err >&5
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); } &&
18557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18559 (eval $ac_try) 2>&5
18560 ac_status=$?
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); }; } &&
18563 { ac_try='test -s conftest.$ac_objext'
18564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18565 (eval $ac_try) 2>&5
18566 ac_status=$?
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); }; }; then
18569 ac_cv_member_struct_statfs_f_frsize=yes
18570 else
18571 echo "$as_me: failed program was:" >&5
18572 sed 's/^/| /' conftest.$ac_ext >&5
18574 ac_cv_member_struct_statfs_f_frsize=no
18576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18580 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
18581 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6
18582 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
18584 cat >>confdefs.h <<_ACEOF
18585 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
18586 _ACEOF
18590 echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
18591 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6
18592 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
18593 echo $ECHO_N "(cached) $ECHO_C" >&6
18594 else
18595 cat >conftest.$ac_ext <<_ACEOF
18596 /* confdefs.h. */
18597 _ACEOF
18598 cat confdefs.h >>conftest.$ac_ext
18599 cat >>conftest.$ac_ext <<_ACEOF
18600 /* end confdefs.h. */
18601 #include <sys/types.h>
18602 #ifdef HAVE_SYS_PARAM_H
18603 # include <sys/param.h>
18604 #endif
18605 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18606 # include <sys/mount.h>
18607 #else
18608 # ifdef STATFS_DEFINED_BY_SYS_VFS
18609 # include <sys/vfs.h>
18610 # else
18611 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18612 # include <sys/statfs.h>
18613 # endif
18614 # endif
18615 #endif
18618 main ()
18620 static struct statfs ac_aggr;
18621 if (ac_aggr.f_ffree)
18622 return 0;
18624 return 0;
18626 _ACEOF
18627 rm -f conftest.$ac_objext
18628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18629 (eval $ac_compile) 2>conftest.er1
18630 ac_status=$?
18631 grep -v '^ *+' conftest.er1 >conftest.err
18632 rm -f conftest.er1
18633 cat conftest.err >&5
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); } &&
18636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18638 (eval $ac_try) 2>&5
18639 ac_status=$?
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); }; } &&
18642 { ac_try='test -s conftest.$ac_objext'
18643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18644 (eval $ac_try) 2>&5
18645 ac_status=$?
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); }; }; then
18648 ac_cv_member_struct_statfs_f_ffree=yes
18649 else
18650 echo "$as_me: failed program was:" >&5
18651 sed 's/^/| /' conftest.$ac_ext >&5
18653 cat >conftest.$ac_ext <<_ACEOF
18654 /* confdefs.h. */
18655 _ACEOF
18656 cat confdefs.h >>conftest.$ac_ext
18657 cat >>conftest.$ac_ext <<_ACEOF
18658 /* end confdefs.h. */
18659 #include <sys/types.h>
18660 #ifdef HAVE_SYS_PARAM_H
18661 # include <sys/param.h>
18662 #endif
18663 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18664 # include <sys/mount.h>
18665 #else
18666 # ifdef STATFS_DEFINED_BY_SYS_VFS
18667 # include <sys/vfs.h>
18668 # else
18669 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18670 # include <sys/statfs.h>
18671 # endif
18672 # endif
18673 #endif
18676 main ()
18678 static struct statfs ac_aggr;
18679 if (sizeof ac_aggr.f_ffree)
18680 return 0;
18682 return 0;
18684 _ACEOF
18685 rm -f conftest.$ac_objext
18686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18687 (eval $ac_compile) 2>conftest.er1
18688 ac_status=$?
18689 grep -v '^ *+' conftest.er1 >conftest.err
18690 rm -f conftest.er1
18691 cat conftest.err >&5
18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); } &&
18694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18696 (eval $ac_try) 2>&5
18697 ac_status=$?
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); }; } &&
18700 { ac_try='test -s conftest.$ac_objext'
18701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18702 (eval $ac_try) 2>&5
18703 ac_status=$?
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); }; }; then
18706 ac_cv_member_struct_statfs_f_ffree=yes
18707 else
18708 echo "$as_me: failed program was:" >&5
18709 sed 's/^/| /' conftest.$ac_ext >&5
18711 ac_cv_member_struct_statfs_f_ffree=no
18713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18717 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
18718 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6
18719 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
18721 cat >>confdefs.h <<_ACEOF
18722 #define HAVE_STRUCT_STATFS_F_FFREE 1
18723 _ACEOF
18727 echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
18728 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6
18729 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
18730 echo $ECHO_N "(cached) $ECHO_C" >&6
18731 else
18732 cat >conftest.$ac_ext <<_ACEOF
18733 /* confdefs.h. */
18734 _ACEOF
18735 cat confdefs.h >>conftest.$ac_ext
18736 cat >>conftest.$ac_ext <<_ACEOF
18737 /* end confdefs.h. */
18738 #include <sys/types.h>
18739 #ifdef HAVE_SYS_PARAM_H
18740 # include <sys/param.h>
18741 #endif
18742 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18743 # include <sys/mount.h>
18744 #else
18745 # ifdef STATFS_DEFINED_BY_SYS_VFS
18746 # include <sys/vfs.h>
18747 # else
18748 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18749 # include <sys/statfs.h>
18750 # endif
18751 # endif
18752 #endif
18755 main ()
18757 static struct statfs ac_aggr;
18758 if (ac_aggr.f_favail)
18759 return 0;
18761 return 0;
18763 _ACEOF
18764 rm -f conftest.$ac_objext
18765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18766 (eval $ac_compile) 2>conftest.er1
18767 ac_status=$?
18768 grep -v '^ *+' conftest.er1 >conftest.err
18769 rm -f conftest.er1
18770 cat conftest.err >&5
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); } &&
18773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18775 (eval $ac_try) 2>&5
18776 ac_status=$?
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); }; } &&
18779 { ac_try='test -s conftest.$ac_objext'
18780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18781 (eval $ac_try) 2>&5
18782 ac_status=$?
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); }; }; then
18785 ac_cv_member_struct_statfs_f_favail=yes
18786 else
18787 echo "$as_me: failed program was:" >&5
18788 sed 's/^/| /' conftest.$ac_ext >&5
18790 cat >conftest.$ac_ext <<_ACEOF
18791 /* confdefs.h. */
18792 _ACEOF
18793 cat confdefs.h >>conftest.$ac_ext
18794 cat >>conftest.$ac_ext <<_ACEOF
18795 /* end confdefs.h. */
18796 #include <sys/types.h>
18797 #ifdef HAVE_SYS_PARAM_H
18798 # include <sys/param.h>
18799 #endif
18800 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18801 # include <sys/mount.h>
18802 #else
18803 # ifdef STATFS_DEFINED_BY_SYS_VFS
18804 # include <sys/vfs.h>
18805 # else
18806 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18807 # include <sys/statfs.h>
18808 # endif
18809 # endif
18810 #endif
18813 main ()
18815 static struct statfs ac_aggr;
18816 if (sizeof ac_aggr.f_favail)
18817 return 0;
18819 return 0;
18821 _ACEOF
18822 rm -f conftest.$ac_objext
18823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18824 (eval $ac_compile) 2>conftest.er1
18825 ac_status=$?
18826 grep -v '^ *+' conftest.er1 >conftest.err
18827 rm -f conftest.er1
18828 cat conftest.err >&5
18829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); } &&
18831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18833 (eval $ac_try) 2>&5
18834 ac_status=$?
18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); }; } &&
18837 { ac_try='test -s conftest.$ac_objext'
18838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18839 (eval $ac_try) 2>&5
18840 ac_status=$?
18841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842 (exit $ac_status); }; }; then
18843 ac_cv_member_struct_statfs_f_favail=yes
18844 else
18845 echo "$as_me: failed program was:" >&5
18846 sed 's/^/| /' conftest.$ac_ext >&5
18848 ac_cv_member_struct_statfs_f_favail=no
18850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18854 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
18855 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6
18856 if test $ac_cv_member_struct_statfs_f_favail = yes; then
18858 cat >>confdefs.h <<_ACEOF
18859 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
18860 _ACEOF
18864 echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
18865 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
18866 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
18867 echo $ECHO_N "(cached) $ECHO_C" >&6
18868 else
18869 cat >conftest.$ac_ext <<_ACEOF
18870 /* confdefs.h. */
18871 _ACEOF
18872 cat confdefs.h >>conftest.$ac_ext
18873 cat >>conftest.$ac_ext <<_ACEOF
18874 /* end confdefs.h. */
18875 #include <sys/types.h>
18876 #ifdef HAVE_SYS_PARAM_H
18877 # include <sys/param.h>
18878 #endif
18879 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18880 # include <sys/mount.h>
18881 #else
18882 # ifdef STATFS_DEFINED_BY_SYS_VFS
18883 # include <sys/vfs.h>
18884 # else
18885 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18886 # include <sys/statfs.h>
18887 # endif
18888 # endif
18889 #endif
18892 main ()
18894 static struct statfs ac_aggr;
18895 if (ac_aggr.f_namelen)
18896 return 0;
18898 return 0;
18900 _ACEOF
18901 rm -f conftest.$ac_objext
18902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18903 (eval $ac_compile) 2>conftest.er1
18904 ac_status=$?
18905 grep -v '^ *+' conftest.er1 >conftest.err
18906 rm -f conftest.er1
18907 cat conftest.err >&5
18908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909 (exit $ac_status); } &&
18910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18912 (eval $ac_try) 2>&5
18913 ac_status=$?
18914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915 (exit $ac_status); }; } &&
18916 { ac_try='test -s conftest.$ac_objext'
18917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18918 (eval $ac_try) 2>&5
18919 ac_status=$?
18920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); }; }; then
18922 ac_cv_member_struct_statfs_f_namelen=yes
18923 else
18924 echo "$as_me: failed program was:" >&5
18925 sed 's/^/| /' conftest.$ac_ext >&5
18927 cat >conftest.$ac_ext <<_ACEOF
18928 /* confdefs.h. */
18929 _ACEOF
18930 cat confdefs.h >>conftest.$ac_ext
18931 cat >>conftest.$ac_ext <<_ACEOF
18932 /* end confdefs.h. */
18933 #include <sys/types.h>
18934 #ifdef HAVE_SYS_PARAM_H
18935 # include <sys/param.h>
18936 #endif
18937 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18938 # include <sys/mount.h>
18939 #else
18940 # ifdef STATFS_DEFINED_BY_SYS_VFS
18941 # include <sys/vfs.h>
18942 # else
18943 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18944 # include <sys/statfs.h>
18945 # endif
18946 # endif
18947 #endif
18950 main ()
18952 static struct statfs ac_aggr;
18953 if (sizeof ac_aggr.f_namelen)
18954 return 0;
18956 return 0;
18958 _ACEOF
18959 rm -f conftest.$ac_objext
18960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18961 (eval $ac_compile) 2>conftest.er1
18962 ac_status=$?
18963 grep -v '^ *+' conftest.er1 >conftest.err
18964 rm -f conftest.er1
18965 cat conftest.err >&5
18966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967 (exit $ac_status); } &&
18968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18970 (eval $ac_try) 2>&5
18971 ac_status=$?
18972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); }; } &&
18974 { ac_try='test -s conftest.$ac_objext'
18975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18976 (eval $ac_try) 2>&5
18977 ac_status=$?
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); }; }; then
18980 ac_cv_member_struct_statfs_f_namelen=yes
18981 else
18982 echo "$as_me: failed program was:" >&5
18983 sed 's/^/| /' conftest.$ac_ext >&5
18985 ac_cv_member_struct_statfs_f_namelen=no
18987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18991 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
18992 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
18993 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
18995 cat >>confdefs.h <<_ACEOF
18996 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
18997 _ACEOF
19003 echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
19004 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6
19005 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
19006 echo $ECHO_N "(cached) $ECHO_C" >&6
19007 else
19008 cat >conftest.$ac_ext <<_ACEOF
19009 /* confdefs.h. */
19010 _ACEOF
19011 cat confdefs.h >>conftest.$ac_ext
19012 cat >>conftest.$ac_ext <<_ACEOF
19013 /* end confdefs.h. */
19014 #ifdef HAVE_SYS_STATVFS_H
19015 #include <sys/statvfs.h>
19016 #endif
19019 main ()
19021 static struct statvfs ac_aggr;
19022 if (ac_aggr.f_blocks)
19023 return 0;
19025 return 0;
19027 _ACEOF
19028 rm -f conftest.$ac_objext
19029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19030 (eval $ac_compile) 2>conftest.er1
19031 ac_status=$?
19032 grep -v '^ *+' conftest.er1 >conftest.err
19033 rm -f conftest.er1
19034 cat conftest.err >&5
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); } &&
19037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19039 (eval $ac_try) 2>&5
19040 ac_status=$?
19041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042 (exit $ac_status); }; } &&
19043 { ac_try='test -s conftest.$ac_objext'
19044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19045 (eval $ac_try) 2>&5
19046 ac_status=$?
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); }; }; then
19049 ac_cv_member_struct_statvfs_f_blocks=yes
19050 else
19051 echo "$as_me: failed program was:" >&5
19052 sed 's/^/| /' conftest.$ac_ext >&5
19054 cat >conftest.$ac_ext <<_ACEOF
19055 /* confdefs.h. */
19056 _ACEOF
19057 cat confdefs.h >>conftest.$ac_ext
19058 cat >>conftest.$ac_ext <<_ACEOF
19059 /* end confdefs.h. */
19060 #ifdef HAVE_SYS_STATVFS_H
19061 #include <sys/statvfs.h>
19062 #endif
19065 main ()
19067 static struct statvfs ac_aggr;
19068 if (sizeof ac_aggr.f_blocks)
19069 return 0;
19071 return 0;
19073 _ACEOF
19074 rm -f conftest.$ac_objext
19075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19076 (eval $ac_compile) 2>conftest.er1
19077 ac_status=$?
19078 grep -v '^ *+' conftest.er1 >conftest.err
19079 rm -f conftest.er1
19080 cat conftest.err >&5
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); } &&
19083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19085 (eval $ac_try) 2>&5
19086 ac_status=$?
19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088 (exit $ac_status); }; } &&
19089 { ac_try='test -s conftest.$ac_objext'
19090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19091 (eval $ac_try) 2>&5
19092 ac_status=$?
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); }; }; then
19095 ac_cv_member_struct_statvfs_f_blocks=yes
19096 else
19097 echo "$as_me: failed program was:" >&5
19098 sed 's/^/| /' conftest.$ac_ext >&5
19100 ac_cv_member_struct_statvfs_f_blocks=no
19102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19106 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
19107 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6
19108 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
19110 cat >>confdefs.h <<_ACEOF
19111 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
19112 _ACEOF
19118 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
19119 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
19120 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
19121 echo $ECHO_N "(cached) $ECHO_C" >&6
19122 else
19123 cat >conftest.$ac_ext <<_ACEOF
19124 /* confdefs.h. */
19125 _ACEOF
19126 cat confdefs.h >>conftest.$ac_ext
19127 cat >>conftest.$ac_ext <<_ACEOF
19128 /* end confdefs.h. */
19129 #include <sys/types.h>
19130 #ifdef HAVE_SYS_SOCKET_H
19131 # include <sys/socket.h>
19132 #endif
19133 #ifdef HAVE_SYS_UN_H
19134 # include <sys/un.h>
19135 #endif
19138 main ()
19140 static struct msghdr ac_aggr;
19141 if (ac_aggr.msg_accrights)
19142 return 0;
19144 return 0;
19146 _ACEOF
19147 rm -f conftest.$ac_objext
19148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19149 (eval $ac_compile) 2>conftest.er1
19150 ac_status=$?
19151 grep -v '^ *+' conftest.er1 >conftest.err
19152 rm -f conftest.er1
19153 cat conftest.err >&5
19154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155 (exit $ac_status); } &&
19156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19158 (eval $ac_try) 2>&5
19159 ac_status=$?
19160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161 (exit $ac_status); }; } &&
19162 { ac_try='test -s conftest.$ac_objext'
19163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19164 (eval $ac_try) 2>&5
19165 ac_status=$?
19166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167 (exit $ac_status); }; }; then
19168 ac_cv_member_struct_msghdr_msg_accrights=yes
19169 else
19170 echo "$as_me: failed program was:" >&5
19171 sed 's/^/| /' conftest.$ac_ext >&5
19173 cat >conftest.$ac_ext <<_ACEOF
19174 /* confdefs.h. */
19175 _ACEOF
19176 cat confdefs.h >>conftest.$ac_ext
19177 cat >>conftest.$ac_ext <<_ACEOF
19178 /* end confdefs.h. */
19179 #include <sys/types.h>
19180 #ifdef HAVE_SYS_SOCKET_H
19181 # include <sys/socket.h>
19182 #endif
19183 #ifdef HAVE_SYS_UN_H
19184 # include <sys/un.h>
19185 #endif
19188 main ()
19190 static struct msghdr ac_aggr;
19191 if (sizeof ac_aggr.msg_accrights)
19192 return 0;
19194 return 0;
19196 _ACEOF
19197 rm -f conftest.$ac_objext
19198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19199 (eval $ac_compile) 2>conftest.er1
19200 ac_status=$?
19201 grep -v '^ *+' conftest.er1 >conftest.err
19202 rm -f conftest.er1
19203 cat conftest.err >&5
19204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205 (exit $ac_status); } &&
19206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19208 (eval $ac_try) 2>&5
19209 ac_status=$?
19210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211 (exit $ac_status); }; } &&
19212 { ac_try='test -s conftest.$ac_objext'
19213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19214 (eval $ac_try) 2>&5
19215 ac_status=$?
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); }; }; then
19218 ac_cv_member_struct_msghdr_msg_accrights=yes
19219 else
19220 echo "$as_me: failed program was:" >&5
19221 sed 's/^/| /' conftest.$ac_ext >&5
19223 ac_cv_member_struct_msghdr_msg_accrights=no
19225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19229 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
19230 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
19231 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
19233 cat >>confdefs.h <<_ACEOF
19234 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
19235 _ACEOF
19239 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
19240 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
19241 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
19242 echo $ECHO_N "(cached) $ECHO_C" >&6
19243 else
19244 cat >conftest.$ac_ext <<_ACEOF
19245 /* confdefs.h. */
19246 _ACEOF
19247 cat confdefs.h >>conftest.$ac_ext
19248 cat >>conftest.$ac_ext <<_ACEOF
19249 /* end confdefs.h. */
19250 #include <sys/types.h>
19251 #ifdef HAVE_SYS_SOCKET_H
19252 # include <sys/socket.h>
19253 #endif
19254 #ifdef HAVE_SYS_UN_H
19255 # include <sys/un.h>
19256 #endif
19259 main ()
19261 static struct sockaddr ac_aggr;
19262 if (ac_aggr.sa_len)
19263 return 0;
19265 return 0;
19267 _ACEOF
19268 rm -f conftest.$ac_objext
19269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19270 (eval $ac_compile) 2>conftest.er1
19271 ac_status=$?
19272 grep -v '^ *+' conftest.er1 >conftest.err
19273 rm -f conftest.er1
19274 cat conftest.err >&5
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); } &&
19277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19279 (eval $ac_try) 2>&5
19280 ac_status=$?
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); }; } &&
19283 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19289 ac_cv_member_struct_sockaddr_sa_len=yes
19290 else
19291 echo "$as_me: failed program was:" >&5
19292 sed 's/^/| /' conftest.$ac_ext >&5
19294 cat >conftest.$ac_ext <<_ACEOF
19295 /* confdefs.h. */
19296 _ACEOF
19297 cat confdefs.h >>conftest.$ac_ext
19298 cat >>conftest.$ac_ext <<_ACEOF
19299 /* end confdefs.h. */
19300 #include <sys/types.h>
19301 #ifdef HAVE_SYS_SOCKET_H
19302 # include <sys/socket.h>
19303 #endif
19304 #ifdef HAVE_SYS_UN_H
19305 # include <sys/un.h>
19306 #endif
19309 main ()
19311 static struct sockaddr ac_aggr;
19312 if (sizeof ac_aggr.sa_len)
19313 return 0;
19315 return 0;
19317 _ACEOF
19318 rm -f conftest.$ac_objext
19319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19320 (eval $ac_compile) 2>conftest.er1
19321 ac_status=$?
19322 grep -v '^ *+' conftest.er1 >conftest.err
19323 rm -f conftest.er1
19324 cat conftest.err >&5
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); } &&
19327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19329 (eval $ac_try) 2>&5
19330 ac_status=$?
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); }; } &&
19333 { ac_try='test -s conftest.$ac_objext'
19334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19335 (eval $ac_try) 2>&5
19336 ac_status=$?
19337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338 (exit $ac_status); }; }; then
19339 ac_cv_member_struct_sockaddr_sa_len=yes
19340 else
19341 echo "$as_me: failed program was:" >&5
19342 sed 's/^/| /' conftest.$ac_ext >&5
19344 ac_cv_member_struct_sockaddr_sa_len=no
19346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19350 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
19351 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
19352 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
19354 cat >>confdefs.h <<_ACEOF
19355 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
19356 _ACEOF
19360 echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
19361 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
19362 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
19363 echo $ECHO_N "(cached) $ECHO_C" >&6
19364 else
19365 cat >conftest.$ac_ext <<_ACEOF
19366 /* confdefs.h. */
19367 _ACEOF
19368 cat confdefs.h >>conftest.$ac_ext
19369 cat >>conftest.$ac_ext <<_ACEOF
19370 /* end confdefs.h. */
19371 #include <sys/types.h>
19372 #ifdef HAVE_SYS_SOCKET_H
19373 # include <sys/socket.h>
19374 #endif
19375 #ifdef HAVE_SYS_UN_H
19376 # include <sys/un.h>
19377 #endif
19380 main ()
19382 static struct sockaddr_un ac_aggr;
19383 if (ac_aggr.sun_len)
19384 return 0;
19386 return 0;
19388 _ACEOF
19389 rm -f conftest.$ac_objext
19390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19391 (eval $ac_compile) 2>conftest.er1
19392 ac_status=$?
19393 grep -v '^ *+' conftest.er1 >conftest.err
19394 rm -f conftest.er1
19395 cat conftest.err >&5
19396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397 (exit $ac_status); } &&
19398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19400 (eval $ac_try) 2>&5
19401 ac_status=$?
19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403 (exit $ac_status); }; } &&
19404 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19410 ac_cv_member_struct_sockaddr_un_sun_len=yes
19411 else
19412 echo "$as_me: failed program was:" >&5
19413 sed 's/^/| /' conftest.$ac_ext >&5
19415 cat >conftest.$ac_ext <<_ACEOF
19416 /* confdefs.h. */
19417 _ACEOF
19418 cat confdefs.h >>conftest.$ac_ext
19419 cat >>conftest.$ac_ext <<_ACEOF
19420 /* end confdefs.h. */
19421 #include <sys/types.h>
19422 #ifdef HAVE_SYS_SOCKET_H
19423 # include <sys/socket.h>
19424 #endif
19425 #ifdef HAVE_SYS_UN_H
19426 # include <sys/un.h>
19427 #endif
19430 main ()
19432 static struct sockaddr_un ac_aggr;
19433 if (sizeof ac_aggr.sun_len)
19434 return 0;
19436 return 0;
19438 _ACEOF
19439 rm -f conftest.$ac_objext
19440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19441 (eval $ac_compile) 2>conftest.er1
19442 ac_status=$?
19443 grep -v '^ *+' conftest.er1 >conftest.err
19444 rm -f conftest.er1
19445 cat conftest.err >&5
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); } &&
19448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19450 (eval $ac_try) 2>&5
19451 ac_status=$?
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); }; } &&
19454 { ac_try='test -s conftest.$ac_objext'
19455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19456 (eval $ac_try) 2>&5
19457 ac_status=$?
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); }; }; then
19460 ac_cv_member_struct_sockaddr_un_sun_len=yes
19461 else
19462 echo "$as_me: failed program was:" >&5
19463 sed 's/^/| /' conftest.$ac_ext >&5
19465 ac_cv_member_struct_sockaddr_un_sun_len=no
19467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19471 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
19472 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
19473 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
19475 cat >>confdefs.h <<_ACEOF
19476 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
19477 _ACEOF
19483 echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
19484 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
19485 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
19486 echo $ECHO_N "(cached) $ECHO_C" >&6
19487 else
19488 cat >conftest.$ac_ext <<_ACEOF
19489 /* confdefs.h. */
19490 _ACEOF
19491 cat confdefs.h >>conftest.$ac_ext
19492 cat >>conftest.$ac_ext <<_ACEOF
19493 /* end confdefs.h. */
19494 #include <signal.h>
19497 main ()
19499 static siginfo_t ac_aggr;
19500 if (ac_aggr.si_fd)
19501 return 0;
19503 return 0;
19505 _ACEOF
19506 rm -f conftest.$ac_objext
19507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19508 (eval $ac_compile) 2>conftest.er1
19509 ac_status=$?
19510 grep -v '^ *+' conftest.er1 >conftest.err
19511 rm -f conftest.er1
19512 cat conftest.err >&5
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); } &&
19515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19517 (eval $ac_try) 2>&5
19518 ac_status=$?
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); }; } &&
19521 { ac_try='test -s conftest.$ac_objext'
19522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19523 (eval $ac_try) 2>&5
19524 ac_status=$?
19525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526 (exit $ac_status); }; }; then
19527 ac_cv_member_siginfo_t_si_fd=yes
19528 else
19529 echo "$as_me: failed program was:" >&5
19530 sed 's/^/| /' conftest.$ac_ext >&5
19532 cat >conftest.$ac_ext <<_ACEOF
19533 /* confdefs.h. */
19534 _ACEOF
19535 cat confdefs.h >>conftest.$ac_ext
19536 cat >>conftest.$ac_ext <<_ACEOF
19537 /* end confdefs.h. */
19538 #include <signal.h>
19541 main ()
19543 static siginfo_t ac_aggr;
19544 if (sizeof ac_aggr.si_fd)
19545 return 0;
19547 return 0;
19549 _ACEOF
19550 rm -f conftest.$ac_objext
19551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19552 (eval $ac_compile) 2>conftest.er1
19553 ac_status=$?
19554 grep -v '^ *+' conftest.er1 >conftest.err
19555 rm -f conftest.er1
19556 cat conftest.err >&5
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); } &&
19559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19561 (eval $ac_try) 2>&5
19562 ac_status=$?
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); }; } &&
19565 { ac_try='test -s conftest.$ac_objext'
19566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19567 (eval $ac_try) 2>&5
19568 ac_status=$?
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); }; }; then
19571 ac_cv_member_siginfo_t_si_fd=yes
19572 else
19573 echo "$as_me: failed program was:" >&5
19574 sed 's/^/| /' conftest.$ac_ext >&5
19576 ac_cv_member_siginfo_t_si_fd=no
19578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19582 echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
19583 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
19584 if test $ac_cv_member_siginfo_t_si_fd = yes; then
19586 cat >>confdefs.h <<_ACEOF
19587 #define HAVE_SIGINFO_T_SI_FD 1
19588 _ACEOF
19594 echo "$as_me:$LINENO: checking for struct option.name" >&5
19595 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
19596 if test "${ac_cv_member_struct_option_name+set}" = set; then
19597 echo $ECHO_N "(cached) $ECHO_C" >&6
19598 else
19599 cat >conftest.$ac_ext <<_ACEOF
19600 /* confdefs.h. */
19601 _ACEOF
19602 cat confdefs.h >>conftest.$ac_ext
19603 cat >>conftest.$ac_ext <<_ACEOF
19604 /* end confdefs.h. */
19605 #ifdef HAVE_GETOPT_H
19606 #include <getopt.h>
19607 #endif
19610 main ()
19612 static struct option ac_aggr;
19613 if (ac_aggr.name)
19614 return 0;
19616 return 0;
19618 _ACEOF
19619 rm -f conftest.$ac_objext
19620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19621 (eval $ac_compile) 2>conftest.er1
19622 ac_status=$?
19623 grep -v '^ *+' conftest.er1 >conftest.err
19624 rm -f conftest.er1
19625 cat conftest.err >&5
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); } &&
19628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19630 (eval $ac_try) 2>&5
19631 ac_status=$?
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); }; } &&
19634 { ac_try='test -s conftest.$ac_objext'
19635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19636 (eval $ac_try) 2>&5
19637 ac_status=$?
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; }; then
19640 ac_cv_member_struct_option_name=yes
19641 else
19642 echo "$as_me: failed program was:" >&5
19643 sed 's/^/| /' conftest.$ac_ext >&5
19645 cat >conftest.$ac_ext <<_ACEOF
19646 /* confdefs.h. */
19647 _ACEOF
19648 cat confdefs.h >>conftest.$ac_ext
19649 cat >>conftest.$ac_ext <<_ACEOF
19650 /* end confdefs.h. */
19651 #ifdef HAVE_GETOPT_H
19652 #include <getopt.h>
19653 #endif
19656 main ()
19658 static struct option ac_aggr;
19659 if (sizeof ac_aggr.name)
19660 return 0;
19662 return 0;
19664 _ACEOF
19665 rm -f conftest.$ac_objext
19666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19667 (eval $ac_compile) 2>conftest.er1
19668 ac_status=$?
19669 grep -v '^ *+' conftest.er1 >conftest.err
19670 rm -f conftest.er1
19671 cat conftest.err >&5
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); } &&
19674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19676 (eval $ac_try) 2>&5
19677 ac_status=$?
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); }; } &&
19680 { ac_try='test -s conftest.$ac_objext'
19681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19682 (eval $ac_try) 2>&5
19683 ac_status=$?
19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); }; }; then
19686 ac_cv_member_struct_option_name=yes
19687 else
19688 echo "$as_me: failed program was:" >&5
19689 sed 's/^/| /' conftest.$ac_ext >&5
19691 ac_cv_member_struct_option_name=no
19693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19697 echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
19698 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
19699 if test $ac_cv_member_struct_option_name = yes; then
19701 cat >>confdefs.h <<_ACEOF
19702 #define HAVE_STRUCT_OPTION_NAME 1
19703 _ACEOF
19709 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19710 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
19711 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19712 echo $ECHO_N "(cached) $ECHO_C" >&6
19713 else
19714 cat >conftest.$ac_ext <<_ACEOF
19715 /* confdefs.h. */
19716 _ACEOF
19717 cat confdefs.h >>conftest.$ac_ext
19718 cat >>conftest.$ac_ext <<_ACEOF
19719 /* end confdefs.h. */
19720 $ac_includes_default
19722 main ()
19724 static struct stat ac_aggr;
19725 if (ac_aggr.st_blocks)
19726 return 0;
19728 return 0;
19730 _ACEOF
19731 rm -f conftest.$ac_objext
19732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19733 (eval $ac_compile) 2>conftest.er1
19734 ac_status=$?
19735 grep -v '^ *+' conftest.er1 >conftest.err
19736 rm -f conftest.er1
19737 cat conftest.err >&5
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); } &&
19740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19742 (eval $ac_try) 2>&5
19743 ac_status=$?
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); }; } &&
19746 { ac_try='test -s conftest.$ac_objext'
19747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19748 (eval $ac_try) 2>&5
19749 ac_status=$?
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); }; }; then
19752 ac_cv_member_struct_stat_st_blocks=yes
19753 else
19754 echo "$as_me: failed program was:" >&5
19755 sed 's/^/| /' conftest.$ac_ext >&5
19757 cat >conftest.$ac_ext <<_ACEOF
19758 /* confdefs.h. */
19759 _ACEOF
19760 cat confdefs.h >>conftest.$ac_ext
19761 cat >>conftest.$ac_ext <<_ACEOF
19762 /* end confdefs.h. */
19763 $ac_includes_default
19765 main ()
19767 static struct stat ac_aggr;
19768 if (sizeof ac_aggr.st_blocks)
19769 return 0;
19771 return 0;
19773 _ACEOF
19774 rm -f conftest.$ac_objext
19775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19776 (eval $ac_compile) 2>conftest.er1
19777 ac_status=$?
19778 grep -v '^ *+' conftest.er1 >conftest.err
19779 rm -f conftest.er1
19780 cat conftest.err >&5
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); } &&
19783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19785 (eval $ac_try) 2>&5
19786 ac_status=$?
19787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788 (exit $ac_status); }; } &&
19789 { ac_try='test -s conftest.$ac_objext'
19790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19791 (eval $ac_try) 2>&5
19792 ac_status=$?
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); }; }; then
19795 ac_cv_member_struct_stat_st_blocks=yes
19796 else
19797 echo "$as_me: failed program was:" >&5
19798 sed 's/^/| /' conftest.$ac_ext >&5
19800 ac_cv_member_struct_stat_st_blocks=no
19802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19806 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19807 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
19808 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19810 cat >>confdefs.h <<_ACEOF
19811 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19812 _ACEOF
19819 case $host_cpu in
19820 *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
19821 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
19822 if test "${ac_cv_cpp_def___i386__+set}" = set; then
19823 echo $ECHO_N "(cached) $ECHO_C" >&6
19824 else
19825 cat >conftest.$ac_ext <<_ACEOF
19826 /* confdefs.h. */
19827 _ACEOF
19828 cat confdefs.h >>conftest.$ac_ext
19829 cat >>conftest.$ac_ext <<_ACEOF
19830 /* end confdefs.h. */
19831 #ifndef __i386__
19833 #endif
19834 _ACEOF
19835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19836 $EGREP "yes" >/dev/null 2>&1; then
19837 ac_cv_cpp_def___i386__=yes
19838 else
19839 ac_cv_cpp_def___i386__=no
19841 rm -f conftest*
19844 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
19845 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
19846 if test $ac_cv_cpp_def___i386__ = yes; then
19847 CFLAGS="$CFLAGS -D__i386__"
19848 LINTFLAGS="$LINTFLAGS -D__i386__"
19851 *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
19852 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
19853 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
19854 echo $ECHO_N "(cached) $ECHO_C" >&6
19855 else
19856 cat >conftest.$ac_ext <<_ACEOF
19857 /* confdefs.h. */
19858 _ACEOF
19859 cat confdefs.h >>conftest.$ac_ext
19860 cat >>conftest.$ac_ext <<_ACEOF
19861 /* end confdefs.h. */
19862 #ifndef __ALPHA__
19864 #endif
19865 _ACEOF
19866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19867 $EGREP "yes" >/dev/null 2>&1; then
19868 ac_cv_cpp_def___ALPHA__=yes
19869 else
19870 ac_cv_cpp_def___ALPHA__=no
19872 rm -f conftest*
19875 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
19876 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
19877 if test $ac_cv_cpp_def___ALPHA__ = yes; then
19878 CFLAGS="$CFLAGS -D__ALPHA__"
19879 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
19882 *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
19883 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
19884 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
19885 echo $ECHO_N "(cached) $ECHO_C" >&6
19886 else
19887 cat >conftest.$ac_ext <<_ACEOF
19888 /* confdefs.h. */
19889 _ACEOF
19890 cat confdefs.h >>conftest.$ac_ext
19891 cat >>conftest.$ac_ext <<_ACEOF
19892 /* end confdefs.h. */
19893 #ifndef __sparc__
19895 #endif
19896 _ACEOF
19897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19898 $EGREP "yes" >/dev/null 2>&1; then
19899 ac_cv_cpp_def___sparc__=yes
19900 else
19901 ac_cv_cpp_def___sparc__=no
19903 rm -f conftest*
19906 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
19907 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
19908 if test $ac_cv_cpp_def___sparc__ = yes; then
19909 CFLAGS="$CFLAGS -D__sparc__"
19910 LINTFLAGS="$LINTFLAGS -D__sparc__"
19913 *powerpc*) echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
19914 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
19915 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
19916 echo $ECHO_N "(cached) $ECHO_C" >&6
19917 else
19918 cat >conftest.$ac_ext <<_ACEOF
19919 /* confdefs.h. */
19920 _ACEOF
19921 cat confdefs.h >>conftest.$ac_ext
19922 cat >>conftest.$ac_ext <<_ACEOF
19923 /* end confdefs.h. */
19924 #ifndef __powerpc__
19926 #endif
19927 _ACEOF
19928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19929 $EGREP "yes" >/dev/null 2>&1; then
19930 ac_cv_cpp_def___powerpc__=yes
19931 else
19932 ac_cv_cpp_def___powerpc__=no
19934 rm -f conftest*
19937 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
19938 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
19939 if test $ac_cv_cpp_def___powerpc__ = yes; then
19940 CFLAGS="$CFLAGS -D__powerpc__"
19941 LINTFLAGS="$LINTFLAGS -D__powerpc__"
19944 esac
19946 case $host_vendor in
19947 *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
19948 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
19949 if test "${ac_cv_cpp_def___sun__+set}" = set; then
19950 echo $ECHO_N "(cached) $ECHO_C" >&6
19951 else
19952 cat >conftest.$ac_ext <<_ACEOF
19953 /* confdefs.h. */
19954 _ACEOF
19955 cat confdefs.h >>conftest.$ac_ext
19956 cat >>conftest.$ac_ext <<_ACEOF
19957 /* end confdefs.h. */
19958 #ifndef __sun__
19960 #endif
19961 _ACEOF
19962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19963 $EGREP "yes" >/dev/null 2>&1; then
19964 ac_cv_cpp_def___sun__=yes
19965 else
19966 ac_cv_cpp_def___sun__=no
19968 rm -f conftest*
19971 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
19972 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
19973 if test $ac_cv_cpp_def___sun__ = yes; then
19974 CFLAGS="$CFLAGS -D__sun__"
19975 LINTFLAGS="$LINTFLAGS -D__sun__"
19978 esac
19984 ac_config_commands="$ac_config_commands controls"
19986 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
19988 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
19990 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
19992 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
19994 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
19996 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
19998 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
20000 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
20002 ac_config_commands="$ac_config_commands dlls/kernel/messages"
20004 ac_config_commands="$ac_config_commands dlls/user/dde"
20006 ac_config_commands="$ac_config_commands dlls/user/resources"
20008 ac_config_commands="$ac_config_commands dlls/wineps/data"
20010 ac_config_commands="$ac_config_commands files"
20012 ac_config_commands="$ac_config_commands include/wine"
20014 ac_config_commands="$ac_config_commands misc"
20016 ac_config_commands="$ac_config_commands objects"
20018 ac_config_commands="$ac_config_commands programs/regedit/tests"
20020 ac_config_commands="$ac_config_commands windows"
20023 MAKE_RULES=Make.rules
20026 MAKE_DLL_RULES=dlls/Makedll.rules
20029 MAKE_TEST_RULES=dlls/Maketest.rules
20032 MAKE_LIB_RULES=libs/Makelib.rules
20035 MAKE_PROG_RULES=programs/Makeprog.rules
20038 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules libs/Makelib.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/amstream/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/capi2032/Makefile dlls/cards/Makefile dlls/cfgmgr32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3d9/Makefile dlls/d3dim/Makefile dlls/d3dx8/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/dswave/Makefile dlls/dxerr8/Makefile dlls/dxerr9/Makefile dlls/dxguid/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/iccvid/Makefile dlls/icmp/Makefile dlls/ifsmgr.vxd/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msdmo/Makefile dlls/mshtml/Makefile dlls/msi/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrt40/Makefile dlls/msvcrtd/Makefile dlls/msvidc32/Makefile dlls/msvideo/Makefile dlls/mswsock/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/newdev/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/rsabase/Makefile dlls/secur32/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/uuid/Makefile dlls/uxtheme/Makefile dlls/vdhcp.vxd/Makefile dlls/version/Makefile dlls/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"
20041 cat >confcache <<\_ACEOF
20042 # This file is a shell script that caches the results of configure
20043 # tests run on this system so they can be shared between configure
20044 # scripts and configure runs, see configure's option --config-cache.
20045 # It is not useful on other systems. If it contains results you don't
20046 # want to keep, you may remove or edit it.
20048 # config.status only pays attention to the cache file if you give it
20049 # the --recheck option to rerun configure.
20051 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20052 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20053 # following values.
20055 _ACEOF
20057 # The following way of writing the cache mishandles newlines in values,
20058 # but we know of no workaround that is simple, portable, and efficient.
20059 # So, don't put newlines in cache variables' values.
20060 # Ultrix sh set writes to stderr and can't be redirected directly,
20061 # and sets the high bit in the cache file unless we assign to the vars.
20063 (set) 2>&1 |
20064 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20065 *ac_space=\ *)
20066 # `set' does not quote correctly, so add quotes (double-quote
20067 # substitution turns \\\\ into \\, and sed turns \\ into \).
20068 sed -n \
20069 "s/'/'\\\\''/g;
20070 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20073 # `set' quotes correctly as required by POSIX, so do not add quotes.
20074 sed -n \
20075 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20077 esac;
20079 sed '
20080 t clear
20081 : clear
20082 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20083 t end
20084 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20085 : end' >>confcache
20086 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20087 if test -w $cache_file; then
20088 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20089 cat confcache >$cache_file
20090 else
20091 echo "not updating unwritable cache $cache_file"
20094 rm -f confcache
20096 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20097 # Let make expand exec_prefix.
20098 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20100 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20101 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20102 # trailing colons and then remove the whole line if VPATH becomes empty
20103 # (actually we leave an empty line to preserve line numbers).
20104 if test "x$srcdir" = x.; then
20105 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20106 s/:*\$(srcdir):*/:/;
20107 s/:*\${srcdir}:*/:/;
20108 s/:*@srcdir@:*/:/;
20109 s/^\([^=]*=[ ]*\):*/\1/;
20110 s/:*$//;
20111 s/^[^=]*=[ ]*$//;
20115 DEFS=-DHAVE_CONFIG_H
20117 ac_libobjs=
20118 ac_ltlibobjs=
20119 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20120 # 1. Remove the extension, and $U if already installed.
20121 ac_i=`echo "$ac_i" |
20122 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20123 # 2. Add them.
20124 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20125 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20126 done
20127 LIBOBJS=$ac_libobjs
20129 LTLIBOBJS=$ac_ltlibobjs
20133 : ${CONFIG_STATUS=./config.status}
20134 ac_clean_files_save=$ac_clean_files
20135 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20136 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20137 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20138 cat >$CONFIG_STATUS <<_ACEOF
20139 #! $SHELL
20140 # Generated by $as_me.
20141 # Run this file to recreate the current configuration.
20142 # Compiler output produced by configure, useful for debugging
20143 # configure, is in config.log if it exists.
20145 debug=false
20146 ac_cs_recheck=false
20147 ac_cs_silent=false
20148 SHELL=\${CONFIG_SHELL-$SHELL}
20149 _ACEOF
20151 cat >>$CONFIG_STATUS <<\_ACEOF
20152 ## --------------------- ##
20153 ## M4sh Initialization. ##
20154 ## --------------------- ##
20156 # Be Bourne compatible
20157 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20158 emulate sh
20159 NULLCMD=:
20160 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20161 # is contrary to our usage. Disable this feature.
20162 alias -g '${1+"$@"}'='"$@"'
20163 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20164 set -o posix
20166 DUALCASE=1; export DUALCASE # for MKS sh
20168 # Support unset when possible.
20169 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20170 as_unset=unset
20171 else
20172 as_unset=false
20176 # Work around bugs in pre-3.0 UWIN ksh.
20177 $as_unset ENV MAIL MAILPATH
20178 PS1='$ '
20179 PS2='> '
20180 PS4='+ '
20182 # NLS nuisances.
20183 for as_var in \
20184 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20185 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20186 LC_TELEPHONE LC_TIME
20188 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20189 eval $as_var=C; export $as_var
20190 else
20191 $as_unset $as_var
20193 done
20195 # Required to use basename.
20196 if expr a : '\(a\)' >/dev/null 2>&1; then
20197 as_expr=expr
20198 else
20199 as_expr=false
20202 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20203 as_basename=basename
20204 else
20205 as_basename=false
20209 # Name of the executable.
20210 as_me=`$as_basename "$0" ||
20211 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20212 X"$0" : 'X\(//\)$' \| \
20213 X"$0" : 'X\(/\)$' \| \
20214 . : '\(.\)' 2>/dev/null ||
20215 echo X/"$0" |
20216 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20217 /^X\/\(\/\/\)$/{ s//\1/; q; }
20218 /^X\/\(\/\).*/{ s//\1/; q; }
20219 s/.*/./; q'`
20222 # PATH needs CR, and LINENO needs CR and PATH.
20223 # Avoid depending upon Character Ranges.
20224 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20225 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20226 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20227 as_cr_digits='0123456789'
20228 as_cr_alnum=$as_cr_Letters$as_cr_digits
20230 # The user is always right.
20231 if test "${PATH_SEPARATOR+set}" != set; then
20232 echo "#! /bin/sh" >conf$$.sh
20233 echo "exit 0" >>conf$$.sh
20234 chmod +x conf$$.sh
20235 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20236 PATH_SEPARATOR=';'
20237 else
20238 PATH_SEPARATOR=:
20240 rm -f conf$$.sh
20244 as_lineno_1=$LINENO
20245 as_lineno_2=$LINENO
20246 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20247 test "x$as_lineno_1" != "x$as_lineno_2" &&
20248 test "x$as_lineno_3" = "x$as_lineno_2" || {
20249 # Find who we are. Look in the path if we contain no path at all
20250 # relative or not.
20251 case $0 in
20252 *[\\/]* ) as_myself=$0 ;;
20253 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20254 for as_dir in $PATH
20256 IFS=$as_save_IFS
20257 test -z "$as_dir" && as_dir=.
20258 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20259 done
20262 esac
20263 # We did not find ourselves, most probably we were run as `sh COMMAND'
20264 # in which case we are not to be found in the path.
20265 if test "x$as_myself" = x; then
20266 as_myself=$0
20268 if test ! -f "$as_myself"; then
20269 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20270 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20271 { (exit 1); exit 1; }; }
20273 case $CONFIG_SHELL in
20275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20276 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20278 IFS=$as_save_IFS
20279 test -z "$as_dir" && as_dir=.
20280 for as_base in sh bash ksh sh5; do
20281 case $as_dir in
20283 if ("$as_dir/$as_base" -c '
20284 as_lineno_1=$LINENO
20285 as_lineno_2=$LINENO
20286 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20287 test "x$as_lineno_1" != "x$as_lineno_2" &&
20288 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20289 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20290 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20291 CONFIG_SHELL=$as_dir/$as_base
20292 export CONFIG_SHELL
20293 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20294 fi;;
20295 esac
20296 done
20297 done
20299 esac
20301 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20302 # uniformly replaced by the line number. The first 'sed' inserts a
20303 # line-number line before each line; the second 'sed' does the real
20304 # work. The second script uses 'N' to pair each line-number line
20305 # with the numbered line, and appends trailing '-' during
20306 # substitution so that $LINENO is not a special case at line end.
20307 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20308 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20309 sed '=' <$as_myself |
20310 sed '
20312 s,$,-,
20313 : loop
20314 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20315 t loop
20316 s,-$,,
20317 s,^['$as_cr_digits']*\n,,
20318 ' >$as_me.lineno &&
20319 chmod +x $as_me.lineno ||
20320 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20321 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20322 { (exit 1); exit 1; }; }
20324 # Don't try to exec as it changes $[0], causing all sort of problems
20325 # (the dirname of $[0] is not the place where we might find the
20326 # original and so on. Autoconf is especially sensible to this).
20327 . ./$as_me.lineno
20328 # Exit status is that of the last command.
20329 exit
20333 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20334 *c*,-n*) ECHO_N= ECHO_C='
20335 ' ECHO_T=' ' ;;
20336 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20337 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20338 esac
20340 if expr a : '\(a\)' >/dev/null 2>&1; then
20341 as_expr=expr
20342 else
20343 as_expr=false
20346 rm -f conf$$ conf$$.exe conf$$.file
20347 echo >conf$$.file
20348 if ln -s conf$$.file conf$$ 2>/dev/null; then
20349 # We could just check for DJGPP; but this test a) works b) is more generic
20350 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20351 if test -f conf$$.exe; then
20352 # Don't use ln at all; we don't have any links
20353 as_ln_s='cp -p'
20354 else
20355 as_ln_s='ln -s'
20357 elif ln conf$$.file conf$$ 2>/dev/null; then
20358 as_ln_s=ln
20359 else
20360 as_ln_s='cp -p'
20362 rm -f conf$$ conf$$.exe conf$$.file
20364 if mkdir -p . 2>/dev/null; then
20365 as_mkdir_p=:
20366 else
20367 test -d ./-p && rmdir ./-p
20368 as_mkdir_p=false
20371 as_executable_p="test -f"
20373 # Sed expression to map a string onto a valid CPP name.
20374 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20376 # Sed expression to map a string onto a valid variable name.
20377 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20380 # IFS
20381 # We need space, tab and new line, in precisely that order.
20382 as_nl='
20384 IFS=" $as_nl"
20386 # CDPATH.
20387 $as_unset CDPATH
20389 exec 6>&1
20391 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20392 # report actual input values of CONFIG_FILES etc. instead of their
20393 # values after options handling. Logging --version etc. is OK.
20394 exec 5>>config.log
20396 echo
20397 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20398 ## Running $as_me. ##
20399 _ASBOX
20400 } >&5
20401 cat >&5 <<_CSEOF
20403 This file was extended by Wine $as_me 20040309, which was
20404 generated by GNU Autoconf 2.59. Invocation command line was
20406 CONFIG_FILES = $CONFIG_FILES
20407 CONFIG_HEADERS = $CONFIG_HEADERS
20408 CONFIG_LINKS = $CONFIG_LINKS
20409 CONFIG_COMMANDS = $CONFIG_COMMANDS
20410 $ $0 $@
20412 _CSEOF
20413 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20414 echo >&5
20415 _ACEOF
20417 # Files that config.status was made for.
20418 if test -n "$ac_config_files"; then
20419 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20422 if test -n "$ac_config_headers"; then
20423 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20426 if test -n "$ac_config_links"; then
20427 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20430 if test -n "$ac_config_commands"; then
20431 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20434 cat >>$CONFIG_STATUS <<\_ACEOF
20436 ac_cs_usage="\
20437 \`$as_me' instantiates files from templates according to the
20438 current configuration.
20440 Usage: $0 [OPTIONS] [FILE]...
20442 -h, --help print this help, then exit
20443 -V, --version print version number, then exit
20444 -q, --quiet do not print progress messages
20445 -d, --debug don't remove temporary files
20446 --recheck update $as_me by reconfiguring in the same conditions
20447 --file=FILE[:TEMPLATE]
20448 instantiate the configuration file FILE
20449 --header=FILE[:TEMPLATE]
20450 instantiate the configuration header FILE
20452 Configuration files:
20453 $config_files
20455 Configuration headers:
20456 $config_headers
20458 Configuration commands:
20459 $config_commands
20461 Report bugs to <bug-autoconf@gnu.org>."
20462 _ACEOF
20464 cat >>$CONFIG_STATUS <<_ACEOF
20465 ac_cs_version="\\
20466 Wine config.status 20040309
20467 configured by $0, generated by GNU Autoconf 2.59,
20468 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20470 Copyright (C) 2003 Free Software Foundation, Inc.
20471 This config.status script is free software; the Free Software Foundation
20472 gives unlimited permission to copy, distribute and modify it."
20473 srcdir=$srcdir
20474 INSTALL="$INSTALL"
20475 _ACEOF
20477 cat >>$CONFIG_STATUS <<\_ACEOF
20478 # If no file are specified by the user, then we need to provide default
20479 # value. By we need to know if files were specified by the user.
20480 ac_need_defaults=:
20481 while test $# != 0
20483 case $1 in
20484 --*=*)
20485 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20486 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20487 ac_shift=:
20490 ac_option=$1
20491 ac_optarg=$2
20492 ac_shift=shift
20494 *) # This is not an option, so the user has probably given explicit
20495 # arguments.
20496 ac_option=$1
20497 ac_need_defaults=false;;
20498 esac
20500 case $ac_option in
20501 # Handling of the options.
20502 _ACEOF
20503 cat >>$CONFIG_STATUS <<\_ACEOF
20504 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20505 ac_cs_recheck=: ;;
20506 --version | --vers* | -V )
20507 echo "$ac_cs_version"; exit 0 ;;
20508 --he | --h)
20509 # Conflict between --help and --header
20510 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20511 Try \`$0 --help' for more information." >&5
20512 echo "$as_me: error: ambiguous option: $1
20513 Try \`$0 --help' for more information." >&2;}
20514 { (exit 1); exit 1; }; };;
20515 --help | --hel | -h )
20516 echo "$ac_cs_usage"; exit 0 ;;
20517 --debug | --d* | -d )
20518 debug=: ;;
20519 --file | --fil | --fi | --f )
20520 $ac_shift
20521 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20522 ac_need_defaults=false;;
20523 --header | --heade | --head | --hea )
20524 $ac_shift
20525 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20526 ac_need_defaults=false;;
20527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20528 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20529 ac_cs_silent=: ;;
20531 # This is an error.
20532 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20533 Try \`$0 --help' for more information." >&5
20534 echo "$as_me: error: unrecognized option: $1
20535 Try \`$0 --help' for more information." >&2;}
20536 { (exit 1); exit 1; }; } ;;
20538 *) ac_config_targets="$ac_config_targets $1" ;;
20540 esac
20541 shift
20542 done
20544 ac_configure_extra_args=
20546 if $ac_cs_silent; then
20547 exec 6>/dev/null
20548 ac_configure_extra_args="$ac_configure_extra_args --silent"
20551 _ACEOF
20552 cat >>$CONFIG_STATUS <<_ACEOF
20553 if \$ac_cs_recheck; then
20554 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20555 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20558 _ACEOF
20564 cat >>$CONFIG_STATUS <<\_ACEOF
20565 for ac_config_target in $ac_config_targets
20567 case "$ac_config_target" in
20568 # Handling of arguments.
20569 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
20570 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
20571 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
20572 "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
20573 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
20574 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20575 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
20576 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
20577 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
20578 "dlls/amstream/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
20579 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
20580 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
20581 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
20582 "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
20583 "dlls/cards/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
20584 "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
20585 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
20586 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
20587 "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
20588 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
20589 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
20590 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
20591 "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
20592 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
20593 "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
20594 "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
20595 "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
20596 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
20597 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
20598 "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
20599 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
20600 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
20601 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
20602 "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
20603 "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
20604 "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
20605 "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
20606 "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
20607 "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
20608 "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
20609 "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
20610 "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
20611 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
20612 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
20613 "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
20614 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
20615 "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
20616 "dlls/dswave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
20617 "dlls/dxerr8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
20618 "dlls/dxerr9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
20619 "dlls/dxguid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
20620 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
20621 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
20622 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
20623 "dlls/glut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
20624 "dlls/iccvid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
20625 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
20626 "dlls/ifsmgr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
20627 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
20628 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
20629 "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
20630 "dlls/iphlpapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
20631 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
20632 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
20633 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
20634 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
20635 "dlls/mmdevldr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
20636 "dlls/monodebg.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
20637 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
20638 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
20639 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
20640 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
20641 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
20642 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
20643 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
20644 "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
20645 "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
20646 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
20647 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
20648 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
20649 "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
20650 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
20651 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
20652 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
20653 "dlls/msvcrt40/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
20654 "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
20655 "dlls/msvidc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
20656 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
20657 "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
20658 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
20659 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
20660 "dlls/newdev/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
20661 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
20662 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
20663 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
20664 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
20665 "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
20666 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
20667 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
20668 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
20669 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
20670 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
20671 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
20672 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
20673 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
20674 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
20675 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
20676 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
20677 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
20678 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
20679 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
20680 "dlls/rsabase/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
20681 "dlls/secur32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
20682 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
20683 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
20684 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
20685 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
20686 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
20687 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
20688 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
20689 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
20690 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
20691 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
20692 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
20693 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
20694 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
20695 "dlls/unicows/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
20696 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
20697 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
20698 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
20699 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
20700 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
20701 "dlls/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
20702 "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
20703 "dlls/vdhcp.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
20704 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
20705 "dlls/vmm.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
20706 "dlls/vnbt.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
20707 "dlls/vnetbios.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
20708 "dlls/vtdapi.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
20709 "dlls/vwin32.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
20710 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
20711 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
20712 "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
20713 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
20714 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
20715 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
20716 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
20717 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
20718 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
20719 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
20720 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
20721 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
20722 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
20723 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
20724 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
20725 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
20726 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
20727 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
20728 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
20729 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
20730 "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
20731 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
20732 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
20733 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
20734 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
20735 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
20736 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
20737 "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
20738 "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
20739 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
20740 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
20741 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
20742 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
20743 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
20744 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20745 "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
20746 "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
20747 "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
20748 "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
20749 "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
20750 "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
20751 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
20752 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
20753 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
20754 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
20755 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
20756 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
20757 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
20758 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
20759 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
20760 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
20761 "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
20762 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
20763 "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
20764 "programs/taskmgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
20765 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
20766 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
20767 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
20768 "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
20769 "programs/winebrowser/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
20770 "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
20771 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
20772 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
20773 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
20774 "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
20775 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
20776 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
20777 "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
20778 "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
20779 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
20780 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
20781 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
20782 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
20783 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
20784 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
20785 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
20786 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
20787 "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
20788 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
20789 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
20790 "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
20791 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
20792 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
20793 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
20794 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
20795 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
20796 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
20797 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
20798 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
20799 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
20800 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
20801 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
20802 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
20803 "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
20804 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
20805 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
20806 "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
20807 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
20808 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
20809 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
20810 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20811 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20812 { (exit 1); exit 1; }; };;
20813 esac
20814 done
20816 # If the user did not use the arguments to specify the items to instantiate,
20817 # then the envvar interface is used. Set only those that are not.
20818 # We use the long form for the default assignment because of an extremely
20819 # bizarre bug on SunOS 4.1.3.
20820 if $ac_need_defaults; then
20821 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20822 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20823 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20826 # Have a temporary directory for convenience. Make it in the build tree
20827 # simply because there is no reason to put it here, and in addition,
20828 # creating and moving files from /tmp can sometimes cause problems.
20829 # Create a temporary directory, and hook for its removal unless debugging.
20830 $debug ||
20832 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20833 trap '{ (exit 1); exit 1; }' 1 2 13 15
20836 # Create a (secure) tmp directory for tmp files.
20839 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20840 test -n "$tmp" && test -d "$tmp"
20841 } ||
20843 tmp=./confstat$$-$RANDOM
20844 (umask 077 && mkdir $tmp)
20845 } ||
20847 echo "$me: cannot create a temporary directory in ." >&2
20848 { (exit 1); exit 1; }
20851 _ACEOF
20853 cat >>$CONFIG_STATUS <<_ACEOF
20856 # CONFIG_FILES section.
20859 # No need to generate the scripts if there are no CONFIG_FILES.
20860 # This happens for instance when ./config.status config.h
20861 if test -n "\$CONFIG_FILES"; then
20862 # Protect against being on the right side of a sed subst in config.status.
20863 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20864 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20865 s,@SHELL@,$SHELL,;t t
20866 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20867 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20868 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20869 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20870 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20871 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20872 s,@exec_prefix@,$exec_prefix,;t t
20873 s,@prefix@,$prefix,;t t
20874 s,@program_transform_name@,$program_transform_name,;t t
20875 s,@bindir@,$bindir,;t t
20876 s,@sbindir@,$sbindir,;t t
20877 s,@libexecdir@,$libexecdir,;t t
20878 s,@datadir@,$datadir,;t t
20879 s,@sysconfdir@,$sysconfdir,;t t
20880 s,@sharedstatedir@,$sharedstatedir,;t t
20881 s,@localstatedir@,$localstatedir,;t t
20882 s,@libdir@,$libdir,;t t
20883 s,@includedir@,$includedir,;t t
20884 s,@oldincludedir@,$oldincludedir,;t t
20885 s,@infodir@,$infodir,;t t
20886 s,@mandir@,$mandir,;t t
20887 s,@build_alias@,$build_alias,;t t
20888 s,@host_alias@,$host_alias,;t t
20889 s,@target_alias@,$target_alias,;t t
20890 s,@DEFS@,$DEFS,;t t
20891 s,@ECHO_C@,$ECHO_C,;t t
20892 s,@ECHO_N@,$ECHO_N,;t t
20893 s,@ECHO_T@,$ECHO_T,;t t
20894 s,@LIBS@,$LIBS,;t t
20895 s,@WIN16_FILES@,$WIN16_FILES,;t t
20896 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
20897 s,@build@,$build,;t t
20898 s,@build_cpu@,$build_cpu,;t t
20899 s,@build_vendor@,$build_vendor,;t t
20900 s,@build_os@,$build_os,;t t
20901 s,@host@,$host,;t t
20902 s,@host_cpu@,$host_cpu,;t t
20903 s,@host_vendor@,$host_vendor,;t t
20904 s,@host_os@,$host_os,;t t
20905 s,@SET_MAKE@,$SET_MAKE,;t t
20906 s,@CC@,$CC,;t t
20907 s,@CFLAGS@,$CFLAGS,;t t
20908 s,@LDFLAGS@,$LDFLAGS,;t t
20909 s,@CPPFLAGS@,$CPPFLAGS,;t t
20910 s,@ac_ct_CC@,$ac_ct_CC,;t t
20911 s,@EXEEXT@,$EXEEXT,;t t
20912 s,@OBJEXT@,$OBJEXT,;t t
20913 s,@CXX@,$CXX,;t t
20914 s,@CXXFLAGS@,$CXXFLAGS,;t t
20915 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20916 s,@CPPBIN@,$CPPBIN,;t t
20917 s,@ac_ct_CPPBIN@,$ac_ct_CPPBIN,;t t
20918 s,@TOOLSDIR@,$TOOLSDIR,;t t
20919 s,@CPP@,$CPP,;t t
20920 s,@X_CFLAGS@,$X_CFLAGS,;t t
20921 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20922 s,@X_LIBS@,$X_LIBS,;t t
20923 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20924 s,@LEX@,$LEX,;t t
20925 s,@LEXLIB@,$LEXLIB,;t t
20926 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
20927 s,@XLEX@,$XLEX,;t t
20928 s,@BISON@,$BISON,;t t
20929 s,@AS@,$AS,;t t
20930 s,@ac_ct_AS@,$ac_ct_AS,;t t
20931 s,@LD@,$LD,;t t
20932 s,@ac_ct_LD@,$ac_ct_LD,;t t
20933 s,@AR@,$AR,;t t
20934 s,@ac_ct_AR@,$ac_ct_AR,;t t
20935 s,@RANLIB@,$RANLIB,;t t
20936 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20937 s,@STRIP@,$STRIP,;t t
20938 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20939 s,@WINDRES@,$WINDRES,;t t
20940 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
20941 s,@LN_S@,$LN_S,;t t
20942 s,@LN@,$LN,;t t
20943 s,@LDCONFIG@,$LDCONFIG,;t t
20944 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20945 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20946 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20947 s,@LINT@,$LINT,;t t
20948 s,@LINTFLAGS@,$LINTFLAGS,;t t
20949 s,@DB2HTML@,$DB2HTML,;t t
20950 s,@DB2PDF@,$DB2PDF,;t t
20951 s,@DB2PS@,$DB2PS,;t t
20952 s,@DB2TXT@,$DB2TXT,;t t
20953 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
20954 s,@JPEGLIB@,$JPEGLIB,;t t
20955 s,@EGREP@,$EGREP,;t t
20956 s,@GIFLIB@,$GIFLIB,;t t
20957 s,@XLIB@,$XLIB,;t t
20958 s,@XFILES@,$XFILES,;t t
20959 s,@OPENGLFILES@,$OPENGLFILES,;t t
20960 s,@GLU32FILES@,$GLU32FILES,;t t
20961 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
20962 s,@GLUT_LIBS@,$GLUT_LIBS,;t t
20963 s,@GLUT32FILES@,$GLUT32FILES,;t t
20964 s,@NASLIBS@,$NASLIBS,;t t
20965 s,@CURSESLIBS@,$CURSESLIBS,;t t
20966 s,@sane_devel@,$sane_devel,;t t
20967 s,@SANELIBS@,$SANELIBS,;t t
20968 s,@SANEINCL@,$SANEINCL,;t t
20969 s,@ICULIBS@,$ICULIBS,;t t
20970 s,@ft_devel@,$ft_devel,;t t
20971 s,@ft_devel2@,$ft_devel2,;t t
20972 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
20973 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
20974 s,@ARTSLIBS@,$ARTSLIBS,;t t
20975 s,@ARTSINCL@,$ARTSINCL,;t t
20976 s,@ALSALIBS@,$ALSALIBS,;t t
20977 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
20978 s,@CAPI4LINUXLIBS@,$CAPI4LINUXLIBS,;t t
20979 s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
20980 s,@DLLEXT@,$DLLEXT,;t t
20981 s,@DLLFLAGS@,$DLLFLAGS,;t t
20982 s,@DLLIBS@,$DLLIBS,;t t
20983 s,@LDSHARED@,$LDSHARED,;t t
20984 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
20985 s,@LIBEXT@,$LIBEXT,;t t
20986 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
20987 s,@DLLTOOL@,$DLLTOOL,;t t
20988 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
20989 s,@DLLWRAP@,$DLLWRAP,;t t
20990 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
20991 s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
20992 s,@CROSSTEST@,$CROSSTEST,;t t
20993 s,@CROSSCC@,$CROSSCC,;t t
20994 s,@CROSSWINDRES@,$CROSSWINDRES,;t t
20995 s,@LDPATH@,$LDPATH,;t t
20996 s,@CRTLIBS@,$CRTLIBS,;t t
20997 s,@WINE_BINARIES@,$WINE_BINARIES,;t t
20998 s,@MAIN_BINARY@,$MAIN_BINARY,;t t
20999 s,@LDD@,$LDD,;t t
21000 s,@ALLOCA@,$ALLOCA,;t t
21001 s,@LIBOBJS@,$LIBOBJS,;t t
21002 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21003 /@MAKE_RULES@/r $MAKE_RULES
21004 s,@MAKE_RULES@,,;t t
21005 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
21006 s,@MAKE_DLL_RULES@,,;t t
21007 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
21008 s,@MAKE_TEST_RULES@,,;t t
21009 /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
21010 s,@MAKE_LIB_RULES@,,;t t
21011 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
21012 s,@MAKE_PROG_RULES@,,;t t
21013 CEOF
21015 _ACEOF
21017 cat >>$CONFIG_STATUS <<\_ACEOF
21018 # Split the substitutions into bite-sized pieces for seds with
21019 # small command number limits, like on Digital OSF/1 and HP-UX.
21020 ac_max_sed_lines=48
21021 ac_sed_frag=1 # Number of current file.
21022 ac_beg=1 # First line for current file.
21023 ac_end=$ac_max_sed_lines # Line after last line for current file.
21024 ac_more_lines=:
21025 ac_sed_cmds=
21026 while $ac_more_lines; do
21027 if test $ac_beg -gt 1; then
21028 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21029 else
21030 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21032 if test ! -s $tmp/subs.frag; then
21033 ac_more_lines=false
21034 else
21035 # The purpose of the label and of the branching condition is to
21036 # speed up the sed processing (if there are no `@' at all, there
21037 # is no need to browse any of the substitutions).
21038 # These are the two extra sed commands mentioned above.
21039 (echo ':t
21040 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21041 if test -z "$ac_sed_cmds"; then
21042 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21043 else
21044 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21046 ac_sed_frag=`expr $ac_sed_frag + 1`
21047 ac_beg=$ac_end
21048 ac_end=`expr $ac_end + $ac_max_sed_lines`
21050 done
21051 if test -z "$ac_sed_cmds"; then
21052 ac_sed_cmds=cat
21054 fi # test -n "$CONFIG_FILES"
21056 _ACEOF
21057 cat >>$CONFIG_STATUS <<\_ACEOF
21058 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21059 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21060 case $ac_file in
21061 - | *:- | *:-:* ) # input from stdin
21062 cat >$tmp/stdin
21063 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21064 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21065 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21066 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21067 * ) ac_file_in=$ac_file.in ;;
21068 esac
21070 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21071 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21072 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21073 X"$ac_file" : 'X\(//\)[^/]' \| \
21074 X"$ac_file" : 'X\(//\)$' \| \
21075 X"$ac_file" : 'X\(/\)' \| \
21076 . : '\(.\)' 2>/dev/null ||
21077 echo X"$ac_file" |
21078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21079 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21080 /^X\(\/\/\)$/{ s//\1/; q; }
21081 /^X\(\/\).*/{ s//\1/; q; }
21082 s/.*/./; q'`
21083 { if $as_mkdir_p; then
21084 mkdir -p "$ac_dir"
21085 else
21086 as_dir="$ac_dir"
21087 as_dirs=
21088 while test ! -d "$as_dir"; do
21089 as_dirs="$as_dir $as_dirs"
21090 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21091 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21092 X"$as_dir" : 'X\(//\)[^/]' \| \
21093 X"$as_dir" : 'X\(//\)$' \| \
21094 X"$as_dir" : 'X\(/\)' \| \
21095 . : '\(.\)' 2>/dev/null ||
21096 echo X"$as_dir" |
21097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21098 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21099 /^X\(\/\/\)$/{ s//\1/; q; }
21100 /^X\(\/\).*/{ s//\1/; q; }
21101 s/.*/./; q'`
21102 done
21103 test ! -n "$as_dirs" || mkdir $as_dirs
21104 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21105 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21106 { (exit 1); exit 1; }; }; }
21108 ac_builddir=.
21110 if test "$ac_dir" != .; then
21111 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21112 # A "../" for each directory in $ac_dir_suffix.
21113 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21114 else
21115 ac_dir_suffix= ac_top_builddir=
21118 case $srcdir in
21119 .) # No --srcdir option. We are building in place.
21120 ac_srcdir=.
21121 if test -z "$ac_top_builddir"; then
21122 ac_top_srcdir=.
21123 else
21124 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21125 fi ;;
21126 [\\/]* | ?:[\\/]* ) # Absolute path.
21127 ac_srcdir=$srcdir$ac_dir_suffix;
21128 ac_top_srcdir=$srcdir ;;
21129 *) # Relative path.
21130 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21131 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21132 esac
21134 # Do not use `cd foo && pwd` to compute absolute paths, because
21135 # the directories may not exist.
21136 case `pwd` in
21137 .) ac_abs_builddir="$ac_dir";;
21139 case "$ac_dir" in
21140 .) ac_abs_builddir=`pwd`;;
21141 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21142 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21143 esac;;
21144 esac
21145 case $ac_abs_builddir in
21146 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21148 case ${ac_top_builddir}. in
21149 .) ac_abs_top_builddir=$ac_abs_builddir;;
21150 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21151 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21152 esac;;
21153 esac
21154 case $ac_abs_builddir in
21155 .) ac_abs_srcdir=$ac_srcdir;;
21157 case $ac_srcdir in
21158 .) ac_abs_srcdir=$ac_abs_builddir;;
21159 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21160 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21161 esac;;
21162 esac
21163 case $ac_abs_builddir in
21164 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21166 case $ac_top_srcdir in
21167 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21168 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21169 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21170 esac;;
21171 esac
21174 case $INSTALL in
21175 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21176 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21177 esac
21179 # Let's still pretend it is `configure' which instantiates (i.e., don't
21180 # use $as_me), people would be surprised to read:
21181 # /* config.h. Generated by config.status. */
21182 if test x"$ac_file" = x-; then
21183 configure_input=
21184 else
21185 configure_input="$ac_file. "
21187 configure_input=$configure_input"Generated from `echo $ac_file_in |
21188 sed 's,.*/,,'` by configure."
21190 # First look for the input files in the build tree, otherwise in the
21191 # src tree.
21192 ac_file_inputs=`IFS=:
21193 for f in $ac_file_in; do
21194 case $f in
21195 -) echo $tmp/stdin ;;
21196 [\\/$]*)
21197 # Absolute (can't be DOS-style, as IFS=:)
21198 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21199 echo "$as_me: error: cannot find input file: $f" >&2;}
21200 { (exit 1); exit 1; }; }
21201 echo "$f";;
21202 *) # Relative
21203 if test -f "$f"; then
21204 # Build tree
21205 echo "$f"
21206 elif test -f "$srcdir/$f"; then
21207 # Source tree
21208 echo "$srcdir/$f"
21209 else
21210 # /dev/null tree
21211 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21212 echo "$as_me: error: cannot find input file: $f" >&2;}
21213 { (exit 1); exit 1; }; }
21214 fi;;
21215 esac
21216 done` || { (exit 1); exit 1; }
21218 if test x"$ac_file" != x-; then
21219 { echo "$as_me:$LINENO: creating $ac_file" >&5
21220 echo "$as_me: creating $ac_file" >&6;}
21221 rm -f "$ac_file"
21223 _ACEOF
21224 cat >>$CONFIG_STATUS <<_ACEOF
21225 sed "$ac_vpsub
21226 $extrasub
21227 _ACEOF
21228 cat >>$CONFIG_STATUS <<\_ACEOF
21230 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21231 s,@configure_input@,$configure_input,;t t
21232 s,@srcdir@,$ac_srcdir,;t t
21233 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21234 s,@top_srcdir@,$ac_top_srcdir,;t t
21235 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21236 s,@builddir@,$ac_builddir,;t t
21237 s,@abs_builddir@,$ac_abs_builddir,;t t
21238 s,@top_builddir@,$ac_top_builddir,;t t
21239 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21240 s,@INSTALL@,$ac_INSTALL,;t t
21241 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21242 rm -f $tmp/stdin
21243 if test x"$ac_file" != x-; then
21244 mv $tmp/out $ac_file
21245 else
21246 cat $tmp/out
21247 rm -f $tmp/out
21250 done
21251 _ACEOF
21252 cat >>$CONFIG_STATUS <<\_ACEOF
21255 # CONFIG_HEADER section.
21258 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21259 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21261 # ac_d sets the value in "#define NAME VALUE" lines.
21262 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21263 ac_dB='[ ].*$,\1#\2'
21264 ac_dC=' '
21265 ac_dD=',;t'
21266 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21267 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21268 ac_uB='$,\1#\2define\3'
21269 ac_uC=' '
21270 ac_uD=',;t'
21272 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21273 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21274 case $ac_file in
21275 - | *:- | *:-:* ) # input from stdin
21276 cat >$tmp/stdin
21277 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21278 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21279 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21280 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21281 * ) ac_file_in=$ac_file.in ;;
21282 esac
21284 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21285 echo "$as_me: creating $ac_file" >&6;}
21287 # First look for the input files in the build tree, otherwise in the
21288 # src tree.
21289 ac_file_inputs=`IFS=:
21290 for f in $ac_file_in; do
21291 case $f in
21292 -) echo $tmp/stdin ;;
21293 [\\/$]*)
21294 # Absolute (can't be DOS-style, as IFS=:)
21295 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21296 echo "$as_me: error: cannot find input file: $f" >&2;}
21297 { (exit 1); exit 1; }; }
21298 # Do quote $f, to prevent DOS paths from being IFS'd.
21299 echo "$f";;
21300 *) # Relative
21301 if test -f "$f"; then
21302 # Build tree
21303 echo "$f"
21304 elif test -f "$srcdir/$f"; then
21305 # Source tree
21306 echo "$srcdir/$f"
21307 else
21308 # /dev/null tree
21309 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21310 echo "$as_me: error: cannot find input file: $f" >&2;}
21311 { (exit 1); exit 1; }; }
21312 fi;;
21313 esac
21314 done` || { (exit 1); exit 1; }
21315 # Remove the trailing spaces.
21316 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21318 _ACEOF
21320 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21321 # `conftest.undefs', that substitutes the proper values into
21322 # config.h.in to produce config.h. The first handles `#define'
21323 # templates, and the second `#undef' templates.
21324 # And first: Protect against being on the right side of a sed subst in
21325 # config.status. Protect against being in an unquoted here document
21326 # in config.status.
21327 rm -f conftest.defines conftest.undefs
21328 # Using a here document instead of a string reduces the quoting nightmare.
21329 # Putting comments in sed scripts is not portable.
21331 # `end' is used to avoid that the second main sed command (meant for
21332 # 0-ary CPP macros) applies to n-ary macro definitions.
21333 # See the Autoconf documentation for `clear'.
21334 cat >confdef2sed.sed <<\_ACEOF
21335 s/[\\&,]/\\&/g
21336 s,[\\$`],\\&,g
21337 t clear
21338 : clear
21339 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21340 t end
21341 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21342 : end
21343 _ACEOF
21344 # If some macros were called several times there might be several times
21345 # the same #defines, which is useless. Nevertheless, we may not want to
21346 # sort them, since we want the *last* AC-DEFINE to be honored.
21347 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21348 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21349 rm -f confdef2sed.sed
21351 # This sed command replaces #undef with comments. This is necessary, for
21352 # example, in the case of _POSIX_SOURCE, which is predefined and required
21353 # on some systems where configure will not decide to define it.
21354 cat >>conftest.undefs <<\_ACEOF
21355 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21356 _ACEOF
21358 # Break up conftest.defines because some shells have a limit on the size
21359 # of here documents, and old seds have small limits too (100 cmds).
21360 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21361 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21362 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21363 echo ' :' >>$CONFIG_STATUS
21364 rm -f conftest.tail
21365 while grep . conftest.defines >/dev/null
21367 # Write a limited-size here document to $tmp/defines.sed.
21368 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21369 # Speed up: don't consider the non `#define' lines.
21370 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21371 # Work around the forget-to-reset-the-flag bug.
21372 echo 't clr' >>$CONFIG_STATUS
21373 echo ': clr' >>$CONFIG_STATUS
21374 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21375 echo 'CEOF
21376 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21377 rm -f $tmp/in
21378 mv $tmp/out $tmp/in
21379 ' >>$CONFIG_STATUS
21380 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21381 rm -f conftest.defines
21382 mv conftest.tail conftest.defines
21383 done
21384 rm -f conftest.defines
21385 echo ' fi # grep' >>$CONFIG_STATUS
21386 echo >>$CONFIG_STATUS
21388 # Break up conftest.undefs because some shells have a limit on the size
21389 # of here documents, and old seds have small limits too (100 cmds).
21390 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21391 rm -f conftest.tail
21392 while grep . conftest.undefs >/dev/null
21394 # Write a limited-size here document to $tmp/undefs.sed.
21395 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21396 # Speed up: don't consider the non `#undef'
21397 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21398 # Work around the forget-to-reset-the-flag bug.
21399 echo 't clr' >>$CONFIG_STATUS
21400 echo ': clr' >>$CONFIG_STATUS
21401 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21402 echo 'CEOF
21403 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21404 rm -f $tmp/in
21405 mv $tmp/out $tmp/in
21406 ' >>$CONFIG_STATUS
21407 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21408 rm -f conftest.undefs
21409 mv conftest.tail conftest.undefs
21410 done
21411 rm -f conftest.undefs
21413 cat >>$CONFIG_STATUS <<\_ACEOF
21414 # Let's still pretend it is `configure' which instantiates (i.e., don't
21415 # use $as_me), people would be surprised to read:
21416 # /* config.h. Generated by config.status. */
21417 if test x"$ac_file" = x-; then
21418 echo "/* Generated by configure. */" >$tmp/config.h
21419 else
21420 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21422 cat $tmp/in >>$tmp/config.h
21423 rm -f $tmp/in
21424 if test x"$ac_file" != x-; then
21425 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21426 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21427 echo "$as_me: $ac_file is unchanged" >&6;}
21428 else
21429 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21430 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21431 X"$ac_file" : 'X\(//\)[^/]' \| \
21432 X"$ac_file" : 'X\(//\)$' \| \
21433 X"$ac_file" : 'X\(/\)' \| \
21434 . : '\(.\)' 2>/dev/null ||
21435 echo X"$ac_file" |
21436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21437 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21438 /^X\(\/\/\)$/{ s//\1/; q; }
21439 /^X\(\/\).*/{ s//\1/; q; }
21440 s/.*/./; q'`
21441 { if $as_mkdir_p; then
21442 mkdir -p "$ac_dir"
21443 else
21444 as_dir="$ac_dir"
21445 as_dirs=
21446 while test ! -d "$as_dir"; do
21447 as_dirs="$as_dir $as_dirs"
21448 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21449 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21450 X"$as_dir" : 'X\(//\)[^/]' \| \
21451 X"$as_dir" : 'X\(//\)$' \| \
21452 X"$as_dir" : 'X\(/\)' \| \
21453 . : '\(.\)' 2>/dev/null ||
21454 echo X"$as_dir" |
21455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21456 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21457 /^X\(\/\/\)$/{ s//\1/; q; }
21458 /^X\(\/\).*/{ s//\1/; q; }
21459 s/.*/./; q'`
21460 done
21461 test ! -n "$as_dirs" || mkdir $as_dirs
21462 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21463 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21464 { (exit 1); exit 1; }; }; }
21466 rm -f $ac_file
21467 mv $tmp/config.h $ac_file
21469 else
21470 cat $tmp/config.h
21471 rm -f $tmp/config.h
21473 done
21474 _ACEOF
21475 cat >>$CONFIG_STATUS <<\_ACEOF
21478 # CONFIG_COMMANDS section.
21480 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21481 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21482 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21483 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21484 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21485 X"$ac_dest" : 'X\(//\)[^/]' \| \
21486 X"$ac_dest" : 'X\(//\)$' \| \
21487 X"$ac_dest" : 'X\(/\)' \| \
21488 . : '\(.\)' 2>/dev/null ||
21489 echo X"$ac_dest" |
21490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21491 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21492 /^X\(\/\/\)$/{ s//\1/; q; }
21493 /^X\(\/\).*/{ s//\1/; q; }
21494 s/.*/./; q'`
21495 { if $as_mkdir_p; then
21496 mkdir -p "$ac_dir"
21497 else
21498 as_dir="$ac_dir"
21499 as_dirs=
21500 while test ! -d "$as_dir"; do
21501 as_dirs="$as_dir $as_dirs"
21502 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21503 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21504 X"$as_dir" : 'X\(//\)[^/]' \| \
21505 X"$as_dir" : 'X\(//\)$' \| \
21506 X"$as_dir" : 'X\(/\)' \| \
21507 . : '\(.\)' 2>/dev/null ||
21508 echo X"$as_dir" |
21509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21510 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21511 /^X\(\/\/\)$/{ s//\1/; q; }
21512 /^X\(\/\).*/{ s//\1/; q; }
21513 s/.*/./; q'`
21514 done
21515 test ! -n "$as_dirs" || mkdir $as_dirs
21516 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21517 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21518 { (exit 1); exit 1; }; }; }
21520 ac_builddir=.
21522 if test "$ac_dir" != .; then
21523 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21524 # A "../" for each directory in $ac_dir_suffix.
21525 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21526 else
21527 ac_dir_suffix= ac_top_builddir=
21530 case $srcdir in
21531 .) # No --srcdir option. We are building in place.
21532 ac_srcdir=.
21533 if test -z "$ac_top_builddir"; then
21534 ac_top_srcdir=.
21535 else
21536 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21537 fi ;;
21538 [\\/]* | ?:[\\/]* ) # Absolute path.
21539 ac_srcdir=$srcdir$ac_dir_suffix;
21540 ac_top_srcdir=$srcdir ;;
21541 *) # Relative path.
21542 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21543 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21544 esac
21546 # Do not use `cd foo && pwd` to compute absolute paths, because
21547 # the directories may not exist.
21548 case `pwd` in
21549 .) ac_abs_builddir="$ac_dir";;
21551 case "$ac_dir" in
21552 .) ac_abs_builddir=`pwd`;;
21553 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21554 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21555 esac;;
21556 esac
21557 case $ac_abs_builddir in
21558 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21560 case ${ac_top_builddir}. in
21561 .) ac_abs_top_builddir=$ac_abs_builddir;;
21562 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21563 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21564 esac;;
21565 esac
21566 case $ac_abs_builddir in
21567 .) ac_abs_srcdir=$ac_srcdir;;
21569 case $ac_srcdir in
21570 .) ac_abs_srcdir=$ac_abs_builddir;;
21571 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21572 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21573 esac;;
21574 esac
21575 case $ac_abs_builddir in
21576 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21578 case $ac_top_srcdir in
21579 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21580 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21581 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21582 esac;;
21583 esac
21586 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21587 echo "$as_me: executing $ac_dest commands" >&6;}
21588 case $ac_dest in
21589 controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
21590 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
21591 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
21592 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
21593 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
21594 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
21595 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
21596 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
21597 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
21598 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
21599 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
21600 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
21601 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
21602 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
21603 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
21604 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
21605 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
21606 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
21607 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
21608 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
21609 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
21610 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
21611 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
21612 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
21613 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
21614 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
21615 files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
21616 echo "$as_me: creating files" >&6;} && mkdir "files") ;;
21617 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
21618 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
21619 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
21620 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
21621 objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
21622 echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
21623 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
21624 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
21625 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
21626 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
21627 esac
21628 done
21629 _ACEOF
21631 cat >>$CONFIG_STATUS <<\_ACEOF
21633 { (exit 0); exit 0; }
21634 _ACEOF
21635 chmod +x $CONFIG_STATUS
21636 ac_clean_files=$ac_clean_files_save
21639 # configure is writing to config.log, and then calls config.status.
21640 # config.status does its own redirection, appending to config.log.
21641 # Unfortunately, on DOS this fails, as config.log is still kept open
21642 # by configure, so config.status won't be able to write to it; its
21643 # output is simply discarded. So we exec the FD to /dev/null,
21644 # effectively closing config.log, so it can be properly (re)opened and
21645 # appended to by config.status. When coming back to configure, we
21646 # need to make the FD available again.
21647 if test "$no_create" != yes; then
21648 ac_cs_success=:
21649 ac_config_status_args=
21650 test "$silent" = yes &&
21651 ac_config_status_args="$ac_config_status_args --quiet"
21652 exec 5>/dev/null
21653 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21654 exec 5>>config.log
21655 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21656 # would make configure fail if this is the last instruction.
21657 $ac_cs_success || { (exit 1); exit 1; }
21661 if test "$have_x" = "no"
21662 then
21663 echo
21664 echo "*** Warning: X development files not found. Wine will be built without"
21665 echo "*** X support, which currently does not work, and would probably not be"
21666 echo "*** what you want anyway. You will need to install devel packages of"
21667 echo "*** Xlib/Xfree86 at the very least."
21670 if test "$wine_cv_opengl_version_OK" = "no"
21671 then
21672 echo
21673 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
21674 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
21677 if test "$wine_cv_msg_freetype" = "yes"
21678 then
21679 echo
21680 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
21681 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
21682 echo "*** freetype-devel package (or its equivalent on your distribution) to"
21683 echo "*** enable Wine to use TrueType fonts."
21686 echo
21687 echo "Configure finished. Do 'make depend && make' to compile Wine."
21688 echo